query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Run the database seeds.
public function run() { $vader = DB::table('users')->insert([ 'username' => 'doctorv', 'email' => '[email protected]', 'password' => Hash::make('thedarkside'), 'first_name' => 'Darth', 'last_name' => 'Vader', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('users')->insert([ 'username' => 'goodsidesoldier', 'email' => '[email protected]', 'password' => Hash::make('hesnotmydad'), 'first_name' => 'Luke', 'last_name' => 'Skywalker', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('users')->insert([ 'username' => 'greendemon', 'email' => '[email protected]', 'password' => Hash::make('yodaIam'), 'first_name' => 'Yoda', 'last_name' => 'Unknown', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n factory('App\\User', 10 )->create();\n\n $users= \\App\\User::all();\n $users->each(function($user){ factory('App\\Category', 1)->create(['user_id'=>$user->id]); });\n $users->each(function($user){ factory('App\\Tag', 3)->create(['user_id'=>$user->id]); });\n\n\n $users->each(function($user){\n factory('App\\Post', 10)->create([\n 'user_id'=>$user->id,\n 'category_id'=>rand(1,20)\n ]\n );\n });\n\n $posts= \\App\\Post::all();\n $posts->each(function ($post){\n\n $post->tags()->attach(array_unique([rand(1,20),rand(1,20),rand(1,20)]));\n });\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => '[email protected]', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"[email protected]\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // MyList::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n MyList::create([\n 'title' => 'List-'.($i+1),\n 'color' => $faker->sentence,\n 'icon' => $faker->randomDigitNotNull,\n 'index' => $faker->randomDigitNotNull,\n 'user_id' => 1,\n ]);\n }\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Products::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few products in our database:\n for ($i = 0; $i < 50; $i++) {\n Products::create([\n 'name' => $faker->word,\n 'sku' => $faker->randomNumber(7, false),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Pablo Rosales',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'status' => 1,\n 'role_id' => 1,\n 'movil' => 0\n ]);\n\n User::create([\n 'name' => 'Usuario Movil',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'status' => 1,\n 'role_id' => 3,\n 'movil' => 1\n ]);\n\n Roles::create([\n 'name' => 'Administrador'\n ]);\n Roles::create([\n 'name' => 'Operaciones'\n ]);\n Roles::create([\n 'name' => 'Comercial'\n ]);\n Roles::create([\n 'name' => 'Aseguramiento'\n ]);\n Roles::create([\n 'name' => 'Facturación'\n ]);\n Roles::create([\n 'name' => 'Creditos y Cobros'\n ]);\n\n factory(App\\Customers::class, 100)->create();\n }", "public function run()\n {\n // php artisan db:seed --class=StoreTableSeeder\n\n foreach(range(1,20) as $i){\n $faker = Faker::create();\n Store::create([\n 'name' => $faker->name,\n 'desc' => $faker->text,\n 'tags' => $faker->word,\n 'address' => $faker->address,\n 'longitude' => $faker->longitude($min = -180, $max = 180),\n 'latitude' => $faker->latitude($min = -90, $max = 90),\n 'created_by' => '1'\n ]);\n }\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'[email protected]'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => '[email protected]',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create([\n 'name' => 'Qwerty',\n 'email' => '[email protected]',\n 'password' => bcrypt('secretpassw'),\n ]);\n\n factory(User::class, 59)->create([\n 'password' => bcrypt('secretpassw'),\n ]);\n\n for ($i = 1; $i < 11; $i++) {\n factory(Category::class)->create([\n 'name' => 'Category ' . $i,\n ]);\n }\n\n for ($i = 1; $i < 101; $i++) {\n factory(Product::class)->create([\n 'name' => 'Product ' . $i,\n ]);\n }\n }", "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> '[email protected]',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n Lista::create([\n 'name' => $faker->sentence(2),\n 'description' => $faker->sentence(10), \n ]);\n } \n\n foreach (range(1,20) as $index) {\n $n = $faker->sentence(2);\n \tTarea::create([\n \t\t'name' => $n,\n \t\t'description' => $faker->sentence(10),\n 'lista_id' => $faker->numberBetween(1,5),\n 'slug' => Str::slug($n),\n \t\t]);\n } \n }", "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n DB::table('users')->insert([\n 'name' => 'user',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n\n foreach (range(1,100) as $val)\n DB::table('authors')->insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n \n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\n\n\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Flight::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n\n\n Flight::create([\n 'flightNumber' => $faker->randomNumber(5),\n 'depAirport' => $faker->city,\n 'destAirport' => $faker->city,\n 'reservedWeight' => $faker->numberBetween(1000 - 10000),\n 'deptTime' => $faker->dateTime('now'),\n 'arrivalTime' => $faker->dateTime('now'),\n 'reservedVolume' => $faker->numberBetween(1000 - 10000),\n 'airlineName' => $faker->colorName,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\n\n }", "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n\n Medicamento::factory(50)->create();\n Reporte::factory(5)->create();\n Cliente::factory(200)->create();\n Asigna_valor::factory(200)->create();\n Carga::factory(200)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n \\App\\Models\\Article::factory(20)->create();\n \\App\\Models\\Category::factory(5)->create();\n \\App\\Models\\Comment::factory(40)->create();\n\n \\App\\Models\\User::create([\n \"name\"=>\"Alice\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n \\App\\Models\\User::create([\n \"name\"=>\"Bob\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = [email protected]\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(\n \tfunction($user)\n \t{\n \t\t$user->questions()\n \t\t->saveMany(\n \t\t\tfactory(App\\Question::class, rand(2,6))->make()\n \t\t)\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(1,5))->make());\n })\n \t}\n );\n }\n}", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "public function run()\n\t{\n\t\tDB::table('libros')->truncate();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tfor ($i=0; $i < 10; $i++) { \n\t\t\tLibro::create([\n\n\t\t\t\t'titulo'\t\t=> $faker->text(40),\n\t\t\t\t'isbn'\t\t\t=> $faker->numberBetween(100,999),\n\t\t\t\t'precio'\t\t=> $faker->randomFloat(2,3,150),\n\t\t\t\t'publicado'\t\t=> $faker->numberBetween(0,1),\n\t\t\t\t'descripcion'\t=> $faker->text(400),\n\t\t\t\t'autor_id'\t\t=> $faker->numberBetween(1,3),\n\t\t\t\t'categoria_id'\t=> $faker->numberBetween(1,3)\n\n\t\t\t]);\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\t// DB::table('libros')->insert($libros);\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create()->each(function ($user) {\n // Seed the relation with 5 purchases\n // $videos = factory(App\\Video::class, 5)->make();\n // $user->videos()->saveMany($videos);\n // $user->videos()->each(function ($video){\n // \t$video->videometa()->save(factory(App\\VideoMeta::class)->make());\n // \t// :( \n // });\n factory(App\\User::class, 10)->create()->each(function ($user) {\n\t\t\t factory(App\\Video::class, 5)->create(['user_id' => $user->id])->each(function ($video) {\n\t\t\t \tfactory(App\\VideoMeta::class, 1)->create(['video_id' => $video->id]);\n\t\t\t // $video->videometa()->save(factory(App\\VideoMeta::class)->create(['video_id' => $video->id]));\n\t\t\t });\n\t\t\t});\n\n });\n }", "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker=Faker\\Factory::create();\n\n for($i=0;$i<100;$i++){\n \tApp\\Blog::create([\n \t\t'title' => $faker->catchPhrase,\n 'description' => $faker->text,\n 'showns' =>true\n \t\t]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(BusinessTableSeeder::class);\n $this->call(PrinterTableSeeder::class);\n factory(App\\Tag::class,10)->create();\n factory(App\\Category::class,10)->create();\n factory(App\\Subcategory::class,50)->create();\n factory(App\\Provider::class,10)->create();\n factory(App\\Product::class,24)->create()->each(function($product){\n\n $product->images()->saveMany(factory(App\\Image::class, 4)->make());\n\n });\n\n\n factory(App\\Client::class,10)->create();\n }", "public function run()\n {\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'name' => $faker->sentence,\n 'sku' => $faker->paragraph,\n 'price' => $faker->number,\n ]);\n }\n }", "public function run()\n {\n Storage::deleteDirectory('public/products');\n Storage::makeDirectory('public/products');\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n $this->call(ProductSeeder::class);\n Order::factory(4)->create();\n Order_Detail::factory(4)->create();\n Size::factory(100)->create();\n }", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n\t{\n\t\t\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\t$faker = \\Faker\\Factory::create();\n\n\t\tTodolist::truncate();\n\n\t\tforeach(range(1, 50) as $index)\n\t\t{\n\n\t\t\t$user = User::create([\n\t\t\t\t'name' => $faker->name,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 'password',\n\t\t\t\t'confirmation_code' => mt_rand(0, 9),\n\t\t\t\t'confirmation' => rand(0,1) == 1\n\t\t\t]);\n\n\t\t\t$list = Todolist::create([\n\t\t\t\t'name' => $faker->sentence(2),\n\t\t\t\t'description' => $faker->sentence(4),\n\t\t\t]);\n\n\t\t\t// BUILD SOME TASKS FOR EACH LIST ITEM\n\t\t\tforeach(range(1, 10) as $index) \n\t\t\t{\n\t\t\t\t$task = new Task;\n\t\t\t\t$task->name = $faker->sentence(2);\n\t\t\t\t$task->description = $faker->sentence(4);\n\t\t\t\t$list->tasks()->save($task);\n\t\t\t}\n\n\t\t}\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n\n\t}", "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n \\App\\User::create([\n 'name'=>'PAPE SAMBA NDOUR',\n 'email'=>'[email protected]',\n 'password'=>bcrypt('Admin1122'),\n ]);\n\n $faker = Faker::create();\n\n for ($i = 0; $i < 100 ; $i++)\n {\n $firstName = $faker->firstName;\n $lastName = $faker->lastName;\n $niveau = \\App\\Niveau::inRandomOrder()->first();\n \\App\\Etudiant::create([\n 'prenom'=>$firstName,\n 'nom'=>$lastName,\n 'niveau_id'=>$niveau->id\n ]);\n }\n\n\n }", "public function run()\n {\n //\n DB::table('foods')->delete();\n\n Foods::create(array(\n 'name' => 'Chicken Wing',\n 'author' => 'Bambang',\n 'overview' => 'a deep-fried chicken wing, not in spicy sauce'\n ));\n\n Foods::create(array(\n 'name' => 'Beef ribs',\n 'author' => 'Frank',\n 'overview' => 'Slow baked beef ribs rubbed in spices'\n ));\n\n Foods::create(array(\n 'name' => 'Ice cream',\n 'author' => 'Lou',\n 'overview' => ' A sweetened frozen food typically eaten as a snack or dessert.'\n ));\n\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 3)->create();\n factory(App\\Models\\Category::class, 3)\n ->create()\n ->each(function ($u) {\n $u->courses()->saveMany(factory(App\\Models\\Course::class,3)->make())->each(function ($c){\n $c->exams()->saveMany(factory(\\App\\Models\\Exam::class,3)->make())->each(function ($e){\n $e->questions()->saveMany(factory(\\App\\Models\\Question::class,4)->make())->each(function ($q){\n $q->answers()->saveMany(factory(\\App\\Models\\Answer::class,4)->make())->each(function ($a){\n $a->correctAnswer()->save(factory(\\App\\Models\\Correct_answer::class)->make());\n });\n });\n });\n });\n\n });\n\n }", "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\n ]);\n }\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Category::factory(4)->create();\n \\App\\Models\\View::factory(6)->create();\n \\App\\Models\\Room::factory(8)->create();\n \n $rooms = \\App\\Models\\Room::all();\n // \\App\\Models\\User::all()->each(function ($user) use ($rooms) { \n // $user->rooms()->attach(\n // $rooms->random(rand(1, \\App\\Models\\Room::max('id')))->pluck('id')->toArray()\n // ); \n // });\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => '[email protected]']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'[email protected]',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','[email protected]')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => '[email protected]']);\n\n factory(Category::class, 5)->create();\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "public function run()\n {\n\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => '[email protected]',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n $user_ids = [1,2,3];\n $faker = app(\\Faker\\Generator::class);\n $posts = factory(\\App\\Post::class)->times(50)->make()->each(function($post) use ($user_ids,$faker){\n $post->user_id = $faker->randomElement($user_ids);\n });\n \\App\\Post::insert($posts->toArray());\n }", "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "public function run()\n\t{\n\t\t$this->call(ProductsTableSeeder::class);\n\t\t$this->call(CategoriesTableSeeder::class);\n\t\t$this->call(BrandsTableSeeder::class);\n\t\t$this->call(ColorsTableSeeder::class);\n\n\t\t$products = \\App\\Product::all();\n \t$categories = \\App\\Category::all();\n \t$brands = \\App\\Brand::all();\n \t$colors = \\App\\Color::all();\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->colors()->sync($colors->random(3));\n\n\t\t\t$product->category()->associate($categories->random(1)->first());\n\t\t\t$product->brand()->associate($brands->random(1)->first());\n\n\t\t\t$product->save();\n\t\t}\n\n\t\t// for ($i = 0; $i < count($products); $i++) {\n\t\t// \t$cat = $categories[rand(0,5)];\n\t\t// \t$bra = $brands[rand(0,7)];\n\t\t// \t$cat->products()->save($products[$i]);\n\t\t// \t$bra->products()->save($products[$i]);\n\t\t// }\n\n\t\t// $products = factory(App\\Product::class)->times(20)->create();\n\t\t// $categories = factory(App\\Category::class)->times(6)->create();\n\t\t// $brands = factory(App\\Brand::class)->times(8)->create();\n\t\t// $colors = factory(App\\Color::class)->times(15)->create();\n\t}", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1,200) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'phone' => $faker->randomDigitNotNull,\n 'address'=> $faker->streetAddress,\n 'password' => bcrypt('secret'),\n ]);\n }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n echo PHP_EOL , 'seeding roles...';\n\n Role::create(\n [\n 'name' => 'Admin',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Principal',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Teacher',\n 'deletable' => false,\n ]\n );\n\n Role::create(\n [\n 'name' => 'Student',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Parents',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Accountant',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Librarian',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Receptionist',\n 'deletable' => false,\n ]\n );\n\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Runner::create([\n 'external_id' => $faker->uuid,\n 'name' => $faker->name,\n 'race_id' =>rand(1,5),\n 'age' => rand(30, 45),\n 'sex' => $faker->randomElement(['male', 'female']),\n 'color' => $faker->randomElement(['#ecbcb4', '#d1a3a4']),\n ]);\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "public function run()\n {\n Eloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // $this->call([\n // CountriesTableSeeder::class,\n // ]);\n\n factory(App\\User::class, 100)->create();\n factory(App\\Type::class, 10)->create();\n factory(App\\Item::class, 100)->create();\n factory(App\\Order::class, 1000)->create();\n\n $items = App\\Item::all();\n\n App\\Order::all()->each(function($order) use ($items) {\n\n $n = rand(1, 10);\n\n $order->items()->attach(\n $items->random($n)->pluck('id')->toArray()\n , ['quantity' => $n]);\n\n $order->total = $order->items->sum(function($item) {\n return $item->price * $item->pivot->quantity;\n });\n\n $order->save();\n\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'izzanni',\n \n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'aina',\n\n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'sab',\n\n ]\n );\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n //Acá se define lo que el seeder va a hacer.\n //insert() para insertar datos.\n //Array asociativo. La llave es el nombre de la columna.\n// DB::table('users')->insert([\n// //Para un solo usuario.\n// 'name' => 'Pedrito Perez',\n// 'email' => '[email protected]',\n// 'password' => bcrypt('123456')\n// ]);//Se indica el nombre de la tabla.\n\n //Crea 50 usuarios (sin probar)\n// factory(App\\User::class, 50)->create()->each(function($u) {\n// $u->posts()->save(factory(App\\Post::class)->make());\n// });\n\n factory(App\\User::class, 10)->create(); //Así se ejecuta el model factory creado en ModelFactory.php\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //nhập liệu mẫu cho bảng users\n DB::table('users')->insert([\n \t['id'=>'1001', 'name'=>'Phan Thị Hiền', 'email'=>'[email protected]', 'password'=>'123456', 'isadmin'=>1],\n \t['id'=>'1002', 'name'=>'Phan Thị Hà', 'email'=>'[email protected]', 'password'=>'111111', 'isadmin'=>0]\n ]);\n\n\n //nhập liệu mẫu cho bảng suppliers\n DB::table('suppliers')->insert([\n \t['name'=>'FPT', 'address'=>'151 Hùng Vương, TP. Đà Nẵng', 'phonenum'=>'0971455395'],\n \t['name'=>'Điện Máy Xanh', 'address'=>'169 Phan Châu Trinh, TP. Đà Nẵng', 'phonenum'=>'0379456011']\n ]);\n\n\n //Bảng phiếu bảo hành\n }", "public function run()\n {\n \t// DB::table('categories')->truncate();\n // factory(App\\Models\\Category::class, 10)->create();\n Schema::disableForeignKeyConstraints();\n Category::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['SAMSUNG','NOKIA','APPLE','BLACK BERRY'];\n foreach ($categories as $key => $value) {\n Category::create([\n 'name'=>$value,\n 'description'=> 'This is '.$value,\n 'markup'=> rand(10,100),\n 'category_id'=> null,\n 'UUID' => $faker->uuid,\n ]);\n }\n }" ]
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.7841468", "0.7834583", "0.7827792", "0.7819104", "0.78088796", "0.7802872", "0.7802348", "0.78006834", "0.77989215", "0.7795819", "0.77903426", "0.77884805", "0.77862066", "0.7778816", "0.7777486", "0.7765202", "0.7762492", "0.77623445", "0.77621746", "0.7761383", "0.77606887", "0.77596676", "0.7757001", "0.7753607", "0.7749522", "0.7749292", "0.77466977", "0.7729947", "0.77289546", "0.772796", "0.77167094", "0.7714503", "0.77140456", "0.77132195", "0.771243", "0.77122366", "0.7711113", "0.77109736", "0.7710777", "0.7710086", "0.7705484", "0.770464", "0.7704354", "0.7704061", "0.77027386", "0.77020216", "0.77008796", "0.7698617", "0.76985973", "0.76973504", "0.7696405", "0.7694293", "0.7692694", "0.7691264", "0.7690576", "0.76882726", "0.7687433", "0.7686844", "0.7686498", "0.7685065", "0.7683827", "0.7679184", "0.7678287", "0.76776296", "0.76767945", "0.76726556", "0.76708084", "0.76690495", "0.766872", "0.76686716", "0.7666299", "0.76625943", "0.7662227", "0.76613766", "0.7659881", "0.7656644", "0.76539344", "0.76535016", "0.7652375", "0.7652313", "0.7652022" ]
0.0
-1
Return all employees as array so it is easier to display
public function findAllEmployeesAsArray() { return $this->createQueryBuilder('e') ->getQuery() ->getArrayResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function DisplayAll() {\n\t\t\t\n\t\t\t$sql = \"SELECT * FROM employees \";\n\t\t\t$statement = Database::$db->prepare($sql);\n\t\t\t$statement->execute();\n\t\t\t$employees = [];\n\t\t\twhile($row = $statement->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t\t$employees[] = new Employee($row['Code']);\n\t\t\t}\n\t\t\treturn $employees;\n\t\t}", "public function getAllEmployees() \n {\n $employees = Employees::getEmployees();\n\n foreach($employees as $key => $employee){\n $newArrayEmployees[$key] = $this->generateEmployeeData($employee);\n }\n\n sort($newArrayEmployees);\n\n return $newArrayEmployees;\n }", "public function getAllEmployees();", "public function getEmployee()\n\t{\n\t\t$arr = $this->queryToDbObj->getEmployeeList();\n\n\t\treturn $arr;\n\t}", "public function getAllEmployees() {\n\t\t$em = $this->getEntityManager();\n\t\t$employees = $em->createQueryBuilder()\n\t\t\t->select('e.employeeID,e.userName')\n\t\t\t->from('Employee', 'e')\n\t\t\t->orderBy('e.employeeID')\n\t\t\t->getQuery()\n\t\t\t->getResult();\n\t\t\n\t\t$response = array(\n\t\t\t\"employees\" => $employees\n\t\t);\n\t\t\n\t\treturn $this->respond($response);\n\t}", "public function getCompanyEmployees();", "public function getEmployees() {\n\n /* Fetch all included employee IDs */\n $employeeIDs = $this->getIncludedEmployeeIDs();\n\n\n /* Set orWhereIn variables */\n array_push($this->whereIn, [\n 'column' => 'employee_id',\n 'array' => $employeeIDs\n ]);\n }", "public function employees()\n {\n $response = $this->client->get('employees');\n\n return collect($response->json('collection'))->mapInto(Employee::class);\n }", "public static function FilterByEmployees() {\n\t\t\t\n\t\t\t$sql = \"SELECT Code,Employee_Name FROM employees\";\n\t\t\t$statement = Database::$db->prepare($sql);\n\t\t\t$statement->execute();\n\t\t\t$employees1 = [];\n\t\t\twhile($row = $statement->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t\t$employees1[] = new Employee($row['Code']);\n\t\t\t}\n\t\t\treturn $employees1;\n\t\t}", "public function selectAll() {\n\t\t$employees = $this->employee->all();\n\n\t\t$data = array();\n\t\tforeach ($employees as $employee) {\n\t\t\t$data[] = array(\n\t\t\t\t'name' => $employee->name . ' (' . $employee->contact_number . ')',\n\t\t\t\t'id' => $employee->id,\n\t\t\t);\n\t\t}\n\n\t\treturn $data;\n\t}", "function exeGetAllEmployees() {\n $exeGetAllEmployees = $this->db->query(\"SELECT *\n FROM employees\n WHERE status >= 0\n ORDER BY firstname ASC, lastname ASC\");\n \n return $exeGetAllEmployees->result_array();\n }", "public function getAllEmp(){\n\t\t$sql = \"SELECT * FROM empreendimento;\";\n\t\treturn $this->Model->getData($sql);\n\t}", "public function dataTablesEployees(){\n\t\t\t$this->ajaxEmployeeList();\n\t\t\tif($_POST['length'] != -1){\n\t\t\t\t$this->db->limit($_POST['length'],$_POST['start']);\n\t\t\t}\n\t\t\t$query = $this->db->get();\n\t\t\treturn $query->result_array();\n\t\t}", "public static function getEmployees($conn) {\r\n\r\n \r\n // set static database connection\r\n $dbc = $conn->getdbc();\r\n\r\n // for now (or permanently) directly include SQL here\r\n $sql_showEmployees = \"SELECT * FROM employees\";\r\n\r\n\r\n if ($result = $dbc->query($sql_showEmployees)) {\r\n\r\n $employees = [];\r\n\r\n while ($row = $result->fetch()) {\r\n\r\n $employees[] = Employee::create($conn, $row['id'], $row['fname'], $row['lname'], $row['email']);\r\n }\r\n // return users array\r\n return $employees;\r\n } else {\r\n\r\n echo \"<p> Could not run query </p>\";\r\n }\r\n }", "public static function getList(){\n return DB::table('employees')->get();\n }", "public function getEmployees()\n {\n if ($this->_employees === null) {\n // Use the internal _getProperty() API to read the actual property.\n // NOTE: This function only throws if \"employees\" contains any\n // invalid non-basic data. Only basic PHP types are accepted.\n $this->_employees = $this->_getProperty('employees'); // Throws.\n }\n\n foreach ($this->_employees as &$value) {\n if (is_array($value)) {\n $value = new User($value); // Throws.\n }\n }\n\n return $this->_employees;\n }", "public function selectAll() {\r\n $query = \"SELECT * FROM \" . EmpleoDAO::EMPLEO_TABLE;\r\n $result = mysqli_query($this->conn, $query);\r\n $empleos = array();\r\n while ($empleoBD = mysqli_fetch_array($result)) {\r\n\r\n $empleo = new Empleo();\r\n $empleo->setId($empleoBD[\"idJob\"]);\r\n $empleo->setPosition($empleoBD[\"position\"]);\r\n $empleo->setCompany($empleoBD[\"company\"]);\r\n $empleo->setLogo($empleoBD[\"logo\"]);\r\n $empleo->setDescription($empleoBD[\"description\"]);\r\n $empleo->setSalary($empleoBD[\"salary\"]);\r\n\r\n array_push($empleos, $empleo);\r\n }\r\n return $empleos;\r\n }", "public function GetAllEmployees()\r\n\t{\t\r\n\t\t$WhereCondition = \"\";\r\n\t\t$query = $this->db->query(\" \t\r\n\t\t\t\t\t\t\t\t\tSELECT * FROM `tbl_user`\r\n\t\t\t\t\t\t\t\t\tWHERE user_designation_id = 3\r\n\t\t\t\t\t\t\t\t\t$WhereCondition\r\n\t\t\t\t\t\t\t\t\tORDER BY user_name\r\n\t\t\t\t\t\t\t\t\");\r\n\t\t$result = $query->result_array();\t\t\t\r\n\t\treturn $result;\r\n\t}", "public function index()\n {\n return Api_Employees::all()->toArray(); \n }", "public function getAllEmployers();", "public function getThemAll(){\n $query = '//employees/employee/.';\n //$employees = $this->domDocument->getElementsByTagName('employee');\n\n // create a new XPath object and associate it with the document we want to query against\n $xpath = new DOMXPath($this->domDocument);\n $result = $xpath->query($query);\n $arrEmps = array();\n if($result->length){\n // iterate of the results\n $classCounter = 0;\n foreach($result as $emp) {\n // add the details of the employee to an array\n $arrEmps[$classCounter][\"name\"] = $emp->getElementsByTagName(\"name\")->item(0)->nodeValue;\n //echo $arrEmps[$classCounter][\"name\"].\"<br><hr>\";\n $arrEmps[$classCounter][\"gender\"] = $emp->getElementsByTagName(\"gender\")->item(0)->nodeValue;\n //echo $arrEmps[$classCounter][\"gender\"].\"<br><hr>\";\n $arrEmps[$classCounter][\"phone\"] = $emp->getElementsByTagName(\"phone\")->item(0)->nodeValue;\n //echo $arrEmps[$classCounter][\"phone\"].\"<br><hr>\";\n $arrEmps[$classCounter][\"email\"] = $emp->getElementsByTagName(\"email\")->item(0)->nodeValue;\n //echo $arrEmps[$classCounter][\"email\"].\"<br><hr>\";\n $classCounter +=1;\n //echo $classCounter.\"<br><hr>\";\n }\n }\n return $arrEmps;\n }", "public function getEmployees() { // gets all employees who have the responsability of dealing with visitor comments\n $db = Database::getDB();\n $query = 'SELECT * FROM planners WHERE employeeID < 5\n ORDER BY employeeID';\n $statement = $db->prepare($query);\n $statement->execute();\n \n $employees = array();\n foreach ($statement as $row) {\n $employee = new Employee($row['employeeID'],$row['fname']);\n $employees[] = $employee;\n }\n return $employees;\n }", "public function employees()\n {\n return $this->users->where('account_type', 'Employee');\n }", "private function listEmployee()\n\t{\n\t\t$employees = $this->employee->getEmployee();\n\t\t$cnt = 1;\n\t\tforeach($employees as $key => $val)\n\t\t{\n\t\t\t$arr = array('CNT' => $cnt,\n\t\t\t\t\t\t 'EMPLOYEE_NAME' => $val['name_employee'],\n\t\t\t\t\t\t 'EMPLOYEE_ID' => $val['id_employee'],\n\t\t\t\t\t\t 'EMPLOYEE_MAIL' => $val['mail_employee']);\n\t\t\t$cnt ++;\n\t\t\t$this->view->addToReplace($arr);\n\t\t\t$this->arrRender['LISTEMPLOYEES'] .= $this->view->\n\t\t\tsetTemplateFile('employeeslist')->renderFile();\n\t\t}\n\t}", "public function getEmployees() {\n if ( is_null($this->_employees) ){\n $customers = $this->getTable()->getEmployees();\n $objects = new splObjectStorage();\n\n foreach ($customers AS $customer) {\n try {\n $ccust = new Yourdelivery_Model_Customer_Company($customer->customerId, $this->getId());\n if ($ccust->isDeleted()) {\n continue;\n }\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n continue;\n }\n $objects->attach($ccust);\n }\n $this->_employees = $objects;\n }\n return $this->_employees;\n }", "public function getEmployees()\n {\n return $this->hasMany(Employee::className(), ['Emp_tumbol' => 'id']);\n }", "public function Employees()\n {\n $this->_Employees->ClearAllOptions();\n return $this->_Employees;\n }", "function getEmployees($crewName) {\r\n\t\tglobal $databaseName;\r\n\t\tglobal $timesheetDate;\r\n\t\tglobal $builder;\r\n\t\tglobal $subdivision;\r\n\t\tglobal $lot;\r\n\t\tglobal $action;\r\n\t\t$employeesArr = array();\r\n\t\t\r\n\t\t$timesheetDateTS = strtotime($timesheetDate);\r\n\t\tif($timesheetDateTS > 0) {\r\n\t\t\t$date = date('m/d/y', $timesheetDateTS);\r\n\t\t}\r\n\r\n\t\t// Get Forman employees.\r\n\t\t$sql = \"select * from \" . $databaseName . \".employees where `crew_name`='\" . $crewName . \"' and `is_forman`='1'\";\r\n\t\t$records = mysqli_query($this->con, $sql);\r\n\t\t\r\n\t\twhile($rows = mysqli_fetch_array($records)) {\r\n\t\t\t$employee = new Employee();\r\n\t\t\t$employeeName = trim($rows['first']) . \" \" . trim($rows['last']);\r\n\t\t\t$employee->setName($employeeName);\r\n\t\t\t$employee->setWage($rows['wage']);\r\n\t\t\tarray_push($employeesArr, $employee);\r\n\t\t}\r\n\t\t\r\n\t\t// Get Mason employees.\r\n\t\t$sql = \"select * from \" . $databaseName . \".employees where `crew_name`='\" . $crewName . \"' and `is_mason`='1'\";\r\n\t\t$records = mysqli_query($this->con, $sql);\r\n\t\t\r\n\t\t// Get Employees from DB.\r\n\t\twhile($rows = mysqli_fetch_array($records)) {\r\n\t\t\t$employee = new Employee();\r\n\t\t\t$employeeName = trim($rows['first']) . \" \" . trim($rows['last']);\r\n\t\t\t$employee->setName($employeeName);\r\n\t\t\t$employee->setWage($rows['wage']);\r\n\t\t\t\r\n\t\t\tif(!in_array($employee, $employeesArr)) {\r\n\t\t\t\tarray_push($employeesArr, $employee);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Get Apprentice employees.\r\n\t\t$sql = \"select * from \" . $databaseName . \".employees where `crew_name`='\" . $crewName . \"' and `is_apprentice`='1'\";\r\n\t\t$records = mysqli_query($this->con, $sql);\r\n\t\t\r\n\t\t// Get Employees from DB.\r\n\t\twhile($rows = mysqli_fetch_array($records)) {\r\n\t\t\t$employee = new Employee();\r\n\t\t\t$employeeName = trim($rows['first']) . \" \" . trim($rows['last']);\r\n\t\t\t$employee->setName($employeeName);\r\n\t\t\t$employee->setWage($rows['wage']);\r\n\t\t\t\r\n\t\t\tif(!in_array($employee, $employeesArr)) {\r\n\t\t\t\tarray_push($employeesArr, $employee);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Get Apprentice employees.\r\n\t\t$sql = \"select * from \" . $databaseName . \".employees where `crew_name`='\" . $crewName . \"' and `is_labor`='1'\";\r\n\t\t$records = mysqli_query($this->con, $sql);\r\n\t\t\r\n\t\t// Get Employees from DB.\r\n\t\twhile($rows = mysqli_fetch_array($records)) {\r\n\t\t\t$employee = new Employee();\r\n\t\t\t$employeeName = trim($rows['first']) . \" \" . trim($rows['last']);\r\n\t\t\t$employee->setName($employeeName);\r\n\t\t\t$employee->setWage($rows['wage']);\r\n\t\t\t\r\n\t\t\tif(!in_array($employee, $employeesArr)) {\r\n\t\t\t\tarray_push($employeesArr, $employee);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Get Driver employees.\r\n\t\t$sql = \"select * from \" . $databaseName . \".employees where `crew_name`='\" . $crewName . \"' and `is_driver`='1'\";\r\n\t\t$records = mysqli_query($this->con, $sql);\r\n\t\t\r\n\t\t// Get Employees from DB.\r\n\t\twhile($rows = mysqli_fetch_array($records)) {\r\n\t\t\t$employee = new Employee();\r\n\t\t\t$employeeName = trim($rows['first']) . \" \" . trim($rows['last']);\r\n\t\t\t$employee->setName($employeeName);\r\n\t\t\t$employee->setWage($rows['wage']);\r\n\t\t\t\r\n\t\t\tif(!in_array($employee, $employeesArr)) {\r\n\t\t\t\tarray_push($employeesArr, $employee);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Get Operator employees.\r\n\t\t$sql = \"select * from \" . $databaseName . \".employees where `crew_name`='\" . $crewName . \"' and `is_operator`='1'\";\r\n\t\t$records = mysqli_query($this->con, $sql);\r\n\t\t\r\n\t\t// Get Employees from DB.\r\n\t\twhile($rows = mysqli_fetch_array($records)) {\r\n\t\t\t$employee = new Employee();\r\n\t\t\t$employeeName = trim($rows['first']) . \" \" . trim($rows['last']);\r\n\t\t\t$employee->setName($employeeName);\r\n\t\t\t$employee->setWage($rows['wage']);\r\n\t\t\t\r\n\t\t\tif(!in_array($employee, $employeesArr)) {\r\n\t\t\t\tarray_push($employeesArr, $employee);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $employeesArr;\r\n\t}", "public static function show(Employee $employee): array\n {\n return [\n 'id' => $employee->id,\n 'first_name' => $employee->first_name,\n 'last_name' => $employee->last_name,\n 'name' => $employee->name,\n 'email' => $employee->email,\n 'phone' => $employee->phone_number,\n 'birthdate' => (! $employee->birthdate) ? null : [\n 'year' => $employee->birthdate->year,\n 'month' => $employee->birthdate->month,\n 'day' => $employee->birthdate->day,\n ],\n 'hired_at' => (! $employee->hired_at) ? null : [\n 'year' => $employee->hired_at->year,\n 'month' => $employee->hired_at->month,\n 'day' => $employee->hired_at->day,\n ],\n 'twitter_handle' => $employee->twitter_handle,\n 'slack_handle' => $employee->slack_handle,\n 'max_year' => Carbon::now()->year,\n 'timezone' => $employee->timezone,\n ];\n }", "public function listAllEmployees()\n {\n foreach (Employee::all() as $employee) {\n $response[] = new EmployeeResource($employee);\n }\n return $this->responseSuccess(['employees' => $response]);\n }", "private function _serializeEmployees($result)\n {\n $employees = array();\n while ($record = sqlsrv_fetch_array($result, SQLSRV_FETCH_ASSOC)) {\n $employees[] = $this->_serializeEmployee($record);\n }\n\n return $employees;\n }", "public static function getEmployee()\n {\n $employees = Employee::select('id', 'name')\n ->where('owner_id', auth_cache()->userable->id)\n ->whereDoesntHave('roles')\n ->get();\n\n return response()->json($employees);\n }", "public static function employees(Company $company): array\n {\n // number of employees in total\n $totalNumberOfEmployees = $company->employees()->notLocked()->count();\n\n // 10 random employees\n $tenRandomEmployeesCollection = collect([]);\n $allEmployees = $company->employees()\n ->notLocked()\n ->with('picture')\n ->inRandomOrder()\n ->take(10)\n ->get();\n\n foreach ($allEmployees as $employee) {\n $tenRandomEmployeesCollection->push([\n 'id' => $employee->id,\n 'name' => $employee->name,\n 'avatar' => ImageHelper::getAvatar($employee, 32),\n 'url' => route('employees.show', [\n 'company' => $company,\n 'employee' => $employee,\n ]),\n ]);\n }\n\n // ten random employees\n\n // number of employees hired in the current year\n $employeesHiredInTheCurrentYear = $company->employees()\n ->notLocked()\n ->whereYear('hired_at', (string) Carbon::now()->year)\n ->count();\n\n return [\n 'employees_hired_in_the_current_year' => $employeesHiredInTheCurrentYear,\n 'ten_random_employees' => $tenRandomEmployeesCollection,\n 'number_of_employees_left' => $totalNumberOfEmployees - $tenRandomEmployeesCollection->count(),\n 'view_all_url' => route('employees.index', [\n 'company' => $company,\n ]),\n ];\n }", "public function getAllDataEmployees(){\n\t\t\t$this->db->select('*')->from('tbl_employees');\n\t\t\treturn $this->db->count_all_results();\n\t\t}", "public function allEmployees()\n {\n // $employees=employee::all();\n // return view('all.employee',compact('$employees'));\n // return view('allemployees');\n \n $emp=employee::all();\n // $dt=DB::table('employees')->get();\n // return dd($emp);\n // print_r($emp);\n \n return view('allemployees',compact('emp'));\n // return view('allemployees')->with('emp',$dt);\n }", "public function get_all() {\n return $this->db->get('empresas')\n ->result();\n }", "public function GetExitsWithAssets() {\n\t\t$objStmt = $this->objDb->prepare(\"\n\t\t\tSELECT e.employee_id, CONCAT(e.firstname, ' ', e.lastname) FROM employee AS e\n\t\t\tWHERE e.employee_id IN (SELECT ea.employee_id FROM employee_asset AS ea) AND e.exit = 1\n\t\t\tORDER BY e.lastname, e.firstname;\n\t\t\");\n\t\t$objStmt->execute();\n\t\t$objStmt->bind_result($intEmployeeId, $strName);\n\n\t\t$arrEmployees = array();\n\n\t\twhile ($objStmt->fetch()) {\n\t\t\t$arrRow = array();\n\t\t\t$arrRow['employee_id'] = $intEmployeeId;\n\t\t\t$arrRow['name'] = $strName;\n\t\t\tarray_push($arrEmployees, $arrRow);\n\t\t\tunset($arrRow);\n\t\t}\n\t\t$objStmt->close();\n\n\t\treturn $arrEmployees;\n\t}", "public function getEmployeesByName(Request $request) \n {\n $employees = Employees::getEmployeesByName($request->input('name'));\n\n $newArrayEmployees = [];\n foreach($employees as $key => $employee){\n $newArrayEmployees[$key] = $this->generateEmployeeData($employee);\n }\n\n sort($newArrayEmployees);\n\n return $newArrayEmployees;\n }", "public function index()\n {\n return Employee::all();\n }", "public function getEmployeeByName(Request $request) \n {\n $employees = Employees::getEmployeeByName($request->input('name'));\n\n $newArrayEmployees = [];\n foreach($employees as $key => $employee){\n $newArrayEmployees[$key] = $this->generateEmployeeData($employee);\n }\n\n return $newArrayEmployees;\n }", "function exeGetEmployeeList() {\n $exeGetEmployeeList = $this->db->query(\"SELECT *\n FROM employees a\n LEFT JOIN employee_details b\n ON a.user_id = b.user_id \n WHERE a.status >=0\");\n \n if($exeGetEmployeeList->num_rows() > 0) {\n return $exeGetEmployeeList->result_array();\n } else {\n return false;\n }\n }", "public static function getEnterpriseCompanies(){\n $result = db::get(\"SELECT uid_empresa FROM \". TABLE_EMPRESA .\" WHERE is_enterprise = 1 ORDER BY nombre\", \"*\", 0, \"empresa\");\n return new ArrayObjectList($result);\n }", "public function getAllOfficeEmployers();", "public function employees() {\n return $this->hasMany(Employee::class);\n }", "function getAllEmpleadosDatos()\n\t\t\t{\n\t\t\t\t$request=\"SELECT `Id_Empleado` FROM `empleados` WHERE 1\";\n\t\t\t\t$result=$this->query->consulta($request);\n\t\t\t\t$empleadosIds=array();\n\t\t\t\t$empleadosDatos=array();\n\t\t\t\tif ($result->num_rows > 0) {\n\t\t\t \n\t\t\t\t while($datos = $result->fetch_assoc()) {\n\n\t\t\t\t array_push($empleadosIds,$datos[\"Id_Empleado\"]);\n\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\tforeach ($empleadosIds as $id_empleado) {\n\t\t\t\t\t\n\t\t\t\t\t$empleado_temp=new Empleado();\n\t\t\t\t\t$empleado_temp->obtenerDatosId($id_empleado);\n\t\t\t\t\tarray_push($empleadosDatos,$empleado_temp->getAllDatos2());\n\n\t\t\t\t}\n\n\t\t\t\treturn $empleadosDatos; \n\t\t\t}", "public function employees()\n {\n return $this->hasMany(Employee::class);\n }", "public function showEmployees() {\n\n $employeeModel = $GLOBALS[\"employeeModel\"];\n\n // get all the employees from the db.\n $included_employee = $employeeModel->getAll();\n $data = array(\"included_employees\" => $included_employee);\n return $this->render(\"listEmployees\", $data);\n }", "public function getEmployeeAll($key)\n\t{\n\t\t$query = $this->db->query(\"SELECT * from er.er_employee_all where employee_name like '%\".$key.\"%'\");\n\t\treturn $query->result_array();\n\t}", "public function findAll()\r\n {\r\n $sql = \"select * from tb_employer where employerid <> 1 order by employerid asc\";\r\n $statement = $this->commonPDO->query($sql);\r\n return $statement->fetchAll();\r\n }", "public function getArrayAllEngineers(){\n $query = $this->db->query(\"\n SELECT \n CONCAT(n_name_user, ' ', n_last_name_user) AS name, \n k_id_user AS id\n FROM user WHERE n_role_user = 'ingeniero'\n \");\n $ingenieros = [];\n for ($i=0; $i < count($query->result_array()); $i++) { \n $ingenieros[$i]['name'] = $query->result_array()[$i]['name'];\n $ingenieros[$i]['id'] = $query->result_array()[$i]['id'];\n }\n return $ingenieros;\n }", "function select_all_employee()\n{\n $name = null;\n $query = \" SELECT id, surname, name FROM angajati WHERE deleted=0 ORDER BY surname\";\n $result = Database::getInstance()->getConnection()->query($query);\n if (!$result) {\n $status_text = Database::getInstance()->getConnection()->error;\n ?>\n <p id=\"status_baloon\" class=\"bg-danger alert h3\"><?= $status_text ?></p> <?php\n die();\n }\n while ($row = $result->fetch_assoc()) {\n $id = $row['id'];\n $name[$id] = $row['surname'] . \" \" . $row['name'];\n }\n $result->free_result();\n return $name;\n}", "public static function FilterByActivity() {\n\t\t\t\n\t\t\t$sql = \"SELECT Code,Title FROM employees\";\n\t\t\t$statement = Database::$db->prepare($sql);\n\t\t\t$statement->execute();\n\t\t\t$employees1 = [];\n\t\t\twhile($row = $statement->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t\t$employees1[] = new Employee($row['Code']);\n\t\t\t}\n\t\t\treturn $employees1;\n\t\t}", "public function getEmployeeFullNames()\n {\n $employees = Employee::select('employees.*')\n ->crossJoin('policy_flows', 'employees.id', '=', 'policy_flows.to_employee_id')\n ->crossJoin('policies', 'policy_flows.policy_id', '=', 'policies.id')\n ->where('policies.contract_id', '=', $this->id)\n ->whereNull(['policy_flows.deleted_at', 'policies.deleted_at'])\n ->get();\n\n $full_names = [];\n foreach($employees as /* @var $employee Employee */ $employee) {\n $full_names[] = $employee->getFullName();\n }\n\n return array_unique($full_names);\n }", "public function get_employees() {\n\n\t\t$data['title'] = $this->Xin_model->site_title();\n\t\t$id = $this->uri->segment(4);\n\t\t\n\t\t$data = array(\n\t\t\t'company_id' => $id\n\t\t\t);\n\t\t$session = $this->session->userdata('username');\n\t\tif(!empty($session)){ \n\t\t\t$this->load->view(\"admin/events/get_employees\", $data);\n\t\t} else {\n\t\t\tredirect('admin/');\n\t\t}\n\t\t// Datatables Variables\n\t\t$draw = intval($this->input->get(\"draw\"));\n\t\t$start = intval($this->input->get(\"start\"));\n\t\t$length = intval($this->input->get(\"length\"));\n\t }", "public function getExames()\n {\n $sql = $this->pdo->prepare('select * from tb_exames');\n $sql->execute();\n\n $lista = array();\n\n if ($sql->execute()) {\n // Query succeeded.\n while ($dados = $sql->fetch(PDO::FETCH_OBJ)) {\n $exame = new Exame();\n\n $exame->setId($dados->id);\n $exame->setNome($dados->nome);\n $exame->setValor($dados->valor);\n $exame->setEspecial($dados->especial);\n $exame->setAtivo($dados->ativo);\n\n\n $lista[] = $exame;\n }\n } else {\n // Query failed.\n echo $sql->errorCode();\n return null;\n }\n\n return $lista;\n }", "public function listeEmployee(){\n\t\t\t\t\t $sql = \"SELECT * FROM employee\";\n\t\t\t\t\t if($this->db != null)\n\t\t\t\t\t {\n\t\t\t\t\t return $this->db->query($sql)->fetchAll();\n\t\t\t\t\t }else{\n\t\t\t\t\t return null;\n\t\t\t\t\t }\n\t\t\t\t\t }", "public function listarEmpresas()\n {\n $query = \"SELECT e.id_empresa,e.nombre_empresa, e.celular_empresa,e.direccion_empresa,e.municipio_empresa,e.representante_legal,e.sector_empresa,e.actividad_empresa,e.correo_empresa, e.nit_empresa,c.fecha_inicio,c.fecha_expiracion FROM empresa AS e LEFT JOIN convenio AS c ON e.id_empresa = c.id_empresa\";\n $lista_empresas = NULL;\n $stmt = $this->conexion->prepare($query);\n if (!$stmt->execute()) {\n $stmt->closeCursor();\n return 0;\n } else {\n while ($result = $stmt->fetch(PDO::FETCH_ASSOC)) {\n $lista_empresas[] = $result;\n }\n $stmt->closeCursor();\n return $lista_empresas;\n }\n }", "public function getUsers(){\n\t\t\n\t\t$ar = array();\n\t\t\n\t\t$result = $this->adapter->query(\"select * from vemplist order by ctct_name\")->execute();\n\t\t\n\t\tforeach ($result as $row) \n\t\t\t{\n\t\t\t\t$ar[$row['emp_id']]=$row['ctct_name'];\n\t\t\t}\n\t\t\n\t\treturn $ar;\n\t}", "public static function findAllEmpls(){\n try {\n\t\t\t$liste = new Liste();\n\t\t\t$requete = \"SELECT * FROM user where type_user='emp'\";\n\t\t\t$cnx = Database::getInstance();\n\t\t\t$res = $cnx->query($requete);\n\t\t foreach($res as $row) {\n\t\t\t\t$u = new User();\n\t\t\t\t$u->loadFromRecord($row);\n\t\t\t\t$liste->add($u);\n\t\t }\n\t\t $cnx = null;\n\t\t\treturn $liste;\n\t\t} catch (PDOException $e) {\n\t\t print \"Error!: \" . $e->getMessage() . \"<br/>\";\n\t\t return $liste;\n\t\t}\t\n }", "public function employees()\n {\n return $this->belongsToMany(Employee::class);\n }", "public function GetAppraisalEmployeeData(){\n $sql = \"select appraisal_employee.*,\n employee.first_name,\n employee.last_name,\n designation.des_name,\n appraisal_category.category_name\n from appraisal_employee\n left join employee on appraisal_employee.em_id = employee.em_id\n left join designation on employee.des_id = designation.id\n left join appraisal_category on appraisal_employee.category_id = appraisal_category.id\";\n $query = $this->db->query($sql);\n $result = $query->result();\n\n return $result;\n }", "public function populateEmployees(){\n $list = $this->employee->get_employees();\n $data = array();\n foreach ($list as $employee) {\n $row = array();\n $row[] = '<td class=\"min-width nowrap\"><input type=\"checkbox\" value=\"'.$employee->employeeID.'\"></td>';\n $row[] = \"#\".$employee->employeeID;\n $row[] = $employee->name;\n $row[] = '<a href=\"mailto:'.$employee->email.'\">'.$employee->email.'</a>';\n $row[] = $employee->mobile;\n $row[] = $employee->employeeCode;\n $row[] = $employee->managerName;\n $row[] = $employee->departmentName;\n $row[] = $employee->companyName;\n $row[] = $employee->designation;\n $row[] = $employee->address;\n $row[] = $employee->panCard;\n $row[] = $employee->aadharCard;\n\t\t\t$row[] ='<td class=\"nowrap\"><p>\n\t\t\t\t\t<span class=\"btn-xs btn fa fa-edit\" onclick=\"updateClick('.$employee->employeeID.');\"></span> \n\t\t\t\t\t<a class=\"btn-secondary btn-xs fa fa-eye\" href=\"/admin/employee/'.$this->encrypt->encode($employee->employeeID).'\"></a>\n\t\t\t\t\t</p></td>';\n\t\t\t\n array_push($data, $row);\n }\n \n $output = array(\n\t\t\t\"draw\" => $_POST['draw'],\n\t\t\t\"recordsTotal\" => $this->employee->count_all(),\n\t\t\t\"recordsFiltered\" => $this->employee->count_filtered(),\n\t\t\t\"data\" => $data,\n\t\t);\n echo json_encode($output);\n }", "public function get_employees() {\n\n\t\t$data['title'] = $this->Xin_model->site_title();\n\t\t$id = $this->uri->segment(4);\n\t\t\n\t\t$data = array(\n\t\t\t'company_id' => $id\n\t\t\t);\n\t\t$session = $this->session->userdata('username');\n\t\tif(!empty($session)){ \n\t\t\t$this->load->view(\"admin/assets/get_employees\", $data);\n\t\t} else {\n\t\t\tredirect('admin/');\n\t\t}\n\t\t// Datatables Variables\n\t\t$draw = intval($this->input->get(\"draw\"));\n\t\t$start = intval($this->input->get(\"start\"));\n\t\t$length = intval($this->input->get(\"length\"));\n\t }", "function getPartnersList()\n {\n $partners = Employee::where('Emp_level' , '=', 4)->get();\n $partnersList = [];\n\n foreach ($partners as $partner) {\n $partnerName = $partner->Emp_Firstname .\" \". $partner->Emp_Lastname;\n array_push($partnersList, $partnerName);\n }\n\n return $partnersList;\n\n }", "public function getAllEmployees(Request $request): Response\n {\n $firstName = $request->query->get(\"firstName\");\n $lastName = $request->query->get(\"lastName\");\n\n $result = $this->service->getAllEmployees($firstName, $lastName);\n\n return $this->mapResponse($request, $result);\n }", "public function employees()\n {\n return $this->hasMany(Employee::class);\n\n }", "public function list ()\n {\n $employees[\"data\"] = Employee::get();\n $employees['deleted'] = \"0\";\n\n return view(\"employee.list\", compact(\"employees\"));\n }", "public function get_all_eleves()\n {\n\n $requete = \"SELECT id, nom, prenom, date_naissance, moyenne, appreciation FROM eleve\";\n $eleves = $this->Db_connect->prepare($requete);\n $eleves->setFetchMode(PDO::FETCH_CLASS, Eleve::class);\n $eleves->execute();\n $eleves = $eleves->fetchAll();\n\n\n return $eleves;\n }", "public function getUsers()\n {\n $sql = \"SELECT * FROM users\";\n $query = pg_query($this->conn, $sql) or die(\"error to fetch employees data\");\n $data = pg_fetch_all($query);\n\n echo json_encode($data);\n \n }", "public function employees(): HasMany\n {\n return $this->hasMany(Employee::class);\n }", "function get_all_employees($terms = null ){\n\t\tif(!is_null($terms)){\n\t\t\t$sql = \"SELECT *\n\t\t\tFROM employees\n\t\t\tWHERE employee_name LIKE '$terms%' \";\n\t\t\tif(is_numeric($terms)){\n\t\t\t$sql = \"SELECT *\n\t\t\tFROM employees\n\t\t\t\tWHERE employee_id = '$terms' \";\n\t\t\t}\n\t\t\t$query = $this->db->query($sql);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t$query = $this->db->get('employees');\n\t\t}\n\t\treturn $query->result();\n\t\t\n\t}", "function ajaxGetEmployeesFromDB() {\n $employeeArray = getEmployees();\n echo json_encode($employeeArray);\n }", "public function index() {\n return response()->json(Employee::all());\n }", "public function getEmployeeList($postData){\n\t\t$this->db->select('EMP_ID, EMP_NAME');\n\t\t$this->db->from('ALL_EMP_MST A');\n\t\t$this->db->where(['A.EMP_DEP_ID'=>$postData]);\n\t\t$q = $this->db->get();\t\t\t\t\n \t$response = $q->result_array();\n \treturn $response;\n\t}", "public function employees() {\n $employees = User::where('organizationId', '=', Auth::user()->organizationId)\n ->where('role', '=', 'employee')\n ->orderby('name')\n ->get();\n\n return view('admin.employees', compact('employees'));\n }", "public function consultaEmpresas() {\n\t\t\treturn $this->entidad->getRepository('\\Entidades\\Expertos\\UsuariosEmpresa')->findBy(array('estado' => 1));\n\t\t}", "public function workers_availability() \n { \n $q = $this->db->prepare(\"SELECT empID, fName, lName FROM Employees\");\n \n if (!$q->execute())\n return false;\n \n $result = $q->get_result();\n \n $employees = array();\n \n $i = 0;\n \n while ($row = mysqli_fetch_assoc($result)) // set up associative array with relevant information for each employee\n {\n $employees[$i]['empID'] = $row['empID']; \n $employees[$i]['fName'] = $row['fName']; \n $employees[$i]['lName'] = $row['lName']; \n $employees[$i]['shifts'] = $this->get_worker_hours($employees[$i]['empID']);\n \n $i++;\n }\n \n // echo '<pre>'; print_r($employees); echo '</pre>';\n \n return $employees;\n }", "public function index()\n {\n //\n $results = Result::orderBy('id', 'asc')->get();\n\n // load the view and pass the employees\n return $results;\n }", "public function employees(Request $request)\n {\n $searchTerm = $request -> searchTerm;\n $options;\n if(!isset($request -> searchTerm))\n $options = Employee :: all();\n else\n {\n $options = Employee :: where('name','like','%'.$searchTerm.'%')\n ->get();\n }\n $data = array();\n foreach($options as $option)\n {\n $data[] = array('id' => $option -> id,'text' => $option -> name);\n }\n return json_encode($data);\n }", "function print_Employees(){\n $result = $this->query(\"SELECT * FROM EMPLOYEES\");\n while($row = mysqli_fetch_array($result)) {\n echo $row['ID'] . \" \" . $row['FIRST'] . \" \" . $row['LAST'];\n echo \"<br>\";\n }\n \n $result->close();\n }", "public static function FilterByTasks() {\n\t\t\t\n\t\t\t$sql = \"SELECT Code,Task_Title FROM employees\";\n\t\t\t$statement = Database::$db->prepare($sql);\n\t\t\t$statement->execute();\n\t\t\t$employees1 = [];\n\t\t\twhile($row = $statement->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t\t$employees1[] = new Employee($row['Code']);\n\t\t\t}\n\t\t\treturn $employees1;\n\t\t}", "function ajaxGetEmployeeNamesFromDB() {\n $employeeArray = getEmployeeNames();\n echo json_encode($employeeArray);\n }", "public static function get_staff()\n {\n $sql = \"SELECT EM1_EmployeeID_pk, EM1_FullNameNoTitle, EM1_Lname_ind, S_SectionID_pk, SE_SectionEmployeeID_pk FROM t_Section INNER JOIN t_j_SectionEmployee ON S_SectionID_pk = SE_SectionID_ind_fk INNER JOIN t_Employee1 ON SE_EmployeeID_fk = EM1_EmployeeID_pk ORDER BY EM1_Lname_ind ASC\";\n $stmt = \\NMI::Db()->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll();\n \n }", "public function getEmployees(): View\n {\n $employeeRespository = $this->getDoctrine()->getRepository(Employee::class);\n\n // query for a single Product by its primary key (usually \"id\")\n $employees = $employeeRespository->findall();\n\n // In case our GET was a success we need to return a 200 HTTP OK response with the collection of article object\n return View::create($employees, Response::HTTP_OK);\n }", "public function findEmployeeByName($name) {\n // use XPath to find the employee we're looking for\n $query = '//employees/employee/name[text() = \"' . $name . '\"]/..';\n\n // create a new XPath object and associate it with the document we want to query against\n $xpath = new DOMXPath($this->domDocument);\n $result = $xpath->query($query);\n $arrEmps = array();\n if($result->length){\n // iterate of the results\n $classCounter = 0;\n foreach($result as $emp) {\n // add the details of the employee to an array\n $arrEmps[$classCounter][\"name\"] = $emp->getElementsByTagName(\"name\")->item(0)->nodeValue;\n $arrEmps[$classCounter][\"gender\"] = $emp->getElementsByTagName(\"gender\")->item(0)->nodeValue;\n $arrEmps[$classCounter][\"phone\"] = $emp->getElementsByTagName(\"phone\")->item(0)->nodeValue;\n $arrEmps[$classCounter][\"email\"] = $emp->getElementsByTagName(\"email\")->item(0)->nodeValue;\n $classCounter++;\n }\n }\n return $arrEmps;\n }", "function getEmployees($phase_id)\n {\n $empfilter = \"\";\n\n // Get the project id of the given project phase\n $phasenode = &getNode(\"project.phase\");\n $projectids = $phasenode->selectDb(\"phase.id='$phase_id'\", \"\", \"\", \"\", array(\"projectid\"));\n $projectid = $projectids[0][\"projectid\"][\"id\"];\n\n // Get a list of team member personids\n $project_personemployeenode = &getNode(\"project.project_personemployee\");\n $personids = $project_personemployeenode->selectDb(\"project_person.projectid='$projectid'\", \"\", \"\", \"\", array(\"personid\"));\n $personidarray = array();\n foreach ($personids as $personid)\n $personidarray[] = $personid[\"personid\"][\"id\"];\n\n // If any team members found for the given project, then add a filter\n // limiting the result to be (a subset of) the project team\n if (count($personidarray) > 0)\n {\n $empfilter .= \" AND person.id IN (\".implode(\",\", $personidarray).\")\";\n }\n\n // If no anyuser privilege available, then do not show employees the\n // current user isn't supervisor of\n if (!$this->hasAnyUserPrivilege())\n {\n $user = getUser();\n $empfilter .= \" AND supervisor=\".$user[\"id\"];\n }\n\n $empnode = &getNode(\"employee.employee\");\n return $empnode->selectDb(\"status='active' $empfilter\", \"person.lastname ASC, person.firstname ASC\", \"\", \"\", array(\"id\", \"lastname\", \"firstname\"));\n }", "protected function inputData() : array\n {\n return factory(Employee::class)->make()\n ->makeVisible('password')\n ->toArray();\n }", "function get_all_empresas($params = array())\n {\n $this->db->order_by('id', 'desc');\n if(isset($params) && !empty($params))\n {\n $this->db->limit($params['limit'], $params['offset']);\n }\n return $this->db->get('empresas')->result_array();\n }", "public function get_index(){\n\t\t\n\t\t$employees = Employee::all()->toArray();\n\t\treturn Response::json(compact(\"employees\"), 200);\n\t}", "public function getTasksByEmployee()\n\t{\n\t\t$sql = sprintf('SELECT\n\t\t\t\t\t\t\tnv.IFID_M316 as IFID\n\t\t\t\t\t\t\t, nv.Ref_LichLamViec\n\t\t\t\t\t\t\t, kn.Ref_KyNang\n\t\t\t\t\t\tFROM ODanhSachNhanVien as nv\n\t\t\t\t\t\tINNER JOIN OKyNang as kn on nv.IFID_M316 = kn.IFID_M316\n\t\t\t\t\t\tINNER JOIN OCongViecBaoTri as cvbt on kn.Ref_KyNang = cvbt.IOID\n\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t\tifnull(ThoiViec, 0) = 0\n\t\t\t\t\t\t\tand ifnull(cvbt.HoatDong, 0) = 1\n\t\t\t\t\t\tORDER BY nv.IFID_M316');\n\t\treturn $this->_o_DB->fetchAll($sql);\n\t}", "public function employees() {\n return $this->hasMany('App\\Employee');\n }", "public function findAllEmprunts()\n {\n $entityManager = $this->getEntityManager();\n \n $queryBuilder = $entityManager->createQueryBuilder();\n \n $queryBuilder->select('c')\n ->from(Emprunter::class, 'c')\n ->orderBy('c.date_emprunt', 'DESC');\n \n return $queryBuilder->getQuery()->getResult();\n }", "public function getAll () {\n $query = \"SELECT * FROM equipe\";\n $stmt = $this->_pdo->query($query);\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n }", "public function getEmployeesByLocation(Request $request) \n {\n $employees = Employees::getEmployeesByLocation($request->input('location'));\n\n foreach($employees as $key => $employee){\n $newArrayEmployees[$key] = $this->generateEmployeeData($employee);\n }\n\n sort($newArrayEmployees);\n\n return $newArrayEmployees;\n }", "public function traer_empresas()\n {\n $empresas=array();\n $query=$this->db->get('empresas');\n if($query->num_rows()>0)\n {\n foreach ($query->result() as $row)\n {\n $empresas[$row->id]['id']=$row->id;\n $empresas[$row->id]['nit']=$row->nit;\n $empresas[$row->id]['razon_social']=$row->razon_social;\n $empresas[$row->id]['telefono']=$row->telefono;\n $empresas[$row->id]['extension']=$row->extension;\n $empresas[$row->id]['contacto']=$row->contacto;\n $empresas[$row->id]['direccion']=$row->direccion;\n $empresas[$row->id]['rol']=$row->rol;\n } \n }\n \n return $empresas;\n }", "public function employees()\n\t{\n\t\treturn $this->hasOne(Employee::class,'id','emp_id');\t\t\t\t\n\t}", "private function getEmployeesIDs() {\n return DB::table('dx_users as u')\n ->select('u.id')\n ->whereExists(function ($query) {\n $query->select(DB::raw(1))\n ->from('dx_users_accrual_policies as a')\n ->whereRaw('a.user_id = u.id')\n ->where('a.timeoff_type_id', '=', $this->argument('timeoff_id'))\n ->whereNull('a.end_date');\n })\n ->get();\n }", "public function search_employee(Request $request)\n {\n if ($request->has('name')) {\n $name = $request->input('name');\n $employees = DB::table('employees')\n ->select('id', 'email', 'first_name', 'last_name', 'display_name')\n ->where('display_name', 'LIKE', \"%{$name}%\")\n ->get();\n\n return $employees;\n }\n\n return [];\n }", "public function createEmployeeArray($request){\n return array(\n 'first_name' => $request->first_name,\n 'last_name' => $request->last_name,\n 'email'\t\t\t => $request->email,\n 'phone'\t\t\t => $request->phone,\n 'company_id' => $request->company_id\n );\n }", "public function run()\n {\n $employees = [\n\t ['name' => 'A', 'email' => '[email protected]', 'org_id' => '1', 'salary' => '12000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'B', 'email' => '[email protected]', 'org_id' => '2', 'salary' => '30000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'C', 'email' => '[email protected]', 'org_id' => '3', 'salary' => '35000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'D', 'email' => '[email protected]', 'org_id' => '4', 'salary' => '42000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'E', 'email' => '[email protected]', 'org_id' => '5', 'salary' => '50000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'F', 'email' => '[email protected]', 'org_id' => '11', 'salary' => '10000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'G', 'email' => '[email protected]', 'org_id' => '12', 'salary' => '16000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'H', 'email' => '[email protected]', 'org_id' => '3', 'salary' => '70000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'I', 'email' => '[email protected]', 'org_id' => '14', 'salary' => '90000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'J', 'email' => '[email protected]', 'org_id' => '15', 'salary' => '60000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'K', 'email' => '[email protected]', 'org_id' => '21', 'salary' => '13000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'L', 'email' => '[email protected]', 'org_id' => '22', 'salary' => '42000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'M', 'email' => '[email protected]', 'org_id' => '23', 'salary' => '51000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'N', 'email' => '[email protected]', 'org_id' => '14', 'salary' => '59000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'O', 'email' => '[email protected]', 'org_id' => '15', 'salary' => '80000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'P', 'email' => '[email protected]', 'org_id' => '1', 'salary' => '49000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'Q', 'email' => '[email protected]', 'org_id' => '2', 'salary' => '41000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'R', 'email' => '[email protected]', 'org_id' => '3', 'salary' => '35000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'S', 'email' => '[email protected]', 'org_id' => '4', 'salary' => '32000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'T', 'email' => '[email protected]', 'org_id' => '5', 'salary' => '36800', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'U', 'email' => '[email protected]', 'org_id' => '11', 'salary' => '42300', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'V', 'email' => '[email protected]', 'org_id' => '12', 'salary' => '98000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'W', 'email' => '[email protected]', 'org_id' => '3', 'salary' => '21000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'X', 'email' => '[email protected]', 'org_id' => '14', 'salary' => '25000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'Y', 'email' => '[email protected]', 'org_id' => '15', 'salary' => '28000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'Z', 'email' => '[email protected]', 'org_id' => '21', 'salary' => '18000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'A1', 'email' => '[email protected]', 'org_id' => '22', 'salary' => '33000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'B1', 'email' => '[email protected]', 'org_id' => '23', 'salary' => '77000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'C1', 'email' => '[email protected]', 'org_id' => '24', 'salary' => '54000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'D1', 'email' => '[email protected]', 'org_id' => '25', 'salary' => '66000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'E1', 'email' => '[email protected]', 'org_id' => '2', 'salary' => '24000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'F1', 'email' => '[email protected]', 'org_id' => '30', 'salary' => '14000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'G1', 'email' => '[email protected]', 'org_id' => '30', 'salary' => '17000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'H1', 'email' => '[email protected]', 'org_id' => '9', 'salary' => '21000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'I1', 'email' => '[email protected]', 'org_id' => '10', 'salary' => '56000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'J1', 'email' => '[email protected]', 'org_id' => '16', 'salary' => '89000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'K1', 'email' => '[email protected]', 'org_id' => '17', 'salary' => '79000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'L1', 'email' => '[email protected]', 'org_id' => '18', 'salary' => '71000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'M1', 'email' => '[email protected]', 'org_id' => '19', 'salary' => '63000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'N1', 'email' => '[email protected]', 'org_id' => '20', 'salary' => '65000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'O1', 'email' => '[email protected]', 'org_id' => '2', 'salary' => '40000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'P1', 'email' => '[email protected]', 'org_id' => '29', 'salary' => '30000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'Q1', 'email' => '[email protected]', 'org_id' => '9', 'salary' => '20000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'R1', 'email' => '[email protected]', 'org_id' => '29', 'salary' => '27000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'S1', 'email' => '[email protected]', 'org_id' => '30', 'salary' => '37000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'T1', 'email' => '[email protected]', 'org_id' => '6', 'salary' => '46000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'U1', 'email' => '[email protected]', 'org_id' => '7', 'salary' => '81000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')], \n\t ['name' => 'V1', 'email' => '[email protected]', 'org_id' => '8', 'salary' => '76000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'W1', 'email' => '[email protected]', 'org_id' => '9', 'salary' => '16000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'X1', 'email' => '[email protected]', 'org_id' => '9', 'salary' => '8000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'Y1', 'email' => '[email protected]', 'org_id' => '16', 'salary' => '11000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'Z1', 'email' => '[email protected]', 'org_id' => '17', 'salary' => '13000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'A2', 'email' => '[email protected]', 'org_id' => '18', 'salary' => '23000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'B2', 'email' => '[email protected]', 'org_id' => '19', 'salary' => '43000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'C2', 'email' => '[email protected]', 'org_id' => '25', 'salary' => '39000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'D2', 'email' => '[email protected]', 'org_id' => '26', 'salary' => '51000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'E2', 'email' => '[email protected]', 'org_id' => '27', 'salary' => '58000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'F2', 'email' => '[email protected]', 'org_id' => '28', 'salary' => '63000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'G2', 'email' => '[email protected]', 'org_id' => '29', 'salary' => '19000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')],\n\t ['name' => 'H2', 'email' => '[email protected]', 'org_id' => '30', 'salary' => '9000', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')]\n\t ];\n\n\t Employee::insert($employees);\n }" ]
[ "0.8228653", "0.80621135", "0.8024984", "0.7933382", "0.7841179", "0.76505196", "0.76271236", "0.76209944", "0.75582683", "0.7542565", "0.7517745", "0.7419917", "0.7401478", "0.7297051", "0.725388", "0.7250832", "0.72376794", "0.72340286", "0.7232349", "0.7227829", "0.72247064", "0.72180444", "0.7209186", "0.71550876", "0.7119246", "0.70665526", "0.7046326", "0.7039402", "0.7031822", "0.69624996", "0.6960981", "0.6949523", "0.6935505", "0.6930413", "0.6835505", "0.67711765", "0.6742462", "0.6727132", "0.6708586", "0.67022544", "0.66986144", "0.66773343", "0.6665501", "0.66629183", "0.666233", "0.6655307", "0.664791", "0.66368407", "0.6636448", "0.66217", "0.66082126", "0.6578698", "0.6576688", "0.65707594", "0.6568193", "0.65441537", "0.65386176", "0.6512181", "0.6495512", "0.64826566", "0.6450561", "0.64487135", "0.6428014", "0.64131564", "0.6407094", "0.6404242", "0.64016527", "0.63833314", "0.63787955", "0.637683", "0.6372172", "0.6366473", "0.63629925", "0.6354278", "0.6351035", "0.63119096", "0.6306279", "0.6294434", "0.62521785", "0.6250494", "0.62458676", "0.62453574", "0.62433535", "0.62409616", "0.62407976", "0.6222572", "0.6201804", "0.61972183", "0.6190343", "0.61787474", "0.61753136", "0.61656773", "0.6159448", "0.6158275", "0.6135316", "0.6131559", "0.6129168", "0.61185354", "0.6113502", "0.61133313" ]
0.8335281
0
Allows the class to be serialized with var_export (in the cache).
public static function __set_state($array) { return new self( $array['id'], $array['name'], $array['value'], $array['logo'], $array['logoLink'], $array['logoTooltip'], $array['valueSuffix'] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public abstract function serialize();", "public function serialize(){ }", "public function serialize();", "public function serialize();", "public function serialize();", "public function __wakeup() {\r\n\t\t_doing_it_wrong( __FUNCTION__, esc_html__( 'Unserializing instances of this class is forbidden.', 'wc_name_your_price' ), '3.0.0' );\r\n\t}", "abstract public function serialize();", "abstract public function serialize();", "private function saveConfig() {\n \tself::$_configInstance = (object)$this->_data; \n file_put_contents($this->_data['cache_config_file'],serialize(self::$_configInstance)); \n }", "public function serialize()\n {\n return serialize(\n [\n 'packagesClasses' => $this->packagesClasses,\n ]\n );\n }", "public function serialize()\n {\n }", "public function serialize()\n {\n }", "protected function getClassInfoCache() {}", "public static function instanceToJson() : string{\n\n if(!method_exists(self::class,'instance')):\n return json_encode([]);\n endif;\n\n return json_encode( self::instanceToArray() );\n }", "public function __toString() {\n //(string)var_export($this);\n }", "public function serialize()\n {\n $data = array();\n foreach( $this->toSerialize as $var ) { $data[ $var ] = $this->$var; }\n return serialize( $data );\n }", "#[ReturnTypeWillChange]\n public function __serialize()\n {\n return $this->toArray();\n }", "public function __toString() {\n return get_class($this).spl_object_hash($this).\"=( \".\n \"file=\".$this->file.\", \".\n \"class=\".$this->class.\", \".\n \"conf=\".preg_replace(\"/( |\\r|\\n|\\t)+/\", \n \" \", var_export($this->conf,true)).\" )\";\n }", "function serialize()\r\n {\r\n $owner=$this->readOwner();\r\n\r\n if ($owner!=null)\r\n {\r\n\r\n $_SESSION['insession.'.$this->readNamePath()]=1;\r\n\r\n //$this->newserialize();\r\n\r\n $refclass=new ReflectionClass($this->ClassName());\r\n $methods=$refclass->getMethods();\r\n\r\n reset($methods);\r\n\r\n while (list($k,$method)=each($methods))\r\n {\r\n $methodname=$method->name;\r\n if ($methodname[0] == 's' && $methodname[1] == 'e' && $methodname[2] == 't') // fast check of: substr($methodname,0,3)=='set'\r\n {\r\n $propname=substr($methodname, 3);\r\n\r\n if($propname=='Name')\r\n $propvalue = $this->_name;\r\n else\r\n $propvalue=$this->$propname;\r\n\r\n if (is_object($propvalue))\r\n {\r\n if ($propvalue->inheritsFrom('Component'))\r\n {\r\n $apropvalue='';\r\n $aowner=$propvalue->readOwner();\r\n if ($aowner!=null) $apropvalue=$aowner->getName().'.';\r\n $apropvalue.=$propvalue->getName();\r\n $propvalue=$apropvalue;\r\n }\r\n else if ($propvalue->inheritsFrom('Persistent'))\r\n {\r\n $propvalue->serialize();\r\n }\r\n }\r\n\r\n if ((!is_object($propvalue)) && ($this->allowserialize($propname)))\r\n {\r\n $defmethod='default'.$propname;\r\n\r\n if (method_exists($this,$defmethod))\r\n {\r\n $defvalue=$this->$defmethod();\r\n\r\n if (typesafeequal($defvalue,$propvalue))\r\n {\r\n unset($_SESSION[$this->readNamePath().\".\".$propname]);\r\n continue;\r\n }\r\n }\r\n\r\n //TODO: Optimize this\r\n $_SESSION[$this->readNamePath().\".\".$propname]=$propvalue;\r\n }\r\n }\r\n }\r\n\r\n\r\n if ($this->inheritsFrom('Component')) $this->serializeChildren();\r\n }\r\n else\r\n {\r\n global $exceptions_enabled;\r\n\r\n if ($exceptions_enabled)\r\n {\r\n throw new Exception('Cannot serialize a component without an owner');\r\n }\r\n }\r\n }", "public function SerializeObject () {\n return serialize ($this);\n }", "final public function serialize(): string\n {\n return \\serialize($this);\n }", "public function serialize()\n {\n return serialize(get_object_vars($this));\n }", "public function serialize()\n {\n return serialize(get_object_vars($this));\n }", "public function serialize()\n {\n return serialize(get_object_vars($this));\n }", "public function store()\n {\n $classes = [];\n\n foreach ($this->classes as $class) {\n $classes[] = $class['input_file'];\n }\n\n $json_classes = json_encode($classes);\n\n $this->filesystem->put(config('larinterface.cache_directory') . '/larinterface.json', $json_classes);\n }", "public function __toString() {\n // This is a neat way to get save the output of var_dump to a string \n // instead of printing it immediately\n ob_start();\n var_dump($this);\n $value = ob_get_contents();\n ob_end_clean();\n \n return $value;\n }", "public function __construct()\r\n {\r\n $this->_internalObject = new stdClass();\r\n\t\t$a=serialize($this->_internalObject);\r\n\t\t\"echo $a<br>\";\r\n }", "protected function saveToPackageCache() {}", "public function storeCache() {\n\t\tif ($this->cacheFilePath) {\n\t\t\tfile_put_contents($this->cacheFilePath, serialize($this->classFileIndex));\n\t\t}\n\t}", "function add_to_cache($className, $path)\n{\n global $cache_map, $cache_file;\n\n if(!empty($className))\n {\n if(!$cache_map)\n $cache_map = array();\n\n $cache_map[$className] = $path;\n\n file_put_contents($cache_file, '<?php ' . \"\\n\" . '$cache_map = ' .\"\\n\" . var_export($cache_map, true) . ';' );\n\n }\n}", "public function dumpClassLoadingInformationCommand() {}", "public function serializar() {\n\t return json_encode(get_object_vars($this), JSON_FORCE_OBJECT);\n\t\t}", "public function serializar() {\n\t return json_encode(get_object_vars($this), JSON_FORCE_OBJECT);\n\t\t}", "public function __wakeup() {\n _doing_it_wrong( __FUNCTION__, __( \"Unserializing instances is forbidden!\", \"wcwspay\" ), \"4.7\" );\n }", "function jsonSerialize()\n {\n return Helper::serialize(get_object_vars($this));\n }", "abstract protected function getCacheClass();", "public function serialize()\n {\n // TODO: Implement serialize() method.\n }", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString() {}", "public function __toString()\r\n {\r\n return __CLASS__;\r\n }", "public function __toString()\r\n {\r\n return __CLASS__;\r\n }", "public function export(): mixed;", "public function __toString()\n {\n return sprintf('%s:%s', get_class($this), md5(spl_object_hash($this)));\n }", "public function dump() {}", "public function __toString(){ }", "public function __wakeup() {\n //Unserializing instances of the class is forbidden\n _doing_it_wrong(__FUNCTION__, __('Word? That aint allowed son!', 'i4'), '0.0.1');\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }", "public function __toString()\n {\n return __CLASS__;\n }" ]
[ "0.6099293", "0.6099293", "0.6099293", "0.6099293", "0.6099293", "0.6099293", "0.6098045", "0.6098045", "0.5891127", "0.58855647", "0.5834022", "0.5834022", "0.5834022", "0.58309555", "0.5828057", "0.5828057", "0.5815728", "0.5685811", "0.5639621", "0.5639621", "0.56320596", "0.5616579", "0.56125283", "0.55773586", "0.555873", "0.5516541", "0.55115336", "0.55046046", "0.54992837", "0.54802525", "0.54802525", "0.54802525", "0.54439896", "0.5418916", "0.5408336", "0.53988045", "0.53869545", "0.53837407", "0.53789914", "0.53729755", "0.53729755", "0.5341274", "0.53217876", "0.53147066", "0.53075284", "0.5288248", "0.5288248", "0.5287235", "0.5287235", "0.5287235", "0.5287235", "0.5287235", "0.52864987", "0.52864987", "0.52864987", "0.52864987", "0.52864987", "0.52864987", "0.52864987", "0.52864987", "0.52864987", "0.52864987", "0.52864987", "0.52864987", "0.52864987", "0.52864987", "0.52864105", "0.5241153", "0.5241153", "0.52391505", "0.52186555", "0.52140653", "0.52140296", "0.5212812", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424", "0.52103424" ]
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
0.0
-1
Display the specified resource.
public function show(User $user) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit(User $user) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, User $user) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy(User $user) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Get data by key.
public function getData(mixed $key = null) { if (!$key) { return (array) $this ?? []; } if (!isset($this->{$key})) { return null; } return $this->{$key}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getData($key);", "public function getData($key = null);", "public function get_data($key = '')\n\t{\n\t\tif($key)\n\t\t{\n\t\t\treturn $this->_data[$key];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->get_all_data();\n\t\t}\n\t}", "private function get($key)\n {\n return $this->data[$key];\n }", "public function get($key)\n {\n $data = $this->getData($key);\n return $data['data'];\n }", "protected function getDataByKey($key)\n {\n return isset($this->data[$key]) ? $this->data[$key] : null;\n }", "public function get($key){\n\n return $this->data[$key];\n }", "public function getByKey($key);", "public function get(string $key) {\n\t\treturn $this->data[$key];\n\t}", "public function get($key)\n {\n return $this->data[$key];\n }", "public function getData( $key )\r\n {\r\n\t\tif(isset($this->_dataCache[$key])){\r\n \treturn $this->dataCache[$key];\r\n\t\t}\r\n\t\treturn NULL;\r\n }", "public function get($key)\n\t{\n\t\treturn $this->data[$key];\n\t}", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get( $key );", "public function get($key){\n return $this->unPrepareData($this->connection->get($key));\n }", "public static function get($key);", "public static function get($key);", "protected function _getData($key)\n {\n return isset ( $this->_data [$key] ) ? $this->_data [$key] : null;\n }", "public function getDataByKey($key) {\n $response_r = json_decode($this, true);\n if (isset($response_r[$key])) {\n return $response_r[$key];\n }\n return false;\n }", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function getDataKey($key)\n {\n return $this->data[$key] ?? null;\n }", "public function getData($key) {\n return isset($_GET[$key]) ? $_GET[$key] : null;\n }", "public function getData($key)\n {\n return $this->storage[$key] ?? null;\n }", "public function getItem($key);", "public function getItem($key);", "public function getItem($key);", "public function getItem($key);", "public function get($key) {\n\t\tif(array_key_exists($key, $this->data)) return $this->data[$key]; \n\t\t\telse return null;\n\t}", "public function data($key){\n if (isset($this->data[$key])) return $this->data[$key];\n else return false;\n }", "abstract public function get($key);", "public function fetch($key);", "public function fetch($key);", "public function fetch($key);", "public function __get($key)\n {\n return self::$data[$key];\n }", "public function data($key) {\n\t\treturn !empty($this->_data[$key]) ? $this->_data[$key] : null;\n\t}", "public function read($key) {}", "public function getData($key = '', $index = null);", "public function data($key = null)\n {\n if ($key)\n {\n return $this->data[$key];\n }\n\n return $this->data;\n }", "public function get_data($class_id, $key);", "abstract public function get ($key);", "public function getItem($key){}", "public function getData($key)\n {\n return ArrayHelper::getValue($this->owner->{$this->dataAttribute}, $key);\n }", "public function get($key, $getRawData = false);", "public function get($key)\r\r\n\t{\t\t\r\r\n\t\t$this->get_count++;\t\t\r\r\n\t\treturn $this->_storage->get($key);\t\t\r\r\n\t}", "public function get($key)\n {\n return $this->adapter->get($key);\n }", "public function get($key)\n {\n return (isset(self::$data[$key])) ? self::$data[$key] : null;\n }", "public function getData($key = null)\n {\n if(is_null($key)) {\n return $this->data;\n }\n\n if(isset($this->data[$key])){\n return $this->data[$key];\n }\n\n return null;\n }", "public function read(string $key);", "public function retrieve($key) {\n return $this->connection->get($this->key($key));\n }", "public function get($key) {\n\t\treturn $this -> conn -> get($key);\n\t}", "public function get(string $key)\r\n\t{\r\n\t\treturn $this->connection->get($key);\r\n\t}", "public function get($key) {\n\t\tif(!array_key_exists($key, $this->data)) {\n\t\t\treturn NULL;\n\t\t}\n\n\t\treturn $this->data[$key];\n\t}", "public function getData($key = null)\n {\n if (empty($this->data)) {\n throw new \\RuntimeException('Data must be set');\n }\n if ($key === null) {\n return $this->data;\n }\n /* process a/b/c key as ['a']['b']['c'] */\n if (strpos($key, '/')) {\n $data = $this->getDataByPath($key);\n } else {\n $data = $this->getDataByKey($key);\n }\n return $data;\n }", "public function __get($key){\n return $this->data[$key];\n }", "public static function get($key)\r\n {\r\n return isset(self::$_data[$key])? self::$_data[$key]: null;\r\n }", "public function offsetGet($key)\n {\n return $this->data[$key];\n }", "public function get($key)\n {\n return $this->data[$key] ?? null;\n }", "public function getData($key='', $index=null)\n {\n $_indexes = array(\n 'title', 'uid',\n 'status_text',\n 'department',\n 'created_time',\n 'filename',\n 'file_url',\n 'customer_name',\n 'order',\n );\n if (in_array($key, $_indexes)) {\n $method = 'get' . $this->_camelize($key, '');\n return call_user_func(array($this->getTicket(), $method));\n }\n return parent::getData($key, $index);\n }", "public function get($key)\n {\n return $this->driver->get($key);\n }", "protected function data($key = null) { \n\t\tif ( !is_null($key) ) {\n\t\t\treturn $this->dataExists($key) ? $this->originalData[$key] : null;\n\t\t}\n\n\t\treturn $this->originalData; \n\t}", "public function getData($key) {\n\t\t\treturn static::isField($key) ? ($this->hasData($key) ? $this->data[$key] : static::$_fields[$key]) : NULL;\n\t\t}", "public function get(string $key): mixed;", "public function get($key) {\n\t\t\t\n\t\t\treturn isset($this->data[$key]) ? $this->data[$key] : null;\n\t\t\t\n\t\t}", "public function getItemByKey($key) {\n return isset($this->data[$key])?$this->data[$key]:null;\n }", "public function fetch( $key ) {\n return isset($this->data[$key]) ? $this->data[$key] : NULL;\n }", "abstract protected function retrieve($key);", "public function getData($key = null)\n {\n return $this->data;\n }" ]
[ "0.8787343", "0.83307153", "0.8127635", "0.8123139", "0.8041257", "0.79232097", "0.78443074", "0.7824801", "0.7796875", "0.77871007", "0.77467", "0.77376384", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7713861", "0.7700104", "0.766777", "0.766777", "0.7656172", "0.765372", "0.76401705", "0.76401705", "0.76401705", "0.76401705", "0.76401705", "0.76401705", "0.76401705", "0.76401705", "0.75732154", "0.7561432", "0.755433", "0.752346", "0.752346", "0.752346", "0.752346", "0.7521446", "0.747301", "0.7438549", "0.743459", "0.743459", "0.743459", "0.74330413", "0.7392579", "0.73799586", "0.7374621", "0.73732287", "0.7365381", "0.7352821", "0.735253", "0.7351879", "0.73389214", "0.733221", "0.73295623", "0.731655", "0.73156637", "0.73144406", "0.7306757", "0.7302159", "0.7300895", "0.7294856", "0.72834975", "0.72786164", "0.7267295", "0.7267019", "0.7265503", "0.7258703", "0.7256046", "0.7244465", "0.7230969", "0.7218412", "0.72148216", "0.72025114", "0.71943194", "0.7182647", "0.71774715" ]
0.0
-1
Set data by key.
public function setData(string $key, mixed $value) { $this->{$key} = $value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set($key, $data);", "public function set(string $key, $data);", "public function setData($data, $key = null);", "public function setDataByKey($key, $data)\n {\n $data = $this->hydrateIfJsonToArray($data);\n $this->data[$key] = $data;\n }", "public function set_data($key, $data)\n\t{\n\t\t$this->_data[$key] = $data;\n\t}", "public function set(string $key, string $data) : void;", "public function setData($key, $value);", "public function setData($key, $value);", "public function setData($key, $value = null)\n {\n\n if (is_string($key))\n $this->data = json_decode($key);\n else\n $this->data = $key;\n\n }", "public function set($key,$value) {\n $this->_data[$key]=$value;\n }", "public function set($key, $data) {\n\t\t$this->_cache[$key] = array(\n\t\t\t'time' => time(),\n\t\t\t'data' => $data,\n\t\t);\n\t}", "public function setData($key, $value = null);", "public function set($key, $data) {\n\t\tif ($this->isValidKey($key) && $this->isValidData($data)) {\n\t\t\treturn $this->setKey($key, $data);\n\t\t}\n\t}", "public function set($key, $data) {\n return $this->zadd($key, $data);\n }", "public function _set($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function _set($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function set($key, $value) {\n\t\t$this->data[$key] = $value;\n\t}", "public function set ($key, $value) {\r\n\t\t$this->_data[$key] = $value;\r\n\t}", "function set($key,$data)\n\t{\n\t\t// Get file path\n\t\t$file_path = $this->get_file_path($key);\n\n\t\t// Add content to file\n\t\tfile_put_contents($file_path,serialize($data));\n\t}", "public function __set($key, $value)\n {\n self::$data[$key] = $value;\n }", "protected function setData($key, $value)\n {\n $this->data[$key] = $value;\n }", "public static function set($data, $class_id, $key)\n\t{\n\t\t$args = func_get_args();\n\t\tcall_user_func_array(array(self::$data_cache_provider, \"set_data\"), $args);\n\t}", "public function set($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function set($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function set($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function set(string $key, $value) {\n\t\t$this->data[$key] = $value;\n\t}", "public static function set($key, $value)\r\n {\r\n self::$_data[$key] = $value;\r\n }", "public function set($key, $value)\n\t{\n\t\t$this->data[$key] = $value;\n\t}", "public function __set($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function __set($key, $value) {\n $this->pos = 0;\n $this->data[$key] = $value;\n $this->keys = array_keys($this->data);\n }", "public function __set($key, $value)\n\t{\n\t\t$this->data[$key] = $value;\n\t}", "public function set(string $key, $value): void {\n\t\t$this->data[$key] = $value;\n\t}", "protected function setPersistentData($key, $value)\r\n {\r\n }", "public function getFieldsetDataValue($key);", "public function __set( $key, $value ) {\n\n\t\t$this->_data[ $key ] = $value;\n\t}", "public static function set(string $key, $data)\n {\n $_SESSION[$key] = $data;\n }", "public function setData($key, $value)\n {\n $this->owner->{$this->dataAttribute} = ArrayHelper::merge($this->owner->{$this->dataAttribute}, [$key => $value]);\n }", "public function set(string $key, $value): void\n {\n $this->data[$key] = $value;\n }", "public function updateData(string $key, $value)\n {\n $this->data[$key] = $value;\n }", "public function offsetSet($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function offsetSet($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function setData($key, $value) {\n\n if (\\is_string($key) === false) {\n /**\n * @todo Implement proper error handling\n */\n throw new \\Exception('Key must be of type string');\n }\n\n $this->datastore->$key = $value;\n $this->datastore->save();\n }", "public function set($key, $val){\n\t\t\t$this->data[$key] = $val;\n\t\t}", "protected function setData($key, $path)\n {\n if (method_exists($this, 'set') &&\n in_array('ArrayAccess', class_implements($this))\n ) {\n $this->set($key, require $path);\n }\n }", "public function setDataKey($key)\n {\n $this->dataKey = $key;\n return $this;\n }", "private function setData($key, $value)\n {\n $this->data[ $key ] = $this->cleanForXML($value);\n }", "public function setData($key, $value = null) {\n if ($key === (array)$key) {\n $this->_data = $key;\n } else {\n $this->_data[$key] = $value;\n }\n return $this;\n }", "public function setData($key, $value)\n\t{\n\t\t$old = $this->data;\n\t\tif ($value === null) {\n\t\t\tunset($this->data[$key]);\n\t\t} else {\n\t\t\t$this->data[$key] = $value;\n\t\t}\n\n\t\t$this->_onPropertyChanged('data', $old, $this->data);\n\t}", "public function setData($key, $value) {\r\n\t\t$this->templateData[$key] = $value;\r\n\t}", "protected function putData($key, $value)\n {\n $this->templateData[$key] = $value;\n }", "public function setApplicationData($key, $value);", "public function assign($key, $value) {\n $this->dwoo_data->$key = $value;\n }", "abstract public function set ($key, $value);", "public function __set($key, $value)\n {\n\n $this->setData($key, $value);\n\n }", "abstract public function set($key, $value);", "abstract public function set($key, $value);", "public function set($key,$value){\n\t\t$this->data[$key] = $value;\n\t\treturn true;\n\t}", "public function setJson($key, $data)\n {\n \n $this->synchronized = false;\n $this->data[$key] = json_encode($data);\n \n }", "public function set ($key, $value);", "public function put($key, $value)\n {\n $this->data[$key] = $value;\n }", "function assign($key, $value = null) \n\t{\n\t\tif (is_array($key)) \n\t\t{\n\t\t\tforeach ($key as $k => $v) \n\t\t\t{\n\t\t\t\t$this->data[$k] = $v;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->data[$key] = $value;\n\t\t}\n\t}", "public function offsetSet($key,$value){\n if(!array_key_exists($key,$this->definition)){\n throw new \\Disco\\exceptions\\Exception(\"Field `{$key}` is not defined by this data model\");\n }//if\n $this->data[$key] = $value;\n }", "public function set( $key, $value );", "public function set( $key, $value );", "public function save($key, $data);", "public function set($key, $data) {\n $this->ensure_path_exists();\n $filename = $key.'.cache';\n $file = $this->file_path_for_key($key, true);\n $result = $this->write_file($file, $this->prep_data_before_save($data));\n if (!$result) {\n // Couldn't write the file.\n return false;\n }\n // Record the key if required.\n if ($this->prescan) {\n $this->keys[$filename] = cache::now() + 1;\n }\n // Return true.. it all worked **miracles**.\n return true;\n }", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "#[\\ReturnTypeWillChange]\n public function offsetSet($key, $value)\n {\n if (is_null($key)) {\n $this->data[] = $value;\n } else {\n $this->data[$key] = $value;\n }\n }", "public function __set($key, $value);", "public function __set($key, $value)\r\n {\r\n $this->shared_data->set($key, $value);\r\n }", "public function setItem($key, $item);", "public function setData($key, $value)\n {\n\n if (is_object($value)) {\n // muss auf false gesetzt werden, da der wert der Entity\n // sich ändern könnte und auf dieser beim save auch ein save getriggert\n // werden muss\n $this->synchronized = false;\n \n if ($value instanceof Entity) {\n \n if ('rowid' === $key) {\n\n // speichern der entity nachdem diese entity gespeichert wurde\n Log::warn('Veraltete zuweisung auf rowid');\n $this->postSave[] = $value;\n\n } else {\n\n $this->preSave[$key] = array($value,$key,null) ;\n\n if (!$value->isNew()) {\n $this->data[$key] = $value->getId();\n }\n \n $this->linked[$key] = $value;\n }\n \n } else {\n\n /// TODO was soll das?\n $this->data[$key] = $value->getId();\n\n // kann zB ein Upload Element sein, dass die ID des hochgeladenen Files zurückgibt\n $value->setEntity($this);\n $this->postSave[$key] = array($value, $key,null);\n }\n\n } else {\n\n if (!isset($this->data[$key])) {\n\n $this->synchronized = false;\n $this->data[$key] = $value;\n \n } elseif (!is_array($value) && $this->data[$key] !== (string)$value) {\n\n $this->synchronized = false;\n $this->data[$key] = $value;\n } else {\n\n $this->synchronized = false;\n $this->data[$key] = $value;\n }\n }\n\n }", "private function setKey($key, $data) {\n\n\t\t// Replace existing key?\n\t\tif ($this->getKey($key) !== false) {\n\t\t\treturn $this->replaceKey($key, $data);\n\t\t}\n\n\t\t// Save to cache\n\t\tif ($this->options['cache'] === true) {\n\t\t\t$this->data['cache'][$key] = $data;\n\t\t}\n\n\t\t// Preserve new lines\n\t\t$data = $this->preserveLines($data, false);\n\n\t\t// Serialize data\n\t\t$data = serialize($data);\n\n\t\t// Set line, we don't use PHP_EOL to keep it cross-platform compatible\n\t\t$line = $key . \"=\" . $data . \"\\n\";\n\n\t\t// Open file\n\t\t$fp = $this->openFile($this->data['file'], self::FILE_APPEND);\n\n\t\t// Write line\n\t\tif (@fwrite($fp, $line) === false) {\n\t\t\tthrow new FlintstoneException('Could not write to file ' . $this->data['file']);\n\t\t}\n\n\t\t// Close file\n\t\t$this->closeFile($fp);\n\n\t\treturn true;\n\t}", "function put($key, $data) {\n $fn = $this->name($key);\n file_put_contents($fn, serialize($data), LOCK_EX);\n }", "private function assign($key, $val)\n {\n $this->_data[$key] = $val;\n }", "public function __set($key, $val) \n\t{\n\t\t$this->_data[$key] = $val;\n\t}", "public function setValue($key, $value);", "public function setValue($key, $value);", "public function __set($key,$value){\n if(!array_key_exists($key,$this->definition)){\n throw new \\Disco\\exceptions\\Exception(\"Field `{$key}` is not defined by this data model\");\n }//if\n $this->data[$key] = $value;\n }", "public function set($key, $data, $ttl = 0);", "public function set($key, $data, $ttl = 0);", "public function AddData ($key, $value) {\n\t\t$this->data[$key] = $value;\t\t\t\t\n\t}", "public function update(string $key, $newData);", "public function set ($key, $value) {\r\n\t\tif (!in_array($key, self::get_all_keys())) return false;\r\n\t\tif (empty($this->_data[$key])) $this->_data[$key] = array();\r\n\r\n\t\t$this->_data[$key][] = $value;\r\n\t}", "public function set()\n {\n $args = func_get_args();\n $num = func_num_args();\n if ($num == 2) {\n self::$data[$args[0]] = $args[1];\n } else {\n if (is_array($args[0])) {\n foreach ($args[0] as $k => $v) {\n self::$data[$k] = $v;\n }\n }\n }\n }" ]
[ "0.8585299", "0.8534769", "0.82256514", "0.81578314", "0.8072442", "0.8067496", "0.78681254", "0.78681254", "0.76917356", "0.75044817", "0.7485805", "0.7485449", "0.746926", "0.74497396", "0.7383421", "0.7383421", "0.7349877", "0.73400205", "0.7315959", "0.7306042", "0.7296446", "0.7257594", "0.7248222", "0.7248222", "0.7248222", "0.7236309", "0.72326684", "0.7224968", "0.7201772", "0.7166634", "0.7145311", "0.7144204", "0.7125926", "0.7082659", "0.7006662", "0.69857967", "0.69824356", "0.6976229", "0.69595945", "0.6953409", "0.6953409", "0.6952849", "0.69513637", "0.6924745", "0.69195706", "0.69064105", "0.6900474", "0.6874202", "0.68604434", "0.6859599", "0.6853349", "0.68501455", "0.68234944", "0.6792622", "0.6790279", "0.6790279", "0.6768484", "0.67437047", "0.6713849", "0.6698117", "0.6696776", "0.6693592", "0.66854423", "0.66854423", "0.66834027", "0.6676882", "0.6669987", "0.6669987", "0.6669987", "0.6669987", "0.6669987", "0.6669987", "0.6669987", "0.6669987", "0.6669987", "0.6669987", "0.6669987", "0.6669987", "0.6669987", "0.6669987", "0.6669987", "0.6669987", "0.6669987", "0.66442204", "0.6641862", "0.6633161", "0.66263825", "0.66239005", "0.6614541", "0.6613838", "0.6606848", "0.6594579", "0.656938", "0.656938", "0.6565203", "0.6564509", "0.6564509", "0.6563923", "0.65497255", "0.6545376", "0.65386605" ]
0.0
-1
Clears DataObject from relations.
public function clearRelations(): DataObject { foreach ($this::RELATIONS as $relationKey => $relation) { unset($this->{$relationKey}); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resetRelations()\n\t{\n\t\t$this->relations = array();\n\t}", "function clear()\r\n\t{\r\n\t\t// Clear the all list\r\n\t\t$this->all = array();\r\n\r\n\t\t// Clear errors\r\n\t\t$this->error = new stdClass();\r\n\t\t$this->error->all = array();\r\n\t\t$this->error->string = '';\r\n\r\n\t\t// Clear this objects properties and set blank error messages in case they are accessed\r\n\t\tforeach ($this->fields as $field)\r\n\t\t{\r\n\t\t\t$this->{$field} = NULL;\r\n\t\t\t$this->error->{$field} = '';\r\n\t\t}\r\n\r\n\t\t// Clear this objects \"has many\" related objects\r\n\t\tforeach ($this->has_many as $related)\r\n\t\t{\r\n\t\t\tunset($this->{$related});\r\n\t\t}\r\n\r\n\t\t// Clear this objects \"has one\" related objects\r\n\t\tforeach ($this->has_one as $related)\r\n\t\t{\r\n\t\t\tunset($this->{$related});\r\n\t\t}\r\n\r\n\t\t// Clear the query related list\r\n\t\t$this->query_related = array();\r\n\r\n\t\t// Clear and refresh stored values\r\n\t\t$this->stored = new stdClass();\r\n\r\n\t\t$this->_refresh_stored_values();\r\n\t}", "public function clearRelationCache();", "public function reset(): void\n {\n $this->data = [];\n $this->relationships = [];\n }", "public function clear()\n {\n self::foreignChecks(false);\n $this->model->truncate();\n self::foreignChecks(true);\n }", "public function clear() {\n\t\t$this->_where\t\t= array();\n\t\t$this->_order\t\t= array();\n\t\t$this->_isAddingNew\t= false;\n\t\t$this->_currentRow\t= 0;\n\t\t$this->_relationship\t= array();\n\t\t$this->_recordset\t= array();\n\t\t$this->_updateBuffer\t= array();\n\t\t$this->_limit\t\t= NULL;\n\t\t$this->_offset\t\t= NULL;\n\t\t$this->isDirty( false );\n\t}", "public function clear()\n\t{\n\t\t$this->getObject()->clear();\n\t}", "function clear() {\r\n /* clear datasource. you should call this before calling another populate() to avoid datasource gets appended\r\n */\r\n $this->ds = new DataSource;\r\n $this->db_count = 0;\r\n }", "public function clearConcepts()\n {\n foreach ($this->relationships as $relationship) {\n $relationship->clearConcepts();\n }\n }", "public function clear()\n {\n\n $this->synchronized = true;\n $this->id = null;\n $this->newId = null;\n $this->data = [];\n $this->savedData = [];\n $this->multiRef = [];\n\n }", "function clearAttributes()\n {\n $this->arrRelations = array();\n return true;\n }", "public function Clear(){\n\t\t// create array containing all data of the business object not including linked tables//\n\t\t$this->business_data = Array (\n\t\t\t\"group_id\"=>0 ,\n\t\t\t\"group_name\"=>\"\" , \n\t\t\t\"group_remarks\"=>\"\",\n\t\t\t\"group_active\"=>0 ,\n\t\t\t\"group_code\"=>\"\"\n\t\t\t);\n\t\t\t\t\n\t}", "protected function clearAllPersistentData()\r\n {\r\n }", "public function clearData() {\n unset($this->data);\n }", "public function resetRelationData(array $relationsToReset = array())\n\t{\n\t\t/** @var Relation $relation */\n\t\tforeach ($this->relations as $name => $relation)\n\t\t{\n\t\t\tif (!empty($relationsToReset) && !in_array($name, $relationsToReset))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$relation->reset();\n\t\t}\n\t}", "public function clear()\n {\n $this->id = null;\n $this->name = null;\n $this->is_active = null;\n $this->is_closed = null;\n $this->from_date = null;\n $this->to_date = null;\n $this->sortable_rank = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function clear()\n {\n foreach ($this->objectsRepository as $repository) {\n if ($repository instanceof Repository) {\n $repository->clear();\n }\n }\n parent::clear();\n $this->objectsRepository = [];\n }", "public function clear(){\n\t\t// create array containing all data of the business object not including linked tables//\n\t\t$this->business_data = \n\t\t\tarray(\n\t\t\t\"service_id\"=>0,\n\t\t\t\"service_name\"=>\"\",\n\t\t\t\"service_cost\"=>\"\",\n\n\t\t\t\"service_sys_account_id\"=>0,\n\t\t\t\"sys_account_name\"=>\"\",\n\t\t\t);\n\t}", "public function clear()\n {\n if (null !== $this->aSociete) {\n $this->aSociete->removeCommande($this);\n }\n if (null !== $this->aMTransport) {\n $this->aMTransport->removeCommande($this);\n }\n $this->id_commande = null;\n $this->reference = null;\n $this->soc_id_fk = null;\n $this->transport_fk = null;\n $this->quantite = null;\n $this->prix = null;\n $this->delai = null;\n $this->dte_commande = null;\n $this->priorite = null;\n $this->note = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function removeAll()\n {\n foreach ($this->findAll() as $object) {\n $this->remove($object);\n }\n }", "public function clearPartnerssRelatedByPatientId()\n {\n $this->collPartnerssRelatedByPatientId = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clear()\n {\n if (null !== $this->aCakeType) {\n $this->aCakeType->removeArticle($this);\n }\n if (null !== $this->aShape) {\n $this->aShape->removeArticle($this);\n }\n $this->article_id = null;\n $this->description = null;\n $this->price = null;\n $this->creation = null;\n $this->visible = null;\n $this->shape_id = null;\n $this->cake_type_id = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function clear()\n\t{\n\t\t$this->id = null;\n\t\t$this->uf_id = null;\n\t\t$this->nome = null;\n\t\t$this->slug = null;\n\t\t$this->longitude = null;\n\t\t$this->latitude = null;\n\t\t$this->alreadyInSave = false;\n\t\t$this->alreadyInValidation = false;\n\t\t$this->clearAllReferences();\n\t\t$this->resetModified();\n\t\t$this->setNew(true);\n\t\t$this->setDeleted(false);\n\t}", "public function clearModels();", "public function clear() {\n $this->_data = [];\n }", "public function clear()\n {\n $this->data = [];\n }", "function reset_data() {\n\t\t$this->data_layer()->clear();\n\t\t$this->log = null;\n\t\t$this->location = null;\n\t\t$this->tax_location = null;\n\t}", "public function clear()\n {\n $this->phadtype = null;\n $this->phadid = null;\n $this->phadsubid = null;\n $this->phadsubidseq = null;\n $this->phadcont = null;\n $this->phadintl = null;\n $this->phadtelenbr = null;\n $this->phadteleext = null;\n $this->phadintlnbr = null;\n $this->phadintlext = null;\n $this->phadfaxnbr = null;\n $this->phadifaxnbr = null;\n $this->phadcellnbr = null;\n $this->phadicellnbr = null;\n $this->phadhomenbr = null;\n $this->phadihomenbr = null;\n $this->phadwebaddr = null;\n $this->phademailaddr = null;\n $this->phadname = null;\n $this->phadcontname = null;\n $this->dateupdtd = null;\n $this->timeupdtd = null;\n $this->dummy = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function clear()\n {\n $this->_data = [];\n }", "public function clear()\n {\n $this->id = null;\n $this->code = null;\n $this->category = null;\n $this->address = null;\n $this->address2 = null;\n $this->zipcode = null;\n $this->city = null;\n $this->geo_coordinate_x = null;\n $this->geo_coordinate_y = null;\n $this->distance_camping = null;\n $this->image = null;\n $this->priority = null;\n $this->tel = null;\n $this->fax = null;\n $this->email = null;\n $this->website = null;\n $this->created_at = null;\n $this->updated_at = null;\n $this->active = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n } // if ($deep)\n\n $this->aTblEra = null;\n $this->aTblGeneral = null;\n $this->aTblMenus = null;\n $this->aTblProdPhotos = null;\n $this->aTblProdPrices = null;\n $this->aTblProdPricing = null;\n $this->aTblProdSmaller = null;\n $this->aTblShippingCategories = null;\n }", "public function reset()\n {\n $this->_contacts = [];\n $this->_lists = [];\n }", "public function clear() {\n\t\t$vars = get_object_vars($this);\n\t\tforeach ($vars as $key => $val) {\n\t\t\t$this->$key = null;\n\t\t}\n\t}", "public function clear()\n {\n $this->op_prime_id = null;\n $this->op_id = null;\n $this->op_prime_libelle = null;\n $this->op_prime_numero = null;\n $this->gdl_art_id = null;\n $this->operation_prime_currency_id = null;\n $this->operation_prime_r_reward_type_id = null;\n $this->operation_prime_r_reward_expedition_mode_id = null;\n $this->operation_prime_r_reward_transporter_id = null;\n $this->operation_prime_fixed_amount = null;\n $this->operation_prime_product_price_pourcentage = null;\n $this->operation_prime_maximum_amount = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function reset() {\n $this->setEntities([]);\n $this->setLinks([]);\n $this->setMetadata([]);\n $this->setIncludes([]);\n $this->setDynamic();\n $this->setCacheability(new CacheableMetadata());\n }", "public function clear() {\n foreach ($this->Fields as $key => $item) {\n $this->$key = null;\n }\n }", "public function clear()\n {\n $this->fromArray(array());\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n if ($this->collAssignedPrayersRelatedByAgentId) {\n foreach ($this->collAssignedPrayersRelatedByAgentId as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collAssignedPrayersRelatedByPatientId) {\n foreach ($this->collAssignedPrayersRelatedByPatientId as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPartnerssRelatedByAgentId) {\n foreach ($this->collPartnerssRelatedByAgentId as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPartnerssRelatedByPatientId) {\n foreach ($this->collPartnerssRelatedByPatientId as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPainRatings) {\n foreach ($this->collPainRatings as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collUserDemoss) {\n foreach ($this->collUserDemoss as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPatients) {\n foreach ($this->collPatients as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collAgents) {\n foreach ($this->collAgents as $o) {\n $o->clearAllReferences($deep);\n }\n }\n } // if ($deep)\n\n $this->collAssignedPrayersRelatedByAgentId = null;\n $this->collAssignedPrayersRelatedByPatientId = null;\n $this->collPartnerssRelatedByAgentId = null;\n $this->collPartnerssRelatedByPatientId = null;\n $this->collPainRatings = null;\n $this->collUserDemoss = null;\n $this->collPatients = null;\n $this->collAgents = null;\n $this->aUserAge = null;\n }", "private function clearData()\n {\n $this->_data=array();\n }", "public function wipeAll() {\n\t\tforeach($this->getTables() as $t) {\n\t\t\tforeach($this->getKeys($t) as $k) {\n\t\t\t\t$this->adapter->exec(\"ALTER TABLE \\\"{$k['FKTABLE_NAME']}\\\" DROP FOREIGN KEY \\\"{$k['FK_NAME']}\\\"\");\n\t\t\t}\n\t\t\t$this->adapter->exec(\"DROP TABLE \\\"$t\\\"\");\n\t\t}\n\t\tforeach($this->getTables() as $t) {\n\t\t\t$this->adapter->exec(\"DROP TABLE \\\"$t\\\"\");\n\t\t}\n\t}", "public function clear()\n {\n $this->dataStorage = [];\n }", "public function clear()\n {\n if ($this->first != null) {\n if (($e = $this->first->next) != null) {\n do {\n $e->setValue(null);\n $e->prev = null;\n } while (($e = $e->next) != null);\n }\n }\n $this->last = null;\n $this->first = null;\n $this->size = 0;\n }", "public function clear()\n {\n $this->idmontacargas = null;\n $this->idsucursal = null;\n $this->montacargas_modelo = null;\n $this->montacargas_marca = null;\n $this->montacargas_c = null;\n $this->montacargas_k = null;\n $this->montacargas_p = null;\n $this->montacargas_t = null;\n $this->montacargas_e = null;\n $this->montacargas_volts = null;\n $this->montacargas_amperaje = null;\n $this->montacargas_nombre = null;\n $this->montacargas_numserie = null;\n $this->montacargas_comprador = null;\n $this->montacargas_ciclosmant = null;\n $this->montacargas_ciclosiniciales = null;\n $this->montacargas_baja = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collEnderecos) {\n\t\t\t\tforeach ($this->collEnderecos as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collMembros) {\n\t\t\t\tforeach ($this->collMembros as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\tif ($this->collEnderecos instanceof PropelCollection) {\n\t\t\t$this->collEnderecos->clearIterator();\n\t\t}\n\t\t$this->collEnderecos = null;\n\t\tif ($this->collMembros instanceof PropelCollection) {\n\t\t\t$this->collMembros->clearIterator();\n\t\t}\n\t\t$this->collMembros = null;\n\t\t$this->aUf = null;\n\t}", "public function clearRelatedCache()\n {\n Cache::forget($this->getCachePrefix());\n $users = $this->getRelatedUsers();\n foreach ($users as $user) {\n $user->clearCachedRoles();\n $user->clearCachedPermissions();\n }\n }", "protected function _clear()\n\t{\n\t\t$this->_query = null;\n\t\t$this->_set = null;\n\t\t$this->_where = null;\n\t\t$this->_limit = null;\n\t}", "public function clearPatients()\n {\n $this->collPatients = null; // important to set this to NULL since that means it is uninitialized\n }", "public function remove_all_data()\n\t{\n\t\t$this->_data = array();\n\t}", "protected function _resetData()\n\t{\n\n\t\t// clean data, total and pagination, as we need them rebuilt\n\t\t$this->_data = null;\n\t\t$this->_total = null;\n\t\t$this->_pagination = null;\n\t}", "public function clear()\n {\n if (null !== $this->aPurchaseOrder) {\n $this->aPurchaseOrder->removePoReceivingHead($this);\n }\n if (null !== $this->aWarehouse) {\n $this->aWarehouse->removePoReceivingHead($this);\n }\n $this->pothnbr = null;\n $this->pothstat = null;\n $this->pothrcptdate = null;\n $this->intbwhse = null;\n $this->pothglpd = null;\n $this->pothairship = null;\n $this->potherinreview = null;\n $this->pothexchctry = null;\n $this->pothexchrate = null;\n $this->intbwhseorig = null;\n $this->pothlandcost = null;\n $this->pothrcptnbr = null;\n $this->pothlandbasedon = null;\n $this->pothinvcnbr = null;\n $this->pothinvcdate = null;\n $this->pothfrtamt = null;\n $this->pothmiscamt = null;\n $this->dateupdtd = null;\n $this->timeupdtd = null;\n $this->dummy = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function clear()\n\t{\n\t\t$this->venueid = null;\n\t\t$this->address = null;\n\t\t$this->address2 = null;\n\t\t$this->city = null;\n\t\t$this->province = null;\n\t\t$this->country = null;\n\t\t$this->latitude = null;\n\t\t$this->longitude = null;\n\t\t$this->phone = null;\n\t\t$this->name = null;\n\t\t$this->description = null;\n\t\t$this->website = null;\n\t\t$this->twitter = null;\n\t\t$this->facebook = null;\n\t\t$this->rssfeed = null;\n\t\t$this->closed = null;\n\t\t$this->lastfmid = null;\n\t\t$this->slug = null;\n\t\t$this->hasphotos = null;\n\t\t$this->submittedbyuser = null;\n\t\t$this->alreadyInSave = false;\n\t\t$this->alreadyInValidation = false;\n\t\t$this->clearAllReferences();\n\t\t$this->applyDefaultValues();\n\t\t$this->resetModified();\n\t\t$this->setNew(true);\n\t\t$this->setDeleted(false);\n\t}", "public function clear() {\n\t\t\n\t\t$queryString = \"\n\t\t\tMATCH (n)-[r]-()\n\t\t\tDELETE n, r\n\t\t\";\n\t\t\n\t\t$result = $this->query($queryString);\n\t\t\n\t\t$queryString = \"\n\t\t\tMATCH (n)\n\t\t\tDELETE n\n\t\t\";\n\t\t\n\t\t$result = $this->query($queryString);\n\t}", "public function clear()\n {\n $this->_id = null;\n $this->_title = null;\n $this->_positions = [];\n $this->_isDefault = null;\n }", "private function clear()\n {\n $this->mappedQueries = [];\n $this->mappedFilters = [];\n $this->requestData = [];\n }", "public function clear()\n {\n $this->_em->clear($this->_class->rootEntityName);\n }", "public function clear ()\n {\n\n $this->groups = null;\n $this->groups = array();\n $this->names = null;\n $this->names = array();\n\n }", "public function resetDataModel() {\r\n $this->arrModel = array();\r\n $intPackageId = NULL;\r\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n if ($this->collPurchaseOrderDetailReceivings) {\n foreach ($this->collPurchaseOrderDetailReceivings as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPurchaseOrderDetailLotReceivings) {\n foreach ($this->collPurchaseOrderDetailLotReceivings as $o) {\n $o->clearAllReferences($deep);\n }\n }\n } // if ($deep)\n\n $this->collPurchaseOrderDetailReceivings = null;\n $this->collPurchaseOrderDetailLotReceivings = null;\n $this->aPurchaseOrder = null;\n $this->aWarehouse = null;\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n if ($this->collArticleHasIngredients) {\n foreach ($this->collArticleHasIngredients as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collOrderHasArticless) {\n foreach ($this->collOrderHasArticless as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collPackageHasArticless) {\n foreach ($this->collPackageHasArticless as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRatings) {\n foreach ($this->collRatings as $o) {\n $o->clearAllReferences($deep);\n }\n }\n } // if ($deep)\n\n $this->collArticleHasIngredients = null;\n $this->collOrderHasArticless = null;\n $this->collPackageHasArticless = null;\n $this->collRatings = null;\n $this->aCakeType = null;\n $this->aShape = null;\n }", "public function unload()\n {\n\n $this->synchronized = true;\n $this->id = null;\n $this->newId = null;\n $this->data = [];\n $this->savedData = [];\n $this->orm = null;\n\n $this->multiRef = [];\n $this->i18n = null;\n\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->aSekolah instanceof Persistent) {\n $this->aSekolah->clearAllReferences($deep);\n }\n if ($this->aSemester instanceof Persistent) {\n $this->aSemester->clearAllReferences($deep);\n }\n if ($this->aSumberAirRelatedBySumberAirId instanceof Persistent) {\n $this->aSumberAirRelatedBySumberAirId->clearAllReferences($deep);\n }\n if ($this->aSumberAirRelatedBySumberAirMinumId instanceof Persistent) {\n $this->aSumberAirRelatedBySumberAirMinumId->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n $this->aSekolah = null;\n $this->aSemester = null;\n $this->aSumberAirRelatedBySumberAirId = null;\n $this->aSumberAirRelatedBySumberAirMinumId = null;\n }", "public function afterSave()\n {\n foreach ($this->relations as $rel) {\n if ($this->_settings[$rel['name']][0] === CActiveRecord::HAS_MANY ||\n $this->_settings[$rel['name']][0] === CActiveRecord::HAS_ONE\n ) {\n // If set delete option.\n if (array_key_exists('delete', $rel) && $rel['delete'] === true) {\n // Find all related models with null ID link.\n $deleteModels = call_user_func($this->_settings[$rel['name']][1] . '::model')->findAllByAttributes(array($this->_settings[$rel['name']][2] => null));\n foreach ($deleteModels as $m) {\n $m->delete();\n }\n }\n }\n }\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collMonths) {\n foreach ($this->collMonths as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collFileCats) {\n foreach ($this->collFileCats as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collDocCats) {\n foreach ($this->collDocCats as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collBookks) {\n foreach ($this->collBookks as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collAccounts) {\n foreach ($this->collAccounts as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collReports) {\n foreach ($this->collReports as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collProjects) {\n foreach ($this->collProjects as $o) {\n $o->clearAllReferences($deep);\n }\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collMonths instanceof PropelCollection) {\n $this->collMonths->clearIterator();\n }\n $this->collMonths = null;\n if ($this->collFileCats instanceof PropelCollection) {\n $this->collFileCats->clearIterator();\n }\n $this->collFileCats = null;\n if ($this->collDocCats instanceof PropelCollection) {\n $this->collDocCats->clearIterator();\n }\n $this->collDocCats = null;\n if ($this->collBookks instanceof PropelCollection) {\n $this->collBookks->clearIterator();\n }\n $this->collBookks = null;\n if ($this->collAccounts instanceof PropelCollection) {\n $this->collAccounts->clearIterator();\n }\n $this->collAccounts = null;\n if ($this->collReports instanceof PropelCollection) {\n $this->collReports->clearIterator();\n }\n $this->collReports = null;\n if ($this->collProjects instanceof PropelCollection) {\n $this->collProjects->clearIterator();\n }\n $this->collProjects = null;\n }", "public function clear(): void\n {\n $this->items = collect();\n\n $this->save();\n }", "public function clear()\n {\n $this->items = [];\n $this->saveItems();\n }", "public function free()\n\t{\n\t\t//$fh = fopen(\"x:\\x.log\", \"a\");fwrite($fh, __CLASS__ . \"/\" .__FUNCTION__ . \"\\n\");fclose($fh);\n\n\t\tforeach (array_keys(get_object_vars($this)) as $k => $key) {\n\t\t\t// nejdrive okolni property pak asociace a data\n\t\t\tif (in_array($k, array(\"_associations\", \"_data\"))) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// je to objekt? je typu IObjectContainerToFree? spustime na nej free\n\t\t\tif (is_object($this->$key) && $this->$key instanceof IObjectContainerToFree) {\n\t\t\t\t// nejdrive prepojime\n\t\t\t\t$object = $this->$key;\n\t\t\t\t// pak odpojime\n\t\t\t\t$this->$key = NULL;\n\t\t\t\t// a pak zlikvidujeme, jinak by se to mohlo zacyklit, record vola free kolekce a kolekce patri k rekordu takze zase zavola jeho zniceni a tak dokola\n\t\t\t\t$object->free();\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->$key = NULL;\n\t\t\t}\n\t\t}\n\n\t\tif (count($this->_associations)) {\n\t\t\tforeach ($this->_associations as $v) {\n\t\t\t\tif ($v) {\n\t\t\t\t\t$v->free();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$this->_data = array();\n\n\t}", "public function clearAssignedPrayersRelatedByPatientId()\n {\n $this->collAssignedPrayersRelatedByPatientId = null; // important to set this to NULL since that means it is uninitialized\n }", "public function removeAll() {\n\t\t$this->addedObjects = new \\SplObjectStorage();\n\t\tforeach ($this->findAll() as $object) {\n\t\t\t$this->remove($object);\n\t\t}\n\t}", "public function clear()\n {\n $this->collection->clear();\n $this->keys = [];\n }", "public function clear()\n {\n if (null !== $this->getDraft()) {\n $this->getDraft()->clear();\n } else {\n $this->_subcontent->clear();\n $this->subcontentmap = array();\n $this->_data = array();\n $this->index = 0;\n }\n }", "public function clear()\n {\n $this->links = [];\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collOperationPrestationss) {\n foreach ($this->collOperationPrestationss as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collOperationScenariis) {\n foreach ($this->collOperationScenariis as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collLnkOperationPrimeRCountriess) {\n foreach ($this->collLnkOperationPrimeRCountriess as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->aOperations instanceof Persistent) {\n $this->aOperations->clearAllReferences($deep);\n }\n if ($this->aRCurrencies instanceof Persistent) {\n $this->aRCurrencies->clearAllReferences($deep);\n }\n if ($this->aRRewardTypes instanceof Persistent) {\n $this->aRRewardTypes->clearAllReferences($deep);\n }\n if ($this->aRRewardExpeditionModes instanceof Persistent) {\n $this->aRRewardExpeditionModes->clearAllReferences($deep);\n }\n if ($this->aRRewardTransporters instanceof Persistent) {\n $this->aRRewardTransporters->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collOperationPrestationss instanceof PropelCollection) {\n $this->collOperationPrestationss->clearIterator();\n }\n $this->collOperationPrestationss = null;\n if ($this->collOperationScenariis instanceof PropelCollection) {\n $this->collOperationScenariis->clearIterator();\n }\n $this->collOperationScenariis = null;\n if ($this->collLnkOperationPrimeRCountriess instanceof PropelCollection) {\n $this->collLnkOperationPrimeRCountriess->clearIterator();\n }\n $this->collLnkOperationPrimeRCountriess = null;\n $this->aOperations = null;\n $this->aRCurrencies = null;\n $this->aRRewardTypes = null;\n $this->aRRewardExpeditionModes = null;\n $this->aRRewardTransporters = null;\n }", "public function clearData() {\n $this->viewData = array();\n }", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collExperts) {\n\t\t\t\tforeach ((array) $this->collExperts as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collExpertCategorys) {\n\t\t\t\tforeach ((array) $this->collExpertCategorys as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collHistorys) {\n\t\t\t\tforeach ((array) $this->collHistorys as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collItemRatings) {\n\t\t\t\tforeach ((array) $this->collItemRatings as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collOfferVoucher1s) {\n\t\t\t\tforeach ((array) $this->collOfferVoucher1s as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPurchaseDetails) {\n\t\t\t\tforeach ((array) $this->collPurchaseDetails as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collShoppingCarts) {\n\t\t\t\tforeach ((array) $this->collShoppingCarts as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collShoutsRelatedByPosterId) {\n\t\t\t\tforeach ((array) $this->collShoutsRelatedByPosterId as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collShoutsRelatedByRecipientId) {\n\t\t\t\tforeach ((array) $this->collShoutsRelatedByRecipientId as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUserAwardss) {\n\t\t\t\tforeach ((array) $this->collUserAwardss as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->singleUserGtalk) {\n\t\t\t\t$this->singleUserGtalk->clearAllReferences($deep);\n\t\t\t}\n\t\t\tif ($this->singleUserFb) {\n\t\t\t\t$this->singleUserFb->clearAllReferences($deep);\n\t\t\t}\n\t\t\tif ($this->collUserRates) {\n\t\t\t\tforeach ((array) $this->collUserRates as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->singleUserTutor) {\n\t\t\t\t$this->singleUserTutor->clearAllReferences($deep);\n\t\t\t}\n\t\t\tif ($this->collUserQuestionTags) {\n\t\t\t\tforeach ((array) $this->collUserQuestionTags as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collStudentQuestionsRelatedByStudentId) {\n\t\t\t\tforeach ((array) $this->collStudentQuestionsRelatedByStudentId as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collStudentQuestionsRelatedByTutorId) {\n\t\t\t\tforeach ((array) $this->collStudentQuestionsRelatedByTutorId as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collWhiteboardSessions) {\n\t\t\t\tforeach ((array) $this->collWhiteboardSessions as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\t$this->collExperts = null;\n\t\t$this->collExpertCategorys = null;\n\t\t$this->collHistorys = null;\n\t\t$this->collItemRatings = null;\n\t\t$this->collOfferVoucher1s = null;\n\t\t$this->collPurchaseDetails = null;\n\t\t$this->collShoppingCarts = null;\n\t\t$this->collShoutsRelatedByPosterId = null;\n\t\t$this->collShoutsRelatedByRecipientId = null;\n\t\t$this->collUserAwardss = null;\n\t\t$this->singleUserGtalk = null;\n\t\t$this->singleUserFb = null;\n\t\t$this->collUserRates = null;\n\t\t$this->singleUserTutor = null;\n\t\t$this->collUserQuestionTags = null;\n\t\t$this->collStudentQuestionsRelatedByStudentId = null;\n\t\t$this->collStudentQuestionsRelatedByTutorId = null;\n\t\t$this->collWhiteboardSessions = null;\n\t}", "public function unpopulate();", "public function clear()\n\t{\n\t\t$this->id = null;\n\t\t$this->perfil_id = null;\n\t\t$this->endereco_id = null;\n\t\t$this->cargo_id = null;\n\t\t$this->departamento_id = null;\n\t\t$this->matricula = null;\n\t\t$this->nome = null;\n\t\t$this->email = null;\n\t\t$this->dni = null;\n\t\t$this->data_nascimento = null;\n\t\t$this->data_contratacao = null;\n\t\t$this->celular = null;\n\t\t$this->telefone = null;\n\t\t$this->token = null;\n\t\t$this->nome_usuario = null;\n\t\t$this->senha = null;\n\t\t$this->token_senha = null;\n\t\t$this->token_firebase = null;\n\t\t$this->data_rescisao = null;\n\t\t$this->ativo = null;\n\t\t$this->tipo_acesso = null;\n\t\t$this->estado_civil = null;\n\t\t$this->nivel_acesso = null;\n\t\t$this->usuario_validado = null;\n\t\t$this->sexo = null;\n\t\t$this->data_cadastro = null;\n\t\t$this->alreadyInSave = false;\n\t\t$this->alreadyInValidation = false;\n\t\t$this->clearAllReferences();\n\t\t$this->applyDefaultValues();\n\t\t$this->resetModified();\n\t\t$this->setNew(true);\n\t\t$this->setDeleted(false);\n\t}", "public function unlinkAll()\n {\n return $this->pivotTable()->delete($this->wherePivot($this->parentKey(), null))->run();\n }", "public function clear()\n {\n $this->sekolah_id = null;\n $this->semester_id = null;\n $this->id_ruang = null;\n $this->hari = null;\n $this->bel_ke_01 = null;\n $this->bel_ke_02 = null;\n $this->bel_ke_03 = null;\n $this->bel_ke_04 = null;\n $this->bel_ke_05 = null;\n $this->bel_ke_06 = null;\n $this->bel_ke_07 = null;\n $this->bel_ke_08 = null;\n $this->bel_ke_09 = null;\n $this->bel_ke_10 = null;\n $this->bel_ke_11 = null;\n $this->bel_ke_12 = null;\n $this->bel_ke_13 = null;\n $this->bel_ke_14 = null;\n $this->bel_ke_15 = null;\n $this->bel_ke_16 = null;\n $this->bel_ke_17 = null;\n $this->bel_ke_18 = null;\n $this->bel_ke_19 = null;\n $this->bel_ke_20 = null;\n $this->create_date = null;\n $this->last_update = null;\n $this->soft_delete = null;\n $this->last_sync = null;\n $this->updater_id = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function clear()\n\t{\n\t\t$this->co_usuario = null;\n\t\t$this->nu_cpf = null;\n\t\t$this->ds_password = null;\n\t\t$this->no_usuario = null;\n\t\t$this->ds_login = null;\n\t\t$this->dt_ultimo_login = null;\n\t\t$this->ds_email = null;\n\t\t$this->co_perfil = null;\n\t\t$this->nu_celular = null;\n\t\t$this->nu_telefone = null;\n\t\t$this->st_usuario = null;\n\t\t$this->alreadyInSave = false;\n\t\t$this->alreadyInValidation = false;\n\t\t$this->clearAllReferences();\n\t\t$this->applyDefaultValues();\n\t\t$this->resetModified();\n\t\t$this->setNew(true);\n\t\t$this->setDeleted(false);\n\t}", "public function clear() {\n $this->_documentBoost = FALSE;\n\n $this->_fields = array();\n $this->_fieldBoosts = array();\n }", "public function cleanRelatedHasManyRelations(DataObject $object) {\n\t\t$cleanHasManyRelations = new DataObjectOnDeleteDecorator_HasManyCleaner(\n\t\t\t$this->owner->ID, $object);\n\t\t$cleanHasManyRelations->clean();\n\t}", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collUserExperiences) {\n\t\t\t\tforeach ((array) $this->collUserExperiences as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collOpenids) {\n\t\t\t\tforeach ((array) $this->collOpenids as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collrpxAuths) {\n\t\t\t\tforeach ((array) $this->collrpxAuths as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collQuestions) {\n\t\t\t\tforeach ((array) $this->collQuestions as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collQuestionComments) {\n\t\t\t\tforeach ((array) $this->collQuestionComments as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collAnswers) {\n\t\t\t\tforeach ((array) $this->collAnswers as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collAnswerComments) {\n\t\t\t\tforeach ((array) $this->collAnswerComments as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collQuestionVotes) {\n\t\t\t\tforeach ((array) $this->collQuestionVotes as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collAnswerVotes) {\n\t\t\t\tforeach ((array) $this->collAnswerVotes as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUserFavorites) {\n\t\t\t\tforeach ((array) $this->collUserFavorites as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUserTags) {\n\t\t\t\tforeach ((array) $this->collUserTags as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collCheckInformations) {\n\t\t\t\tforeach ((array) $this->collCheckInformations as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collAnswerOffensives) {\n\t\t\t\tforeach ((array) $this->collAnswerOffensives as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collQuestionOffensives) {\n\t\t\t\tforeach ((array) $this->collQuestionOffensives as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUserAwards) {\n\t\t\t\tforeach ((array) $this->collUserAwards as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collMemberReferrals) {\n\t\t\t\tforeach ((array) $this->collMemberReferrals as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collGearCompanyInfos) {\n\t\t\t\tforeach ((array) $this->collGearCompanyInfos as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collGearInfos) {\n\t\t\t\tforeach ((array) $this->collGearInfos as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collGearReviews) {\n\t\t\t\tforeach ((array) $this->collGearReviews as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collUserGears) {\n\t\t\t\tforeach ((array) $this->collUserGears as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collOffensives) {\n\t\t\t\tforeach ((array) $this->collOffensives as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collRecentActivitys) {\n\t\t\t\tforeach ((array) $this->collRecentActivitys as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\t$this->collUserExperiences = null;\n\t\t$this->collOpenids = null;\n\t\t$this->collrpxAuths = null;\n\t\t$this->collQuestions = null;\n\t\t$this->collQuestionComments = null;\n\t\t$this->collAnswers = null;\n\t\t$this->collAnswerComments = null;\n\t\t$this->collQuestionVotes = null;\n\t\t$this->collAnswerVotes = null;\n\t\t$this->collUserFavorites = null;\n\t\t$this->collUserTags = null;\n\t\t$this->collCheckInformations = null;\n\t\t$this->collAnswerOffensives = null;\n\t\t$this->collQuestionOffensives = null;\n\t\t$this->collUserAwards = null;\n\t\t$this->collMemberReferrals = null;\n\t\t$this->collGearCompanyInfos = null;\n\t\t$this->collGearInfos = null;\n\t\t$this->collGearReviews = null;\n\t\t$this->collUserGears = null;\n\t\t$this->collOffensives = null;\n\t\t$this->collRecentActivitys = null;\n\t}", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in \".$this->getClassNameFromBuilder($joinedTableTableMapBuilder).\" instance pool,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n EmailManagerHistoryEmailTableMap::clearInstancePool();\n }", "function unbindAll() {\n foreach (array(\n 'hasOne' => array_keys($this->hasOne),\n 'hasMany' => array_keys($this->hasMany),\n 'belongsTo' => array_keys($this->belongsTo),\n 'hasAndBelongsToMany' => array_keys($this->hasAndBelongsToMany)\n ) as $relation => $model) {\n $this->unbindModel(array($relation => $model));\n }\n }", "public function testClearAssociations()\n {\n $this->fixtures('users', 'articles');\n\n $user = User::find($this->users('derek')->id);\n $this->assertTrue($user->articleCount > 0);\n\n $user->clearArticles();\n $user->save();\n\n // refetch to make sure data was cleared\n $user = User::find($this->users('derek')->id);\n $this->assertTrue($user instanceof User);\n $this->assertEquals('0', $user->articleCount);\n }", "public function clear()\n {\n $this->shnttype = null;\n $this->shnttypedesc = null;\n $this->oehhnbr = null;\n $this->shntyear = null;\n $this->oedhline = null;\n $this->shntlotser = null;\n $this->shntpickticket = null;\n $this->shntpackticket = null;\n $this->shntinvoice = null;\n $this->shntacknow = null;\n $this->shntseq = null;\n $this->shntnote = null;\n $this->shntkey2 = null;\n $this->shntform = null;\n $this->dateupdtd = null;\n $this->timeupdtd = null;\n $this->dummy = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function reset()\n {\n $this->id = null;\n $this->attributes = array();\n }", "public function clearBehaviors()\n\t{\n\t\tif($this->_m!==null)\n\t\t{\n\t\t\tforeach($this->_m->toArray() as $name=>$behavior)\n\t\t\t\t$this->detachBehavior($name);\n\t\t\t$this->_m=null;\n\t\t}\n\t}", "public function clear()\n {\n if (null !== $this->aPublisher) {\n $this->aPublisher->removeBiblio($this);\n }\n if (null !== $this->aLanguage) {\n $this->aLanguage->removeBiblio($this);\n }\n if (null !== $this->aPlace) {\n $this->aPlace->removeBiblio($this);\n }\n if (null !== $this->aFrequency) {\n $this->aFrequency->removeBiblio($this);\n }\n if (null !== $this->aUser) {\n $this->aUser->removeBiblio($this);\n }\n $this->biblio_id = null;\n $this->title = null;\n $this->sor = null;\n $this->edition = null;\n $this->isbn_issn = null;\n $this->publisher_id = null;\n $this->publish_year = null;\n $this->collation = null;\n $this->series_title = null;\n $this->call_number = null;\n $this->language_id = null;\n $this->source = null;\n $this->publish_place_id = null;\n $this->classification = null;\n $this->notes = null;\n $this->image = null;\n $this->file_att = null;\n $this->opac_hide = null;\n $this->promoted = null;\n $this->labels = null;\n $this->frequency_id = null;\n $this->spec_detail_info = null;\n $this->input_date = null;\n $this->last_update = null;\n $this->uid = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function clearAllReferences($deep = false)\n {\n if ($deep && !$this->alreadyInClearAllReferencesDeep) {\n $this->alreadyInClearAllReferencesDeep = true;\n if ($this->collDeshabilitamcs) {\n foreach ($this->collDeshabilitamcs as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collMontacargasBateriass) {\n foreach ($this->collMontacargasBateriass as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collUsoBateriasMontacargass) {\n foreach ($this->collUsoBateriasMontacargass as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->aSucursal instanceof Persistent) {\n $this->aSucursal->clearAllReferences($deep);\n }\n\n $this->alreadyInClearAllReferencesDeep = false;\n } // if ($deep)\n\n if ($this->collDeshabilitamcs instanceof PropelCollection) {\n $this->collDeshabilitamcs->clearIterator();\n }\n $this->collDeshabilitamcs = null;\n if ($this->collMontacargasBateriass instanceof PropelCollection) {\n $this->collMontacargasBateriass->clearIterator();\n }\n $this->collMontacargasBateriass = null;\n if ($this->collUsoBateriasMontacargass instanceof PropelCollection) {\n $this->collUsoBateriasMontacargass->clearIterator();\n }\n $this->collUsoBateriasMontacargass = null;\n $this->aSucursal = null;\n }", "public function clearPartnerssRelatedByAgentId()\n {\n $this->collPartnerssRelatedByAgentId = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clear() { $this->em->clear(); }", "function _delete_relation($object)\r\n\t{\r\n\t\tif ( ! empty($object->model) && ! empty($this->id) && ! empty($object->id))\r\n\t\t{\r\n\t\t\t// Determine relationship table name\r\n\t\t\t$relationship_table = $this->_get_relationship_table($object->prefix, $object->table, $object->model);\r\n\r\n\t\t\t$data = array($this->model . '_id' => $this->id, $object->model . '_id' => $object->id);\r\n\r\n\t\t\t// Delete relation\r\n\t\t\t$this->db->delete($relationship_table, $data);\r\n\r\n\t\t\t// Clear related object so it is refreshed on next access\r\n\t\t\t$this->{$object->model} = NULL;\r\n\r\n\t\t\treturn TRUE;\r\n\t\t}\r\n\r\n\t\treturn FALSE;\r\n\t}", "public function flush()\r\n {\r\n foreach ($this->_collections as $key => $coll) {\r\n $coll->takeSnapshot();\r\n }\r\n foreach ($this->_tables as $table) {\r\n $table->setAttribute(Doctrine::ATTR_LOAD_REFERENCES, true);\r\n }\r\n $this->_initializedRelations = null;\r\n $this->_collections = null;\r\n $this->_tables = null;\r\n }", "public function reset()\n {\n $this->values[self::_HERO_ID] = null;\n $this->values[self::_DYNA] = null;\n }", "public function reset()\n {\n $this->_metaData = array();\n $this->_columnMap = array();\n }", "public function clear() { $this->_em->clear(); }", "private function clear_dummy_data()\n {\n $this->adapter->query('DELETE FROM ' . RUCKUSING_TS_SCHEMA_TBL_NAME);\n }", "public function removeAllRelatedPosts() {}", "public function clear()\n {\n $this->repository->clear();\n }" ]
[ "0.72300476", "0.6901824", "0.68786913", "0.67584693", "0.67107135", "0.66384166", "0.6590225", "0.63975847", "0.6323429", "0.63040864", "0.6236526", "0.62162757", "0.6215434", "0.6214214", "0.6212965", "0.6196552", "0.6186993", "0.618044", "0.61779267", "0.6172707", "0.6171772", "0.6151366", "0.6135132", "0.6097881", "0.6041567", "0.60273856", "0.6006883", "0.6002954", "0.5973933", "0.59429944", "0.59203327", "0.589278", "0.5865009", "0.5857182", "0.5845794", "0.58421844", "0.5830598", "0.58156115", "0.58091044", "0.5804543", "0.5798849", "0.57699454", "0.57642883", "0.5758434", "0.5755582", "0.57528496", "0.5749807", "0.5738738", "0.57385474", "0.5733768", "0.57330614", "0.5731953", "0.5728508", "0.57271063", "0.5720761", "0.57160056", "0.5710969", "0.56978375", "0.56938297", "0.5675701", "0.566877", "0.5663634", "0.5662561", "0.56599224", "0.5657249", "0.5651142", "0.5649419", "0.5640709", "0.56311727", "0.5628512", "0.56229234", "0.56210595", "0.5617829", "0.5608041", "0.56012374", "0.55993146", "0.5599151", "0.5598088", "0.5596606", "0.5588614", "0.5588262", "0.55832", "0.558096", "0.5564766", "0.5559454", "0.55555624", "0.55551386", "0.55538666", "0.5553663", "0.55522615", "0.55516624", "0.5546646", "0.5546535", "0.5542792", "0.55419356", "0.5539555", "0.55383027", "0.55279136", "0.5527841", "0.5525304" ]
0.81464666
0
Returns an instance of this class.
public static function getInstance() { return Doctrine_Core::getTable('Domain'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function instance() {\n\t\treturn new self;\n\t}", "public function getInstance()\n {\n return $this;\n }", "public function instance() {\n\t\n\t\treturn $this;\n\t\n\t}", "public function getInstance(): self\n {\n return $this;\n }", "public static function getInstance() {\n return new self();\n }", "public function get_instance()\n\t{\n\t\treturn $this;\n\t}", "public function get_instance()\n\t{\n\t\treturn $this;\n\t}", "public static function getInstance()\n {\n return new self();\n }", "public static function instance() {\n\n\t\t\tif ( is_null( self::$instance ) ) {\n\t\t\t\tself::$instance = new self();\n\t\t\t}\n\n\t\t\treturn self::$instance;\n\n\t\t}", "public static function get()\n\t{\n\t\tif(null == self::$_instance)\n\t\t{\n\t\t\treturn new self();\n\t\t}\n\n\t\treturn self::$_instance;\n\t}", "public static function get()\n {\n if (is_null(self::$instance)) {\n self::$instance = new self();\n }\n return self::$instance;\n }", "public static function instance() {\n\t\t\tif ( is_null( self::$_instance ) )\n\t\t\t\tself::$_instance = new self();\n\n\t\t\treturn self::$_instance;\n\t\t}", "public function newInstance()\n {\n return new self();\n }", "public static function instance() {\n\t\t\tif ( is_null( self::$_instance ) ) {\n\t\t\t\tself::$_instance = new self();\n\t\t\t}\n\t\t\treturn self::$_instance;\n\t\t}", "public static function instance() {\n\t\t\tif ( is_null( self::$_instance ) ) {\n\t\t\t\tself::$_instance = new self();\n\t\t\t}\n\t\t\treturn self::$_instance;\n\t\t}", "public static function instance() {\n\t\t\tif ( is_null( self::$_instance ) ) {\n\t\t\t\tself::$_instance = new self();\n\t\t\t}\n\t\t\treturn self::$_instance;\n\t\t}", "public static function instance() {\n\t\t\tif ( is_null( self::$_instance ) ) {\n\t\t\t\tself::$_instance = new self();\n\t\t\t}\n\t\t\treturn self::$_instance;\n\t\t}", "public static function instance() {\n\t\t\tif ( is_null( self::$_instance ) ) {\n\t\t\t\tself::$_instance = new self();\n\t\t\t}\n\t\t\treturn self::$_instance;\n\t\t}", "public static function instance() {\n\t\t\tif ( is_null( self::$_instance ) ) {\n\t\t\t\tself::$_instance = new self();\n\t\t\t}\n\t\t\treturn self::$_instance;\n\t\t}", "public static function get() \n {\n if (!isset(self::$instance)) {\n self::$instance = new self;\n }\n\n return self::$instance;\n }", "public static function get() {\n\t\tif ( self::$instance === null )\n\t\t\tself::$instance = new self();\n\n\t\treturn self::$instance;\n\t}", "public static function self() {\n\n\t\treturn self::factory( 'self' );\n\t}", "public static function instance() {\n\t\t\tif ( is_null( self::$instance ) ) {\n\t\t\t\tself::$instance = new self();\n\t\t\t}\n\n\t\t\treturn self::$instance;\n\t\t}", "public static function instance() {\n\t\t\tif ( is_null( self::$instance ) ) {\n\t\t\t\tself::$instance = new self();\n\t\t\t}\n\n\t\t\treturn self::$instance;\n\t\t}", "public static function instance() {\n\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\n\t\treturn self::$_instance;\n\n\t}", "public static function get() {\r\n\r\n\t\tif ( self::$instance == null ) {\r\n\t\t\tself::$instance = new self();\r\n\t\t}\r\n\r\n\t\treturn self::$instance;\r\n\r\n\t}", "public static function instance() {\n\t\t\tif ( ! self::$_instance ) {\n\t\t\t\tself::$_instance = new self();\n\t\t\t}\n\n\t\t\treturn self::$_instance;\n\t\t}", "public static function instance () {\n if ( is_null( self::$_instance ) ) {\n self::$_instance = new self();\n }\n return self::$_instance;\n }", "public static function instance() {\n\t if ( !isset( self::$instance ) ) {\n\t $className = __CLASS__;\n\t self::$instance = new $className;\n\t }\n\t return self::$instance;\n\t }", "public static function self() {\n\n\t\treturn self::factory( 'self' );\n\n\t}", "public static function instance()\n {\n global $container;\n return $container->getByType(self::class);\n }", "public static function instance() {\n return new static();\n }", "public static function get() {\n\t\tif ( self::$instance == null ) {\n\t\t\tself::$instance = new self();\n\t\t}\n\t\treturn self::$instance;\n\t}", "public static function instance () {\n\t\tif ( is_null( self::$_instance ) )\n\t\t\tself::$_instance = new self();\n\t\treturn self::$_instance;\n\t}", "public static function newInstance()\n {\n $instance = new self;\n return $instance;\n }", "public static function getInstance()\n {\n return GeneralUtility::makeInstance(self::class);\n }", "public static function getInstance()\n {\n return GeneralUtility::makeInstance(self::class);\n }", "public static function instance()\n {\n return new static();\n }", "public static function instance()\n {\n return new static();\n }", "public static function get_instance()\n {\n if (true === empty(self::$instance)) {\n $instance = new self();\n }\n return $instance;\n }", "public static function instance() {\n\t\tstatic $instance;\n\n\t\tif ( empty( $instance ) ) {\n\t\t\t$instance = new self();\n\t\t}\n\n\t\treturn $instance;\n\t}", "public static function get_instance() {\n\n if ( ! self::$instance instanceof self ) {\n self::$instance = new self;\n }\n\n return self::$instance;\n\n }", "public function __construct ()\n {\n return this;\n }", "public function __construct() {\n return $this;\n }", "public static function get_instance() {\n $self = __CLASS__;\n\n if ( is_null( $self::$instance ) ) {\n $self::$instance = new $self;\n }\n\n return $self::$instance;\n }", "public static function instance() {\n\t\t\tif ( null === self::$_instance ) {\n\t\t\t\tself::$_instance = new self();\n\t\t\t}\n\t\t\treturn self::$_instance;\n\t\t}", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n if ( is_null( self::$_instance ) ) {\n self::$_instance = new self();\n }\n return self::$_instance;\n }", "public static function instance() {\n if ( is_null( self::$_instance ) ) {\n self::$_instance = new self();\n }\n return self::$_instance;\n }", "public function instance();", "public static function instance() {\n\t\tif ( !isset( self::$instance ) ) {\n\t\t\t$class_name = __CLASS__;\n\t\t\tself::$instance = new $class_name;\n\t\t}\n\t\treturn self::$instance;\n\t}", "public static function instance() {\r\n if ( is_null( self::$_instance ) ) {\r\n self::$_instance = new self();\r\n }\r\n return self::$_instance;\r\n }", "public static function instance() {\r\n if ( is_null( self::$_instance ) ) {\r\n self::$_instance = new self();\r\n }\r\n return self::$_instance;\r\n }", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) )\n\t\t\tself::$_instance = new self();\n\t\treturn self::$_instance;\n\t}", "public static function instance()\n {\n if (is_null(self::$_instance)) {\n self::$_instance = new self();\n }\n\n return self::$_instance;\n }", "public static function instance() {\n\t\tif ( ! isset( self::$instance ) ) {\n\t\t\t$class_name = __CLASS__;\n\t\t\tself::$instance = new $class_name;\n\t\t}\n\t\treturn self::$instance;\n\t}", "public static function instance()\r\n\t\t{\r\n\t\t\t\r\n\t\t\tif ( ! self::$instance instanceof self )\r\n\t\t\t{\r\n\t\t\t\tself::$instance = new self;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn self::$instance;\r\n\t\t}", "public function getInstance()\n {\n return $this->instance;\n }", "public function getInstance()\n {\n return $this->instance;\n }", "public function getInstance()\n {\n return $this->instance;\n }", "public function getInstance()\n {\n return $this->instance;\n }", "public static function instance() {\r\n\t\tif ( is_null( self::$_instance ) ) {\r\n\t\t\tself::$_instance = new self();\r\n\t\t}\r\n\t\treturn self::$_instance;\r\n\t}", "public static function instance() {\r\n\t\tif ( is_null( self::$_instance ) ) {\r\n\t\t\tself::$_instance = new self();\r\n\t\t}\r\n\t\treturn self::$_instance;\r\n\t}", "public static function instance() {\n if(is_null( self::$_instance)){\n self::$_instance = new self();\n }\n return self::$_instance;\n }", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$_instance ) ) {\n\t\t\tself::$_instance = new self();\n\t\t}\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n if ( is_null( self::$_instance ) ) {\n self::$_instance = new self();\n }\n return self::$_instance;\n }", "public static function instance() {\n\n\t\tif (!self::$instance) {\n\t\t\tself::$instance = new self();\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function get_instance() {\n\t\t\tif ( is_null( self::$instance ) ) {\n\t\t\t\tself::$instance = new self();\n\t\t\t}\n\n\t\t\treturn self::$instance;\n\t\t}", "public static function get_instance() {\n\n if ( null == self::$instance ) {\n self::$instance = new self;\n }\n\n return self::$instance;\n\n }", "public static function get_instance(){\n\t\t\tif( is_null( self::$instance ) ){\n\t\t\t\tself::$instance = new self();\n\t\t\t}\n\n\t\t\treturn self::$instance;\n\t\t}", "public static function instance() {\n\t\tif ( ! isset( self::$instance ) ) {\n\t\t\t$className = __CLASS__;\n\t\t\tself::$instance = new $className;\n\t\t}\n\t\treturn self::$instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$instance ) ) {\n\t\t\tself::$instance = new self();\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function instance() {\n if ( empty( self::$instance ) ) {\n self::$instance = new self;\n }\n\n return self::$instance;\n }", "public function get_instance() {\n if ( null == self::$instance ) {\n self::$instance = new self;\n }\n return self::$instance;\n }", "public static function getInstance() {\n\t\treturn parent::getInstance(__CLASS__);\n\t}", "public static function instance() {\n\t\tif ( empty( self::$instance ) ) {\n\t\t\tself::$instance = new self();\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public function getInstance() {\n\t\treturn $this->instance;\n\t}", "public static function getInstance() {\n\n static $instance;\n //If the class was already instantiated, just return it\n if (isset($instance))\n return $instance;\n\n $instance = new self;\n\n return $instance;\n }", "public static function make() {\n return new self();\n }", "public static function getInstance() {\n\t\treturn parent::getInstance(__CLASS__); \n\t}", "public static function instance()\n {\n return new static;\n }", "public static function instance()\n {\n return new static;\n }", "public static function instance()\n {\n if (is_null(self::$_instance)) {\n self::$_instance = new self();\n }\n return self::$_instance;\n }", "public static function instance(): self\n {\n return self::$instance ??= new self();\n }", "public static function instance() {\n\t\tif ( is_null( self::$instance ) ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\t\treturn self::$instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( ( self::$instance ) ) ) {\n\t\t\tself::$instance = new self();\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function instance() {\n\t\tif ( ! ( self::$instance instanceof self ) ) {\n\t\t\tself::$instance = new self();\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$instance ) ) {\n\t\t\tself::$instance = new self();\n\t\t}\n\t\treturn self::$instance;\n\t}", "public static function instance() {\n\t\tif ( is_null( self::$instance ) ) {\n\t\t\tself::$instance = new self();\n\t\t}\n\t\treturn self::$instance;\n\t}" ]
[ "0.8422614", "0.8295301", "0.8285811", "0.81871045", "0.8143881", "0.8063351", "0.8063351", "0.8055489", "0.7950293", "0.793865", "0.7891774", "0.7880838", "0.7830038", "0.7828412", "0.7828412", "0.7828412", "0.7828412", "0.7828412", "0.7828412", "0.7825756", "0.780587", "0.78047556", "0.78043765", "0.78043765", "0.7802583", "0.77903754", "0.7787871", "0.7781021", "0.7768605", "0.7767898", "0.7766817", "0.77595675", "0.7730926", "0.7728104", "0.7716915", "0.77152646", "0.77152646", "0.7707343", "0.7707343", "0.7706665", "0.7706133", "0.76993066", "0.7692347", "0.76880157", "0.76840293", "0.7683914", "0.768212", "0.768212", "0.768212", "0.7679454", "0.7679454", "0.7674896", "0.7660284", "0.7655069", "0.7655069", "0.7650083", "0.76476485", "0.764636", "0.76457775", "0.76406676", "0.76406676", "0.76406676", "0.76406676", "0.76387274", "0.76387274", "0.7634482", "0.7629432", "0.7629432", "0.7629432", "0.7629432", "0.7629432", "0.7629432", "0.7629432", "0.7629432", "0.7629432", "0.7629432", "0.7629432", "0.76287067", "0.76266134", "0.76259387", "0.7623459", "0.7622886", "0.76228714", "0.76201046", "0.76195866", "0.76164865", "0.7616179", "0.7598447", "0.7595922", "0.7586314", "0.75831777", "0.75813985", "0.75811917", "0.75811917", "0.7580553", "0.7576247", "0.7574785", "0.75714004", "0.7571144", "0.75662637", "0.75662637" ]
0.0
-1
Checks to see if the url in question (full url) has been white / blacklistsed
public function hasStatus($url, $status) { $parsed_url = parse_url($url); return ( $this->getQueryObject() ->select('id') ->from("Domain") ->where('hostname = ?', $parsed_url['host']) ->addWhere("domain_status = ?", $status) ->count() > 0) ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isWhitelisted( $url ) {\n global $whitelistregex;\n foreach( $whitelistregex as $wregex ) if( preg_match($wregex, $url) ) return true;\n return false;\n}", "function checkWhiteList($url = '')\n{\n global $modSettings;\n\n $whitelist = array_map('trim', explode(\"\\n\", $modSettings['redirector_whitelist']));\n $host = parse_url($url, PHP_URL_HOST);\n\n if (!empty($host) && is_array($whitelist) && in_array($host, $whitelist)) {\n return true;\n }\n\n return false;\n}", "function check_crawl_url($url) {\n\tforeach($GLOBALS['eregi_url_blacklist'] as $black_url) {\n\t\tif(eregi($black_url, $url)) return(0);\n\t}\n\tif(in_array($url, $GLOBALS['url_db'])) return(0);\n\tif(!file_size_check($url, $GLOBALS['maximum_file_size'])) return(0);\n\tforeach($GLOBALS['eregi_url_whitelist'] as $white_url) {\n\t\tif(eregi($white_url, $url)) return(1);\n\t}\n\treturn(1); //1 == disable whitelisting, 0 == enable whitelisting\n}", "public function verifyContainsURL(): bool\n {\n $words = explode(' ', $this->input);\n foreach ($words as $word) {\n if (static::isValidURL($word)) {\n return true;\n }\n }\n \n return false;\n }", "function phishtank_is_blacklisted( $url ) {\n\t$parsed = parse_url( $url );\n\t\n\tif( !isset( $parsed['host'] ) )\n\t\treturn yourls_apply_filter( 'phishtank_malformed', 'malformed' );\n\t\n\t// Remove www. from domain (but not from www.com)\n\t$parsed['host'] = preg_replace( '/^www\\.(.+\\.)/i', '$1', $parsed['host'] );\n\t\n\t// Phishtank API\n\t$phishtank_api_key = yourls_get_option( 'phishtank_api_key' );\n\n $API=\"http://checkurl.phishtank.com/checkurl/\";\n $url_64=base64_encode($url);\n\n $ch = curl_init();\n curl_setopt ($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt ($ch, CURLOPT_POST, TRUE);\n curl_setopt ($ch, CURLOPT_USERAGENT, \"YOURLS\");\n curl_setopt ($ch, CURLOPT_POSTFIELDS, \"format=xml&app_key=$phishtank_api_key&url=$url_64\");\n curl_setopt ($ch, CURLOPT_URL, \"$API\");\n $result = curl_exec($ch);\n curl_close($ch);\n\n if (preg_match(\"/phish_detail_page/\",$result)) {\n\t\t\treturn yourls_apply_filter( 'phishtank_blacklisted', true );\n\t}\n\t\n\t// All clear, probably not spam\n\treturn yourls_apply_filter( 'phishtank_clean', false );\n}", "function xss_check_url( $url )\n\t{\n\t\t$url = trim( urldecode( $url ) );\n\t\t\n\t\tif ( ! preg_match( \"#^https?://(?:[^<>*\\\"]+|[a-z0-9/\\._\\- !]+)$#iU\", $url ) )\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\treturn TRUE;\n\t}", "public function bValidUrl($sUrl){\n preg_match(\"|\\@|\",$sUrl, $aMatch);\n if ( count($aMatch) > 0 ){\n return false;\n }\n\n foreach ($this->aFilterSkip as $oItem){\n preg_match(\"|$oItem|\", $sUrl, $aMatch);\n if( count($aMatch) > 0){\n // print \"SKIP $sUrl \\r\\n\"; \n return false;\n }\n } \n foreach ($this->aFilterAdd as $oItem){\n preg_match(\"|$oItem|\",$sUrl, $aMatch);\n // print \"CHECK:\".$oItem.\"\\r\\n\"; \n if ( count($aMatch) > 0 ){\n \treturn true;\n }else {\n print \"NOT CRAWLED:\".$sUrl.\"\\r\\n\";\n }\n }\n return false;\n }", "function urlOk ($url) {\r\n return filter_var($url, FILTER_VALIDATE_URL);\r\n }", "public function is_valid_url()\r\n {\r\n return (!empty($this->url) && PiplApi_Utils::piplapi_is_valid_url($this->url));\r\n }", "public function is_valid_url()\r\n {\r\n return (!empty($this->url) && PiplApi_Utils::piplapi_is_valid_url($this->url));\r\n }", "private static function _url_is_valid($url) {\n // Consulted https://www.w3schools.com/Php/php_form_url_email.asp\n return preg_match(\"/\\b(?:(?:https?|ftp):\\/\\/|www\\.)[-a-z0-9+&@#\\/%?=~_|!:,.;]*[-a-z0-9+&@#\\/%=~_|]/i\", $url);\n }", "public function is_valid_url()\n {\n return (!empty($this->url) && APIUtil::piplapi_is_valid_url($this->url));\n }", "function checkUrlString( $url )\t\n\t{\n\t\t$url = trim($url);\t\t\n\t\t\tif( 'http://' != strtolower( substr($url, 0, 7)) && 'https://' != strtolower(substr($url, 0, 8)) )\n\t\t\t\treturn false;\n\t\t\telse\t\t\t\t\t\n\t\t\t\treturn true;\n\t}", "function checkURL($url) {\n\t\t\tif(!eregi(\"^http:\\/\\/\", $url)) {return false;}\n\t\t\treturn true;\n\t\t}", "function url_allowed ($url)\n{\n\trequire (\"url_handling_parameters.php\");\n\t\n\tif (eregiArray($url_forbidden,$url)) return false;\n\telse return true;\n}", "private function _is_short_url($url)\n\t{\n\t\t$url_host = parse_url($url, PHP_URL_HOST);\n\t\treturn in_array($url_host, $this->shortener_services);\n\t}", "public function validate()\n {\n return filter_var($this->getValue(), FILTER_VALIDATE_URL) !== false;\n }", "function heateor_ss_validate_url($url){\r\n\treturn filter_var(trim($url), FILTER_VALIDATE_URL);\r\n}", "public function isBlacklistedUri($uri)\n\t{\n\t\t$returnValue = 1;\n\t\tsystem(\"grep -q -F '\".escapeshellarg($uri).\"' '\".escapeshellarg($this->getBlacklistFilename()).\"' \", $returnValue);\n\t\t\n\t\treturn $returnValue == 0;\n\t}", "private function filterUrl($url){\n\t\t\n\t\t// Get the global config\n\t\tglobal $CrawlerConfig;\n\t\t\n\t\t// Make sure the URL isn't \"#\"\n\t\tif(substr($url, 0, 1) == \"#\") return false;\n\t\t\n\t\tif(substr($url, 0, 2) == \"//\") $url = \"http:\".$url;\n\t\t\n\t\t// If it's already valid, nothing else needs to be done\n\t\tif(filter_var($url, FILTER_VALIDATE_URL)) return $url;\n\t\t\n\t\t// If it's a partial path, generate full path\n\t\tif(substr($url, 0, 1) == \"/\"){\n\t\t\t\n\t\t\t// Glue pieces together\n\t\t\t$turl = $CrawlerConfig['BASE_URL'].$url;\n\t\t\t\n\t\t\t// If it worked, return it\n\t\t\tif(filter_var($turl, FILTER_VALIDATE_URL)) return $turl;\n\t\t}\n\t\t\n\t\t// Temporary URL var\n\t\t$turl = rtrim($this->current_location,\"/\").\"/\".ltrim($url,\"/\");\n\t\t\n\t\t// Try one more time\n\t\tif(filter_var($turl, FILTER_VALIDATE_URL)) return $turl;\n\t\t\n\t\treturn false;\n\t}", "public function hasUrl()\n {\n return ! empty($this->url);\n }", "function canHandleCurrentUrl() ;", "public function is_valid_url()\r\n {\r\n return (!empty($this->internal_params['url']) &&\r\n piplapi_is_valid_url($this->internal_params['url']));\r\n }", "function checkForBadLink($url) {\n\t\t$link = getDbConnect();\n\t\t$preparedStatement = $link->prepare(\"select hash from google_safe_browsing where hash = :hash;\");\n\t\t$preparedStatement->execute(array(\":hash\" => md5($url)));\n\t\treturn count($preparedStatement->fetchAll()) == 0;\n\t}", "function check($value)\r\n\t{\r\n\t\tif (!preg_match(\"~^(https?://[a-zA-Z\\.]+)?/?([a-zA-Z\\.]+/?)+(\\??[^\\?]*)#?[^#]*$~i\", $value))\r\n\t\t{\r\n\t\t\t$this->error('BAD_URL');\r\n\t\t} \r\n\r\n\t}", "private static function check_referrer() {\n\n\t\t// Return false if the disallowed-keys filter (formerly blacklist) is inactive.\n\t\tif ( ! self::$_options['blacklist'] ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$referrer = filter_var(\n\t\t\t( isset( $_SERVER['HTTP_REFERER'] ) ? wp_unslash( $_SERVER['HTTP_REFERER'] ) : '' ),\n\t\t\tFILTER_SANITIZE_URL\n\t\t);\n\t\tif ( ! is_null( $referrer ) && false !== $referrer ) {\n\t\t\t$referrer = wp_parse_url( $referrer, PHP_URL_HOST );\n\t\t}\n\n\t\t// Fallback for wp_parse_url() returning array instead of host only.\n\t\tif ( is_array( $referrer ) && isset( $referrer['host'] ) ) {\n\t\t\t$referrer = $referrer['host'];\n\t\t}\n\n\t\t// Return false if there still is no referrer to checj.\n\t\tif ( ! is_string( $referrer ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Finally compare referrer against the disallowed keys.\n\t\t$disallowed_keys = self::get_disallowed_keys();\n\t\tforeach ( $disallowed_keys as $item ) {\n\t\t\tif ( strpos( $referrer, $item ) !== false ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "function url_check($url) { \n $hdrs = @get_headers($url); \n return is_array($hdrs) ? preg_match('/^HTTP\\\\/\\\\d+\\\\.\\\\d+\\\\s+2\\\\d\\\\d\\\\s+.*$/',$hdrs[0]) : false; \n}", "private static function checkUrl($url)\n {\n if (filter_var($url, FILTER_VALIDATE_URL) !== false) {\n // TODO: check if URL gives 200 response code\n return true;\n }\n\n return false;\n }", "public function match()\n {\n $startWithHttp = strpos($this->userInput, 'http://') === 0 || strpos($this->userInput, 'https://') === 0;\n $validUrl = filter_var($this->userInput, FILTER_VALIDATE_URL);\n\n return $startWithHttp && $validUrl;\n }", "public function canEnableCleanURL()\n {\n $urlToCheck = \\XLite::getInstance()->getShopURL() . \\XLite::CLEAN_URL_CHECK_QUERY;\n $request = new \\XLite\\Core\\HTTP\\Request($urlToCheck);\n $request->setAdditionalOption(\\CURLOPT_SSL_VERIFYPEER, false);\n $request->setAdditionalOption(\\CURLOPT_SSL_VERIFYHOST, false);\n $response = $request->sendRequest();\n\n return !$this->isCleanURLEnabled()\n && $response\n && in_array($response->code, array(200, 301, 302));\n }", "public function matches_url( $url ) {\n\t\t$sanitize = $this->get_sanitize_callback();\n\t\t$normalized = $sanitize( $url );\n\t\treturn $normalized === $this->get();\n\t}", "public function validateRequest( $url ) {\n\t\t// Make sure it's from commons\n\t\tif ( strpos( $url, 'upload.wikimedia.org' ) > 0 ) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private function checkUrl() {\n $career = $this->route('career');\n\n $url = $this->input('url');\n $prefix = trans('module-careerplugin::options.url_prefix');\n $language = $career->language ?? $this->getLanguage();\n\n $fullUrl = ($language->language_code ?? '') . '/' . $prefix . '/' . $url;\n\n $urlModel = Url::findUrl($fullUrl);\n\n if (!$urlModel) {\n return true;\n }\n\n return $career && $urlModel->model_id === $career->id && $urlModel->model === Career::class;\n }", "function isValidURL($url)\n{\n if (! preg_match(\"/\\b(?:(?:https?|ftp):\\/\\/|www\\.)[-a-z0-9+&@#\\/%?=~_|!:,.;]*[-a-z0-9+&@#\\/%=~_|]/i\", $url)) {\n return false;\n }\n return true;\n}", "function phishtank_check_add( $false, $url ) {\n $url = yourls_sanitize_url( $url );\n\n // only check for 'http(s)'\n if( !in_array( yourls_get_protocol( $url ), array( 'http://', 'https://' ) ) )\n return $false;\n \n // is the url malformed?\n if ( phishtank_is_blacklisted( $url ) === yourls_apply_filter( 'phishtank_malformed', 'malformed' ) ) {\n\t\treturn array(\n\t\t\t'status' => 'fail',\n\t\t\t'code' => 'error:nourl',\n\t\t\t'message' => yourls__( 'Missing or malformed URL' ),\n\t\t\t'errorCode' => '400',\n\t\t);\n }\n\t\n // is the url blacklisted?\n if ( phishtank_is_blacklisted( $url ) != false ) {\n\t\treturn array(\n\t\t\t'status' => 'fail',\n\t\t\t'code' => 'error:spam',\n\t\t\t'message' => 'Ce domaine est sur liste noire',\n\t\t\t'errorCode' => '403',\n\t\t);\n }\n\t\n\t// All clear, not interrupting the normal flow of events\n\treturn $false;\n}", "function is_url_real ($url_to_shorten)\n{\n $test_flag = true;\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url_to_shorten);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n $response = curl_exec($ch);\n if( curl_getinfo($ch, CURLINFO_HTTP_CODE) == '404' ||\n FALSE == $response )\n {\n dumper($response);\n $test_flag = false;\n }\n curl_close($ch);\n return $test_flag;\n}", "function _mc_is_url( $url ) {\n\n\treturn preg_match( '|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url );\n}", "function helperCheckForWrongUrl() {\n\t\t$status = array();\n\n\t\tif ($GLOBALS['TSFE']->config['config']['baseURL'] != '' || $GLOBALS['TSFE']->config['config']['absRefPrefix']) {\n\t\t\t$currentDomain = t3lib_div::getIndpEnv('TYPO3_HOST_ONLY');\n\t\t\t$linkDomain = $this->pi_getPageLink($GLOBALS['TSFE']->id);\n\n\t\t\tif ($linkDomain != '' && strpos($linkDomain, $currentDomain) === false) {\n\t\t\t\t$status['current']\t= $currentDomain;\n\t\t\t\t$status['link']\t\t\t= $linkDomain;\n\t\t\t}\n\t\t}\n\n\t\treturn $status;\n\t}", "public static function is_forbidden_source() {\n\t\t\t// Forbidden domains.\n\t\t\t$forbidden = array(\n\t\t\t\t'wpengine' => '.wpengine.com',\n\t\t\t\t'dev' => '.dev',\n\t\t\t\t'local' => '.local',\n\t\t\t);\n\n\t\t\t// Filter to add or remove domains from forbidden array.\n\t\t\t$forbidden = apply_filters( 'imutils_forbiddden_domains', $forbidden );\n\n\t\t\t// Grab the installs url.\n\t\t\t$this_domain = self::get_site_hostname();\n\n\t\t\tforeach ( $forbidden as $domain ) {\n\t\t\t\tif ( false !== strpos( $this_domain, $domain ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}", "function url_exist($url)\r\n\t\t{\r\n\t\t\r\n\t\t}", "public function isRequestedUrlClean(Request\\Web $request)\n {\n $server = $request->getServer();\n if (!isset($server['REQUEST_URI'])) {\n throw new Exception('REQUEST_URI is not set');\n }\n\n return strpos($server['REQUEST_URI'], $this->entryPoint) !== 0;\n }", "private function isValidUri(): bool\n {\n return true;\n }", "protected function validateUrl($value){\n\t\treturn filter_var($value, FILTER_VALIDATE_URL) !== false;\n\t}", "function wp_http_validate_url($url)\n {\n }", "public function checkIfCrawlable($url)\n {\n if (empty($url)) {\n return false;\n }\n $patterns = [\n '@^javascript\\:@',\n '@^#.*@',\n '@^void\\(0\\);$@'\n ];\n foreach ($patterns as $pattern) {\n if (preg_match($pattern, $url)) {\n return false;\n }\n }\n return true;\n }", "private function validate_url($url)\n\t{\n\t\tglobal $config;\n\n\t\t$url = str_replace(\"\\r\\n\", \"\\n\", str_replace('\\\"', '\"', trim($url)));\n\t\t$url = str_replace(' ', '%20', $url);\n\t\t$url = str_replace('&', '&amp;', $url);\n\n\t\t// if there is no scheme, then add http schema\n\t\tif (!preg_match('#^[a-z][a-z\\d+\\-.]*:/{2}#i', $url))\n\t\t{\n\t\t\t$url = 'http://' . $url;\n\t\t}\n\n\t\t// Is this a link to somewhere inside this board? If so then run reapply_sid()\n\t\tif (strpos($url, generate_board_url()) !== false)\n\t\t{\n\t\t\t$url = reapply_sid($url);\n\t\t}\n\n\t\treturn $url;\n\t}", "function clean_url($url, $base_url)\r\n{\r\n\tif(filter_var($url, FILTER_VALIDATE_URL) )\r\n\t{\r\n\r\n\t\t$parse = parse_url($url);\r\n\t\tif( !empty($parse['host']) && $parse['host'] == $base_url )\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n}", "function checkurl($url){\n if(!filter_var($url, FILTER_VALIDATE_URL)){\n return \" \";\n }\n else{\n return $url;\n }\n }", "private function isResourceValid()\n {\n if (strpos($this->resourceToImport, 'www.freebase.com') === false)\n return false;\n\n return true;\n }", "function url_is_local($url)\n{\n if ($url === '') {\n return true;\n }\n\n if ($url[0] === 't' && substr($url, 0, 7) === 'themes/' || $url[0] === 'u' && substr($url, 0, 8) === 'uploads/') {\n return true;\n }\n if ($url[0] === 'h' && (substr($url, 0, 7) === 'http://' || substr($url, 0, 8) === 'https://')) {\n return false;\n }\n\n if (preg_match('#^[^:\\{%]*$#', $url) !== 0) {\n return true;\n }\n $first_char = $url[0];\n return (strpos($url, '://') === false) && ($first_char !== '{') && (substr($url, 0, 7) !== 'mailto:') && (substr($url, 0, 5) !== 'data:') && (substr($url, 0, 8) !== 'debugfs:') && ($first_char !== '%');\n}", "private function matchURL($request)\n {\n $uri = explode('/', $this->uri);\n $request_ = explode('/', $request);\n\n if (count($uri) !== count($request_)) {\n return false;\n }\n\n foreach ($uri as $k => $v):\n if (preg_match($this->regex, $v)) {\n unset($uri[$k]);\n unset($request_[$k]);\n }\n endforeach;\n return empty(array_diff($request_, $uri));\n }", "public static function isValidUrl($url)\n {\n return !preg_match('/[^A-Za-z0-9-_\\/]/', $url);\n }", "public static function isBannedUrl($url)\n {\n $bannedUrls = array(\n $_SERVER['SERVER_NAME'],\n //'joke-domain.com',\n );\n $banned = array();\n foreach ($bannedUrls as $bannedUrl) {\n $banned[] = str_replace('.', '\\.', $bannedUrl);\n }\n if (count($banned)) {\n $regex = '^(https?:\\/\\/)('.implode($banned, '|').')(.+)?$^';\n\n return preg_match($regex, $url);\n }\n\n return false;\n }", "protected function cleanUrlsEnabled()\n {\n return $this->cleanUrlsEnabled;\n }", "function ajax_action_check_url() {\n\n\t\t$hadError = true;\n\n\t\t$url = isset( $_REQUEST['url'] ) ? $_REQUEST['url'] : '';\n\n\t\tif ( strlen( $url ) > 0 && function_exists( 'get_headers' ) ) {\n\t\t\t\t\n\t\t\t$file_headers = @get_headers( $url );\n\t\t\t$exists = $file_headers && $file_headers[0] != 'HTTP/1.1 404 Not Found';\n\t\t\t$hadError = false;\n\t\t}\n\n\t\techo '{ \"exists\": '. ($exists ? '1' : '0') . ($hadError ? ', \"error\" : 1 ' : '') . ' }';\n\n\t\tdie();\n\t}", "public function check(string $url): bool\n\t{\n\t\t$url = mb_strtolower($url);\n\t\t$urlMd5 = md5(explode('//', $url)[1] ?? $url);\n\t\t$urlParts = parse_url($url);\n\t\t$domain = $urlParts['host'] ?? null;\n\n\t\tif (!$domain)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\t// check domain in white list\n\t\t$res = UrlCheckerWhitelistTable::getList([\n\t\t\t'filter' => [\n\t\t\t\t'=DOMAIN' => $domain\n\t\t\t],\n\t\t\t'limit' => 1\n\t\t]);\n\t\tif ($res->fetch())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\t// check exists url\n\t\t$res = UrlCheckerStatusTable::getList([\n\t\t\t'select' => [\n\t\t\t\t'ID', 'STATUS'\n\t\t\t],\n\t\t\t'filter' => [\n\t\t\t\t'=HASH' => $urlMd5\n\t\t\t]\n\t\t]);\n\t\tif ($row = $res->fetch())\n\t\t{\n\t\t\tif ($row['STATUS'])\n\t\t\t{\n\t\t\t\t$this->saveHost($row['ID']);\n\t\t\t}\n\t\t\treturn !$row['STATUS'];\n\t\t}\n\n\t\t// new check\n\t\t$status = $this->getUrlStatus($url);\n\t\t$res = UrlCheckerStatusTable::add([\n\t\t\t'STATUS' => $status,\n\t\t\t'HASH' => $urlMd5,\n\t\t\t'URL' => $url\n\t\t]);\n\t\t// save host if status is bad\n\t\tif ($res->isSuccess() && $status)\n\t\t{\n\t\t\t$this->saveHost($res->getId());\n\t\t}\n\n\t\treturn $status === null;\n\t}", "public function canHandleCurrentUrl() {}", "private function checkUrlStatus()\n {\n $request = curl_init($this->url);\n\n curl_setopt($request, CURLOPT_HEADER, true);\n curl_setopt($request, CURLOPT_NOBODY, true);\n curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($request, CURLOPT_TIMEOUT, 10);\n\n curl_exec($request);\n $httpCode = curl_getinfo($request, CURLINFO_HTTP_CODE);\n curl_close($request);\n\n if ($httpCode >= 200 && $httpCode < 400) {\n return true;\n }\n\n return false;\n }", "protected function originIsValid($origin)\n {\n $parsed = parse_url($origin);\n if (isset($parsed['host']) && $this->isInWhiteList($parsed['host'])) {\n return true;\n } else {\n return false;\n }\n }", "public function isUrl()\n {\n return filter_var($this->_value, FILTER_VALIDATE_URL);\n }", "function oos_validate_is_url($sUrl) {\n if (strlen($sUrl) == 0) {\n return false;\n }\n\n return preg_match('!^http(s)?://[\\w-]+\\.[\\w-]+(\\S+)?$!i', $sUrl);\n }", "function ozh_yourls_gsb_is_blacklisted( $url ) {\n include_once dirname( __FILE__ ) . '/includes/class-gsb.php';\n \n $api_key = yourls_get_option( 'ozh_yourls_gsb' );\n if( !$api_key ) {\n ozh_yourls_gsb_please_configure();\n return false;\n }\n \n $gsb = new ozh_yourls_GSB( $api_key );\n \n return $gsb->is_blacklisted( $url );\n}", "protected function is_valid_url($url) {\r\n return true;\r\n }", "private static function is_url( $url ) \n\t{\n\t\treturn ( ( strpos( $url, 'http://' ) === 0 || strpos( $url, 'https://' ) === 0 || strpos( $url, '//' ) === 0 || strpos( $url, '/' ) === 0 ) && strpos( $url, \"\\n\" ) === false );\n\t}", "private function checkURI()\n {\n // init vars\n $result = false;\n $uri = $this->getURI();\n $routesArray = $this->routes;\n\n // get existed rule for user requested uri\n foreach ($routesArray as $rulePattern => $path) {\n if (preg_match(\"~$rulePattern~i\", $uri)) {\n $result = [$rulePattern, $path];\n return $result;\n }\n }\n }", "public function validUrl($url)\n\t{\n\t\tif (filter_var($url, FILTER_VALIDATE_URL) === FALSE) return false; else return true;\n\n\t}", "private static function isValidUrl($url)\n {\n return preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url)\n || filter_var(filter_var($url, FILTER_SANITIZE_URL), FILTER_VALIDATE_URL);\n }", "public function hasHostInfo($url) {\n\t\treturn !strncasecmp($url,'http://',7) || !strncasecmp($url,'https://',8); //same criterias as in CUrlRule\n\t}", "protected function enabled($url) {\n\t\t$web=\\Web::instance();\n\t\t$req=$web->request($url);\n\t\t$found=FALSE;\n\t\tif ($req['body']) {\n\t\t\t// Look for pingback header\n\t\t\tforeach ($req['headers'] as $header)\n\t\t\t\tif (preg_match('/^X-Pingback:\\h*(.+)/',$header,$href)) {\n\t\t\t\t\t$found=$href[1];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tif (!$found &&\n\t\t\t\t// Scan page for pingback link tag\n\t\t\t\tpreg_match('/<link\\h+(.+?)\\h*\\/?>/i',$req['body'],$parts) &&\n\t\t\t\tpreg_match('/rel\\h*=\\h*\"pingback\"/i',$parts[1]) &&\n\t\t\t\tpreg_match('/href\\h*=\\h*\"\\h*(.+?)\\h*\"/i',$parts[1],$href))\n\t\t\t\t$found=$href[1];\n\t\t}\n\t\treturn $found;\n\t}", "function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_agent)\n {\n }", "public function isValidUrlInvalidRessourceDataProvider() {}", "function ghostpool_validate_url() {\n\t\tglobal $post;\n\t\t$gp_page_url = esc_url( home_url() );\n\t\t$gp_urlget = strpos( $gp_page_url, '?' );\n\t\tif ( $gp_urlget === false ) {\n\t\t\t$gp_concate = \"?\";\n\t\t} else {\n\t\t\t$gp_concate = \"&\";\n\t\t}\n\t\treturn $gp_page_url . $gp_concate;\n\t}", "function carousel_slider_is_url( $url ) {\n\t\tif ( filter_var( $url, FILTER_VALIDATE_URL ) ) {\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "private function isValidUrl(string $url): bool\n {\n return filter_var($url, FILTER_VALIDATE_URL) !== false;\n }", "public function isValidURL($url)\n {\n if (substr($url, 0, 1) == '#') {\n $result = true;\n } else {\n $result = preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url);\n }\n \n return $result;\n }", "function checkOEmbedUrl($url) {\n\n $parsedUrl = parse_url($url);\n $domain = str_replace('www.','',$parsedUrl['host']);\n\n switch ($domain) {\n\n case 'youtube.com':\n return true;\n break;\n\n case 'm.youtube.com':\n return true;\n break;\n\n case 'flickr.com':\n return true;\n break;\n\n case 'm.flickr.com':\n return true;\n break;\n\n /*case 'viddler.com':\n return true;\n break;*/\n\n case 'vimeo.com':\n return true;\n break;\n\n case 'dribbble.com':\n return true;\n break;\n\n case 'drbl.in':\n return true;\n break;\n\n case 'instagr.am':\n return true;\n break;\n\n case 'instagram.com':\n return true;\n break;\n\n case 'amazon.com':\n return true;\n break;\n\n case 'amzn.com':\n return true;\n break;\n\n case 'twitpic.com':\n return true;\n break;\n\n case 'speakerdeck.com':\n return true;\n break;\n\n case 'slideshare.net':\n return true;\n break;\n\n case 'skitch.com':\n return true;\n break;\n\n case 'img.skitch.com':\n return true;\n break;\n\n case 'gist.github.com':\n return true;\n break;\n\n case 'huffduffer.com':\n return true;\n break;\n\n case 'soundcloud.com':\n return true;\n break;\n\n case 'ted.com':\n return true;\n break;\n\n /*case 'wikipedia.org':\n return true;\n break;\n\n case 'en.wikipedia.org':\n return true;\n break;*/\n\n default:\n return false;\n break;\n\n }\nreturn false;\n}", "public function isProtocolLess()\n {\n if (preg_match('~^\\/\\/~i', $this->url)) {\n return true;\n } else {\n return false;\n }\n }", "public function validShortURL($url) {\n\t\t\t//print \"name(\".$this->name.\") == $url<br>\\n\";\n\t\t\tif ($this->name == $url) return false;\n\t\t\treturn true;\n\t\t}", "function url_analyze ($url)\n{\n\trequire (\"url_handling_parameters.php\");\n\n\t// return-values:\n\t// 0 = url is not allowed, unable to handle\n\t// 1 = url is ok -> make picture\n\t// 2 = url is email\n\t// 3 = url is downloadable file\n\n\t\n\t// allowed?\n\tif (eregiArray($url_forbidden,$url)) return 0;\n\t// email\n\tif (eregiArray($url_email,$url)) return 2; \n\t// downloadable files\n\telseif (eregiArray($url_download,$url)) return 3;\n\t// allowed url\n\telseif (eregiArray($url_allowed,$url)) return 1;\n\t\n\telse return 0;\n}", "public function testRejectBlacklistedHostThoughNotTrue()\r\n {\r\n $this->config->set('URI.HostBlacklist', 'example.com');\r\n $this->assertFiltering('http://example.comcast.com', false);\r\n }", "function securityCheck($formURL = \"\") {\n $debugThis = false;\n \n $status = true; // start off thinking everything is good until a test fails\n \n // when it is a form page check to make sure it submitted to itself\n if ($formURL != \"\") {\n $fromPage = htmlentities($_SERVER['HTTP_REFERER'], ENT_QUOTES, \"UTF-8\");\n \n //remove http or https\n $fromPage = preg_replace('#^https?:#', '', $fromPage);\n \n if ($debugThis)\n print \"<p>From: \" . $fromPage . \" should match your Url: \" . $formURL;\n \n if ($fromPage != $formURL) {\n $status = false;\n }\n }\n \n return $status;\n}", "public function sanitizeLocalUrlValidUrlsDataProvider() {}", "function sanitize_trackback_urls($to_ping)\n {\n }", "function url_exists($url){ \r\n $url_data = parse_url($url); // scheme, host, port, path, query\r\n if(!fsockopen($url_data['host'], isset($url_data['port']) ? $url_data['port'] : 80)){\r\n $this->set_message('url_exists', 'The URL you entered is not accessible.');\r\n return FALSE;\r\n } \r\n \r\n return TRUE;\r\n }", "function cleanSocialUrl($url)\n{\n $segment = '[^.:\\/]+';\n preg_match('/(?:https?:\\/\\/)?(?:' . $segment . '\\.)?(' . $segment . '(?:\\.' . $segment . ')+)/', $url, $matches);\n return isset($matches[1]) ? $matches[1] : false;\n}", "public function checkIfExternal($url)\n {\n $baseUrlTrimmed = str_replace(['http://', 'https://'], '', $this->baseUrl);\n if (preg_match(\"@http(s)?\\://$baseUrlTrimmed@\", $url)) {\n return false;\n } else {\n return true;\n }\n }", "public function validateRedirectUrlKeepsCleanUrlDataProvider() {}", "protected function validateUrl($url)\n {\n if (! parse_url($url) )\n {\n return false;\n }\n if (! ($this->startsWith($url, 'https://') || $this->startsWith($url, 'http://')))\n {\n return false;\n }\n\n return true;\n }", "function urlOK($url)\n{\n $headers = @get_headers($url);\n if(strpos($headers[0],'200')===false){return false;}else{return true;}\n}", "function validUrl($url)\n{\n return filter_var($url, FILTER_VALIDATE_URL);\n}", "private static function isValidUrl($url)\n {\n if (strpos($url, '://') === false) {\n $url = 'http://' . $url;\n }\n \n return filter_var($url, FILTER_VALIDATE_URL) !== false;\n }", "function wpcom_vip_is_valid_domain( $url, $whitelisted_domains ) {\n\t$domain = parse_url( $url, PHP_URL_HOST );\n\n\tif ( ! $domain )\n\t\treturn false;\n\n\t// Check if we match the domain exactly\n\tif ( in_array( $domain, $whitelisted_domains ) )\n\t\treturn true;\n\n\t$valid = false;\n\n\tforeach( $whitelisted_domains as $whitelisted_domain ) {\n\t\t$whitelisted_domain = '.' . $whitelisted_domain; // Prevent things like 'evilsitetime.com'\n\t\tif( strpos( $domain, $whitelisted_domain ) === ( strlen( $domain ) - strlen( $whitelisted_domain ) ) ) {\n\t\t\t$valid = true;\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn $valid;\n}", "function wpspamshield_whitelist_webhook( $bypass ) {\n\tif ( untrailingslashit( $_SERVER['REQUEST_URI'] ) === '/' . rest_get_url_prefix() . '/airstory/v1/webhook' ) {\n\t\t$bypass = true;\n\t}\n\n\treturn $bypass;\n}", "public function testCheckURLAllowedWithoutRegex()\n {\n $original = $_SERVER;\n\n Configuration::loadFromArray([\n 'trusted.url.domains' => ['sp.example.com', 'app.example.com'],\n 'trusted.url.regex' => false,\n ], '[ARRAY]', 'simplesaml');\n\n $_SERVER['REQUEST_URI'] = '/module.php';\n\n $allowed = [\n 'https://sp.example.com/',\n 'http://sp.example.com/',\n 'https://app.example.com/',\n 'http://app.example.com/',\n ];\n foreach ($allowed as $url) {\n $this->assertEquals(HTTP::checkURLAllowed($url), $url);\n }\n\n $this->setExpectedException('\\SimpleSAML\\Error\\Exception');\n HTTP::checkURLAllowed('https://evil.com');\n\n $_SERVER = $original;\n }", "function ozh_yourls_gsb_check_add( $false, $url ) {\n \n list( $blacklisted, $desc ) = ozh_yourls_gsb_is_blacklisted( $url );\n \n // If blacklisted, halt here\n\tif ( $blacklisted ) {\n\t\treturn array(\n\t\t\t'status' => 'fail',\n\t\t\t'code' => 'error:' . $desc,\n\t\t\t'message' => 'Ce domaine est sur liste noire par Google Safe Browsing à cause de suspicion de ' . $desc . '. <a href=\"http://code.google.com/apis/safebrowsing/safebrowsing_faq.html#whyAdvisory\">En savoir plus</a>.',\n\t\t\t'errorCode' => '403',\n\t\t);\n\t}\n \n // If not blacklisted but still unsure (error message), we should warn the user\n if( $desc ) {\n define( 'OZH_YOURLS_GSB_EXTRA_INFO', $desc );\n yourls_add_filter( 'add_new_link', 'ozh_yourls_gsb_extra_info' );\n }\n\t\n\t// All clear, don't interrupt the normal flow of events\n\treturn $false;\n}", "public function checkUrl()\n\t{\n\t\t$url = $this->input->get('url', '', 'raw');\n\n\t\t/** @var \\Akeeba\\Backup\\Admin\\Model\\Transfer $model */\n\t\t$model = $this->getModel();\n\t\t$model->savestate(true);\n\t\t$result = $model->checkAndCleanUrl($url);\n\n\t\t$this->container->platform->setSessionVar('transfer.url', $result['url'], 'akeeba');\n\t\t$this->container->platform->setSessionVar('transfer.url_status', $result['status'], 'akeeba');\n\n\t\t@ob_end_clean();\n\t\techo '###' . json_encode($result) . '###';\n\t\t$this->container->platform->closeApplication();\n\t}", "function is_valid_url($string) {\n\tif(is_url($string)){\n\t\t$ch = curl_init();\n\t\tcurl_setopt ($ch, CURLOPT_URL, str_replace('https://', 'http://', $string));\n\t\tcurl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt ($ch, CURLOPT_NOBODY, true);\n\t\tcurl_setopt ($ch, CURLOPT_FAILONERROR, false);\n\t\tcurl_setopt ($ch, CURLOPT_AUTOREFERER, true);\n\t\tcurl_setopt ($ch, CURLOPT_TIMEOUT, 120);\n\t\t$result = @curl_exec($ch);\n\t\tcurl_close($ch);\n\t\treturn ($result!==false) ? true : false;\n\t} else {\n\t\treturn false;\n\t}\n}", "protected static function isValidUrl($url)\n {\n try {\n return Http::get('http://' . str_replace(['http://', 'https://'], '', $url))->status() < 300;\n } catch (Exception $e) {\n return false;\n }\n }", "public static function urlIsInternal ($url)\r\n\t{\r\n\t\t# Return true if the full URL starts with the site URL\r\n\t\treturn preg_match ('/^' . addcslashes ($_SERVER['_SITE_URL'], '/') . '/i', $url);\r\n\t}", "public static function validUrl($url) {\n if (! $info = parse_url($url)) {\n return false;\n }\n\n if (empty($info['host']) || $info['host'] === 'localhost') {\n return false;\n }\n\n if (empty($info['scheme']) || ! ($info['scheme'] === 'http' || $info['scheme'] === 'https')) {\n return false;\n }\n\n return true;\n }", "function validURL($URL) {\n\treturn filter_var($URL, FILTER_VALIDATE_URL);\n}" ]
[ "0.73673946", "0.724391", "0.7233416", "0.6958364", "0.68670064", "0.68289775", "0.6731448", "0.6653716", "0.6619557", "0.6619557", "0.66148746", "0.6608692", "0.6559239", "0.6550086", "0.6537593", "0.6529489", "0.65250295", "0.6500197", "0.64802873", "0.6477464", "0.6473724", "0.64400375", "0.6433787", "0.6403493", "0.6390364", "0.63791615", "0.6369003", "0.6343419", "0.6336775", "0.62927586", "0.62804925", "0.62699443", "0.6268767", "0.62679404", "0.6254916", "0.6246304", "0.62433666", "0.62395865", "0.62391406", "0.6215735", "0.62110317", "0.62108463", "0.6194428", "0.6175712", "0.61709243", "0.6165392", "0.6164224", "0.6159245", "0.6151291", "0.6133761", "0.6122887", "0.6121264", "0.6115996", "0.6112676", "0.61105967", "0.61104393", "0.61103296", "0.61033696", "0.61032313", "0.60909134", "0.608585", "0.6072115", "0.60555273", "0.6051826", "0.604961", "0.6049368", "0.60478383", "0.6042942", "0.60372293", "0.6035658", "0.6035332", "0.6031326", "0.603019", "0.60292524", "0.602687", "0.6023192", "0.60152197", "0.5996634", "0.5989568", "0.59828395", "0.5970984", "0.5969218", "0.5963261", "0.5962828", "0.59582627", "0.59453446", "0.5942186", "0.59383607", "0.59369546", "0.592663", "0.5923805", "0.5922887", "0.5901173", "0.5897261", "0.5896311", "0.58955956", "0.58932424", "0.5891776", "0.5889458", "0.5884896", "0.5880388" ]
0.0
-1
update + user diamond
function UPDATE_daimond_receiver($fb_id , $add_diamond) { include("config.php"); $UPDATE_daimond_receiver="update users set total_diamondd=total_diamondd+".$add_diamond." WHERE fb_id=".$fb_id; $res=mysqli_query($conn,$UPDATE_daimond_receiver); return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateUser()\n {\n }", "public function testUpdateNetworkMerakiAuthUser()\n {\n }", "public function update():void\n {\n $id = $this->id;\n $first_name = $this->first_name;\n $last_name = $this->last_name;\n $image = $this->image;\n $user_type = $this->user_type;\n $address = $this->address;\n\t\t$phone = $this->phone;\n $this->fetch(\n 'UPDATE user\n SET first_name = ?,\n last_name = ?,\n image = ?,\n user_type = ?,\n address=?,\n phone=?\n WHERE id = ?;',\n [$first_name, $last_name,$image, $user_type,$address ,$phone , $id]\n );\n }", "public function update(){\n\t\t$sql = \"update user set pass='\".$this->pass.\"' where id='\".$this->id.\"'\";\n\t\treturn\tExecutor::doit($sql);\n\t}", "private function _update() {\n\n $this->db->replace(XCMS_Tables::TABLE_USERS, $this->getArray());\n $this->attributes->save();\n\n }", "public function update(){\n\t\tparent::update(\"UPDATE Users set privacy_setting = \" . $this->privacy_setting . \" where id = \" . $this->id);\n\t}", "private function updateUser () {\n $sql = \"UPDATE users SET avatar = :avatar,\n biography = :biography,\n birthdate = :birthdate,\n email = :email,\n nickname = :nickname,\n location = :location,\n password = :password,\n activated = :activated,\n phone = :phone,\n username = :username,\n website = :website WHERE id_user = :id_user\";\n $query = $this->bdd->prepare($sql);\n $query->bindParam(':avatar', $this->avatar);\n $query->bindParam(':biography', $this->biography);\n $query->bindParam(':birthdate', $this->birthdate);\n $query->bindParam(':email', $this->email);\n $query->bindParam(':nickname', $this->nickname);\n $query->bindParam(':location', $this->location);\n $query->bindParam(':password', $this->password);\n $query->bindParam(':phone', $this->phone);\n $query->bindParam(':username', $this->username);\n $query->bindParam(':website',$this->website);\n $query->bindParam(':activated',$this->activated);\n $query->bindParam(':id_user',$_SESSION['auth']['id_user']);\n $query->execute();\n }", "private function dbUpdate(): void\n {\n $db_users = $this->db->getUsers();\n $user_not_exist = $db_users == 'no users' ? true : !array_key_exists( $this->info['user_id'], $db_users );\n $avatars_path = '/data/avatars/';\n $leave = [ 'left', 'kicked' ];\n if ( in_array($this->info['status'], $leave) ){ // Remove from DB, if leave\n $this->db_post->userLeave( $this->info['user_id'] );\n exit('ok');\n } \n\n if ( $user_not_exist ) { // Username not found in DB\n $user_id = $this->info['user_id'];\n $username = $this->info['user_first_name'];\n $img = new Image_Gen();\n $hex = $this->info['hex_color'] = $img->randomColor();\n $this->avatarCheck( $avatars_path, $user_id, $username, $hex ); // Make avatar if not exist\n $allowed_post = [ 'user_id', 'user_first_name', 'hex_color', 'status' ];\n $this->db_post->userAdd( $this->info, $allowed_post );\n } else { // Update user in DB\n $allowed_post = [ 'user_id', 'user_first_name', 'status' ];\n $this->db_post->userUpdate( $this->info, $allowed_post );\n }\n\n if ( $this->info['has_reply'] && !$this->info['reply_from_is_bot'] ) { // Find reply, not from bot\n $reply_id = $this->info['reply_from_id'];\n $reply_status = $this->tg->getStatus( $this->info['chat_id'], $reply_id );\n $reply_user_not_exist = $db_users == 'no users' ? true : !array_key_exists( $reply_id, $db_users );\n\n if ( !in_array($reply_status, $leave) && $reply_user_not_exist ) { // Add user from reply to db\n $reply_username = $this->info['reply_from_first_name'];\n $img = new Image_Gen();\n $reply_hex = $img->randomColor();\n $post = [\n 'user_id' => $reply_id, 'user_first_name' => $reply_username,\n 'hex_color' => $reply_hex, 'status' => $reply_status,\n ];\n $reply_allowed_post = [ 'user_id', 'user_first_name', 'hex_color', 'status' ];\n $this->avatarCheck( $avatars_path, $reply_id, $reply_username, $reply_hex ); // Make avatar if not exist\n $this->db_post->userAdd( $post, $reply_allowed_post );\n }\n }\n\n }", "public function update(){\t\t\tif( is_null( $this->id ) ) trigger_error( \"User::update(): Attempt to update a user object that does not have its ID property set.\", E_USER_ERROR );\r\n\t\t\t\r\n\t\t\r\n\r\n\t\t\t//Update the object\r\n\t\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\t\t\r\n\t\t\t$sql = \"UPDATE \".TABLENAME_GROUPS.\" SET name=:name, caption=:caption, adminId=:adminId, per2Id=:per2Id, per3Id=:per3Id, icon_link=:icon_link, status=:status WHERE id = :id\";\r\n\t\t\t$st = $conn->prepare( $sql );\r\n\t\t\t$st->bindValue( \":name\", $this->name, PDO::PARAM_STR );\r\n\t\t\t$st->bindValue( \":caption\", $this->caption, PDO::PARAM_STR );\r\n\t\t\t$st->bindValue( \":adminId\", $this->adminId, PDO::PARAM_INT );\r\n\t\t\t$st->bindValue( \":per2Id\", $this->per2Id, PDO::PARAM_INT );\r\n\t\t\t$st->bindValue( \":per3Id\", $this->per3Id, PDO::PARAM_INT );\r\n\t\t\t$st->bindValue( \":icon_link\", $this->icon_link, PDO::PARAM_STR );\r\n\t\t\t$st->bindValue( \":status\", $this->status, PDO::PARAM_STR );\r\n\t\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t\techo \"<br>\";\r\n\t\t\t$st->execute();\r\n\t\t//\tprint_r($st->errorInfo());\r\n\t\t\t$conn = null;\t\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}", "public function update($user)\n {\n }", "public function updatePrivateAccount()\n {\n $dbh = new PDO('mysql:host=' . HOST . ';dbname=' . DBNAME, USER, PASSWORD, array(\n PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\",\n PDO::ATTR_PERSISTENT => true\n ));\n\n $userisPrivate = $this->getPrivateAccount();\n\n if ($userisPrivate == 0) {\n $userSetPrivateTo = 1;\n } else {\n $userSetPrivateTo = 0;\n }\n\n try {\n $sqlUpdatePrivateAccount = \"UPDATE user SET privateAccount = :update_private_account WHERE id = :id_user\";\n $psUpdatePrivateAccount = $dbh->prepare($sqlUpdatePrivateAccount);\n $psUpdatePrivateAccount->execute(array(':update_private_account' => $userSetPrivateTo, ':id_user' => $this->idUser));\n } catch (PDOException $e) {\n print \"Erreur !: \" . $e->getMessage() . \"<br>\";\n die();\n }\n }", "private function update(){\n\t\t$q = Queries::update($this->authkey);\n\t\t$this->internalQuery($q);\n\t}", "public function update($user, $ident, DatabaseDataHandler $data);", "function update($user_query,$pass_query,$hint_query){\n\t\t$count=0;\n\t\tif($user_query!=\"\"){\n\t\t\t$result=$this->query('update users set username =\"'.$user_query.'\" where username=\"'.$this->user.'\"');\n\t\t\t$count++;\n\t\t}\n\t\tif($pass_query!=\"\"){\n\t\t\t$result=$this->query('update users set password =\"'.crypt($pass_query,$this->salt).'\" where password=\"'.$this->pass.'\"');\n\t\t\t$count++;\n\t\t}\n\t\tif($hint_query!=\"\"){\n\t\t\t$result=$this->query('update users set passwordHint =\"'.$hint_query.'\" where username=\"'.$this->user.'\"');\n\t\t\t$count++;\n\t\t}\n\treturn $count;\n\t\n\t}", "public function updateUserDiamonds($diamondsChange) {\n\t\t$diamondsparams = array();\n\t\t$diamondsparams['diamonds'] = - $diamondsChange;\n\t\n\t\t$conditions = array();\n\t\t$conditions['id'] = $this->id;\n\n\t\t$success = ConnectionFactory::updateTableRowRelativeBasic(\"users\", $diamondsparams, $conditions);\n\t\tif ($success) {\n\t\t\t$this->diamonds = - $diamondsChange;\n\t\t}\n\t\treturn $success;\n\t}", "protected function update() {}", "public function updateUserBuddy()\n {\n $conn = Db::getConnection();\n $statement = $conn->prepare(\"UPDATE user SET buddy= :buddy WHERE userID = :userBuddy\");\n $statement->bindParam(':buddy', $this->buddy);\n $statement->bindParam(':userBuddy', $this->userBuddy);\n $result = $statement->execute();\n return $result;\n }", "static function updateUser() : string\n {\n return \"UPDATE users\n SET nickname = :nickname, password = :password, type = :type, mail = :mail\n WHERE id = :id;\";\n }", "function updateUser() {\n\t\t$rating = $this -> getTaskRating();\n\t\t$sql = \"Update Users set finishedBasic=1, userRating=userRating+\" . $rating . \" where UID= (Select t.UID from Task t WHERE t.TaskId=\" . $this -> data[0]['TaskId'] . \")\";\n\t\t$stmt = $this -> DB -> prepare($sql);\n\t\tif ($stmt -> execute()) {\n\t\t\t$this -> checkforLast();\n\t\t} else {\n\t\t\tinclude_once \"Email.php\";\n\t\t\tnew Email('failed', 'to update user with TaskId=' . $this -> data[0]['TaskId'], $this -> id);\n\t\t}\n\t}", "public function updateUser($data) {\n\t\t\n\t}", "public function update()\n {\n echo uniqid('km-');\n // $data = $this->Users_model->get_all();\n // foreach ($data as $datas) {\n // $d['users_id'] = uniqid('km-');\n // $this->Users_model->update_users($datas->users_email, $d);\n // }\n }", "public function update($user_id)\n\t{\n\t\t//\n\t}", "function fm_update_pass ($unique_id, $new_pass, $db_conf){\n\n\t\t$query = \"UPDATE GROUP_INFORMATION SET PASS='\" . $new_pass . \"' WHERE UNIQUE_ID='\" . $unique_id . \"'\" ;\n\t\t\n\t\tmysqli_query($db_conf, $query);\n\n\t}", "public function updateUserLinked\t(){\n\t\t\n\t\t}", "public function updateUser( UserDataInf $user )\n {\n \n $userName = $user->getName();\n \n $userId = $this->getUserId( $userName );\n $passwd = Password::passwordHash( $user->getPasswd() );\n \n $sqlUser = <<<SQL\nUPDATE wbfsys_role_user\nSET\n name = '{$userName}', \n inactive = FALSE, \n non_cert_login = TRUE,\n profile = '{$user->getProfile()}',\n level = '{$user->getLevel()}',\n password = '{$passwd}'\nWHERE rowid = {$userId}\n;\nSQL;\n \n $this->db->update( $sqlUser );\n \n $personId = $this->db->select( 'SELECT id_person from wbfsys_role_user where rowid = '.$userId );\n \n \n $sqlPerson = <<<SQL\nUPDATE core_person\nSET\nfirstname = '{$user->getFirstname()}', \nlastname = '{$user->getLastname()}'\nWHERE rowid = {$personId};\nSQL;\n\n $this->db->update( $sqlPerson );\n \n }", "function modifyUserDetail($userId,$uname,$sex,$age,$loc,$hobby,$signature){\n DBUtils::execute('UPDATE user SET name = '.'\"'.$uname.'\",'.'sex='.'\"'.$sex.'\",'.'age='.$age.',location='.'\"'.$loc.'\",'.'hobby='.'\"'.$hobby.'\",'.'signature='.'\"'.$signature.'\" WHERE id='.$userId);\n }", "public function updateImage(){\t\t\tif( is_null( $this->id ) ) trigger_error( \"User::update(): Attempt to update a user object that does not have its ID property set.\", E_USER_ERROR );\r\n\t\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\t\t\r\n\t\t\t$sql = \"UPDATE \".TABLENAME_GROUPS.\" SET icon_link=:icon_link WHERE id = :id\";\r\n\t\t\t$st = $conn->prepare( $sql );\r\n\t\t\t$st->bindValue( \":icon_link\", $this->icon_link, PDO::PARAM_STR );\r\n\t\t\t\r\n\t\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t\t$st->execute();\r\n\t\t\t$conn = null;\r\n\r\n\t\t\treturn true;\r\n\t\t\t\r\n\t\t\t}", "public function update()\n\t{\n\t\t$this->user->db_update();\n\t}", "function update_Admin($UserName, $passwd, $Name, $Addr, $Email, $Admin) {\r\n// the database to new details in arguments\r\n\r\n $conn = db_connect();\r\n\r\n $query = \"update Users2\r\n set UserName= '\".$UserName.\"',\r\n Password = sha1('\".$passwd.\"'),\r\n Name = '\".$Name.\"',\r\n Addr = '\".$Addr.\"',\r\n Email = '\".$Email.\"'\r\n IsAdmin = FALSE\r\n where UserName = '\".$UserName.\"'\";\r\n \r\n \r\n \r\n\r\n\r\n $result = @$conn->query($query);\r\n if (!$result) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n}", "function updateUser_Privilage($user_privilage) {\n\t\t$user_privilageIn=new User_Privilage();\n\t\t$user_privilageIn=$user_privilage;\n\n\t\t$SQL= sprintf(\"UPDATE user_privilage_tab SET order_no=%d,code='%s',user_id='%s',privilage_id='%s',is_view='%s',is_save='%s',is_edit='%s',is_delete='%s',data_date='%s',status='%s',date_='%s' WHERE id=%d \",\n\t\tmysql_real_escape_string($user_privilageIn->getOrder_no()),mysql_real_escape_string($user_privilageIn->getCode()),mysql_real_escape_string($user_privilageIn->getUser_id()),mysql_real_escape_string($user_privilageIn->getPrivilage_id()),mysql_real_escape_string($user_privilageIn->getIs_view()),mysql_real_escape_string($user_privilageIn->getIs_save()),mysql_real_escape_string($user_privilageIn->getIs_edit()),mysql_real_escape_string($user_privilageIn->getIs_delete()),mysql_real_escape_string($user_privilageIn->getData_date()),mysql_real_escape_string($user_privilageIn->getStatus()),mysql_real_escape_string($user_privilageIn->getDate_()),$user_privilageIn->getId());\n\n\t\t$this->db->executeQuery($SQL);\n\n\t}", "public function db_update() {}", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",lastname=\\\"$this->lastname\\\",username=\\\"$this->username\\\",email=\\\"$this->email\\\",kind=\\\"$this->kind\\\",status=\\\"$this->status\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update($permiso);", "public function testUpdateMember()\n {\n }", "function change_user_info( $user, $key, $config )\n {\n //Unimplemented\n }", "function update() {\n\t\n\t \t$sql = \"UPDATE evs_database.evs_group \n\t \t\t\tSET\tgru_id=?, gru_name=?, gru_head_dept=? \n\t \t\t\tWHERE gru_id=?\";\n\t\t\n\t\t$this->db->query($sql, array($this->gru_id_new, $this->gru_name, $this->gru_head_dept, $this->gru_id_old));\n\t\t \n\t }", "public function updateAdmin($username, $email)\n{\n // 'sudo_username' => $username\n // ));\n\n $sql = \"UPDATE commanders SET commander_accessName = '$username' WHERE commander_email = '$email' \";\n $this->_db->query($sql);\n return true;\n}", "function updateUser($userId, $image, $password, $email, $phone, $about){\n //TODO Actually implement the function.\n // $dbQuery = \"UPDATE USERS SET \";\n }", "function changeUserImage($pdo, $id, $image)\n{\n executeUpdate($pdo, \n \"UPDATE User SET image = ? WHERE id = ?\", array(\n $image, $id\n )\n );\n}", "public function update(User $user, Bid $bid)\n {\n //\n }", "public function update(){\n $sql = \"update \".self::$tablename.\" set correlativo=\\\"$this->correlativo\\\",nombre_instalador=\\\"$this->nombre_instalador\\\",nombre_proyecto=\\\"$this->nombre_proyecto\\\",localizacion=\\\"$this->localizacion\\\",contrato_orden_trabajo=\\\"$this->contrato_orden_trabajo\\\",sector_trabajo=\\\"$this->sector_trabajo\\\",area_aceptada=\\\"$this->area_aceptada\\\",fecha_proyecto=\\\"$this->fecha_proyecto\\\" where id_usuario=$this->id_usuario\";\n Executor::doit($sql);\n }", "public function updateThisPupil():void\n {\n $cbd = (new Connected())->connectedToDataBase();\n $query = \"UPDATE list_of_classes SET VALUES (?)\";\n \n }", "public function update() {\n global $database;\n //$properties = $this->properties();\n $properties = $this->clean_properties();\n $properties_pairs = array();\n foreach ($properties as $key =>$value){\n $properties_pairs[] = \"{$key}='{$value}'\";\n \n }\n \n// $sql = \"UPDATE users SET \";\n $sql = \"UPDATE \" .static::$db_table. \" SET \"; // we use the abstract tables\n $sql .=implode(\",\", $properties_pairs);\n// $sql .=\"username = '\" .$database->escape_string($this->username) .\"', \";\n// $sql .=\"password = '\" .$database->escape_string($this->password) .\"', \";\n// $sql .=\"first_name = '\" .$database->escape_string($this->first_name) .\"', \";\n// $sql .=\"last_name = '\" .$database->escape_string($this->last_name) .\"' \";\n $sql .=\" WHERE id =\" .$database->escape_string($this->id);\n \n // Send the query to a databse using iternally instead of if\n $database->query($sql);\n return (mysqli_affected_rows($database->connection) ==1)? true : false;\n }", "private function _update(){\n\t\tif($this->dao->update($this->user->getID(), $this->ident, $this->datahandler)){\n\t\t\t$this->read();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function update()\n {\n $persist = false;\n\n $user = $this->database;\n $history = $user->addCureentSemesterToHistory();\n\n $level = null;\n $branch = $this->ldap->getNiveau();\n\n preg_match('/^(.+)[0-9]$/i', $this->ldap->getNiveau(), $match);\n\n if (isset($match[1])) {\n $branch = $match[1];\n $level = str_replace($branch, '', $this->ldap->getNiveau());\n }\n\n $branchList = [];\n $niveauList = [];\n foreach ($this->ldap->getNiveauList() as $niveau) {\n preg_match('/^(.+)[0-9]$/i', $niveau, $match);\n if (isset($match[1])) {\n $branchList[] = $match[1];\n $niveauList[] = str_replace($match[1], '', $niveau);\n }\n }\n\n // Updates\n if (ucfirst(mb_strtolower($this->ldap->getFormation())) != $this->database->getFormation()) {\n $persist = true;\n $user->setFormation(ucfirst(mb_strtolower($this->ldap->getFormation())));\n }\n\n if ($this->array_different($this->ldap->getFormationList(), $this->database->getFormationList())) {\n $persist = true;\n $user->setFormationList($this->ldap->getFormationList());\n }\n\n if ($this->array_different($this->ldap->getNiveauList(), $this->database->getBranchNiveauList())) {\n $persist = true;\n $user->setBranchNiveauList($this->ldap->getNiveauList());\n }\n\n if ($level != $this->database->getNiveau()) {\n $persist = true;\n $user->setNiveau($level);\n }\n\n if ($branch != $this->database->getBranch()) {\n $persist = true;\n $user->setBranch($branch);\n }\n\n // On remet les branches et niveaux dans l'ordre\n if(count($this->ldap->getFormationList()) == count($branchList)) {\n for ($position = 0; $position < count($branchList); $position++) {\n $branch = $branchList[$position];\n if(array_key_exists($branch, DbUser::$branchToFormation) && in_array(DbUser::$branchToFormation[$branch], $this->ldap->getFormationList())) {\n $positionInBranch = array_search(DbUser::$branchToFormation[$branch], $this->ldap->getFormationList());\n if($position != $positionInBranch) {\n $temp = $branchList[$positionInBranch];\n $temp2 = $niveauList[$positionInBranch];\n $branchList[$positionInBranch] = $branch;\n $niveauList[$positionInBranch] = $niveauList[$position];\n $branchList[$position] = $temp;\n $niveauList[$position] = $temp2;\n }\n }\n }\n }\n\n // On remet les filieres dans l'ordre\n $filiereList = $this->ldap->getFiliereList();\n if(count($filiereList) == count($branchList)) {\n for ($position = 0; $position < count($filiereList); $position++) {\n $filiere = $filiereList[$position];\n if(array_key_exists($filiere, DbUser::$filieresToBranch) && in_array(DbUser::$filieresToBranch[$filiere], $branchList)) {\n $positionInBranch = array_search(DbUser::$filieresToBranch[$filiere], $branchList);\n if($position != $positionInBranch) {\n $temp = $filiereList[$positionInBranch];\n $filiereList[$positionInBranch] = $filiere;\n $filiereList[$position] = $temp;\n }\n }\n }\n }\n\n if ($this->ldap->getFiliere() !== $this->database->getFiliere()) {\n $persist = true;\n $user->setFiliere($this->ldap->getFiliere());\n }\n\n if ($this->array_different($filiereList, $this->database->getFiliereList())) {\n $persist = true;\n $user->setFiliereList($filiereList);\n }\n\n if($this->array_different($branchList, $this->database->getBranchList())) {\n $persist = true;\n $user->setBranchList($branchList);\n }\n\n if ($this->array_different($niveauList, $this->database->getNiveauList())) {\n $persist = true;\n $user->setNiveauList($niveauList);\n }\n\n if (implode('|', $this->ldap->getUvs()) != $this->database->getUvs()) {\n $persist = true;\n $user->setUvs(implode('|', $this->ldap->getUvs()));\n }\n\n if ($this->ldap->getFullName() != $this->database->getFullName()) {\n $persist = true;\n $user->setFullName($this->ldap->getFullName());\n }\n\n if ($this->ldap->getFirstName() != $this->database->getFirstName()) {\n $persist = true;\n $user->setFirstName($this->ldap->getFirstName());\n }\n\n if ($this->ldap->getLastName() != $this->database->getLastName()) {\n $persist = true;\n $user->setLastName($this->ldap->getLastName());\n }\n\n if ($this->ldap->getMail() != $this->database->getMail()) {\n $persist = true;\n $user->setMail($this->ldap->getMail());\n }\n\n if ($this->ldap->getRoom() != $this->database->getRoom()) {\n $persist = true;\n $user->setRoom($this->ldap->getRoom());\n }\n\n if ($this->ldap->getStudentId() != $this->database->getStudentId()) {\n $persist = true;\n $user->setStudentId($this->ldap->getStudentId());\n }\n\n if ($this->ldap->getTitle() != $this->database->getTitle()) {\n $persist = true;\n $user->setTitle($this->ldap->getTitle());\n }\n\n if ($this->ldap->getIsStudent() != $this->database->getIsStudent()) {\n $persist = true;\n $user->setIsStudent($this->ldap->getIsStudent());\n }\n\n if ($this->ldap->getIsStaffUTT() != $this->database->getIsStaffUTT()) {\n $persist = true;\n $user->setIsStaffUTT($this->ldap->getIsStaffUTT());\n }\n\n if (!empty($this->ldap->getPhoneNumber()) && 'NC' != $this->ldap->getPhoneNumber() && $this->ldap->getPhoneNumber() != $this->database->getPhoneNumber()) {\n $persist = true;\n $user->setPhoneNumber($this->ldap->getPhoneNumber());\n }\n\n if (!$this->database->getIsInLDAP()) {\n $persist = true;\n $user->setIsInLDAP(true);\n }\n\n // Update official avatar\n $imagine = new Imagine();\n $webDirectory = __DIR__.'/../../../../../../../web';\n $profilePicturesDirectory = __DIR__.'/../../../../../../../profilePictures';\n $avatar = $this->ldap->getLogin().'_official.jpg';\n try {\n $image = $imagine->open($profilePicturesDirectory.'/'.$this->ldap->getStudentId().'.jpg');\n\n $image->copy()\n ->thumbnail(new Box(200, 200), Image::THUMBNAIL_OUTBOUND)\n ->save($webDirectory.'/uploads/photos/'.$this->ldap->getLogin().'_official.jpg');\n } catch (\\Exception $e) {\n $avatar = 'default-avatar.png';\n }\n\n if ($this->database->getAvatar() === $avatar || 'default-avatar.png' === $this->database->getAvatar()) {\n $persist = true;\n $user->setAvatar($avatar);\n }\n\n /*\n * Add badges\n */\n if ('TC' == mb_substr($history['niveau'], 0, 2) && 'TC' != mb_substr($user->getNiveau(), 0, 2)) {\n BadgesManager::userAddBadge($user, 'tc_survivor');\n }\n\n if ($persist) {\n $this->doctrine->getManager()->persist($user);\n }\n\n return $persist;\n }", "public function indexApUpdate(){\n //This will be used to display in the Wizard of available Realms in the Create screens of Vouchers; Permanent Users; and Devices\n $user = $this->Aa->user_for_token($this);\n if(!$user){ //If not a valid user\n return;\n }\n $this->_doApListFor($user,'update'); \n }", "function updateUser (){\n\t\t$params = array(\n\t\t\t':idusuarios' => $_SESSION['idusuarios'],\n\t\t\t':nombres' => $_POST['nombres'],\n\t\t\t':apellidos' => $_POST['apellidos'],\n\t\t\t':direccion' => $_POST['direccion'],\n\t\t\t':foto' => $_POST['foto'],\n\t\t\t':email' => $_POST['email'],\n\t\t\t':usuario' => $_POST['usuario'],\n\t\t\t':contrasena' => $_POST['contrasena'],\n\t\t);\n\n\t\t/* Preparamos el query apartir del array $params*/\n\t\t$query ='UPDATE usuarios SET\n\t\t\t\t\tnombres = :nombres,\n\t\t\t\t\tapellidos = :apellidos,\n\t\t\t\t\tdireccion = :direccion,\n\t\t\t\t\tfoto = :foto,\n\t\t\t\t\temail = :email,\n\t\t\t\t\tusuario = :usuario,\n\t\t\t\t\tcontrasena = :contrasena \n\t\t\t\t WHERE idusuarios = :idusuarios;\n\t\t\t\t';\n\n\t\t$result = excuteQuery(\"blogs\", \"\", $query, $params);\n\t\tif ($result > 0){\n\t\t\tunset($_SESSION['idusuarios']);\n\t\t\t$_SESSION['idusuarios'] = NULL;\n\t\t\theader('Location: viewUsers.php?result=true');\n\t\t}else{\n\t\t\theader('Location: editUser.php?result=false');\n\t\t}\n\t}", "public function modify_user($user);", "public function updateDb()\n {\n\n // make sure this is a valid new entry\n if ($this->isValid()) {\n\n // check for duplicate\n $vals = sprintf(\"Level = %d\",$this->level);\n $sql = \" update Admins set $vals where Email = '$this->email';\";\n Dbc::getReader()->Exec($sql);\n }\n else\n print \"<br> Invalid entry. STOP! ($sql)<br>\";\n }", "function updateUserInfo($uid,$username,$email,$pwd){\n //check pwd NULL\n if(checkUserLinkedbyId($uid)){\n throw New Exception($uid.\"is already linked\");\n }\n else{\n global $db_php_path;\n require_once($db_php_path);\n $pwd = MD5($pwd);\n $thesql = \"update user set username='$username',email='$email',passwd='$pwd' where id='$uid';\";\n $result = mysql_query($thesql);\n if(!$result){\n throw new Exception(\"error when updating to link a user\".mysql_error());\n }\n }\n}", "public static function modeloUserUpdate ($userid, $userdat){\n $stmt=self::$db->prepare(self::$update);\n \n $stmt->bindValue(1,$userdat[0]);\n $stmt->bindValue(2,$userdat[1]);\n $stmt->bindValue(3,$userdat[2]);\n $stmt->bindValue(4,$userdat[3]);\n $stmt->bindValue(5,$userdat[4]);\n $stmt->bindValue(6,$userid);\n if($stmt->execute()) {\n return true;\n }\n return false;\n}", "function update() {\n\t\t$sql = \"UPDATE umgroup \n\t\t\t\tSET\tGpNameT=?, GpNameE=?, GpDesc=?, GpStID=? \n\t\t\t\tWHERE GpID=?\";\t\n\t\t\n\t\t \n\t\t$this->ums->query($sql, array($this->GpNameT, $this->GpNameE, $this->GpDesc, $this->GpStID, $this->GpID));\n\n\t}", "public function testUpdateIdentity()\n {\n }", "public function update(User $user, Stagaire $stagaire)\n {\n //\n }", "function editUser($id, $nom, $prenom, $badge, $statutUser, $statut)\n\t{\n\t\t$cnn = getConnexion('tpi-fictif');\n\n\t\t$reqBadge = \"SELECT * FROM `user` WHERE `user`.`Badge` = :badge\";\n\t\t$stmt1 = $cnn -> prepare($reqBadge);\n\t\t$stmt1 -> bindValue(':badge', $badge, PDO::PARAM_STR);\n\t\t$stmt1 -> execute();\n\n\t\t$row = $stmt1->fetch(PDO::FETCH_OBJ);\n\t\tif(!empty($row))\n\t\t{\n\t\t\t//Si row n'est pas vide, ca veut dire que le num de badge existe deja\n\t\t\treturn 2;\n\t\t}else\n\t\t{\n\t\t\t$sql = \"UPDATE `user` SET `Nom` = :nom, `Prenom` = :prenom, `badge` = :badge, `Statut` = :statutUser WHERE `ID` = :id\";\n\t\t\t$stmt2 = $cnn -> prepare($sql);\n\t\t\t$stmt2 -> bindValue(':nom', $nom, PDO::PARAM_STR);\n\t\t\t$stmt2 -> bindValue(':prenom', $prenom, PDO::PARAM_STR);\n\t\t\t$stmt2 -> bindValue(':badge', $badge, PDO::PARAM_STR);\n\t\t\t$stmt2 -> bindValue(':statutUser', $statutUser, PDO::PARAM_STR);\n\t\t\t$stmt2 -> bindValue(':id', $id, PDO::PARAM_INT);\n\n\n\t\t\t$stmt2 -> execute();\n\n\t\t\tif($stmt2)\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}else\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\n\n\t}", "function feuserloginsystem_updateUserStatisticEntry() {\r\n\r\n # Get existing statistic information for the current user and session.\r\n $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\r\n\t\t\t'uid,feuserid,sessionstart,lastpageview,pagecounter,pagetracking',\r\n\t\t\t'tx_feuserloginsystem_userstatistics',\r\n\t\t\tsprintf('feuserid=\\'%s\\'',addslashes(intval($this->fe_user->user[\"uid\"]))),\r\n\t\t\t'',\r\n\t\t\t'sessionstart DESC',\r\n\t\t\t'1'\r\n \t);\r\n \t$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);\r\n\r\n \t# Existing statistic information could be found.\r\n \tif(is_array($row)) {\r\n\r\n $timeStamp = time();\r\n\r\n # Unserialize page tracking information.\r\n $pagetrackingArray = unserialize($row['pagetracking']);\r\n # Add new page tracking information to the already existing page tracking information.\r\n $pagetrackingArray[] = array('time' => $timeStamp, 'pageID' => intval($this->id));\r\n\r\n\t\t\t#Update commom information for statistics.\r\n\t\t $insertDataArray = array();\r\n\t\t $insertDataArray['lastpageview'] = $timeStamp;\r\n\t\t $insertDataArray['pagecounter'] = intval($row['pagecounter'] + 1);\r\n\t\t $insertDataArray['pagetracking'] = serialize($pagetrackingArray);\r\n\r\n\t\t # Update statistic information in the database.\r\n $GLOBALS['TYPO3_DB']->exec_UPDATEquery(\r\n 'tx_feuserloginsystem_userstatistics',\r\n sprintf('uid=\\'%s\\'',addslashes(intval($row['uid']))),\r\n $insertDataArray\r\n );\r\n\r\n }\r\n\r\n }", "function updatepanier($user, $product, $quantite, $poids){ \t\t// Fonction pour update la quantite d'un produit au panier\n\n\t\tinclude(\"../../modele/modele.php\");\n\n\t\t$sql = 'UPDATE `detailcommande` SET `quantite`='.$quantite.', `poids`='.$poids.' WHERE id_user='.$user.' AND id_product='.$product.' AND actif = 1'; \n\t\t$reponse = $bdd->prepare($sql);\n\t\t$reponse ->execute();\n\t}", "public function updateDb($user) {\n $sql = \"UPDATE users SET password = ?, email = ?, Cash = ? WHERE username = ?\";\n $stmt = $this->dbh->prepare($sql);\n $succ = $stmt->execute(array($user->getPassword(), $user->getEmail(), $user->getCash(), $user->getUsername()));\n }", "protected function _update()\n {\n \n }", "protected function _update()\n {\n \n }", "function _update_user()\n {\n //pr_db($post_total);\n $tbl = 'user';\n $list = model($tbl)->get_list();\n foreach ($list as $row) {\n $post_total = model('product')->filter_get_total(['user_id' => $row->id]);\n $post_is_publish = model('product')->filter_get_total(['user_id' => $row->id, 'status' => 1]);\n $post_is_draft = model('product')->filter_get_total(['user_id' => $row->id, 'is_draft' => 1]);\n $post_is_deleted = model('product')->filter_get_total(['user_id' => $row->id, 'deleted' => 1]);\n\n $follow_total = model('user_storage')->filter_get_total(['user_id' => $row->id,'action'=>'subscribe']);\n $follow_by_total = model('user_storage')->filter_get_total(['table_id' => $row->id,'action'=>'subscribe']);\n model($tbl)->update($row->id,\n [\n 'post_total' => $post_total,\n 'post_is_publish' => $post_is_publish,\n 'post_is_draft' => $post_is_draft,\n 'post_is_deleted' => $post_is_deleted,\n\n 'follow_total' => $follow_total,\n 'follow_by_total' => $follow_by_total,\n ]\n );\n echo '<br>--';\n pr_db(0, 0);\n }\n }", "function updateUserData($userID) {\n\t\t\t$query=\"SELECT userid, password, colour, cool FROM userdata WHERE userid=\" . \"'\" . $userID . \"'\";\n\t\t\t$result=pg_query($dbconn, $query);\n\t\t\twhile ($row = pg_fetch_row($result)) {\n\t\t\t\t\t$_SESSION['user'] = $row[0];\n\t\t\t\t\t$_SESSION['password'] = $row[1];\n\t\t\t\t\t$_SESSION['choice'] = $row[2];\n\t\t\t\t\t$_SESSION['cool'] = $row[3];\n\t\t\t}\n\n\t}", "function update($conn)\n{\n $response[\"loggedIn\"] = getSessionValue(\"user\", \"\") != \"\";\n if (!$response[\"loggedIn\"])\n {\n $response[\"error\"] = \"You must login to edit your user account.\";\n return $response;\n } \n \n // get the logged in user...\n $userID = getSessionValue(\"user\", \"\")[\"userID\"];\n \n // validate input values...\n $userName = getValue(\"userName\", \"\");\n if ($userName == \"\")\n {\n $response[\"error\"] = \"Username is required.\";\n return $response;\n }\n $userFullName = getValue(\"userFullName\", \"\");\n if ($userFullName == \"\")\n {\n $response[\"error\"] = \"User's full name is required.\";\n return $response;\n }\n $userPass = getValue(\"userPass\", \"\");\n if (strlen($userPass) < 8 || strlen($userPass) > 20)\n {\n $response[\"error\"] = \"Password is required and must be at least 8 and no more than 20 characters.\";\n return $response;\n }\n \n // make sure the user exists...\n $stmt = $conn->prepare(\"SELECT USER_ID FROM USER WHERE USER_ID = ?\");\n $stmt->bind_param(\"i\", $userID);\n $stmt->execute();\n if (!$stmt->fetch()) \n {\n $response[\"error\"] = sprintf(\"User %d does not exist.\", $userID);\n return $response;\n }\n $stmt->close();\n\n // hash the password...\n $userPass = password_hash($userPass, PASSWORD_DEFAULT);\n\n // update the user...\n $stmt = $conn->prepare(\"UPDATE USER SET USER_NAME = ?, USER_FULLNAME = ?, USER_PASSWORD = ? WHERE USER_ID = ?\");\n $stmt->bind_param(\"sssi\", $userName, $userFullName, $userPass, $userID);\n $stmt->execute();\n\n // return response...\n $user[\"userID\"] = $userID;\n $user[\"userName\"] = $userName;\n $user[\"userFullName\"] = $userFullName;\n setSessionValue(\"user\", $user);\n $response[\"user\"] = $user;\n\n return $response;\n}", "public function modifyUsers() {\n //update la table patient(){\n $modifyUsersQuery = $this->db->prepare(\n 'UPDATE\n `dom20_users`\n SET \n lastname = :lastname\n ,firstname = :firstname\n ,mail = :mail\n WHERE id= :id \n ');\n // On choisi les colonnes que l'on souhaite modifier avec SET, on leur attribue un marqueur nominatif ': ' \n // avec un bindValue on donne des valeurs à nos marqueurs nominatifs puis on execute();\n $modifyUsersQuery->bindValue(':lastname', $this->lastname, PDO::PARAM_STR);\n $modifyUsersQuery->bindValue(':firstname', $this->firstname, PDO::PARAM_STR);\n $modifyUsersQuery->bindValue(':mail', $this->mail, PDO::PARAM_STR);\n $modifyUsersQuery->bindValue(':id', $this->id, PDO::PARAM_STR);\n return $modifyUsersQuery->execute(); \n }", "function setGoal($username, $value, $connect){\n\t$stmt = $connect->prepare(\"UPDATE users SET goal = ? WHERE username = ?\");\n\tif($stmt){\n\t\t$stmt->bind_param(\"is\", $value, $username);\n\t\t$stmt->execute();\n\t\t$stmt->close();\n\t}\n\n}", "public function update($column, $value, Utilisateur $user){\n\t\t$q = $this->pdo->prepare('UPDATE utilisateur SET '.$column.'=:value WHERE id=:id' );\n\t\t$q->bindValue(':value', $value );\n\t\t$q->bindValue(':id', $user->getId(), PDO::PARAM_INT);\n\t\t$q->execute();\n\t}", "function update_profil($user_name, $nama_user, $pass_word, $foto) {\n if (empty($foto)) {\n $gambarna = \"\";\n } else {\n $gambarna = \",foto = '$foto'\";\n }\n\n if (empty($pass_word)) {\n $sql = \"update tbl_user set nama_user ='$nama_user' $gambarna where user_name='$user_name'\";\n } else {\n $sql = \"update tbl_user set pass_word ='$pass_word',nama_user='$nama_user' $gambarna where user_name='$user_name'\";\n }\n\n $this->db->query($sql);\n }", "public function updating(User $user)\n {\n //\n }", "public function update() {\n\t\t$db = Database::getInstance();\n\t\t$stmt = $db->prepare(\"UPDATE users SET mail=?, name=?, password=?, state=? WHERE id = ?\");\n\t\t$stmt->execute(array($this->mail, $this->name, $this->password, $this->state, $this->id));\n\t}", "public function update_user($username,$datam)\n\t{\n\t\t$this->db->where('username', $username);\n\t\t$this->db->update('ag_users', $datam);\n\t\n\t}", "public function updateUserDetails()\r\n{\r\n $query_string = \"UPDATE users \";\r\n $query_string .= \"SET \";\r\n $query_string .= \"username = :username, \";\r\n $query_string .= \"password = :password, \";\r\n $query_string .= \"email = :email, \";\r\n $query_string .= \"firstname = :firstname, \";\r\n $query_string .= \"lastname = :lastname \";\r\n $query_string .= \"WHERE userid = :userid\";\r\n\r\n return $query_string;\r\n}", "public function updateUserDetailsNoPass()\r\n{\r\n $query_string = \"UPDATE users \";\r\n $query_string .= \"SET \";\r\n $query_string .= \"username = :username, \";\r\n $query_string .= \"email = :email, \";\r\n $query_string .= \"firstname = :firstname, \";\r\n $query_string .= \"lastname = :lastname \";\r\n $query_string .= \"WHERE userid = :userid\";\r\n\r\n return $query_string;\r\n}", "public function updateUser( $groupID, $user) {\n\t\t $sql = sprintf(\"UPDATE felhasznalok SET csoport=%d WHERE id='%d'\", $groupID, $user);\n\t\t\n\t\t $query = $this->db->query($sql);\n\n\t}", "protected function _update()\n\t{\n\t}", "public function update_userdetails_by_admin($data)\n {\n foreach($data as $key=>$val) $$key=get_magic_quotes_gpc()?$val:addslashes($val);\n \n $query = new Query;\n\n $result = $query->createCommand()->update('core_users', ['user_name' => $name,'company_name' => $company_name,'company_address' => $address,'designation' => $designation,'company_email' => $company_email], 'user_id = \"'.$userid.'\"')->execute();\n\n if ($result == 1){\n return \"SUCCESS\";\n }else{\n return \"FAILED\";\n }\n }", "public function update(User $user, Barang $barang)\n {\n //\n }", "function updateDataadmin($id_admin, $username, $password) {\n $query = \"UPDATE admin SET username ='$username', password='$password' WHERE id_admin='$id_admin'\";\n mysql_query($query);\n echo \"<p>Data admin sudah di update.</p>\";\n }", "public function updatePoinsUserAction()\n {\n \t$this->pointServices->updatePointUser($this->getUser());\n \t\n \treturn new Response(\"OK\");\n }", "public function updateData() {\n $this->location = $this->x . '.' . $this->y;\n\n $query = \"UPDATE `users` SET\n\t\t`current_ip` = '$this->current_ip',\n\t\t`last_ip` = '$this->last_ip',\n\t\t`failed_logins` = '$this->failed_logins',\n\t\t`last_login` = '$this->last_login',\n\t\t`last_update` = '$this->last_update',\n\t\t`last_active` = '\" . time() . \"',\n\t\t`avatar_link` = '$this->avatar_link',\n\t\t`profile_song` = '$this->profile_song',\n\t\t`global_message_viewed` = '$this->global_message_viewed',\n\t\t`gender` = '$this->gender',\n\t\t`village` = '$this->village',\n\t\t`level` = '$this->level',\n\t\t`rank` = '$this->rank',\n\t\t`health` = '$this->health',\n\t\t`max_health` = '$this->max_health',\n\t\t`stamina` = '$this->stamina',\n\t\t`max_stamina` = '$this->max_stamina',\n\t\t`chakra` = '$this->chakra',\n\t\t`max_chakra` = '$this->max_chakra',\n\t\t`regen_rate` = '$this->regen_rate',\n\t\t`stealth` = '$this->stealth',\n\t\t`exp` = '$this->exp',\n\t\t`bloodline_id` = '$this->bloodline_id',\n\t\t`bloodline_name` = '$this->bloodline_name',\";\n if($this->clan) {\n $query .= \"`clan_id` = '{$this->clan['id']}',\n\t\t\t`clan_office`='{$this->clan_office}',\";\n }\n\n if($this->team) {\n $query .= \"`team_id` = '{$this->team->id}',\";\n }\n else if($this->team_invite) {\n $query .= \"`team_id` = 'invite:{$this->team_invite}',\";\n }\n else {\n $query .= \"`team_id`=0,\";\n }\n\n $query .= \"`battle_id` = '$this->battle_id',\n\t\t`challenge` = '$this->challenge',\n\t\t`location` = '$this->location',\";\n if($this->mission_id) {\n if(is_array($this->mission_stage)) {\n $mission_stage = json_encode($this->mission_stage);\n }\n else {\n $mission_stage = $this->mission_stage;\n }\n $query .= \"`mission_id`='$this->mission_id',\n\t\t\t`mission_stage`='$mission_stage',\";\n }\n else {\n $query .= \"`mission_id`=0,\";\n }\n\n $query .= \"`exam_stage` = '{$this->exam_stage}',\n\t\t`last_ai` = '$this->last_ai',\n\t\t`last_free_stat_change` = '{$this->last_free_stat_change}',\n\t\t`last_pvp` = '$this->last_pvp',\n\t\t`last_death` = '$this->last_death',\";\n\n $forbidden_seal = $this->forbidden_seal;\n if(is_array($forbidden_seal)) {\n $forbidden_seal = json_encode($forbidden_seal);\n }\n\n $elements = $this->elements;\n if(is_array($elements)) {\n $elements = json_encode($this->elements);\n }\n\n $query .= \"`forbidden_seal`='$forbidden_seal',\n\t\t`train_type` = '$this->train_type',\n\t\t`train_gain` = '$this->train_gain',\n\t\t`train_time` = '$this->train_time',\n\t\t`money` = '$this->money',\n\t\t`premium_credits` = '$this->premium_credits',\n\t\t`pvp_wins` = '$this->pvp_wins',\n\t\t`pvp_losses` = '$this->pvp_losses',\n\t\t`ai_wins` = '$this->ai_wins',\n\t\t`ai_losses` = '$this->ai_losses',\n\t\t`monthly_pvp` = '$this->monthly_pvp',\n\t\t`elements` = '$elements',\n\t\t`ninjutsu_skill` = '$this->ninjutsu_skill',\n\t\t`genjutsu_skill` = '$this->genjutsu_skill',\n\t\t`taijutsu_skill` = '$this->taijutsu_skill',\n\t\t`bloodline_skill` = '$this->bloodline_skill',\n\t\t`cast_speed` = '$this->cast_speed',\n\t\t`speed` = '$this->speed',\n\t\t`intelligence` = '$this->intelligence',\n\t\t`willpower` = '$this->willpower',\n\t\t`village_changes` = '$this->village_changes',\n\t\t`clan_changes` = '$this->clan_changes'\n\t\tWHERE `user_id` = '{$this->user_id}' LIMIT 1\";\n $this->system->query($query);\n\n // Update Blacklist\n if(count($this->blacklist) != count($this->original_blacklist)) {\n $blacklist_json = json_encode($this->blacklist);\n $this->system->query(\"UPDATE `blacklist` SET `blocked_ids`='{$blacklist_json}' WHERE `user_id`='{$this->user_id}' LIMIT 1\");\n }\n\n //Update Daily Tasks\n if($this->daily_tasks) {\n $dt = json_encode($this->daily_tasks);\n $this->system->query(\"UPDATE `daily_tasks` SET `tasks`='{$dt}' WHERE `user_id`='{$this->user_id}'\");\n }\n }", "public function update(User $user, Jadwal $jadwal)\n {\n //\n }", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set nombre=\\\"$this->name\\\", razon_social=\\\"$this->razon\\\", status=$this->is_active where id_banco=$this->id_banco\";\n\t\tExecutor::doit($sql);\n\t}", "public function updateUser(UserInterface $user);", "function filecabinet_drawer_update($node) {\n db_query(\"UPDATE {org_drawers} SET wnid = %d, ouid = %d, drawer = '%s', drawerstatus = '%s', drawerperm = '%s', notes = '%s', user = %d WHERE vid = %d\",\n $node->wnid,\n $node->ouid,\n $node->drawer,\n $node->drawerstatus,\n $node->drawerperm,\n $node->notes,\n $node->uid,\n $node->vid);\n}", "public function update(User $user, Negocio $negocio)\n {\n }", "public function change()\n {\n // a:6:{i:0;s:9:\"wechat_id\";i:1;s:8:\"nickname\";i:2;s:6:\"isbind\";i:3;s:9:\"firstbind\";i:4;s:7:\"liushui\";i:5;s:11:\"og_username\";}\n $table = $this->table('k_user');\n $table->addColumn('wechat_id', 'string', ['null' => true, 'limit' => 64,])\n ->addColumn('nickname', 'string', ['null' => true, 'limit' => 64,])\n ->addColumn('isbind', 'integer', ['null' => true, 'default'=>0,'limit' => \\Phinx\\Db\\Adapter\\MysqlAdapter::INT_TINY,])\n ->addColumn('firstbind', 'integer', ['null' => true, 'default'=>0,'limit' => \\Phinx\\Db\\Adapter\\MysqlAdapter::INT_TINY,])\n ->addColumn('liushui', 'decimal', ['null' => true, 'precision'=>18,'scale'=>2,'default'=>0.00,])\n ->addColumn('og_username', 'string', ['null' => true, 'limit' => 32,])\n ->update(); \n }", "function updateUserBalance($user, $sum){\r\n global $pdo;\r\n $stmt = $pdo->prepare('UPDATE users SET UserBalance = UserBalance + :UserBalance WHERE UserID = :UserID');\r\n $stmt->execute(array(':UserBalance' => $sum, ':UserID' => $user));\r\n}", "function ModifierProfil($pseudonyme,$champ,$nvValeur){\r\n\t\t\t$conn = mysqli_connect(\"localhost\", \"root\", \"\", \"bddfinale\");\r\n\t\t\t$requete2 = \"UPDATE allinformations SET $champ='$nvValeur' WHERE Pseudo='$pseudonyme'\";\r\n\t\t\t$ligne2= mysqli_query($conn, $requete2);\r\n\t\t\tmysqli_close($conn);\r\n\t\t\treturn($nvValeur);\r\n\t\t}", "function updateUserPW($name,$oldpw,$newpw){\n\t\t if(($name != NULL) && ($oldpw != NULL))\n $count = @mysql_query(\"SELECT COUNT(*) as count FROM UserUNandID WHERE ('$name' = UserName)\");\n\t\t $countdata = mysql_fetch_assoc($count);\n\t\t if($countdata['count'] <= 0){\n\t\t print \"User does not exist!\";\n exit(1);\n\t\t }\n\t\t @mysql_query(\"UPDATE UserUNandID SET Password = '$newpw' WHERE ('$name' = UserName AND\n\t\t Password = '$oldpw')\");\n\t}", "function modificarUsuario($usuario,$password,$idUsuario){\n \n $conex=Conexion::getInstance();\n \n $sql=\" UPDATE `usuarios` SET `usuario`='$usuario',`password`='$password' WHERE id=$idUsuario\";\n \n $conex->dbh->prepare($sql);\n $conex->dbh->exec($sql); \n \n\n}", "function updateUserField($columnName, $value) {\n $user_id = $_SESSION['user_id'];\n $mysql = new my_mysql();\n $query = \"UPDATE user_logging\n SET $columnName = $value\n WHERE id = $user_id;\";\n $result = $mysql->transactionQuery($query);\n return $result;\n}", "function update()\n {\n $this->dbInit();\n if ( isset( $this->ID ) )\n {\n query( \"UPDATE Grp set Name='$this->Name', Description='$this->Description',\n\t\tUserAdmin='$this->UserAdmin',\n \t\tUserGroupAdmin='$this->UserGroupAdmin',\n\t\tPersonTypeAdmin='$this->PersonTypeAdmin',\n\t\tCompanyTypeAdmin='$this->CompanyTypeAdmin',\n\t\tPhoneTypeAdmin='$this->PhoneTypeAdmin',\n\t\tAddressTypeAdmin='$this->AddressTypeAdmin' WHERE ID='$this->ID'\" );\n }\n }", "public function updateAllPrivileges() {\n\t\t$sql = \"delete from user_rights;\";\n\t\t$results = $this->executerRequete($sql, array());\n\t\t//On recupere le tableau USER/ACTION en join user->groups->roles->actions\n $sql = \"SELECT user.id, actions.id, actions.controleur, actions.name FROM user inner join user_groups on user.id = user_groups.idUser inner join groups_roles on groups_roles.idGroups = user_groups.IdGroup inner join roles_actions on roles_actions.idRole=groups_roles.idRoles inner join actions on roles_actions.idAction = actions.id\";\n\t\t$results = $this->executerRequete($sql, array());\n $user_actions = $results->fetchAll();\n\t\t//on prépare le tableau des droits pour insertion\n\t\t$sqlValueInsert = '';\n\t\tforeach ($user_actions as $item):\n\t\t\t$sqlValueInsert = $sqlValueInsert.\"(\".$item[0].\",\".$item[1].\",'\".$item[2].\"','\".$item[3].\"'),\";\n\t\tendforeach;\n\t\t$sqlValueInsert= rtrim($sqlValueInsert, \",\");\n\t\t$sql = \"INSERT INTO `user_rights` (`idUser`, `IdAction`, `controleurName`, `actionName`) VALUES \".$sqlValueInsert.\";\";\n\t\t$insert_actions = $this->executerRequete($sql);\n\t\tif ($insert_actions->rowCount() > 0)\n\t\t\treturn 1; // Accès à la première ligne de résultat\n\t\telse\n\t\t\treturn 0;\t\t\n }", "function editUsers(string $first_name, string $last_name, string $email, string $password, int $id) : void\n{\n\n $db = new Database;\n $db = $db->dbConnect();\n\n // requète pour modifier un user précis\n $sql = \"UPDATE user SET first_name = :first_name, last_name = :last_name, mail = :mail, password = :password WHERE id = :id\";\n\n /* on hashe le nouveau mot de passe */\n $passwordHashed = password_hash($password, PASSWORD_DEFAULT);\n\n\n $editUsers = $db->prepare($sql);\n $editUsers = $editUsers->execute([\n ':id' => $id,\n ':first_name' => $first_name, \n ':last_name' => $last_name, \n ':mail' => $email,\n ':password' => $passwordHashed\n ]);\n}", "static function update_user ($id, $user) {\n $query = \"UPDATE edit SET \";\n $query .= \"user=\\\"{$user}\\\" \";\n $query .= \"WHERE id={$id};\";\n\n if (!$GLOBALS['C']->query($query)) {\n print_query_error();\n return false;\n } else {\n return true;\n }\n }", "public function updatePassword(UserInterface $user);", "function updatepatient()\n{\n\tglobal $uid;\n\tglobal $uname;\n\tglobal $pass;\n\tglobal $number;\n\tglobal $divission;\n\tglobal $district;\n\tglobal $thana;\n\n\t//update into patients table\n\t$pquery=\"UPDATE `patients` SET `username`='$uname',`phonenumber`='$number',`divission`='$divission',`district`='$district',`thana`='$thana' WHERE `userid`='$uid'\";\n\t//update into users table\n\t$uquery=\"UPDATE users SET password='$pass' WHERE userid='$uid'\";\n\n\texecute($pquery); \n\texecute($uquery); \n}", "public function updateUltimoAccesso($idu,$password,$data){\r\n if($this->esisteUtenteConPassword($idu, $password)){\r\n $data = self::$conn->real_escape_string($data);\r\n $query = 'UPDATE '.$this->tables['utentetable'] .\" SET ultimoaccesso='$data' WHERE nickname ='$idu'\";\r\n self::$conn->query($query);\r\n }\r\n }", "protected function update()\n {\n $update = 'UPDATE users SET first_name = :first_name, last_name = :last_name,\n email = :email, password = :password WHERE id = :id';\n $statement = self::$dbc->prepare($update);\n foreach ($this->attributes as $key => $value) {\n $statement->bindValue(\":$key\", $value, PDO::PARAM_STR);\n }\n $statement->execute();\n }", "public function modifyUsersDoctor() {\n $modifyUsersQuery = $this->db->prepare(\n 'UPDATE\n `dom20_users`\n SET \n lastname = :lastname\n ,firstname = :firstname\n ,mail = :mail\n WHERE id= :id \n ');\n // On choisi les colonnes que l'on souhaite modifier avec SET, on leur attribue un marqueur nominatif ': ' \n // avec un bindValue on donne des valeurs à nos marqueurs nominatifs puis on execute();\n $modifyUsersQuery->bindValue(':lastname', $this->lastname, PDO::PARAM_STR);\n $modifyUsersQuery->bindValue(':firstname', $this->firstname, PDO::PARAM_STR);\n $modifyUsersQuery->bindValue(':mail', $this->mail, PDO::PARAM_STR);\n $modifyUsersQuery->bindValue(':id', $this->id, PDO::PARAM_STR);\n return $modifyUsersQuery->execute(); \n }", "function updateUser($userID, $role)\n{\n}" ]
[ "0.67736745", "0.64263725", "0.6308564", "0.630006", "0.6297729", "0.6277899", "0.6271029", "0.6260351", "0.6236814", "0.62189126", "0.61961114", "0.60983247", "0.60963875", "0.6093775", "0.6093451", "0.60708183", "0.6064547", "0.6049537", "0.60474795", "0.60061646", "0.5998478", "0.5996809", "0.5992672", "0.5990707", "0.59854716", "0.59803855", "0.59754974", "0.5969179", "0.59486556", "0.59261096", "0.5904579", "0.5902504", "0.58981735", "0.5891147", "0.58775806", "0.58661246", "0.5856233", "0.5841296", "0.5823185", "0.5820273", "0.5820108", "0.581636", "0.57928884", "0.57928115", "0.57927537", "0.57904565", "0.57897955", "0.5789331", "0.57876945", "0.5783737", "0.5780602", "0.5775024", "0.57709265", "0.57697165", "0.5767072", "0.57509565", "0.5748487", "0.574316", "0.5740109", "0.5740109", "0.5736274", "0.5734343", "0.5727298", "0.5720514", "0.57160646", "0.5715769", "0.5715494", "0.5703484", "0.5702121", "0.570181", "0.5701605", "0.5701038", "0.56878096", "0.56858677", "0.5684264", "0.56834304", "0.56801975", "0.56770074", "0.5675297", "0.56740665", "0.56733143", "0.5667111", "0.5666004", "0.56586206", "0.56569844", "0.5655179", "0.5655068", "0.5653742", "0.5653087", "0.56518674", "0.5650672", "0.56474483", "0.56474197", "0.56465226", "0.5644053", "0.5642631", "0.5635785", "0.56320316", "0.5632031", "0.5615184" ]
0.5887424
34
user silver coin start
function get_user_silvercoin_byfb_id($fb_id) { include("config.php"); $qrry_get='SELECT total_silver_coin FROM `users` WHERE fb_id='.$fb_id; $total_silver_coin_data= mysqli_fetch_assoc(mysqli_query($conn,$qrry_get))['total_silver_coin']; return $total_silver_coin_data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function start()\n\t{\n\t\t$this->score = 0;\n\t\t$this->won = false;\n\t\t$this->over = false;\n\t}", "function beginRound() {\n\n\t\t$this->console_text('Begin Round');\n\t\t$this->releaseEvent('onBeginRound', null);\n\t}", "function start();", "function start();", "public function activate()\n\t{\n\t\techo \"fight...\\n\";\n\t}", "public function buycoin()\n {\n UserModel::authentication();\n\n //get the session user\n $user = UserModel::user();\n\n PaymentModel::buy_coin($id, $order);\n }", "public function activate()\n\t{\n\t\techo \"shot...\\n\";\n\t}", "public function start() {\r\n\r\n $this->stepTick = $this->getMain()->getServer()->getTick();\r\n\r\n $count = count($this->players);\r\n\r\n $this->step = self::STEP_HIDE;\r\n\r\n $this->seekersCount = ceil($count * ($this->getSeekersPercentage() / 100)); // Minimum $this->getSeekersPercentage() percents of the players (inimum because if there are less than $this->getSeekersPercentage(), then there could be no seeker)\r\n\r\n $this->hidersLeft = count($this->players) - $this->seekersCount;\r\n\r\n\r\n\r\n shuffle($this->players);\r\n\r\n $i = 0;\r\n\r\n foreach($this->players as $p) {\r\n\r\n if($i < $this->seekersCount) {\r\n\r\n $this->players[$i]->HideAndSeekRole = self::ROLE_SEEK;\r\n\r\n $this->players[$i]->sendTip(\"§4You're a seeker.\");\r\n\r\n } else {\r\n\r\n $this->players[$i]->HideAndSeekRole = self::ROLE_HIDE;\r\n\r\n $this->players[$i]->sendTip(\"§4You're an hider.\");\r\n\r\n }\r\n\r\n $i++;\r\n\r\n }\r\n\r\n }", "public function start(): int;", "public function startPowerUnits() {\n\t\t\n\t}", "abstract function start();", "public static function start_block()\n\t{\n\t\tself::$nivel_cabecalho += 1;\n\t}", "public function start()\n\t{\n\t\t// reset first, will start automaticly after a full reset\n\t\t$this->data->directSet(\"resetNeeded\", 1);\n\t}", "public function start_harvest(){\n $this->checkinit();\n $this->harvest_laststart = $this->dt();\n $this->save_flags();\n }", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function Locomover()\n {\n echo \"<br>Saltando\";\n }", "abstract public function start();", "abstract public function start();", "public function start()\n {\n Console::startProgress(0,100);\n }", "function send_replay_START(&$current) {\n send_replay_message(\"START \".@$current['class']\n .'_Round'.@$current['round']\n .'_Heat'.sprintf(\"%02d\", @$current['heat']));\n}", "public function startPowerUnits() {\n\t\techo \"power units started.<br>\";\n\t\t$this->missionControl->setState($this->missionControl->getRetractArms());\n\t}", "public function start() {\n $this->setup();\n $this->fight();\n }", "public function sendMoney() {\n // @TODO Do something\n echo 'VTB';\n parent::sendMoney();\n }", "function on_buy()\r\n\t{\r\n\t}", "public function stand(){\n $_SESSION['score'] = $this ->score;\n $this ->endturn = false;\n }", "public function profit() : void {\n\t\techo ($this->price - $this->cost);\n\t}", "public function startPowerUnits() {\n\t\techo \"systems are not ready yet\";\n\t}", "function start(){\n\t\t$this->time_start = $this->microtime_float();\n\t}", "public function start()\n {\n echo 'Start odometer.',\"\\n\";\n }", "public function start($start);", "function PrintCoin ($numberOfHeads) {\n\n\n//Variable to keep track of consecutive heads\n$ConsecutiveHeads = 0;\n\nwhile(True) {\n\n$current = mt_rand(1,2);\n\n//If it is a head \n\n if ($current == 1) {\n \n //To check if we have the met condition of \n \n if ( $ConsecutiveHeads >= $numberOfHeads ){\n \n echo '<img src=\"images/coin_head.png\" alt=\"Coin Head\" height=\"50\" width=\"50\">';\n //break the loop\n break;\n}\n else {\n //if condition is not met. we will increment the number of consecutive heads.\n echo '<img src=\"images/coin_head.png\" alt=\"Coin Head\" height=\"50\" width=\"50\">';\n $ConsecutiveHeads++;\n }\n\n\n}\n \n //if it is a tail\nelse { \n\n echo '<img src=\"images/coin_tail.png\" alt=\"Coin Head\" height=\"50\" width=\"50\">';\n \n //we need to set consecutive heads to zero because it was tail and we need start counting from scratch.\n $ConsecutiveHeads = 0;\n \n\n}\n\n\n\n}\n}", "function beginRound()\n\t\t{\n\t\t// request information about the new challenge ...\n\t\t// ... and callback to function newChallenge() ...\n\n\t\t}", "function checkStart(){\r\n\tif (!$this->Eq['A']['id']) $this->sendError(\"你沒有裝備武器,不能出擊。\");\r\n\telseif ($this->Player['en'] < $this->RequireEN) $this->sendError(\"EN不足,無法出擊。\");\r\n\telseif ($this->Player['sp'] < $this->SP_Cost) $this->sendError(\"SP不足,無法以 $Pl->Tactics[name] 出擊。\");\r\n}", "public function start()\n {\n for($nr = 1; $nr <= $this->numBalls; $nr++){\n $slotNr = $this->_addBall($nr);\n $this->_increaseSlot($slotNr);\n }\n }", "public function actionStart($at=false,$in=false)\n {\n // Start the competition $in number of seconds from now\n }", "public function start(): void {}", "function Start();", "public function start()\n {\n $this->_marks = array();\n $this->mark('__start');\n }", "public function run()\n {\n $start = 1;\n $limit = 100;\n $cryptocurrencies = $this->getCoinMarketCapTickers($start, $limit);\n\n //While coin market cap api return coins insert coins in database\n while ($cryptocurrencies['code'] == 200) {\n $cryptocurrencies['content']->each(function ($cryptocurrency) {\n $this->cryptocurrencyRepository->create([\n 'name' => $cryptocurrency['name'],\n 'symbol' => $cryptocurrency['symbol'],\n 'rank' => $cryptocurrency['rank'],\n 'price_usd' => $cryptocurrency['quotes']['USD']['price'],\n 'price_btc' => $cryptocurrency['quotes']['BTC']['price'],\n '24h_volume_usd' => $cryptocurrency['quotes']['USD']['volume_24h'],\n 'market_cap_usd' => $cryptocurrency['quotes']['USD']['market_cap'],\n 'available_supply' => $cryptocurrency['circulating_supply'],\n 'total_supply' => $cryptocurrency['total_supply'],\n 'percent_change_1h' => $cryptocurrency['quotes']['USD']['percent_change_1h'],\n 'percent_change_24h' => $cryptocurrency['quotes']['USD']['percent_change_24h'],\n 'percent_change_7d' => $cryptocurrency['quotes']['USD']['percent_change_7d'],\n ]);\n });\n\n $start += $limit;\n $cryptocurrencies = $this->getCoinMarketCapTickers($start, $limit);\n }\n }", "public function start()\n {\n // nop\n }", "function cs_coins_create($users_id)\n{\n\t$coin_options = cs_sql_option(__FILE__, 'coins');\n\n\t$fields = array('users_id', 'coins_total');\n\t$values = array(intval($users_id), floatval($coin_options['startcoins']));\n\tcs_sql_insert(__FILE__, 'coins', $fields, $values);\n\n\treturn cs_coins_exists($users_id);\n}", "public function start(): void;", "public function start()\n {\n die(\"Must override this function in a driver\");\n }", "public function start(){\n\t\t$gameId = $this->input->post('gameId');\n $utoken = $this->input->post('utoken');\n\t\t$game = $this->setRedis_info($gameId);\n\t\tif($game['admin']==$utoken){\n\t\t\tif(count($game['players']) < 2){\n\t\t\t\t$this->setHeader(['success'=>0, 'msg'=>'Cannot start the game... min. 2 players needed!'], 202);\n\t\t\t}\n\t\t\t$game['status'] = \"inPlay\";\n\t\t\t$this->setRedis_set($gameId, $game);\n\t\t\t$this->setHeader(['success'=>1, 'msg'=>'Game has been started successfully!'], 200);\n\t\t}else{\n\t\t\t$this->setHeader(['success'=>0, 'msg'=>'You are not admin of this game!'], 202);\n\t\t}\n }", "abstract public function getStart();", "public function getStart();", "public function getStart();", "public function run()\n {\n \t$data = [\n \t\t'block_type_id' => 1,\n \t\t'description' => 'Esse é o primeiro bloco criado para o blockchain Creddent'\n \t];\n \t$lev = new levCoinClass;\n \t$lev->createBlock($data, true);\n }", "public function start($single = true);", "public function run() {\n $this->init();\n $this->welcome();\n $this->setMark();\n $this->startGame();\n }", "public function start(int $start): void;", "function update_start()\n {\n }", "public function index()\n\t{\t\t\n\t\tif($this->checkfrantSession())\n\t\t{\n\t\t\t$this->data['menuId'] = 'EvoStableCoins';\t\t\t\n\t\t\t$this->data['title'] = 'Evo Stable Coins';\t\t\t\t\t\t\n\t\t\t$this->show_viewFrontInner('evoStableCoins', $this->data); \n\t\t}\n\t\telse\n\t\t{\n\t\t\tredirect('home');\n\t\t}\n }", "public function startBattle()\n {\n echo \"Starting battle.. <br />\";\n echo \"Type of this battle is: <i>\" . $this->_type . \"</i>.<br />\";\n echo \"\\t\\t<i>\" . $this->getTypeDescription() . \"</i><br/>\";\n \n $round = 0;\n while(!$this->battleFinished())\n {\n // prints information about current round:\n echo \"<br /><br />ROUND \" . $round++ . \" Attacker: <i>\";\n echo $this->getAttacker()->getName();\n echo \"</i>\\tDefender: <i>\";\n echo $this->getDefender()->getName() . \"</i>\";\n $this->status();\n \n $this->getAttacker()->fight($this, $this->getDefender());\n \n $this->changeTurn(); \n }\n \n // battle is over, print status and declare winner (if there is any) \n $this->status(); \n echo \"<br/><br/>The winner is: <b>\";\n echo $this->getWinner() . \"</b>!\" . PHP_EOL;\n }", "function playerCoins($currentPlayer, $playerCoins) {\n\t}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "function SubmitSpin() {\n $randNum = rand(1, 5);\n $playerID = 0;\n $playerName = \"\";\n $saltValue = \"\";\n $coinsWon = rand(1, 50);\n $coinsBet = rand(1, 50);\n \n if($randNum == 1) {\n $playerID = 12345;\n $playerName = \"Freddy Johnson\";\n $saltValue = \"568turjfigkturjfhgod93\";\n }\n else if($randNum == 2) {\n $playerID = 54321;\n $playerName = \"Bobby Smith\";\n $saltValue = \"65w934jg924jfi85jgkf93\";\n }\n else if($randNum == 3) {\n $playerID = 76543;\n $playerName = \"Ray Williams\";\n $saltValue = \"58gjtir9406kigjdiej32e\";\n }\n else if($randNum == 4) {\n $playerID = 90876;\n $playerName = \"Sara Farley\";\n $saltValue = \"596jtigorkfie32049igkd\";\n }\n else if($randNum == 5) {\n $playerID = 11111;\n $playerName = \"Amy Adams\";\n $saltValue = \"59tjgkri4320dekrofvgch\";\n }\n \n //Create the player if doesn't exist\n $this->CreatePlayerIfFirstTimePlaying($playerID, $playerName, $saltValue);\n //$this->ClearDatabase();\n \n $options = [\n 'cost' => 11,\n 'salt' => $saltValue,\n ];\n $passwordHash = password_hash(\"thiscanbeanything\", PASSWORD_BCRYPT, $options);\n\n //Checking the player data and updating if it's valid\n $this->UpdateDataIfIsValid($playerID, $coinsWon, $coinsBet, $passwordHash);\n }", "public function start() {\n\n // TODO: Maybe sometimes\n\n }", "public static function mjj_salt_activate(){\n\t\tself::mjj_get_salt();\n\t\treturn;\n\t}", "function getTotal($userSelection) {\n$cookie = 3.00; //This the cost of cookies\n$chips = 10.00; //Cost of Chips\n$soda = 1.00;// Cosst of Soda\n\t//Checks if user wants the combo meal of 0\n\tif($userSelection == 0) {\n\t\t//Calculate Total\n\t\t$userSelection = $cookie + $chips;\n\t\techo $userSelection; //Prints out the total amount\n\t}\n}", "function activate() {\r\r\n }", "public function start()\n {\n }", "public function start()\n {\n }", "public function start()\n {\n }", "public function run()\n {\n $goi_credit=[];\n $goi_credit[]=[\n \t\"ten_goi\"=>\"goi 1\",\n \t\"credit\"=>\"5\",\n \t\"so_tien\"=>\"5000\"\n ];\n $goi_credit[]=[\n \t\"ten_goi\"=>\"goi 2\",\n \t\"credit\"=>\"15\",\n \t\"so_tien\"=>\"10000\"\n ];\n $goi_credit[]=[\n \t\"ten_goi\"=>\"goi 3\",\n \t\"credit\"=>\"25\",\n \t\"so_tien\"=>\"15000\" ];\n $i=1;\n foreach($goi_credit as $gc)\n {\n \techo \"Them goi credit thu\".$i.\"\\n\";\n \tApp\\GoiCredit::create($gc);\n \t$i++;\n }\n echo \"Hoan thanh...\";\n }", "function showBegin( $appctx )\n\t\t{\n\t\t$appctx->Plus() ;\n\t\t}", "public function placeAndSettleBet();", "protected function start()\n {\n $status = $this->autoTestController->start();\n\n PacklinkPrestaShopUtility::dieJson($status);\n }", "public static function start(): void {\n }", "public function bake()\n {\n }", "private function startItem($about = false)\n { if ($this->version == self::Turbo) {\n echo '<item turbo=\"true\">' . PHP_EOL;\n }\n }", "function getSpin(){\n\t$s=rand(1,38);\n\treturn $s;\n}", "public static function userStartOver()\n {\n $askOptions = array(\n 'choices' => '[5 DIGITS]',\n 'timeout' => self::MESSAGE_TIMEOUT,\n 'mode' => self::MODE,\n 'onChoice' => 'BreweryMapUI::userZipEntry',\n 'onBadChoice' => 'BreweryMapUI::userBadChoice',\n 'attempts' => self::ATTEMPTS,\n );\n\n if (INCOMING_NETWORK == 'SMS') {\n $prompt = 'Text us a zip code to find breweries:';\n } else {\n $prompt = 'IM us a zip code to find breweries:';\n }\n \n\n $event = ask($prompt, $askOptions);\n }", "public function start()\n\t{\n\t\t$this->startTimer = microtime(TRUE);\n\t}", "function showStart() {\n $starturl = $this->action . '?mode=eligible';\n $extra = array('starturl' => $starturl);\n $output = $this->outputBoilerplate('start.html', $extra);\n return $output;\n }", "public function run() {\n\n\t\t// generate random string md5(uniqid(rand(), true));\n\t\t$this->goneta();\n\t\t$this->pamparam();\n\t\t$this->insideOut();\n\t\t$this->morfoza();\n\t\t$this->basorelief();\n\t\t$this->acajouWasZuSagen();\n\t}", "function _pre()\n\t{\n\t\t$this->takeawayId = $this->takeawaymodel->addTakeaway('testtakeaway', 'testtake', 'test', 'te573t', '555', 'test', 1, 30, 1, 54, -40, 1);\n\t}", "public function start()\n {\n $this->_timeStartInMicroSeconds = microtime(true);\n }", "public function perBill()\n\t{\n\t\t$this->restart( 'shop/finish' );\n\t}", "public static function start()\n {\n $start = round(microtime(true) * 1000);\n echo $start . \"\\n\";\n return $start;\n }", "public function handleStartRoundStart() {\n\t\t$this->matchScore->round += 1;\n\t}" ]
[ "0.60577404", "0.5989449", "0.5845048", "0.5845048", "0.58261997", "0.5817401", "0.5799835", "0.5754831", "0.56363153", "0.5592621", "0.55919415", "0.5581299", "0.5574793", "0.5557161", "0.55269545", "0.55269545", "0.55269545", "0.55269545", "0.55269545", "0.55269545", "0.55269545", "0.55269545", "0.55269545", "0.55269545", "0.55269545", "0.55269545", "0.5511424", "0.5500797", "0.5500797", "0.5488189", "0.5452244", "0.54400545", "0.5437531", "0.54289913", "0.537681", "0.5370683", "0.5367676", "0.5327193", "0.5313093", "0.52946025", "0.5285318", "0.527047", "0.52513385", "0.5219186", "0.5216569", "0.5210727", "0.520744", "0.51914716", "0.51814765", "0.5181392", "0.5173629", "0.51717323", "0.5171321", "0.5166832", "0.51559055", "0.51549405", "0.5153519", "0.5153519", "0.5151309", "0.51321584", "0.51306826", "0.51303", "0.51273334", "0.5126865", "0.51268387", "0.5122301", "0.5106", "0.5105765", "0.51048994", "0.51048994", "0.5103068", "0.5103068", "0.5103068", "0.5103068", "0.5103068", "0.5103068", "0.5101448", "0.5095492", "0.50913894", "0.5085812", "0.5083774", "0.50754714", "0.50754714", "0.50754714", "0.50642735", "0.50633967", "0.50620466", "0.5061367", "0.50559455", "0.5043003", "0.5029394", "0.5027921", "0.5025571", "0.5024095", "0.5023954", "0.5012025", "0.5006692", "0.4993147", "0.4993128", "0.4991986", "0.49840206" ]
0.0
-1
user silver coin close
function get_user_total_send_diamond($fb_id) { //remain task include("config.php"); $total_send_diamond="0"; //ubh_fb_id!=1 and $qrry_get='SELECT sum(ubh_gift_total_diamond) as total_send_diamond FROM `user_baggage_history` WHERE ubh_sender_fb_id='.$fb_id; $Data= mysqli_fetch_assoc(mysqli_query($conn,$qrry_get)); if($Data['total_send_diamond']){ $total_send_diamond=$Data['total_send_diamond']; } return $total_send_diamond; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Take_Gold($amount = 0) {\r\n\t\tglobal $character, $gameinstance;\r\n\t\tif(isset($amount) && is_numeric($amount) && $amount >= 0 && $amount <= $character['gold']) \r\n\t\t{\r\n\t\t\tdbn(__FILE__,__LINE__,\"update ${gameinstance}_characters set gold = gold - '$amount' where login_id = '$character[login_id]'\");\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\tSystemMessage(CHAR_NOT_ENOUGH_GOLD);\r\n\t\t}\r\n\t}", "public function updateSellIn() {\n $this->sellIn -= 1;\n }", "public function updateSellIn() {\n $this->sellIn -= 1;\n }", "function sell($amount,$symbol){\n //user should be the owner of the stock if he wants to sell\n if($symbol==\"Book\" && $this->bookstock_buy>0){\n echo $this->new_account.\" sold Book Stock\\n\";\n echo \"Transaction Time:\";\n echo date('Y-m-d H:i:s').\"\\n\";\n echo \"Total balance of \".$this->new_account.\" is:\".$this->totalamount.\"\\n\";\n $this->bookstock_buy--;\n $this->object_linkedlist->remove_last();\n }\n elseif($symbol==\"Newspaper\" && $this->newspaperstock_buy>0){\n echo $this->new_account.\" sold Newspaper Stock\\n\";\n echo \"Transaction Time:\";\n echo date('Y-m-d H:i:s').\"\\n\";\n echo \"Total balance of \".$this->new_account.\" is:\".$this->totalamount.\"\\n\";\n $this->newspaperstock_buy--;\n $this->object_linkedlist->remove_last();\n }\n }", "protected function changeGearDown()\n\t{\n\tif ($this->currentGear <= 1){\n\t\t\techo 'Already on the minimum gear.';\n\t\t}\n\t\telse {\n\t\t\t$this->currentGear--;\n\t\t}\n\t}", "public function getClose() {}", "function closeDoor() {\n return Engine::send('closeDoor');\n}", "function on_buy()\r\n\t{\r\n\t}", "public function updateSellIn(): void\n {\n $this->getItem()->sell_in--;\n }", "public function tick()\n {\n $this->sellIn -= 1;\n $this->quality -= 1;\n\n if ($this->sellIn <= 0) {\n $this->quality -= 1;\n }\n\n if ($this->quality <= 0) {\n $this->quality = 0;\n }\n }", "function close()\n {\n return 0;\n }", "public function close() {\n check_access($this->session->userdata('role_id'),3);\n \n $data = array();\n $post_data['day_id'] = $this->session->userdata('day_id');\n $post_data['day_close_amount'] = (double)str_replace(\",\",\"\",$this->input->post('closing_cash'));\n $post_data['day_closedate'] = date('Y-m-d');\n $post_data['day_status'] = 'closed';\n $where = array('day_id' => $this->session->userdata('day_id'));\n if ($this->common->update('dayopenclose', $post_data, $where)) {\n $day = array( 'day_id' => '','day_status' => 'closed' );\n $this->session->set_userdata($day);\n redirect(base_url().'admin/day/listing');\n }\n }", "public function profit() : void {\n\t\techo ($this->price - $this->cost);\n\t}", "protected function closingBalance($text)\n {\n if ($line = $this->getLine('62F|62M', $text)) {\n return $this->balance($line);\n }\n }", "function spectra_money_supply ()\n\t{\n\t\tif (system_flag_get (\"balance_rebuild\") > 0)\n\t\t{\n\t\t\treturn \"Re-Balancing\";\n\t\t}\n\t\t\n\t\t$response = $GLOBALS[\"db\"][\"obj\"]->query (\"SELECT SUM(`balance`) AS `supply` FROM `\".$GLOBALS[\"tables\"][\"ledger\"].\"`\");\n\t\t$result = $response->fetch_assoc ();\n\t\t\n\t\tif (!isset ($result[\"supply\"]))\n\t\t{\n\t\t\treturn \"Unavailable\";\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\treturn $result[\"supply\"];\n\t\t}\n\t}", "public function destroy(Coin $coin)\n {\n //\n }", "function close() {}", "public function deliveryPriceOutDhaka()\n {\n }", "function binPrice($auction_id, $buy_now_price, $user_id = 0) {\n\tglobal $config;\n\t\n\t//see if buy it now is disabled for this item\n\tif ($buy_now_price==0) return 0;\n\t\n\t//calculate the adjusted buy-it-now price\n\trequire_once('../database.php');\n//\techo \"sql: \".\"SELECT COUNT(*) FROM `bids` WHERE `auction_id`=$auction_id AND `user_id`=$user_id\".\" <br/>\\n\";\n\t\n\t\n\tif (isset($config['App']['buyNow']['bid_discount']) && $config['App']['buyNow']['bid_discount']===true) {\n\t\t//see if this user has bought it before, if so no discount will be offered\n\t\tlist($prevBought)=mysql_fetch_array(mysql_query(\"SELECT COUNT(*) \n\t\t\t\t\t\t\t\t\tFROM `auctions`\n\t\t\t\t\t\t\t\t\tWHERE `deleted`=0\n\t\t\t\t\t\t\t\t\t AND `winner_id`='$user_id'\n\t\t\t\t\t\t\t\t\t AND `closed_status`=2\n\t\t\t\t\t\t\t\t\t AND `parent_id`='$auction_id'\"));\n\t\t\n\t\tif ($prevBought>0)\n\t\t{\n\t\t\t$discount=0;\n\t\t}\n\t\telseif($user_id>0)\n\t\t{\n\t\t\tlist($bid_count)=mysql_fetch_array(mysql_query(\"SELECT COUNT(*) FROM `bids` WHERE `auction_id`=$auction_id AND `user_id`=$user_id\"));\n\t\t\t$discount=($bid_count*$config['App']['buyNow']['bid_price']);\n\t\t}\n\t\t\n\t\tif ($discount>=$buy_now_price) {\n\t\t\t//don't know why this would ever happen, but good to have a handler for it\n\t\t\treturn 0.01;\n\t\t} else {\n\t\t\treturn $buy_now_price - $discount;\n\t\t}\n\t} else {\n\t\treturn $buy_now_price;\n\t}\n}", "public function close()\r\n {\r\n parent::setContext();\r\n echo \"电梯关闭\";\r\n }", "public function closeGame()\n\t{\n\t\t$playerX = $this -> playerX;\n\t\t$playerO = $this -> playerO;\n\t\t$query = \"DELETE FROM tttGame \n\t\t\t\t WHERE playerX = '$playerX' \n\t\t\t\t AND playerO = '$playerO';\";\n\t\t$this -> queryDB($query);\n\t}", "public function onClose();", "public function onClose();", "function Give_Gold($amount = 0) {\r\n\t\tglobal $character, $gameinstance;\r\n\t\tif(isset($amount) && is_numeric($amount) && $amount >= 0) \r\n\t\t{\r\n\t\t\tdbn(__FILE__,__LINE__,\"update ${gameinstance}_characters set gold = gold + '$amount' where login_id = '$character[login_id]'\");\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\tSystemMessage(CHAR_CANNOT_GIVE_GOLD);\r\n\t\t}\r\n\t}", "public function status($price, $paid) {\n if(($price - $paid) > 0){\n return 'PEN';\n }else{\n return 'CLO';\n }\n }", "public function getDecreasePrice() {\r\n $decrease = Mage::getStoreConfig(\r\n 'giftwrap/general/decrease_price_wrapall');\r\n if (is_numeric($decrease)) {\r\n return $decrease;\r\n } else {\r\n return 0;\r\n }\r\n }", "public function removeGold($amount) {\n\t\t// don't let the level fall below 1!\n\t\t$this->gold = (($this->gold - $amount) >= 0) ? ($this->gold - $amount) : 0;\n\n\t\treturn $this->gold;\n\t}", "function calculateChangePercent($close,$prevClose){\n $percentageChange=round(($close-$prevClose)*100/$close,2);\n return $percentageChange;\n}", "public function purgeCoin($symbol)\n {\n $coins = new db_coins;\n\n if (!$coins instanceof CActiveRecord) return;\n\n $coin = $coins->find(array(\n 'condition' => 'symbol=:sym',\n 'params' => array(\n ':sym' => $symbol\n )\n ));\n if ($coin)\n {\n $nbAccounts = getdbocount('db_accounts', \"coinid=\" . $coin->id);\n $coin->deleteDeps();\n\n echo \"coin \" . $coin->symbol . \" purged\\n\";\n if ($nbAccounts)\n {\n $nbAccounts -= getdbocount('db_accounts', \"coinid=\" . $coin->id);\n echo \" $nbAccounts accounts deleted\\n\";\n }\n }\n }", "public function decreaseAmount(): void;", "function sellStock($data){\n //retrieve data and set variables accordingly\n $sym = $data[\"Symbol\"];\n $username = $data[\"Username\"];\n $qtyRequested = $data[\"Quantity\"];\n \n //grab the information needed\n $jsonObj = getInfo($sym);\n //decode the structure\n $newObj = json_decode($jsonObj);\n //Single out the Closing price aka Current Price\n $currentCost = $newObj->Close[0];\n //var_dump($newObj->Close[0]); //display the closing price\n\n //check how many of the stock you own\n $qtyYouOwn = getStockQuantity($username,$sym);\n \n //Make sure you have more or equal qty in portfolio compared to what you wanna sell\n if($qtyYouOwn >= $qtyRequested)\n {\n //Calculate the total value of your sell.\n $totalValue = $currentCost * $qtyRequested;\n }\n else //Placeholder for now, should probably not do this.\n {\n //Sell only the amount that you have in portfolio\n $totalValue = $currentCost * $qtyYouOwn;\n }\n \n \n //Call addtoAccountBalance and add $totalValue to the account balance\n $currentBalance = addtoAccountBalance($username,$totalValue,$sym);\n \n //Call deleteFromPortfolioDB and delete the previous entry\n deleteFromPortfolioDB($username, $qtyRequested, $sym);\n\n $returnString = \"Sell Order Confirmed!\";\n \n return($returnString);\n}", "private function endGame()\n {\n $this->hasWon = true;\n $this->calculatePoints();\n $this->setMessageToPlayer();\n }", "public function getCoin()\n {\n return $this->coin;\n }", "public function getCoin()\n {\n return $this->coin;\n }", "public function stop(){\n return $this->bitcoin->stop();\n }", "public function closeReason() {\n if ($this->histories()->whereType(10)->exists()) {\n return $this->histories()\n ->whereType(10)->orderBy('created_at', 'desc')\n ->first()->text;\n } else {\n return false;\n }\n }", "function binPrice($auction_id, $buy_now_price, $user_id) {\r\n\t\t\t\t\tif ($buy_now_price==0) return 0;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t//see how many bids this user placed\r\n\t\t\t\t\t$bid_count=$this->Bid->find('count', array('conditions'=>array('Bid.auction_id'=>$auction_id,'Bid.user_id'=>$user_id)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif (Configure::read('App.buyNow.bid_discount')===true) {\r\n\r\n\t\t\t\t\t\t//see if this user has bought it before, if so no discount will be offered\r\n\t\t\t\t\t\t$prevBought=$this->find('count', array('conditions'=>array(\t'winner_id'=>$user_id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t'closed_status'=>2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t'parent_id'=>$auction_id)));\r\n\t\t\t\t\t\tif ($prevBought>0) {\r\n\t\t\t\t\t\t\t$discount=0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$discount=($bid_count*Configure::read('App.buyNow.bid_price'));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif ($discount>=$buy_now_price) {\r\n\t\t\t\t\t\t\t//don't know why this would ever happen, but good to have a handler for it\r\n\t\t\t\t\t\t\treturn 0.01;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\treturn $buy_now_price - $discount;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn $buy_now_price;\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "function playerCoins($currentPlayer, $playerCoins) {\n\t}", "public static function end_block()\n\t{\n\t\tself::$nivel_cabecalho -= 1;\n\t}", "public function unRate()\n {\n\n }", "public function closePending()\n {\n $cutOff = Carbon::now()->subMinutes(30);\n $rows = $this->storageTable()\n ->where('status', '=', 'approval_pending')\n ->whereDate('created_at', '<', $cutOff)\n ->get();\n foreach ($rows as $row) {\n $subscription = $this->buildSubscriptionFromRow($row);\n if ($subscription->open()) {\n Log::info(\"Closing Payment Subscription \" . $subscription->id\n . \" created at \" . $subscription->createdAt . \" because user never accepted it.\");\n $this->closeSubscription($subscription, 'user_declined');\n }\n }\n }", "function close();", "function close();", "function close();", "function test()\r\n {\r\n\t\techo $this->maxCoins([3,1,5,8]).PHP_EOL;\r\n\t\techo $this->maxCoins([9,76,64,21,97,60]).PHP_EOL;\t\t\r\n }", "function endRound() {\n\n\t\t$this->console_text('End Round');\n\t\t$this->releaseEvent('onEndRound', null);\n\t}", "private function endAuction() {\n $queryBuilder = $this->manager->getRepository(Grund::class)->createQueryBuilder('g');\n $entities = $queryBuilder\n ->andWhere('g.status in (:statuses)')\n ->setParameter('statuses', [GrundStatus::FREMTIDIG, GrundStatus::ANNONCERET])\n ->andWhere('g.auktionslutdato IS NOT NULL')\n ->andWhere('g.auktionslutdato < :now')\n ->setParameter('now', new \\DateTime(null, new \\DateTimeZone('UTC')))\n ->getQuery()->getResult();\n\n $this->write(sprintf('End auction; #entities: %d', count($entities)));\n foreach ($entities as $entity) {\n $this->write(\n sprintf(\n \"% 8d: %s\\t%s\",\n $entity->getId(),\n (string) $entity,\n $entity->getAuktionslutdato()->format(\\DateTime::ISO8601)\n )\n );\n $entity->setStatus(GrundStatus::AUKTION_SLUT);\n $this->manager->persist($entity);\n }\n $this->manager->flush();\n }", "public function getIsClose()\n {\n return $this->is_close;\n }", "private function unbalancedSupply() {\n $rapporto = $_POST['quantitaCercata'] / $_POST['quantitaOfferta'];\n if ($rapporto >= 0.5 && $rapporto <= 2)\n return false;\n return true;\n }", "public function isUnderpaid()\n {\n return $this->getStatus() === OpenNode_Bitcoin_Model_Bitcoin::OPENNODE_STATUS_UNDERPAID;\n }", "public function actionQuitar()\n {\n $producto = Productoscarro::findOne(['id' => $_POST['producto']]);\n $uniforme = Uniformes::findOne(['id' => $producto->uniforme_id]);\n $cantidad = $producto->cantidad;\n if ($producto->delete()) {\n $uniforme->cantidad = $uniforme->cantidad + $cantidad;\n $secs = Secstocks::findOne(['uniforme_id' => $uniforme->id]);\n if ($secs !== null && $uniforme->cantidad > $secs->mp) {\n $uniforme->underss = true;\n $uniforme->save();\n }\n if ($uniforme->save()) {\n $carr = Carros::findOne(['id' => $producto->carro_id]);\n $carr->productos = $carr->productos - 1;\n $carr->save();\n }\n }\n // return true;\n }", "public function endCurrentRound(){\n global $tpl, $lng, $ilCtrl, $ilTabs;\n\n $ilTabs->activateTab(\"showCurrentRound\");\n\n $this->object->endCurrentRound();\n $ilCtrl->redirect($this, \"showCurrentRound\");\n }", "public function test_it_should_decrease_sell_in_of_ordinary_item()\r\n {\r\n $initialSellIn = 5;\r\n $this->itemBuilder->ordinaryItem()->toSellIn($initialSellIn);\r\n\r\n $this->updateQuality();\r\n\r\n $this->assertThatSellInIs(lessThan($initialSellIn)); // variant (1a), general\r\n $this->assertThatSellInIs(equalTo($initialSellIn - 1)); // variant (1b), specific\r\n }", "public function buycoin()\n {\n UserModel::authentication();\n\n //get the session user\n $user = UserModel::user();\n\n PaymentModel::buy_coin($id, $order);\n }", "public function updateVisitsToClose() {\n\t\ttry {\n\t\t\t$commandUpdateCard = \"\";\n\n\t\t\t$command = Yii::app()->db->createCommand(\"UPDATE visit\n LEFT JOIN card_generated ON card_generated.id = visit.card\n SET visit_status = \" . VisitStatus::CLOSED . \",card_status =\" . CardStatus::NOT_RETURNED . \"\n WHERE CURRENT_DATE > date_out AND visit_status = \" . VisitStatus::ACTIVE . \"\n AND card_status = \" . CardStatus::ACTIVE . \" and card_type= \" . CardType::SAME_DAY_VISITOR . \"\")->execute();\n\t\t\techo \"Affected Rows : \" . $command . \"<br>\";\n\t\t\tif ($command > 0) {\n\t\t\t\techo \"Update visit to close status successful.\";\n\t\t\t} else {\n\t\t\t\techo \"No record to update.\";\n\t\t\t}\n\n\t\t\treturn true;\n\t\t} catch (Exception $ex) {\n\t\t\techo 'Query failed', $ex->getMessage();\n\t\t\treturn false;\n\t\t}\n\t}", "public function choMuonTien() {\n\t\treturn $this->getMoney();\n\t}", "function removeBalance($dbh, $userID, $amount)\n\t{\n\t\t$sth = $dbh -> prepare(\"Select Balance From Bettors Where BettorID = :userID\");\n\t\t$sth->bindValue(':userID', $userID);\n\t\t\n\t\t$sth->execute();\n\n\t\t$oldBalance = $sth->fetch();\n\t\t$newBalance = $oldBalance[0] - $amount;\n\t\t\n\t\t\n\t\t$sth = $dbh -> prepare(\"Update Bettors Set Balance = :newBalance Where BettorID = :userID\");\n\t\t$sth->bindValue(':newBalance', $newBalance);\n\t\t$sth->bindValue(':userID', $userID);\n\t\t\n\t\t$sth->execute();\n\n\t}", "public function getGold()\n {\n $value = $this->get(self::GOLD);\n return $value === null ? (integer)$value : $value;\n }", "public function getLastbuy()\n {\n return $this->get(self::_LASTBUY);\n }", "public function closeReturn()\n {\n $this->returnOpen = false;\n }", "public function sharpen($amount);", "public function close():void\n\t{\n\t\tif( $this->_status === self::STATUSES['DONE'] )\n\t\t\t$this->_status= self::STATUSES['CLOSED'];\n\t}", "public function getGold()\n {\n return $this->get(self::_GOLD);\n }", "public function getGold()\n {\n return $this->get(self::_GOLD);\n }", "function coin_to_usd($book, $qty, $action) \n{ \n $cnt = 0; // current bid/ask we are looking at\n $total = 0; // total price\n $whats_left = $qty; // how many bitcoins are left to buy/sell \n \n if($action == 'sell') {\n $book_data = $book->bids; \n } else if($action == 'buy') {\n $book_data = $book->asks;\n }\n \n while($whats_left > 0) {\n \n if ($whats_left >= $book_data[$cnt][QTY]){ // need another bid\n \n $total += $book_data[$cnt][QTY] * $book_data[$cnt][BID];\n $whats_left = $whats_left - $book_data[$cnt][QTY];\n \n } else { // no more bids needed\n \n $total += $whats_left * $book_data[$cnt][BID];\n $whats_left = 0;\n }\n \n $cnt++;\n }\n \n return $total + $total * COMMISSION;\n}", "public function handle(): Currency\n {\n $currencies = $this->currencyRepository->findAll();\n $mostChangedCurrency = $currencies[0];\n foreach ($currencies as $currency) {\n if (abs($mostChangedCurrency->getDailyChangePercent() < abs($currency->getDailyChangePercent()))) {\n $mostChangedCurrency = $currency;\n }\n }\n\n return $mostChangedCurrency;\n }", "function doubleDown($name, $deck, $player, $dealer, $insuranceBet, $deck, $bet, $bankroll) {\n\tif ($bankroll >= ($bet*2)) {\n\t\tfwrite(STDOUT, \"Would you like to double down? (y)es or (n)o? \") . PHP_EOL;\n\t\t$doubleDown = strtolower(trim(fgets(STDIN)));\n\t\tif ($doubleDown == 'y') {\n\t\t\t$bet = ($bet*2);\n\t\t\techo \"Ok you doubled your wager to $\" . $bet . '.' . PHP_EOL;\n\t\t\t//hit with only one more card and evaluate (if player>21, evaluate hand)\n\t\t\t$player = playerHit($name, $deck, $player, $dealer, $bet, $insuranceBet, $bankroll);\n\t\t\t//play out dealer hand\n\t\t\techoDealer($dealer, false);\n\t\t\t$dealer = dealerHit ($deck, $dealer);\n\t\t\t//evaluate result\n\t\t\tevaluateHands($name, $player, $dealer, $bet, $insuranceBet, $bankroll);\n\t\t}\n\t} \n}", "function soogiHind($taisHind, $soodusKaart = false, $kasOledOpilane = false){\n $soodusHind = $taisHind;\n $soodustusProtsent = 15;\n $opilaseToetus = 1.80; // €\n\n if($soodusKaart){\n $soodusHind = $taisHind * (100 - $soodustusProtsent) / 100;\n }\n if($kasOledOpilane){\n $soodusHind -= $opilaseToetus;\n }\n return $soodusHind;\n}", "public function getClosedate()\n {\n return $this->_closedate;\n }", "public function offerClosedForADay() {\n\t\treturn response( 1, 200 )\n\t\t\t->cookie( 'doodleOffer', \"mrksohag\", config( 'constant.popupHideTimeInMinutes' ) );\n\t}", "function playerStaysInPenaltyBox($currentPlayer) {\n\t}", "public function getBrut()\n\t{\n\n\t\treturn $this->getClick * $this->getClickPayout;\t\n\t}", "function buyStock($data){\n //retrieve data and set variables accordingly\n $sym = $data[\"Symbol\"];\n $username = $data[\"Username\"];\n $qty = $data[\"Quantity\"];\n \n //grab the information needed\n $jsonObj = getInfo($sym);\n //decode the structure\n $newObj = json_decode($jsonObj);\n //Single out the Closing price aka Current Price\n $currentCost = $newObj->Close[0];\n //var_dump($newObj->Close[0]); //display the closing price\n \n //Check Account Balance to see if the buy is possible\n $accountValue = getCurrentAccountBalance($username);\n \n //$purCost is to store a value in DB, ex: $purCost = API->currentCost;\n $purCost = $currentCost;\n \n //Calculate the total value of your purchase. Cost * Shares\n $totalValue = $purCost * $qty;\n \n if($accountValue >= $totalValue)\n {\n //add this entry into the DB.\n addToPortfolioDB($username,$purCost,$qty,$sym);\n //subtract cost of purchase from Bank Account Balance\n deleteFromAccountBalance($username,$totalValue,$accountValue);\n }\n else\n {\n echo \"NOT ENOUGH FUCKING MONEY\";\n }\n \n \n \n //make a new object to store data to return?\n $returnObj = array(\"TotalValue\"=>$totalValue);\n //example of how to single out a value is Below\n //var_dump($returnObj[\"TotalValue\"]);\n \n //returns an array\n return (json_encode($returnObj));\n //returns an json object\n //return (json_encode($returnObj));\n}", "public function selfClosing();", "public function getGold() {\n\t\treturn $this->gold;\n\t}", "public function test__it_should_be_block_close_stock_removal_when_has_product_withdrawn()\n {\n $removal = Removal::create();\n\n // enviado\n RemovalProduct::create([\n 'stock_removal_id' => $removal->id,\n 'status' => 2,\n ]);\n\n // retirado\n RemovalProduct::create([\n 'stock_removal_id' => $removal->id,\n 'status' => 0,\n ]);\n\n $this->json('POST', \"/api/estoque/retirada/fechar/{$removal->id}\")\n ->seeStatusCode(400)\n ->seeJson([\n 'status' => 'ValidationFail'\n ]);\n }", "public function btnCalculator_Close() {\n\t\t\t$this->txtValue->Text = $this->dlgCalculatorWidget->Value;\n\t\t}", "public function mark_notice_closed() {\n\n\t\tcheck_ajax_referer( 'mi-admin-nonce', 'nonce' );\n\t\t$options = $this->get_options();\n\t\t$options['notice30day'] = time();\n\t\tupdate_user_meta( get_current_user_id(), 'monsterinsights_user_preferences', $options );\n\n\t\twp_send_json_success();\n\t}", "protected function closed ($user)\n\t\t{\n\t\t\techo \"User closed connectionn\";\n\t\t}", "public function isClosed_randomanswers() {\n\t\t$this->getClosed_randomanswers();\n\t}", "public function action_close()\n\t{\n\t\treturn \"</div>\\n\";\n\t}", "public function stop()\n {\n $this->gamerounds[] = $this->roundsum;\n $this->roundsum = 0;\n $this->dice->reset();\n }", "function sellbot()\n {\n // check if its a valid choice\n $valid = 0;\n \n if(isset($_POST['cb'])) {\n // get IDs\n $ids = explode(',',implode(',',$_REQUEST['cb']));\n\n // only one picked\n if (count($ids) == 1) {\n $valid = 1;\n $server = $this->data['umbrella'] . '/work/buymybot';\n\n // get pieces in bots table given $id\n $pieces = explode(',',$this->factory->getPieces($ids[0]));\n\n // we need our API key\n $apikey = $this->properties->get('apikey');\n $this->data['workparms'] = [\n ['key' => 'key', 'value' => $apikey],\n ['key' => 'part1', 'value' => $pieces[0]],\n ['key' => 'part2', 'value' => $pieces[1]],\n ['key' => 'part3', 'value' => $pieces[2]],\n ];\n\n $result = file_get_contents($server . '/' . $pieces[0] . '/' . $pieces[1]\n . '/' . $pieces[2] . '?key=' . $apikey);\n $this->data['workresult'] = $result;\n\n // Handle the purchase at our end\n if (substr($result, 0, 2) == 'Ok')\n {\n // we're in, update bots table\n $this->factory->remove('bots', $ids[0]);\n\n // current balance\n $old_balance = $this->data['balance'] = $this->properties->get('balance');\n\n $balance = file_get_contents($this->data['umbrella'] . '/info/balance/' . $this->trader);\n $this->properties->put('balance', $balance);\n\n // update history table\n $amount = $balance - $old_balance;\n $message = \"Shipped 1 bot, id: \".$ids[0];\n $this->data['message'] = $message;\n $this->factory->addHistory(1, $amount, $message);\n }\n } \n }\n\n if ($valid == 0)\n $this->data['message'] = \"Please pick a bot for sale!\";\n \n $this->polish();\n }", "function Close($other_close_reason = null)\n\t{\n\t\t$this->db->qI(\n\t\t\t'#_PREF_lc_sessions', \n\t\t\tarray('closed' => 1, 'other_close_reason' => $other_close_reason, 'closed_at' => 'NOW()'), \n\t\t\t'UPDATE', array('sid' => $this->sid)\n\t\t);\n\t\t$this->db->qI('#_PREF_lc_users', array('`status`' => 'closed'), 'UPDATE', array('sid' => $this->sid));\n\t}", "public function setClose()\n {\n $this->close = true;\n }", "public function tick(){\n\t\tif($this->status !== self::NORMAL){\n\t\t\t$this->remaining_turns--;\n\t\t\tif($this->remaining_turns <= 0){\n\t\t\t\t$this->status = self::NORMAL;\n\t\t\t}\n\t\t}\n\t}", "public function cartclose(Request $req){\n $items = Cart::where(\"user_id\", Auth::user()->id)->where(\"status\",0)->get();\n $cart_number = Cart::max('cart_number') + 1;\n foreach($items as $item){\n $item->status = 1;\n $item->cart_number = $cart_number;\n $item->save();\n }\n return view('/thankyou');\n }", "function get_user_silvercoin_byfb_id($fb_id)\n\t{\n \tinclude(\"config.php\");\n \t\t$qrry_get='SELECT total_silver_coin FROM `users` WHERE fb_id='.$fb_id;\n \t\t$total_silver_coin_data= mysqli_fetch_assoc(mysqli_query($conn,$qrry_get))['total_silver_coin']; \n\t\treturn $total_silver_coin_data;\n\t}", "public function getBtncurrencyInGrivnas(){\n $data = json_decode(file_get_contents($this->url));\n $bitcoin = 0;\n foreach( $data as $obj ){\n if( $obj->code=='USD' )$bitcoin=$obj->rate;\n }\n\n\n $xml = simplexml_load_file(\"https://api.privatbank.ua/p24api/pubinfo?exchange&coursid=5\");\n $m = $xml->xpath('//exchangerate[@ccy=\"USD\"]');\n $exrate = (string)$m[0]['buy'];\n\n $uah = $bitcoin * $exrate;\n\n return '1 BTC = ' . $uah . ' UAH.';\n }", "public function close() {\n return UPS_SUCCESS;\n }", "public function close() {\n return UPS_SUCCESS;\n }", "public function sendMoney() {\n // @TODO Do something\n echo 'VTB';\n parent::sendMoney();\n }", "public function tocar(){\n echo \"Tocando no volume: \" . $this->volume . \" decibéis. <br>\";\n }", "public function isClosed() {\n return $this->status == 2;\n }", "public function testCheckWinner()\n {\n $gamestate = $this->game->getGamestate();\n $this->game->holdHand();\n $this->assertNull($gamestate[\"hasWon\"]);\n\n $gamestate[\"active\"]->addPoints(100);\n $exp = $gamestate[\"active\"];\n $this->game->holdHand();\n\n $gamestate = $this->game->getGamestate();\n $this->assertEquals($exp, $gamestate[\"hasWon\"]);\n }", "public function close() {\n // DO NOTHING!!!!\n }", "public function silver(): int\n {\n return $this->pluck('definedTrophies.silver');\n }", "public function winAmount($amount)\n {\n return $this->odds * $amount;\n }", "function ticket_close($d){\n $url = $this->url.\"ticket_close\";\n $data['case_id'] =$d['case_id'] ;\n $data['action'] =$d['action'] ;\n $data['comfirm_closed_reason'] =$d['comfirm_closed_reason'] ;\n $data['submitter'] =$d['submitter'] ;\n $this->setTransactionToLog(\"method:\".__METHOD__);\n $result = $this->_exec($url,$data);\n }", "public function closeAndStroke() {}", "public function currencyPrice()\n {\n \t$this->currencyPrice = CurrencyPrice::getCurrencyPrices($this->sellPrices->CurrencyNo)->BuyPrice;\n \treturn $this->currencyPrice > 0 ? $this->currencyPrice : 1 ;\n }" ]
[ "0.58076376", "0.5723389", "0.5723389", "0.569433", "0.5576624", "0.557301", "0.5457062", "0.5402846", "0.53809005", "0.53490853", "0.5333448", "0.53211117", "0.53026134", "0.52726454", "0.5264182", "0.5254209", "0.5243695", "0.5241722", "0.52211964", "0.52005786", "0.51900023", "0.5176796", "0.5176796", "0.5161205", "0.5158429", "0.51235455", "0.512121", "0.5117697", "0.50892866", "0.50732666", "0.5068987", "0.50577974", "0.5051825", "0.5051825", "0.503027", "0.5018601", "0.50032645", "0.49982738", "0.49934122", "0.4979326", "0.4977004", "0.49736923", "0.49736923", "0.49736923", "0.49667633", "0.49658236", "0.49646994", "0.49631935", "0.49629796", "0.49518228", "0.49458024", "0.49442255", "0.49363723", "0.49248704", "0.49231723", "0.49169725", "0.49163124", "0.49130163", "0.4904756", "0.49019316", "0.48894882", "0.48893684", "0.4888151", "0.4888151", "0.48857048", "0.48757192", "0.4854432", "0.4839384", "0.48382908", "0.48371306", "0.48275596", "0.48265365", "0.4824161", "0.48182237", "0.48178557", "0.48152736", "0.48139608", "0.48138958", "0.48101908", "0.48017454", "0.4797658", "0.47961584", "0.47956747", "0.47926432", "0.47889557", "0.47865984", "0.477761", "0.477209", "0.47697705", "0.4769108", "0.4769108", "0.4766629", "0.4761391", "0.47566932", "0.47470388", "0.47459844", "0.47458708", "0.47402045", "0.4734451", "0.4734395", "0.47330725" ]
0.0
-1
24_12_2020 21_12_2020 beans start
function exchange_diamond_to_beans_list() { require_once("config.php"); $input = @file_get_contents("php://input"); //$event_json = json_decode($input,true); $event_json = json_decode($input,true); if(!isset($event_json['fb_id']) || $event_json['fb_id']=="") { $msg_out="Validation Error fb_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $fb_id=$event_json['fb_id']; //$fb_id=$event_json['fb_id']; $qrry_get=" SELECT * FROM `exchange_diamond_to_beans` where edtb_status='Active' "; $res=mysqli_query($conn,$qrry_get); $daily_task_data_list=mysqli_fetch_all($res, MYSQLI_ASSOC); $custom_array=array(); foreach ($daily_task_data_list as $value) { # code... array_push($custom_array,$value); } if($custom_array){ $msg_out="Get exchange diamond to beans List"; $output=array( "code" => "200", "msg" => $msg_out ,"data" => $custom_array); }else{ $msg_out="No Any Data Found In exchange diamond to beans"; $output=array( "code" => "500", "msg" => $msg_out , "data"=> ""); } print_r(json_encode($output, true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function start() {\n\n // TODO: Maybe sometimes\n\n }", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start()\n {\n }", "public function start()\n {\n }", "public function start()\n {\n }", "public function startWorking(){\r\n }", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start(): void {}", "private function booted()\n {\n }", "public function start() {\n\t\t$this->invoke(\"start\");\n\t}", "public function initiateDeployment() {\n\t\t$bean = $this->unbox();\n\t\t\n\t\t$config = Zend_Registry::get('config');\n\t\t$workdir = $config->directories->deployment;\n\t\t\n\t\t$oldumask = umask(0);\n\t\tif (!is_dir($workdir)) {\n\t\t\tmkdir($workdir, 0777, true);\n\t\t}\n\t\tif (!is_dir($workdir . $bean->id)) {\n\t\t\tmkdir($workdir . $bean->id, 0777, true);\n\t\t}\n\t\tumask($oldumask);\n\t\t\n\t\t$this->writePropertiesFile($workdir . $bean->id . '/build.properties');\n\t\t$process = $this->getNextProcess();\n\t\t$process->status = 'Not started';\n\t\tR::store($process);\n\t\t$process->startProcessWrapper();\n\t}", "public function start()\n {\n $this->startTime = Carbon::now();\n }", "public static function start(): void {\n }", "public function startup();", "public function start()\n {\n // TODO: Implement start() method.\n }", "function startApplication(){\n\n\t// name space all the stuff for the application\n\t$_SESSION[ SESSION_NAME_SPACE ] = array();\n\t$_SESSION[ SESSION_NAME_SPACE ][ 'systemPath' ] = getcwd();\n\t$_SESSION[ SESSION_NAME_SPACE ][ 'factory' ] = new Factory();\n\n\t// lets output a message that the application has been reloaded.\n\t$initViewState = getFactory()->getBean( 'ViewState' );\n\t$initViewState->setResponse('Application Started at: ' . date( 'l jS \\of F Y h:i:s A' ), 'warning');\n\tsetViewState( $initViewState );\n}", "public function start()\n {\n $model = $this->getModel();\n $model->started_at = date('Y-m-d H:i:s');\n $model->save(false);}", "public function onBakeStart(IBaker $baker)\n {\n }", "public function beforeStart () {\n }", "public function boot():void\n {\n //\n }", "abstract public function start();", "abstract public function start();", "public function start()\n {\n // nop\n }", "public function boot();", "public function boot();", "public function boot();", "public function boot();", "public function start(): void;", "public function runAtBoot() {\r\n\t\tif (isset ( $this->data )) {\r\n\t\t\t$this->configure ();\r\n\t\t\t$this->start ();\r\n\t\t} else {\r\n\t\t\t$this->logger->warn ( \"No WAN config found.\" );\r\n\t\t}\r\n\t}", "public function boot(): void;", "public static function booted()\n {\n }", "public static function booted()\n {\n }", "public function start()\n\t{\n\t\t// reset first, will start automaticly after a full reset\n\t\t$this->data->directSet(\"resetNeeded\", 1);\n\t}", "abstract public function boot();", "abstract public function boot();", "abstract public function boot();", "abstract public function boot();", "public function boot(): void\n {\n }", "public function boot(): void\n {\n }", "public function boot()\n {}", "public function boot()\n {}", "public function run()\n {\n factory(Ospiti::class, 10) -> create();// create server per INSERIRE I DATI NEL DATABASE\n }", "public function boot() : void;", "public function perBill()\n\t{\n\t\t$this->restart( 'shop/finish' );\n\t}", "public function start()\n {\n // For example you can check Auth\n }", "abstract function start();", "public function boot(): void\n {\n\n }", "public function start () {\n if (!$this->started) {\n $this->restart();\n }\n }", "protected function onBoot() {}", "public function boot()\n {\n $bootTime = new \\DateTime();\n foreach ($this->jobs as $job) {\n $this->output->writeln(\"<info>Initializing job:</info> <comment>\".$job->getName().\"</comment> (job_id: <comment>\".$job->getId().\"</comment>)\");\n $job->setLastRunTime($bootTime);\n\n if ($job->hasCronTime()) {\n $this->addJobAsTimer($job);\n }\n }\n }", "public function start_harvest(){\n $this->checkinit();\n $this->harvest_laststart = $this->dt();\n $this->save_flags();\n }", "public function run()\n {\n factory(ServiceBay::class, 10)->create();\n }", "public function run()\n {\n factory(InfluencerCommissionHistory::class, 200)->create();\n }", "public function start_app_backup() {\n \n // Backups the files to update and save update\n (new MidrubBaseAdminCollectionUpdateHelpers\\Apps)->start_backup();\n \n }", "public function beforeStart()\n {\n }", "public function run()\n {\n factory(App\\ReportProductSold::class, 100)->create()->each(function ($product_sold) {\n $product_sold->save();\n });\n $this->command->info('Product sold seeded!');\n }", "public function start()\n {\n //Start pushing data\n }", "public function boot(): void\n {\n //\n }", "public function boot(): void\n {\n //\n }", "public function boot(): void\n {\n //\n }", "public function boot(): void\n {\n //\n }", "public function run()\n {\n factory(Servicios::class, 10)->create();\n }", "public function startPowerUnits() {\n\t\techo \"systems are not ready yet\";\n\t}", "public function boot(){}", "public function start()\n {\n die(\"Must override this function in a driver\");\n }", "public function run()\n\t{\n\t\t$this->upgrade_to_1_1_0();\n\t}", "public function run()\n {\n //\n SystemService::create([\n 'nombre' => 'La carta mozo'\n ]);\n SystemService::create([\n 'nombre' => 'Delivery'\n ]);\n SystemService::create([\n 'nombre' => 'Reservas'\n ]);\n SystemService::create([\n 'nombre' => 'Marketing'\n ]);\n }", "public static function boot();", "public function run()\n {\n $this->poblaMesAleatoriamente(Carbon::now()->format('Y-m-d'), 10);\n }", "protected function start()\n {\n $pidFile = $this->getPidFile();\n\n if(is_file($pidFile)){\n echo \"PID present, so service is already started\\n\";\n exit;\n }\n\n $user = $this->getContainer()->getParameter('netvlies_publish.anyterm_user');\n $port = $this->getContainer()->getParameter('netvlies_publish.anyterm_exec_port');\n $command = 'anytermd -c \"'.dirname(__DIR__).'/Resources/anyterm/exec.sh %p\" -p '.$port.' -u '.$user.' --name anyterm'.$port;\n shell_exec($command);\n }", "public function isBooted();", "function start()\n {\n $this->startService();\n $this->startSession();\n }", "public function run()\n\t\t{\n\t\t\t// Sets up the Applog, any other pre-requisites in the parent\n\t\t\tparent::run();\n\t\t\t\n\t\t\t$this->CSO_Defaulted_Loans($this->server, $this->start_date);\n\t\t}", "protected function start()\n {\n $status = $this->autoTestController->start();\n\n PacklinkPrestaShopUtility::dieJson($status);\n }", "public function startAction() {\n session_unset();\n\n \t$br = new bookingRecord();\n \t$br->save();\n\n $this->View('booking_start');\n }", "public function start()\n {\n echo 'Start odometer.',\"\\n\";\n }", "function start()\n {\n\n // initialize crontab as user www-data\n $crontab = new Engine\\Crontab('www-data');\n\n // show exists tasks as array\n print_r($crontab->crontabs);\n // add cron task\n// $crontab->addCron(0, \"*\", \"*\", \"*\", \"*\", \"ls -al\");\n// $crontab->writeCrontab();\n // delete cron task\n// $crontab->delEntry(0);\n// $crontab->writeCrontab();\n\n $this->tpl->setBlock(\"breadcrumb\",'<a href=\"/crontab\">Crontab example</a>');\n $this->tpl->setBlock('content','');\n }", "public function run()\n {\n Weathers::truncate();\n factory(Weathers::class, 24)->create();\n }", "function run() {\n\t$scheduler = new CSL_Feed_Import_Scheduler;\n\t$scheduler->setup();\n}", "public function run()\n {\n DB::table('job_service')->insert([\n 'jobId' => 1,\n 'serviceId' => 1,\n 'isActive' => 1,\n 'isComplete' => 1,\n 'isVoid' => 0,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ]);\n \n DB::table('job_service')->insert([\n 'jobId' => 2,\n 'serviceId' => 1,\n 'isActive' => 1,\n 'isComplete' => 1,\n 'isVoid' => 0,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ]);\n }", "public function run()\n {\n factory(App\\TripCoordinator::class, 5)->create();\n }" ]
[ "0.6160046", "0.6105255", "0.6105255", "0.6104867", "0.61044973", "0.6103747", "0.6103747", "0.6103747", "0.6103747", "0.6103747", "0.6103747", "0.5967389", "0.5967389", "0.5967389", "0.58709514", "0.5765001", "0.5765001", "0.5765001", "0.5765001", "0.5765001", "0.5765001", "0.5765001", "0.5765001", "0.5765001", "0.5765001", "0.5765001", "0.5765001", "0.5764857", "0.5747115", "0.5662108", "0.5636811", "0.5611877", "0.55880344", "0.5583374", "0.55307496", "0.550044", "0.54503435", "0.54409176", "0.54338497", "0.5431135", "0.54234296", "0.54234296", "0.54169726", "0.5402378", "0.5402378", "0.5402378", "0.5402378", "0.54017395", "0.5397354", "0.53968155", "0.5372023", "0.5372023", "0.5368013", "0.5365562", "0.5365562", "0.5365562", "0.5365562", "0.5350344", "0.5350344", "0.5341113", "0.5341113", "0.5339955", "0.5338681", "0.53368515", "0.53363454", "0.53359413", "0.53271073", "0.5320157", "0.5311967", "0.53071135", "0.5306308", "0.5304176", "0.5292581", "0.52891135", "0.5271017", "0.52696824", "0.5254926", "0.5251855", "0.5251855", "0.5251855", "0.5251855", "0.5249724", "0.5238677", "0.5233826", "0.5221005", "0.5194462", "0.5184268", "0.51789355", "0.5172678", "0.5169696", "0.51620954", "0.51599765", "0.5148555", "0.5145917", "0.5142372", "0.5137597", "0.51327777", "0.512468", "0.5121325", "0.5119599", "0.51050794" ]
0.0
-1
beans close withdrawal_request start
function create_user_withdrawal_request() { require_once("config.php"); $input = @file_get_contents("php://input"); //$event_json = json_decode($input,true); $event_json = json_decode($input,true); if(!isset($event_json['fb_id']) || $event_json['fb_id']=="") { $msg_out="Validation Error fb_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_amount']) || $event_json['uwr_amount']=="") { $msg_out="Validation Error uwr_amount Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_coin']) || $event_json['uwr_coin']=="") { $msg_out="Validation Error uwr_coin Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_payment_method']) || $event_json['uwr_payment_method']=="") { $msg_out="Validation Error uwr_payment_method Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $uwr_payment_method=$event_json['uwr_payment_method']; //'Bank Transfer' $uwr_bank_name=""; $uwr_account_type=""; $uwr_account_number=""; $uwr_ifsc=""; if($uwr_payment_method=="Bank Transfer") { if(!isset($event_json['uwr_bank_name']) || $event_json['uwr_bank_name']=="") { $msg_out="Validation Error uwr_bank_name Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_account_type']) || $event_json['uwr_account_type']=="") { $msg_out="Validation Error uwr_account_type Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_account_number']) || $event_json['uwr_account_number']=="") { $msg_out="Validation Error uwr_account_number Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_ifsc']) || $event_json['uwr_ifsc']=="") { $msg_out="Validation Error uwr_ifsc Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $uwr_bank_name=$event_json['uwr_bank_name']; $uwr_account_type=$event_json['uwr_account_type']; $uwr_account_number=$event_json['uwr_account_number']; $uwr_ifsc=$event_json['uwr_ifsc']; } //other $uwr_other =""; if($uwr_payment_method!="Bank Transfer") { if(!isset($event_json['uwr_other']) || $event_json['uwr_other']=="") { $msg_out="Validation Error uwr_other Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $uwr_other =$event_json['uwr_other']; } // if(!isset($event_json['uwr_name']) || $event_json['uwr_name']=="") { $msg_out="Validation Error uwr_name Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_contact']) || $event_json['uwr_contact']=="") { $msg_out="Validation Error uwr_contact Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_email']) || $event_json['uwr_email']=="") { $msg_out="Validation Error uwr_email Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $uwr_coin=$event_json['uwr_coin']; $uwr_amount=$event_json['uwr_amount']; $uwr_fb_id=$event_json['fb_id']; $uwr_name=$event_json['uwr_name']; $uwr_contact=$event_json['uwr_contact']; $uwr_email=$event_json['uwr_email']; $DATE_TIME=custom_current_date_time(); $qrry_get='INSERT INTO `user_withdrawal_request` (`uwr_fb_id`, `uwr_amount`, `uwr_coin`, `uwr_request_cr_date`,`uwr_bank_name`,`uwr_account_number`, `uwr_ifsc`, `uwr_account_type`, `uwr_other`, `uwr_payment_method`,`uwr_name`, `uwr_contact`, `uwr_email`) VALUES ("'.$uwr_fb_id.'","'.$uwr_amount.'","'.$uwr_coin.'","'.$DATE_TIME.'","'.$uwr_bank_name.'","'.$uwr_account_number.'","'.$uwr_ifsc.'","'.$uwr_account_type.'","'.$uwr_other.'","'.$uwr_payment_method.'","'.$uwr_name.'","'.$uwr_contact.'","'.$uwr_email.'")'; $res=mysqli_query($conn,$qrry_get)or die(mysqli_error($conn)); $lastid=mysqli_insert_id($conn); if($lastid) { $last_data =mysqli_fetch_assoc(mysqli_query($conn,"select * from user_withdrawal_request WHERE uwr_id = '$lastid' ")); //update beans $UPDATE_beans_user="update users set total_beans=total_beans-".$uwr_coin." WHERE fb_id=".$uwr_fb_id; mysqli_query($conn,$UPDATE_beans_user); $msg_out="Withdrawal Request Create Successfully"; $output=array( "code" => "200", "msg" => $msg_out ,"data" => $last_data); }else{ $msg_out="Error In Withdrawal Request"; $output=array( "code" => "500", "msg" => $msg_out , "data"=> ""); } print_r(json_encode($output, true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function disposal($request);", "public function closeBooking(\\HttpRequest $objRequest, \\HttpResponse $objResponse): \\SuccessService {\r\n $objSuccessService = new \\SuccessService();\r\n $objLoginEmployee = LoginServiceImpl::instance()->checkLoginEmployee()->getEmployeeInfo();\r\n $company_id = LoginServiceImpl::instance()->getLoginInfo()->getCompanyId();\r\n //获取channel\r\n $channel_id = $objRequest->channel_id;\r\n\r\n }", "function end_amy_request()\n\t{\n\t\tDb::close_connection();\n\t}", "public function close() {}", "public function close() {}", "public function close() {}", "public function close() {}", "public function close()\n {\n }", "public function close()\n {\n }", "public function close() {\n }", "public function closeEnrollment();", "public function closeBillingAgreement($requestParameters = array());", "public function close() {\n\t}", "public function closeChargingRecordsCreation()\n {\n\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n $this->_manager->close();\n }", "public function close()\n {\n Application::instance()->executeControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), \"close\",\n Application::PRIORITY_LAST);\n }", "function close() {}", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function closeAuthorization($requestParameters = array());", "public function close()\n {\n if ($this->debug) {\n $this->debug_message('Closing TheTvdbApi connections.');\n }\n\n $this->request->close();\n }", "function close_payment(){\n\t\t$payment_id = $this->uri->segment(3);\n\t\t$this->Students_model->delete_transaction($payment_id);\n\t\t\n\t\t$id = $_POST['student_id'];\n\t\t$batch_id = $_POST['batch_id'];\n\t\t$this->data['fee_paid_list'] = $this->Students_model->get_students_fee_paid_detail($id, $batch_id);\n\t\t$this->data['voucher_list'] = $this->Students_model->get_students_vouchers($id, $batch_id); // For refund details echo \"Hi...\";\n\t\t\n\t\t$this->load->view('settings/students/fee_paid_list',$this->data);\n\t}", "public function close() {\n // DO NOTHING!!!!\n }", "function __destruct()\n\t{\n\t\t$this->InventariosModel->close();\n\t}", "protected function close(): void\n {\n }", "public function executeClosed(sfWebRequest $request) {\n\n $request_id = $request->getParameter('id');\n $this->forward404Unless($contactanos = Doctrine::getTable('Contactanos')->find($request_id));\n\n $contactanos->setStatus(3);\n $contactanos->save();\n\n $this->getUser()->setFlash('notice', 'Correo procesado.');\n $this->redirect('contactanos');\n }", "public function closeOrderReference($requestParameters = array());", "function close() {\n\t\t$this->disconnect();\n\t}", "public function sapClose(){\n $this->conn->close();\n }", "public function close():void\n\t{\n\t\tif( $this->_status === self::STATUSES['DONE'] )\n\t\t\t$this->_status= self::STATUSES['CLOSED'];\n\t}", "public function close()\n {\n $this -> connector -> finalize();\n }", "function close() {\r\n\t\t\tif ( $this->_conn != null ) {\r\n\t\t\t\t$this->_conn = null;\r\n\t\t\t\t@OCILogoff( $this->_conn );\r\n\t\t\t}\r\n\t\t}", "public function close(): void\n {\n }", "public function onClose();", "public function onClose();", "function ticket_close($d){\n $url = $this->url.\"ticket_close\";\n $data['case_id'] =$d['case_id'] ;\n $data['action'] =$d['action'] ;\n $data['comfirm_closed_reason'] =$d['comfirm_closed_reason'] ;\n $data['submitter'] =$d['submitter'] ;\n $this->setTransactionToLog(\"method:\".__METHOD__);\n $result = $this->_exec($url,$data);\n }", "function _close() {\n }", "public function __destruct() {\n curl_close($this->request);\n }", "public function close()\n\t{\n\t\treturn;\n\t}", "public function close()\n {\n $this->transport->close();\n }", "public function completeRequest()\n {\n if (kodexy()->database->isConnected())\n {\n kodexy()->database->disconnect();\n }\n \n exit;\n }", "function cerrarConexion(){\n $this->coneccion->Close();\n }", "function _close()\n\t{\n\t}", "public static function close() {}", "public function getClose() {}", "protected function _close()\n\t{\n\t\t$this->connID->close();\n\t}", "public function close(Request $request, PaymentServiceInterface $psi, StopEarlyBirdOP $stop_early_bird){\n $responseData= array();\n\t$user = Auth::user();\n $order = Sale::find($request->order_id);\n\n //If job has free place for buyer make it hot\n $job = $order->job()->first();\n if($job->status == 'working'){\n $job->make_hot();\n }\n\n $seller = $job->employee()->get()->first();\n\n // Delete Stripe Customer if user signed on\n // while an employee was active\n //\n // (Not completely correct)\n // \t- what about cases where employee leaves?\n // \t- or when there was no employee\n //\n if ($job->employee_id) {\n\n // get user who is closing order\n // and managed account\n //$user = DB::table('users')->where('id', $order->buyer_id)->first();\n $seller_record = DB::table('stripe_managed_accounts')->where('user_id', $job->employee_id)->first();\n\n\n\t // Cancel subscription\n\t // \tMust be subscribed if sale in progress and job is working\n\t //\n\t if ($order->status == 'in_progress' && $job->status == 'working') {\n\t\t $plan = $psi->retrievePlan($job, $seller_record->id);\n\t\t $customer = $psi->retrieveCustomerFromUser($user, $job, $seller_record->id);\n\t\t $subscription_response = $psi->cancelSubscription($plan, $customer, $seller_record->id);\n\t }\n\t else {\n\n\t\t // Check for and delete early bird buyer\n\t\t //\n\t\t $early_bird_buyer = $user->early_bird_buyers()->where('sale_id', $order->id)\n\t\t\t ->where('job_id', $job->id)->where('status', 'working')->first();\n\n\t\t if ($early_bird_buyer) {\n\n\t\t\t // stop early bird\n\t\t\t $stop_early_bird->go($job, $early_bird_buyer);\n\t\t }\n\t }\n\n // Delete payment service records\n $response = $psi->deleteCustomer($user, $job, $seller_record->id);\n\n //mail to seller\n Mail::send('emails.buyer_leaving_job', ['buyer' => $user, 'job' => $job], function($u)\n {\n $u->from('[email protected]');\n $u->to('[email protected]');\n $u->subject('Buyer leaving the job.');\n });\n\n //mail to admin\n Mail::send('emails.buyer_leaving_job', ['buyer' => $user, 'job' => $job], function($u) use ($seller)\n {\n $u->from('[email protected]');\n $u->to($seller->email);\n $u->subject('Buyer leaving the job.');\n });\n }\n\n $order->status = 'closed';\n $order->save();\n\n $responseData['error'] = false;\n $responseData['status'] = 0;\n $responseData['info'] = 'Order successfully closed';\n\n return response($responseData, 200);\n\n }", "function _close() {}", "function close()\r\n\t{\r\n\t\tunset($this->urlprefix);\r\n\t\tunset($this->xml_parser);\r\n\t}", "public function api_close($connection) {\n\n }", "public function close()\n {\n $this->_c->close();\n }", "public function cleanup(): IRequest;", "public function closejobAction()\n {\n \n $job_id=$this->_request->getParam('job_id');\n $this->jobs->close_job($job_id);\n $this->_helper->redirector->gotoUrl($_SERVER['HTTP_REFERER']);\n }", "public static function close()\n {\n\n echo \"<input type=\\\"hidden\\\" name=\\\"csrf\\\" value=\\\"\" . \\Jet\\App\\Engine\\Tools\\Utils::generateToken() . \"\\\">\";\n\n if (self::$name) {\n\n echo \"<input type=\\\"hidden\\\" name=\\\"\" . self::$name . \"\\\" value=\\\"\" . self::$check . \"\\\">\";\n }\n\n echo \"<input type=\\\"hidden\\\" name=\\\"check\\\" value=\\\"\" . self::$check . \"\\\">\";\n\n echo \"</form>\";\n\n self::$check = null;\n self::$name = null;\n }", "public function close() {\n if ($this->opened) {\n if ($this->shouldRegenerateId()) {\n $this->regenerateId();\n }\n\n $this->updateLastTrace();\n $this->save();\n\n $this->values = array();\n $this->opened = false;\n }\n }", "public function close(): void;", "public function close(): void;", "public function close(): void;", "protected function closeConection()\n {\n $this->db->close();\n unset($this->db);\n unset($this->satz);\n }", "function __destruct()\n\t{\n\t\t$this->Pre_GastosModel->close();\n\t}", "public function close(){\n \n if(isset($this->conexion))//Compruebo que haya alguna conexion\n { \n mysqli_close($this->conexion) or die (msql_error());//Si la hay, la cierro\n }\n }", "public function close() {\n check_access($this->session->userdata('role_id'),3);\n \n $data = array();\n $post_data['day_id'] = $this->session->userdata('day_id');\n $post_data['day_close_amount'] = (double)str_replace(\",\",\"\",$this->input->post('closing_cash'));\n $post_data['day_closedate'] = date('Y-m-d');\n $post_data['day_status'] = 'closed';\n $where = array('day_id' => $this->session->userdata('day_id'));\n if ($this->common->update('dayopenclose', $post_data, $where)) {\n $day = array( 'day_id' => '','day_status' => 'closed' );\n $this->session->set_userdata($day);\n redirect(base_url().'admin/day/listing');\n }\n }", "public function __destruct()\n {\n unset($this->newRequest);\n }", "public function __destruct()\n {\n unset($this->newRequest);\n }", "function __destruct(){ $this->close(); }", "public function dispatchLoopShutdown()\n {\n if(!FrontController::getInstance()->getRequest()->isXmlHttpRequest()){\n //limpio la informacion anterior y guardo la nueva\n $this->limpiarHistorial()\n ->guardarVista();\n }\n }", "public function close()\n {\n unset($this->responses);\n }", "public function complete($request);", "public function __destruct() {\n $this->close();\n }", "public function closeConfirmingDeletion()\n {\n $this->confirmingExpenseDeletion = false;\n }", "function __destruct(){\n try{\n $this->__send_response();\n } catch (\\Exception $e) {\n error_log($e->getCode() . \": \" . $e->getMessage());\n error_log(implode(\"\\n\", $e->getTrace()));\n }\n }", "public function __destruct() {\n\n \t$this->close();\n\n }" ]
[ "0.60128945", "0.5915525", "0.5848793", "0.58338434", "0.58338434", "0.58338434", "0.5831866", "0.58009416", "0.580036", "0.5782511", "0.5753405", "0.57518834", "0.56830794", "0.56599176", "0.56470925", "0.56470925", "0.56470925", "0.56470925", "0.56470925", "0.56470925", "0.56470925", "0.56470925", "0.56470925", "0.56144506", "0.56036115", "0.5579637", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576566", "0.5576042", "0.55724657", "0.55449706", "0.5540215", "0.55396914", "0.55032927", "0.54871154", "0.5466804", "0.5462227", "0.54610306", "0.545499", "0.5449264", "0.54459435", "0.54408973", "0.5422211", "0.5422211", "0.5419698", "0.5412161", "0.53844666", "0.53599226", "0.53438234", "0.53414524", "0.53404087", "0.53214276", "0.53011245", "0.52750766", "0.527195", "0.5261864", "0.52611905", "0.52584064", "0.5239651", "0.5224656", "0.52236634", "0.5207823", "0.52075976", "0.5205697", "0.5188596", "0.5188596", "0.5188596", "0.51624024", "0.5153843", "0.51454246", "0.5144166", "0.5141668", "0.5141668", "0.5129906", "0.51266295", "0.51205003", "0.51199424", "0.51061225", "0.5103543", "0.5102985", "0.5100834" ]
0.0
-1
withdrawal_request close 21_12_2020 27_2_2021
function user_baggage_transfer() { require_once("config.php"); $input = @file_get_contents("php://input"); //$event_json = json_decode($input,true); $event_json = json_decode($input,true); if(!isset($event_json['fb_id']) || $event_json['fb_id']=="") { $msg_out="Validation Error fb_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['gift_id']) || $event_json['gift_id']=="") { $msg_out="Validation Error gift_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['gift_qty']) || $event_json['gift_qty']=="") { $msg_out="Validation Error gift_qty Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['send_to_fb_id']) || $event_json['send_to_fb_id']=="") { $msg_out="Validation Error send_to_fb_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['ub_type_id']) || $event_json['ub_type_id']=="") { $msg_out="Validation Error ub_type_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['ub_type']) || $event_json['ub_type']=="") { $msg_out="Validation Error ub_type Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $gift=get_gift($event_json['gift_id'] ); if($gift){ //$value['ubh_gift_icon']=$gift['gift_icon']; //$value['ubh_gift_animation_icon']=$gift['gift_animation_icon']; } else{ $msg_out="Gift Missing In Our record"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $ubh_sender_fb_id=$event_json['fb_id']; $ubh_fb_id=$event_json['send_to_fb_id']; $gift_qty=$event_json['gift_qty']; $ubh_type_id=$event_json['ub_type_id']; $ubh_type=$event_json['ub_type']; $giftid=$ubh_gift_id=$gift['gift_id']; $ubh_gift_title=$gift['gift_title']; $ubh_gift_coin_type=$gift['gift_coin_type']; if($ubh_gift_coin_type=="Silver"){ $sender_remain_total_slivercoin_data=get_user_silvercoin_byfb_id($ubh_sender_fb_id); $ubh_gift_coin =$gift['gift_diamond']; if($sender_remain_total_slivercoin_data < $ubh_gift_coin) { $msg_out="You have not sufficient Sliver Coin In Your wallet"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $ubh_gift_total_coin =$gift_qty*$ubh_gift_coin; } //check baggar gift if($ubh_gift_coin_type=="Diamond"){ $qrry_get_ub_gift=" SELECT *,(SELECT sum(ub_gift_remain_qty) as total_gift FROM `user_baggage` where ub_fb_id=$ubh_sender_fb_id and ub_gift_id =$giftid) as total_gift FROM `user_baggage` where ub_fb_id=$ubh_sender_fb_id and ub_gift_id =$giftid and ub_gift_remain_qty!=0 "; $user_baggage_res=mysqli_query($conn,$qrry_get_ub_gift); $user_baggage_data=mysqli_fetch_assoc($user_baggage_res); if($user_baggage_data){ if($user_baggage_data['total_gift']!=0){ if($user_baggage_data['total_gift'] < $gift_qty) { $msg_out="You have not sufficient gift quntity in baggage "; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); }else{ //ub_last_up_date $ub_id=$user_baggage_data['ub_id']; $UPDATE_user_bag="update user_baggage set ub_gift_remain_qty=ub_gift_remain_qty-".$gift_qty." WHERE ub_fb_id='".$ubh_sender_fb_id."' and ub_id=$ub_id"; $res=mysqli_query($conn,$UPDATE_user_bag); //echo " ok here"; //die; } }else{ echo 'come hrer'; die; } }else{ //e $msg_out="This gift not in your baggage"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $ubh_gift_coin =$gift['gift_diamond']; $ubh_gift_total_coin =0; } $DATE_TIME=custom_current_date_time(); $qrry_get='INSERT INTO `user_baggage_history1`( `ubh_fb_id`, `ubh_gift_id`, `ubh_gift_title`, `ubh_gift_diamond`, `ubh_gift_qty`, `ubh_gift_total_diamond`, `ubh_sender_fb_id`, `ubh_cr_date`,`ubh_type_id`,`ubh_type`) VALUES ("'.$ubh_fb_id.'","'.$ubh_gift_id.'","'.$ubh_gift_title.'","'.$ubh_gift_coin.'","'.$gift_qty.'","'.$ubh_gift_total_coin.'","'.$ubh_sender_fb_id.'","'.$DATE_TIME.'","'.$ubh_type_id.'","'.$ubh_type.'")'; $res=mysqli_query($conn,$qrry_get)or die(mysqli_error($conn)); $last_insertid = mysqli_insert_id($conn); if($last_insertid){ $msg_out="Send Gift To User Baggage Successfully"; if($ubh_gift_coin_type=="Silver"){ $d=UPDATE_remove_silvercoin_user($ubh_sender_fb_id , $ubh_gift_total_coin); } $sender_remain_total_slivercoin_data=get_user_silvercoin_byfb_id($ubh_sender_fb_id); $output=array( "code" => "200", "msg" => $msg_out ,"data" => $res , "sender_remain_slivercoin" =>$sender_remain_total_slivercoin_data ); }else{ $msg_out="Error In Send Gift To Baggage"; $output=array( "code" => "500", "msg" => $msg_out ); } print_r(json_encode($output, true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function WithdrawConfirm(Request $request)\n {\n $user_balance = Auth::user()->balance;\n $user_balance -=$request->requested_amount;\n User::where('id', Auth::id())->update(['balance' => $user_balance]);\n\n $withdrawRequest = new WithdrawRequest();\n $withdrawRequest->withdraw_method_id = $request->withdraw_method_id;\n $withdrawRequest->user_id = Auth::user()->id;\n $withdrawRequest->payment_details = $request->details;\n $withdrawRequest->payable_amount = $request->requested_amount;\n\n $withdrawRequest->save();\n\n $tr = new Transition;\n $tr->uid = Auth::user()->id;\n $tr->reason = \"Withdrawal\";\n $tr->transition = \"-\".$request->requested_amount;\n $tr->save();\n //redirect\n Session()->flash('success', 'withdraw request submitted!');\n return redirect()->route('user.withdraw');\n\n }", "public function submit_withdrawal(WithdrawalRequest $request) {\n $user = User::where('id', Auth::id())->first();\n $min = Config::get('minimum_withdrawal', 100);\n $txnId = 'DEB/'. date('ymd') . '/' .Str::upper(Str::random(10));\n $request['txnId'] = $txnId;\n\n // Confirm minimum withdrawal\n if ($request->amount < $min) {\n return redirect()->back()->with('fail', \"minimum withdrawal must be equivalent of $$min\");\n }\n\n // Check account balance\n if ($user->balance < $request->amount) {\n return redirect()->back()->with('fail', 'insufficient account balance');\n }\n\n // Withdrawl from user's account\n $user->balance -= $request->amount;\n\n // Transaction Details\n $transactionData['account_name'] = $request->account_name;\n $transactionData['account_number'] = $request->account_number;\n $transactionData['txnId'] = $txnId;\n $transactionData['type'] = 'Debit';\n $transactionData['amount'] = $request->amount;\n $transactionData['currency'] = $request->currency;\n\n // Run transactions\n DB::transaction(function () use ($user, $request, $transactionData) {\n $user->withdrawals()->create($request->all());\n $user->transactions()->create($transactionData);\n $user->save();\n });\n\n // redirect with success message\n return redirect()->route('user.dashboard')->with('success', 'Withdrawal successful, waiting approval');\n }", "public function request_withdrawal() {\n $data['title'] = 'Request Withdrawal';\n return view('user-dashboard.request-withdrawal', $data);\n }", "public function userStoreWithdrawal(Request $request)\n {\n // return dd($request);\n $user = User::whereId(auth()->user()->id)->firstOrFail();\n if (!isset($user->withdrawalBank->bank_code) || !isset($user->withdrawalBank->account_name) || !isset($user->withdrawalBank->account_number)) {\n $response['status'] = \"info\";\n $response['message'] = \"Your Withdrawal bank details is not setup, visit your profile to update it.\";\n return redirect()->route('dashboard')->with($response['status'], $response['message']);\n }\n\n $minAmount = 100;\n $maxAmount = $user->available_balance;\n if ($user->available_balance < 100) {\n $response['status'] = \"info\";\n $response['message'] = \"You do not have suffient available balance to withdraw.\";\n return redirect()->route('dashboard')->with($response['status'], $response['message']);\n }\n $this->validate($request, [\n 'amount' => \"required|integer|min:50\",\n ]);\n if ($user->available_balance < $request->amount) {\n $response['status'] = \"info\";\n $response['message'] = \"You do not have suffient available balance for the amount you selected. Please select an amount within your available balance\";\n return redirect()->route('dashboard')->with($response['status'], $response['message']);\n }\n $userBank = $user->withdrawalBank;\n Withdrawal::create([\n 'user_id' => $user->id,\n 'amount' => $request->amount,\n 'status' => 'pending',\n 'completed_at' => null,\n 'bank_code' => $userBank->bank_code,\n 'account_name' => $userBank->account_name,\n 'account_number' => $userBank->account_number,\n ]);\n $user->available_balance -= $request->amount;\n $user->update();\n $response['status'] = \"success\";\n $response['message'] = \"Your Withdrawal of #{$request->amount} has been placed.\";\n return redirect()->route('withdrawal_history')->with($response['status'], $response['message']);\n }", "public function deposit_request($status = 'pending', $id = '', $action = ''){\n if($id == ''){\n $deposit_requests = WireDepositRequest::where('status',$status)->get();\n return view('backend.deposit.deposit_request_list',compact('deposit_requests'));\n }else{\n $deposit_request = WireDepositRequest::where('id',$id)\n ->where('status','pending')\n ->first();\n if( $deposit_request ){\n if($action == 'approve'){\n\t DB::beginTransaction();\n\n\t\t\t $deposit = new Deposit();\n\t\t\t\t $deposit->method = 'wire_transfer';\n\t\t\t\t $deposit->type = 'deposit';\n\t\t\t\t\t$deposit->amount = $deposit_request->amount;\n\t\t\t\t\t$deposit->account_id = $deposit_request->credit_account;\n\t\t\t\t\t$deposit->note = _lang('Deposit Via Wire Transfer');\n\t\t\t\t\t$deposit->status = 1;\n\t\t\t\t\t$deposit->user_id = $deposit_request->user_id;\n\t\t\t\t\n\t\t\t $deposit->save();\n\t\t\t\t\t\n\t\t\t\t\t//Create Transaction\n\t\t\t\t\t$transaction = new Transaction();\n\t\t\t\t $transaction->user_id = $deposit->user_id;\n\t\t\t\t\t$transaction->amount = $deposit->amount;\n\t\t\t\t\t$transaction->account_id = $deposit->account_id;\n\t\t\t\t\t$transaction->dr_cr = 'cr';\n\t\t\t\t\t$transaction->type = $deposit->type;\n\t\t\t\t\t$transaction->status = 'complete';\n\t\t\t\t\t$transaction->note = $deposit->note;\n\t\t\t\t\t$transaction->ref_id = $deposit->id;\n\t\t\t\t\t$transaction->created_by = $deposit->user_id;\n\t\t\t\t\t$transaction->updated_by = $deposit->user_id;\n\t\t\t\t\n\t\t\t $transaction->save();\n\n\t\t\t $deposit_request->status = 'approve';\n\t\t\t $deposit_request->save();\n\t\t\t\t\t\n\t\t\t\t\t//Send Message Notification\n\t\t\t\t\t/*$message_object = new \\stdClass();\n\t\t\t\t\t$message_object->first_name = $transaction->user->first_name;\n\t\t\t\t\t$message_object->last_name = $transaction->user->last_name;\n\t\t\t\t\t$message_object->account = $transaction->account->account_number;\n\t\t\t\t\t$message_object->currency = $transaction->account->account_type->currency->name;\n\t\t\t\t\t$message_object->amount = $transaction->amount;\n\t\t\t\t\t$message_object->date = $transaction->created_at->toDateTimeString();\n\t\t\t\t\t\n\t\t\t\t\tsend_message($deposit->user_id, get_option('deposit_subject'), get_option('deposit_message'), $message_object);\n\t\t\t\t\t*/\n\t\t\t\t\t\n\t\t\t\t\t//Registering Event\n\t\t\t\t\tevent(new \\App\\Events\\DepositMoney($transaction));\n\t\t\t\t\t\n\t\t\t\t\tDB::commit();\n\t\t\t\t\treturn back()->with('success',_lang('Deposit Approved Sucessfully'));\n\t\t\t\t}else{\n \t\t\t\t\t$deposit_request->status = 'reject';\n\t\t\t $deposit_request->save();\n\t\t\t return back()->with('success',_lang('Deposit Rejected Sucessfully'));\n\t\t\t\t}\n\t\t\t\t\n } \n }\n }", "function create_user_withdrawal_request()\n\t{ \n\t\trequire_once(\"config.php\");\n $input = @file_get_contents(\"php://input\");\n\t //$event_json = json_decode($input,true);\n\t\t$event_json = json_decode($input,true);\n\n\t \tif(!isset($event_json['fb_id']) || $event_json['fb_id']==\"\") \n\t\t\t{ \n\t\t\t\t$msg_out=\"Validation Error fb_id Missing\";\n\t\t\t $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t\tprint_r(json_encode($output, true)); \n\t\t\t\texit();\n\t\t\t}\n\t\t\tif(!isset($event_json['uwr_amount']) || $event_json['uwr_amount']==\"\") \n\t\t\t{\n\t\t\t\t$msg_out=\"Validation Error uwr_amount Missing\";\n\t\t\t $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t\tprint_r(json_encode($output, true)); \n\t\t\t\texit();\n\t\t\t}\n\t\t\tif(!isset($event_json['uwr_coin']) || $event_json['uwr_coin']==\"\") \n\t\t\t{\n\t\t\t\t$msg_out=\"Validation Error uwr_coin Missing\";\n\t\t\t $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t\tprint_r(json_encode($output, true)); \n\t\t\t\texit();\n\t\t\t}\n\t\t\tif(!isset($event_json['uwr_payment_method']) || $event_json['uwr_payment_method']==\"\") \n\t\t\t{\n\t\t\t\t$msg_out=\"Validation Error uwr_payment_method Missing\";\n\t\t\t $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t\tprint_r(json_encode($output, true)); \n\t\t\t\texit();\n\t\t\t}\n\t\t\n\t\t\t$uwr_payment_method=$event_json['uwr_payment_method'];\n\n\t \t//'Bank Transfer'\n\t\t\t$uwr_bank_name=\"\";\n\t\t\t$uwr_account_type=\"\";\n\t\t $uwr_account_number=\"\";\n\t\t $uwr_ifsc=\"\";\n\t\n\t\tif($uwr_payment_method==\"Bank Transfer\")\n\t\t{\n\t\t\t\tif(!isset($event_json['uwr_bank_name']) || $event_json['uwr_bank_name']==\"\") \n\t\t\t{\n\t\t\t\t$msg_out=\"Validation Error uwr_bank_name Missing\";\n\t\t\t $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t\tprint_r(json_encode($output, true)); \n\t\t\t\texit();\n\t\t\t}\n\t\t\t\tif(!isset($event_json['uwr_account_type']) || $event_json['uwr_account_type']==\"\") \n\t\t\t{\n\t\t\t\t$msg_out=\"Validation Error uwr_account_type Missing\";\n\t\t\t $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t\tprint_r(json_encode($output, true)); \n\t\t\t\texit();\n\t\t\t}\n\t\t\tif(!isset($event_json['uwr_account_number']) || $event_json['uwr_account_number']==\"\") \n\t\t\t{\n\t\t\t\t$msg_out=\"Validation Error uwr_account_number Missing\";\n\t\t\t $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t\tprint_r(json_encode($output, true)); \n\t\t\t\texit();\n\t\t\t}\n\t\t\n\t\t\tif(!isset($event_json['uwr_ifsc']) || $event_json['uwr_ifsc']==\"\") \n\t\t\t{\n\t\t\t\t$msg_out=\"Validation Error uwr_ifsc Missing\";\n\t\t\t $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t\tprint_r(json_encode($output, true)); \n\t\t\t\texit();\n\t\t\t}\n\n \t\t$uwr_bank_name=$event_json['uwr_bank_name'];\n\t\t\t$uwr_account_type=$event_json['uwr_account_type'];\n\t\t $uwr_account_number=$event_json['uwr_account_number'];\n\t\t $uwr_ifsc=$event_json['uwr_ifsc'];\n\t }\n\n\t\t//other\n\t\t$uwr_other =\"\";\n\t \n\t\tif($uwr_payment_method!=\"Bank Transfer\")\n\t\t{\n\n\t\t if(!isset($event_json['uwr_other']) || $event_json['uwr_other']==\"\") \n\t\t\t{\n\t\t\t\t$msg_out=\"Validation Error uwr_other Missing\";\n\t\t\t $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t\tprint_r(json_encode($output, true)); \n\t\t\t\texit();\n\t\t\t}\n\t\n\t\t$uwr_other =$event_json['uwr_other'];\n\t }\n\n\n\n\t\t\t//\n\t\t \tif(!isset($event_json['uwr_name']) || $event_json['uwr_name']==\"\") \n\t\t\t{\n\t\t\t\t$msg_out=\"Validation Error uwr_name Missing\";\n\t\t\t $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t\tprint_r(json_encode($output, true)); \n\t\t\t\texit();\n\t\t\t}\n\t\t\t\n\t\t\tif(!isset($event_json['uwr_contact']) || $event_json['uwr_contact']==\"\") \n\t\t\t{\n\t\t\t\t$msg_out=\"Validation Error uwr_contact Missing\";\n\t\t\t $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t\tprint_r(json_encode($output, true)); \n\t\t\t\texit();\n\t\t\t}\n\t\t\t\n\t\t\tif(!isset($event_json['uwr_email']) || $event_json['uwr_email']==\"\") \n\t\t\t{\n\t\t\t\t$msg_out=\"Validation Error uwr_email Missing\";\n\t\t\t $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t\tprint_r(json_encode($output, true)); \n\t\t\t\texit();\n\t\t\t}\n\t\t\t\n\t\t\t$uwr_coin=$event_json['uwr_coin'];\n\t\t\t$uwr_amount=$event_json['uwr_amount'];\n\t\t\t\n\t\t\t$uwr_fb_id=$event_json['fb_id'];\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t \n\t $uwr_name=$event_json['uwr_name'];\n\t $uwr_contact=$event_json['uwr_contact'];\n\t $uwr_email=$event_json['uwr_email'];\n\n\t $DATE_TIME=custom_current_date_time();\n\t $qrry_get='INSERT INTO `user_withdrawal_request` (`uwr_fb_id`, `uwr_amount`, `uwr_coin`, `uwr_request_cr_date`,`uwr_bank_name`,`uwr_account_number`, `uwr_ifsc`, `uwr_account_type`, `uwr_other`, `uwr_payment_method`,`uwr_name`, `uwr_contact`, `uwr_email`) VALUES (\"'.$uwr_fb_id.'\",\"'.$uwr_amount.'\",\"'.$uwr_coin.'\",\"'.$DATE_TIME.'\",\"'.$uwr_bank_name.'\",\"'.$uwr_account_number.'\",\"'.$uwr_ifsc.'\",\"'.$uwr_account_type.'\",\"'.$uwr_other.'\",\"'.$uwr_payment_method.'\",\"'.$uwr_name.'\",\"'.$uwr_contact.'\",\"'.$uwr_email.'\")';\n\t\t\t \n\t\t\t $res=mysqli_query($conn,$qrry_get)or die(mysqli_error($conn));\n \t\t \t $lastid=mysqli_insert_id($conn);\n\t\t\tif($lastid)\n\t\t\t{\n\t\t\t $last_data =mysqli_fetch_assoc(mysqli_query($conn,\"select * from user_withdrawal_request WHERE uwr_id = '$lastid' \"));\n\t\t\t \n\t\t\t//update beans\n $UPDATE_beans_user=\"update users set total_beans=total_beans-\".$uwr_coin.\" WHERE fb_id=\".$uwr_fb_id;\n mysqli_query($conn,$UPDATE_beans_user);\n \n\t\t\t $msg_out=\"Withdrawal Request Create Successfully\";\t\n\t\t\t\t$output=array( \"code\" => \"200\", \"msg\" => $msg_out ,\"data\" => $last_data);\n\t\t\t}else{\n\t\t\t\t$msg_out=\"Error In Withdrawal Request\";\n\t\t\t $output=array( \"code\" => \"500\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t}\n\t\t\tprint_r(json_encode($output, true));\n }", "public function withdrawRequestProcess($balanceType, $requestAmount, $account)\n{\n\t// return $balanceType;\n\t$availableBalance = Account::where('user_id', Auth::id())->first();\n\t$wbBalance = $availableBalance->balance - ( $requestAmount * .05 ); // Balance after deduct charge 5% of withdrawal request amount\n\t$roiBalance = $availableBalance->roi_balance - ( $requestAmount * .05 );\n\t$deductBalance = ( $requestAmount + $requestAmount * .05 );\n\n\t\t\n\n\n\t\tif( $balanceType == 1 )\n\t\t{\n\t\t\tif( $requestAmount > $wbBalance )\n\t\t\t\t{\n\t\t\t\t\treturn redirect()->back()->with('message', 'Insufficient Balance');\n\t\t\t\t}\n\t\t\telse{\n\n\t\t\t\t$tnx_id = 'wwr_'.rand(1,99999999);\n\t\t\t\tWithdrawal::insert([\n\t\t\t\t\t'amount' \t\t=> $requestAmount,\n\t\t\t\t\t'wdrl_chrg'\t\t=> ($requestAmount * .05),\n\t\t\t\t\t'amount_type' \t=> $balanceType,\n\t\t\t\t\t'request_date'\t=> Carbon::now(),\n\t\t\t\t\t'user_id'\t\t=> Auth::id(),\n\t\t\t\t\t'withdraw_to' => $account,\n\t\t\t\t\t'tnx_id'\t\t=> $tnx_id\n\t\t\t\t\t]);\n\n\t\t\t\t Account::where('user_id', Auth::id())\n\t\t\t\t ->decrement('balance', $deductBalance);\n\n\t\t\t\t Transaction::insert(\n\t\t\t\t\t[\n\t\t\t\t\t'tnx_id' => $tnx_id,\n\t\t\t\t\t'amount' => $requestAmount+($requestAmount*.05),\n\t\t\t\t\t'sign' => '-',\n\t\t\t\t\t'purpose' => 2,\n\t\t\t\t\t// 'proce_fee'=> ($requestAmount*.05),\n\t\t\t\t\t'date' => Carbon::now(), \n\t\t\t\t\t'user_id' => Auth::user()->id,\n\t\t\t\t\t// 'related_id' =>22\n\t\t\t\t\t]);\t\n\n\t\t\t\t\treturn redirect()->back()->with('smessage', 'Your withdrawal request submitted. Please allow us 24 hours to process your request.');\t\t\n\t\t\t};\n\t\t}\n\t\telse\n\t\t{\t\n\n\t\t\tif( $requestAmount > $roiBalance )\n\t\t\t\t{\n\t\t\t\t\treturn redirect()->back()->with('message', 'Insufficient balance.');\n\n\t\t\t\t}\n\t\t\telse{\n\n\t\t\t\t$tnx_id = 'rwr_'.rand(1,99999999);\n\n\t\t\t\tWithdrawal::insert([\n\t\t\t\t\t'amount' \t\t=> $requestAmount,\n\t\t\t\t\t'wdrl_chrg'\t\t=> ($requestAmount * .05),\n\t\t\t\t\t'amount_type' \t=> $balanceType,\n\t\t\t\t\t'request_date'\t=> Carbon::now(),\n\t\t\t\t\t// 'response_date' => 0\n\t\t\t\t\t'user_id'\t\t=> Auth::id(),\n\t\t\t\t\t// 'status'\t\t=> 0\n\t\t\t\t\t'withdraw_to' => $account,\n\t\t\t\t\t'tnx_id'\t\t=> $tnx_id\n\t\t\t\t\t]);\n\n\t\t\t\t Account::where('user_id', Auth::id())\n\t\t\t\t ->decrement('roi_balance', $deductBalance);\n\n\t\t\t\t Transaction::insert(\n\t\t\t\t\t[\n\t\t\t\t\t'tnx_id' => $tnx_id,\n\t\t\t\t\t'amount' => $requestAmount+($requestAmount * .05),\n\t\t\t\t\t'sign' => '-',\n\t\t\t\t\t'purpose' => 15,\n\t\t\t\t\t// 'proce_fee'=> ($requestAmount*.05),\n\t\t\t\t\t'date' => Carbon::now(), \n\t\t\t\t\t'user_id' => Auth::user()->id,\n\t\t\t\t\t// 'related_id' =>22\n\t\t\t\t\t]);\n\n\t\t\t\t\treturn redirect()->back()->with('smessage', 'Your withdrawal request submitted. Please allow us 24 hours to process your request.');\t\t\t\t \n\t\t\t\t\t\n\t\t\t};\n\n\t\t}\n\n\n\n}", "function withdrawMoneyRequest($userData)\n\t\t{\n\t\t\t//checking for int value of amount\n\t\t\tif(is_numeric($userData['amount']))\n\t\t\t{\n\t\t\t\t//checking user net amount\n\t\t\t\t$userMoney = $this->getUserAmountDetails($_SESSION['user_id']);\n\t\t\t\tif($userData['amount'] <= $userMoney[2])\n\t\t\t\t{\n\t\t\t\t\t//creating withdraw id\n\t\t\t\t\t$withdraw_id = uniqid('wit');\n\t\t\t\t\t//getting user money balance\n\t\t\t\t\t$user_account = $this->manageContent->getLastValue('user_money_info', '*', 'user_id', $_SESSION['user_id'], 'id');\n\t\t\t\t\t$new_total_money = $user_account[0]['total_amount'] - $userData['amount'];\n\t\t\t\t\t$column_name = array('specification','user_id','date','debit_amount','total_amount','status');\n\t\t\t\t\t$column_value = array($withdraw_id,$_SESSION['user_id'],date('Y-m-d h:m:s a'),$userData['amount'],$new_total_money,'Processing');\n\t\t\t\t\t$insert = $this->manageContent->insertValue('user_money_info', $column_name, $column_value);\n\t\t\t\t\tif($insert != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn array(1,'Your Request Send Successfully');\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\treturn array(0,'Request Sending Failed');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn array(0,'You Have Not Sufficient Balance');\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn array(0,'Please Enter Only Amount');\n\t\t\t}\n\t\t}", "function _commerce_oz_eway_3p_close_transaction($transaction, $request_map, $response_map) {\n $transaction->instance_id = 'commerce_commweb|commerce_payment_commerce_commweb';\n \t$transaction->amount = $response_map['ewayResultReturnAmount'];\n $transaction->currency_code = 'AUD';\n $transaction->payload = array('request' => $request_map, 'response' => $response_map);\n \n $transaction->remote_id = $response_map['ewayResultTrxnNumber']; \n $transaction->remote_status = ($response_map['ewayResultTrxnStatus'] == 'True'); \n \n $transaction->status = $transaction->remote_status ? COMMERCE_PAYMENT_STATUS_SUCCESS : COMMERCE_PAYMENT_STATUS_FAILURE;\n \n $transaction->message = t('<strong>Purchase</strong> Code: @code - @message'); \n \n $trans_message = $response_map['ewayResultTrxnError'];\n \n if($transaction->remote_status != 1)\n {\n \t$trans_message .= ' - Failed Card: ' . ': ' ; //. $request_map['vpc_CardNum'];\n } \n \n $transaction->message_variables = array(\n \t'@code' => $response_map['ewayResultTrxnNumber'],\n \t'@message' => $trans_message,\n \t\t);\n \t\t\n // Save the transaction information.\n commerce_payment_transaction_save($transaction);\t\t\n \t\t\n return $response_map;\t\t\t\n}", "public function getPendingOpenBalance()\n {\n return $this->pending_open_balance;\n }", "public function request_withdraw($id,$pass){\n $query=$this->db->where('01_id',$id)\n ->where('01_password',$pass)\n ->where('01_role',3)\n\t\t\t\t\t ->get('register_01');\n\t\tif($query->num_rows()==1){\n\t\t $amount = $this->db->select('09_balance')->where('01_id', $id)->order_by('09_date', 'DESC')->limit(1)->get('wallet_09');\n $balance = $amount->row_array();\n $bal = $balance['09_balance'];\n $withdraw = array(\n '01_id' =>$id,\n '09_date' =>date('Y-m-d H:i:s'),\n '09_description'=>'Withdrawal Raised',\n '09_withdraw' =>$bal,\n '09_balance' =>0.000,\n '09_type'=>3,\n '09_effective_balance'=>-$bal,\n );\n $with_req = $this->db->insert('wallet_09',$withdraw);\n if($with_req){\n return true;\n }else{\n return false;\n }\n\t\t}\n\t\telse{\n\t\t return false;\n\t\t}\n }", "public function mycollectedCash(Request $request)\n {\n \n\n $currentdtaetime=date(\"Y-m-d H:i:s\", strtotime(\"+30 minutes\"));\n \n $noofinitorder = Ordercollection::select()->whereDate('finalorderdeliverydt',date(\"Y-m-d\"))->where('sossoid',$request->user()->id)\n ->where('okupdate','1')->where('paidamount','!=','0')->get();\n if(count($noofinitorder) > 0){\n return response()->json($noofinitorder, 200);\n }else{\n return response()->json([\n 'response' => 'error',\n 'message' => 'Problem in data'\n ], 400); \n }\n \n \n }", "function sendwithdrawreqAction() {\n /**\n * check whether customer logged in or not\n */\n if (! $this->_getSession ()->isLoggedIn ()) {\n /**\n * add error message\n */\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( 'You must have a Seller Account to access this page' ) );\n $this->_redirect ( 'marketplace/seller/login' );\n return;\n }\n /**\n * Get message\n *\n * @var string\n */\n $message = $this->getRequest ()->getParam ( 'req_message' );\n /**\n * Get Pending Amount\n *\n * @var Apptha_Marketplace_OrderController $pendingAmount\n */\n $pendingAmount = $this->getRequest ()->getParam ( 'pending-amount' );\n /**\n * Get Customer Data\n *\n * @var uobject\n */\n $customerData = Mage::getSingleton ( 'customer/session' )->getCustomer ();\n /**\n * Get customer Id\n *\n * @var unknown\n */\n $customerId = $customerData->getId ();\n /**\n * Sending email to admin to ask for pending amount\n */\n $adminEmailId = Mage::getStoreConfig ( 'marketplace/marketplace/admin_email_id' );\n /**\n * Get to mail id\n *\n * @var string\n */\n $toMailId = Mage::getStoreConfig ( \"trans_email/ident_$adminEmailId/email\" );\n /**\n * Get to name\n *\n * @var name\n */\n $toName = Mage::getStoreConfig ( \"trans_email/ident_$adminEmailId/name\" );\n $emailTemplate = Mage::getModel ( 'core/email_template' )->loadDefault ( 'marketplace_seller_withdraw_request_to_admin' );\n\n /**\n * Load customer details.\n */\n $customer = Mage::getModel ( 'customer/customer' )->load ( $customerId );\n $selleremail = $customer->getEmail ();\n /**\n * Get Recipient details\n *\n * @var unknown\n */\n $recipient = $toMailId;\n $sellername = $customer->getName ();\n $emailTemplate->setSenderName ( $sellername );\n $emailTemplate->setSenderEmail ( $selleremail );\n $emailTemplateVariables = (array (\n 'ownername' => $toName,\n 'sellername' => $sellername,\n 'requestmessage' => $message,\n 'pendingamt' => $pendingAmount\n ));\n $emailTemplate->setDesignConfig ( array (\n 'area' => 'frontend'\n ) );\n $emailTemplate->getProcessedTemplate ( $emailTemplateVariables );\n /**\n * Send email to admin.\n */\n $emailTemplate->send ( $recipient, $sellername, $emailTemplateVariables );\n /**\n * Success message after send email to admin.\n */\n Mage::getSingleton ( 'core/session' )->addSuccess ( $this->__ ( 'Request Sent to Admin Successfully.' ) );\n $this->_redirect ( 'marketplace/order/viewtransaction/' );\n return;\n }", "protected function creditClientWalletOnPendingRequest($request, $serviceRequest, $actionUrl){\n $creditWallet = new WalletTransaction;\n $creditWallet['user_id'] = $serviceRequest->client_id;\n $creditWallet['payment_id'] = $serviceRequest['payment']['id'];\n $creditWallet['amount'] = $serviceRequest['price']['amount'];\n $creditWallet['payment_type'] = 'refund';\n $creditWallet['unique_id'] = $serviceRequest['client']['client']['unique_id'];\n $creditWallet['transaction_type'] = 'credit';\n\n //Check if client has at least a record on the `wallet_transactions` table\n if (!WalletTransaction::where('unique_id', $serviceRequest['client']['client']['unique_id'])->exists()) {\n $creditWallet['opening_balance'] = 0;\n $creditWallet['closing_balance'] = (float)$serviceRequest['price']['amount'];\n }else{\n $previousWallet = WalletTransaction::where('user_id', $serviceRequest->client_id)->latest('created_at')->first();\n $creditWallet['opening_balance'] = (float)$previousWallet->closing_balance;\n $creditWallet['closing_balance'] = (float)$previousWallet->closing_balance + (float)$serviceRequest['price']['amount'];\n }\n\n // save record\n $creditWallet->save();\n\n if($creditWallet){\n if($request->user()->type->role->slug == 'client-user'){\n\n //Record service request progress of `Client cancelled job request`\n ServiceRequestProgress::storeProgress($serviceRequest->client_id, $serviceRequest->id, 3, SubStatus::where('uuid', '06dda2af-3831-41af-854d-595e4f6f6b77')->firstOrFail()->id);\n \n $this->log('Request', 'Informational', $actionUrl, $serviceRequest['client']['account']['first_name'].' '.$serviceRequest['client']['account']['last_name'].' cancelled '.$serviceRequest['unique_id'].' job and the wallet account is credited with ₦'. $serviceRequest['price']['amount'].' as refund on pending service request cancellation.');\n \n }else{\n //Record service request progress of `Admin cancelled job request`\n ServiceRequestProgress::storeProgress(1, $serviceRequest->id, 3, SubStatus::where('uuid', '8aebf411-23ba-4ad0-8890-0918ac239376')->firstOrFail()->id);\n \n $this->log('Request', 'Informational', $actionUrl, $request->user()->email.' credited '.$serviceRequest['client']['account']['first_name'].' '.$serviceRequest['client']['account']['last_name'].' wallet account with ₦'. $serviceRequest['price']['amount'].' as refund on pending service request cancellation.');\n }\n }\n \n }", "public function redeem_request_cancel(Request $request) {\n\n $validator = Validator::make($request->all() , [\n 'redeem_request_id' => 'required|exists:redeem_requests,id,user_id,'.$request->id,\n ]);\n\n if ($validator->fails()) {\n\n $error_messages = implode(',', $validator->messages()->all());\n\n $response_array = array('success' => false, 'error_code' => 101, 'error_messages'=>$error_messages);\n\n } else {\n\n if($redeem_details = Redeem::where('user_id' , $request->id)->first()) {\n\n if($redeem_request_details = RedeemRequest::find($request->redeem_request_id)) {\n\n // Check status to cancel the redeem request\n\n if(in_array($redeem_request_details->status, [REDEEM_REQUEST_SENT , REDEEM_REQUEST_PROCESSING])) {\n // Update the redeeem \n\n $redeem_details->remaining = $redeem_details->remaining + abs($redeem_request_details->request_amount);\n\n $redeem_details->save();\n\n // Update the redeeem request Status\n\n $redeem_request_details->status = REDEEM_REQUEST_CANCEL;\n\n $redeem_request_details->save();\n\n $response_array = ['success' => true];\n\n\n } else {\n $response_array = ['success' => false , 'error_messages' => Helper::error_message(160) , 'error_code' => 160];\n }\n\n } else {\n $response_array = ['success' => false , 'error_messages' => Helper::error_message(161) , 'error_code' => 161];\n }\n\n } else {\n\n $response_array = ['success' => false , 'error_messages' => Helper::error_message(161) , 'error_code' =>161 ];\n }\n\n }\n\n return response()->json($response_array , 200);\n\n }", "public function reservationCancel()\n\t{\n\t\t//echo \"<pre>\"; print_r(Input::all()); die;\n\t\t$reservationID = $this->request->input('reserv_id');\n\t\t$reservationType = $this->request->input('reserv_type');\n\t\t$user_id = $this->request->input('user_id');\n\t\t$added_by = $this->request->input('added_by');\n\t\t//echo \"reservationID == \".$reservationID.\" , reservationType == \".$reservationType; die;\n\t\t$arrResponse = ReservationModel::cancelReservation($reservationID, $reservationType);\n\t\t$userID = $user_id;\n\t\t$userData = Profile::getUserProfileWeb($userID);\n\t\t//print_r($userData);die;\n\n\t\t//for the new db structure support\n\t\t$newDb['attributes']['reservation_status_id'] = 3;\n\t\t$newDb['userdetails']['user_id'] = $userID;\n\t\t$newDb['userdetails']['status'] = 3;\n\t\t$newDb['attributes']['seating_status'] = 3;\n\t\t$newDb['attributes']['closed_on'] = Carbon::now()->toDateTimeString();\n\n\t\t//print_r($newDb);die;\n\t\t$reservDetails = new ReservDetailsModel();\n\t\t$newDbStatus = $reservDetails->updateAttributes($reservationID,$newDb);\n\t\t$tokens = $reservDetails->pushToRestaurant($reservationID);\n\t\t$this->restaurantapp->push($reservationID,$tokens,true);\n\t\t//print_r($newDbStatus);die;\n\t\t/*TODO: Add the status of success check and include added_by and transaction_id attributes */\n\t\t//die;\n\n\n\t\t$rewardsPoints = '';\n\t\t$type = '';\n\t\t$bookingsMade = '';\n\t\t$lastOrderId = '';\n\n\t\t$arrReservationDetails = DB::table('reservation_details')->where('id', $reservationID)\n\t\t\t->select('reservation_date','reservation_time','no_of_persons','product_vendor_location_id','vendor_location_id')\n\t\t\t->get();\n\n\t\t//echo \"<pre>\"; print_r($arrReservationDetails); //die;\n\n\t\tif($arrResponse['status']=='ok')\n\t\t{\n\n\t\t\tif($reservationType == \"experience\"){\n\n\t\t\t\t$zoho_data = array(\n\t\t\t\t\t'Loyalty_Points_Awarded'=>0,\n\t\t\t\t\t'Order_completed'=>(isset($added_by) && $added_by == 'user' ? 'User Cancelled' : 'Admin Cancelled'),\n\t\t\t\t);\n\t\t\t\t$res_data = $this->zoho_edit_booking('E'.sprintf(\"%06d\",$reservationID),$zoho_data);\n\n\t\t\t\t$setBookingKey = 'MERGE11';\n\t\t\t\t$setBookingsValue = $userData['data']['bookings_made'];\n\n\n\t\t\t\t$arrProductID = DB::table('product_vendor_locations')->where('id', $arrReservationDetails[0]->product_vendor_location_id)\n\t\t\t\t\t->select('product_id','vendor_location_id')\n\t\t\t\t\t->get();\n\n\t\t\t\t$productDetails = $this->experiencesRepository->getByExperienceId($arrProductID[0]->product_id);\n\n\t\t\t\t$outlet = $this->experiences_model->getOutlet($arrReservationDetails[0]->product_vendor_location_id);\n\n\t\t\t\t//$locationDetails = $this->experiences_model->getLocationDetails($arrReservationDetails[0]->product_vendor_location_id);\n\t\t\t\t//echo \"<br/>---- productdetails---<pre>\"; print_r($productDetails);\n\t\t\t\t//echo \"<br/>---- outlet---<pre>\"; print_r($outlet);\n\t\t\t\t$rewardsPoints = $productDetails['attributes']['reward_points_per_reservation'];\n\t\t\t\t$bookingsMade = $userData['data']['bookings_made'] - 1;\n\t\t\t\t$type = \"cancel\";\n\t\t\t\t$reservationType = \"experience\";\n\t\t\t\t$lastOrderId = $reservationID;\n\n\t\t\t\t$dataPost = array('reservation_type'=> $reservationType,\n\t\t\t\t\t'reservationID' => $reservationID,\n\t\t\t\t\t'partySize' => $arrReservationDetails[0]->no_of_persons,\n\t\t\t\t\t'reservationDate'=> $arrReservationDetails[0]->reservation_date,\n\t\t\t\t\t'reservationTime'=> $arrReservationDetails[0]->reservation_time,\n\t\t\t\t\t'guestName'=>$userData['data']['full_name'],\n\t\t\t\t\t'guestEmail'=>$userData['data']['email'],\n\t\t\t\t\t'guestPhoneNo'=>$userData['data']['phone_number'],\n\t\t\t\t\t'order_id'=> \"#E\".sprintf(\"%06d\",$reservationID),\n\t\t\t\t\t'venue' => $outlet->vendor_name,\n\t\t\t\t);\n\n\n\t\t\t} else if($reservationType == \"alacarte\"){\n\n\t\t\t\t$setBookingKey = 'MERGE26';\n\t\t\t\t$setBookingsValue = $userData['data']['a_la_carte_reservation'];\n\n\t\t\t\t$zoho_data = array(\n\t\t\t\t\t'Loyalty_Points_Awarded'=>0,\n\t\t\t\t\t'Order_completed'=>(isset($added_by) && $added_by == 'user' ? 'User Cancelled' : 'Admin Cancelled'),\n\t\t\t\t);\n\t\t\t\t$res_data = $this->zoho_edit_booking('A'.sprintf(\"%06d\",$reservationID),$zoho_data);\n\n\n\t\t\t\t$outlet = $this->alacarte_model->getOutlet($arrReservationDetails[0]->vendor_location_id);\n\n\t\t\t\t$locationDetails = $this->alacarte_model->getLocationDetails($arrReservationDetails[0]->vendor_location_id);\n\n\t\t\t\t$vendorDetails = $this->restaurantLocationsRepository->getByRestaurantLocationId($arrReservationDetails[0]->vendor_location_id);\n\t\t\t\t//echo \"<br/>---- vendorDetails---<pre>\"; print_r($vendorDetails);\n\t\t\t\t//echo \"<br/>---- outlet---<pre>\"; print_r($outlet);\n\n\t\t\t\t$rewardsPoints = $vendorDetails['attributes']['reward_points_per_reservation'];\n\t\t\t\t$bookingsMade = $userData['data']['a_la_carte_reservation'] - 1;\n\t\t\t\t$type = \"cancel\";\n\t\t\t\t$reservationType = \"alacarte\";\n\t\t\t\t$lastOrderId = $reservationID;\n\n\t\t\t\t$dataPost = array('reservation_type'=> $reservationType,\n\t\t\t\t\t'reservationID' => $reservationID,\n\t\t\t\t\t'partySize' => $arrReservationDetails[0]->no_of_persons,\n\t\t\t\t\t'reservationDate'=> $arrReservationDetails[0]->reservation_date,\n\t\t\t\t\t'reservationTime'=> $arrReservationDetails[0]->reservation_time,\n\t\t\t\t\t'guestName'=>$userData['data']['full_name'],\n\t\t\t\t\t'guestEmail'=>$userData['data']['email'],\n\t\t\t\t\t'guestPhoneNo'=>$userData['data']['phone_number'],\n\t\t\t\t\t'order_id'=> \"#A\".sprintf(\"%06d\",$reservationID),\n\t\t\t\t\t'venue' => $outlet->vendor_name,\n\t\t\t\t);\n\n\n\n\t\t\t}\n\n\t\t\tif(!empty($userData)){\n\t\t\t\t\t$merge_vars = array(\n\t\t\t\t\t\t$setBookingKey=>$setBookingsValue - 1,\n\t\t\t\t\t\t'GROUPINGS' => array(array('id' => 9713, 'groups' => [$userData['data']['location']]))\n\t\t\t\t\t);\n\n\t\t\t\t\t//$email = [\"email\"[\"email\":]];\n\t\t\t\t\t$this->mailchimp->lists->subscribe($this->listId, [\"email\"=>$userData['data']['email']],$merge_vars,\"html\",true,true );\n\t\t\t\t\t//$this->mc_api->listSubscribe($list_id, $_POST['email'], $merge_vars,\"html\",true,true );\n\n\t\t\t\t}\n\n\t\t\tProfile::updateReservationInUsers($rewardsPoints,$type,$bookingsMade,$reservationType,$userID,$lastOrderId);\n\n\t\t\tMail::send('site.pages.cancel_reservation',[\n\t\t\t\t'post_data'=>$dataPost,\n\t\t\t], function($message) use ($dataPost){\n\t\t\t\t$message->from('[email protected]', 'WowTables by GourmetItUp');\n\n\t\t\t\t$message->to($dataPost['guestEmail'])->subject('Your WowTables Reservation at '.$dataPost['venue'].' has been cancelled');\n\t\t\t\t//$message->cc('[email protected]', '[email protected]');\n\t\t\t});\n\n\n\t\t\tMail::send('site.pages.cancel_reservation',[\n\t\t\t\t'post_data'=>$dataPost,\n\t\t\t], function($message) use ($dataPost){\n\t\t\t\t$message->from('[email protected]', 'WowTables by GourmetItUp');\n\n\t\t\t\t$message->to('[email protected]')->subject('CR - '.$dataPost['order_id'].' | '.date('d-F-Y',strtotime($dataPost['reservationDate'])).' , '.date('g:i a',strtotime($dataPost['reservationTime'])).' | '.$dataPost['venue'].' | '.$dataPost['guestName']);\n\t\t\t\t$message->cc('[email protected]', '[email protected]','[email protected]','[email protected]');\n\t\t\t});\n\n\n\n\t\t\techo '1';\n\t\t}\n\t}", "public function closePending()\n {\n $cutOff = Carbon::now()->subMinutes(30);\n $rows = $this->storageTable()\n ->where('status', '=', 'approval_pending')\n ->whereDate('created_at', '<', $cutOff)\n ->get();\n foreach ($rows as $row) {\n $subscription = $this->buildSubscriptionFromRow($row);\n if ($subscription->open()) {\n Log::info(\"Closing Payment Subscription \" . $subscription->id\n . \" created at \" . $subscription->createdAt . \" because user never accepted it.\");\n $this->closeSubscription($subscription, 'user_declined');\n }\n }\n }", "public function wallet(Request $request,$userid,$type)\n { \n if($type=='request')\n {\n $were = array('uid'=>$userid);\n $data['applyrequests'] = Withdraw::getbycondition22($were);\n if(count($data['applyrequests']['data']) > 0)\n {\n foreach($data['applyrequests']['data'] as $key=>$dd)\n { \n if($dd['status']=='0')\n {\n $data['applyrequests']['data'][$key]['status'] = 'Pending';\n }else if($dd['status']=='1')\n {\n $data['applyrequests']['data'][$key]['status'] = 'Declined'; \n }else\n {\n $data['applyrequests']['data'][$key]['status'] = 'Approve'; \n }\n \n } \n }else\n {\n $data['applyrequests']['data'] = array();\n }\n $were = array('uid'=>$userid,'status'=>'2');\n \n $data2['applyrequests2'] = Withdraw::getbycondition($were);\n $were2 = array('uid'=>$userid,'status'=>'1');\n $data2['reffered'] = Reffer::getbycondition($were2);\n $data2['transactions2'] = Transaction::getbycondition(array('user_id'=>$userid));\n $data['walletamount']=0;\n $data['reffer_amount'] =0;\n foreach($data2['reffered'] as $reffer)\n {\n if(!empty($reffer->amount))\n {\n $data['walletamount'] += $reffer->amount;\n $data['reffer_amount'] += $reffer->amount;\n }\n }\n \n foreach($data2['transactions2'] as $reffers)\n {\n if(!empty($reffers->walletuse))\n {\n $data['walletamount'] -= $reffers->walletuse;\n }\n }\n \n $data['withdrwaamount']=0;\n foreach($data2['applyrequests2'] as $reffers)\n {\n if(!empty($reffers->amount))\n {\n $data['walletamount'] -= $reffers->amount;\n $data['withdrwaamount'] +=$reffers->amount;\n }\n }\n \n if(count($data2['reffered']) == 0 || $data['walletamount'] < 0)\n {\n $data['walletamount']=0; \n }\n\n \n }\n else\n { \n $data['transactions'] = Transaction::getoption23(array('user_id'=>$userid));\n foreach($data['transactions']['data'] as $key=>$dd)\n { \n \n if($dd['amount'] != '0' && $dd['transaction_id'] =='0')\n {\n $data['transactions']['data'][$key]['transaction_id'] = 'Wallet';\n }\n elseif($dd['transaction_id'] != '0')\n {\n $data['transactions']['data'][$key]['transaction_id'] = '#'.$dd['transaction_id'];\n }else\n {\n $data['transactions']['data'][$key]['transaction_id'] = 'Free';\n }\n \n $data['transactions']['data'][$key]['packagename'] = Subscription_content::getname($dd['package_id']);\n \n if($dd['package_id'] == '1')\n {\n $data['transactions']['data'][$key]['method'] = '--';\n }\n elseif($dd['amount'] != '0' && $dd['transaction_id'] =='0')\n {\n $data['transactions']['data'][$key]['method'] ='Wallet';\n }\n else\n {\n $data['transactions']['data'][$key]['method'] ='Card';\n }\n \n if($data['transactions']['current_page']=='1')\n {\n $datek = Hours::getdetailsuserret($userid,'expiry');\n $data['transactions']['data'][$key]['expiry'] = date('M-d Y',strtotime($datek));\n }else\n {\n if(!empty($dd['exp']) && $dd['exp']!='')\n {\n $data['transactions']['data'][$key]['expiry'] = date('M-d Y',strtotime($dd['exp']));\n }else\n {\n \n $date = strtotime($dd['created']);\n if($dd['package_id'] == '1'){\n $data['transactions']['data'][$key]['expiry'] = date('M-d Y',strtotime(\"+7 day\", $date));\n }else if($dd['package_id'] == '3')\n { \n $data['transactions']['data'][$key]['expiry'] = date('M-d Y',strtotime(\"+1 year\", $date)); \n }\n else{\n $data['transactions']['data'][$key]['expiry'] = date('M-d Y',strtotime(\"+1 month\", $date)); \n }\n } \n }\n }\n }\n\n $messags['message'] = \"Wallet data.\";\n $messags['status']= 1; \n $messags['data']= $data; \n echo json_encode($messags);\n die;\n }", "public function confirm(Request $request){\n // dd($request->all());\n \n\n $check_if_all_stocks_delivered =\n DeliveredStockDate::where('item_restocks_id',$request->item_re_id)->get();\n $sum = $check_if_all_stocks_delivered->sum('delivered_stock');\n\n $first_check = $request->quantity_item - $sum;\n\n if($request->quantity > $first_check){\n return redirect()->back()->withErrors('Input only the remaining stock that has not been delivered or ');\n }\n\n if($sum > $request->quantity_item){\n return redirect()->back()->withErrors('All ordered stock has already been delivered!');\n }\n // dd($sum);\n\n if($request->quantity > $request->quantity_item){\n return redirect()->back()->withErrors('Input quantity should not be more than the ordered quantity');\n }\n $item = Item::find($request->item_id__);\n // dd($item);\n $item->increment('stock',$request->quantity);\n // dd($item);\n\n $new = new DeliveredStockDate;\n $new->delivered_stock = $request->quantity;\n $new->item_restocks_id = $request->item_re_id;\n $new->date = Carbon::now();\n $new->save();\n\n return redirect(url('/admin/item-restocks/details',$request->item_re_id));\n \n }", "public function adminUpdateWithdrawalRequest(Request $request)\n {\n $this->validate($request, [\n 'withdrawal_code' => 'required|alpha_num|exists:withdrawals,code',\n 'status' => 'required|alpha|in:failed,completed',\n ]);\n\n $updateableWithdrawal = Withdrawal::whereCode($request->withdrawal_code)\n ->firstOrFail();\n $updateableAttributes = $updateableWithdrawal->getFillable();\n\n if ($updateableWithdrawal->status != 'completed') {\n if ($request->status == 'completed') {\n $flutterwave = Http::withToken(config('flutterwave.secretKey'))\n ->post('https://api.flutterwave.com/v3/transfers', [\n 'account_number' => $updateableWithdrawal->account_number,\n 'account_bank' => $updateableWithdrawal->bank_code,\n 'amount' => intval($updateableWithdrawal->amount),\n 'reference' => $updateableWithdrawal->code,\n 'narration' => config('app.name') . \" Withdrawal: {$updateableWithdrawal->code}\",\n 'currency' => \"NGN\",\n 'beneficiary_name' => $updateableWithdrawal->user->full_name,\n 'callback_url' => route('withdrawal_payout_callback', ['code' => $updateableWithdrawal->code]),\n 'meta' => [\n 'first_name' => $updateableWithdrawal->user->first_name,\n 'last_name' => $updateableWithdrawal->user->last_name,\n 'email' => $updateableWithdrawal->user->email,\n 'phone' => $updateableWithdrawal->user->phone,\n ]\n\n ])->json();\n Log::info($flutterwave);\n if ($flutterwave['status'] == 'success') {\n $updateableWithdrawal->status = 'completed';\n }\n } elseif ($request->status == 'failed') {\n $updateableWithdrawal->status = 'failed';\n $investor = User::whereId($updateableWithdrawal->user_id)->firstOrFail();\n $investor->available_balance -= ($updateableWithdrawal->amount);\n $investor->update();\n }\n\n if ($updateableWithdrawal->isDirty($updateableAttributes)) {\n $updateableWithdrawal->update();\n $response['status'] = \"success\";\n $response['message'] = \"Withdrawal Request was updated Successfully!\";\n return response()->json($response, Response::HTTP_OK);\n } else {\n $response['status'] = \"success\";\n $response['message'] = \"No changes where made!\";\n return response()->json($response, Response::HTTP_OK);\n }\n }\n }", "public function postPromotionInsurrance(Request $req){\n\n\t\t$user = User::find(Session('user')->User_ID);\n\t\t\n $this->validate($req, [\n 'amount' => 'required|numeric|min:0',\n //'time' => 'required|string',\n \t'days' => 'required|numeric|in:7,30',\n\t\t]);\n\t\t\n //ID người nhận\n \t$amount = $req->amount;\n\t\t//amount am\n\t\tif(!$req->amount || $req->amount <= 0){\n return $this->redirectBack('Amount USD Invalid', [], 'error');\n }\n //check balance\n $balance = User::getBalance($user->User_ID, 5);\n //Tính toán phí\n \t$fee = $this->feeInsur;\n \t$days = $req->days;\n \t$feeInsur = $fee[$days];\n $amountFee = $feeInsur*$amount;\n //check m\\amount balance\n if($amountFee > $balance){\n return $this->redirectBack('Your balance is not enough!', [], 'error');\n\t\t}\n \t$minInsurrance = 500;\n \tif($req->amount < $minInsurrance){\n return $this->redirectBack('Min Buy Insurrance $'.$minInsurrance.'!', [], 'error');\n }\n // lưu lịch sử\n $arrayInsert = array(\n 'Money_User' => $user->User_ID,\n 'Money_USDT' => -($amountFee),\n 'Money_USDTFee' => 0,\n 'Money_Time' => time(),\n 'Money_Comment' => 'Buy Promotion Insurrance Time '.$req->time.' $'.$req->amount.' Fee $'.$amountFee,\n 'Money_MoneyAction' => 21,\n 'Money_MoneyStatus' => 1,\n 'Money_Currency' => 5,\n 'Money_CurrentAmount' => $amountFee,\n 'Money_Rate' => 1,\n 'Money_Confirm' => 0,\n 'Money_Confirm_Time' => null,\n 'Money_FromAPI' => 1,\n );\n \t$dataInsr = [\n \t'user_id' => $user->User_ID,\n \t'amount' => $amount,\n \t'time' => $req->time,\n \t'days' => $days,\n \t'created_time' => date('Y-m-d H:i:s'),\n \t'expired_time' => date('Y-m-d H:i:s', strtotime('+'.$days.' days')),\n \t'balance' => $balance,\n ];\n $id = Money::insertGetId($arrayInsert);\n \t$cancelOld = DB::table('promotion_sub')->where('user_id', $user->User_ID)->where('status', 0)->update(['status'=>-1]);\n \t$insertPromo = DB::table('promotion_sub')->insert($dataInsr);\n \n $message = \"<b> NOTICE PROMOTION INSURRANCE</b>\\n\"\n . \"ID: <b>$user->User_ID</b>\\n\"\n . \"NAME: <b>$user->User_Name</b>\\n\"\n . \"EMAIL: <b>$user->User_Email</b>\\n\"\n . \"AMOUNT: <b>$$amount</b>\\n\"\n . \"TIME: <b>$req->time</b>\\n\"\n . \"CONTENT: <b>Buy Insurrance $$req->amount Fee $$amountFee</b>\\n\"\n . \"<b>Submit Time: </b>\\n\"\n . date('d-m-Y H:i:s',time());\n\t\t//dd($message);\n \tdispatch(new SendTelegramJobs($message, -393919269));\n \n return $this->redirectBack(\"Buy Insurrance $ $req->amount Fee $$amountFee Success!\", [], 'success');\n\t}", "function create(Request $formrequest){\n\t\t\n $request = Requests::findOrFail($formrequest->request_id);\n\t\t\n\t\t\n\t\t// Send Notification to users\n\n\t\t// $category = $request->category_id;\n\n\t\t// $category_item = $this->find_item($category, $request->item_id) \n\t\t// $category = $category_item[0]\n\t\t// $item = $category_item[1]\n\t\t// $users = \\App\\User::where('department_id',$request->department_id)->get()->toArray();\n\t\t\n\t\t\t\n\t\t\t\n $request_endorsement_id = RequestEndorsement::where('request_id',$formrequest->request_id)\n \t\t\t\t\t\t\t\t->get()->toArray()[0]['id'];\n $request_endorsement = RequestEndorsement::findOrFail($request_endorsement_id);\n \n //update request status to for purchase\n\n //check if already approved\n if($request->status != Requests::ENDORSED){\n session()->flash('alert-danger', 'Request is not available for approval. Your balance is not deducted');\n return redirect('approval');\n }\n\n $request->status = Requests::APPROVED;\n $request->save();\n \n\n //update request endorsement approved_by\n $request_endorsement->approved_by = Auth::user()->id; \n $request_endorsement->save();\n\n $department = Department::find($request->department_id);\n $last_account_transaction = $department->last_account_transaction();\n\n\n\t\t$transaction = [];\n $transaction['department_id'] = $request->department_id; \n \n $transaction['request_id'] = $request->id; \n $transaction['amount'] = $request->total_quote_price*-1;\n $transaction['balance'] = $last_account_transaction->balance + ($request->total_quote_price*-1); \n $transaction['transaction_type_id'] = 'P';\n $transaction['aysem'] = Aysem::current()->aysem;\n $transaction['parent_account_transaction_id'] = $last_account_transaction->id;\n\t\t\n\t\t$account_transactions = \\App\\AccountTransactions::create($transaction);\t\t\n\n $account_transactions->save();\n \n session()->flash('alert-success', 'Request is approved and deducted to your account!');\n return redirect('approval');\n }", "public function customererrandsessioncancel(Request $request){\n $trans_cancelled = Transaction::where('transaction_id',$request->transactions_id)->update([\n \"delivery_status\" => \"CANCELLED\"\n ]);\n\n return ($trans_cancelled == 1 ) ? response()->json([\"success\" => \"Cancelled\"], 200) : response()->json([\"error\" => \"Cancelling failed.. Try again\"], 500);\n\n }", "public function close() {\n check_access($this->session->userdata('role_id'),3);\n \n $data = array();\n $post_data['day_id'] = $this->session->userdata('day_id');\n $post_data['day_close_amount'] = (double)str_replace(\",\",\"\",$this->input->post('closing_cash'));\n $post_data['day_closedate'] = date('Y-m-d');\n $post_data['day_status'] = 'closed';\n $where = array('day_id' => $this->session->userdata('day_id'));\n if ($this->common->update('dayopenclose', $post_data, $where)) {\n $day = array( 'day_id' => '','day_status' => 'closed' );\n $this->session->set_userdata($day);\n redirect(base_url().'admin/day/listing');\n }\n }", "public function check_cointopay_response() {\n\t\t\tglobal $woocommerce;\n\t\t\t$woocommerce->cart->empty_cart();\n\t\t\t$orderid = ( !empty(intval($_REQUEST['CustomerReferenceNr'])) ) ? intval($_REQUEST['CustomerReferenceNr']) : 0;\n\t\t\t$ordstatus = ( !empty(sanitize_text_field($_REQUEST['status'])) ) ? sanitize_text_field($_REQUEST['status']) : '';\n\t\t\t$ordtransactionid = ( !empty(sanitize_text_field($_REQUEST['TransactionID'])) ) ? sanitize_text_field($_REQUEST['TransactionID']) : '';\n\t\t\t$ordconfirmcode = ( !empty(sanitize_text_field($_REQUEST['ConfirmCode'])) ) ? sanitize_text_field($_REQUEST['ConfirmCode']) : '';\n\t\t\t$notenough = ( isset($_REQUEST['notenough']) ) ? intval($_REQUEST['notenough']) : '';\n\n\t\t\t$order = new WC_Order($orderid);\n\t\t\t$data = array(\n\t\t\t\t'mid' => $this->merchantid,\n\t\t\t\t'TransactionID' => $ordtransactionid,\n\t\t\t\t'ConfirmCode' => $ordconfirmcode,\n\t\t\t);\n\t\t\t$transactionData = $this->validate_order($data);\n\t\t\tif(200 !== $transactionData['status_code']){\n\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">'.$transactionData['message'] .'</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\t get_footer();\n\t\t\t\t\texit;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif($transactionData['data']['Security'] != $ordconfirmcode){\n\t\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">Data mismatch! ConfirmCode doesn\\'t match</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\telseif($transactionData['data']['CustomerReferenceNr'] != $orderid){\n\t\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">Data mismatch! CustomerReferenceNr doesn\\'t match</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\telseif($transactionData['data']['TransactionID'] != $ordtransactionid){\n\t\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">Data mismatch! TransactionID doesn\\'t match</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\telseif($transactionData['data']['Status'] != $ordstatus){\n\t\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">Data mismatch! status doesn\\'t match. Your order status is '. $transactionData['data']['Status'].'</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (( 'paid' === $ordstatus ) && ( 0 === $notenough )) {\n\t\t\t\t\t// Do your magic here, and return 200 OK to Cointopay.\n\t\t\t\t\tif ('processing' === $order->status) {\n\t\t\t\t\t\t$order->update_status('processing', sprintf(__('IPN: Payment completed notification from Cointopay', 'woocommerce')));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$order->payment_complete();\n\t\t\t\t\t\t$order->update_status('processing', sprintf(__('IPN: Payment completed notification from Cointopay', 'woocommerce')));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$order->save();\n\t\t\t\t\t\n\t\t\t\t\t$order->add_order_note( __( 'IPN: Update status event for Cointopay to status COMPLETED:', 'woocommerce' ) . ' ' . $orderid);\n\n\t\t\t\t\tget_header();\n\t\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#0fad00\">Success!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/check.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">The payment has been received and confirmed successfully.</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #0fad00;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br><br><br></div></div></div>';\n\t\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t} elseif ('failed' === $ordstatus && 1 === $notenough) {\n\t\t\t\t\t$order->update_status('on-hold', sprintf(__('IPN: Payment failed notification from Cointopay because notenough', 'woocommerce')));\n\t\t\t\t\tget_header();\n\t\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">The payment has been failed.</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br><br><br></div></div></div>';\n\t\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t} else {\n\t\t\t\t\t$order->update_status('failed', sprintf(__('IPN: Payment failed notification from Cointopay', 'woocommerce')));\n\t\t\t\t\tget_header();\n\t\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">The payment has been failed.</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color:#ff0000;border:none;color: white;padding:15px 32px;text-align: center;text-decoration:none;display:inline-block;font-size:16px;\">Back</a><br><br><br><br></div></div></div>';\n\t\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}//end if\n\t\t\t\n\n\t\t}", "public function opdDueCollectInfo(Request $request)\n {\n $this->validate($request, [\n 'invoice' => 'required',\n 'total_due' => 'required',\n 'due_payment' => 'required',\n 'confirm_due_payment' => 'required',\n 'rebate' => 'required',\n 'tr_date' => 'required',\n ]);\n $invoice = trim($request->invoice);\n $due_payment = trim($request->due_payment);\n $confirm_due_payment = trim($request->confirm_due_payment);\n $rebate = trim($request->rebate);\n $confirm_bank_balance = trim($request->confirm_bank_balance);\n $remarks = trim($request->remarks);\n $tr_date = trim($request->tr_date);\n $trDate = date('Y-m-d',strtotime($tr_date)) ;\n $bill_tr_info = DB::table('opd_bill_transaction')->where('branch_id',$this->branch_id)->where('invoice_number',$invoice)->get();\n $total_payable = 0 ;\n $total_payment = 0 ;\n $total_discount = 0 ;\n $total_rebate = 0 ;\n foreach ($bill_tr_info as $bill_tr_info_value) {\n $total_payable = $total_payable + $bill_tr_info_value->total_payable ;\n $total_payment = $total_payment + $bill_tr_info_value->total_payment ;\n $total_discount = $total_discount + $bill_tr_info_value->total_discount ;\n $total_rebate = $total_rebate + $bill_tr_info_value->total_rebate ; \n }\n $all_discount_rebate = $total_discount + $total_rebate ;\n $net_payable_is = $total_payable - $all_discount_rebate ;\n $total_due = $net_payable_is - $total_payment ;\n if($trDate > $this->rcdate){\n Session::put('failed','Sorry ! Enter Invalid Date. Please Enter Valid Date And Try Again ');\n return Redirect::to('opdBillDueCollect');\n exit();\n }\n if($due_payment != $confirm_due_payment){\n Session::put('failed','Sorry ! Due Collect Amount And Confirm Due Collect Amount Did Not Match');\n return Redirect::to('opdBillDueCollect');\n exit();\n }\n // total amount sum\n $total_collect_amount_cal = $due_payment + $rebate ;\n if($total_due < $total_collect_amount_cal){\n Session::put('failed','Sorry ! Collect Amount + Rebate Amount Will Not Be Big Than Total Due Amount');\n return Redirect::to('opdBillDueCollect');\n exit();\n }\n // get bill info\n $bill_info = DB::table('opd_bill')->where('branch_id',$this->branch_id)->where('invoice',$invoice)->first();\n $bill_date = $bill_info->bill_date ; \n $main_invoice_cashbbook_id = $bill_info->cashbook_id ;\n $main_opd_bill_id = $bill_info->id ;\n $opd_status = $bill_info->opd_status ;\n\n if($trDate < $bill_date){\n Session::put('failed','Sorry ! This Bill Create '.$bill_date.' So Due Collect Date Not Small Than It');\n return Redirect::to('opdBillDueCollect');\n exit();\n }\n if($rebate > 0){\n $purpose = \"OPD Due Collection With Rebate\" ;\n }else{\n $purpose = \"OPD Due Collection\";\n }\n // get opd status\n\n if($opd_status == '2'){\n $data_cashbook = array();\n $data_cashbook['overall_branch_id'] = $this->branch_id ;\n $data_cashbook['branch_id'] = $this->branch_id ;\n $data_cashbook['admin_id'] = $this->loged_id ;\n $data_cashbook['admin_type'] = 3 ;\n $data_cashbook['earn'] = $due_payment + $rebate ;\n $data_cashbook['cost'] = $rebate ;\n $data_cashbook['profit_cost'] = $rebate ;\n $data_cashbook['status'] = 11 ;\n $data_cashbook['tr_status'] = 1 ;\n $data_cashbook['purpose'] = $purpose;\n $data_cashbook['added_id'] = $this->loged_id;\n $data_cashbook['created_time'] = $this->current_time;\n $data_cashbook['created_at'] = $trDate;\n $data_cashbook['on_created_at'] = $this->rcdate;\n DB::table('cashbook')->insert($data_cashbook);\n #---------------------------------- END INSERT INTO CASHBOOK --------------------#\n #--------------------- GET LAST CASH BOOK ID -----------------------------------#\n $last_cashbook_id_query = DB::table('cashbook')->orderBy('id','desc')->limit(1)->first();\n $last_cashbook_id = $last_cashbook_id_query->id ;\n } \n #-------------------- GET LAST CASH BOOK ID --------------------------------------#\n\n if($opd_status == '2'){\n $cashbook_last_id = $last_cashbook_id ;\n }else{\n $cashbook_last_id = '0' ;\n }\n // get last tr id\n $last_tr_query = DB::table('opd_bill_transaction')->where('branch_id',$this->branch_id)->where('invoice_number',$invoice)->orderBy('invoice_tr_id','desc')->limit(1)->first();\n $last_tr_id = $last_tr_query->invoice_tr_id + 1 ;\n $branch_invoice_year_number = $last_tr_query->year_invoice_number ;\n $branch_daily_invoice_number = $last_tr_query->daily_invoice_number ;\n // insert pathology bill due collect\n $data_pathology_bill_tr_insert = array();\n $data_pathology_bill_tr_insert['cashbook_id'] = $cashbook_last_id ;\n $data_pathology_bill_tr_insert['opd_bill_id'] = $main_opd_bill_id ;\n $data_pathology_bill_tr_insert['branch_id'] = $this->branch_id ;\n $data_pathology_bill_tr_insert['invoice_number'] = $invoice;\n $data_pathology_bill_tr_insert['year_invoice_number'] = $branch_invoice_year_number;\n $data_pathology_bill_tr_insert['daily_invoice_number'] = $branch_daily_invoice_number;\n $data_pathology_bill_tr_insert['invoice_tr_id'] = $last_tr_id ;\n $data_pathology_bill_tr_insert['total_payment'] = $due_payment ;\n $data_pathology_bill_tr_insert['total_rebate'] = $rebate ;\n $data_pathology_bill_tr_insert['status'] = 1 ;\n $data_pathology_bill_tr_insert['added_id'] = $this->loged_id;\n $data_pathology_bill_tr_insert['tr_date'] = $trDate ;\n $data_pathology_bill_tr_insert['created_time'] = $this->current_time ;\n $data_pathology_bill_tr_insert['created_at'] = $this->rcdate;\n DB::table('opd_bill_transaction')->insert($data_pathology_bill_tr_insert);\n // insert into pettycash\n if($opd_status == '2'){\n $pettycash_amount = DB::table('pettycash')->where('branch_id',$this->branch_id)->where('type',3)->limit(1)->first();\n $current_pettycash_amt = $pettycash_amount->pettycash_amount ;\n $now_pettycash_amt = $current_pettycash_amt + $due_payment ;\n // update pettycash amount\n $data_update_pettycash = array();\n $data_update_pettycash['pettycash_amount'] = $now_pettycash_amt; \n DB::table('pettycash')->where('branch_id',$this->branch_id)->where('type',3)->update($data_update_pettycash);\n }\n // update due status of main invoice\n if($total_collect_amount_cal < $total_due){\n $due_status_is = '2' ;\n }else{\n $due_status_is = '1' ;\n }\n $data_invoice_update = array();\n $data_invoice_update['due_status'] = $due_status_is ;\n DB::table('opd_bill')->where('branch_id',$this->branch_id)->where('invoice',$invoice)->update($data_invoice_update);\n return Redirect::to('printA4OpdBill/'.$invoice.'/'.$main_opd_bill_id);\n }", "public function withdrawB2CCallBack(Request $request) {\n\t\t// Extract the request data and parse it to json\n\t\t$response = json_decode($request->getContent());\n\n\t\t//log the response here\n\t\tself::log([\n\t\t\t'callback' => $response,\n\t\t], 'STK', 'tpay.b2c.withdraw.callback');\n\n\t\t// Get the reference code use\n\t\t$referenceCode = $response->data->referenceCode;\n\n\t\t//Fetch This\n\t\t$tpay_with_draw = TPayWithDraw::query()->where('referenceCode', $response->data->referenceCode)\n\t\t\t->where('is_withdrawn', false)->with('user')->first();\n\n\t\tif ($response->success) {\n\t\t\t//process with your functions here\n\n\t\t\treturn response()->json([\n\t\t\t\t'success' => true,\n\t\t\t], 200);\n\t\t}\n\n\t\t//do something else here.\n\t\treturn response()->json([\n\t\t\t'success' => false,\n\t\t], 200);\n\t}", "public function calculate(Request $request)\n {\n return $this->sum(\n $request,\n Balance::class,\n 'new_base',\n DB::raw(\"DATE_ADD(closed_at, INTERVAL 1 DAY)\")\n )->format(',0n')->currency('$');\n\n }", "function confirm($id=\"\"){\r\n \t\t\t//$bitcoin_isvalid = $bitcoin->listtransactions();\r\n\r\n \t\t\t/*$bal=$bitcoin->getbalance();*/\r\n\r\n \r\n\r\n\t\t$id=insep_decode($id);\r\n\t\t$condition=array(\"transactionId\"=>$id,\"status\"=>\"Pending\");\r\n\t\t$transdata=$this->CommonModel->getTableData(\"tansation\",$condition);\r\n\t\tif($transdata->num_rows() >0){\t\t\r\n\r\n\r\n if($this->input->post(\"witdraw_submit\")){ \r\n\r\n\r\n \t\t$currecncy=$transdata->row()->currency;\r\n \t \t$currency=$transdata->row()->currency;\r\n \r\n\r\n \tif($currency==\"BTC\"){\r\n\r\n \t\t$txn_id=$this->transfer_coin(\"BTC\",$transdata);\r\n\r\n\r\n \t}else if($currency==\"LTC\"){ \r\n\r\n \t\t$txn_id=$this->transfer_coin(\"LTC\",$transdata);\r\n\r\n \t}else if($currency==\"DGB\"){ \r\n\r\n \t\t$txn_id=$this->transfer_coin(\"DGB\",$transdata);\r\n\r\n \t}else if($currency==\"DASH\"){ \r\n\r\n \t\t$txn_id=$this->transfer_coin(\"DASH\",$transdata);\r\n\r\n \t}else if($currency==\"ETH\"){\r\n \t\t$txn_id=$this->transfer_eth(\"ETH\",$transdata);\r\n\r\n \t}else if($currency==\"XRP\"){\r\n\r\n \t\t$txn_id=$this->transfer_xrp($transdata);\r\n\r\n \t} else if($currency==\"BTG\"){\r\n\r\n \t\t$txn_id=$this->transfer_coin(\"BTG\",$transdata);\r\n\r\n \t}\r\n\t\telse if($currency==\"BCH\"){\r\n\r\n \t\t$txn_id=$this->transfer_coin(\"BCH\",$transdata);\r\n\r\n \t}\r\n\t\telse if($currency==\"ETC\"){\r\n\r\n \t\t$txn_id=$this->transfer_etc(\"ETC\",$transdata);\r\n\r\n \t}else if($currency==\"XMR\"){\r\n\r\n \t \t$txn_id=$this->transfer_xmr($transdata);\r\n\r\n \t}\r\n\t\t \t\r\n \t\t$status=\"Success\";\r\n\r\n \t\tif($status==\"Success\"){\r\n\r\n\t\t\t\t$transdata=$transdata->row();\r\n\t\t\t\t$currecncy=$transdata->currency;\r\n\t\t\t\t$amount=$transdata->total_amount;\r\n\t\t\t\t$update[\"status\"]=\"Completed\";\r\n\t\t\t\t$update[\"transation_hash\"]=$txn_id;\r\n\t\t\t\t$this->CommonModel->updateTableData(\"tansation\",$update,$condition);\r\n\t\t\t\t$email_data=getEmailTeamplete(10);\r\n\t\t\t\t$subject=$email_data->subject;\r\n\t\t\t\t$template=$email_data->template;\r\n\t\t\t\t$site_data=site_settings();\r\n\t\t\t\t$sitename=$site_data->site_name;\r\n\t\t\t\t$trans_data=$transdata;\r\n\t\t \t $trans_data->total_amount;\t\t\t\t\t\r\n\t\t\t\t\t$data=array(\r\n\t\t\t\t\t\t\"###TRANSID###\"=>$trans_data->transactionId,\t\t\t\r\n\t\t\t\t\t\t\"###AMOUNT###\"=>$trans_data->total_amount.$trans_data->currency,\r\n\t\t\t\t\t\t\"###LOGOIMG###\"=> base_url().\"assets/frontend/images/mail_logo.png\",\r\n\t\t\t\t\t\t\"###FBIMG###\"=> base_url().\"assets/frontend/images/facebook.png\",\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\"###STATUS###\"=> \"Completed\",\t\t\r\n\t\t\t\t\t);\r\n\t\t\t\t\t$data[\"###LOGOIMG###\"]=getSiteLogo();\r\n\t\t\t\t\t$data[\"###EMAILIMG###\"]= base_url().\"assets/frontend/images/email_send.png\";\r\n\t\t\t\t\t$data[\"###FBIMG###\"]= base_url().\"assets/frontend/images/facebook.png\";\t\t\t\r\n\t\t\t\t\t$data[\"###TWIMG###\"]= base_url().\"assets/frontend/images/twitter.png\";\r\n\t\t\t\t\t$data[\"###GPIMG###\"]= base_url().\"assets/frontend/images/gplus.png\";\r\n\t\t\t\t\t$data[\"###LEIMG###\"]= base_url().\"assets/frontend/images/linkedin.png\";\t\r\n\t\t\t\t\t$data[\"###HDIMG###\"]= base_url().\"assets/frontend/images/email.png\";\r\n\t\t\t\t\t$data[\"###FBLINK###\"]= $site_data->facebooklink;\t\t\t\t\r\n\t\t\t\t\t$data[\"###TWLINK###\"]= $site_data->twitterlink;\t\r\n\t\t\t\t\t$data[\"###GPLINK###\"]= $site_data->googlelink;\r\n\t\t\t\t\t$data[\"###LELINK###\"]= $site_data->linkedinlink;\r\n\t\t\t\t$email=get_user_email($trans_data->user_id);\r\n\t\t\t\t $message=strtr($template,$data);\t\t\r\n\t\t\t\tsend_mail($email,$subject,$message);\r\n\t\t\t\t$this->session->set_flashdata(\"success\",\"Withdraw request Completed successfully\");\t\t\r\n\t\t\t\tredirect(\"BoAdmin_Transation/withdraw\");\r\n\r\n\t\t\t}else{\r\n\r\n\r\n\t\t\t\t$this->session->set_flashdata(\"error\",\"Withdraw request error, Tray again after some time\");\t\t\r\n\r\n\t\t\t\tredirect(\"BoAdmin_Transation/withdraw\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}else{\r\n\r\n\t\t\t$transdata=$transdata->row();\r\n\t\t\t$user_id=$transdata->user_id;\r\n\t\t\t$condition=array(\"user_id\"=>$user_id);\r\n\t\t\t$userdata=$this->CommonModel->getTableData(\"userdetails\",$condition)->row();\t\r\n\t\t\t$data['withdraw']=$transdata;\t\r\n\r\n\t\t\t $data['user_name']=$userdata->username;\t\t\r\n\t\t\t\r\n\t\t\t$this->load->view(\"admin/transation/withdaw_request_details\",$data);\t\r\n\r\n\t\t}\r\n\r\n\r\n\t\t}else{\r\n\r\n\t\t\t$this->session->set_flashdata(\"error\",\"Invalid link or already used link\");\t\t\r\n\t\r\n\t\t\tredirect(\"BoAdmin_Transation/withdraw\");\r\n\r\n\t\t}\r\n\r\n\r\n\r\n\r\n\r\n\t}", "public function weekly_withdrawals()\n\t{\n\t\t// $date->format('Y-m-d'); \n\n\t\t// $date = strtotime(\"-6 day\");\n\t\t // date(\"Y-m-d\", $date);\n\t\t \n\t\t$today = date(\"Y-m-d\");\n\t\t$newDate = date(\"Y-m-d\",strtotime($today.\"-6 day\"));\n\t\t\n\t\t//`date_transaction` BETWEEN '$newDate' AND '$today'\n\t\t//OR\n\t\t//`date_transaction` > DATE_SUB(NOW(), INTERVAL 1 WEEK)\t\n\t\t\n\t\t$query = $this->db->prepare(\"SELECT * FROM `statement` WHERE `debit` <> 0 AND `date_transaction` > DATE_SUB(NOW(), INTERVAL 1 WEEK) ORDER BY `date_transaction` DESC\");\n\n\t\ttry{\n\t\t\t\n\t\t\t$query->execute();\n\t\t\treturn $query->fetchAll();\n\t\t\t\n\t\t\t\n\t\t}catch(PDOException $e){\n\t\t\tdie($e->getMessage());\n\t\t}\n\n\t}", "private function queryDepositsAndWithdrawals() {\r\n return $this->queryAPI( 'returnDepositsWithdrawals', //\r\n [\r\n 'start' => time() - 14 * 24 * 3600,\r\n 'end' => time() + 3600\r\n ]\r\n );\r\n\r\n }", "public function index(CashfreeRequest $request)\n {\n // 'addmoney' => 'required',\n // 'secretkey' => 'required', \n // 'appId' => 'required', \n // 'orderAmount' => 'required', \n // 'orderCurrency' => 'required', \n // 'orderNote' => 'required', \n // 'customerName' => 'required', \n // 'customerName' => 'required', \n // 'customerPhone' => 'required', \n // 'customerEmail' => 'required', \n // ]); \n\n // if ($validator->fails()) { \n // $yourData =['status' => false, 'response' => null, 'message' => $validator->errors()->first()];\n // return response()->json($yourData, 200, ['Content-Type' => 'application/json;charset=UTF-8', 'Charset' => 'utf-8']);\n // }\n\n $secretKey = $request->secretkey;\n $appId = $request->appId;\n $orderAmount = $request->orderAmount;\n $orderCurrency = $request->orderCurrency;\n $orderNote = $request->orderNote;\n $customerName = $request->customerName;\n $customerPhone = $request->customerPhone;\n $customerEmail = $request->custo;\n $returnUrl = $request->returnUrl;\n $notifyUrl = $request->notifyUrl;\n\n $previous_client_id = Transaction::limit(1)->orderBy('orderId','desc')->first();\n if(isset($previous_client_id)){\n $find_id = explode('order', $previous_client_id->orderId); \n $assign_id = $find_id[1]+'1'; \n $num_added = sprintf(\"%03d\", $assign_id);\n $order_id='order'.$num_added; \n\n }else{\n $order_id='order001'; \n } \n\n $user = new Transaction();\n $user->uid = auth()->user()->_id;\n $user->orderId = $order_id;\n $user->save();\n \n $curl = curl_init();\n\n curl_setopt_array($curl, array(\n CURLOPT_URL => \"https://test.cashfree.com/api/v1/order/create\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_SSL_VERIFYHOST => false,\n CURLOPT_SSL_VERIFYPEER => false,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => \"appId=\".$appId.\"&secretKey=\".$secretKey.\"&orderId=\".$order_id.\"&orderCurrency=\".$orderCurrency.\"&orderAmount=\".$orderAmount.\"&customerName=\".$customerName.\"&customerPhone=\".$customerPhone.\"&customerEmail=\".$customerEmail.\"&returnUrl=\".$returnUrl.\"&notifyUrl=\".$notifyUrl.\"&Content-Type=appilication%2Fx-www-form-urlencoded\",\n CURLOPT_HTTPHEADER => array(\n \"cache-control: no-cache\",\n \"content-type: application/x-www-form-urlencoded\",\n \"postman-token: 5ecb012d-6af2-a918-b3d0-c7873e54b093\"\n ),\n ));\n\n $response = curl_exec($curl);\n $err = curl_error($curl);\n\n curl_close($curl);\n\n if ($err) {\n echo \"cURL Error #:\" . $err;\n } else {\n echo $response;\n }\n }", "public function reject()\n {\n if ($this->withdrawal->status == Withdrawal::STATUS_CREATED) {\n // update withdrawal model\n $this->withdrawal->status = Withdrawal::STATUS_REJECTED;\n $this->withdrawal->save();\n // create a credit transaction on user account to return funds\n $accountService = new AccountService($this->withdrawal->account);\n $accountService->transaction($this->withdrawal, $this->withdrawal->amount);\n }\n }", "public function actionWithdraw($stamp){\n $id = htmlentities($stamp);\n $id = preg_replace('/[^-a-zA-Z0-9_]/', '', $id);\n $transaction = Transaction::find()->where(['transaction_id'=>$id])->one();\n if(!empty($transaction)){\n $withdraw = new WithdrawTransaction;\n $withdraw->transaction_id = $id;\n $withdraw->user_id = \\Yii::$app->user->getId();\n $withdraw->request_date = date('Y-m-d H:i:s', time());\n $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $charactersLength = strlen($characters);\n $length = 8;\n $randomString = '';\n for ($i = 0; $i < $length; $i++) {\n $randomString .= $characters[rand(0, $charactersLength - 1)];\n } \n $withdraw->withdraw_id = $randomString;\n if($withdraw->save()){\n \\Yii::$app->session->setFlash('message', 'Transaction withdrawal requested successfully. You will receive payment within 10 days.');\n return $this->redirect(\\Yii::$app->request->referrer);\n }else{\n print_r($withdraw->getErrors());\n }\n }\n }", "function accountwithdrawal()\n\t\t\t{\n\t\t\t\techo\"<h3>You are withdrawing from main account</h3>\";\n\t\t\t\techo\"<br/><hr/>\";\n\t\t\t\techo\"<form action='industrynemurabinik' method='post' style=''>\";\n\t\t\t\techo\"Given to:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='text' name='nameofperson' placeholder='enter name of person assigned' size='32' required='required'/><br/><br/>\";\n\t\t\t\techo\"enter amount<input type='text' name='amount' placeholder='enter amount to withdraw' size='32' required='required'/><br/><br/>\";\n\t\t\t\t\n\t\t\t\t$vote=mysqli_query($con,\"select * from voteheads where termit='one'\");\n\t\t\t\techo\"amount use: <select name='votehead' style='width:39%;'>\";\n\t\t\t\twhile($head=mysqli_fetch_array($vote))\n\t\t\t\t{\n\t\t\t\t\techo\"<option>\".$head['name'].\"</option>\";\n\t\t\t\t}\n\t\t\t\techo\"<option>other</option>\";\n\t\t\t\techo\"</select><br/><br/>\";\n\t\t\t\techo\"<input type='submit' value='withdraw cash'/>\";\n\t\t\t\techo\"</form>\";\n\t\t\t\t//end of making payments\n\t\t\t}", "public function test__it_should_be_block_close_stock_removal_when_has_product_withdrawn()\n {\n $removal = Removal::create();\n\n // enviado\n RemovalProduct::create([\n 'stock_removal_id' => $removal->id,\n 'status' => 2,\n ]);\n\n // retirado\n RemovalProduct::create([\n 'stock_removal_id' => $removal->id,\n 'status' => 0,\n ]);\n\n $this->json('POST', \"/api/estoque/retirada/fechar/{$removal->id}\")\n ->seeStatusCode(400)\n ->seeJson([\n 'status' => 'ValidationFail'\n ]);\n }", "public function AddTransactionWithDraw($data){\n \t$this->_name='cs_withdraw';\r\n \t$session_user=new Zend_Session_Namespace('auth');\n \t$user_id = $session_user->user_id;\r\n \tif(empty($data['withdraw_dollar'])){\r\n \t\t$w_dollar = 0;\r\n \t}else{\r\n \t\t$w_dollar =$data['withdraw_dollar'] ;\r\n \t\t$rs_dollar = $this->getMoneyInAccountBySender($data['sender'],1);\r\n \t\t$this->updateOldDeposit($w_dollar,$rs_dollar);\r\n \t}\r\n \tif(empty($data['withdraw_bath'])){\r\n \t\t$w_bath = 0;\r\n \t}else{\r\n \t\t$w_bath =$data['withdraw_bath'];\r\n \t\t$rs_bath = $this->getMoneyInAccountBySender($data['sender'],2);\r\n \t\t$this->updateOldDeposit($w_bath,$rs_bath);\r\n \t}\r\n \tif(empty($data['withdraw_riel'])){\r\n \t\t$w_riel = 0;\r\n \t}else{\r\n \t\t$w_riel = $data['withdraw_riel'];\r\n \t\t$rs_riel = $this->getMoneyInAccountBySender($data['sender'],3);\r\n \t\t$this->updateOldDeposit($w_riel,$rs_riel);\r\n \t}\r\n \t$this->_name='cs_withdraw';\r\n \t$data = array(\r\n \t\t\t'sender_id'=>$data['sender'],\r\n \t\t\t'invoice'=>$data['invoice_no'],\r\n \t\t\t'wd_amountdollar'=>$w_dollar,\r\n \t\t\t'wd_amountbath'=>$w_bath,\r\n \t\t\t'wd_amountriel'=>$w_riel,\r\n \t\t\t'user_id'=>$user_id,\r\n \t\t\t'create_date'=>$data['send_date'],\r\n \t);\r\n \t$id = $this->insert($data);\n \t\n \t$process = 0;\r\n \t$amount = 0;\r\n \t$dbc = new Application_Model_DbTable_DbCapital();\r\n \tfor($i=1; $i<4; $i++){//for add capital detail and update current capital by staff\r\n \t\tif(!empty($w_dollar) AND $i==1){\r\n \t\t\t$process = 1;\r\n \t\t\t$curr_type = 1;\r\n \t\t\t$amount = $w_dollar;\r\n \t\t}elseif(!empty($w_bath) AND $i==2){\r\n \t\t\t$process = 1;\r\n \t\t\t$curr_type = 2;\r\n \t\t\t$amount = $w_bath;\r\n \t\t}elseif(!empty($w_riel) AND $i==3){\r\n \t\t\t$process = 1;\r\n \t\t\t$curr_type = 3;\r\n \t\t\t$amount = $w_riel;\r\n \t\t}\r\n \t\tif($process==1){//with draw tran_type = 7\r\n \t\t\t$_arr = array(\r\n \t\t\t\t\t'tran_id' \t=>$id,\r\n \t\t\t\t\t'tran_type' =>7,\r\n \t\t\t\t\t'curr_type'\t=>$curr_type,\r\n \t\t\t\t\t'amount'\t=>-$amount,//cos withdraw money to customer\r\n \t\t\t\t\t'user_id'\t=>$user_id\r\n \t\t\t);\r\n \t\r\n \t\t\t$dbc->addMoneyToCapitalDetail($_arr);\r\n \t\t\t \r\n \t\t\t$rs = $dbc->DetechCapitalExist($user_id, $curr_type,null);\r\n \t\t\tif(!empty($rs)){//update old user\r\n \t\t\t\t$arr = array(\r\n \t\t\t\t\t\t'amount'=>$rs['amount']-$amount\r\n \t\t\t\t);\r\n \t\t\t\t$dbc->updateCurrentBalanceById($rs['id'],$arr);\r\n \t\t\t}else{\r\n \t\t\t\t$date = date(\"Y-m-d H:i:s\");\r\n \t\t\t\t$arr =array(\r\n \t\t\t\t\t\t'amount'=>-$amount,\r\n \t\t\t\t\t\t'currencyType'=>$curr_type,\r\n \t\t\t\t\t\t'userid'=>$user_id,\r\n \t\t\t\t\t\t'statusDate'=>$date\r\n \t\t\t\t);\r\n \t\t\t\t$dbc->AddCurrentBalanceById($arr);\r\n \t\t\t}\r\n \t\r\n \t\t}\r\n \t\t \r\n \t\t$process = 0;\r\n \t}\n }", "public function offerClosedForADay() {\n\t\treturn response( 1, 200 )\n\t\t\t->cookie( 'doodleOffer', \"mrksohag\", config( 'constant.popupHideTimeInMinutes' ) );\n\t}", "public function close(Request $request)\n {\n \n // Validate the inputs\n $validator = \\Validator::make($request->all(), [\n 'order' => 'required|exists:orders,id',\n 'price' => 'required|regex:/^\\d*(\\.\\d{2})?$/',\n 'delivery_price' => 'regex:/^\\d*(\\.\\d{2})?$/'\n ]);\n\n // Check for errors\n if ($validator->fails()) {\n return \\Response::json([\n 'error' => [\n 'message' => 'Validation failed',\n 'code' => 400,\n 'fields' => $validator->errors()\n ]\n ], 400);\n }\n\n $user = \\JWTAuth::parseToken()->toUser();\n\n // Check if the user is shop\n if ($user->type != 2) {\n return \\Response::json([\n 'error' => [\n 'message' => 'You don\\'t have permission to access this resource!',\n 'description' => 'Only shops can perform this action.',\n 'code' => 401\n ]\n ], 401);\n }\n\n $proposal = $user->shop->proposals->where('order_id', (string)$request->order)->first();\n\n // Check if the shop has permission to access this order\n if (!$proposal) {\n return \\Response::json([\n 'error' => [\n 'message' => 'You don\\'t have permission to access this resource!',\n 'description' => 'No proposal was found by the user for this order.',\n 'code' => 401\n ]\n ], 401);\n }\n\n $order = $proposal->order;\n\n // Check if the status of the order allows this change\n if ($order->status != 3) {\n return \\Response::json([\n 'error' => [\n 'message' => 'You don\\'t have permission to perform this action!',\n 'description' => 'The status of the order should be 3. The order status is ' . $order->status . '.',\n 'code' => 401\n ]\n ], 401);\n }\n \n // Check if the shop owns the accepted order\n if ($order->proposal_id != $proposal->id) {\n return \\Response::json([\n 'error' => [\n 'message' => 'You don\\'t have permission to access this resource!',\n 'description' => 'You are not owner of the accepted proposal.',\n 'code' => 401\n ]\n ], 401);\n }\n\n // Save the changes\n $order->status = 5;\n $order->save();\n\n $proposal->status = 5;\n $proposal->price = $request->price ? $request->price : null;\n $proposal->delivery_price = $request->delivery_price ? $request->delivery_price : null;\n $proposal->processed_at = date('Y-m-d H:i:s');\n $proposal->save();\n\n $order->proposal;\n\n // Send notification to the customer\n $data = ['order_id' => $order->id];\n $this->dispatch(new SendPushNotifications($order->customer->user_id, 'הזמנתך מתבצעת, מחיר עודכן', $data));\n // NotificationController::push($order->customer->user_id, 'הזמנתך מתבצעת, מחיר עודכן', $data);\n\n return \\Response::json([\n 'success' => 'The order was updated successfully.',\n 'data' => $order\n ], 200);\n\n }", "public function conciergeRequestAction(Request $request){\n if($request->isMethod(\"post\")){\n try{\n switch ($request['action']) {\n case \"cancelled\":\n $request['status'] = 3; \n $response['message'] = \"Request cancelled successfully.\"; \n break;\n default:\n $request['status'] = 2; \n $response['message'] = \"Request approved successfully.\"; \n } \n ConciergeRequests::where([['request_id','=',$request['request_id']],['concierge_id','=',$request['concierge_id']]])->update(['current_status'=>$request['status']]);\n $response['status'] = \"true\"; \n }catch(Exception $e){\n $response['status'] = \"false\"; \n $response['data'] = [];\n $response['message'] = $e->getMessage(); \n }\n $this->response($response); \n }\n }", "function withdrawal($account, $amount, $id_user) {\r\n\r\n //Crear la conexión\r\n $base = conection();\r\n\r\n //Verificar que el usuario tenga disponible ese dinero\r\n $sql = \"SELECT balance, pending FROM users WHERE id = :id_user\";\r\n\r\n //Preparar consulta\r\n $result = $base->prepare($sql);\r\n\r\n //Ejecutar consulta\r\n $result->execute(array(\":id_user\"=>$id_user));\r\n\r\n //Contar registros encontrados\r\n $count = $result->rowCount();\r\n \r\n //Verificar si se ingresó el registro\r\n if ($count > 0) {\r\n\r\n while ($row=$result->fetch(PDO::FETCH_ASSOC)) {\r\n $balance = $row[\"balance\"];\r\n $pending = $row[\"pending\"];\r\n }\r\n\r\n if ($balance >= $amount) {\r\n\r\n //Restamos el dienro al usuario\r\n $new_balance = $balance - $amount;\r\n $new_pending = $pending + $amount;\r\n \r\n //Actualizamos el balance del usuario y agregamos el dinero pendiente\r\n $sql_new_balance = \"UPDATE `users` SET `balance`= :balance, `pending`= :pending WHERE id = :id_user\";\r\n\r\n //Preparar consulta\r\n $result_new_balance = $base->prepare($sql_new_balance);\r\n\r\n //Ejecutar consulta\r\n $result_new_balance->execute(array(\":balance\"=>$new_balance, \":pending\"=>$new_pending, \":id_user\"=>$id_user));\r\n\r\n //Actualizamos el balance del usuario y agregamos el dinero pendiente\r\n $sql_withdrawal = \"INSERT INTO `withdrawal`(`account`, `amount`, `date`, `id_user`) VALUES (:account, :amount , NOW(), :id_user)\";\r\n\r\n //Preparar consulta\r\n $result_withdrawal = $base->prepare($sql_withdrawal);\r\n\r\n //Ejecutar consulta\r\n $result_withdrawal->execute(array(\":account\"=>$account, \":amount\"=>$amount, \":id_user\"=>$id_user));\r\n\r\n $count_withdrawal = $result_withdrawal->rowCount();\r\n\r\n if ($count_withdrawal > 0) {\r\n\r\n //Enviar email\r\n $msg = \"The user with the id $id_user has requested a withdrawal in the amount of $amount for their Payeer account $account\";\r\n \r\n mail(\"[email protected]\", \"New Withdrawal request - $id_user\", $msg);\r\n\r\n return \"<b>Your withdrawal request has been sent</b>\\nIn less than 24 hours your order will be processed\";\r\n }\r\n\r\n }else {\r\n return \"You don't have enough funds\";\r\n }\r\n \r\n }else {\r\n return \"fatal error 3\";\r\n }\r\n\r\n}", "public function redeem_request_list(Request $request) {\n\n \n Log::info(\"redeem_request_list\");\n\n $currency = Setting::get('currency');\n\n $model = RedeemRequest::where('user_id' , $request->id)\n ->select('request_amount' , \n DB::raw(\"'$currency' as currency\"),\n DB::raw('DATE_FORMAT(created_at , \"%e %b %y\") as requested_date'),\n 'paid_amount',\n DB::raw('DATE_FORMAT(updated_at , \"%e %b %y\") as paid_date'),\n 'status',\n 'id as redeem_request_id'\n )\n ->orderBy('created_at', 'desc')\n ->get();\n \n $redeem_amount = Redeem::where('user_id' , $request->id)\n ->select('total' , 'paid' , 'remaining' , 'status', DB::raw(\"'$currency' as currency\"))\n ->first();\n\n $data = [];\n\n foreach ($model as $key => $value) {\n \n $redeem_status = redeem_request_status($value->status);\n\n $redeem_cancel_status = in_array($value->status, [REDEEM_REQUEST_SENT , REDEEM_REQUEST_PROCESSING]) ? 1 : 0;\n \n $data[] = [\n 'redeem_request_id'=>$value->redeem_request_id,\n 'request_amount' => $value->request_amount,\n 'redeem_status'=>$redeem_status,\n 'currency'=>$value->currency,\n 'requested_date'=>$value->requested_date,\n 'paid_amount'=>$value->paid_amount,\n 'paid_date'=>$value->paid_amount > 0 ? $value->paid_date : '-',\n 'redeem_cancel_status'=>$redeem_cancel_status,\n 'status'=>$value->status\n ];\n\n }\n\n if (!$redeem_amount) {\n\n $redeem_amount = ['total'=> \"0.00\", 'paid'=>\"0.00\",'remaining'=>\"0.00\",'status'=>\"0.00\",'currency'=>$currency , 'status' => 1];\n\n } else {\n $redeem_amount->status = $redeem_amount->remaining > Setting::get('minimum_redeem') ? 1 : 0; \n }\n\n $response_array = ['success' => true , 'data' => $data, 'redeem_amount'=>$redeem_amount];\n\n return response()->json($response_array , 200);\n \n }", "function openstack_change_funds($invoiceid, $substract=False) {\n $items = Capsule::table('tblinvoiceitems')->where('invoiceid', '=', $invoiceid)->get();\n\n // Retrieve the invoice total paid.\n // If this invoice was not fully paid, we do not substract from Fleio.\n // There is no other way to prevent subtracting from Fleio when cancelling an invoice and marking it unpaid afterwards\n try {\n $balance = Capsule::table('tblaccounts as ta')\n ->where('ta.invoiceid', '=', $invoiceid)\n ->join('tblinvoices as ti', 'ta.invoiceid', '=', 'ti.id')\n ->select(Capsule::raw('SUM(ta.amountin)-SUM(ta.amountout)-ti.total as balance'))\n ->value('balance');\n } catch (Exception $e) {\n logActivity($e->getMessage());\n $balance = false;\n } \n $cost_by_service = array();\n $promo_by_service = array();\n foreach($items as $item) {\n # NOTE(tomo): Check if relid is set and not an empty string\n if (($item->relid == '') || !isset($item->relid)) {\n continue;\n }\n if ($item->type == 'PromoHosting') {\n # NOTE(tomo): Do nothing with $promo_by_service. Just don't add it\n # to the final amount to avoid incorrect credit addition in Fleio\n if (isset($promo_by_service[$item->relid])) {\n $promo_by_service[$item->relid] += $item->amount;\n } else {\n $promo_by_service[$item->relid] = $item->amount;\n }\n } else {\n if (isset($cost_by_service[$item->relid])) {\n $cost_by_service[$item->relid] += $item->amount;\n } else {\n $cost_by_service[$item->relid] = $item->amount;\n }\n }\n }\n\n foreach($items as $item) {\n if (($item->type != 'Hosting') || !isset($cost_by_service[$item->relid])) {\n continue;\n }\n # We now know that relid is a Hosting package (not a Domain for example)\n $service = FleioUtils::getServiceById($item->relid);\n if ($service->servertype == 'fleio') {\n # NOTE(tomo): Make sure the service is active. If it's not active and we don't handle this, the credit is lost.\n # NOTE(tomo): We currently handle this in the add/remove credit methods.\n $clientCurrency = getCurrency($item->userid);\n $defaultCurrency = getCurrency();\n $clientAmount = $cost_by_service[$item->relid]; // Amount + Setup and/or other related prices in client's currency\n # NOTE(tomo): Fleio needs to use the WHMCS default currency\n $amount = convertCurrency($clientAmount, 1, $clientCurrency['id']); // Amount in default currency.\n if ($amount == 0) {\n logActivity('Fleio: ignoring Service ID: '. $item->relid . ' with cost equal to 0 from Invoice ID: ' . $invoiceid);\n continue;\n }\n if ($substract && $balance != false && $balance >= 0) {\n logActivity('Fleio: ignoring Service ID: '. $item->relid .' from Invoice ID: ' . $invoiceid . ' with status Unpaid but fully paid');\n continue;\n }\n $fl = Fleio::fromServiceId($item->relid);\n if ($substract) {\n $msg_format = \"Fleio: removing credit for WHMCS User ID: %s with %.02f %s (%.02f %s from Invoice ID: %s)\";\n } else {\n $msg_format = \"Fleio: adding credit for WHMCS User ID: %s with %.02f %s (%.02f %s from Invoice ID: %s)\";\n }\n $msg = sprintf($msg_format, $item->userid, $amount, $defaultCurrency[\"code\"], $clientAmount, $clientCurrency[\"code\"], $invoiceid);\n logActivity($msg);\n # TODO(tomo): We use the userid which can be a contact ?\n try {\n $addCredit = (!$subtract); // Add credit or subtract, boolean\n $response = $fl->clientChangeCredit($addCredit, $amount, $defaultCurrency[\"code\"], $clientCurrency[\"rate\"], $clientAmount, $clientCurrency[\"code\"], $invoiceid);\n } catch (FlApiException $e) {\n logActivity(\"Unable to update the client credit in Fleio: \" . $e->getMessage()); \n return;\n }\n logActivity(\"Fleio: successfully changed client credit with \".$amount.\" \".$defaultCurrency[\"code\"]. \" for Fleio client id: \".$response['client'].\". New Fleio balance: \".$response['credit_balance'].\" \".$defaultCurrency[\"code\"]); \n }\n }\n}", "public function canBeWithdrawn()\n {\n return $this->isUnderConsideration() || ($this->isAwaitingFee() && $this->issueFeeOverdue());\n }", "private function sellTrasactionPendingAddsMoney(){\n\n }", "public function upcomingCreditBG(){\n $where = \"(SELECT DATEDIFF(credit.date_withdrawal, '$this->curDate') AS days) < 14\";\n $credit = $this->db\n ->select(\"credit.*, principal.name\")\n ->from('credit')\n ->join('purchase_order', 'purchase_order.id_purchase_order = credit.id_purchase_order')\n ->join('principal', 'principal.id_principal = purchase_order.id_principal')\n ->where('credit.payment_type', 'bg')\n ->where('credit.status', 0)\n ->where($where)\n ->get()\n ->result();\n return $credit;\n }", "public function confirm()\n {\n //transaction id\n $fee = $this->wsRequest->getParam('fee', 0);\n $amount = $this->wsRequest->requireNumericAndPositive('amount');\n $transactionId = $this->wsRequest->requireNumericAndPositive('transaction_id');\n $controlNumber = $this->wsRequest->requireNumericAndPositive('control_number');\n\n $account = Session::getAccount();\n $transaction = Session::getTransaction();\n $transaction->restore($transactionId);\n if(!$transaction->getTransactionId()){\n throw new TransactionException(\"This transaction not exist or not can be loaded: \" . $transactionId);\n }else{\n $this->wsRequest->putParam('type', $transaction->getAgencyTypeId());\n }\n\n if($transaction->getTransactionStatusId() != Transaction::STATUS_REQUESTED && $transaction->getTransactionStatusId() != Transaction::STATUS_REJECTED){\n if($transaction->getTransactionStatusId() == Transaction::STATUS_CANCELED && $transaction->getProviderId() != Dinero::PROVIDER_ID){\n throw new TransactionException(\"Transaction has expired. Valid time is 48 hours to confirm.\");\n }elseif($transaction->getTransactionStatusId() == Transaction::STATUS_EXPIRED){\n throw new TransactionException(\"Transaction abandoned after 48 hours without re-submit.\");\n }else{\n throw new TransactionException(\"Transaction cannot be confirmed since the current status is: \" . $transaction->getTransactionStatus());\n }\n }\n\n //validate customer\n $customerRequest = new Customer();\n $customerRequest->restoreFromRequest($this->wsRequest);\n $newCustomerName = strtoupper($customerRequest->getCustomer());\n $customerTransaction = Session::getCustomer($transaction->getCustomerId());\n $originalCustomerName = strtoupper($customerTransaction->getCustomer());\n $percent = Util::similarPercent($newCustomerName, $originalCustomerName);\n if($newCustomerName != $originalCustomerName && $percent >= CoreConfig::CUSTOMER_SIMILAR_PERCENT_UPDATE){\n $customerTransaction->setFirstName($customerRequest->getFirstName());\n $customerTransaction->setLastName($customerRequest->getLastName());\n $customerUpdated = $customerTransaction->update();\n $username = $transaction->getUsername();\n if($customerUpdated){\n Log::custom('UpdateCustomer', \"Customer updated | Username: $username Original: $originalCustomerName New: $newCustomerName Percent: $percent%\");\n }else{\n Log::custom('UpdateCustomer', \"Customer not updated | Username: $username Original: $originalCustomerName New: $newCustomerName Percent: $percent%\");\n }\n }\n\n $transaction->setFee($fee);\n $transaction->setAmount($amount);\n $transaction->setControlNumber($controlNumber);\n $transaction->setModifiedBy($account->getAccountId());\n\n $provider = $transaction->getProvider();\n $confirm = $provider->confirm();\n if(!$confirm){\n throw new TransactionException(\"Transaction cannot be confirmed. Please try again in a few minutes!\");\n }\n\n //update transaction after the validation of the data\n $transaction->setTransactionStatusId(Transaction::STATUS_SUBMITTED);\n $transaction->setNote('');\n $transaction->setReason('');\n $transaction->update();\n\n $wsResponse = new WSResponseOk();\n $wsResponse->addElement('transaction', $transaction);\n\n return $wsResponse;\n }", "protected function get_request(){\n\t\treturn \"value_cashflows\";\n\t}", "function wp_aff_check_clickbank_transaction() {\n if (WP_AFFILIATE_ENABLE_CLICKBANK_INTEGRATION == '1') {\n if (isset($_REQUEST['cname']) && isset($_REQUEST['cprice'])) {\n $aff_id = wp_affiliate_get_referrer();\n if (!empty($aff_id)) {\n $sale_amt = strip_tags($_REQUEST['cprice']);\n $txn_id = strip_tags($_REQUEST['cbreceipt']);\n $item_id = strip_tags($_REQUEST['item']);\n $buyer_email = strip_tags($_REQUEST['cemail']);\n $debug_data = \"Commission tracking debug data from ClickBank transaction:\" . $aff_id . \"|\" . $sale_amt . \"|\" . $buyer_email . \"|\" . $txn_id . \"|\" . $item_id;\n wp_affiliate_log_debug($debug_data, true);\n wp_aff_award_commission_unique($aff_id, $sale_amt, $txn_id, $item_id, $buyer_email);\n }\n }\n }\n}", "public function getDiscountCanceled();", "public function actionWithdraw(){\n $my_var = \\Yii::$app->request->post();\n\n //playing safe\n $session = \\Yii::$app->session;\n try{\n //begin transaction\n $connection = \\Yii::$app->inventorydb;\n $transaction = $connection->beginTransaction();\n\n if($my_var){//condition to check if there are items to be withdraw\n\n $model = new InventoryWithdrawal;\n $model->created_by=$this->getuserid();\n $model->withdrawal_datetime=date('Y-m-d');\n $model->lab_id=1; //check if the user has lab_id\n $model->total_qty=0;\n $model->total_cost=0;\n $model->remarks=\"Transaction made from mobile\";\n if(!$model->save()){ //if the header failed to save\n $transaction->rollBack();\n throw new \\Exception(\"Cannot save header of Withdrawal Items!\", 1);\n }\n\n // the format is objects inside an array\n foreach($my_var as $key) {\n $entry = InventoryEntries::findOne($key['id']); //get the entries record\n \n if($key['quantity']>$entry->quantity_onhand){ // cart qty > withdrawable ~> throw ERR\n $transaction->rollBack();\n throw new \\Exception(\"Withdrawable Quantity is less than the desired Quantity!\", 1);\n }\n\n //subtract qty in Entries tbl\n $entry->quantity_onhand = (int)$entry->quantity_onhand - (int)$key['quantity']; \n if($entry->save()){\n $func = new Functions();\n $func->checkreorderpoint($entry->product_id);\n //create record of withdrawaldetails item\n $item = new InventoryWithdrawaldetails();\n $item->inventory_withdrawal_id =$model->inventory_withdrawal_id;\n $item->inventory_transactions_id=$key['id'];\n $item->quantity=$key['quantity'];\n $item->price=$entry->amount*(int)$key['quantity'];\n $item->withdarawal_status_id=2;\n $item->save();\n }\n }\n\n $transaction->commit();\n return $this->asJson([\n 'success' => true,\n 'message' => 'Processed Successfully!',\n ]);\n }else{\n return $this->asJson([\n 'success' => false,\n 'message' => 'Cart Empty',\n ]); \n }\n\n }catch (\\Exception $e) {\n $transaction->rollBack();\n throw $e;\n }\n\n }", "public function updateTxnForChannelAndStatus(Request $request)\n {\n// $validator= $request->validate([\n// 'payment_type' =>'required',\n// 'status' => 'required',\n// 'invoice' => 'required|exists:remittances,invoice',\n// 'reference' => 'required',\n// ]);\n\n $validator = \\Validator::make($request->all(), [\n 'payment_type' =>'required',\n 'status' => 'required',\n 'invoice' => 'required|exists:remittances,invoice',\n 'reference' => 'required',\n ]);\n\n if ($validator->fails()) {\n return response()->json($validator->errors(), 422);\n }\n\n\n $validate =[];\n $validate['payment_type'] = $request->input('payment_type');\n $validate['status'] = $request->input('status');\n $validate['invoice'] = $request->input('invoice');\n $validate['reference'] = $request->input('reference');\n\n\n DB::beginTransaction();\n try {\n\n $remit = Remittance::where('invoice', $validate['invoice'] );\n\n $remits = $remit->get();\n\n if($remits[0]['status'] == 'success')\n {\n return response()->json([\n 'status' => 'error',\n 'data' => 'transaction has updated before'\n ]);\n }\n\n $remit->update([\n 'status' => 'success',\n 'payment_type'=>$validate['payment_type'],\n 'transaction_reference'=>$validate['reference'],\n 'mac_id'=> request()->mac_id\n ]);\n\n\n $remit_details = $remit->get();\n\n //subtract amount from agent's cash remittance\n\n $agent = Agent::where('id', $remit_details[0]['agent_id']);\n $agent->decrement('cash_remittance', $remit_details[0]['amount']);\n\n DB::commit();\n\n return response()->json([\n 'status' => 'success',\n 'data' => $remit_details\n ]);\n\n\n }\n catch(\\Exception $ex)\n {\n if (isset($ex->errorInfo[2])) {\n $msg = $ex->errorInfo[2];\n } else {\n $msg = $ex->getMessage();\n }\n // rollback operation for failure\n DB::rollback();\n\n return response()->json([\n 'status' => 'error',\n 'data' => $msg\n ]);\n\n }\n\n\n }", "public function decline() {\n header('Content-type: application/json');\n $requestId = input(\"requestid\");\n Database::table(\"requests\")->where(\"id\", $requestId)->update(array(\"status\" => \"Declined\"));\n $request = Database::table(\"requests\")->where(\"id\", $requestId)->first();\n $sender = Database::table(\"users\")->where(\"id\", $request->sender)->first();\n $documentLink = env(\"APP_URL\").\"/document/\".$request->document;\n $send = Mail::send(\n $sender->email, \"Signing invitation declined by \".$request->email,\n array(\n \"title\" => \"Signing invitation declined.\",\n \"subtitle\" => \"Click the link below to view document.\",\n \"buttonText\" => \"View Document\",\n \"buttonLink\" => $documentLink,\n \"message\" => $request->email.\" has declined the signing invitation you had sent. Click the link above to view the document.<br><br>Thank you<br>\".env(\"APP_NAME\").\" Team\"\n ),\n \"withbutton\"\n );\n $actionTakenBy = escape($request->email);\n /*\n * Check, whether IP address register is allowed in .env\n * If yes, then capture the user's IP address\n */\n if (env('REGISTER_IP_ADDRESS_IN_HISTORY') == 'Enabled') {\n $actionTakenBy .= ' ['.getUserIpAddr().']';\n }\n $activity = '<span class=\"text-primary\">'.$actionTakenBy.'</span> declined a signing invitation of this document.';\n Signer::keephistory($request->document, $activity, \"default\");\n $notification = '<span class=\"text-primary\">'.escape($request->email).'</span> declined a signing invitation of this <a href=\"'.url(\"Document@open\").$request->document.'\">document</a>.';\n Signer::notification($sender->id, $notification, \"decline\");\n if (!$send) { exit(json_encode(responder(\"error\", \"Oops!\", $send->ErrorInfo))); }\n exit(json_encode(responder(\"success\", \"Declined!\", \"Request declined and sender notified.\",\"reload()\")));\n }", "public function create(Request $request)\n {\n\n\n\n\n if(Auth::guard('admin')->check())\n $LogInId=Auth::guard('admin')->user()->id;\n else\n $LogInId=0;\n\n $date=date('Y-m-d');\n $dateTime =date('Y-m-d H:i:s');\n \n\n\n\n\n\n if($request->process=='withDrawTcnList')\n {\n\n $fDate = $request->fDate.' 00:00:00';\n $tDate = $request->tDate.' 23:59:59';\n\n $fDate = Carbon::createFromFormat('d-m-Y H:i:s', $fDate)->toDateTimeString();\n $tDate = Carbon::createFromFormat('d-m-Y H:i:s', $tDate)->toDateTimeString();\n\n $details = tcnrequest::join('memberregistrations AS mem','tcnrequests.userId','=','mem.userId')->join('withdrawalrequests AS wd','wd.tcnId','=','tcnrequests.id');\n\n $details=$details->where('wd.type','Normal Withdrawal');\n\n if($request->btn=='btn1')\n {\n if($request->tcnType!='All')\n $details=$details->where('tm.id',$request->tcnType);\n\n if($request->status!='All')\n $details=$details->where('wd.status',$request->status);\n\n if($request->userId!='All')\n $details=$details->where('tcnrequests.userId',$request->userId);\n\n if($request->checkDate=='true')\n $details=$details->whereBetween('wd.approvalDate', [$fDate, $tDate]);\n }\n if($request->btn=='btn2')\n {\n $details=$details->where('mem.code',$request->memberCode);\n }\n $details=$details->select('tcnrequests.id as tcnId','tcnrequests.*','mem.name as name','mem.code as code','wd.id as withDrawId','wd.*');\n\n $details=$details->get();\n\n $count=count($details);\n\n return view('admin.withdraw.normalWithDrawAjax',compact('request','details','count'));\n }\n\n\n\n\n\n if($request->process=='cancelRequest')\n {\n //return $request->withDrawId;\n\n // $update1 = DB::table('tcnrequests')->where('id', $request->tcnId)->update(['withDrawStatus' => 'Cancel']);\n\n $update2 = DB::table('withdrawalrequests')->where('id', $request->withDrawId)->update(['status' => 'Cancel','approvalId' => $LogInId, 'approvalDate' => $dateTime, 'remarks' => $request->remarks]);\n\n $type='WITHDRAWAL';\n $report='withdrawal request is cancelled tcn Id: '. $request->tcnId.' - withdrawal Id :'.$request->withDrawId;\n Controller::logReport($type,$report);\n\n }\n\n\n\n\n\n if($request->process=='getHeeraAccount')\n {\n return $table = DB::table('banks')->where('accountNumber', $request->heeraAccountNumber)->where('typeOfAccount','heera account')->count();\n\n }\n\n\n\n\n\n\n\n\n if($request->process=='getMembers')\n {\n $table = DB::table('memberregistrations')->join('tcnrequests','tcnrequests.userId','=','memberregistrations.userId');\n\n $table=$table-> whereNotIn('tcnrequests.withDrawId',['0']);\n $table=$table-> whereNotIn('tcnrequests.withDrawStatus',[' ']);\n \n if($request->tcnType!='All')\n $table=$table->where('tcnrequests.tcn_id',$request->tcnType);\n\n if($request->status!='All')\n $table=$table->where('tcnrequests.withDrawStatus',$request->status);\n\n $table=$table->select('memberregistrations.code as username','memberregistrations.userId');\n\n $table=$table->groupBy('memberregistrations.userId');\n\n $table=$table->get();\n \n return $table;\n\n }\n }", "function bunq_CreateRequest($amount, $description, $redirect, $user = 0, $account = 0) {\n\n\t$apiContext = ApiContext::restore(ApiContext::FILENAME_CONFIG_DEFAULT);\n\t$users = User::listing($apiContext)->getValue();\n\t//$user = $users[$user]->getUserPerson();\n\t$user = $users[$user]->getUserCompany();\n\t$userId = $user->getId();\n\t$monetaryAccounts = MonetaryAccount::listing($apiContext, $userId)->getValue();\n\t$monetaryAccount = $monetaryAccounts[$account]->getMonetaryAccountBank();\n\t$monetaryAccountId = $monetaryAccount->getId();\n\t$requestMap = [\n\t\tBunqMeTab::FIELD_BUNQME_TAB_ENTRY => [\n\t\t\tBunqMeTabEntry::FIELD_AMOUNT_INQUIRED => new Amount($amount, 'EUR'),\n\t\t\tBunqMeTabEntry::FIELD_REDIRECT_URL => $redirect,\n\t\t\tBunqMeTabEntry::FIELD_DESCRIPTION => $description\n\t\t]\n\t];\n\t$createBunqMeTab = BunqMeTab::create($apiContext, $requestMap, $userId, $monetaryAccountId)->getValue();\n\t$bunqMeRequest = BunqMeTab::get($apiContext, $userId, $monetaryAccountId, $createBunqMeTab)->getValue();\n\t$r[\"id\"] = $bunqMeRequest->getId();\n\t$r[\"uuid\"] = $bunqMeRequest->getBunqmeTabEntry()->getUuid();\n\t$r[\"amount\"] = $bunqMeRequest->getBunqmeTabEntry()->getAmountInquired()->getValue();\n\t$r[\"paymentlink\"] = $bunqMeRequest->getBunqmeTabShareUrl();\n\t$r[\"status\"] = $bunqMeRequest->getBunqmeTabEntry()->getStatus();\n\t$r[\"description\"] = $bunqMeRequest->getBunqmeTabEntry()->getDescription();\n\t$r[\"redirecturl\"] = $bunqMeRequest->getBunqmeTabEntry()->getRedirectUrl();\n\t$r[\"raw\"] = $bunqMeRequest;\n\treturn $r;\n\n}", "public function earnings( Request $request ) {\n\t\t$provider =\n\t\t\tProvider::where( 'id', Auth::guard( 'provider' )->user()->id )\n\t\t\t\t->with( 'service', 'accepted', 'cancelled' )\n\t\t\t\t->get();\n\n\t\t$weekly = UserRequests::where( 'provider_id',\n\t\t\tAuth::guard( 'provider' )->user()->id )\n\t\t\t->with( 'payment' )\n\t\t\t->where( 'created_at', '>=', Carbon::now()->subWeekdays( 7 ) )\n\t\t\t->get();\n\n\t\t$weekly_sum = UserRequestPayment::whereHas( 'request',\n\t\t\tfunction ( $query ) {\n\t\t\t\t$query->where( 'provider_id',\n\t\t\t\t\tAuth::guard( 'provider' )->user()->id );\n\t\t\t\t$query->where( 'created_at',\n\t\t\t\t\t'>=',\n\t\t\t\t\tCarbon::now()->subWeekdays( 7 ) );\n\t\t\t} )\n\t\t\t->sum( 'provider_pay' );\n\n\t\t$today = UserRequests::where( 'provider_id',\n\t\t\tAuth::guard( 'provider' )->user()->id )\n\t\t\t->where( 'created_at', '>=', Carbon::today() )\n\t\t\t->count();\n\n\t\t$fully = UserRequests::where( 'provider_id',\n\t\t\tAuth::guard( 'provider' )->user()->id )\n\t\t\t->with( 'payment', 'service_type' )->orderBy( 'id', 'desc' );\n\n\n\t\t$fully_sum = UserRequestPayment::whereHas( 'request',\n\t\t\tfunction ( $query ) {\n\t\t\t\t$query->where( 'provider_id',\n\t\t\t\t\tAuth::guard( 'provider' )->user()->id );\n\t\t\t} )\n\t\t\t->sum( 'provider_pay' );\n\t\t//get dispute reason\n\t\t$dispute_reason = Dispute::where(['dispute_type'=>'provider','status'=>'active'])->pluck('dispute_name');\n\t\t//get dispute content\n\t\t$dispute_content = UserRequestDispute::where(['dispute_type'=>'provider', 'provider_id'=>Auth::guard( 'provider' )->user()->id])->get();\n\t\t$dispute_id = UserRequestDispute::where(['dispute_type'=>'provider', 'provider_id'=>Auth::guard( 'provider' )->user()->id])->pluck('request_id')->toArray();\n\n\t\t$revenue = UserRequestPayment::select( DB::raw(\n\t\t\t'SUM(provider_pay) as overall, SUM(commision + peak_comm_amount + waiting_comm_amount) as commission'\n\t\t) )->where('provider_id',Auth::guard('provider')->user()->id)->get();\n\n//dd($dispute_id);\n\t\tif ( $request->from_date && $request->to_date ) {\n\t\t\tif ( $request->from_date == $request->to_date ) {\n\t\t\t\t$fully->whereDate( 'created_at',\n\t\t\t\t\tdate( 'Y-m-d', strtotime( $request->from_date ) ) );\n\t\t\t} else {\n\t\t\t\t$fully->whereBetween( 'created_at',\n\t\t\t\t\t[\n\t\t\t\t\t\tCarbon::createFromFormat( 'Y-m-d',\n\t\t\t\t\t\t\t$request->from_date ),\n\t\t\t\t\t\tCarbon::createFromFormat( 'Y-m-d', $request->to_date ),\n\t\t\t\t\t] );\n\t\t\t}\n\t\t}\n\t\t$fully = $fully->get();\n\n\t\t$dates['yesterday'] = Carbon::yesterday()->format( 'Y-m-d' );\n\t\t$dates['today'] = Carbon::today()->format( 'Y-m-d' );\n\t\t$dates['pre_week_start'] =\n\t\t\tdate( \"Y-m-d\", strtotime( \"last week monday\" ) );\n\t\t$dates['pre_week_end'] =\n\t\t\tdate( \"Y-m-d\", strtotime( \"last week sunday\" ) );\n\t\t$dates['cur_week_start'] =\n\t\t\tCarbon::today()->startOfWeek()->format( 'Y-m-d' );\n\t\t$dates['cur_week_end'] =\n\t\t\tCarbon::today()->endOfWeek()->format( 'Y-m-d' );\n\t\t$dates['pre_month_start'] =\n\t\t\tCarbon::parse( 'first day of last month' )->format( 'Y-m-d' );\n\t\t$dates['pre_month_end'] =\n\t\t\tCarbon::parse( 'last day of last month' )->format( 'Y-m-d' );\n\t\t$dates['cur_month_start'] =\n\t\t\tCarbon::parse( 'first day of this month' )->format( 'Y-m-d' );\n\t\t$dates['cur_month_end'] =\n\t\t\tCarbon::parse( 'last day of this month' )->format( 'Y-m-d' );\n\t\t$dates['pre_year_start'] =\n\t\t\tdate( \"Y-m-d\", strtotime( \"last year January 1st\" ) );\n\t\t$dates['pre_year_end'] =\n\t\t\tdate( \"Y-m-d\", strtotime( \"last year December 31st\" ) );\n\t\t$dates['cur_year_start'] =\n\t\t\tCarbon::parse( 'first day of January' )->format( 'Y-m-d' );\n\t\t$dates['cur_year_end'] =\n\t\t\tCarbon::parse( 'last day of December' )->format( 'Y-m-d' );\n\t\t$dates['nextWeek'] =\n\t\t\tCarbon::today()->addWeek()->format( 'Y-m-d' );\n\n\t\t$from_date = $request ? $request->from_date : \"\";\n\t\t$to_date = $request ? $request->to_date : \"\";\n\n\t\treturn view( 'provider.payment.earnings',\n\t\t\tcompact( 'provider',\n\t\t\t\t'weekly',\n\t\t\t\t'fully',\n\t\t\t\t'today',\n\t\t\t\t'weekly_sum',\n\t\t\t\t'fully_sum',\n\t\t\t\t'dates',\n\t\t\t\t'from_date',\n\t\t\t\t'to_date',\n\t\t\t\t'dispute_reason',\n\t\t\t\t'dispute_content',\n\t\t\t\t'dispute_id',\n\t\t\t\t'revenue'\n\t\t\t\t) );\n\t}", "public function send_redeem_request(Request $request) {\n\n // Get admin configured - Minimum Provider Credit\n\n $minimum_redeem = Setting::get('minimum_redeem' , 1);\n\n // Get Provider Remaining Credits \n\n $redeem_details = Redeem::where('user_id' , $request->id)->first();\n\n if($redeem_details) {\n\n\n $remaining = $redeem_details->remaining;\n\n // check the provider have more than minimum credits\n\n if($remaining > $minimum_redeem) {\n\n $redeem_amount = abs($remaining - $minimum_redeem);\n\n // Check the redeems is not empty\n\n if($redeem_amount) {\n\n // Save Redeem Request\n\n $redeem_request = new RedeemRequest;\n\n $redeem_request->user_id = $request->id;\n\n $redeem_request->request_amount = $redeem_amount;\n\n $redeem_request->status = false;\n\n $redeem_request->save();\n\n // Update Redeems details \n\n $redeem_details->remaining = abs($redeem_details->remaining-$redeem_amount);\n\n $redeem_details->save();\n\n $response_array = ['success' => true];\n\n } else {\n\n $response_array = ['success' => false , 'error_messages' => Helper::error_message(159) , 'error_code' => 159];\n }\n\n } else {\n $response_array = ['success' => false , 'error_messages' => Helper::error_message(158) ,'error_code' => 158];\n }\n\n } else {\n $response_array = ['success' => false , 'error_messages' => Helper::error_message(161) , 'error_code' => 161];\n }\n\n\n return response()->json($response_array , 200);\n\n }", "public function getFinancialClosingValid() {\n $valid = false;\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n SELECT `isClosing`\n FROM `financesetting`\n WHERE `companyId`='\" . $this->getCompanyId() . \"'\n \";\n } else\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n SELECT [isClosing]\n FROM [financeSetting]\n WHERE [companyId] = '\" . $this->getCompanyId() . \"'\n \";\n } else\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n SELECT ISCLOSING AS \\\"isClosing\\\"\n FROM FINANCESETTING\n WHERE COMPANYID='\" . $this->getCompanyId() . \"'\n \";\n }\n\n try {\n $result = $this->q->fast($sql);\n } catch (\\Exception $e) {\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n if ($result) {\n $row = $this->q->fetchArray($result);\n $valid = $row['isClosing'];\n if ($valid == 1) {\n $valid = true;\n } else {\n $valid = false;\n }\n }\n return $valid;\n }", "public function getBaseDiscountCanceled();", "private function verifyRent(){\n\t\tglobal $db;\n\t\t$date_now = date('2018-10-18');\n\t\t$sql = $db->prepare(\"SELECT * FROM project01_stock WHERE vacancy = 'no'\");\n\t\t$sql->execute();\n\t\tif ($sql->rowCount()>0) {\n\t\t\t$sql = $sql->fetch();\n\t\t\t$rom_info = $sql;\n\n\t\t\t$sql = $db->prepare(\"UPDATE project01_stock SET vacancy = 'yes', date_init = '0000-00-00', date_end = '0000-00-00' WHERE date_end <= :date_end\");\n\t\t\t$sql->bindValue(\":date_end\", $date_now);\n\t\t\t$sql->execute();\n\t\t}\n\t}", "public function getContractExpirate()\n {\n $contractExpirate = false;\n foreach ($this->getContracts() as $contract ) {\n if($contract->getStatus() === 4 || $contract->getStatus() === 5 )\n $contractExpirate = true;\n }\n return $contractExpirate;\n }", "public function nilai(Request $request)\n {\n $client = new \\GuzzleHttp\\Client();\n $response = $client->request('POST', ENV('APP_URL_API').'web/Transaction/detail/jadwal_last_close', [\n 'form_params' => [\n 'data' => $request->data,\n 'status' => $request->status,\n ]\n ]);\n $responses = json_decode($response->getBody()); \n }", "function _wp_privacy_account_request_confirmed_message($request_id)\n {\n }", "function ticket_close($d){\n $url = $this->url.\"ticket_close\";\n $data['case_id'] =$d['case_id'] ;\n $data['action'] =$d['action'] ;\n $data['comfirm_closed_reason'] =$d['comfirm_closed_reason'] ;\n $data['submitter'] =$d['submitter'] ;\n $this->setTransactionToLog(\"method:\".__METHOD__);\n $result = $this->_exec($url,$data);\n }", "public function sentCreditRequest(BankCreditRequest $request) : BankCreditResponse\n {\n $yrequest = new YBankCreditApprove();\n $yrequest->setCredit($request->getAmount());\n $yrequest->setName($request->getCustomer());\n\n $sender = new YBankCreditSender();\n $sender->sendCreditForValidate($yrequest,$this);\n\n do {\n \\Thread.sleep(10000);\n echo \"YBank petición en espera...\";\n } while ($yresponse == null);\n\n $response = new BankCreditResponse();\n $response->setApproved($this->yresponse->getApproved() == \"Y\" ? true:false);\n\n return $response;\n }", "public function cartclose(Request $req){\n $items = Cart::where(\"user_id\", Auth::user()->id)->where(\"status\",0)->get();\n $cart_number = Cart::max('cart_number') + 1;\n foreach($items as $item){\n $item->status = 1;\n $item->cart_number = $cart_number;\n $item->save();\n }\n return view('/thankyou');\n }", "public function get_balance_sheet(Request $request)\n\t{\n\t \t$asset \t= AccountHead::where('name', 'asset')->first();\n\t \t$expense = AccountHead::where('name', 'expense')->first();\n\t \t$income = AccountHead::where('name', 'income')->first();\n\t \t$liability = AccountHead::where('name', 'liability')->first();\n\n\t \t$organization_id = Session::get('organization_id');\n\n\t \t$start_date = $request->start_date;\n\t \t$end_date = $request->end_date;\n\n\n\t \t$total_asset = $this->total_account_sp($organization_id, $asset->id, \"asset\", $start_date, $end_date);\n\n\t \t$total_liability = $this->total_account_sp($organization_id, $liability->id, \"liability\", $start_date, $end_date);\n\n\t \t$total_profit = $this->total_account_sp($organization_id, $income->id, \"income\", $start_date, $end_date);\n\n\t \t$total_loss = $this->total_account_sp($organization_id, $expense->id, \"expense\", $start_date, $end_date);\n\n\n\t\t$total_trial = DB::select(\"SELECT \n \t\tSUM(IF(closing_balance > 0,closing_balance,'0.00')) AS credit,\n \t\tSUM(IF(closing_balance < 0,closing_balance,'0.00')) AS debit\n\t\tFROM\n\t\t (SELECT \n\t\t\taccount_ledgers.id,\n\t\t\taccount_ledgers.display_name AS ledger,\n\t\t\tcredit_account.credit,\n\t\t\tdebit_account.debit,\n\t\t\tIF(\n\t\t\t opening_balance_type = 'Debit',\n\t\t\t ( COALESCE(credit_account.credit, 0) - COALESCE(debit_account.debit, 0)) - opening_balance,\n\t\t\t ( COALESCE(credit_account.credit, 0) - COALESCE(debit_account.debit, 0)) + opening_balance\n\t\t\t) AS closing_balance,\n\t\t\taccount_ledgers.display_name,\n\t\t\topening_balance,\n\t\t\topening_balance_type,\n\t\t\tIF(\n\t\t\t IF( opening_balance_type = 'Debit',\n\t\t\t\t( COALESCE(credit_account.credit, 0) - COALESCE(debit_account.debit, 0)) - opening_balance,\n\t\t\t\t( COALESCE(credit_account.credit, 0) - COALESCE(debit_account.debit, 0)) + opening_balance\n\t\t\t ) > 0, 'Cr','Dr' ) AS balance_type \n\t\t FROM\n\t\t\taccount_ledgers \n\t\t\tLEFT JOIN persons \n\t\t\t ON account_ledgers.person_id = persons.id \n\t\t\tLEFT JOIN businesses \n\t\t\t ON account_ledgers.business_id = businesses.id \n\t\t\tLEFT JOIN account_transactions \n\t\t\t ON account_transactions.debit_ledger_id = account_ledgers.id \n\t\t\tLEFT JOIN account_groups\n\t\t\t ON account_groups.id = account_ledgers.group_id\n\t\t\tLEFT JOIN account_heads \n\t\t\t ON account_groups.account_head = account_heads.id\n\t\t\tLEFT JOIN \n\t\t\t (SELECT \n\t\t\t\taccount_transactions.credit_ledger_id AS cr,\n\t\t\t\tMIN(account_entries.date) AS cr_date,\n\t\t\t\tSUM(\n\t\t\t\t account_transactions.amount\n\t\t\t\t) AS credit \n\t\t\t FROM\n\t\t\t\taccount_transactions \n\t\t\t\tLEFT JOIN account_entries \n\t\t\t\t ON account_transactions.entry_id = account_entries.id \n\t\t\t\t WHERE (account_entries.date BETWEEN '\".$start_date.\"' AND '\".$end_date.\"') AND account_entries.organization_id = \".Session::get('organization_id').\"\n\t\t\t\t AND account_entries.status = 1 \n\t\t\t GROUP BY cr) AS credit_account \n\t\t\t ON credit_account.cr = account_ledgers.id \n\t\t\tLEFT JOIN \n\t\t\t (SELECT \n\t\t\t\taccount_transactions.debit_ledger_id AS dr,\n\t\t\t\tMIN(account_entries.date) AS dr_date,\n\t\t\t\tSUM(\n\t\t\t\t account_transactions.amount\n\t\t\t\t) AS debit \n\t\t\t FROM\n\t\t\t\taccount_transactions \n\t\t\t\tLEFT JOIN account_entries \n\t\t\t\t ON account_transactions.entry_id = account_entries.id \n\t\t\t\t WHERE (account_entries.date BETWEEN '\".$start_date.\"' AND '\".$end_date.\"') AND account_entries.organization_id = \".Session::get('organization_id').\"\n\t\t\t\t AND account_entries.status = 1 \n\t\t\t GROUP BY dr) AS debit_account \n\t\t\t ON debit_account.dr = account_ledgers.id \n\t\t WHERE account_ledgers.organization_id = \".$organization_id.\" \n\t\t -- AND (COALESCE(credit_account.cr_date,debit_account.dr_date) BETWEEN '\".$start_date.\"' AND '\".$end_date.\"')\n\t\t GROUP BY account_ledgers.id \n\t\t ORDER BY account_ledgers.id) AS trial_balance \n\t\tWHERE closing_balance != 0 LIMIT 1\");\n\n\t \t$suspense = $total_trial[0]->credit - abs($total_trial[0]->debit);\n\n\n\t \t$assets_array = array();\n\n\t \t$assets_array = array_merge($this->traverse_group($asset->id, $start_date, $end_date, \"parent\", \"asset\", 'NULL', $assets_array), $this->traverse_group($asset->id, $start_date, $end_date, \"group\", \"asset\", 'NULL', $assets_array));\n\n\t \t//dd($assets_array);\n\n\t \t$assets_result = array();\n\t \t$assets_id = array(); \t \t\n\n\t\t foreach($assets_array as $asset) {\n\n\t\t\tif (!in_array($asset['id'], $assets_id)) {\n\t\t\t $assets_result[] = $asset;\n\t\t\t $assets_id[] = $asset['id'];\n\t\t\t}\n\t\t }\n\n\n\t \t$assets = Custom::tree($assets_result);\n\n\t \t$liabilities_array = array();\n\n\t \t$liabilities_array = array_merge($this->traverse_group($liability->id, $start_date, $end_date, \"parent\", \"liability\", 'NULL', $liabilities_array), $this->traverse_group($liability->id, $start_date, $end_date, \"group\", \"liability\", 'NULL', $liabilities_array));\n\n\t \t$liabilities_result = array();\n\t \t$liabilities_id = array();\n\n\t \tforeach($liabilities_array as $liability) {\n\n\t\t\tif (!in_array($liability['id'], $liabilities_id)) {\n\t\t\t $liabilities_result[] = $liability;\n\t\t\t $liabilities_id[] = $liability['id'];\n\t\t\t}\n\t \t}\n\n\t \n\t \t$liabilities = Custom::tree($liabilities_result); \n\n\t \t//dd($liabilities);\n\t \n\t \t$profit = isset($total_profit[0]->closing_balance) ? $total_profit[0]->closing_balance : 0;\n\t \t$loss = isset($total_loss[0]->closing_balance) ? $total_loss[0]->closing_balance : 0;\n\n\t \t$report = null;\n\n\t \tif(($profit > $loss) && (abs($profit) - abs($loss)) != 0) {\n\t\t $report = 'profit';\n\t \t} else if(($profit < $loss) && (abs($profit) - abs($loss)) != 0) {\n\t\t $report = 'loss';\n\t \t}\n\n\t \t$statement = array('report' => $report, 'report_amount' => abs($profit - $loss), 'profit' => $profit, 'loss' => $loss );\n\n\t \treturn response()->json(array('total_asset' => $total_asset, 'total_liability' => $total_liability, 'statement' => $statement, 'suspense' => $suspense, 'assets' => $assets, 'liabilities' => $liabilities));\n\t}", "public function test_amount_less_than_rate_cost()\n {\n\n\n\n $data=[\"amount\"=> 100,\n \"unpaid_appliance_rates\"=> 2,\n \"appliance_rate_cost\"=> 200,\n \"tariff_fixed_costs\"=> 160,\n \"price_per_kwh\"=> 700\n ];\n\n $response = $this->post('/api/transactions', $data);\n // $response->assertStatus(200);\n $response->assertJson( [\"data\"=> [\n \"type\"=> \"transaction\",\n \"attributes\"=> [\n \"paid_for_appliance_rates\"=> 0,\n \"fully_covered_appliance_rate\"=> 0,\n \"paid_for_fixed_tariff\"=> 100,\n \"paid_for_energy\"=> 0,\n \"topup_for_energy\"=> 0,\n \"sold_energy\"=> 0\n ]\n ]]);\n }", "function bunq_StatusRequest($id, $user = 0, $account = 0) {\n\n\t$apiContext = ApiContext::restore(ApiContext::FILENAME_CONFIG_DEFAULT);\n\t$users = User::listing($apiContext)->getValue();\n\t$user = $users[$user]->getUserCompany();\n\t$userId = $user->getId();\n\t$monetaryAccounts = MonetaryAccount::listing($apiContext, $userId)->getValue();\n\t$monetaryAccount = $monetaryAccounts[$account]->getMonetaryAccountBank();\n\t$monetaryAccountId = $monetaryAccount->getId();\n\t$bunqMeRequest = BunqMeTab::get($apiContext, $userId, $monetaryAccountId, $id)->getValue();\n\t$r[\"id\"] = $bunqMeRequest->getId();\n\t$r[\"uuid\"] = $bunqMeRequest->getBunqmeTabEntry()->getUuid();\n\t$r[\"amount\"] = $bunqMeRequest->getBunqmeTabEntry()->getAmountInquired()->getValue();\n\t$r[\"paymentlink\"] = $bunqMeRequest->getBunqmeTabShareUrl();\n\t$r[\"status\"] = $bunqMeRequest->getBunqmeTabEntry()->getStatus();\n\t$r[\"description\"] = $bunqMeRequest->getBunqmeTabEntry()->getDescription();\n\t$r[\"redirecturl\"] = $bunqMeRequest->getBunqmeTabEntry()->getRedirectUrl();\n\t// We still need to add the contents of resultInquiries[], but I can't test it so I didn't implement it.\n\t$r[\"raw\"] = $bunqMeRequest;\n\treturn $r;\n\n}", "public function upcomingDebitBG(){\n $where = \"(SELECT DATEDIFF(debit.date_withdrawal, '$this->curDate') AS days) < 14\";\n $debit = $this->db\n ->select(\"debit.*, customer.name\")\n ->from('debit')\n ->join('sales_order', 'sales_order.id_sales_order = debit.id_sales_order')\n ->join('customer', 'customer.id_customer = sales_order.id_customer')\n ->where('debit.payment_type', 'bg')\n ->where('debit.status', 0)\n ->where('sales_order.active', 1)\n ->where($where)\n ->get()\n ->result();\n return $debit;\n }", "public function bookCcavenu()\n {\n try\n {\n if(\\Session::has('userId'))\n {\n $param=$this->request->all();\n \n $data['tid']=time();\n $seat=$param['No_seats'];\n $rideid=$param['ride'];\n $fetchRide=DB::table('rides')->select('id','userId','offer_seat','available_seat','cost_per_seat','isDaily')->where('id',$rideid)->get();\n if(count($fetchRide)>0)\n {\n if($seat==0)\n {\n //if requested seat is zero\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,200);\n }\n else\n {\n if($fetchRide[0]->available_seat<$seat)\n {\n //error(requested seat not available)\n $response['data'] = array();\n $response['message'] = \"Requested seat is not available\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,200);\n }\n else\n {\n //\n if($fetchRide[0]->isDaily==1)\n {\n $total_price=27.5;\n }\n else\n {\n $seat_price=$fetchRide[0]->cost_per_seat*$seat;\n $tax=$seat_price*0.1;\n $total_price=$seat_price+$tax;\n }\n }\n }\n }\n else\n {\n //if ride not found\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,200);\n }\n\n $data['tid']=time();\n $data['merchant_id']=89903;\n $data['order_id']=$data['tid'];\n $data['amount']=$total_price;\n $data['currency']=\"INR\";\n $data['redirect_url']=\"http://sharemywheel.info/getsuccessPayment\";\n $data['cancel_url']=\"http://sharemywheel.info/getsuccessPayment\";\n $data['language']=\"EN\";\n $data['merchant_param1']=$rideid;//ride id\n $data['merchant_param2']=$total_price;//total amount\n $data['merchant_param3']=session('userId');//boooked user id\n $data['merchant_param4']=$seat;//no of seats\n $data['merchant_param5']=$fetchRide[0]->isDaily;//is daily \n $working_key='A087123D0EA8318575EA3EDDDF177F7E';\n $access_code='AVUD66DH35AD37DUDA';\n $merchant_data=\"\";\n \n foreach ($data as $key => $value){\n $merchant_data.=$key.'='.$value.'&';\n }\n\n $encrypted_data=$this->encrypt($merchant_data,$working_key);\n\n /* $rcvdString=decrypt($encrypted_data,$working_key); //Crypto Decryption used as per the specified working key.\n $order_status=\"\";\n $decryptValues=explode('&', $rcvdString);\n $dataSize=sizeof($decryptValues);\n\n for($i = 0; $i < $dataSize; $i++) \n {\n $information=explode('=',$decryptValues[$i]);\n echo '<tr><td>'.$information[0].'</td><td>'.$information[1].'</td></tr>';\n }\n\n exit; */\n\n $response['data'] = array(\"encrypt\"=>$encrypted_data,\"access\"=>$access_code);\n $response['message'] = \"success\";\n $response['erromessage']=array();\n $response['status'] = true;\n return response($response,200);\n }\n else\n {\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,200);\n }\n }\n catch(\\Exception $e)\n {\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,200);\n }\n }", "public function saveTransactionFromRequest($request_id,$message,$status,$adminccount)\n {\n list($count,$request) = Mp3music_Api_Cart::getFinanceAccountRequests(\"paymentrequest_id = \".$request_id,\"\",1,1);\n $re = $request[0];\n $insert_item = array($re['request_date'],$re['request_user_id'],$adminccount['user_id'],'','',$re['request_amount'],$re['request_payment_acount_id'],$adminccount['paymentaccount_id'],$status,'request') ;\n //print_r($insert_item); die;\n $db = Engine_Db_Table::getDefaultAdapter();\n $db->beginTransaction(); \n $l_table = Engine_Api::_()->getDbTable('transactionTrackings', 'mp3music'); \n $list = $l_table->createRow();\n $list->transaction_date = $insert_item[0];\n $list->user_seller = $insert_item[1];\n $list->user_buyer = $insert_item[2];\n $list->item_id = $insert_item[3];\n $list->item_type = $insert_item[4];\n $list->amount = $insert_item[5];\n $list->account_seller_id = $insert_item[6];\n $list->account_buyer_id = $insert_item[7];\n $list->transaction_status = $insert_item[8];\n $list->params = $insert_item[9];\n $list->save();\n try {\n $db->commit();\n } catch (Exception $ex) {\n $db->rollback();\n break;\n } \n }", "public function confirmPayment(){\n $response = $this->client->queryTransaction(Input::get('AccessCode'));\n $transactionResponse = $response->Transactions[0];\n\n if ($transactionResponse->TransactionStatus) {\n //echo 'Payment successful! ID: '.$transactionResponse->TransactionID;\n /*\n echo $transactionResponse->Options[0]['Value'].' <br/>';\n echo $transactionResponse->Options[1]['Value'].' <br/>';\n echo $transactionResponse->Options[2]['Value'];\n */\n $transaction = new IcePayTransaction();\n $transaction->user_id = Auth::user()->id;\n $transaction->tid = $transactionResponse->TransactionID; //transaction id or transaction bordereaux\n $transaction->sender_email = Auth::user()->email;//$payer['email']; //sender's email\n $transaction->receiver_email = $transactionResponse->Options[1]['Value']; //receiver's email or number\n $transaction->type = 'EWAY_'.$transactionResponse->Options[0]['Value'];\n $transaction->status = 'pending';//$transaction_json['related_resources'][0]['sale']['state'];\n $transaction->amount = $transactionResponse->TotalAmount / 100; //total amount deducted and transferred\n $transaction->currency = $transactionResponse->Options[2]['Value'];\n $transaction->save();\n \n $email = Auth::user()->email;//$payer['email'];\n $username = Auth::user()->username;\n \n Mail::send(['html'=>'emails.auth.transactions'], array('tdate' => date('Y-m-d H:i:s'),\n 'tid' => $transactionResponse->TransactionID,\n 'sender_email'=>Auth::user()->email,\n 'sender_number'=>Auth::user()->number,\n 'receiver_email'=>$transaction->receiver_email,\n 'receiver_number'=>$transaction->receiver_email,\n 'status'=>'PENDING',\n 'amount'=> ($transaction->amount - $transactionResponse->Options[3]['Value'] ) .' '.$transaction->currency,\n 'charge'=>$transactionResponse->Options[3]['Value'].' '.$transaction->currency,\n 'total'=>$transaction->amount . ' '.$transaction->currency,\n 'mode'=>$transaction->type)\n , function($message) use ($email, $username){\n\t\t \t\t\t$message->to(array($email,'[email protected]','[email protected]', '[email protected]'), $username)->subject('Transaction Receipt');\n\t\t\t \t});\n return Redirect::route('dashboard')\n\t\t\t \t->with('alertMessage', 'EWAY Transaction Successful');\n \n } else {\n $errors = str_split($transactionResponse->ResponseMessage); //previously splitte the string at the ', ' points\n foreach ($errors as $error) {\n $errmsg .= \"Payment failed: \".\\Eway\\Rapid::getMessage($error).\"<br>\";\n }\n return Redirect::route('dashboard')\n\t\t\t \t->with('alertError', $errmsg);\n }\n }", "public function autorenewal_cancel(Request $request) {\n\n $user_payment = UserSubscription::where('user_id', $request->id)->where('status', DEFAULT_TRUE)->orderBy('created_at', 'desc')->first();\n\n if($user_payment) {\n\n // Check the subscription is already cancelled\n\n if($user_payment->is_cancelled == AUTORENEWAL_CANCELLED) {\n\n $response_array = ['success' => 'false' , 'error_messages' => Helper::error_message(164) , 'error_code' => 164];\n\n return response()->json($response_array , 200);\n\n }\n\n $user_payment->is_cancelled = AUTORENEWAL_CANCELLED;\n\n $user_payment->cancel_reason = $request->cancel_reason;\n\n $user_payment->save();\n\n $subscription = $user_payment->subscription;\n\n $data = ['id'=>$request->id, \n 'subscription_id'=>$user_payment->subscription_id,\n 'user_subscription_id'=>$user_payment->id,\n 'title'=>$subscription ? $subscription->title : '',\n 'description'=>$subscription ? $subscription->description : '',\n 'popular_status'=>$subscription ? $subscription->popular_status : '',\n 'plan'=>$subscription ? $subscription->plan : '',\n 'amount'=>$user_payment->amount,\n 'status'=>$user_payment->status,\n 'expiry_date'=>date('d M Y', strtotime($user_payment->expiry_date)),\n 'created_at'=>$user_payment->created_at,\n 'currency'=>Setting::get('currency'),\n 'payment_mode'=>$user_payment->payment_mode,\n 'is_coupon_applied'=>$user_payment->is_coupon_applied,\n 'coupon_code'=>$user_payment->coupon_code,\n 'coupon_amount'=>$user_payment->coupon_amount,\n 'subscription_amount'=>$user_payment->subscription_amount,\n 'coupon_reason'=>$user_payment->coupon_reason,\n 'is_cancelled'=>$user_payment->is_cancelled,\n 'cancel_reason'=>$user_payment->cancel_reason,\n 'show_autorenewal_options'=> DEFAULT_TRUE,\n 'show_pause_autorenewal'=> DEFAULT_FALSE,\n 'show_enable_autorenewal'=> DEFAULT_TRUE,\n ];\n\n $response_array = ['success'=> true, 'message'=>tr('cancel_subscription_success'), 'data'=>$data];\n\n } else {\n\n $response_array = ['success'=> false, 'error_messages'=>Helper::error_message(163), 'error_code'=>163];\n\n }\n\n return response()->json($response_array);\n\n }", "private function purchaseRestrictionsAwal($ins) {\n \n $dateNow = date('Y-m-d'); // date now\n \n // cek total volume pengisian selama hari ini, apakah >= 100 liter\n $totalVolumeFill = $this->db->query(\"SELECT SUM(liter) AS `total_volume` FROM {$this->transaction_kendaraan} WHERE no_pol = '{$ins['no_pol']}' AND tgl = '{$dateNow}' \")\n ->row_array()['total_volume'];\n \n $lastTotalVolume = floatval($ins['liter']) + floatval($totalVolumeFill);\n \n if($lastTotalVolume > 200) {\n\t $response = [\n\t \"status\" => \"error\", \n\t \"message\" => \"Customer tidak dapat mengisi lebih dari 200 liter ({$lastTotalVolume} liter) dalam satu hari yang sama\"\t \n\t // \"message\" => \"Customer tidak dapat mengisi lebih dari 200 liter ({$lastTotalVolume} liter) dalam pembelian ke - {$ins['numOfBuy']}\", \n\t ];\n\t echo json_encode($response);\n\t \n } else if(floatval($ins['liter']) > 75) {\n\t \n\t $response = [\n\t \"status\" => \"approval\", \n\t \"message\" => \"Customer ingin mengisi lebih dari 75 liter ({$ins['liter']} liter) dalam pembelian {$ins['numOfBuy']}\", \n\t \"question\" => \"Apakah anda setuju melakukan pengisian lebih dari 75 liter ({$ins['liter']} liter) ?\"\n\t ];\n\t echo json_encode($response);\n\t \n } else {\n\t $response = [\n\t \"status\" => \"ok\", \n\t \"message\" => \"Customer ingin mengisi biosolar dengan volume {$ins['liter']} liter pada pembelian ke - {$ins['numOfBuy']}\"\n\t ];\n\t echo json_encode($response);\t \n } \n }", "public function index(Request $request)\n {\n\n $notification = Notification::latest()->where('is_read', '0')->first();\n $settings = Admin::first();\n $amount = Transaction::where('status', 'COMPLETED')->where('user_id', Auth::user()->id)->sum('coins');\n $referral_settings = DB::table('referral_settings')->first();\n\n $referer_earning_amount= ReferralsModel::where('status', 'COMPLETED')->where('referrer', Auth::user()->id)->sum('referer_earning_amount');\n \n $today_date=date('Y-m-d');\n $date=DB::select(DB::raw('SELECT * FROM progress_bar WHERE progress_bar_date <= \"'.$today_date.'\" and coin_price IS NOT NULL and is_completed = 0')); \n\n $check_notify=DB::select(DB::raw('SELECT * FROM progress_bar WHERE progress_bar_date >= \"'.$today_date.'\" and coin_price IS NOT NULL and is_completed = 0')); \n \n if(count($check_notify)>0){\n $date_minus=$check_notify[0]->notify_before;\n $start_date= $check_notify[0]->progress_bar_date;\n $alert_date_str=mktime(0,0,0,date('m',strtotime($start_date)),date('d',strtotime($start_date))-$date_minus,date('Y',strtotime($start_date)));\n $alert_date= date('Y-m-d',$alert_date_str);\n $minus_date=strtotime($start_date)-strtotime($today_date);\n $diff=date_diff(date_create($start_date),date_create($today_date));\n $date_diff=$diff->format(\"%R%a Days\");\n $notify=$request->session()->get('show_notify');\n // print_r($start_date);\n // echo \"<br>\";\n // print_r($alert_date);exit;\n if($notify==\"\"){\n $request->session()->forget('notify_message');\n $request->session()->forget('upcomming_coin_price');\n $request->session()->forget('upcomming_date');\n if((strtotime($alert_date)<strtotime($start_date) || strtotime($alert_date)>=strtotime($today_date )) && strtotime($start_date)!=strtotime($today_date)){\n $request->session()->put('notify_message','The price will increases in '.abs($date_diff).' Days \n ');\n $request->session()->put('upcomming_coin_price',$check_notify[0]->coin_price);\n $request->session()->put('upcomming_date',$check_notify[0]->progress_bar_date);\n }elseif (strtotime($start_date)==strtotime($today_date)) {\n $request->session()->put('notify_message','Price has increase today!.');\n $request->session()->put('upcomming_coin_price',$check_notify[0]->coin_price);\n $request->session()->put('upcomming_date',$check_notify[0]->progress_bar_date);\n }\n \n \n }\n }\n \n if(count($date)>0){\n $settings->coin_value= $date[0]->coin_price;\n }else{\n $settings->coin_value=$settings->default_token_price;// default price..\n }\n $settings->save();\n \n \n $stripe=DB::table('settings')->where('param','stripe_pk_key')->first();\n $stripe_key=$stripe->value;;\n $semi=0;\n $automatic=0;\n \n $types=explode(',',$settings->payments_types);\n \n if(isset($types[0])){\n if($types[0]==1){\n $semi=1; \n }elseif ($types[0]==2) {\n $automatic=1;\n }\n }\n\n if(isset($types[1])){\n if($types[1]==2){\n $automatic=1; \n }elseif ($types[1]==1) {\n $semi=1;\n }\n }\n\n $join_data=DB::table('survey_list')\n ->leftjoin('survey_notify','survey_notify.survey_id','survey_list.id')->where('survey_list.status','live')->\n select('survey_notify.status as Stat')->get();\n $count=0;\n foreach ($join_data as $key => $value) {\n if($value->Stat==\"\"){\n $count +=1;\n }\n }\n\n \n $request->session()->put('survey_notify_count',$count);\n \n $AdminBankDetails = AdminBankDetails::where('default_flag','1')\n ->join('bank_code_master','bank_code_master.id','=','admin_bank_details.bank_code')\n ->get();\n \n return view('home', compact('notification', 'settings','amount','referer_earning_amount','referral_settings','semi','automatic','stripe_key','AdminBankDetails'));\n }", "public function confirm(Request $request)\n {\n if(Auth::check() && Auth::user()->role == 'member'){\n $validator = Validator::make($request->all(), [\n 'booking_id' => 'required',\n 'type' => 'required'\n ]);\n\n if ($validator->fails()) {\n return redirect()->back()\n ->withErrors($validator)\n ->withInput()->with($data);\n }else{\n if($request->type == \"transfer\"){\n $payment = new Payment();\n $payment->type = $request->type;\n $payment->booking_id = $request->booking_id;\n $payment->date = date(\"Y-m-d\",strtotime($request->date));\n $payment->account_name = $request->account_name;\n $payment->user_id = Auth::user()->id;\n $payment->status = 0;\n $payment->coupon_id = 0;\n $payment->amount = $request->amount;\n $payment->save();\n }elseif($request->type == \"coupon\"){\n $dataprices = DB::table('booking_detail')->select('price')\n ->where('booking_id',$request->booking_id)\n ->limit($request->total_coupon)\n ->orderBy('date','desc')->orderBy('time_number','desc')->get();\n $coupons = DB::table('coupon as c')->leftJoin('payment as p','c.id','=','p.coupon_id')\n ->where('p.coupon_id',null)->select('c.id')\n ->limit($request->total_coupon)->orderBy('c.id','asc')->get();\n for ($i=0; $i < $request->total_coupon; $i++) { \n $payment = new Payment();\n $payment->type = $request->type;\n $payment->booking_id = $request->booking_id;\n $payment->date = date(\"Y-m-d\");\n $payment->account_name = Auth::user()->fullname;\n $payment->user_id = Auth::user()->id;\n $payment->confirmer_id = Auth::user()->id;\n $payment->status = 1;\n $payment->coupon_id = $coupons[$i]->id;\n $payment->amount = $dataprices[$i]->price;\n $payment->save();\n }\n }\n return redirect()->route('front.detail_order',$request->booking_id);\n }\n }else{\n return redirect()->route('front.login');\n }\n }", "public function action_withdraw()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\t\r\n\t\t// Get all of the user's characters that might have signed up\r\n\t\t$characters = $this->user->characters->find_all();\r\n\t\t\r\n\t\tif ( ! $this->user->can('event_withdraw', array('event' => $event, 'characters' => $characters)))\r\n\t\t{\r\n\t\t\t// Not allowed, get the reason why\r\n\t\t\t$status = Policy::$last_code;\r\n\t\t\t\r\n\t\t\t// User wasn't actually signed-up for this event\r\n\t\t\tif ($status === Policy_Event_Withdraw::NOT_SIGNED_UP)\r\n\t\t\t{\r\n\t\t\t\tNotices::error('event.withdraw.not_signed_up');\r\n\t\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t\t}\r\n\t\t\t// Tried to cancel after event had started\r\n\t\t\telseif ($status === Policy_Event_Withdraw::START_TIME_PASSED)\r\n\t\t\t{\r\n\t\t\t\tNotices::error('event.withdraw.start_time_passed');\r\n\t\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t\t}\r\n\t\t\t// Unspecified policy failure... this shouldn't really happen\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tNotices::error('event.withdraw.failed');\r\n\t\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t\t}\r\n\t\t}\r\n\t\t// User may cancel - now we have to find where they signed-up and remove it\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Get enrolled character\r\n\t\t\t$character = Model_Enrollment::is_enrolled($this->user, $event, $characters);\r\n\t\t\t\r\n\t\t\t// Withdraw enrollment\r\n\t\t\t$event->withdraw($character);\r\n\t\t\t\r\n\t\t\tNotices::success('event.withdraw.success');\r\n\t\t}\r\n\r\n\t\t$this->request->redirect(Route::url('event'));\r\n\t}", "public function savety2receipt(Request $request) {\n $receptDate = Carbon::now()->format('Y-m-d');\n $expDate = Carbon::now()->addDays(365)->format('Y-m-d');\n //echo $receptDate; echo \"<br>\"; echo $expDate; echo \"<br>\"; exit;\n DB::table('ty2queuepatients')->where('id', $_POST['ty2qid'])->update(['receipt_no' => $_POST['receptno'], 'receipt_date' => $receptDate, 'expiry_date' => $expDate, 'action' => 1, 'q_status' =>0]);\n return 1;\n \n }", "function _cancel($info)\n\t{\n\t // Gan trang thai xac thuc\n\t $data = array();\n\t $data['status'] = mod('order')->status('canceled');\n\t\n\t // Cap nhat du lieu vao data\n\t model('user_bank')->update($info->id, $data);\n\t // Gui thong bao\n\t set_message(lang('notice_update_success'));\n\t return TRUE;\n\t}", "public function getTillAccounting(Request $request) {\n try {\n $restaurant_token = getRestaurantToken();\n $url = Config::get('pos.base_path').'accounting?startDate='.$request->startDate.'&endDate='.$request->endDate.'&restaurant_token='.$restaurant_token.'&provider_token='.Config::get('pos.provider_token');\n $response = Curl::to($url)->get();\n return customResponse(Config::get(\"http_status.OK\"), true, \"accounting\",json_decode($response));\n } catch (\\Exception $e) {\n return customResponse(Config::get(\"http_status.ISE\"), false, \"ISE\", new stdClass());\n }\n }", "function PricerrTheme_withdrawals()\n{\n $id_icon = 'icon-options-general-withdr';\n $ttl_of_stuff = 'PricerrTheme - ' . __('Withdrawal Requests', 'PricerrTheme');\n global $wpdb;\n\n //------------------------------------------------------\n\n echo '<div class=\"wrap\">';\n echo '<div class=\"icon32\" id=\"' . $id_icon . '\"><br/></div>';\n echo '<h2 class=\"my_title_class_sitemile\">' . $ttl_of_stuff . '</h2>';\n\n\n //----------------------------------------\n\n if (isset($_GET['den_id'])) {\n $tm = current_time('timestamp', 0);\n $ids = $_GET['den_id'];\n\n $s = \"select * from \" . $wpdb->prefix . \"job_withdraw where id='$ids'\";\n $row = $wpdb->get_results($s);\n $row = $row[0];\n\n\n if ($row->done == 0) {\n echo '<div class=\"saved_thing\"><div class=\"padd10\">' . __('Payment rejected!', 'PricerrTheme') . '</div></div>';\n $ss = \"update \" . $wpdb->prefix . \"job_withdraw set done='-1', rejected_on='$tm', rejected='1', datedone='$tm' where id='$ids'\";\n $wpdb->query($ss);\n\n $ucr = PricerrTheme_get_credits($row->uid);\n PricerrTheme_send_email_when_withdraw_rejected($row->uid, $row->methods, PricerrTheme_get_show_price($row->amount));\n PricerrTheme_update_credits($row->uid, $ucr + $row->amount);\n\n }\n }\n\n// if (isset($_GET['tid'])) {\n// $tm = current_time('timestamp', 0);\n// $ids = $_GET['tid'];\n//\n// $s = \"select * from \" . $wpdb->prefix . \"job_withdraw where id='$ids'\";\n// $row = $wpdb->get_results($s);\n// $row = $row[0];\n//\n// if ($row->done == 0) {\n//\n// $id = $row->id;\n// $user_address = $row->payeremail;\n// $uid = $row->uid;\n// $methods = $row->methods;\n// $amount = $row->amount;\n// $datemade = $row->datemade;\n//\n// $redirect_url = get_bloginfo('siteurl') . '/?withdrawal_action=paypal_withdrawal&id=' . $id .\n// '&user_address=' . $user_address . '&uid=' . $uid . '&methods=' . $methods . '&amount=' . $amount .\n// '&datemade=' . $datemade;\n//\n// $redirect = get_bloginfo('siteurl');\n//\n// wp_redirect($redirect);\n// exit;\n// //echo \"<div style='background-color:red; height: 50px; width: 50px;'>\" . $redirect_url . \"</div>\";\n//\n// //----------------------------------------\n// }\n// }\n\n if(isset($_GET[\"withdrawal_action\"])) {\n if ($_GET[\"withdrawal_action\"] == \"success\") {\n echo '<div class=\"saved_thing\"><div class=\"padd10\">' . __('Payment completed!', 'PricerrTheme') . '</div></div>';\n }\n }\n\n //---------------------------------------\n\n ?>\n\n <div id=\"usual2\" class=\"usual\">\n <ul>\n <li><a href=\"#tabs1\"><?php _e('Unresolved Requests', 'PricerrTheme'); ?></a></li>\n <li><a href=\"#tabs2\"><?php _e('Resolved Requests', 'PricerrTheme'); ?></a></li>\n <li><a href=\"#tabs_rejected\"><?php _e('Rejected Requests', 'PricerrTheme'); ?></a></li>\n <li><a href=\"#tabs3\"><?php _e('Search Unresolved', 'PricerrTheme'); ?></a></li>\n <li><a href=\"#tabs4\"><?php _e('Search Solved', 'PricerrTheme'); ?></a></li>\n <li><a href=\"#tabs_search_rejected\"><?php _e('Search Rejected', 'PricerrTheme'); ?></a></li>\n </ul>\n <div id=\"tabs1\">\n <?php\n\n $s = \"select * from \" . $wpdb->prefix . \"job_withdraw where done='0' order by id desc\";\n $r = $wpdb->get_results($s);\n\n if (count($r) > 0) {\n\n ?>\n\n <table class=\"widefat post fixed\" cellspacing=\"0\">\n <thead>\n <tr>\n <th width=\"12%\"><?php _e('Username', 'PricerrTheme'); ?></th>\n <th><?php _e('Method', 'PricerrTheme'); ?></th>\n <th width=\"20%\"><?php _e('Details', 'PricerrTheme'); ?></th>\n <th><?php _e('Date Requested', 'PricerrTheme'); ?></th>\n <th><?php _e('Amount', 'PricerrTheme'); ?></th>\n <th width=\"25%\"><?php _e('Options', 'PricerrTheme'); ?></th>\n </tr>\n </thead>\n\n <tbody>\n <?php\n\n foreach ($r as $row) {\n $user = get_userdata($row->uid);\n\n $id = $row->id;\n $user_address = $row->payeremail;\n $uid = $row->uid;\n $methods = $row->methods;\n $amount = $row->amount;\n $datemade = $row->datemade;\n\n $redirect_url = get_bloginfo('siteurl') . '/?withdrawal_action=paypal_withdrawal&id=' . $id .\n '&user_address=' . $user_address . '&uid=' . $uid . '&methods=' . $methods . '&amount=' . $amount .\n '&datemade=' . $datemade;\n\n echo '<tr>';\n echo '<th>' . $user->user_login . '</th>';\n echo '<th>' . $row->methods . '</th>';\n echo '<th>' . $row->payeremail . '</th>';\n echo '<th>' . date('d-M-Y H:i:s', $row->datemade) . '</th>';\n echo '<th>' . PricerrTheme_get_show_price($row->amount) . '</th>';\n echo '<th>' . ($row->done == 0 ? '<a href=\"' . $redirect_url . '\" class=\"awesome\">' . __('Make Complete', 'PricerrTheme') . '</a>' . ' | ' . '<a href=\"' . get_bloginfo('siteurl') . '/wp-admin/admin.php?page=withdraw-req&den_id=' . $row->id . '\" class=\"awesome\">' . __('Deny Request', 'PricerrTheme') . '</a>' : ($row->done == 1 ? __(\"Completed\", 'PricerrTheme') : __(\"Rejected\", 'PricerrTheme'))) . '</th>';\n //echo '<th>' . ($row->done == 0 ? '<a href=\"' . get_bloginfo('siteurl') . '/wp-admin/admin.php?page=withdraw-req&active_tab=tabs1&tid=' . $row->id . '\" class=\"awesome\">' . __('Make Complete', 'PricerrTheme') . '</a>' . ' | ' . '<a href=\"' . get_bloginfo('siteurl') . '/wp-admin/admin.php?page=withdraw-req&den_id=' . $row->id . '\" class=\"awesome\">' . __('Deny Request', 'PricerrTheme') . '</a>' : ($row->done == 1 ? __(\"Completed\", 'PricerrTheme') : __(\"Rejected\", 'PricerrTheme'))) . '</th>';\n echo '</tr>';\n }\n\n ?>\n </tbody>\n\n </table>\n <?php } else { ?>\n\n <div class=\"padd101\">\n <?php _e('There are no unresolved withdrawal requests.', 'PricerrTheme'); ?>\n </div>\n\n <?php } ?>\n\n </div>\n\n <div id=\"tabs2\">\n\n\n <?php\n\n $s = \"select * from \" . $wpdb->prefix . \"job_withdraw where done='1' order by id desc\";\n $r = $wpdb->get_results($s);\n\n if (count($r) > 0):\n\n ?>\n\n <table class=\"widefat post fixed\" cellspacing=\"0\">\n <thead>\n <tr>\n <th><?php _e('Username', 'PricerrTheme'); ?></th>\n <th><?php _e('Details', 'PricerrTheme'); ?></th>\n <th><?php _e('Date Requested', 'PricerrTheme'); ?></th>\n <th><?php _e('Amount', 'PricerrTheme'); ?></th>\n <th><?php _e('Date Released', 'PricerrTheme'); ?></th>\n <th><?php _e('Options', 'PricerrTheme'); ?></th>\n </tr>\n </thead>\n\n\n <tbody>\n <?php\n\n\n\n foreach ($r as $row) {\n $user = get_userdata($row->uid);\n\n echo '<tr>';\n echo '<th>' . $user->user_login . '</th>';\n echo '<th>' . $row->payeremail . '</th>';\n echo '<th>' . date('d-M-Y H:i:s', $row->datemade) . '</th>';\n echo '<th>' . PricerrTheme_get_show_price($row->amount) . '</th>';\n echo '<th>' . ($row->datedone == 0 ? \"Not yet\" : date('d-M-Y H:i:s', $row->datedone)) . '</th>';\n echo '<th>' . ($row->done == 0 ? '<a href=\"' . get_bloginfo('siteurl') . '/wp-admin/admin.php?page=withdraw-req&active_tab=tabs1&tid=' . $row->id . '\" class=\"awesome\">' . __('Make Complete', 'PricerrTheme') . '</a>' . ' | ' . '<a href=\"' . get_bloginfo('siteurl') . '/wp-admin/admin.php?page=withdraw-req&den_id=' . $row->id . '\" class=\"awesome\">' . __('Deny Request', 'PricerrTheme') . '</a>' : ($row->done == 1 ? __(\"Completed\", 'PricerrTheme') : __(\"Rejected\", 'PricerrTheme'))) . '</th>';\n echo '</tr>';\n }\n\n ?>\n </tbody>\n\n\n </table>\n <?php else: ?>\n\n <div class=\"padd101\">\n <?php _e('There are no resolved withdrawal requests.', 'PricerrTheme'); ?>\n </div>\n\n <?php endif; ?>\n\n\n </div>\n\n <div id=\"tabs_rejected\">\n\n\n <?php\n\n $s = \"select * from \" . $wpdb->prefix . \"job_withdraw where rejected='1' order by id desc\";\n $r = $wpdb->get_results($s);\n\n if (count($r) > 0):\n\n ?>\n\n <table class=\"widefat post fixed\" cellspacing=\"0\">\n <thead>\n <tr>\n <th><?php _e('Username', 'PricerrTheme'); ?></th>\n <th><?php _e('Details', 'PricerrTheme'); ?></th>\n <th><?php _e('Date Requested', 'PricerrTheme'); ?></th>\n <th><?php _e('Amount', 'PricerrTheme'); ?></th>\n <th><?php _e('Date Released', 'PricerrTheme'); ?></th>\n <th><?php _e('Options', 'PricerrTheme'); ?></th>\n </tr>\n </thead>\n\n\n <tbody>\n <?php\n\n\n\n foreach ($r as $row) {\n $user = get_userdata($row->uid);\n\n echo '<tr>';\n echo '<th>' . $user->user_login . '</th>';\n echo '<th>' . $row->payeremail . '</th>';\n echo '<th>' . date('d-M-Y H:i:s', $row->datemade) . '</th>';\n echo '<th>' . PricerrTheme_get_show_price($row->amount) . '</th>';\n echo '<th>' . ($row->datedone == 0 ? \"Not yet\" : date('d-M-Y H:i:s', $row->datedone)) . '</th>';\n echo '<th>' . ($row->done == 0 ? '<a href=\"' . get_bloginfo('siteurl') . '/wp-admin/admin.php?page=withdraw-req&active_tab=tabs1&tid=' . $row->id . '\" class=\"awesome\">' . __('Make Complete', 'PricerrTheme') . '</a>' . ' | ' . '<a href=\"' . get_bloginfo('siteurl') . '/wp-admin/admin.php?page=withdraw-req&den_id=' . $row->id . '\" class=\"awesome\">' . __('Deny Request', 'PricerrTheme') . '</a>' : ($row->done == 1 ? __(\"Completed\", 'PricerrTheme') : __(\"Rejected\", 'PricerrTheme'))) . '</th>';\n echo '</tr>';\n }\n\n ?>\n </tbody>\n\n\n </table>\n <?php else: ?>\n\n <div class=\"padd101\">\n <?php _e('There are no rejected withdrawal requests.', 'PricerrTheme'); ?>\n </div>\n\n <?php endif; ?>\n\n\n </div>\n\n\n <div id=\"tabs3\">\n\n <form method=\"get\" action=\"<?php bloginfo('siteurl'); ?>/wp-admin/admin.php\">\n <input type=\"hidden\" value=\"withdraw-req\" name=\"page\"/>\n <input type=\"hidden\" value=\"tabs3\" name=\"active_tab\"/>\n <table width=\"100%\" class=\"sitemile-table\">\n <tr>\n <td><?php _e('Search User', 'PricerrTheme'); ?></td>\n <td><input type=\"text\" value=\"<?php echo $_GET['search_user']; ?>\" name=\"search_user\" size=\"20\"/>\n <input type=\"submit\" name=\"PricerrTheme_save3\" value=\"<?php _e('Search', 'PricerrTheme'); ?>\"/>\n </td>\n </tr>\n\n\n </table>\n </form>\n\n <?php\n\n if (isset($_GET['PricerrTheme_save3'])):\n\n $search_user = trim($_GET['search_user']);\n\n $user = get_userdatabylogin($search_user);\n $uid = $user->ID;\n\n $s = \"select * from \" . $wpdb->prefix . \"job_withdraw where done='0' AND uid='$uid' order by id desc\";\n $r = $wpdb->get_results($s);\n\n if (count($r) > 0):\n\n ?>\n\n <table class=\"widefat post fixed\" cellspacing=\"0\">\n <thead>\n <tr>\n <th width=\"12%\"><?php _e('Username', 'PricerrTheme'); ?></th>\n <th><?php _e('Method', 'PricerrTheme'); ?></th>\n <th width=\"20%\"><?php _e('Details', 'PricerrTheme'); ?></th>\n <th><?php _e('Date Requested', 'PricerrTheme'); ?></th>\n <th><?php _e('Amount', 'PricerrTheme'); ?></th>\n <th width=\"25%\"><?php _e('Options', 'PricerrTheme'); ?></th>\n </tr>\n </thead>\n\n\n <tbody>\n <?php\n\n\n\n foreach ($r as $row) {\n $user = get_userdata($row->uid);\n\n echo '<tr>';\n echo '<th>' . $user->user_login . '</th>';\n echo '<th>' . $row->methods . '</th>';\n echo '<th>' . $row->payeremail . '</th>';\n echo '<th>' . date('d-M-Y H:i:s', $row->datemade) . '</th>';\n echo '<th>' . PricerrTheme_get_show_price($row->amount) . '</th>';\n echo '<th>' . ($row->done == 0 ? '<a href=\"' . get_bloginfo('siteurl') . '/wp-admin/admin.php?page=withdraw-req&active_tab=tabs1&tid=' . $row->id . '\" class=\"awesome\">' . __('Make Complete', 'PricerrTheme') . '</a>' . ' | ' . '<a href=\"' . get_bloginfo('siteurl') . '/wp-admin/admin.php?page=withdraw-req&den_id=' . $row->id . '\" class=\"awesome\">' . __('Deny Request', 'PricerrTheme') . '</a>' : ($row->done == 1 ? __(\"Completed\", 'PricerrTheme') : __(\"Rejected\", 'PricerrTheme'))) . '</th>';\n echo '</tr>';\n }\n\n ?>\n </tbody>\n\n\n </table>\n <?php else: ?>\n\n <div class=\"padd101\">\n <?php _e('There are no results for your search.', 'PricerrTheme'); ?>\n </div>\n\n <?php endif;\n\n\n endif;\n\n ?>\n\n\n </div>\n\n <div id=\"tabs4\">\n\n <form method=\"get\" action=\"<?php bloginfo('siteurl'); ?>/wp-admin/admin.php\">\n <input type=\"hidden\" value=\"withdraw-req\" name=\"page\"/>\n <input type=\"hidden\" value=\"tabs4\" name=\"active_tab\"/>\n <table width=\"100%\" class=\"sitemile-table\">\n <tr>\n <td><?php _e('Search User', 'PricerrTheme'); ?></td>\n <td>\n <input type=\"text\" value=\"<?php echo $_GET['search_user4']; ?>\" name=\"search_user4\" size=\"20\"/>\n <input type=\"submit\" name=\"PricerrTheme_save4\" value=\"<?php _e('Search', 'PricerrTheme'); ?>\"/>\n </td>\n </tr>\n\n\n </table>\n </form>\n\n\n <?php\n\n if (isset($_GET['PricerrTheme_save4'])):\n\n $search_user = trim($_GET['search_user4']);\n\n $user = get_userdatabylogin($search_user);\n $uid = $user->ID;\n\n $s = \"select * from \" . $wpdb->prefix . \"job_withdraw where done='1' AND uid='$uid' order by id desc\";\n $r = $wpdb->get_results($s);\n\n if (count($r) > 0):\n\n ?>\n\n <table class=\"widefat post fixed\" cellspacing=\"0\">\n <thead>\n <tr>\n <th width=\"12%\"><?php _e('Username', 'PricerrTheme'); ?></th>\n <th><?php _e('Method', 'PricerrTheme'); ?></th>\n <th width=\"20%\"><?php _e('Details', 'PricerrTheme'); ?></th>\n <th><?php _e('Date Requested', 'PricerrTheme'); ?></th>\n <th><?php _e('Amount', 'PricerrTheme'); ?></th>\n <th width=\"25%\"><?php _e('Options', 'PricerrTheme'); ?></th>\n </tr>\n </thead>\n\n\n <tbody>\n <?php\n\n\n\n foreach ($r as $row) {\n $user = get_userdata($row->uid);\n\n echo '<tr>';\n echo '<th>' . $user->user_login . '</th>';\n echo '<th>' . $row->methods . '</th>';\n echo '<th>' . $row->payeremail . '</th>';\n echo '<th>' . date('d-M-Y H:i:s', $row->datemade) . '</th>';\n echo '<th>' . PricerrTheme_get_show_price($row->amount) . '</th>';\n echo '<th>' . ($row->done == 0 ? '<a href=\"' . get_bloginfo('siteurl') . '/wp-admin/admin.php?page=withdraw-req&active_tab=tabs1&tid=' . $row->id . '\" class=\"awesome\">' . __('Make Complete', 'PricerrTheme') . '</a>' . ' | ' . '<a href=\"' . get_bloginfo('siteurl') . '/wp-admin/admin.php?page=withdraw-req&den_id=' . $row->id . '\" class=\"awesome\">' . __('Deny Request', 'PricerrTheme') . '</a>' : ($row->done == 1 ? __(\"Completed\", 'PricerrTheme') : __(\"Rejected\", 'PricerrTheme'))) . '</th>';\n echo '</tr>';\n }\n\n ?>\n </tbody>\n\n\n </table>\n <?php else: ?>\n\n <div class=\"padd101\">\n <?php _e('There are no results for your search.', 'PricerrTheme'); ?>\n </div>\n\n <?php endif;\n\n\n endif;\n\n ?>\n\n </div>\n\n\n <div id=\"tabs_search_rejected\">\n\n <form method=\"get\" action=\"<?php bloginfo('siteurl'); ?>/wp-admin/admin.php\">\n <input type=\"hidden\" value=\"withdraw-req\" name=\"page\"/>\n <input type=\"hidden\" value=\"tabs_search_rejected\" name=\"active_tab\"/>\n <table width=\"100%\" class=\"sitemile-table\">\n <tr>\n <td><?php _e('Search User', 'PricerrTheme'); ?></td>\n <td>\n <input type=\"text\" value=\"<?php echo $_GET['search_user5']; ?>\" name=\"search_user5\" size=\"20\"/>\n <input type=\"submit\" name=\"PricerrTheme_save5\" value=\"<?php _e('Search', 'PricerrTheme'); ?>\"/>\n </td>\n </tr>\n\n\n </table>\n </form>\n\n\n <?php\n\n if (isset($_GET['PricerrTheme_save5'])):\n\n $search_user = trim($_GET['search_user5']);\n\n $user = get_userdatabylogin($search_user);\n $uid = $user->ID;\n\n $s = \"select * from \" . $wpdb->prefix . \"job_withdraw where rejected='1' AND uid='$uid' order by id desc\";\n $r = $wpdb->get_results($s);\n\n if (count($r) > 0):\n\n ?>\n\n <table class=\"widefat post fixed\" cellspacing=\"0\">\n <thead>\n <tr>\n <th width=\"12%\"><?php _e('Username', 'PricerrTheme'); ?></th>\n <th><?php _e('Method', 'PricerrTheme'); ?></th>\n <th width=\"20%\"><?php _e('Details', 'PricerrTheme'); ?></th>\n <th><?php _e('Date Requested', 'PricerrTheme'); ?></th>\n <th><?php _e('Amount', 'PricerrTheme'); ?></th>\n <th width=\"25%\"><?php _e('Options', 'PricerrTheme'); ?></th>\n </tr>\n </thead>\n\n\n <tbody>\n <?php\n\n\n\n foreach ($r as $row) {\n $user = get_userdata($row->uid);\n\n echo '<tr>';\n echo '<th>' . $user->user_login . '</th>';\n echo '<th>' . $row->methods . '</th>';\n echo '<th>' . $row->payeremail . '</th>';\n echo '<th>' . date('d-M-Y H:i:s', $row->datemade) . '</th>';\n echo '<th>' . PricerrTheme_get_show_price($row->amount) . '</th>';\n echo '<th>' . ($row->done == 0 ? '<a href=\"' . get_bloginfo('siteurl') . '/wp-admin/admin.php?page=withdraw-req&active_tab=tabs1&tid=' . $row->id . '\" class=\"awesome\">' . __('Make Complete', 'PricerrTheme') . '</a>' . ' | ' . '<a href=\"' . get_bloginfo('siteurl') . '/wp-admin/admin.php?page=withdraw-req&den_id=' . $row->id . '\" class=\"awesome\">' . __('Deny Request', 'PricerrTheme') . '</a>' : ($row->done == 1 ? __(\"Completed\", 'PricerrTheme') : __(\"Rejected\", 'PricerrTheme'))) . '</th>';\n echo '</tr>';\n }\n\n ?>\n </tbody>\n\n\n </table>\n <?php else: ?>\n\n <div class=\"padd101\">\n <?php _e('There are no results for your search.', 'PricerrTheme'); ?>\n </div>\n\n <?php endif;\n\n\n endif;\n\n ?>\n\n </div>\n\n <?php\n echo '</div>';\n\n}", "function getCloseDate() {\n\t\treturn $this->data_array['close_date'];\n\t}", "function withdrawNow($dream_id, $amount) {\n\tglobal $Withdraw, $content;\n\t$params = array('id' =>$dream_id, 'amount' => $amount);\n\t$Withdraw->addWithdraw($params);\n\n}", "public function fetchLedgerWithBalance(Request $request){\n\n\t\t// check for the header authentication\n\t\t$auth_token = $request->header('auth');\n\n\t\tif( !$this->checkAuthentication($auth_token) ){\n\t\t\t$finalResponse = array(\n\t\t\t\t'message'\t=> 'Invalid authentication! Call aborted',\n\t\t\t\t'status'\t=> 'failed',\n\t\t\t\t'code'\t\t=> '400'\n\t\t\t);\n\n\t\t\treturn $finalResponse;\n\t\t}\n\n\t\t$compnayFromInput \t= str_replace(\"&\", \"&amp;\", $request->input('companyName'));\n\t\t\n\t\t// Get Company Name\n\t\t$currentCompanyName = trim($compnayFromInput);\n\t\tif($currentCompanyName==\"\"){\n\t\t\t$currentCompanyName = $this->objTallyConnector->getCompanyName();\n\t\t}\n\n\t\t$startDate = $request->input('startDate');\n\t\t$toDate = $request->input('toDate');\n\n\t\t// Prepare XML to Fetch Ledger Master\n\t\t$requestXML = '\n\t\t\t\t<ENVELOPE>\n\t\t\t <HEADER>\n\t\t\t\t\t\t<VERSION>1</VERSION>\n\t\t\t\t\t\t<TALLYREQUEST>EXPORT</TALLYREQUEST>\n\t\t\t\t\t\t<TYPE>COLLECTION</TYPE>\n\t\t\t\t\t\t<ID>Remote Ledger Coll</ID>\n\t\t\t </HEADER>\n\t\t\t <BODY>\n\t\t\t\t\t\t<DESC>\n\t\t\t\t\t\t\t<STATICVARIABLES>\n\t\t\t\t\t\t\t\t<SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>\n\t\t\t\t\t\t\t\t<SVCURRENTCOMPANY>'.$compnayFromInput.'</SVCURRENTCOMPANY>\n\t\t\t\t\t\t\t\t<SVFROMDATE TYPE=\"Date\">'.$startDate.'</SVFROMDATE>\n\t\t\t\t\t\t\t\t<SVTODATE TYPE=\"Date\">'.$toDate.'</SVTODATE>\n\t\t\t\t\t\t\t\t</STATICVARIABLES>\n\t\t\t\t\t\t\t<TDL>\n\t\t\t\t\t\t\t\t<TDLMESSAGE>\n\t\t\t\t\t\t\t\t\t<COLLECTION NAME=\"Remote Ledger Coll\" ISINITIALIZE=\"Yes\">\n\t\t\t\t\t\t\t\t\t\t<TYPE>Ledger</TYPE>\n\t\t\t\t\t\t\t\t\t\t<NATIVEMETHOD>Name</NATIVEMETHOD>\n\t\t\t\t\t\t\t\t\t\t<NATIVEMETHOD>OpeningBalance</NATIVEMETHOD>\n\t\t\t\t\t\t\t\t\t\t<NATIVEMETHOD>ClosingBalance</NATIVEMETHOD>\n\t\t\t\t\t\t\t\t\t\t<NATIVEMETHOD>Parent</NATIVEMETHOD>\n\t\t\t\t\t\t\t\t\t</COLLECTION>\n\t\t\t\t\t\t\t\t</TDLMESSAGE>\n\t\t\t\t\t\t\t</TDL>\n\t\t\t\t\t\t</DESC>\n\t\t\t\t\t</BODY>\n\t\t\t</ENVELOPE>';\n\n\t\t/*echo $requestXML;exit;*/\n\n\t\t// call CURL function to get tally response\n\t\t$tallyFinalResponse = $this->objTallyConnector->executeTallyCURL($requestXML, 1);\n\n\t\t// Convert Data into Proper Array Format\n\t\t$tallyAllVouchers = array();\n\t\t$loop_couneter=0;\n\t\t$tallyFinalResponse = $tallyFinalResponse['BODY']['DATA']['COLLECTION']['LEDGER'];\n\n\t\t/*echo '<pre>';\n\t\tprint_r($tallyFinalResponse);\n\t\texit;*/\n\n\t\t// Loop through the data\n\t\t$salesTotal = 0;\n\t\t$salesReturnTotal = 0;\n\t\t$purchaseTotal = 0;\n\t\t$purchaseVatTotal = 0;\n\t\t$salesVatTotal = 0;\n\t\t$disCountOnPurchase = 0;\n\n\t\t$newArr = array();\n\n\t\tforeach($tallyFinalResponse as $data){\n\n\t\t\t$ClosingBalance = isset($data['CLOSINGBALANCE']) ? $data['CLOSINGBALANCE'] : \"0\";\n\t\t\t$OpeningBalance = isset($data['OPENINGBALANCE']) ? $data['OPENINGBALANCE'] : \"0\";\n\n\t\t\tif( !is_array($ClosingBalance) ){\n\t\t\t\t$ClosingBalance = isset($data['CLOSINGBALANCE']) ? (float)$data['CLOSINGBALANCE'] : \"0\";\n\t\t\t}else{\n\t\t\t\t$ClosingBalance = 0;\n\t\t\t}\n\n\t\t\tif( !is_array($OpeningBalance) ){\n\t\t\t\t$OpeningBalance = isset($data['OPENINGBALANCE']) ? (float)$data['OPENINGBALANCE'] : \"0\";\n\t\t\t}else{\n\t\t\t\t$OpeningBalance = 0;\n\t\t\t}\n\n\t\t\t// Actual Balance\n\t\t\t$ClosingBalance = $ClosingBalance - $OpeningBalance;\n\n\t\t\t// For Sales Account\n\t\t\tif( $data['PARENT'] == \"Sales Accounts\" && $ClosingBalance>0 ){\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['Type']\t\t\t\t= \tisset($data['@attributes']['NAME']) ? $data['@attributes']['NAME'] : 'NotFound';\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['PARENT']\t\t\t\t= \tisset($data['PARENT']) ? $data['PARENT'] : \"\";\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['OPENINGBALANCE']\t\t=\tisset($data['OPENINGBALANCE']) ? $data['OPENINGBALANCE'] : \"\";\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['CLOSINGBALANCE']\t\t=\tisset($data['CLOSINGBALANCE']) ? $data['CLOSINGBALANCE'] : \"\";\n\t\t\t\t$loop_couneter++;\n\t\t\t\t$salesTotal = $salesTotal+$ClosingBalance;\n\t\t\t}\n\n\t\t\t// For Sales Return Account\n\t\t\tif( $data['PARENT'] == \"Sales Accounts\" && $ClosingBalance<0 ){\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['Type']\t\t\t\t= \tisset($data['@attributes']['NAME']) ? $data['@attributes']['NAME'] : 'NotFound';\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['PARENT']\t\t\t\t= \tisset($data['PARENT']) ? $data['PARENT'] : \"\";\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['OPENINGBALANCE']\t\t=\tisset($data['OPENINGBALANCE']) ? $data['OPENINGBALANCE'] : \"\";\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['CLOSINGBALANCE']\t\t=\tisset($data['CLOSINGBALANCE']) ? $data['CLOSINGBALANCE'] : \"\";\n\t\t\t\t$loop_couneter++;\n\t\t\t\t$salesReturnTotal = $salesReturnTotal+$ClosingBalance;\n\t\t\t}\n\n\t\t\t// For Purchase Account\n\t\t\tif( $data['PARENT'] == \"Purchase Accounts\" && $ClosingBalance<0 ){\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['Type']\t\t\t\t= \tisset($data['@attributes']['NAME']) ? $data['@attributes']['NAME'] : 'NotFound';\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['PARENT']\t\t\t\t= \tisset($data['PARENT']) ? $data['PARENT'] : \"\";\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['OPENINGBALANCE']\t\t=\tisset($data['OPENINGBALANCE']) ? $data['OPENINGBALANCE'] : \"\";\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['CLOSINGBALANCE']\t\t=\tisset($data['CLOSINGBALANCE']) ? $data['CLOSINGBALANCE'] : \"\";\n\t\t\t\t$loop_couneter++;\n\t\t\t\t$purchaseTotal = $purchaseTotal+$ClosingBalance;\n\t\t\t}\n\n\t\t\t// For Sales VAT Account\n\t\t\tif( ($data['@attributes']['NAME'] == \"Input TS VAT @14.5%\") || ($data['@attributes']['NAME'] == \"Input TS VAT @5%\") ){\n\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['Type']\t\t\t\t= \tisset($data['@attributes']['NAME']) ? $data['@attributes']['NAME'] : 'NotFound';\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['PARENT']\t\t\t\t= \tisset($data['PARENT']) ? $data['PARENT'] : \"\";\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['OPENINGBALANCE']\t\t=\tisset($data['OPENINGBALANCE']) ? $data['OPENINGBALANCE'] : \"\";\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['CLOSINGBALANCE']\t\t=\tisset($data['CLOSINGBALANCE']) ? $data['CLOSINGBALANCE'] : \"\";\n\t\t\t\t$loop_couneter++;\n\t\t\t\t$purchaseVatTotal = $purchaseVatTotal+$ClosingBalance;\n\t\t\t}\n\n\t\t\t// For Purchase VAT Account\n\t\t\tif( ($data['@attributes']['NAME'] == \"Output TS VAT @14.5%\") || ($data['@attributes']['NAME'] == \"Output TS VAT @5%\") ){\n\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['Type']\t\t\t\t= \tisset($data['@attributes']['NAME']) ? $data['@attributes']['NAME'] : 'NotFound';\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['PARENT']\t\t\t\t= \tisset($data['PARENT']) ? $data['PARENT'] : \"\";\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['OPENINGBALANCE']\t\t=\tisset($data['OPENINGBALANCE']) ? $data['OPENINGBALANCE'] : \"\";\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['CLOSINGBALANCE']\t\t=\tisset($data['CLOSINGBALANCE']) ? $data['CLOSINGBALANCE'] : \"\";\n\t\t\t\t$loop_couneter++;\n\t\t\t\t$salesVatTotal = $salesVatTotal+$ClosingBalance;\n\t\t\t}\n\n\t\t\t// For Discount on Purchase\n\t\t\tif( ($data['PARENT'] == \"Indirect Incomes\") || ($data['@attributes']['NAME'] == \"Discount Receivables\") ){\n\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['Type']\t\t\t\t= \tisset($data['@attributes']['NAME']) ? $data['@attributes']['NAME'] : 'NotFound';\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['PARENT']\t\t\t\t= \tisset($data['PARENT']) ? $data['PARENT'] : \"\";\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['OPENINGBALANCE']\t\t=\tisset($data['OPENINGBALANCE']) ? $data['OPENINGBALANCE'] : \"\";\n\t\t\t\t$tallyAllVouchers[$loop_couneter]['CLOSINGBALANCE']\t\t=\tisset($data['CLOSINGBALANCE']) ? $data['CLOSINGBALANCE'] : \"\";\n\t\t\t\t$loop_couneter++;\n\t\t\t\t$disCountOnPurchase = $disCountOnPurchase+$ClosingBalance;\n\t\t\t}\n\n\t\t\t//$newArr[]= $data['PARENT'] . '======' . $data['@attributes']['NAME'];\n\t\t}\n\n\t\t// Making the final response\n\t\t$finalResponse = array(\n\t\t\t'message'\t\t\t\t\t=> 'Ledger Imported Successfully!',\n\t\t\t'status'\t\t\t\t\t=> 'Success',\n\t\t\t'code'\t\t\t\t\t\t=> '200',\n\t\t\t'data'\t\t\t\t\t\t=> $tallyAllVouchers,\n\t\t\t'salesTotal'\t\t\t\t=> $salesTotal,\n\t\t\t'salesReturnTotal'\t\t\t=> $salesReturnTotal,\n\t\t\t'purchaseTotal'\t\t\t\t=> $purchaseTotal,\n\t\t\t'purchaseVATTotal'\t\t\t=> $purchaseVatTotal,\n\t\t\t'salesVATTotal'\t\t\t\t=> $salesVatTotal,\n\t\t\t'disCountOnPurchase'\t\t=> $disCountOnPurchase\n\t\t);\n\n\t\t/*print_r($finalResponse);\n\t\texit;*/\n\n\t\t// call the method to add logg in MongoDB\n\t\t//$requestIPAddress = request()->ip();\n\t\t//$this->objTallyLogger->addTallyTransactionLog($requestIPAddress, $finalResponse, \"\",'Fetch','LEDGER_MASTER_WITH_BALANCE');\n\n\t\treturn $finalResponse;\n\t}", "public function quote_accept_or_reject(Request $request,$quote_id,$response){\n\n if(Auth::user()->user_type != 'customer'){\n return redirect()->back()->with('success','Oops. You are not allowed to accept or reject any quote. you are not a customer.');\n }\n \n /* end Only customer can accept or reject */\n\n\n $alert_msg = '';\n $message = '<h5>Quote id: #'.$quote_id.'</h5>';\n\n $quote_d = VendorQuotation::where('quote_id',$quote_id)->first();\n $quote_details = VendorQuotation::get_single_quote($quote_d->id);\n $inbox_details = Inbox::where('customize_request_order_id',$quote_d->customize_request_order_id)->first();\n \n\n if($response == 'accept'){\n\n \n $array_data['quotation_status'] = 'accept';\n VendorQuotation::update_quote_status($array_data,$quote_d->id);\n\n /* store data to cart after accept */\n\n $response = Self::add_product_to_cart($quote_details);\n if($response == 'false'){\n return redirect()->back()->with('error','product quantity out of stock');\n }\n /* store car data */\n\n $message .= '<span><b>Quote Status: <span class=\"badge badge-success\">Accepted</span></b></span>';\n $alert_msg = 'You accepted <b> quote id: #'.$quote_id.'</b>. Please check your cart accepted product added to your cart.';\n \n }else{\n\n $array_data['quotation_status'] = 'reject';\n VendorQuotation::update_quote_status($array_data,$quote_d->id);\n $message .= '<span><b>Quote Status: <span class=\"badge badge-warning\">Rejected </span> </b></span>';\n $alert_msg = 'You rejected <b> quote id: #'.$quote_id.'</b>';\n\n }\n\n\n\n /*\n Send notification in chat. for vendor \n\n */\n $column['sender_id'] = $inbox_details->user_id;\n $column['receiver_id'] = $inbox_details->vendor_id;\n $column['inbox_id'] = $inbox_details->id;\n $column['message'] = $message;\n $column['created_at'] = date('Y-m-d h:s');\n $column['is_receiver_read'] = 0;\n Inbox::message_store($column);\n\n return redirect()->back()->with('success',$alert_msg);\n\n\n }", "public function askForFeeConfirmation()\n {\n }", "public function seatReservation(Request $request)\n {\n $seat_id = $request->seat_id;\n $user_id = $request->user_id;\n $passenger_id = $request->passenger_id;\n\n $seat = Seat::find($seat_id);\n\n //To obtain the open reservation of the user\n $reservation = Reservation::where([\n ['user_id', $user_id],\n ['closed', false],\n ])->first();\n\n\n if($seat->status == 0){\n\n $seat->status = 1;\n $seat->passenger_id = $passenger_id;\n $reservation->seats()->attach($seat_id,['closed' => false]);\n $seat->save();\n\n $current_balance = floatval(preg_replace('/[^\\d\\.]/', '', $reservation->current_balance));\n $seat_price = floatval(preg_replace('/[^\\d\\.]/', '', $seat->price));\n $current_balance += $seat_price;\n $reservation->current_balance = money_format('%i',$current_balance);\n $reservation->save();\n\n return \"The seat was reserved successfully\";\n }\n else{\n return \"the seat is no longer available\";\n }\n }", "public function blockchain(Request $request2){\n\n\n $customer_id = $request2->session()->get(\"customer_id\");\n// $package = $this->getUserPendingPackage(Session::get('customer_id'));\n//\n// $cpackage = CustomerPackages::find($customer->last_package_hsitory);\n// $price = $cpackage->quantity * $package->price;\n\n\n $customer = Customer::find(Session::get('customer_id'));\n $package = Package::find($customer->next_package);\n $cpackage = CustomerPackages::find($customer->last_package_hsitory);\n $price = $cpackage->quantity * $package->price;\n\n\n $old_address = \\App\\blockchain::where([[\"customer_id\",$customer_id],[\"package_id\",$package->id],[\"status\",\"pending\"]])->orderBy(\"id\",\"desc\")->first();\n\n\n if(empty($old_address)){\n\n $api_key = env(\"BLOCKCHAIN_API_KEY\");\n $xpub = env(\"BLOCKCHAIN_UPUB_KEY\");\n $secret = env(\"BLOCKCHAIN_SECRIT\");\n\n\n\n\n\n $payment_h = new PaymentsHistory;\n $payment_h->customer_id = $customer_id;\n $payment_h->package_id = $package->id;\n $payment_h->payment_value = $price;\n $payment_h->payment_type = \"pay\";\n $payment_h->gateway = \"BlockChain\";\n $payment_h->status = \"PaymentPending\";\n $payment_h->save();\n\n $payment_id = $payment_h->id;\n\n\n $callbackURL = url(\"/blockchain/callback?payment=\".$payment_id.\"&secret=\".$secret);\n\n\n\n\n $receive_url = \"https://api.blockchain.info/v2/receive?key=\".$api_key.\"&xpub=\".$xpub.\"&callback=\".urlencode($callbackURL).\"&gap_limit=10000\";\n\n $request = curl_init();\n curl_setopt($request, CURLOPT_SSL_VERIFYPEER, true);\n curl_setopt($request, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($request, CURLOPT_URL, $receive_url);\n $response = curl_exec($request);\n\n $response = json_decode($response, true);\n\n\n//return $response;\n $paymentAddress = $response['address'];\n\n\n\n\n\n\n\n\n\n\n\n $btc_value = file_get_contents(\"https://www.blockchain.com/tobtc?currency=usd&value=\" .$price);\n\n\n\n\n\n $oaddress = new \\App\\blockchain();\n $oaddress->customer_id = $customer_id;\n $oaddress->address = $paymentAddress;\n $oaddress->value = $btc_value;\n $oaddress->package_id = $package->id;\n $oaddress->payment_id = $payment_id;\n $oaddress->status = \"pending\";\n $oaddress->save();\n\n\n }else{\n\n\n\n $paymentAddress = $old_address->address;\n $btc_value = $old_address->value;\n\n\n }\n\n\n\n\n\n\n return view(\"FrontEnd.Payments.Checkout.blockchain\",compact(\"paymentAddress\",\"btc_value\"));\n\n\n }", "public function approve_xtra_req($comment, $status, $days, $req_id, $user_id1){\r\n\t\r\n\t$date = date('Y/m/d');\r\n\t$usr_id = ($user_id1 != NULL)?\"'\".$this->hrm_mysql_connect->real_escape_string($user_id1).\"'\":'NULL';\r\n\t$comm = ($comment != NULL)?\"'\".$this->hrm_mysql_connect->real_escape_string($comment).\"'\":'NULL';\r\n\t$stat = ($status != NULL)?\"'\".$this->hrm_mysql_connect->real_escape_string($status).\"'\":'NULL';\r\n\t$days_num = ($days != NULL)?\"'\".$this->hrm_mysql_connect->real_escape_string($days).\"'\":'NULL';\r\n\t$id = ($req_id != NULL)?\"'\".$this->hrm_mysql_connect->real_escape_string($req_id).\"'\":'NULL';\r\n\t$dates = ($date != NULL)?\"'\".$this->hrm_mysql_connect->real_escape_string($date).\"'\":'NULL';\r\n\tif($status==3){\r\n\t$sql = $this->hrm_mysql_connect->query(\"UPDATE xtra_days_requests SET comment=$comm, status=$stat, date_reviewed=$dates WHERE id=$id\");\r\n\t$sql2 = $this->hrm_mysql_connect->query(\"UPDATE leave_instance_2018 SET compensatory_leave=compensatory_leave+$days_num WHERE user_id=$usr_id\");\r\n\t}else{\r\n\t\t$sql = $this->hrm_mysql_connect->query(\"UPDATE xtra_days_requests SET comment=$comm, status=$stat, date_reviewed=$dates WHERE id=$id\");\r\n\t\t}\r\n\tif($sql){\r\n\t\t\t\t$data = '<div class=\"alert alert-success\"><a class=\"close\" data-dismiss=\"alert\">×</a>'.'Request succesfully Accepted'.'</div>';\r\n\t\t\t\t} else{\r\n\t\t\t\t\t$data = mysql_error().'<div class=\"alert alert-danger\"><a class=\"close\" data-dismiss=\"alert\">×</a>'.'Request not processed, contact I.T for support'.'</div>';\r\n\t\t\t\t\t}\r\n\t\t\treturn $data;\r\n\t}", "public function submittalForm($burn_id, $use_Close = TRUE)\n {\n\n $permissions = checkFunctionPermissions($_SESSION['user']['id'], array('user','user_district','user_agency'), 'write');\n if ($permissions['deny']) {\n echo $permissions['message'];\n exit;\n }\n\n $burn = fetch_row(\"SELECT status_id, burn_project_id, pre_burn_id FROM burns WHERE burn_id = ?;\", $burn_id);\n $pre_burn = fetch_row(\"SELECT status_id FROM pre_burns WHERE pre_burn_id = ?\", $burn['pre_burn_id']);\n $burn_project = fetch_row(\"SELECT status_id FROM burn_projects WHERE burn_project_id = ?\", $burn['burn_project_id']);\n\n $validate = $this->validateRequired($burn_id);\n $valid = $validate['valid'];\n\n if ($burn_project['status_id'] < 4) {\n $html = \"<div>\n <p class=\\\"text-center\\\">The Burn Project must be approved before this Burn Request can be submitted for approval.</p>\n <button class=\\\"btn btn-default btn-block\\\" onclick=\\\"cancel_modal()\\\">Close</button>\n </div>\";\n } elseif ($pre_burn['status_id'] < 4) {\n $html = \"<div>\n <p class=\\\"text-center\\\">The Pre-Burn must be approved before this Burn Request can be submitted for approval.</p>\n <button class=\\\"btn btn-default btn-block\\\" onclick=\\\"cancel_modal()\\\">Close</button>\n </div>\";\n } elseif ($burn['status_id'] >= $this->approved_id) {\n $html = \"<div>\n <p class=\\\"text-center\\\">The burn request was already processed.</p>\n <button class=\\\"btn btn-default btn-block\\\" onclick=\\\"cancel_modal()\\\">Close</button>\n </div>\";\n } elseif ($burn['status_id'] == $this->pending_approval_id) {\n $html = \"<div>\n <p class=\\\"text-center\\\">The burn request is now pending final review. Please check back for final approval or disapproval.</p>\n <button class=\\\"btn btn-default btn-block\\\" onclick=\\\"cancel_modal()\\\">Close</button>\n </div>\";\n } elseif ($burn['status_id'] == $this->revision_requested_id) {\n if ($valid) {\n if ($this->reviewCheck($burn_id)) {\n $html = \"<div>\n <p class=\\\"text-center\\\">The burn request is valid and has been revised since the last request for revision. To ensure minimal processing time, please make sure the revision addresses all review comments before re-submitting to Utah.gov.</p>\n <a href=\\\"?burn=true&id=$burn_id\\\" role=\\\"button\\\" class=\\\"btn btn-default btn-block\\\">View Burn Request Details</a>\n <button class=\\\"btn btn-success btn-block\\\" onclick=\\\"Burn.submitToUtah($burn_id)\\\">Re-submit <strong>$burn_name</strong> to Utah.gov</button>\n <button class=\\\"btn btn-default btn-block\\\" onclick=\\\"cancel_modal()\\\">Cancel</button>\n </div>\";\n } else {\n $html = \"<div>\n <p class=\\\"text-center\\\">The burn request has not been revised since the last request for revision. Please revise the burn according to latest review comment.</p>\n <a href=\\\"?burn=true&id=$burn_id\\\" role=\\\"button\\\" class=\\\"btn btn-default btn-block\\\">View Burn Request Details</a>\n <button class=\\\"btn btn-default btn-block\\\" onclick=\\\"cancel_modal()\\\">Cancel</button>\n </div>\";\n }\n } else {\n if ($this->reviewCheck($burn_id)) {\n $html = \"<div>\n <p class=\\\"text-center\\\">The burn request has been revised since the last request for revision but is not valid.</p>\n <a href=\\\"?burn=true&id=$burn_id\\\" role=\\\"button\\\" class=\\\"btn btn-default btn-block\\\">View Burn Request Details</a>\n <button class=\\\"btn btn-default btn-block\\\" onclick=\\\"cancel_modal()\\\">Cancel</button>\n </div>\";\n } else {\n $html = \"<div>\n <p class=\\\"text-center\\\">The burn request has not been revised since the last request for revision and is not valid.</p>\n <a href=\\\"?burn=true&id=$burn_id\\\" role=\\\"button\\\" class=\\\"btn btn-default btn-block\\\">View Burn Request Details</a>\n <button class=\\\"btn btn-default btn-block\\\" onclick=\\\"cancel_modal()\\\">Cancel</button>\n </div>\";\n }\n }\n } elseif ($burn['status_id'] == $this->under_review_id) {\n $html = \"<div>\n <p class=\\\"text-center\\\">The burn request is currently being reviewed by Utah.gov. Please check back for any requested revisions, or the plans approval.</p>\n <a href=\\\"?burn=true&id=$burn_id\\\" role=\\\"button\\\" class=\\\"btn btn-default btn-block\\\">View Burn Request Details</a>\n <button class=\\\"btn btn-default btn-block\\\" onclick=\\\"cancel_modal()\\\">Cancel</button>\n </div>\";\n } else {\n if ($valid) {\n $html = \"<div>\n <p class=\\\"text-center\\\">The draft is completed and can be submitted to Utah.gov.</p>\n <button class=\\\"btn btn-success btn-block\\\" onclick=\\\"Burn.submitToUtah($burn_id)\\\">Submit <strong>$burn_name</strong> to Utah.gov</button>\";\n } else {\n $html = \"<div>\n <p class=\\\"text-center\\\">The burn request is not completed. Please ensure all required fields are filled in.</p>\n <a href=\\\"?burn=true&id=$burn_id\\\" role=\\\"button\\\" class=\\\"btn btn-default btn-block\\\">View Burn Request Details</a>\";\n }\n if($use_Close) {\n $html .= \"<button class=\\\"btn btn-default btn-block\\\" onclick=\\\"cancel_modal()\\\">Cancel</button>\n </div>\";\n }\n else {\n $html .= \"</div>\";\n }\n }\n\n return $html;\n }", "public function transaction_status(Request $request) {\n\n Log::info(\"TransactionController->transaction_status :- Inside \");\n $organization_id = Session::get('organization_id');\n\n $transaction = Transaction::select('transactions.*','transactions.transaction_type_id', 'transactions.mobile', 'transactions.id', 'transactions.date', 'transactions.total', DB::raw('COALESCE(transactions.reference_no, \"\") AS reference_no'), 'transactions.order_no', 'people.display_name', DB::raw('IF(persons.crm_code IS NULL, businesses.bcrm_code, persons.crm_code) AS code'))\n ->leftjoin('people', function($query){\n $query->on('transactions.people_id','=','people.person_id');\n $query->orWhere('transactions.people_id','=','people.business_id');\n })\n ->leftjoin('persons', 'people.person_id', '=', 'persons.id')\n ->leftjoin('businesses', 'people.person_id', '=', 'businesses.id')\n ->where('transactions.id', $request->id)\n ->first();\n\n $business = Organization::select('businesses.alias AS business')\n ->leftjoin('businesses', 'businesses.id', '=', 'organizations.business_id')\n ->where('organizations.id', $organization_id)->first()->business;\n\n $transaction_type = AccountVoucher::find($transaction->transaction_type_id);\n\n if($transaction_type->name == \"goods_receipt_note\" || $transaction_type->name == \"credit_note\") {\n\n if($transaction->transaction_type_id != null)\n {\n $transaction_type_name = Transaction::select('transactions.id','transactions.transaction_type_id','account_vouchers.display_name AS voucher_type')\n ->leftjoin('account_vouchers', 'account_vouchers.id', '=', 'transactions.transaction_type_id')\n ->where('transactions.transaction_type_id',$transaction->transaction_type_id)\n ->first();\n }\n\n $items = TransactionItem::where('transaction_id', $transaction->id)->get();\n\n foreach ($items as $item) {\n $stock = InventoryItemStock::find($item->item_id);\n\n $inventory_item = InventoryItem::find($item->item_id);\n\n $purchase_tax_value = TaxGroup::select(DB::raw('SUM(taxes.value) AS value'))\n ->leftjoin('group_tax', 'group_tax.group_id', '=', 'tax_groups.id')\n ->leftjoin('taxes', 'group_tax.tax_id', '=', 'taxes.id')\n ->where('tax_groups.organization_id', $organization_id)\n ->where('tax_groups.id', $inventory_item->purchase_tax_id)\n ->groupby('tax_groups.id')->first();\n\n\n if($inventory_item->purchase_tax_id != null)\n {\n $purchase_tax_amount = Custom::two_decimal(($purchase_tax_value->value/100) * ($inventory_item->purchase_price));\n\n $purchase_tax_price = Custom::two_decimal($inventory_item->purchase_price + $purchase_tax_amount);\n }\n else{\n $purchase_tax_price = $inventory_item->purchase_price;\n }\n\n $t_items = TransactionItem::select('transaction_items.*',DB::raw('SUM(transaction_items.quantity)'))\n ->where('transaction_items.transaction_id', $transaction->id)\n ->where('transaction_items.item_id', $item->item_id)->first();\n\n if($stock != null) {\n if($request->status == \"1\") {\n\n $inventory_stock = $stock->in_stock + $item->quantity;\n\n $stock->in_stock = $inventory_stock;\n $stock->date = $transaction->date;\n $data = json_decode($stock->data, true);\n\n /*$data[] = [\"date\" => $transaction->date, \"in_stock\" => $inventory_stock];*/\n\n $data[] = [\"transaction_id\" => $transaction->id,\"entry_id\" => $transaction->entry_id,\"voucher_type\" => $transaction_type_name->voucher_type,\"order_no\" => $transaction->order_no,\"quantity\" => $t_items->quantity,\"date\" => date('Y-m-d H:i:s'), \"in_stock\" => $inventory_stock,'purchase_price' => $purchase_tax_price,'sale_price' => $inventory_item->base_price,'status' => 1];\n\n $stock->data = json_encode($data);\n\n } else if($request->status == \"0\") {\n\n //$inventory_stock = $stock->in_stock - $item->quantity;\n\n if($stock->in_stock <= $item->quantity)\n {\n $inventory_stock = 0.00;\n }else{\n $inventory_stock = $stock->in_stock - $item->quantity;\n }\n\n $stock->in_stock = $inventory_stock;\n $stock->date = $transaction->date;\n\n $data = json_decode($stock->data, true);\n\n /*$data[] = [\"date\" => $transaction->date, \"in_stock\" => $inventory_stock];*/\n\n $data[] = [\"transaction_id\" => $transaction->id,\"entry_id\" => $transaction->entry_id,\"voucher_type\" => $transaction_type_name->voucher_type,\"order_no\" => $transaction->order_no,\"quantity\" => $t_items->quantity,\"date\" => date('Y-m-d H:i:s'), \"in_stock\" => $inventory_stock,'purchase_price' => $purchase_tax_price,'sale_price' => $inventory_item->base_price,'status' => 1];\n\n $stock->data = json_encode($data);\n } \n \n $stock->save();\n }\n \n }\n \n\n } else if($transaction_type->name == \"delivery_note\" || $transaction_type->name == \"debit_note\" || $transaction_type->name == \"job_invoice_cash\") {\n\n if($transaction->transaction_type_id != null)\n {\n $transaction_type_name = Transaction::select('transactions.id','transactions.transaction_type_id','account_vouchers.display_name AS voucher_type')\n ->leftjoin('account_vouchers', 'account_vouchers.id', '=', 'transactions.transaction_type_id')\n ->where('transactions.transaction_type_id',$transaction->transaction_type_id)\n ->first();\n }\n\n $items = TransactionItem::where('transaction_id', $transaction->id)->get();\n\n foreach ($items as $item) {\n $stock = InventoryItemStock::find($item->id);\n\n $inventory_item = InventoryItem::find($item->item_id);\n\n $purchase_tax_value = TaxGroup::select(DB::raw('SUM(taxes.value) AS value'))->leftjoin('group_tax', 'group_tax.group_id', '=', 'tax_groups.id')->leftjoin('taxes', 'group_tax.tax_id', '=', 'taxes.id')->where('tax_groups.organization_id', $organization_id)->where('tax_groups.id', $inventory_item->purchase_tax_id)->groupby('tax_groups.id')->first();\n\n\n if($inventory_item->purchase_tax_id != null)\n {\n $purchase_tax_amount = Custom::two_decimal(($purchase_tax_value->value/100) * ($inventory_item->purchase_price));\n\n $purchase_tax_price = Custom::two_decimal($inventory_item->purchase_price + $purchase_tax_amount);\n }\n else{\n $purchase_tax_price = $inventory_item->purchase_price;\n }\n\n $t_items = TransactionItem::select('transaction_items.*',DB::raw('SUM(transaction_items.quantity)'))\n ->where('transaction_items.transaction_id', $transaction->id)\n ->where('transaction_items.item_id', $item->item_id)->first();\n\n if($stock != null) {\n if($request->status == \"1\") {\n\n //$inventory_stock = $stock->in_stock - $item->quantity;\n\n if($stock->in_stock <= $item->quantity)\n {\n $inventory_stock = 0.00;\n }else{\n $inventory_stock = $stock->in_stock - $item->quantity;\n }\n\n $stock->in_stock = $inventory_stock;\n $stock->date = $transaction->date;\n $data = json_decode($stock->data, true);\n\n /*$data[] = [\"date\" => $transaction->date, \"in_stock\" => $inventory_stock];*/\n\n $data[] = [\"transaction_id\" => $transaction->id,\"entry_id\" => $transaction->entry_id,\"voucher_type\" => $transaction_type_name->voucher_type,\"order_no\" => $transaction->order_no,\"quantity\" => $t_items->quantity,\"date\" => date('Y-m-d H:i:s'), \"in_stock\" => $inventory_stock,'purchase_price' => $purchase_tax_price,'sale_price' => $inventory_item->base_price,'status' => 1];\n\n $stock->data = json_encode($data);\n\n } \n else if($request->status == \"0\") {\n\n $inventory_stock = $stock->in_stock + $item->quantity;\n\n $stock->in_stock = $inventory_stock ;\n $stock->date = $transaction->date;\n $data = json_decode($stock->data, true);\n\n $data[] = [\"date\" => $transaction->date, \"in_stock\" => $inventory_stock];\n\n $data[] = [\"transaction_id\" => $transaction->id,\"entry_id\" => $transaction->entry_id,\"voucher_type\" => $transaction_type_name->voucher_type,\"order_no\" => $transaction->order_no,\"quantity\" => $t_items->quantity,\"date\" => date('Y-m-d H:i:s'), \"in_stock\" => $inventory_stock,'purchase_price' => $inventory_item->purchase_price,'sale_price' => $inventory_item->base_price,'status' => 1];\n\n\n $stock->data = json_encode($data);\n }\n $stock->save();\n } \n }\n }\n\n \n $transaction->approval_status = $request->status;\n $transaction->save();\n\n $business_name = Session::get('business');\n\n if($transaction->approval_status == 1) {\n\n if($transaction_type->name == \"receipt\" || $transaction_type->name == \"purchase_order\" || $transaction_type->name == \"sale_order\" || $transaction_type->name == \"sales\" || $transaction_type->name == \"sales_cash\" || $transaction_type->name == \"delivery_note\" || $transaction_type->name == \"job_invoice\" || $transaction_type->name == \"job_invoice_cash\") {\n\n switch ($transaction_type->name) {\n case 'receipt':\n $message = \"Dear \".$transaction->display_name.\",\". \"\\n\\n\" .\"Payment of Rs. \".$transaction->total.\" on 11-May-18 for the Invoice \".$transaction->order_no.\" has been received.\". \"\\n\\n\" .\"Thanks for choosing \".$business_name. \"\\n\\n\" .\"Your Propel ID: \".$transaction->code;\n break;\n\n case 'purchase_order':\n $message = \"You have a new order from My Company for Rs. \".$transaction->total. \"\\n\\n\" .\"Your Propel ID: \".$transaction->code;\n break;\n\n case 'sale_order':\n $message = \"Dear \".$transaction->display_name.\",\". \"\\n\\n\" .\"your purchase order has been confirmed. Order ref:\".$transaction->order_no.\" Amount: Rs.\".$transaction->total. \"\\n\\n\" .\"Thanks for choosing \".$business_name. \"\\n\\n\" .\"Your Propel ID: \".$transaction->code;\n break;\n\n case 'sales':\n $message = \"Dear \".$transaction->display_name.\",\". \"\\n\\n\" .\"Thanks for choosing PropelSoft. \n Invoice with Ref:1236 for Rs. \".$transaction->total.\" has been created on 11-May-18.\". \"\\n\\n\" .\"Your Propel ID: \".$transaction->code;\n break;\n\n case 'sales_cash':\n $message = \"Dear \".$transaction->display_name.\",\". \"\\n\\n\" .\"Your Payment of Rs. \".$transaction->total.\" has been received for the Invoice \".$transaction->order_no.\"\". \"\\n\\n\" .\"Thanks for choosing \".$business_name. \"\\n\\n\" .\"Your Propel ID: \".$transaction->code;\n break;\n\n case 'job_invoice':\n $message = \"Dear \".$transaction->display_name.\",\". \"\\n\\n\" .\"Thanks for choosing PropelSoft. \n Invoice for Rs. \".$transaction->total.\" has been created on Today.\". \"\\n\\n\" .\"Your Propel ID: \".$transaction->code;\n break;\n\n case 'job_invoice_cash':\n $message = \"Dear \".$transaction->display_name.\",\". \"\\n\\n\" .\"Your Payment of Rs. \".$transaction->total.\" has been received for the Invoice \".$transaction->order_no.\"\". \"\\n\\n\" .\"Thanks for choosing \".$business_name. \"\\n\\n\" .\"Your Propel ID: \".$transaction->code;\n break;\n\n case 'delivery_note':\n $message = \"Dear \".$transaction->display_name.\",\". \"\\n\\n\" .\"Your order for \".$transaction->reference_no. \" of Rs. \".$transaction->total.\" has been delivered. Ref: \".$transaction->order_no. \"\\n\\n\" .\"Thanks for choosing \".$business_name. \"\\n\\n\" .\"Your Propel ID: \".$transaction->code;\n break;\n }\n\n if($transaction->mobile != \"\") {\n\n //$this->dispatch(new SendSms(config('constants.sms.user'), config('constants.sms.pass'), config('constants.sms.sender'), $transaction->mobile, $message));\n //$this->dispatch(new SendTransactionEmail());\n\n //Custom::send_transms(config('constants.sms.user'), config('constants.sms.pass'), config('constants.sms.sender'), $transaction->mobile, $message);\n }\n }\n }\n \n\n if($transaction->entry_id != null) {\n $entry = AccountEntry::find($transaction->entry_id);\n $entry->status = $request->status;\n $entry->save();\n }\n Log::info(\"TransactionController->transaction_status :- Return \");\n\n return response()->json(array('result' => 'Success'));\n }", "function refund_donation($donor_perfect_donation_id, $donation){\n\n/*\nIf a gift record has been created in DPO and you cancel or void the transaction in Donately / Authorize.net then the procedure in DPO is as follows:\n\na) Create an identical record in DPO to the original gift record but multiply the following 4 fields by -1.\na. DPGIFT.AMOUNT, dpgiftudf.[AMOUNT_USD], dpgiftudf.[AMOUNT_GBP], dpgiftudf.[AMOUNT_EUR]\na. dpgiftudf.[GIFT_NEGATED] = ‘Y’\nb. dpgiftudf.[GIFT_ADJ_REASON] = ‘NEGATE_REFUND’; ‘NEGATE_DUP’; ‘NEGATE_AMOUNT’; ‘NEGATE_GL_CODE’; ‘NEGATE_BOUNCE’; ‘NEGATE_DONOR’ as appropriate\n*/\t\t\n\n\t\t$refund_params = \"action=UPDATE dpgiftudf SET gift_negated='Y', gift_adj_reason='NEGATE_REFUND', amount_usd='\".($this->convert_amount_in_cents_to_amount($donation->amount_in_cents) * -1).\"' \";\n\t\t$refund_params .= \"WHERE gift_id='{$donor_perfect_donation_id}'\";\n\t\t$refund_response = $this->make_dpo_api_request($refund_params);\n\t\tif( isset($refund_response->dpo_response->record->field) ){\n\t\t\tforeach($refund_response->dpo_response->record->field->attributes() as $att){\n\t\t\t\tif( (int)$att > 1 ){\n\t\t\t\t\t$donor_perfect_donation_id = (int)$att;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\telse{\n\t\t\treturn $refund_response;\n\t\t}\n\t\tprint_r($refund_response);\n\t\t\n\t}", "public function mailUserCancelledReservation(Request $request)\n {\n $now = now();\n $confirmed = $request->query('confirmed') == 1;\n $reservation = new BikeReservation([\n 'reserved_from' => $now,\n 'reserved_to' => $now->addDay(),\n ]);\n \n $reservation->bike = new Bike(['name' => 'Sample Bike']); \n $mail = new Mail\\UserCancelledReservation($reservation, $confirmed);\n \n return $mail;\n }", "public function store(Request $request)\n {\n\n if(Auth::guard('admin')->check())\n $LogInId=Auth::guard('admin')->user()->id;\n else\n $LogInId=0;\n\n $dateTime=date('Y-m-d H:i:s'); \n $date=date('Y-m-d');\n\n $update1 = DB::table('tcnrequests')->where('id', $request->tcnId)->update(['reason'=>'money was withdrawn','status' => 'Removed']);\n $update2 = DB::table('withdrawalrequests')->where('id', $request->withDrawId)->update([\n 'status' => 'Paid', \n 'approvalId' => $LogInId, \n 'approvalDate' => $dateTime, \n 'approvalBy' => $request->approveDeclineBy, \n //'hgReceipts' => $request->hgReceipts, \n 'formReceivedBy' => $request->formReceivedBy, \n 'paymentMadeBy' => $request->paymentMadeBy, \n 'withDrawAppliedDate' => date('Y-m-d',strtotime($request->wdappliedDate)), \n 'withDrawPayedDate' => date('Y-m-d',strtotime($request->wdpayedDate)), \n //'card' => $request->card, \n 'currencyType' => $request->currencyType, \n //'receivedOriginalAgreements' => $request->roa, \n 'bank' => $request->bank,\n 'online' => $request->online,\n 'debitAccountNo' => $request->debitAccountNo, \n 'chequeNo' => $request->chequeNo,\n 'remarks' => $request->remarks.' - money was withdrawn']);\n\n $type='WITHDRAWAL';\n $report='withdrawal request is Paid tcn Id: '. $request->tcnId.' - withdrawal Id :'.$request->withDrawId;\n Controller::logReport($type,$report);\n\n \n return redirect('admin/normalWithDraw');\n }", "function endBt($date_input)\n{\n\tglobal $connect;\n\t$objResponse = new xajaxResponse();\n\n\t$date_input=str_replace(\"-\",\"\",$date_input);// '-' 제거\n\t$query=\"UPDATE `toto_closedsale` SET `clos_chck` = 'Y' WHERE `reg_date`='\".$date_input.\"';\";\n $saveQue = mysql_query($query, $connect);;\n\t$objResponse->assign('end', 'disabled', true);\n\t\n\treturn $objResponse;\n}", "public function checkoutCancel(Request $request){\n $tran_id = $request->input('tran_id');\n\n $order_detials = ProductOrder::where('tran_id', $tran_id)->select('tran_id', 'payment_status', 'currency', 'total_amount')->first();\n\n if ($order_detials->status == 'Pending') {\n $update_product = ProductOrder::where('tran_id', $tran_id)->update(['payment_status' => 'Canceled']);\n echo \"Transaction is Cancel\";\n } else if ($order_detials->status == 'Processing' || $order_detials->status == 'Complete') {\n return redirect()->route('frontend_customer_dashboard', '#orders')->with('success', 'Transaction is successfully Completed');\n } else {\n echo \"Transaction is Invalid\";\n }\n }", "public function actionWithdrawMoney()\n {\n // Recevei the POST params\n $request = Yii::$app->request;\n $user_id = $request->post('user_id');\n $amount_currency = $request->post('amount_currency');\n $wallet_currency = $request->post('wallet_currency');\n $amount = $request->post('amount');\n\n // Check the mandatory fields\n if (empty($user_id)) {\n throw new BadRequestHttpException('The user ID must be informed.');\n } else if (empty($amount_currency)) {\n throw new BadRequestHttpException('The amount currency must be informed.');\n } else if (empty($wallet_currency)) {\n throw new BadRequestHttpException('The wallet currency must be informed.');\n } else if (empty($amount)) {\n throw new BadRequestHttpException('The amount must be informed.');\n } else {\n // Prepare the input\n $amount = floatval($amount);\n $amount_currency = strtoupper($amount_currency);\n $wallet_currency = strtoupper($wallet_currency);\n\n // Try to retrieve the wallet info\n $wallet = Wallet::find()->where(['user_id' => $user_id])->andWhere(['currency' => $wallet_currency])->one();\n\n // Check if the wallet exists\n if (isset($wallet) && !empty($wallet)) {\n // Check if needs to convert\n if (strcmp($amount_currency, $wallet_currency) != 0) {\n // Gets the new currency quotation\n $result = $this->actionConvertCurrency($amount_currency, $wallet_currency, $amount);\n\n // Check if the conversion happend succesfully\n if (isset($result) && !empty($result)) {\n // Check if the wallet have enough fund\n if ($wallet->balance >= $result['converted_amount']) {\n // Perform the balance withdraw with conversion\n $wallet->balance -= $result['converted_amount'];\n } else {\n // Log the transaction as complete\n $this->logTransaction(Transaction::WITHDRAW, $amount, $result['converted_amount'], $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n\n throw new BadRequestHttpException('The wallet ' . $wallet_currency . ' does not have enough fund for this operation.');\n }\n } else {\n throw new HttpException('It was not possible to contact the currency exchange server.');\n }\n } else {\n // Check if the wallet have enough fund\n if ($wallet->balance >= $amount) {\n // Perform the balance withdraw without conversion\n $wallet->balance -= $amount;\n } else {\n // Log the transaction as incomplete\n $this->logTransaction(Transaction::WITHDRAW, $amount, 0, $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n\n throw new BadRequestHttpException('The wallet ' . $wallet_currency . ' does not have enough fund for this operation.');\n }\n }\n\n // Update the the wallet balance\n if ($wallet->save()) {\n // Log the transaction as complete\n if (isset($result) && !empty($result)) {\n $this->logTransaction(Transaction::WITHDRAW, $amount, $result['converted_amount'], $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::COMPLETE);\n } else {\n $this->logTransaction(Transaction::WITHDRAW, $amount, 0, $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::COMPLETE);\n }\n\n // Return the wallet updated\n return $wallet;\n } else {\n // Log the transaction as incomplete\n if (isset($result) && !empty($result)) {\n $this->logTransaction(Transaction::WITHDRAW, $amount, $result['converted_amount'], $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n } else {\n $this->logTransaction(Transaction::WITHDRAW, $amount, 0, $wallet->code, '',\n $amount_currency, $wallet_currency, Transaction::INCOMPLETE);\n }\n\n throw new ServerErrorHttpException(\"It wasn't possible to complete the withdraw\");\n }\n } else {\n throw new BadRequestHttpException('The wallet ' . $wallet_currency . ' was not found.');\n }\n }\n }", "public function store(Request $request)\n {\n $asset_fund = new Asset_fund();\n $timeZoneId = PermissionTrait::getTimeZoneId();\n\n if($this->merchantId != 0) {\n $merchantID = $this->merchantId;\n } else {\n $merchantID = $request->merchant_id;\n }\n $asset_fund->merchant_id = $merchantID;\n \n $asset_fund->merchant_account_id = $request->merchant_account_id;\n $asset_fund->customer_account_id = $request->customer_account_id;\n \n $asset_fund->asset_id = $request->asset_id_hidden;\n \n $asset_fund->asset_price = $request->asset_price;\n \n $assetAction = $request->action;\n\n if($assetAction === 'withdrawal') {\n $asset_fund->asset_quantity = -($request->asset_quantity);\n }\n else {\n $asset_fund->asset_quantity = $request->asset_quantity;\n }\n\n $asset_fund->fund_title = $request->fund_title;\n\n $asset_fund->fund_description = $request->fund_description;\n\n $asset_fund->fund_type = $request->fund_type;\n\n $asset_fund->fund_timezone = $timeZoneId;\n\n /*if(isset($request->fund_date)) {\n $timestamp = json_decode($this->covertToUtcTz(strtotime($request->fund_date.\" \".$request->fund_time.\":00\")));\n $asset_fund->fund_date = $timestamp->date;\n } else {\n $asset_fund->fund_date = date('Ymd');\n }\n\n if(isset($request->fund_time)) {\n $timestamp = json_decode($this->covertToUtcTz(strtotime($request->fund_date.\" \".$request->fund_time.\":00\")));\n $asset_fund->fund_time = $timestamp->time;\n } else {\n $asset_fund->fund_time = time();\n }*/\n \n $asset_fund->fund_date = date('Ymd');\n $asset_fund->fund_time = time();\n \n $asset_fund->status = 1;\n $asset_fund->approval_staff_id = $this->staffId;\n\n $asset_fund->save();\n\n $assetFundId = $asset_fund->fund_id;\n\n $asset_fund_image = new Asset_fund_image();\n\n $asset_fund_image->fund_id = $assetFundId;\n $asset_fund_image->image_title = $request->image_title;\n $asset_fund_image->image_description = $request->image_description;\n\n $hase_merchant = Merchant::\n select('merchant.merchant_id','identity_merchant.identity_name as merchant_name')\n ->leftjoin('identity_merchant','identity_merchant.identity_id','=','merchant.identity_id') \n ->where('merchant.merchant_id',$merchantID)\n ->get()->first();\n $merchantDirName = md5($hase_merchant->merchant_name);\n if($request->file('image_href')) {\n $publicDirPath = public_path(env('image_dir_path'));\n $imageDirPath = \"merchant/$merchantDirName/\";\n $absoluteImageDirPath = $publicDirPath.$imageDirPath;\n\n if(!file_exists($absoluteImageDirPath)){\n mkdir($absoluteImageDirPath,0777,true);\n }\n $imageName = $request->file('image_href')->getClientOriginalName();\n $imageArray = explode('.', $imageName);\n $hashImageName = md5($hase_merchant->merchant_name.$imageName).\".\".$imageArray[1];\n $request->file('image_href')->move($absoluteImageDirPath,$hashImageName);\n $asset_fund_image->image_href = \"$imageDirPath$hashImageName\";\n }\n $asset_fund_image->save();\n\n Session::flash('type', 'success');\n Session::flash('msg', 'Asset Fund Successfully Inserted');\n\n return redirect('asset_fund');\n }", "public function getWithdrawalPaymentDeatils() {\n $select = $this->select()\n ->from(array('wr' => 'withdrawal_request'))\n ->setIntegrityCheck(false)\n ->join(array('u' => 'users'), 'u.user_id = wr.user_id', array(\"u.user_name\"))\n ->order('wr.withdrawal_id DESC');\n// ->where('wr.status =?','0');\n\n $result = $this->getAdapter()->fetchAll($select);\n if ($result) :\n return $result;\n endif;\n }", "public function store(Request $request)\n { \n // return $request;\n //return response(\"sucsssadsadasdcess\");\n // $dt = Carbon::now(); \n //$data = array('balance' => 52525 );\n // $data['time'] = '2020-10-02';\n $mytime = \\Carbon\\Carbon::now(+2);\n $time = $mytime->toDateTimeString();\n $bus = Bus::where('DeviceNumber', $request->id)->first();\n $bus_id =$bus->id;\n $lastBalance = Balance::where('bus_id',$bus_id)->latest()->first();;\n// dd($lastBalance->secretNum);\n //if($request['id'] == \"V155\"){ ///device id\n \n $data = $request->balance ;\n $dataAr =explode(',',$data);\n // dd($dataAr[1]);\n if($lastBalance->secretNum == $dataAr[1] ){\n if($lastBalance->amount == $dataAr[0]){\n return response(\"success\");\n }\n else{\n $form_data = array(\n 'secretNum' => $dataAr[1],\n 'bus_id' => $bus_id,\n 'amount' => $dataAr[0] \n );\n \n $lastBalance->update($form_data);\n return response(\"success\"); \n }\n }\n else{\n if($dataAr[0] == 0)\n {\n return response(\"success\");\n }\n else\n {\n $form_data = array(\n 'secretNum' => $dataAr[1],\n 'bus_id' => $bus_id,\n 'amount' => $dataAr[0] \n );\n\n Balance::create($form_data);\n return response(\"success\"); \n }\n \n }\n \n //toast(__('Odeme Added Successfully'), 'success');\n /* return array(\n 'b' => 41, //max number is 9999\n 'a' => 16 ,\n 'l' => 60 ,\n 'e' => \"2021-11-09 54:72:47\" \n );\n */\n return $request;\n // } \n \n /*\n else if($request['id'] == \"6344F814\"){ ///card id\n return array(\n 'b' => 270, //max number is 9999\n 'e' => \"2021-01-18 33:36:52\" \n );\n }\n else{\n return response(\"error\");\n }\n */\n \n // dd($request);\n // $request['name'] = \"post\";\n //return \"ATCSQ\"; \n return response(\"success\");\n return $request;\n }" ]
[ "0.59991115", "0.5895767", "0.57898754", "0.57084244", "0.5663099", "0.56475", "0.5638155", "0.5431529", "0.5413326", "0.5367217", "0.53622586", "0.53597295", "0.5326175", "0.5296788", "0.5296642", "0.52909964", "0.52872086", "0.52243996", "0.52211595", "0.5204027", "0.5193659", "0.5189037", "0.5187882", "0.51736116", "0.5166925", "0.51596475", "0.51536584", "0.51277316", "0.51098526", "0.50940484", "0.5083675", "0.50710875", "0.5071072", "0.50701874", "0.50411564", "0.50216454", "0.50116557", "0.50109476", "0.50106514", "0.500595", "0.4975507", "0.49705708", "0.4968374", "0.49535662", "0.49527153", "0.4948501", "0.49443153", "0.49426407", "0.49361596", "0.49248743", "0.49149102", "0.49094865", "0.4904662", "0.48989308", "0.4898843", "0.48814568", "0.48807737", "0.4880125", "0.48789626", "0.48773628", "0.48773512", "0.48583364", "0.4856383", "0.4849469", "0.48402685", "0.48394206", "0.48309323", "0.48291683", "0.48273152", "0.4825172", "0.4824013", "0.481438", "0.48116958", "0.4811671", "0.48049933", "0.4798332", "0.47953066", "0.47915262", "0.47914934", "0.4790157", "0.47870338", "0.47853273", "0.47809207", "0.47786787", "0.47753808", "0.4768929", "0.47685358", "0.47656485", "0.47609872", "0.47594464", "0.475686", "0.4754308", "0.4751154", "0.47510552", "0.47506657", "0.4749754", "0.4748413", "0.4747648", "0.47472012", "0.47469956", "0.47466344" ]
0.0
-1
/31_1_2021 Ksbm Infotech Pvt. Ltd. Rekha
function hoster_user_make_admin_user_his_joined_live_room() { require_once("config.php"); $input = @file_get_contents("php://input"); //$event_json = json_decode($input,true); $event_json = json_decode($input,true); if(!isset($event_json['fb_id']) || $event_json['fb_id']=="") { $msg_out="Validation Error fb_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['ulrd_id']) || $event_json['ulrd_id']=="") { $msg_out="Validation Error ulrd_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $fb_id=$event_json['fb_id']; $ulrd_id=$event_json['ulrd_id']; $DATE_TIME=custom_current_date_time(); $sql="SELECT count(*) as admin_user FROM `user_join_live_room_details` where ujlrd_ulrd_id=$ulrd_id and ujlrd_user_type='Admin'"; $admin_user=mysqli_fetch_assoc(mysqli_query($conn,$sql)); if($admin_user['admin_user']> 5){ $msg_out="Admin creation maximum limit is exceeded.!"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $update_sql='Update `user_join_live_room_details` set ujlrd_user_type="Admin" where ujlrd_status="0" and ujlrd_ulrd_id="'.$ulrd_id.'" and ujlrd_fb_id ="'.$fb_id.'"'; $res=mysqli_query($conn,$update_sql)or die(mysqli_error($conn)); if($res) { // $lasq='select * from user_join_live_room_details WHERE ujlrd_id="'.$ujlrd_id.'" and ujlrd_ulrd_id="'.$ulrd_id.'"'; $newdata ="";//mysqli_fetch_assoc(mysqli_query($conn,$lasq)); $msg_out="Admin created Successfully "; $output=array( "code" => "200", "msg" => $msg_out ,"data" => $newdata); }else{ $msg_out="Error in Update Data"; $output=array( "code" => "500", "msg" => $msg_out , "data"=> ""); } print_r(json_encode($output, true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __getRupiah()\r\n\t{\r\n\t\t$request = Requests::get('http://www.bca.co.id/id/biaya-limit/kurs_counter_bca/kurs_counter_bca_landing.jsp');\r\n\t\t\r\n\t\tpreg_match('(\\d\\d\\40\\w+\\40\\d\\d\\d\\d\\40/\\40\\d\\d:\\d\\d\\40\\w+)', $request->body, $data['date']);\r\n\t\tpreg_match_all('/\\<td style=\"text-align:right;\"\\>(\\d+.\\d+)\\<\\/td\\>/', $request->body, $data['curr']);\r\n\r\n\t\t$return['date'] = $data['date'][0];\r\n\t\t$return['usd']['sell'] = $data['curr'][1][0];\r\n\t\t$return['usd']['buy'] = $data['curr'][1][1];\r\n\r\n\t\treturn $return;\r\n\t}", "public function dc()\n\t{\n\t\tif (preg_match('/^brothers-of-usenet.+? \\(\\d+\\/\\d+\\) \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . ' - \\d+[,.]\\d+ [mMkKgG][bB] yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"The.Crow.1994.German.DL.PAL.HD2DVD.DVDR-Braunbaer.par2\" yEnc\n\t\tif (preg_match('/^\"([\\w.]{10,}-[a-zA-Z0-9]+)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //Eragon postet The Secret of Crickley Hall S01E02 german Sub hardcodet [02/28] - \"the_secret_of_crickley_hall.1x02.hdtv_x264-fov_arc.par2\" yEnc\n\t\tif (preg_match('/^[A-Z0-9].+? postet\\s+.+?\\s+\\[\\d+\\/\\d+\\] - \"([\\w.-]{10,}?)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Eragon postet Hart of Dixie S02E13 german Sub hardcodet. [02/21] - \"hart of dixie S02E13.par2\" yEnc\n\t\tif (preg_match('/^[A-Z0-9].+? postet\\s+(.+?)\\.?\\s+\\[\\d+\\/\\d+\\] - \".+?' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //>GOU<< - \"Internet Download Manager 6.15 Build 1.rar\" yEnc\n\t\tif (preg_match('/^>GOU<< - \"(.+?)\\.rar\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //Die.wahren.Faelle.des.NCIS.S01E06.Mord.ohne.Skrupel.GERMAN.DOKU.WS.BDRip.XviD-MiSFiTS - \"misfits-therealnciss01e06-xvid.par2\" yEnc\n\t\tif (preg_match('/^([\\w.]{8,}-[a-zA-Z0-9]+) - \".+?\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //Double.Team.1997.German.FSK18.AC3.DVDRiP.XViD\"team-xvid.oppo.par2\" yEnc\n\t\tif (preg_match('/^([\\w.]{10,})\".+?\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "public function getZoho()\n {\n $ret = \"97916613\";\n \treturn $ret;\n }", "function lb_get_seo_title($product) {\n //$price = lb_format_price($product['finalprice'], true, true);\n $price = round((float)$product['finalprice']/100, 0) . ':-';\n \n $seo_title = 'Köp ' . $product['name'] . (isset($product['merchant'])?' från ' . $product['merchant']:'') . ' för ' . $price . (true == (bool)$product['onsale']?' (' . $product['salediscount'] . '% rabatt!)':'');\n \n error_log('lb_get_seo_title - product[finalprice]=' . $product['finalprice'] . ', price=' . $price . ', product: ' . print_r($product, true));\n\n return wpts_spin($seo_title);\n}", "function qualificationServ(): string\n{\n $FtPqr = getFtPqr();\n $FtPqrCalificacion = $FtPqr->getLastCalificacion();\n\n return $FtPqrCalificacion ? $FtPqrCalificacion->getFieldValue('experiencia_servicio') : '-';\n}", "public function amazing()\n\t{\n\t\tif (preg_match('/^\\(\\?+\\) \\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(Ass Backwards (2013) WEBrip XviD AC3 (english subs)) [18/35] - \"Ass Backwards (2013) WEBrip XviD AC3 (english subs).part17.rar\" yEnc\n\t\tif (preg_match('/^\\([\\w!.,&_ ()\\[\\]\\'\\`-]{8,}\\)[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(Angels4Always) [1/1] - \"Vermeulen, John - De tweelingparadox.rar\" yEnc\n\t\tif (preg_match('/^\\(Angels4Always\\)[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Heaven_en_Fayth Presenteren Diana Gabaldon - Reiziger Cyclus 01 - De Reiziger[0/3] - \"Diana Gabaldon - Reiziger Cyclus 01 - De Reiziger.nzb\" yEnc\n\t\tif (preg_match('/^[\\w!.,&_ ()\\[\\]\\'\\`-]{8,}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //www.wolfsteamers.info [1/6] - \"Wohnen Bauen Leben - Sommer 2014.par2\" - 16,46 MB yEnc\n\t\tif (preg_match('/^www\\.wolfsteamers\\.info[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //096XZFUPQ0PxH4441H14fU8V - [34/99] - \"096XZFUPQ0PxH4441H14fU8V.part033.rar\" yEnc\n\t\tif (preg_match('/^\\w+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //05VANmA80DckBho \"05VANmA80DckBho.part07.rar\"08/94 yEnc\n\t\tif (preg_match('/^\\w+[-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 .\n\t\t\t\t\t '\\d+(\\/\\d+)[-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(Slaapkop post voor http://the-ultimate-force.org.ua/) [0/7] - \"Wham - I'm Your Man (1985).nzb\" yEnc\n\t\tif (preg_match('/^\\(.+the-ultimate-force\\.org\\.ua\\/\\)[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(001/101) - P2H - \"L62WD8P4U539A7.par2\" - 4,66 GB - Z9F6KN7SXRCY845 yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) - P2H - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '[-_\\s]{0,3}\\d+([.,]\\d+)? [kKmMgG][bB][-_\\s]{0,3}\\w+[-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(001/101) \"654258ItB1418pBRDNS264159.par2\" - 9,74 GB - yEnc\n\t\t//(001/105) - Description - \"oH291TB0bPxf3lqm1P7QQ.par2\" - 4,56 GB - yEnc\n\t\t//(03/43) - FTTEAM.INFO - \"JDSJ2J4ENASJCKR-FTTEAM.INFO.part02.rar\" - 2,04 GB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\)([-_ ]{0,4}(Description|FTTEAM\\.INFO))?[-_ ]{0,4}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[3];\n\t\t} //- - [001/242] - \"C65JuogI92CwfMo2TiX59.par2\" yEnc\n\t\tif (preg_match('/^[-_ .]{0,4}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //- \"5nivJ7V6Q2jqAR34bZ8m.part46.rar\" yEnc\n\t\tif (preg_match('/^[-_ .]{0,4}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //- \"7UAF6LE2PDM38NB.par2\" - 8,53 GB - yEnc\n\t\tif (preg_match('/^[-_ .]{0,4}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //- [01/10] - \"file.xyz\" yEnc - [001/107] - \"86u1Qr8mm56jGiW7nUPTM.par2\" yEnc\n\t\tif (preg_match('/^[-_ ]{0,4}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\".+\" yEnc[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "public function getTitle()\n {\n return Mage::helper('ddg')->__(\"Engagement Cloud Account Information\");\n }", "protected function getJour()\n{\nreturn substr($this->getDateSysteme(), 8, 2);\t\n}", "public function bersuara()\n {\n return \"DARAWET ANJING DAWET\";\n }", "public function cekapi()\n {\n $term = 'CABANG';\n $data = $this->M_msj->getMaster();\n // $data = $this->M_msj->getFPB('SJ200500001');\n echo \"<pre>\";\n print_r($data);\n die;\n }", "function qualificationGest(): string\n{\n $FtPqr = getFtPqr();\n $FtPqrCalificacion = $FtPqr->getLastCalificacion();\n\n return $FtPqrCalificacion ? $FtPqrCalificacion->getFieldValue('experiencia_gestion') : '-';\n}", "public function ToHijri()\n {\n\n\n }", "function DLRH($text) {\n $pattern = \"/\\\\\\\\sidenote\\{DLRH:(\\d*)\\}\\s/u\";\n $z = preg_replace($pattern, '<span style=\"font-variant:small-caps;font-size:0.9em\"> De La Rue History (page $1) </span>', $text);\n\t\t\n return $z;\n }", "public function getZoho()\r\n {\r\n $ret = \"1535561942737\";\r\n \treturn $ret;\r\n }", "public function bungabunga()\n\t{\n\t\t//(3/9) - \"Microsoft Frontpage 2003 - 4 Town-Up from Kraenk.rar.par2\" - 181,98 MB - yEnc\n\t\tif (preg_match('/^[\\[(]\\d+\\/\\d+[\\])] - \"([A-Z0-9].{2,}?)' . $this->e0 .\n\t\t\t\t\t ' - \\d+[.,]\\d+ [kKmMgG][bB]( -)? yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "function hapuspartikel($kata){\n if((substr($kata, -3) == 'kah' )||( substr($kata, -3) == 'lah' )||( substr($kata, -3) == 'pun' )){\n $kata = substr($kata, 0, -3); \n }\n return $kata;\n }", "function bnk_analytics(){\r\n\tglobal $smof_data;\r\n\tif ( $smof_data['bnk_ga_code'] != '') {\r\n\techo stripslashes($smof_data['bnk_ga_code']) ;\r\n\t}\r\n}", "public function getBanyakSoal();", "function rabobank($row) {\n // https://bankieren.rabobank.nl/klanten/bedrijven/help/specificaties_elektronische_betaaldiensten/rabo_internetbankieren_professional/export/ --> 'CSV (kommagescheiden nieuw)'\n\n $fields['date'] = substr($row[2], 4, 2) . \"/\" . substr($row[2], 6, 2) . \"/\" . substr($row[2], 0, 4);\n $fields['amount'] = str_replace(\",\", \".\", $row[3] == \"C\" ? $row[4] : \"-\" . $row[4]);\n $fields['payee'] = $row[5] . \" \" . $row[6];\n $fields['payee'] = trim(preg_replace('/\\s\\s+/', ' ', $fields['payee']));\n $fields['category'] = \"\";\n\n return $fields;\n}", "function getLicence_adh(){\r\n return $this->licence_adh;\r\n}", "public function get_title() {\r\n\t\treturn esc_html__( 'Price Plan: 02', 'aapside-master' );\r\n\t}", "public function warez_0_day()\n\t{\n\t\tif (preg_match('/^([a-zA-Z].+) - \\[\\d+\\/\\d+\\] - \".+?\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //ATKExotics.13.01.06.Janea.Toys.XXX.1080p.x264-SEXORS - [1/7] - #34;ATKExotics.13.01.06.Janea.Toys.XXX.1080p.x264-SEXORS.rar#34; yEnc\n\t\tif (preg_match('/^([a-z].+) - \\[\\d+\\/\\d+\\][ _-]{0,3}(\"|#34;).+(\"|#34;) yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//-Panzer.Command.Kharkov-SKIDROW - [1/7] - \"-Panzer.Command.Kharkov-SKIDROW.rar\" yEnc\n\t\t//-AssMasterpiece.12.07.09.Alexis.Monroe.XXX.1080p.x264-SEXORS - [1/7] - #34;-AssMasterpiece.12.07.09.Alexis.Monroe.XXX.1080p.x264-SEXORS.rar#34; yEnc\n\t\tif (preg_match('/.*[\\(\\[]\\d+\\/\\d+[\\)\\]][-_\\s]{0,3}(\"|#34;)(.+?)(\\.part\\d*|\\.rar)?(\\.vol.+?\"|\\.[A-Za-z0-9]{2,4})(\"|#34;)(.+?)yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //- \"JH2U0H5FIK8TO7YK3Q.part12.rar\" yEnc\n\t\tif (preg_match('/.*\"(.+?)(\\.part\\d*|\\.rar)?(\\.vol.+?\"|\\.[A-Za-z0-9]{2,4}\")(.+?)yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //( XS Video Converter Ultimate 7.7.0 Build 20121226 ) - yEnc\n\t\tif (preg_match('/^\\( (.+?) \\) - yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "public function veriCode() {}", "public function british_drama()\n\t{\n\t\t//Coronation Street 04.05.2012 - Part 1 [XviD] [01/23] - \"coronation.street.04.05.12.part.1.[ws.pdtv].par2\" yEnc\n\t\tif (preg_match('/^([a-zA-Z0-9].+? \\[XviD\\]) \\[\\d\\/\\d+\\] - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//The Prisoner E06-09 [001/152] - \"06 The General.mkv.001\" yEnc\n\t\t//Danger Man S2E05-08 [075/149] - \"7.The colonel's daughter.avi.001\" yEnc\n\t\tif (preg_match('/^([a-zA-Z0-9]+ .+? (S\\d+)?E\\d+-\\d\\d) \\[\\d+\\/\\d+\\] - \"\\d(\\d |\\.).+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Wizards Vs Aliens - 1x06 - Rebel Magic, Part Two [XviD][00/27] - \"wizards.vs.aliens.106.rebel.magic.part.two.[ws.pdtv].nzb\" yEnc\n\t\tif (preg_match('/^.+?[-_\\s]{0,3}\\d+[xX]\\d+[-_\\s]{0,3}.+?\\[\\d+\\/\\d+\\][-_\\s]{0,3}.+?\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Vera.3x03.Young.Gods.720p.HDTV.x264-FoV - \"vera.3x03.young_gods.720p_hdtv_x264-fov.r00\" yEnc\n\t\tif (preg_match('/^[a-zA-Z0-9-\\.]+ - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Heartbeat 9x23 Wise Guys.avi.015 yEnc\n\t\tif (preg_match('/^(.+ \\d+x\\d+.+?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}) yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Minder S10E10 [00/52] - \"S10E10.nzb\" yEnc\n\t\tif (preg_match('/^(.+ S\\d+E\\d+)[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Rosemary & Thyme.106..The Tree of Death....Read txt file for more info about this posting - File 03 of 51 - \"Rosemary & Thyme.106.The Tree of Death.part01.rar\" yEnc\n\t\tif (preg_match('/^.+File \\d+ of \\d+ - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //The.Tudors.S01E04.2007.720p[33/57] - \"The.Tudors.S01E04.2007.720p.part31.rar\" yEnc\n\t\tif (preg_match('/^.+\\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Happy_Halloween_The Ice House (1978).par2 yEnc\n\t\tif (preg_match('/^([\\w. &()-]{8,}?\\b)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}) yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"Rosemary & Thyme - 2x02 Orpheus In The Undergrowth.par2\" yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[01/45] - \"Minder S01E08.sfv\" yEnc\n\t\tif (preg_match('/^\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "public function HienThiBinhLuan0(){\n\t\t$this->db->where('KichHoat', '0');\n\t\treturn $this -> db -> get('b_cmt');\n\t}", "function convert_date_to_kh_date($date_string, $splitted_by = '.')\n{\n if (odm_language_manager()->get_current_language() == 'km') {\n $splitted_date = explode($splitted_by, $date_string);\n $joined_date = '';\n if (count($splitted_date) > 1) {\n if (strlen($date_string) == 7) {\n $month_year = $splitted_date;\n if ($month_year[0] != '00') {\n $joined_date .= ' ខែ'.convert_to_kh_month($month_year[0]);\n }\n if ($month_year[1] != '0000') {\n $joined_date .= ' ឆ្នាំ'.convert_to_kh_number($month_year[1]);\n }\n } else {\n $day_month_year = $splitted_date;\n if ($day_month_year[0] != '00') {\n $joined_date .= 'ថ្ងៃទី '.convert_to_kh_number($day_month_year[0]);\n }\n if ($day_month_year[1] != '00') {\n $joined_date .= ' ខែ'.convert_to_kh_month($day_month_year[1]);\n }\n if ($day_month_year[2] != '0000') {\n $joined_date .= ' ឆ្នាំ'.convert_to_kh_number($day_month_year[2]);\n }\n }\n } else {\n if (strlen($date_string) == 4) {\n $joined_date = ' ឆ្នាំ'.convert_to_kh_number($date_string);\n }\n }\n\n return $joined_date;\n } else {\n $return_date = date('d F Y', strtotime($date_string));\n\n return $my_date;\n }\n}", "public function ebook_technical()\n\t{\n\t\tif (preg_match('/ASST (NEW|OLD) MTLS.*\"(.+?)(\\.part\\d*|\\.rar)?(\\.vol.+?\"|\\.[A-Za-z0-9]{2,4}\").+?yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[2];\n\t\t} //\"ASTG TRANSMISSON REBUILD MANUALS FOR BMW.rar.par2\" [07/73] yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 . '[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}yEnc$/ui', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //(???) [1/1] - \"Asimov, Isaac - [Foundation 01] - De Foundation_v2.rar\" yEnc\n\t\tif (preg_match('/^\\(\\?+\\) \\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //(07/14) \"NS120107 07Jan12.pdf\" - 238.80 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\)[-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e2, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //(103 eBooks On Music Production) [071/111] - \"Pro Enginner School Vol. 1 + 2 By Record-Producer.com PDF.rar\" yEnc\n\t\tif (preg_match('/^\\(.+\\)[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //((BIO & MED 008) [29/64] - \"Acupuncture Therapy for Neurological Diseases - Y. Xia, et al., (Springer, 2010) WW.pdf\" *REPOST* yEnc\n\t\tif (preg_match('/^\\(.+\\)[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 . '.+REPOST.+[-_\\s]{0,3}yEnc$/ui', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //(Bighathi) [4/4] - \"Letters to Penthouse XXiLetters to Penthouse XXI - The Editors of Penthouse Magazine.epub\" yEnc\n\t\tif (preg_match('/^\\(.+\\)[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //(Repost) Computing (Recent) [32 of 44] \"Professional XMPP Programming (Wrox, 2010).pdf\" yEnc\n\t\tif (preg_match('/^\\(.+\\)[-_\\s]{0,3}[\\w]+[-_\\s]{0,3}\\(.+\\)[-_\\s]{0,3}\\[\\d+ of \\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //48 Unsorted E-books (03-12-2010) [49/52] - \"Zend Framework 1.8 Web Application Development.pdf\" yEnc\n\t\tif (preg_match('/^\\d+.+E-books[-_\\s]{0,3}.+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //A large collection of programming ebooks [128 of 527] \"Eckel - Thinking in C++ - Volume II - 2e (Prentice, 2000).pdf\" yEnc\n\t\tif (preg_match('/^A large collection of programming ebooks [-_\\s]{0,3}\\[\\d+ of \\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //\"Make Magazine - Volume 03.pdf\" yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //ADVANCES in CHEMICAL ENGINEERING 22aug11 [8 of 30] \"Advances in Chemical Engineering Vol 20 Kwauk (AP 1994).pdf\" yEnc\n\t\tif (preg_match('/\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //Arduino Books by Request [9/9] - \"iOS Sensor Apps with Arduino - A. Allan (O'Reilly, 2011) WW.pdf\" (1/114) yEnc\n\t\tif (preg_match('/\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "function hapusakhiran($kata){\n if (substr($kata, -3)== \"kan\" ){\n $kata = substr($kata, 0, -3);\n }\n else if(substr($kata, -1)== \"i\" ){\n $kata = substr($kata, 0, -1);\n }else if(substr($kata, -2)== \"an\"){\n $kata = substr($kata, 0, -2);\n }\n return $kata;\n }", "public function ath()\n\t{\n\t\tif (preg_match('/^\\[\\d+\\/\\d+ ([a-zA-Z0-9]+ .+?)\\..+?\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //8b33bf5960714efbe6cfcf13dd0f618f - (01/55) - \"8b33bf5960714efbe6cfcf13dd0f618f.par2\" yEnc\n\t\tif (preg_match('/^([a-f0-9]{32}) - \\(\\d+\\/\\d+\\) - \"[a-f0-9]{32}\\..+\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //::: Usejunkies.tk ::: - [01/11] - \"DJ Shog - DNA - HD 720p.par2\" - 47,76 MB yEnc\n\t\tif (preg_match('/^.+Usejunkies.tk.+ \\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t$this->e2,\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Uploader.Presents-Mutter.und.Sohn.German.2013.DVDRiP.x264-XFi[01/27]\"xf-mutterusohn.nfo\" yEnc\n\t\tif (preg_match('/^Uploader\\.Presents-(.+)[\\(\\[]\\d+\\/\\d+[\\)\\]]\".+\" yEnc$/',\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<->http://you-need-all.tk<-> - [28/32] - \"Dirty Minded Wife Advent Vol 40 JAV Uncensored DVDRip x264-APX.vol007+08.par2\" yEnc\n\t\tif (preg_match('/^.+http:\\/\\/you-need-all\\.tk.+\\[\\d+\\/\\d+\\][\\s-_]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[02/21] - \"Staendig Feucht.part01.rar\" - 493.38 MB ....::::UR-powered by SecretUsenet.com::::.... yEnc\n\t\tif (preg_match('/^\\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 . ' - \\d+[.,]\\d+ [kKmMgG][bB] .+? yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //>>> usenet4ever.info <<<+>>> secretusenet.com <<< \"Weltnaturerbe USA Grand Canyon Nationalpark 2012 3D Blu-ray untouched - DarKneSS.part039.rar\" - DarKneSS yEnc\n\t\tif (preg_match('/^>+ .+?\\.info [<>+]+ .+?\\.com <+ \"(.+?)\\s+- .*?' . $this->e0 .\n\t\t\t' - .+? yEnc$/',\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //nmlsrgnb - [04/37] - \"htwlngmrstdsntdnh.part03.rar\" yEnc\n\t\tif (preg_match('/^([a-z]+) - \\[\\d+\\/\\d+\\] - \"[a-z]+\\..+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //>>>>>Hell-of-Usenet>>>>> - [01/33] - \"Cassadaga Hier lebt der Teufel 2011 German AC3 DVDRip XViD iNTERNAL-VhV.par2\" yEnc\n\t\tif (preg_match('/^>+Hell-of-Usenet(\\.org)?>+( -)? \\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '( - \\d+[.,]\\d+ [kKmMgG][bB])? yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[3];\n\t\t} //1dbo1u5ce6182436yb2eo (001/105) \"1dbo1u5ce6182436yb2eo.par2\" yEnc\n\t\tif (preg_match('/^([a-z0-9]{10,}) \\(\\d+\\/\\d+\\) \"[a-z0-9]{10,}\\..+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<>>>kosova-shqip.eu<<< Deep SWG - 90s Club Megamix 2011 >>>kosova-shqip.eu<<<<<< - (2/4) - \"Deep SWG - 90s Club Megamix 2011.rar\" yEnc\n\t\tif (preg_match('/^<<<>>>kosova-shqip\\.eu<<< (.+?) >>>kosova-shqip.eu<<<<<< - \\(\\d+\\/\\d+\\) - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<Have Fun> \"Invader.German.2012.PAL.DVDR-MORTAL.nfo\" SpongeBoZZ yEnc\n\t\tif (preg_match('/^<Have Fun> \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 .\n\t\t\t\t\t ' SpongeBoZZ yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1] . $match[2];\n\t\t} //Old Dad uppt Taffe Mädels XivD LD HDTV Rip oben Kleine Einblendug German 01/43] - \"Taffe Mädels.par2\" yEnc\n\t\tif (preg_match('/^([a-zA-Z0-9].+?\\s{2,}|Old Dad uppt\\s+)(.+?) \\d+\\/\\d+\\] - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //(????) Rom.S02E09.Deus.Impeditio.Esuritori.Nullus Rom.S02E09.Deus.Impeditio.Esuritori.Nullus.avi.vol007+08.PAR2\" yEnc\n\t\tif (preg_match('/^\\(\\?+\\) (.+) .+?([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4})\" yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"27MZ4CXQ3AN86D95KVHB.part06.rar\" - 21,61 GB - yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e2,\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"2EACM94X65NHZ37.par2\" yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //A7Soft ExamXML v4.37.rar yEnc\n\t\tif (preg_match('/^([^.]{8,})([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4})[- ]{0,3}yEnc$/u',\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "public function getOfficialCode ()\n {\n return ltrim ( (string) $this->xmlRecord->matriculeFgs, '0' );\n }", "public function etc()\n\t{\n\t\tif (preg_match('/^\\[scnzbefnet\\] (.+?) \\[\\d+\\/(\\d+\\]) - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //..:[DoAsYouLike]:.. 116,12 MB \"Graphite v8.9.17 SP4R4.nfo\" 3,00 kB yEnc\n\t\tif (preg_match('/^.+\\[DoAsYouLike\\].+\\d+[.,]\\d+ [kKmMgG][bB].+\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . ' (\\d+[.,])?\\d+ ([kKmMgG])?[bB][-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(047/550) \"Enf.S02E02.G.D.D.W.7.H.x2-e.vol105+99.PAR2\" - 36,13 GB -Enf.S02.G.D.D.W.7.H.x2-e yEnc\n\t\t//[3/3] - \"Mayle Peter - Der Coup von Marseille.epub.vol0+1.par2\" - 956,83 kB {UR} yEnc\n\t\tif (preg_match('/^[\\(\\[]\\d+\\/\\d+[\\)\\]][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '.+yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<Old but Sold>>> <<< >< >< \"German Top 50 ODC - 12.08.2013.nfo\" >< 02/33 (541,61 MB) >< 10,93 kB > yEnc\n\t\tif (preg_match('/^.+Old but Sold.+>< \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . ' >< \\d+\\/\\d+ \\(\\d+[.,]\\d+ [kKmMgG][bB]\\).+ yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<THOR for Usenet-Space-Cowboys>>> - 1Password V1.0.9.236 Setup Key.PAR2 yEnc\n\t\tif (preg_match('/^.+Usenet-Space-Cowboys.+> - ([A-Z0-9][a-zA-Z0-9\\. ]{6,})([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}).+ yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //704900999555666777123978 - [398/415] - \"Jormungand Complete [720p] mHD.part31.rar\" yEnc\n\t\tif (preg_match('/^\\d+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE - [02/38] - \"Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE.part01.rar\" yEnc\n\t\tif (preg_match('/^[\\w. -]+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w.()-]{8,}?\\b)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<< old but sold >>>> < USC> <\"K11 - Kommissare im Einsatz (DE) NDS.part3.rar\">[04/11] 74,54 MB yEnc\n\t\tif (preg_match('/^.+old but sold.+([\\w. ()-]{8,}?\\b)' . $this->e0 .\n\t\t\t\t\t '>\\[\\d+\\/\\d+\\][-_\\s]{0,3}\\d+[.,]\\d+ [kKmMgG][bB][-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Uploader.Presents-ACDC.Let.There.Be.Rock.1980.720p.BluRay.DD5.1.x264-DON(00/47]\"rock.ac3.720p.nzb\" yEnc\n\t\tif (preg_match('/^Uploader\\.Presents-([\\w. ()-]{8,}?\\b)[\\(\\[]\\d+\\/\\d+\\]\".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Bitsum.Technologies.Process.Lasso.Pro.v6.5.00.Cracked-EAT - [3/4] - \"eat.vol0+1.par2\" yEnc\n\t\tif (preg_match('/^([\\w.()-]{8,})[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\".+?' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<usenet-space-cowboys.info>>> USC <<<Powered by https://secretusenet.com><Medieval Wii Pal>< \"Medieval Wii Pal.vol108+29.par2\" >< 60/60 (4,82 GB) >< 95,77 MB > yEnc\n\t\tif (preg_match('/^.+?usenet-space.+?Powered by.+? \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '.+? \\d+\\/(\\d+.+?)$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Uploader.Presents-ACDC.Let.There.Be.Rock.1980.720p.BluRay.DD5.1.x264-DON(00/47]\"rock.ac3.720p.nzb\" yEnc\n\t\tif (preg_match('/^Uploader\\.Presents-([\\w. ()-]{8,}?\\b)[\\(\\[]\\d+\\/\\d+\\]\".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Bitsum.Technologies.Process.Lasso.Pro.v6.5.00.Cracked-EAT - [3/4] - \"eat.vol0+1.par2\" yEnc\n\t\tif (preg_match('/^([\\w.()-]{8,})[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\".+?' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<usenet-space-cowboys.info>>> USC <<<Powered by https://secretusenet.com><Medieval Wii Pal>< \"Medieval Wii Pal.vol108+29.par2\" >< 60/60 (4,82 GB) >< 95,77 MB > yEnc\n\t\tif (preg_match('/^.+?usenet-space.+?Powered by.+? ([\\w. ()-]{8,}?\\b)' . $this->e0 .\n\t\t\t\t\t '.+? \\d+\\/(\\d+.+?)$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //W33d5.S01.720p.BluRay.x264 - \"W33d5.S01.720p.BluRay.x264.part63.rar\" yEnc\n\t\tif (preg_match('/^[\\w. -]+[-_\\s]{0,3}\"([\\w.()-]{8,}?\\b)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE - [02/38] - \"Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE.part01.rar\" yEnc\n\t\tif (preg_match('/^[\\w. -]+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w.()-]{8,}?\\b)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //>GOU<< XUS Clock Plus v1.5.0 with Key [TorDigger].PAR2 >>www.SSL-News.info< yEnc\n\t\tif (preg_match('/^>GOU<< ([\\w.\\[\\]() -]{8,}?\\b)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rarr|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}).+www\\.SSL-News\\.info<[-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE - [02/38] - \"Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE.part01.rar\" yEnc\n\t\tif (preg_match('/^[\\w. -]+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w.()-]{8,}?\\b)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //>GOU<< XUS Clock Plus v1.5.0 with Key [TorDigger].PAR2 >>www.SSL-News.info< yEnc\n\t\tif (preg_match('/^>GOU<< ([\\w.\\[\\]() -]{8,}?\\b)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rarr|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}).+www\\.SSL-News\\.info<[-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"Drains_READNFO-VACE.nfo\" yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "function vek($rokNarodenia)\n {\n return 2021 - $rokNarodenia;\n }", "public function getKieKelasHaid()\n {\n return $this->kie_kelas_haid;\n }", "function hilangkan_spesial_karakter($result) { \n\t$result = strip_tags($result);\n\t$result = preg_replace('/&.+?;/', '', $result); \n\t$result = preg_replace('/\\s+/', ' ', $result);\n $result = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', ' ', $result);\n\t$result = preg_replace('|-+|', ' ', $result);\n $result = preg_replace('/&#?[a-z0-9]+;/i','',$result);\n $result = preg_replace('/[^%A-Za-z0-9 _-]/', ' ', $result);\n\t$result = trim($result, ' ');\n\treturn $result;\n}", "function getRHUL_StartYear() {\n $dname = getRHUL_LDAP_FieldValue(\"adi_displayname\");\n\tif (strpos($dname, \"(\"))\n\t{\t\t\n\t\t$p = (int)strpos($dname, \"(\");\n\t\treturn substr($dname, $p+1, 4);\n\t} else\n\t{\n\t\treturn \"0\";\n\t}\n}", "private function calculateBelfioreCode()\n {\n return strtoupper($this->subject->getBelfioreCode());\n }", "function formatKata31($kata)\n{\n if ($kata == 'pelajar') {\n return 'ajar';\n }else{\n return substr($kata, 2);\n } \n}", "function hapusawalan2($kata){\n if(substr($kata,0,3)==\"ber\"){\n $kata = substr($kata,3);\n }else if(substr($kata,0,3)==\"bel\"){\n $kata = substr($kata,3);\n }else if(substr($kata,0,2)==\"be\"){\n $kata = substr($kata,2);\n }else if(substr($kata,0,3)==\"per\" && strlen($kata) > 5){\n $kata = substr($kata,3);\n }else if(substr($kata,0,2)==\"pe\" && strlen($kata) > 5){\n $kata = substr($kata,2);\n }else if(substr($kata,0,3)==\"pel\" && strlen($kata) > 5){\n $kata = substr($kata,3);\n }else if(substr($kata,0,2)==\"se\" && strlen($kata) > 5){\n $kata = substr($kata,2);\n }\n return $kata;\n }", "public function getKieUksHaid()\n {\n return $this->kie_uks_haid;\n }", "function put_sprdh_title() {\n\treturn ('This website is powered by SPRDH');\n}", "function eralha_crowdfunding_account(){\n\t\t\t\n\t\t}", "function getDataMahassiwa()\n{\n\t$data = array(\n\t\t\t\t\t\"nama\" => \"Edward\",\n\t\t\t\t\t\"npm\" \t=> \"17117369\",\n\t\t\t\t\t\"fakultas\" => \"Fakultas Ilmu Komputer & Teknologi Informasi\",\n\t\t\t\t\t\"jurusan\" => \"Sistem Informasi\"\n\t\t\t\t\t);\n\treturn $data;\n}", "function wh_short_code() {\n\n return 'waouh_filtres';\n}", "public function vr_hora()\n {\n\n $valor=$this->vr_hora;\n\n if ($this->id_tipotitulo == 3)\n {\n $valor='10208';\n } elseif ($this->id_tipotitulo == 4) {\n $valor='15122';\n } elseif ($this->id_tipotitulo == 5) {\n $valor='19096';\n } elseif ($this->id_tipotitulo == 7) {\n $valor='23252';\n } elseif ($this->id_tipotitulo == 10) {\n $valor='27014';\n } elseif ($this->id_tipotitulo == 9) {\n $valor='10208';\n } elseif ($this->id_tipotitulo == 11) {\n $valor='10208'; }\n elseif ($this->id_tipotitulo == 12) {\n $valor='0';\n }\n\n\n return $valor;\n\n }", "function getSCID() {\n $svnid = '$Rev$';\n $scid = substr($svnid, 6);\n return intval(substr($scid, 0, strlen($scid) - 2));\n}", "public function run()\n {\n\n\n $str = \"\n5838,28001,渋谷,東京メトロ銀座線,G01,G,01,,,●,,銀座線 駅事務室付近(改札内),●, ,2023/1/21\n5837,28001,表参道,東京メトロ銀座線,G02,G,02,,,●,,青山通り方面改札付近(改札外),●, ,2023/1/21\n5836,28001,外苑前,東京メトロ銀座線,G03,G,03,,,●,,駅事務室付近(改札外),●, ,2023/1/21\n5835,28001,青山一丁目,東京メトロ銀座線,G04,G,04,,,●,,駅事務室付近(改札外),●, ,2023/1/21\n5834,28001,赤坂見附,東京メトロ銀座線,G05,G,05,,,●,,駅事務室付近(改札内),●, ,2023/1/21\n5833,28001,溜池山王,東京メトロ銀座線,G06,G,06,,,●,,駅事務室付近(改札内),●, ,2023/1/21\n5832,28001,虎ノ門,東京メトロ銀座線,G07,G,07,,,●,,1番出口付近(改札外),●, ,2023/1/21\n5831,28001,新橋,東京メトロ銀座線,G08,G,08,,,●,,3番出口付近(改札外),●, ,2022/12/3\n5830,28001,銀座,東京メトロ銀座線,G09,G,09,,,●,,駅事務室付近(改札内),●, ,2023/1/8\n5829,28001,京橋,東京メトロ銀座線,G10,G,10,京橋 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5828,28001,日本橋,東京メトロ銀座線,G11,G,11,,,●,,A6出口付近(改札外),●, ,2023/1/28\n5827,28001,三越前,東京メトロ銀座線,G12,G,12,,,●,,銀座線 駅事務室付近(改札外) / B5出口付近(改札外),●, ,2023/1/28\n5826,28001,神田,東京メトロ銀座線,G13,G,13,,,●,,3番出口付近(改札外),●, ,2023/1/28\n5825,28001,末広町,東京メトロ銀座線,G14,G,14,,,●,,2番出口付近(改札外) / 3番出口付近(改札外),●, ,2023/1/28\n5824,28001,上野広小路,東京メトロ銀座線,G15,G,15,,,●,,A1出口方面付近(改札外),●, ,2023/1/28\n5823,28001,上野,東京メトロ銀座線,G16,G,16,,,●,,駅事務室付近(改札外),●, ,2023/1/28\n5822,28001,稲荷町,東京メトロ銀座線,G17,G,17,,,●,,1番出口方面付近(改札外),●, ,2023/1/28\n5821,28001,田原町,東京メトロ銀座線,G18,G,18,,,●,,西浅草1丁目側エレベーター専用改札付近(改札外),●, ,2023/1/28\n5820,28001,浅草,東京メトロ銀座線,G19,G,19,,,●,,吾妻橋方面改札付近(改札外),●, ,2023/1/28\n5863,28002,荻窪,東京メトロ丸ノ内線,M01,M,01,,,●,,駅事務室付近(改札外),●, ,2022/12/30\n5862,28002,南阿佐ケ谷,東京メトロ丸ノ内線,M02,M,02,,,●,,杉並郵便局方面改札付近(改札外),●, ,2022/12/30\n5861,28002,新高円寺,東京メトロ丸ノ内線,M03,M,03,,,●,,駅事務室付近(改札外),●, ,2022/12/30\n5860,28002,東高円寺,東京メトロ丸ノ内線,M04,M,04,,,●,,蚕糸の森公園方面改札付近(改札外),●, ,2022/12/30\n5859,28002,新中野,東京メトロ丸ノ内線,M05,M,05,,,●,,鍋屋横丁交差点南改札付近(改札内),●, ,2022/12/30\n5858,28002,中野坂上,東京メトロ丸ノ内線,M06,M,06,,,●,,駅事務室付近(改札外),●, ,2022/12/30\n5857,28002,西新宿,東京メトロ丸ノ内線,M07,M,07,,,●,,駅事務室付近(改札外),●, ,2022/12/30\n5856,28002,新宿,東京メトロ丸ノ内線,M08,M,08,,,●,,東改札付近(改札外),●, ,2022/12/30\n5855,28002,新宿三丁目,東京メトロ丸ノ内線,M09,M,09,新宿三丁目 丸ノ内線 駅事務室付近(改札外) E5出口付近(改札外),,,,丸ノ内線 駅事務室付近(改札外) / E5出口付近(改札外),, ,\n5854,28002,新宿御苑前,東京メトロ丸ノ内線,M10,M,10,新宿御苑前 新宿門方面改札付近(改札内),,,,新宿門方面改札付近(改札内),, ,\n5853,28002,四谷三丁目,東京メトロ丸ノ内線,M11,M,11,四谷三丁目 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5852,28002,四ツ谷,東京メトロ丸ノ内線,M12,M,12,四ツ谷 赤坂方面改札付近(改札内) 南北線 駅事務室付近(改札内),,,,,, ,\n5851,28002,赤坂見附,東京メトロ丸ノ内線,M13,M,13,,,●,,駅事務室付近(改札内),●, ,2023/1/21\n5850,28002,国会議事堂前,東京メトロ丸ノ内線,M14,M,14,国会議事堂前 3番出口付近(改札外),,,,3番出口付近(改札外),, ,\n5849,28002,霞ケ関,東京メトロ丸ノ内線,M15,M,15,,,●,,丸ノ内線 桜田通り方面改札付近(改札内) / 千代田線 駅事務室付近(改札内),●, ,2023/1/15\n5848,28002,銀座,東京メトロ丸ノ内線,M16,M,16,,,●,,駅事務室付近(改札内),●, ,2023/1/8\n5847,28002,東京,東京メトロ丸ノ内線,M17,M,17,東京 中央改札きっぷうりば付近(改札外),,,,中央改札きっぷうりば付近(改札外),, ,\n5846,28002,大手町,東京メトロ丸ノ内線,M18,M,18,,,●,,東西線 駅事務室付近(改札外) / 半蔵門線 駅事務室付近(改札外),●, ,2023/1/21\n5845,28002,淡路町,東京メトロ丸ノ内線,M19,M,19,淡路町 小川町方面改札付近(改札外),,,,小川町方面改札付近(改札外),, ,\n5844,28002,御茶ノ水,東京メトロ丸ノ内線,M20,M,20,御茶ノ水 1番出口付近(改札外),,,,1番出口付近(改札外),, ,\n5843,28002,本郷三丁目,東京メトロ丸ノ内線,M21,M,21,本郷三丁目 駅事務室付近(改札内),,,,駅事務室付近(改札内),, ,\n5842,28002,後楽園,東京メトロ丸ノ内線,M22,M,22,後楽園 南北線 駅事務室付近(改札外),,,,南北線 駅事務室付近(改札外),, ,\n5841,28002,茗荷谷,東京メトロ丸ノ内線,M23,M,23,茗荷谷 春日通り方面改札付近(改札内),,,,春日通り方面改札付近(改札内),, ,\n5840,28002,新大塚,東京メトロ丸ノ内線,M24,M,24,新大塚 北改札付近(改札外),,,,北改札付近(改札外),, ,\n5839,28002,池袋,東京メトロ丸ノ内線,M25,M,25,,,●,,西通路西改札付近(改札外) / 有楽町線 駅事務室付近(改札外),●, ,2023/1/3\n5866,28002,方南町,東京メトロ丸ノ内線,Mb03,M,b03,,,●,,駅事務室付近(改札外),●, ,2022/1/30\n5865,28002,中野富士見町,東京メトロ丸ノ内線,Mb04,M,b04,,,●,,改札付近(改札内),●, ,2022/1/30\n5864,28002,中野新橋,東京メトロ丸ノ内線,Mb05,M,b05,,,●,,改札付近(改札内),●, ,2022/1/30\n5888,28003,中目黒,東京メトロ日比谷線,H01,H,01,中目黒 恵比寿駅 2番出口付近(改札外),,,,恵比寿駅 2番出口付近(改札外),, ,\n5887,28003,恵比寿,東京メトロ日比谷線,H02,H,02,恵比寿 2番出口付近(改札外),,,,2番出口付近(改札外),, ,\n5886,28003,広尾,東京メトロ日比谷線,H03,H,03,広尾 4番出口付近(改札外),,,,4番出口付近(改札外),, ,\n5885,28003,六本木,東京メトロ日比谷線,H04,H,04,,,●,,駅事務室付近(改札外),●, ,2023/1/21\n5884,28003,神谷町,東京メトロ日比谷線,H05,H,05,,,●,,虎ノ門方面改札付近(改札外),●, ,2023/1/21\n5883,28003,虎ノ門ヒルズ,東京メトロ日比谷線,H06,H,06,,,●,,駅事務室付近(改札外),●, ,2023/1/21\n5882,28003,霞ケ関,東京メトロ日比谷線,H07,H,07,,,●,,丸ノ内線 桜田通り方面改札付近(改札内) / 千代田線 駅事務室付近(改札内),●, ,2023/1/15\n5881,28003,日比谷,東京メトロ日比谷線,H08,H,08,,,●,,駅事務室付近(改札外),●, ,2023/1/21\n5880,28003,銀座,東京メトロ日比谷線,H09,H,09,,,●,,駅事務室付近(改札内),●, ,2023/1/8\n5879,28003,東銀座,東京メトロ日比谷線,H10,H,10,東銀座 4番出口付近(改札外),,,,4番出口付近(改札外),, ,\n5878,28003,築地,東京メトロ日比谷線,H11,H,11,築地 3b出口付近(改札外),,,,3b出口付近(改札外),, ,\n5877,28003,八丁堀,東京メトロ日比谷線,H12,H,12,八丁堀 八丁堀交差点方面改札付近(改札外),,,,八丁堀交差点方面改札付近(改札外),, ,\n5876,28003,茅場町,東京メトロ日比谷線,H13,H,13,,,●,,8番出口付近(改札外),●, ,2022/12/3\n5875,28003,人形町,東京メトロ日比谷線,H14,H,14,,,●,,駅事務室付近(改札外),●, ,2023/1/28\n5874,28003,小伝馬町,東京メトロ日比谷線,H15,H,15,小伝馬町 本町方面改札付近(改札外),,,,本町方面改札付近(改札外),, ,\n5873,28003,秋葉原,東京メトロ日比谷線,H16,H,16,,,●,,駅事務室付近(改札外),●, ,2023/1/28\n5872,28003,仲御徒町,東京メトロ日比谷線,H17,H,17,仲御徒町 中央改札付近(改札内),,,,中央改札付近(改札内),, ,\n5871,28003,上野,東京メトロ日比谷線,H18,H,18,,,●,,駅事務室付近(改札外),●, ,2023/1/28\n5870,28003,入谷,東京メトロ日比谷線,H19,H,19,,,●,,4番出口付近(改札外),●, ,2023/1/28\n5869,28003,三ノ輪,東京メトロ日比谷線,H20,H,20,,,●,,駅事務室付近(改札外),●, ,2023/1/28\n5868,28003,南千住,東京メトロ日比谷線,H21,H,21,,,●,,駅事務室付近(改札内),●, ,2023/1/22\n5867,28003,北千住,東京メトロ日比谷線,H22,H,22,,,●,,千代田線 駅事務室付近(改札内),●, ,2023/1/22\n5889,28004,中野,東京メトロ東西線,T01,T,01,,,●,,落合駅 1番出口付近(改札外),●, ,2022/12/10\n5890,28004,落合,東京メトロ東西線,T02,T,02,,,●,,1番出口付近(改札外),●, ,2022/12/10\n5891,28004,高田馬場,東京メトロ東西線,T03,T,03,,,●,,5番出口付近(改札外),●, ,2022/1/29\n5892,28004,早稲田,東京メトロ東西線,T04,T,04,早稲田 早稲田大学方面改札付近(改札外) 早稲田大学穴八幡方面改札付近(改札外),,,,早稲田大学方面改札付近(改札外) / 早稲田大学穴八幡方面改札付近(改札外),, ,\n5893,28004,神楽坂,東京メトロ東西線,T05,T,05,神楽坂 駅事務室付近(改札内),,,,駅事務室付近(改札内),, ,\n5894,28004,飯田橋,東京メトロ東西線,T06,T,06,,,●,,飯田橋交差点方面改札付近(改札内) / 有楽町線・南北線駅事務室付近(改札外),●, ,2023/1/4\n5895,28004,九段下,東京メトロ東西線,T07,T,07,九段下 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5896,28004,竹橋,東京メトロ東西線,T08,T,08,竹橋 大手町方面改札付近(改札外),,,,大手町方面改札付近(改札外),, ,\n5897,28004,大手町,東京メトロ東西線,T09,T,09,,,●,,東西線 駅事務室付近(改札外) / 半蔵門線 駅事務室付近(改札外),●, ,2023/1/21\n5898,28004,日本橋,東京メトロ東西線,T10,T,10,,,●,,A6出口付近(改札外),●, ,2023/1/28\n5899,28004,茅場町,東京メトロ東西線,T11,T,11,,,●,,8番出口付近(改札外),●, ,2022/12/3\n5900,28004,門前仲町,東京メトロ東西線,T12,T,12,,,●,,富岡八幡宮方面改札付近(改札内),●, ,2023/1/12\n5901,28004,木場,東京メトロ東西線,T13,T,13,木場 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5902,28004,東陽町,東京メトロ東西線,T14,T,14,,,●,,西改札付近(改札内),●, ,2023/1/11\n5903,28004,南砂町,東京メトロ東西線,T15,T,15,,,●,,駅事務室付近(改札内),●, ,2023/1/19\n5904,28004,西葛西,東京メトロ東西線,T16,T,16,西葛西 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5905,28004,葛西,東京メトロ東西線,T17,T,17,葛西 西口出口付近(改札外),,,,西口出口付近(改札外),, ,\n5906,28004,浦安,東京メトロ東西線,T18,T,18,,,●,,2階 西船橋方面ホーム行階段下付近(改札内),●, ,2023/1/8\n5907,28004,南行徳,東京メトロ東西線,T19,T,19,,,●,,駅事務室付近(改札内),●, ,2023/1/18\n5908,28004,行徳,東京メトロ東西線,T20,T,20,,,●,,改札付近(改札内),●, ,2023/1/11\n5909,28004,妙典,東京メトロ東西線,T21,T,21,,,●,,2階 中野方面ホーム行階段下付近(改札内),●, ,2023/1/12\n5910,28004,原木中山,東京メトロ東西線,T22,T,22,,,●,,駅事務室付近(改札外),●, ,2023/1/21\n5911,28004,西船橋,東京メトロ東西線,T23,T,23,,,●,,原木中山駅 事務室付近(改札外),●, ,2023/1/21\n5931,28005,代々木上原,東京メトロ千代田線,C01,C,01,,,●,,代々木公園駅 2番出口付近(改札外),●, ,2023/1/21\n5930,28005,代々木公園,東京メトロ千代田線,C02,C,02,,,●,,2番出口付近(改札外),●, ,2023/1/21\n5929,28005,明治神宮前〈原宿〉,東京メトロ千代田線,C03,C,03,,,●,,千代田線 駅事務室付近(改札外),●, ,2023/1/21\n5928,28005,表参道,東京メトロ千代田線,C04,C,04,,,●,,青山通り方面改札付近(改札外),●, ,2023/1/21\n5927,28005,乃木坂,東京メトロ千代田線,C05,C,05,乃木坂 外苑東通り方面改札付近(改札内),,,,外苑東通り方面改札付近(改札内),, ,\n5926,28005,赤坂,東京メトロ千代田線,C06,C,06,赤坂 1番・2番出口方面付近(改札外),,,,1番・2番出口方面付近(改札外),, ,\n5925,28005,国会議事堂前,東京メトロ千代田線,C07,C,07,国会議事堂前 3番出口付近(改札外),,,,3番出口付近(改札外),, ,\n5924,28005,霞ケ関,東京メトロ千代田線,C08,C,08,,,●,,丸ノ内線 桜田通り方面改札付近(改札内) / 千代田線 駅事務室付近(改札内),●, ,2023/1/15\n5923,28005,日比谷,東京メトロ千代田線,C09,C,09,,,●,,駅事務室付近(改札外),●, ,2023/1/21\n5922,28005,二重橋前,東京メトロ千代田線,C10,C,10,,,●,,駅事務室付近(改札外),●, ,2023/1/21\n5921,28005,大手町,東京メトロ千代田線,C11,C,11,,,●,,東西線 駅事務室付近(改札外) / 半蔵門線 駅事務室付近(改札外),●, ,2023/1/21\n5920,28005,新御茶ノ水,東京メトロ千代田線,C12,C,12,新御茶ノ水 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5919,28005,湯島,東京メトロ千代田線,C13,C,13,湯島 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5918,28005,根津,東京メトロ千代田線,C14,C,14,,,●,,根津交差点方面改札付近(改札内),●, ,2023/2/25\n5917,28005,千駄木,東京メトロ千代田線,C15,C,15,千駄木 団子坂方面改札付近(改札外),,,,団子坂方面改札付近(改札外),, ,\n5916,28005,西日暮里,東京メトロ千代田線,C16,C,16,,,●,,道灌山方面改札付近(改札内),●, ,2023/2/25\n5915,28005,町屋,東京メトロ千代田線,C17,C,17,,,●,,町屋方面改札(改札外),●, ,2023/2/25\n5914,28005,北千住,東京メトロ千代田線,C18,C,18,,,●,,千代田線 駅事務室付近(改札内),●, ,2023/1/22\n5913,28005,綾瀬,東京メトロ千代田線,C19,C,19,,,●,,駅事務室付近(改札内),●, ,2023/2/25\n5912,28005,北綾瀬,東京メトロ千代田線,C20,C,20,,,●,,中央改札付近(改札外),●, ,2023/2/25\n5932,28006,和光市,東京メトロ有楽町線,Y01,Y,01,,,●,,地下鉄成増駅 事務室付近(改札外),●, ,2023/1/3\n5933,28006,地下鉄成増,東京メトロ有楽町線,Y02,Y,02,,,●,,駅事務室付近(改札外),●, ,2023/1/3\n5934,28006,地下鉄赤塚,東京メトロ有楽町線,Y03,Y,03,,,●,,駅事務室付近(改札外),●, ,2023/1/3\n5935,28006,平和台,東京メトロ有楽町線,Y04,Y,04,,,●,,駅事務室付近(改札外),●, ,2023/1/3\n5936,28006,氷川台,東京メトロ有楽町線,Y05,Y,05,,,●,,2番出口付近(改札外),●, ,2023/1/3\n5937,28006,小竹向原,東京メトロ有楽町線,Y06,Y,06,,,●,,4番出口付近(改札外),●, ,2023/1/3\n5938,28006,千川,東京メトロ有楽町線,Y07,Y,07,,,●,,駅事務室付近(改札外),●, ,2023/1/3\n5939,28006,要町,東京メトロ有楽町線,Y08,Y,08,,,●,,2番出口付近(改札外),●, ,2023/1/3\n5940,28006,池袋,東京メトロ有楽町線,Y09,Y,09,,,●,,西通路西改札付近(改札外) / 有楽町線 駅事務室付近(改札外),●, ,2023/1/3\n5941,28006,東池袋,東京メトロ有楽町線,Y10,Y,10,東池袋 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5942,28006,護国寺,東京メトロ有楽町線,Y11,Y,11,護国寺 音羽方面改札付近(改札外),,,,音羽方面改札付近(改札外),, ,\n5943,28006,江戸川橋,東京メトロ有楽町線,Y12,Y,12,江戸川橋 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5944,28006,飯田橋,東京メトロ有楽町線,Y13,Y,13,,,●,,飯田橋交差点方面改札付近(改札内) / 有楽町線・南北線駅事務室付近(改札外),●, ,2023/1/4\n5945,28006,市ケ谷,東京メトロ有楽町線,Y14,Y,14,,,●,,市谷田町方面改札付近(改札内),●, ,2023/1/12\n5946,28006,麹町,東京メトロ有楽町線,Y15,Y,15,,,●,,6番出口方面付近(改札外),●, ,2023/1/4\n5947,28006,永田町,東京メトロ有楽町線,Y16,Y,16,永田町 紀尾井町方面改札付近(改札内) 駅事務室付近(改札内),,,,紀尾井町方面改札付近(改札内) / 駅事務室付近(改札内),, ,\n5948,28006,桜田門,東京メトロ有楽町線,Y17,Y,17,,,●,,4番出口付近(改札外),●, ,2023/1/21\n5949,28006,有楽町,東京メトロ有楽町線,Y18,Y,18,,,●,,JR有楽町駅方面改札付近(改札外),●, ,2023/1/21\n5950,28006,銀座一丁目,東京メトロ有楽町線,Y19,Y,19,銀座一丁目 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5951,28006,新富町,東京メトロ有楽町線,Y20,Y,20,新富町 5番出口付近(改札外),,,,5番出口付近(改札外),, ,\n5952,28006,月島,東京メトロ有楽町線,Y21,Y,21,月島 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5953,28006,豊洲,東京メトロ有楽町線,Y22,Y,22,豊洲 駅事務室付近(改札内),,,,駅事務室付近(改札内),, ,\n5954,28006,辰巳,東京メトロ有楽町線,Y23,Y,23,辰巳 駅事務室付近(改札内),,,,駅事務室付近(改札内),, ,\n5955,28006,新木場,東京メトロ有楽町線,Y24,Y,24,新木場 駅事務室付近(改札内),,,,駅事務室付近(改札内),, ,\n5956,28008,渋谷,東京メトロ半蔵門線,Z01,Z,01,,,●,,銀座線 駅事務室付近(改札内),●, ,2023/1/21\n5957,28008,表参道,東京メトロ半蔵門線,Z02,Z,02,,,●,,青山通り方面改札付近(改札外),●, ,2023/1/21\n5958,28008,青山一丁目,東京メトロ半蔵門線,Z03,Z,03,,,●,,駅事務室付近(改札外),●, ,2023/1/21\n5959,28008,永田町,東京メトロ半蔵門線,Z04,Z,04,永田町 紀尾井町方面改札付近(改札内) 駅事務室付近(改札内),,,,紀尾井町方面改札付近(改札内) / 駅事務室付近(改札内),, ,\n5960,28008,半蔵門,東京メトロ半蔵門線,Z05,Z,05,,,●,,3番出口付近(改札外),●, ,2023/1/11\n5961,28008,九段下,東京メトロ半蔵門線,Z06,Z,06,九段下 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5962,28008,神保町,東京メトロ半蔵門線,Z07,Z,07,神保町 専修大学方面改札付近(改札外),,,,専修大学方面改札付近(改札外),, ,\n5963,28008,大手町,東京メトロ半蔵門線,Z08,Z,08,,,●,,東西線 駅事務室付近(改札外) / 半蔵門線 駅事務室付近(改札外),●, ,2023/1/21\n5964,28008,三越前,東京メトロ半蔵門線,Z09,Z,09,,,●,,銀座線 駅事務室付近(改札外) / B5出口付近(改札外),●, ,2023/1/28\n5965,28008,水天宮前,東京メトロ半蔵門線,Z10,Z,10,,,●,,水天宮方面改札付近(改札外),●, ,2023/1/28\n5966,28008,清澄白河,東京メトロ半蔵門線,Z11,Z,11,,,●,,B1出口付近(改札外),●, ,2023/1/28\n5967,28008,住吉,東京メトロ半蔵門線,Z12,Z,12,,,●,,B1出口付近(改札外),●, ,2023/1/28\n5968,28008,錦糸町,東京メトロ半蔵門線,Z13,Z,13,,,●,,定期券うりば付近(改札外),●, ,2023/1/28\n5969,28008,押上〈スカイツリー前〉,東京メトロ半蔵門線,Z14,Z,14,,,●,,業平方面改札付近(改札外),●, ,2023/1/28\n5988,28009,目黒,東京メトロ南北線,N01,N,01,目黒 白金台駅 事務室付近(改札外),,,,白金台駅 事務室付近(改札外),, ,\n5987,28009,白金台,東京メトロ南北線,N02,N,02,白金台 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5986,28009,白金高輪,東京メトロ南北線,N03,N,03,白金高輪 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5985,28009,麻布十番,東京メトロ南北線,N04,N,04,麻布十番 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5984,28009,六本木一丁目,東京メトロ南北線,N05,N,05,,,●,,3番出口方面付近(改札外),●, ,2023/1/21\n5983,28009,溜池山王,東京メトロ南北線,N06,N,06,,,●,,駅事務室付近(改札内),●, ,2023/1/21\n5982,28009,永田町,東京メトロ南北線,N07,N,07,永田町 紀尾井町方面改札付近(改札内) 駅事務室付近(改札内),,,,紀尾井町方面改札付近(改札内) / 駅事務室付近(改札内),, ,\n5981,28009,四ツ谷,東京メトロ南北線,N08,N,08,四ツ谷 赤坂方面改札付近(改札内) 南北線 駅事務室付近(改札内),,,,赤坂方面改札付近(改札内) / 南北線 駅事務室付近(改札内),, ,\n5980,28009,市ケ谷,東京メトロ南北線,N09,N,09,,,●,,市谷田町方面改札付近(改札内),●, ,2023/1/12\n5979,28009,飯田橋,東京メトロ南北線,N10,N,10,,,●,,飯田橋交差点方面改札付近(改札内) / 有楽町線・南北線駅事務室付近(改札外),●, ,2023/1/4\n5978,28009,後楽園,東京メトロ南北線,N11,N,11,後楽園 南北線 駅事務室付近(改札外),,,,南北線 駅事務室付近(改札外),, ,\n5977,28009,東大前,東京メトロ南北線,N12,N,12,東大前 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5976,28009,本駒込,東京メトロ南北線,N13,N,13,本駒込 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5975,28009,駒込,東京メトロ南北線,N14,N,14,駒込 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5974,28009,西ケ原,東京メトロ南北線,N15,N,15,西ケ原 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5973,28009,王子,東京メトロ南北線,N16,N,16,王子 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n5972,28009,王子神谷,東京メトロ南北線,N17,N,17,王子神谷 駅事務室付近(改札内),,,,駅事務室付近(改札内),, ,\n5971,28009,志茂,東京メトロ南北線,N18,N,18,志茂 1番出口付近(改札外),,,,1番出口付近(改札外),, ,\n5970,28009,赤羽岩淵,東京メトロ南北線,N19,N,19,赤羽岩淵 駅事務室付近(改札内),,,,駅事務室付近(改札内),, ,\n5989,28010,和光市,東京メトロ副都心線,F01,F,01,,,●,,地下鉄成増駅 事務室付近(改札外),●, ,2023/1/3\n5990,28010,地下鉄成増,東京メトロ副都心線,F02,F,02,,,●,,駅事務室付近(改札外),●, ,2023/1/3\n5991,28010,地下鉄赤塚,東京メトロ副都心線,F03,F,03,,,●,,駅事務室付近(改札外),●, ,2023/1/3\n5992,28010,平和台,東京メトロ副都心線,F04,F,04,,,●,,駅事務室付近(改札外),●, ,2023/1/3\n5993,28010,氷川台,東京メトロ副都心線,F05,F,05,,,●,,2番出口付近(改札外),●, ,2023/1/3\n5994,28010,小竹向原,東京メトロ副都心線,F06,F,06,,,●,,4番出口付近(改札外),●, ,2023/1/3\n5995,28010,千川,東京メトロ副都心線,F07,F,07,,,●,,駅事務室付近(改札外),●, ,2023/1/3\n5996,28010,要町,東京メトロ副都心線,F08,F,08,,,●,,2番出口付近(改札外),●, ,2023/1/3\n5997,28010,池袋,東京メトロ副都心線,F09,F,09,,,●,,西通路西改札付近(改札外) / 有楽町線 駅事務室付近(改札外),●, ,2023/1/3\n5998,28010,雑司が谷,東京メトロ副都心線,F10,F,10,雑司が谷 2番出口方面付近(改札外),,,,2番出口方面付近(改札外),, ,\n5999,28010,西早稲田,東京メトロ副都心線,F11,F,11,西早稲田 早大理工方面改札付近(改札外),,,,早大理工方面改札付近(改札外),, ,\n6000,28010,東新宿,東京メトロ副都心線,F12,F,12,東新宿 駅事務室付近(改札外),,,,駅事務室付近(改札外),, ,\n6001,28010,新宿三丁目,東京メトロ副都心線,F13,F,13,新宿三丁目 丸ノ内線 駅事務室付近(改札外) E5出口付近(改札外),,,,丸ノ内線 駅事務室付近(改札外) / E5出口付近(改札外),, ,\n6002,28010,北参道,東京メトロ副都心線,F14,F,14,北参道 改札付近(改札外),,,,改札付近(改札外),, ,\n6003,28010,明治神宮前〈原宿〉,東京メトロ副都心線,F15,F,15,,,●,,千代田線 駅事務室付近(改札外),●, ,2023/1/21\n6004,28010,渋谷,東京メトロ副都心線,F16,F,16,,,●,,銀座線 駅事務室付近(改札内),●, ,2023/1/21\n\n \";\n\n\n DB::table('t_station_stamp')->delete();\n\n\n $ex_str = explode(\"\\n\", $str);\n\n foreach ($ex_str as $v) {\n\n\n if (trim($v) == \"\") {\n continue;\n }\n\n\n $ex_v = explode(\",\", trim($v));\n $insert = [\n \"station_code\" => trim($ex_v[0]),\n \"train_code\" => trim($ex_v[1]),\n \"image_folder\" => trim($ex_v[5]),\n \"image_code\" => trim($ex_v[6]),\n \"poster_position\" => trim($ex_v[11]),\n \"stamp_get_date\" => (trim($ex_v[14]) == '') ? '' : date($ex_v[14]),\n\n \"station_name\" => trim($ex_v[2]),\n \"train_name\" => trim($ex_v[3]),\n ];\n DB::table('t_station_stamp')->insert($insert);\n }\n\n\n }", "function getadvlic_no() {\n return $this->advlic_no;\n }", "private function split_by_huts($rec){\n static $hut_name = '';\n\n if (!split_by_huts) return '';\n\n switch($status=bForm_vm_Visit::_getStatus($rec)){\n case STATUS_NO: \n $rec_hut_name = '_REFUSED_applications'; \n break; \n case STATUS_YES: \n // if (empty($rec['hut_code']) && cnf_dev) MSG::DEBUG(\"?? Empty hut_code for \".$rec['av_lastname']);\n if (empty($rec['hut_name'])) $rec['hut_name'] = '_missing accommodation';\n $rec_hut_name = (@$rec['hut_code']===HUT_BI ? $rec['a_name'] : $rec['hut_name']);\n break;\n case STATUS_PENDING: \n default:\n $rec_hut_name = '_PENDING_applications'; \n }\n\n if ($rec_hut_name != $hut_name){\n $hut_name = $rec_hut_name;\n $this->t->td(x('h3',$hut_name),'colspan=5');\n $this->t->reset_counter();\n }\n return $hut_name;\n }", "function jfk2013_page_title() {\r\n\techo get_jfk2013_page_title();\r\n}", "protected function k_CardId():string {return '';}", "public function getIsbn13(): string|null;", "function formatKata19($kata)\n{\n return substr($kata, 3);\n}", "function get_jml_mhs_dpa(){\n\t\t\t$mahasiswa = $this->api->get_api_json(URL_API_SIA.'sia_mahasiswa/data_search', 'POST', \n\t\t\t\t\t\tarray('api_kode'=>28000, 'api_subkode' => 6, \n\t\t\t\t\t\t'api_search' => array('A', $this->session->userdata('id_user'))));\n\n\t\t\t$bimbingan_pa = array();\n\t\t\tforeach ($mahasiswa as $mhs) {\n\t\t\t\tif(isset($bimbingan_pa[strtoupper($mhs['NM_JENJANG'])])){\n\t\t\t\t\t$bimbingan_pa[strtoupper($mhs['NM_JENJANG'])]['JUMLAH']++;\n\t\t\t\t}else{\n\t\t\t\t\t$bimbingan_pa[strtoupper($mhs['NM_JENJANG'])]['JENJANG'] = strtoupper($mhs['NM_JENJANG']);\n\t\t\t\t\t$bimbingan_pa[strtoupper($mhs['NM_JENJANG'])]['NM_PRODI'] = $mhs['NM_PRODI'];\n\t\t\t\t\t$bimbingan_pa[strtoupper($mhs['NM_JENJANG'])]['JUMLAH'] = 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $bimbingan_pa;\n\t\t}", "public function getHival() {}", "public function calcula13o()\n {\n }", "public function calcula13o()\n {\n }", "public function getTitle(){\n\t\treturn $this->ol[\"ISBN:\".$this->isbn][\"title\"];\t\n\t}", "public function hapus_toko(){\n\t}", "function _dispen_hari(){\n\t\t$CI =& get_instance();\n\t\t$api_url \t= URL_API_SIA.'sia_sistem/data_view';\n\t\t$parameter = array('api_kode' =>200002, 'api_subkode' => 1, 'api_search' => array());\n\t\t$data \t\t= $CI->s00_lib_api->get_api_jsob($api_url,'POST',$parameter);\n\t\treturn $data[0]->KADALUWARSA_HARI1;\n\t}", "public function mom()\n\t{\n\t\tif (preg_match('/^\\[usenet4ever\\.info\\] und \\[SecretUsenet\\.com\\] - (.+?)-u4e - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //brothers-of-usenet.info/.net <<<Partner von SSL-News.info>>> - [01/26] - \"Be.Cool.German.AC3.HDRip.x264-FuN.par2\" yEnc\n\t\tif (preg_match('/^\\[Art-of-Usenet\\] ([a-fA-F0-9]+) \\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //(????) [03/20] - \"Weblinger - The.Haunted.House.Mysteries.v1.0-ZEKE.part01.rar\" yEnc\n\t\tif (preg_match('/^\\(\\?+\\) \\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '.+?[-_\\s]{0,3}yEnc$/ui',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //ShesGonnaSquirt.12.12.13.Sindy.Lange.My.Knight.In.Squirting.Armor.XXX.1080p.x264 - [1/1] - \"ShesGonnaSquirt.12.12.13.Sindy.Lange.My.Knight.In.Squirting.Armor.XXX.1080p.x264.rar\" yEnc\n\t\tif (preg_match('/[\\w.-]{8,}[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[Art-of-Usenet] dea75eb65e65c56197d749d57919806d [01/19] - \"dea75eb65e65c56197d749d57919806d.par2\" yEnc\n\t\tif (preg_match('/^\\[Art-of-Usenet\\] .+? \\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<ghost-of-usenet.org>XCOM.Enemy.Unknown.Deutsch.Patch.TokZic [0/9] - \"XCOM Deutsch.nzb\" ein CrazyUpp yEnc\n\t\tif (preg_match('/^<ghost-of-usenet\\.org>(.+?) \\[\\d+\\/\\d+\\] - \".+?\" .+? yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //.oO \"20.Years.After.German.2008.AC3.BDRip.XviD.INTERNAL-ARC__www.realmom.info__.nfo\" Oo. [02/39] 1,43 GB yEnc\n\t\tif (preg_match('/^\\.oO \"(.+)__www.realmom.info__.+\" Oo. \\[\\d+\\/\\d+\\] \\d+[.,]\\d+ [kKmMgG][bB] yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<kere.ws> - 0DAY - 1331086126 - Robokill.Rescue.Titan.Prime.v1.1.MacOSX.Cracked-CORE - [1/9] - \"Robokill.Rescue.Titan.Prime.v1.1.MacOSX.Cracked-CORE.par2\" yEnc\n\t\tif (preg_match('/^<kere\\.ws>[ _-]{0,3}\\w+(-\\w+)?[ _-]{0,3}\\d+[ _-]{0,3}(.+) - \\[\\d+\\/\\d+\\][ _-]{0,3}(\"|#34;).+?(\"|#34;) yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //[A_New_Found_Glory-Its_All_About_The_Girls-Reissue-CDEP-FLAC-2003-JLM] [www.usenet4ever.info by Secretusenet] - \"00-a_new_found_glory-its_all_about_the_girls-reissue-cdep-flac-2003.jpg\" yEnc\n\t\tif (preg_match('/^\\[(.+?)\\][ _-]{0,3}\\[www\\.usenet4ever\\.info by Secretusenet][ _-]{0,3} \".+?' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//MoM100060 - \"Florian_Arndt-Trix-(BBM36)-WEB-2012-UKHx__www.realmom.info__.nfo\" [2/7] 29,04 MB yEnc\n\t\t//\"Alan.Wake.v1.02.16.4261.Update-SKIDROW__www.realmom.info__.nfo\" (02/17) 138,07 MB yEnc\n\t\tif (preg_match('/^(Mom\\d+[ _-]{0,3})?\"(.+?)__www\\.realmom\\.info__' . $this->e0 .\n\t\t\t\t\t '[ _-]{0,3}[\\(\\[]\\d+\\/(\\d+[\\)\\]]) \\d+[.,]\\d+ [kKmMgG][bB] yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //\"The.Draughtsmans.Contract.1982.576p.BluRay.DD2.0.x264-EA\"(15/56) \"The.Draughtsmans.Contract.1982.576p.BluRay.DD2.0.x264-EA.part13.rar\" - 2.37 GB yEnc\n\t\tif (preg_match('/^\"(.+?)\"\\(\\d+\\/(\\d+\\))[ _-]{0,3}\".+?' . $this->e0 .\n\t\t\t\t\t '[ _-]{0,3}\\d+[.,]\\d+ [kKmMgG][bB] yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(01/29) - Description - \"Revolution.2012.S01E06.HDTV.x264-LOL.nfo\" - 317.24 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/(\\d+\\))[ _-]{0,3}Description[ _-]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '[ _-]{0,3}\\d+[.,]\\d+ [kKmMgG][bB][ _-]{0,3}yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //(02/17) - [Lords-of-Usenet] <<Partner of SSL-News.info>> i8dewFjzft94BW71EI0s -\"19913.r00\" - 928,75 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/(\\d+\\))[ _-]{0,3}\\[Lords-of-Usenet\\][ _-]{0,3}<<Partner of SSL-News\\.info>>[ _-]{0,3}(.+?)[ _-]{0,3}\".+?' .\n\t\t\t\t\t $this->e0 . '[ _-]{0,3}\\d+[.,]\\d+ [kKmMgG][bB][ _-]{0,3}yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //[002/161] - \"Rayman_Legends_USA_PS3-CLANDESTiNE.nfo\" yEnc\n\t\tif (preg_match('/^\\[\\d+\\/\\d+\\][ _-]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//NetVideoGirls.13.08.05.Julia.XXX.MP4-KTR - [1/1] - \"NetVideoGirls.13.08.05.Julia.XXX.MP4-KTR.rar\" yEnc\n\t\t//FemaleAgent.E136.Rollie.XXX.1080p.MOV-KTR - [1/1] - \"FemaleAgent.E136.Rollie.XXX.1080p.MOV-KTR.rar\" yEnc\n\t\t//Penthouse.13.07.13.Natalia.Starr.Pet.Of.Month.July.2013.XXX.3D.WMV-TBP - [1/1] - \"Penthouse.13.07.13.Natalia.Starr.Pet.Of.Month.July.2013.XXX.3D.WMV-TBP.rar\" yEnc\n\t\tif (preg_match('/^([a-z0-9].+?\\.XXX.*?\\.[a-z0-9]{3,4}-[a-z0-9]+) - \\[\\d+\\/\\d+\\] - \".+?\" yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //happy birthday brothers - brothers-of-usenet.info&net-empfehlen-ssl-news - 2brokegirls-s03e12-Die.franzoesische.Versuchung.48 - [01/12] - \"2brokegirls-s03e12-Die.franzoesische.Versuchung.480p.par2\" yEnc\n\t\tif (preg_match('/brothers-of-usenet\\.info&net-empfehlen-ssl-news.+\\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Eragon postet Pfeil S01E18 german [01/19] - \"Pfeil S01E18.par2\" yEnc\n\t\tif (preg_match('/^Eragon postet.+\\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"[Fansub-Resistance] Naruto Shippuuden 345 xvid (848x480).vol25+15.PAR2\" yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"Die.Sopranos.S05E02.German.AVC-TVS.vol063+60.par2\" (repack180414) yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 . '.+yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //LOL.3E05.720p.WEB.DL.nHD.x264-NhaNc3 [64/71] - \"LOL.3E05.720p.WEB.DL.nHD.x264-NhaNc3.sfv\" yEnc\n\t\tif (preg_match('/^([\\w.-]{8,})[-_\\s]{0,3}\\[\\d+\\/(\\d+\\])[-_\\s]{0,3}\".+?' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t\t&& !preg_match('/^(\\d{4,6})-\\d{1}\\[/', $this->subject)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Uploader.Presents-LaLa.2014.Englisch.R6.HDCAM.x264.AC3-SmY(06/56]\"SmY-I,F.2014.part05.rar\" yEnc\n\t\tif (preg_match('/^Uploader\\.Presents-(.+)[\\[\\(]\\d+\\/\\d+[\\]\\)]\".+\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(21/27) - Description Lava.Land.2013.3D.1080p.Bluray.HOU.X264.DL-zman - \"Lava.Land.2013.3D.1080.HOU.DL-zman.part20.rar\" - 8,85 GB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\)[-_\\s]{0,3}Description ([\\w.,& ()\\[\\]\\'\\`-]{8,}?)[-_\\s]{0,3}\".+?' .\n\t\t\t\t\t $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //- \"z7QxDdQ5Qs63v8B8.01\" - 374,56 MB - yEnc\n\t\t//- Description - \"le gars et son arc 2x21.vol06+05.PAR2\" - 273,04 MB - yEnc\n\t\tif (preg_match('/^- (Description - )?\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //::: Usejunkies.tk ::: - [11/15] - \"Saitenfeuer - Kein Zurueck 2013.vol00+1.par2\" - 116,42 MB yEnc\n\t\tif (preg_match('/^.+Usejunkies\\.tk.+\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //:.Usejunkies.tk.:---- - [4/8] - \"MKTO - MKTO.vol00+5.par2\" yEnc\n\t\tif (preg_match('/^.+Usejunkies\\.tk.+\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"8ÅdTbOMaÃ¥RuieuD4gÃ¥jÅwOÃ¥bmS72ADÅM1b2æefz9q4yW4O7exV.vol037+6.par2\" yEnc\n\t\tif (preg_match('/^\"(.{8,}?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //(08/12) [ArtofUsenet] >>> www.art-of-use.net <<< \"Alles Atze - S01E05 - Die Anatolische Fliege.vol01+02.par2\" - 245,19 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) \\[ArtofUsenet\\].+www\\.art-of-use\\.net.+\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(01/10) - [Lords-of-Usenet] <<Sponsored by SSL-News.info>> presents AoA.Audio.Extractor.Platinum.v2.0.Portable.WiNALL.APPZ-NOTRADE -\"notrade-aoaextractorplati_portable.par2\" - 8,14 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) - \\[Lords-of-Usenet\\].+ presents (.+?)[-_\\s]{0,3}\".+?' .\n\t\t\t$this->e2,\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(02/66) - [Lords-of-Usenet] <<Partner of SSL-News.info>> presents The_Swapper-FANiSO - \"fan-swap.rar\" - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) - \\[Lords-of-Usenet\\].+ presents (.+?)[-_\\s]{0,3}\".+?' .\n\t\t\t$this->e1,\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(1/3) - \"Readers Digest Magazin Deutschland Oktober 10-2014.rar\" - 10,92 MB - >>brothers-of-usenet.info/net<< empfehlen SSL-News.info yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '[-_\\s]{0,3}\\d+([.,]\\d+)? [kKmMgG][bB][-_\\s].+yEnc$/ui',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(1/3) \"Die drei Fragezeichen - Folge 162 - Der schreiende Nebel.rar\" - 121,56 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\)[-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t$this->e2,\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //brothers-of-usenet.ino/.net<<<Partner von SSL-News.info>>> - [05/33] - \"oiu78_67O77OuiI_ztRe014.part04.rar\" yEnc\n\t\tif (preg_match('/^brothers-of-usenet.+SSL-News\\.info.+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖܖ¤ß¶!.,&_()\\[\\]\\'\\`-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //\"Fabulous MP3.v1.10.rar\" yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "public function cd_image()\n\t{\n\t\tif (preg_match('/^\\[www\\..+?\\]-\\[(.+?)\\]-\\[\\d+\\/\\d+\\] \".+?\" - \\d+[,.]\\d+ [mMkKgG][bB] - yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//Slender.The.Arrival-WaLMaRT.PC - [01/26] - \"wmt-stal.nfo\" - yEnc\n\t\t//The.Night.of.the.Rabbit-FLT - [03/66] - \"flt-notr.r00\" - FAiRLIGHT - 5,10 GB - yEnc\n\t\t//Resident.Evil.Revelations-FLT - PC GAME - [03/97] - \"Resident.Evil.Revelations-FLT.r00\" - FAiRLIGHT - yEnc\n\t\t//Afterfall.Insanity.Dirty.Arena.Edition-WaLMaRT - [MULTI6][PCDVD] - [02/45] - \"wmt-adae.r00\" - PC GAME - yEnc\n\t\tif (preg_match('/^([a-zA-Z0-9.-]{10,}) -( PC GAME -| [A-Z0-9\\[\\]]+ -)? \\[\\d+\\/\\d+\\] - \".+?\" - (.+? - (\\d+[,.]\\d+ [mMkKgG][bB] - )?)?yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//[01/46] - Crashtime 5 Undercover RELOADED - \"rld-ct5u.nfo\" - PC - yEnc\n\t\t//[01/76] - Of.Orcs.And.Men-SKIDROW - \"sr-oforcsandmen.nfo\" - yEnc\n\t\t//PC Game - [01/71] - MotoGP 13-RELOADED Including NoDVD Fix - \"MotoGP 13-RELOADED Including NoDVD Fix nfo\" - yEnc\n\t\tif (preg_match('/^(PC Game - )?\\[\\d+\\/\\d+\\] - (.+?) - \".+?\" -( .+? -)? yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t}\n\t\t//Magrunner Dark Pulse FLT (FAiRLIGHT) - [02/70] - \"flt-madp par2\" - PC - yEnc\n\t\t//MotoGP 13 RELOADED - [01/71] - \"rld-motogp13 nfo\" - PC - yEnc\n\t\t//Dracula 4: Shadow of the Dragon FAiRLIGHT - [01/36] - \"flt-drc4 nfo\" - PC - yEnc\n\t\tif (preg_match('/^([A-Za-z0-9][a-zA-Z0-9: ]{8,}(-[a-zA-Z]+)?)( \\(.+?\\)| - [\\[A-Z0-9\\]]+)? - \\[\\d+\\/\\d+\\] - \".+?\" - .+? - yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//[NEW PC GAME] - Lumber.island-WaLMaRT - \"wmt-lisd.nfo\" - [01/18] - yEnc\n\t\t//Trine.2.Complete.Story-SKIDROW - \"sr-trine2completestory.nfo\" - [01/78] - yEnc\n\t\tif (preg_match('/^(\\[[A-Z ]+\\] - )?([a-zA-Z0-9.-]{10,}) - \".+?\" - \\[\\d+\\/\\d+\\] - yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //Uploader.Presents-Metal.Gear.Rising.Revengeance-RELOADED(51/65]\"rld-megerire.r48\" yEnc\n\t\tif (preg_match('/^Uploader\\.Presents-(.+)[\\(\\[]\\d+\\/\\d+\\]\".+\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "function noticias_cabe(){\n \n $html=site('http://www.jornalnoticias.co.mz/');\n\t\n\tforeach($html->find('.items-row')as $elms){\n\t\t\n\t\tforeach($elms->find ('.jn-postheader') as $elms2){\n\t\t\n\t $j[]=mb_convert_encoding( $elms2->plaintext, \"HTML-ENTITIES\", \"UTF-8\");\n\t\n\t\n\t\t\n\t\t}\n\t}\n\t\n\treturn $j;\n\t\n\t}", "public function getKieKantinHaid()\n {\n return $this->kie_kantin_haid;\n }", "function get_wilayah_code_by_branch_induk($branch_induk)\n {\n \t$sql = \"select wilayah from mfi_branch where branch_code = ?\";\n \t$query = $this->db->query($sql,array($branch_induk));\n \t$row = $query->row_array();\n \treturn (isset($row['wilayah'])==true)?$row['wilayah']:'00000';\n }", "public function getKieSelasarHaid()\n {\n return $this->kie_selasar_haid;\n }", "function autoSOCode() {\r\n $high = mysql_result(mysql_query(\"SELECT max(tb_salesorder_code) FROM tb_salesorder\"), 0);\r\n $subPertama = substr($high, 0, 3);\r\n $subPertamaTambah = $subPertama + 1;\r\n $subPertamaLength = strlen($subPertamaTambah);\r\n // echo $subPertamaLength;\r\n if ($high != null) {\r\n if ($subPertamaLength == 1) {\r\n echo \"00\" . $subPertamaTambah . \"/SLS/SG/2015\";\r\n } else if ($subPertamaLength == 2) {\r\n echo \"0\" . $subPertamaTambah . \"/SLS/SG/2015\";\r\n } else {\r\n echo $subPertamaTambah . \"/SLS/SG/2015\";\r\n }\r\n } else {\r\n echo '001/SLS/SG/2015';\r\n }\r\n}", "function obtener_hora($fecha) {\r\nreturn(substr($fecha,11,2));\r\n}", "function horaire($horaire) {\r\n\t// affiche un nombre d'heures correctement formatté\r\n\t$horaire = ($horaire && $horaire !=='')? $horaire.\" h\":\"\";\r\n\treturn $horaire;\r\n}", "public function getBrand_name () {\n\t$preValue = $this->preGetValue(\"brand_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->brand_name;\n\treturn $data;\n}", "function hidupkan_laptop() {\n return \"Hidupkan Laptop\";\n }", "private function _getSiteName()\n {\n return 'Santander Consumer Bank';\n }", "function data_mhs(){\r\n\t\t\techo \"KodeMataKuliah : \".$this->KodeMataKuliah.\"<br />\";\r\n\t\t\techo \"SKS : \".$this->SKS.\"<br />\";\r\n\t\t\techo \"Daftar matakuliah yang diambil:<br />\";\r\n\t\t\t\r\n\t\t\t$i = 0; // nomor urut daftar SKS matakuliah yang diambil\r\n\t\t\tforeach($this->NamaMataKuliah as $mk){\r\n\t\t\t\techo ++$i.\". \".$mk.\"<br />\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Cuma buat ganti baris aja kok :-)\r\n\t\t\techo \"<br />\";\r\n\t\t}", "function showHeaquarters() \r\n\t{\r\n\t\t$valuesHeadquarters = $this->Headquarter->find('all', array('order' => 'Headquarter.headquarter_name ASC'));\r\n\t\t$x=0;\r\n\t\tforeach ($valuesHeadquarters as $value)\r\n\t\t{\r\n\t\t\tif($x==0)\r\n\t\t\t\t$resultadoHeadquarters[0] = 'Seleccione una jefatura';\r\n\t\t\telse\r\n\t\t\t\t$resultadoHeadquarters[$value['Headquarter']['id']]= $value['Headquarter']['headquarter_name'];\r\n\t\t\t\t\r\n\t\t\t$x++;\r\n\t\t}\r\n\t\t\r\n\t\treturn $resultadoHeadquarters;\r\n\t}", "public function getName()\n {\n\n\n return \"委托书\";\n }", "public function getNiche_code () {\n\t$preValue = $this->preGetValue(\"niche_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->niche_code;\n\treturn $data;\n}", "function analisisK($perangkaan, $jadual, $key, $data)\n{\n\t$sv = $perangkaan['sv'];\n\t$hasil = $perangkaan['hasil'];\n\t$belanja = $perangkaan['belanja'];\n\t$aset = $perangkaan['aset'];\n\t$sewa = $perangkaan['asetsewa'];\n\t$noKey = substr($key, 0, 3);\n\t//echo \"<hr>$key : $sewaHarta \";\n\t\n\tif (in_array($key, array('thn','batch','Estab') ) )\n\t{\n\t\t$value = $data;\n\t\t\n\t}\n\telseif ($sv=='205') \n\t{//untuk survey 205 sahaja\n\t\tif ($jadual == 'q04_2010' && $noKey == 'F09') \n\t\t\t$nilai = ($sewa==0) ? 0 : (($data / $sewa) * 100);\n\t\telseif ($jadual == 'q04_2010' && $noKey != 'F09') \n\t\t\t$nilai = ($aset==0) ? 0 : (($data / $aset) * 100);\n\t\telseif ($jadual == 'q08_2010')\n\t\t\t$nilai = ($hasil==0) ? 0 : (($data / $hasil) * 100 );\n\t\telseif ($jadual == 'q09_2010')\n\t\t\t$nilai = ($belanja==0) ? 0 : (($data / $belanja) * 100 );\n\t\t$value = number_format($nilai,4,'.',',') . '%';\n\t\t$name = 'name=\"' . $sv . '_' . $jadual . '[' . $key . ']\"';\n\t}\n\telse\n\t{\n\t\tif ($jadual == 's'.$sv.'_q02_2010')\n\t\t\t$nilai = ($hasil==0) ? 0 : (($data / $hasil) * 100 );\n\t\telseif ($jadual == 's'.$sv.'_q03_2010')\n\t\t\t$nilai = ($belanja==0) ? 0 : (($data / $belanja) * 100 );\n\t\telseif ($jadual == 's'.$sv.'_q04_2010')\n\t\t\t$nilai = ($aset==0) ? 0 : (($data / $aset) * 100 );\n\t\t$value = number_format($nilai,4,'.',',') . '%';\n\t\t$name = 'name=\"' . $jadual . '[' . $key . ']\"';\n\n\t}\n\t// istihar pembolehubah \n\t$input = '<input type=\"text\" ' . $name . ' value=\"' \n\t\t . $data . '\" class=\"input-large\">' . $value;\n\treturn '<td>' . $input . '</td>' . \"\\r\";\n}", "function formatKata1($kata)\n{\n // ber-V pemenggalan kata\n $format1 = substr($kata, 3);\n // be-rV pemenggalan kata\n $format2 = substr($kata, 2);\n\n if ($this->model('PreprocessingModel')->cekKataDasar($format1) == true) {\n return $format1;\n } elseif ($this->model('PreprocessingModel')->cekKataDasar($format2) == false) {\n return $format2;\n } else {\n return $kata;\n }\n}", "function getfield(){\r\n // Талбаруудын утгыг авах\r\n }", "public function getBackendResult()\n\t{\t\t\n\t\t// not implement yet.\n\t\t//$crumbs = md5(self::HASHSUM.$this->_invoice);\n\t}", "public function getABdata($key) {\n $ans=\"\";\n #$table = \"{$this->getParms->dict}ab\";\n $table = $this->dal_ab->tabname;\n $result = $this->dal_ab->getgeneral($key,$table);\n $dbg=false;\n dbgprint($dbg,\"getABdata: length of result=\" . count($result) . \"\\n\");\n if (count($result) == 1) {\n list($key1,$data) = $result[0];\n if (preg_match('/<disp>(.*?)<\\/disp>/',$data,$matches)) {\n $ans = $matches[1];\n /* This taken from mw code; but is probably obsolete.\n It permitted <s>X</s> coding within the abbreviation expansion\n and conversion to the user's choice of 'filter'\n global $dispfilter;\n $temp = strtolower($dispfilter);\n $filterflag = (preg_match('/deva/',$temp) || preg_match('/roman/',$temp));\n if ($filterflag) {\n\t$ans = preg_replace('/<s>/','<SA>',$ans);\n\t$ans = preg_replace('/<\\/s>/','</SA>',$ans);\n }\n */\n }\n }\n return $ans;\n}", "function copyrightName() {\n\t\t\treturn stripslashes( wp_filter_post_kses(get_option($this->shortname.'_copyright_name')) );\n\t\t}", "function hapusawalan1($kata){\n if(substr($kata,0,4)==\"meng\"){\n if(substr($kata,4,1)==\"e\"||substr($kata,4,1)==\"u\"){\n $kata = \"k\".substr($kata,4);\n }else{\n $kata = substr($kata,4);\n }\n }else if(substr($kata,0,4)==\"meny\"){\n $kata = \"ny\".substr($kata,4);\n }else if(substr($kata,0,3)==\"men\"){\n $kata = substr($kata,3);\n }else if(substr($kata,0,3)==\"mem\"){\n if(substr($kata,3,1)==\"a\" || substr($kata,3,1)==\"i\" || substr($kata,3,1)==\"e\" || substr($kata,3,1)==\"u\" || substr($kata,3,1)==\"o\"){\n $kata = \"p\".substr($kata,3);\n }else{\n $kata = substr($kata,3);\n }\n }else if(substr($kata,0,2)==\"me\"){\n $kata = substr($kata,2);\n }else if(substr($kata,0,4)==\"peng\"){\n if(substr($kata,4,1)==\"e\" || substr($kata,4,1)==\"a\"){\n $kata = \"k\".substr($kata,4);\n }else{\n $kata = substr($kata,4);\n }\n }else if(substr($kata,0,4)==\"peny\"){\n $kata = \"s\".substr($kata,4);\n }else if(substr($kata,0,3)==\"pen\"){\n if(substr($kata,3,1)==\"a\" || substr($kata,3,1)==\"i\" || substr($kata,3,1)==\"e\" || substr($kata,3,1)==\"u\" || substr($kata,3,1)==\"o\"){\n $kata = \"t\".substr($kata,3);\n }else{\n $kata = substr($kata,3);\n }\n }else if(substr($kata,0,3)==\"pem\"){\n if(substr($kata,3,1)==\"a\" || substr($kata,3,1)==\"i\" || substr($kata,3,1)==\"e\" || substr($kata,3,1)==\"u\" || substr($kata,3,1)==\"o\"){\n $kata = \"p\".substr($kata,3);\n }else{\n $kata = substr($kata,3);\n }\n }else if(substr($kata,0,2)==\"di\"){\n $kata = substr($kata,2);\n }else if(substr($kata,0,5)==\"keter\"){\n $kata = substr($kata,5);\n }else if(substr($kata,0,3)==\"ter\"){\n $kata = substr($kata,3);\n }else if(substr($kata,0,2)==\"ke\"){\n $kata = substr($kata,2);\n }\n return $kata;\n }", "function get_title_lectura($lectura)\n{\n $cadena = $lectura->libro_nombre . ' ' . $lectura->capitulo . ': ' . $lectura->inicio\n . '-' . $lectura->final;\n\n return $cadena;\n}", "public function nl()\n\t{\n\t\tif (preg_match('/\\((\\d+|\\?+)\\) \\[\\d+\\/\\d+\\].*\"(.+)(\\.part\\d*|\\.rar)?(\\.vol.+ \\(\\d+\\/\\d+\\) \"|\\.[A-Za-z0-9]{2,4}\").+?yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[2];\n\t\t} //JN - [1/3] - \"Operatie Teheran-Joel C Rosenberg JN.par2\" yEnc\n\t\tif (preg_match('/^\\w+[-_\\s]{0,3}[\\[\\(]\\d+\\/\\d+[\\]\\)][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //( Overlord II RELOADED ) - [013/112] - \"rld-olii.part001.rar\" yEnc\n\t\tif (preg_match('/^\\( ([\\w. -]{8,}) \\)[-_\\s]{0,3}\\[\\d+\\/(\\d+\\]) - \".+?' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //Batman.Arkham-Origins.Initiation-RELOADED - [006/296] - \"r.vol010+08.PAR2\" yEnc\n\t\tif (preg_match('/^([\\w. &()-]{8,}?\\b)[-_\\s]{0,3}\\[\\d+\\/(\\d+\\])[-_\\s]{0,3}\".+?' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //(PC-ISO) ( Trials.Fusion.Riders.of.the.Rustlands-SKIDROW ) [10/40] - \"sr-tfrotr.part01.rar\" yEnc\n\t\tif (preg_match('/^\\(PC-ISO\\)[-_\\s]{0,3}\\( ([\\w.,& ()\\[\\]\\'\\`-]{8,}?\\b) \\) \\[\\d+\\/\\d+\\][-_\\s]{0,3}\".+?' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //- - [03/33] - \"s88fX0O0g7ZPGa96TyeDr.part02.rar\" yEnc\n\t\tif (preg_match('/^[-_\\s]{0,4}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "function formatKata8($kata = '')\n{\n return substr($kata, 3);\n}", "public function ftn()\n\t{\n\t\t//Usenet collector(aangemeld bij usenet collector) [001/124] - \"Northern_Exposure_Season_4_dvd_2.par2\" yEnc\n\t\tif (preg_match('/^(Usenet collector)?\\(aangemeld.+\\) \\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //\"Family Games-OUTLAWS.nfo\" yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Adobe Photoshop Lightroom v5.2 - FiNaL - Multilingual [WIN].vol037+32.PAR2 yEnc\n\t\tif (preg_match('/^(.+?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}) {0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(Wondershare AllMyTube 3.8.0.4 + Patch) [01/12] - \"Wondershare AllMyTube 3.8.0.4 + Patch.nfo\" yEnc\n\t\tif (preg_match('/^\\(([\\w+ .()-]{8,})\\)[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\".+?' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(????) [10/26] - \"The.Young.Riders.S01E02.480pWEB-DL.AAC2.0.H.264-AJP69.part09.rar\" yEnc\n\t\tif (preg_match('/^\\(\\?+\\) \\[\\d+\\/\\d+\\] - \".+?' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "public function bloaf()\n\t{\n\t\tif (preg_match('/^([a-f0-9]{32}) - \\(\\d+\\/\\d+\\) - \"[a-f0-9]{32}.+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[10/17] - \"EGk13kQ1c8.part09.rar\" - 372.48 MB <-> usenet-space-cowboys.info <-> powered by secretusenet.com <-> yEnc\n\t\tif (preg_match('/^\\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 .\n\t\t\t\t\t ' - \\d+[,.]\\d+ [mMkKgG][bB] .+? usenet-space.+?yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(Neu bei Bitfighter vom 23-07-2013) - \"01 - Sido - Bilder Im Kopf.mp3\" yEnc\n\t\tif (preg_match('/^\\((.+?)\\) - \".+?\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //(2/8) \"Mike.und.Molly.S01E22.Maennergespraeche.GERMAN.DL.DUBBED.720p.BluRay.x264-TVP.part1.rar\" - 1023,92 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 .\n\t\t\t\t\t ' - \\d+[,.]\\d+ [mMkKgG][bB] - yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //4y (PW) [@ usenet-4all.info - powered by ssl.news -] [27,35 GB] [001/118] \"1f8867bb6f89491793d3.part001.rar\" yEnc\n\t\tif (preg_match('/^.+? (-|\\(PW\\))\\s+\\[.+? -\\] \\[\\d+[,.]\\d+ [mMkKgG][bB]\\] \\[\\d+\\/\\d+\\] \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Bennos Special Tools DVD - Die Letzte <> DRM <><> PW <> - (002/183) \"Bennos Special Tools DVD - Die Letzte.nfo\" - 8,28 GB - yEnc\n\t\tif (preg_match('/^(\\[[A-Za-z]+\\]\\.)?([a-zA-Z0-9].+?)([\\^<> ]+give-me-all\\.org[\\^<> ]+|[\\^<> ]+)DRM[\\^<> ]+.+? - \\(\\d+\\/\\d+\\)\\s+\".+?\" - .+? yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t}\n\t\t//(1/9) - CyberLink.PhotoDirector.4.Ultra.4.0.3306.Multilingual - \"CyberLink.PhotoDirector.4.Ultra.4.0.3306.Multilingual.par2\" - 154,07 MB - yEnc\n\t\t//(1/5) - Mac.DVDRipper.Pro.4.0.8.Mac.OS.X- \"Mac.DVDRipper.Pro.4.0.8.Mac.OS.X.rar\" - 24,12 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) - (.+?) ?- \".+?\" - \\d+[,.]\\d+ [mMkKgG][bB] - yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[3/3 Helene Fischer - Die Biene Maja 2013 MP3 Helene Fischer - Die Biene Maja 2013 MP3.mp3.vol0+1.PAR2\" yEnc\n\t\tif (preg_match('/^\\[\\d+\\/\\d+ (.+?)\\..+?\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //Uploader.Presents-Mutter.und.Sohn.German.2013.DVDRiP.x264-XFi[01/27]\"xf-mutterusohn.nfo\" yEnc\n\t\tif (preg_match('/^Uploader\\.Presents-(.+)[\\(\\[]\\d+\\/\\d+[\\)\\]]\".+\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "function formatKata15($kata)\n{\n // me-nV\n $format1 = substr($kata, 2);\n // me-tV\n $format2 = substr($kata, 3);\n $format2 = \"t$format2\";\n\n if ($this->model('PreprocessingModel')->cekKataDasar($format1) == true) {\n return $format1;\n } else if ($this->model('PreprocessingModel')->cekKataDasar($format2) == true) {\n return $format2;\n } else {\n return $kata;\n }\n}", "public function kreverHendelse()\n {\n return $this->krever_hendelse;\n }", "public function getKieGuruHaid()\n {\n return $this->kie_guru_haid;\n }", "public function percobaan()\n {\n \t$a = \"Ahmad Muhaimin\";\n \treturn \"Nama Saya Adalah \".$a;\n }", "function googleanlytics()\n{\n\t$gname=mysql_query(\"select * from manage_google_webmaster\");\n\t$grow=mysql_fetch_object($gname);\n\treturn $grow;\n}", "public function smanjiCenu(){\n if($this->getGodiste() < 2010){\n $discount=$this->cenapolovnogauta*0.7;\n return $this->cenapolovnogauta=$discount;\n }\n return $this->cenapolovnogauta; \n }", "function getChambrehospi(){\n return $this->chambre;\n }", "function autoPOCode() {\r\n $high = mysql_result(mysql_query(\"SELECT max(tb_purchase_code) FROM tb_purchase\"), 0);\r\n $subPertama = substr($high, 0, 3);\r\n $subPertamaTambah = $subPertama + 1;\r\n $subPertamaLength = strlen($subPertamaTambah);\r\n // echo $subPertamaLength;\r\n if ($high != null) {\r\n if ($subPertamaLength == 1) {\r\n echo \"00\" . $subPertamaTambah . \"/PO/SG/2015\";\r\n } else if ($subPertamaLength == 2) {\r\n echo \"0\" . $subPertamaTambah . \"/PO/SG/2015\";\r\n } else {\r\n echo $subPertamaTambah . \"/PO/SG/2015\";\r\n }\r\n } else {\r\n echo '001/PO/SG/2015';\r\n }\r\n}", "static function derive_title(WP_Post $p): string {\r\n\r\n\t // Hack one together from posted data\r\n\t return trim(MJKVI_ACF_AW::get_posted(MJKVI_ACF_AW::name));\r\n }", "function car() \r\n {\r\n return 'Mercedes Benz C180';\r\n }", "public function khs(){\n\t\t$tahun = \"t_tahun_akademik\";\n\t\t$data['content'] = \"report/khs\";\n\t\t$data['data_tahun'] = $this->m_aka->get_all($tahun);\n\t\t$this->load->view(\"content\", $data);\n\t}", "public function get_age_text(): string;", "public function getNumberVoucher(){\n return str_replace('R','G',$this->number);\n }", "function exibirDataHoraBr($data){\n\t$timestamp = strtotime($data); \n\treturn date('d/m/y - H:i:s', $timestamp);\t\n}" ]
[ "0.62326396", "0.57022697", "0.56636375", "0.5628256", "0.5553272", "0.5445981", "0.54442084", "0.53781456", "0.5343832", "0.5332318", "0.53297305", "0.53120315", "0.5308467", "0.5300532", "0.52994335", "0.52903926", "0.5288032", "0.5281955", "0.52675205", "0.5260885", "0.5246912", "0.52404547", "0.52370214", "0.52220523", "0.52043015", "0.517802", "0.5158875", "0.51564664", "0.51557297", "0.5155018", "0.5130929", "0.51252365", "0.512491", "0.511111", "0.510792", "0.509778", "0.5081418", "0.5077341", "0.5076856", "0.50750184", "0.5071905", "0.5070034", "0.50549", "0.5053052", "0.505276", "0.505052", "0.50437856", "0.5040283", "0.5038758", "0.5030565", "0.50259936", "0.50231725", "0.5022374", "0.5020309", "0.5018339", "0.5018339", "0.5017989", "0.50159067", "0.50132585", "0.5010833", "0.5010318", "0.5008857", "0.50065064", "0.50062454", "0.5004014", "0.4991703", "0.49893454", "0.49848557", "0.4982914", "0.49752843", "0.49742898", "0.49740168", "0.49713954", "0.49682915", "0.49637124", "0.49625924", "0.49612853", "0.49528688", "0.49497217", "0.49496835", "0.4948094", "0.49467203", "0.4942274", "0.49394122", "0.4929507", "0.49279734", "0.4927152", "0.49230015", "0.49198002", "0.49174297", "0.49093136", "0.49068543", "0.49017826", "0.48980424", "0.48891872", "0.48881274", "0.4888036", "0.4886701", "0.48826197", "0.48723173", "0.48695403" ]
0.0
-1
user_live_room_pk_details status update 19_1_2021
function update_status_user_create_live_room_pk(){ require_once("config.php"); $input = @file_get_contents("php://input"); //$event_json = json_decode($input,true); $event_json = json_decode($input,true); if(!isset($event_json['fb_id']) || $event_json['fb_id']=="") { $msg_out="Validation Error fb_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['ulrpk_id']) || $event_json['ulrpk_id']=="") { $msg_out="Validation Error ulrpk_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $fb_id=$event_json['fb_id']; $ulrpk_id=$event_json['ulrpk_id']; $DATE_TIME=custom_current_date_time(); $UPDATE_sql='update user_live_room_pk_details set ulrpkd_status=1 , ulrpkd_leave_at="'.$DATE_TIME.'", ulrpkd_leave_by_fb_id="'.$fb_id.'" WHERE ulrpkd_id="'.$ulrpk_id.'"'; $res=mysqli_query($conn,$UPDATE_sql)or die(mysqli_error($conn)); if($ulrpk_id) { $order_data =mysqli_fetch_assoc(mysqli_query($conn,"select * from user_live_room_pk_details WHERE ulrpkd_id = '$ulrpk_id' ")); $msg_out="Record Update Successfully"; $output=array( "code" => "200", "msg" => $msg_out ,"data" => $order_data); }else{ $msg_out="Error in Updte Data"; $output=array( "code" => "500", "msg" => $msg_out , "data"=> ""); } print_r(json_encode($output, true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateBookingStatus(){\n $command = Yii::$app->db->createCommand();\n $id= Yii::$app->request->bodyParams[\"booking2\"];\n\n try {\n $command->update('car', ['pendingTime' => 'on', 'inUse' => 'pending'], 'id = '.$id)->execute();\n } catch (Exception $e) {\n printf(\"Cannot update data\");\n }\n }", "public function update_status();", "function dataUpdatePublishStatus($p_id, $p_update_status)\n {\n $result_update = false;\n \n $sql = 'UPDATE user SET ';\n \n if ($p_update_status == 1)\n {\n $sql .= 'isactive = 1 ';\n } else {\n $sql .= 'isactive = 0 ';\n }\n\n $sql .= 'WHERE id = ? ';\n\n $paramtype = 'i';\n \n $paramdata = array(\n 'id' => $p_id \n );\n \n parent::stmtPrepare($sql); \n\n parent::stmtSetParamTypeString($paramtype);\n parent::stmtSetParamData($paramdata);\n parent::stmtBindParam();\n \n parent::stmtExecute();\n $result = parent::stmtGetTotalAffectedRows();\n \n if ($result > 0)\n {\n $result_update = '1';\n }\n\n parent::stmtReset(); \n parent::stmtClose(); \n \n return $result_update; \n }", "public function location_detail_change_status($details)\n\t{\n\t\t// assign variable\n\t\t$location_detail_type = $details[\"location_detail_type\"];\n\t\t$location_detail_id = $details[\"location_detail_id\"];\n\t\t$status = $details[\"status\"];\n\t\t$table_name = \"location_\".$location_detail_type;\n\t\t$field_name = $location_detail_type.\"_id\";\n\n\t\t// create query\n\t\t$query = \"UPDATE $table_name SET active='$status', updated_by='$_SESSION[username]', updated_date=NOW(), revision=revision+1 WHERE $field_name='$location_detail_id'\";\n\n\t\t// edit to database\n\t\t$process = $this->db->query($query);\n\n\t\t// create system log\n\t\tif ($process>0) {\n\t\t\t$this->sysClass->save_system_log($_SESSION['username'], $query);\n\t\t}\n\n\t\treturn $process;\n\t}", "protected function statusUpdate($data)\n {\n // DB::table('status_update')->insert(['date' => Carbon::now(),\n // 'status' => $data['status'],\n // 'booking_id' => $data['id'],\n // 'created_at' => Carbon::now()\n // ]);\n }", "public function UpdateFlagViewed(){\n\t\t\tinclude 'dbconnect.php';\n\t\t\t$Changeflag = 1; $flag =0;\n\t\t\t$Sql = $Connection->prepare(\"UPDATE InviteLinks SET flag =:Flag WHERE AdminID=:tempAdminID AND userID=:tempUserId AND flag=:tempFlag AND RoomID=:tempRoomID\");\n\t\t\t$Sql->execute(array('Flag' => $Changeflag, 'tempAdminID' => $this->getAdminID(), 'tempUserId' => $this->getInvitedID(), 'tempFlag' => $flag,'tempRoomID' => $this->getRoomID()));\n\t\t\t$Connection = null;\n\t\t}", "public function updateStatus($params)\r\n {\r\n }", "public function updateStatusOnNewDay() {\n // Update advs\n UIAdv::where('last_update_time', '<', Carbon::now()->subDays(1))->where('status', '=', 1)->update([\n 'last_update_time' => Carbon::now(),\n 'status' => 0\n ]);\n\n // Update advgroups\n UIAdvGroup::where('last_update_time', '<', Carbon::now()->subDays(1))->where('status', '=', 1)->update([\n 'last_update_time' => Carbon::now(),\n 'status' => 0\n ]);\n\n // Update campaign\n UICampaign::where('last_update_time', '<', Carbon::now()->subDays(1))->where('status', '=', 1)->update([\n 'last_update_time' => Carbon::now(),\n 'status' => 0\n ]);\n\n // Update project\n UIProject::where('last_update_time', '<', Carbon::now()->subDays(1))->where('status', '=', 1)->update([\n 'last_update_time' => Carbon::now(),\n 'status' => 0\n ]);\n }", "function hoster_user_make_admin_user_his_joined_live_room()\n\t{\n\t\trequire_once(\"config.php\");\n $input = @file_get_contents(\"php://input\");\n\t //$event_json = json_decode($input,true);\n\t\t$event_json = json_decode($input,true);\n\n\t \tif(!isset($event_json['fb_id']) || $event_json['fb_id']==\"\") \n\t\t\t{\n\t\t\t\t$msg_out=\"Validation Error fb_id Missing\";\n\t\t\t $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t\tprint_r(json_encode($output, true)); \n\t\t\t\texit();\n\t\t\t}\n\t\t \t\n\t\t\n\t\n\t\t\tif(!isset($event_json['ulrd_id']) || $event_json['ulrd_id']==\"\") \n\t\t\t{\n\t\t\t\t$msg_out=\"Validation Error ulrd_id Missing\";\n\t\t\t $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t\tprint_r(json_encode($output, true)); \n\t\t\t\texit();\n\t\t\t}\n\t\t \n\t\t\t$fb_id=$event_json['fb_id'];\n\t\t\t$ulrd_id=$event_json['ulrd_id'];\n\t\t\t$DATE_TIME=custom_current_date_time();\n \n $sql=\"SELECT count(*) as admin_user FROM `user_join_live_room_details` where ujlrd_ulrd_id=$ulrd_id and ujlrd_user_type='Admin'\";\n $admin_user=mysqli_fetch_assoc(mysqli_query($conn,$sql));\n \n if($admin_user['admin_user']> 5){\n $msg_out=\"Admin creation maximum limit is exceeded.!\";\n $output=array( \"code\" => \"201\", \"msg\" => $msg_out , \"data\"=> \"\");\n print_r(json_encode($output, true)); \n exit();\n }\n \n\t\t\t\n\t\n\t\t $update_sql='Update `user_join_live_room_details` set ujlrd_user_type=\"Admin\" \n\t\t\t\twhere ujlrd_status=\"0\" and ujlrd_ulrd_id=\"'.$ulrd_id.'\" and ujlrd_fb_id =\"'.$fb_id.'\"';\n\t\t\t$res=mysqli_query($conn,$update_sql)or die(mysqli_error($conn));\n \n \t\t \tif($res)\n\t\t\t{\n\t\t\t // $lasq='select * from user_join_live_room_details WHERE ujlrd_id=\"'.$ujlrd_id.'\" and ujlrd_ulrd_id=\"'.$ulrd_id.'\"';\n\t\t\t $newdata =\"\";//mysqli_fetch_assoc(mysqli_query($conn,$lasq));\n\t\t\t $msg_out=\"Admin created Successfully \";\t\n\t\t\t\t$output=array( \"code\" => \"200\", \"msg\" => $msg_out ,\"data\" => $newdata);\n\t\t\t}else{\n\t\t\t\t$msg_out=\"Error in Update Data\";\n\t\t\t $output=array( \"code\" => \"500\", \"msg\" => $msg_out , \"data\"=> \"\");\n\t\t\t}\n \n\t\t\tprint_r(json_encode($output, true));\n}", "public function actionUpdateStatus() {\n $model = UserJobEditorFlag::model()->findByPk(Yii::app()->request->getPost('instanceId'));\n if (!$model instanceof UserJobEditorFlag) return false;\n $saved = $model->updateStatus(Yii::app()->request->getPost('status'));\n $this->sendResponse(200, $this->getObjectEncoded(array('message' => $saved ? 'ok' : 'error')));\n }", "function practice_status()\n {\n $query = \"UPDATE\n\t\t\t\t\t\" . $this->table_name . \"\n\t\t\t\tSET\n\t\t\t\t\tStatus = :status\n\t\t\t\tWHERE\n\t\t\t\t\tid = :id AND Viewer_ID = :vid\";\n\n $stmt = $this->conn->prepare($query);\n\t\t\n\t\t$stmt->bindParam(':status', $this->status);\n $stmt->bindParam(':id', $this->id);\n\t\t$stmt->bindParam(':vid', $this->Viewer_ID);\n\n // execute the query\n if ($stmt->execute()) {\n return true;\n } else {\n return false;\n }\n }", "public function status() {\n\t\t$id = $this->uri->segment(4);\n\t\t$status = $this->uri->segment(5);\n\t\tCheckAdminLoginSession();\t\t\n\t\t$data['status'] = $status;\t\t\t\t \t \t\t \n\t\t$this->admin_model->setUpdateData($this->policy_duration,$data,$id);\n\t\t$this->session->set_flashdata('message','Your status has been update successfully');\n\t\tredirect('admin/policy-duration/lists','refresh');\t\t\n\t}", "public function update_problem_status(){\n $id = $_GET['id']; // get the problem id\n $status = $_GET['status']; // get the current status(visibility) of the problem\n\n if($status) $status = 0; else $status = 1; // reverse the status for update\n\n // json return format\n $data = array(\n 'success' => 'false',\n 'current' => $status\n );\n\n if(DB::table('problems')->where('id', $id)->update(['status' => $status])){\n // update status successfully\n $data['success'] = 'true';\n }\n return json_encode($data);\n }", "public function travel_conditions_status() {\n\t\t$id = $this->uri->segment(4);\n\t\t$status = $this->uri->segment(5);\n\t\tCheckAdminLoginSession();\t\t\n\t\t$data['status'] = $status;\t\t\t\t \t \t\t \n\t\t$this->admin_model->setUpdateData($this->travel,$data,$id);\n\t\t$this->session->set_flashdata('message','Your status has been update successfully');\n\t\tredirect('admin/travel-conditions/lists','refresh');\t\t\n\t}", "public function actionUpdate() //update value from default page to DB\n {\n\n\n $model = $this->findModel($_POST['ExamRoomDetail']['rooms_detail_date'],\n $_POST['ExamRoomDetail']['rooms_detail_time'],\n $_POST['ExamRoomDetail']['rooms_id']\n );\n if(isset($_POST)) {\n $model->load(Yii::$app->request->post());\n $update = $model;\n $update->exam_room_status = $_POST['ExamRoomDetail']['exam_room_status'];\n $update->save();\n }\n\n }", "function updateNotificationStatus($userData)\n\t\t{\n\t\t\t//update status\n\t\t\t$update = $this->manageContent->updateValueWhere('notification_info', 'view_status', 1, 'notification_id', $userData['noti_id']);\n\t\t\techo $update;\n\t\t}", "function bookingstatus_updatedata( $tbl_bookingstatus, \n$id, $kodestatus, $name, $description, $notifikasiemail ){\n\n\t$sql = mysql_query(\"\n\tUPDATE $tbl_bookingstatus SET\n\t \n\t\tkodestatus ='$kodestatus',\n\t\tname = '$name',\n\t\tdescription = '$description',\n\t\tnotifikasiemail = '$notifikasiemail'\n\n\tWHERE\n\t\tid = '$id'\n\t\");\n\treturn $sql;\n}", "function _active($info)\n\t{\n\t // Gan trang thai xac thuc\n\t $data = array();\n\t $data['status'] = mod('order')->status('completed');\n\t\n\t // Cap nhat du lieu vao data\n\t model('user_bank')->update($info->id, $data);\n\t // Gui thong bao\n\t set_message(lang('notice_update_success'));\n\t return TRUE;\n\t}", "function updatestatus() {\n global $_lib;\n\n $dataH = array();\n $dataH['ID'] = $this->transaction->ID;\n $dataH['RemittanceSequence'] = $this->transaction->RemittanceSequence;\n $dataH['RemittanceDaySequence'] = $this->transaction->RemittanceDaySequence;\n $dataH['RemittanceSendtDateTime'] = $_lib['sess']->get_session('Datetime');\n $dataH['RemittanceSendtPersonID'] = $_lib['sess']->get_person('PersonID');\n $dataH['RemittanceStatus'] = 'sent';\n \n #Disse mŒ fjernes nŒr vi har en godkjenningsprosess\n $dataH['RemittanceApprovedDateTime'] = $_lib['sess']->get_session('Datetime');\n $dataH['RemittanceApprovedPersonID'] = $_lib['sess']->get_person('PersonID');\n\n $_lib['storage']->store_record(array('data' => $dataH, 'table' => 'invoicein', 'debug' => false));\n }", "public function upfate_friend_jobs_status($id,$hireid,$userId){\n $connection1 = Yii::app() -> db;\n $update_profile_image=\"insert into `user_jobs_apply_record`(`id`, `job_id`, `hire_user_id`, `user_id`, `apply_status`, `shortlist_status`, `reject_status`, `apply_date`) \n VALUES ('','\".$id.\"','\".$hireid.\"','\".$userId.\"','1','0','0','')\";\n $command = $connection1 -> createCommand($update_profile_image);\n $command -> execute();\n return \"sadas\";\n }", "function update_status()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\t\n\t\tif(!empty($data['t']) && !empty($data['list'])) $response = $this->_tender->update_status($data['t'], explode('--',$data['list']));\n\t\t\n\t\t# all good\n\t\tif(!empty($response) && $response['boolean']){\n\t\t\t$data['msg'] = 'The Invitation for Bids/Quotations status has been updated.';\n\t\t\t$data['area'] = 'refresh_list_msg';\n\t\t} \n\t\t# there was an error\n\t\telse {\n\t\t\t$data['msg'] = (!empty($data['t']) && !empty($data['list']))? 'ERROR: There was an error updating the Invitation for Bids/Quotations status.': 'ERROR: This action can not be resolved';\n\t\t\t$data['area'] = 'basic_msg';\n\t\t}\n\t\t\n\t\t$this->load->view('addons/basic_addons', $data);\n\t}", "public function update_user_status(){\n\tif($this->session->userdata('logged_in')){\n\t\t//cleanup old logins\n\t\t$this->um_users_model->cleanup_expired_logins();\n\t\t//report the current status\n\t\t$session_data= $this->session->userdata('logged_in');\n\t\t$dbdata=array(\n\t\t\t'loggedusername'=>$session_data['username'],\n\t\t\t'ip'=>$this->session->userdata('ip_address'),\n\t\t\t'lastactivity'=>time(),\n\t\t\t'useragent'=>$this->session->userdata('user_agent'),\n\t\t\t'online'=>$this->um_users_model->get_user_online_setting($session_data['username'])\n\t\t);\n\t\t\n\t\tif($this->um_users_model->is_user_logged_in($session_data['username'])){\n\t\t\t$this->um_users_model->update_user_logged_in($session_data['username'],$dbdata);\n\t\t}else{\n\t\t\t$this->um_users_model->register_user_as_logged_in($dbdata);\n\t\t}\n\t\n\t}\n\t}", "public function status()\t{\n\t\t\t$this->veiculo->update($this->input->post('id'), array('veiculo_status' => $this->input->post('status')));\n\t\t}", "function update_status()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\tif(!empty($data['t']) && !empty($data['list'])) $result = $this->_bid->update_status($data['t'], explode('--',$data['list']));\n\t\t\n\t\t$data['msg'] = !empty($result['boolean']) && $result['boolean']? 'The bid status has been changed.': 'ERROR: The bid status could not be changed.';\n\t\t\n\t\t$data['area'] = 'refresh_list_msg';\n\t\t$this->load->view('addons/basic_addons', $data);\n\t}", "function fn_order_status_history_change_order_status($status_to, $status_from, $order_info, $force_notification, $order_statuses, $place_order) {\n\n db_query(\"INSERT INTO ?:order_status_history values (\". $order_info['order_id'] . \",\". Tygh::$app['session']['auth']['user_id'] . \", '\".$status_to.\"' , '\".$status_from.\"', \" . time() .\")\");\n\n return true;\n}", "function status($uuid){\n perfil_superior();\n if ($uuid==$this->session->userdata('usuario')[\"uuid\"]) {\n #MENSAJE ERROR\n $this->session->set_flashdata('mensaje_error',\"No puedes cambiar tu propio estado\");\n redirect('usuarios/index','refresh');\n }\n $resultado=$this->Usuario_Model->get_user($uuid);\n if ($resultado[\"status\"]==1) {\n $usuario = [\n \"status\"=> 0,\n \"fecha_modificacion\" => date('Y-m-d H:i:s') \n ];\n $mensaje = \"Desactivado\";\n }else{\n $usuario = [\n \"status\"=> 1,\n \"fecha_modificacion\" => date('Y-m-d H:i:s') \n ];\n $mensaje = \"Activado\";\n }\n $this->Usuario_Model->update($uuid,$usuario);\n\n #MENSAJE EXITO\n $this->session->set_flashdata('mensaje_exito',\"Usuario \".$mensaje);\n redirect('usuarios/index','refresh');\n \n \n }", "public function UserListChangeStatus(): void{\n \n if(!ArtworkVerifier::setStatusList($_POST) || !Session::isLogin()){\n exit;\n }\n \n if(isset(UserList::where('user_list.user_id', Session::getUser()['id'])->where('user_list.artwork_id', $_POST['artwork_id'])->getOne()->id)){\n UserList::values([ 'user_list.status' => $_POST['status'] ])\n ->where('user_id' ,Session::getUser()['id'])\n ->where('artwork_id', $_POST['artwork_id'])\n ->update();\n exit;\n }\n }", "function yamoney_update_transaction_status($ymid, $status) {\n return !!db_query('UPDATE {yamoney_transaction} SET status = \"%s\" WHERE ymid = %d', $status, $ymid);\n}", "function jx_upd_prodsrcstatus()\r\n\t{\r\n\t\t$user = $this->auth();\r\n\t\t$pid = $this->input->post('pid');\r\n\t\t$stat = !$this->input->post('stat');\r\n\t\t\r\n\t\t$output = array();\r\n\t\t$this->db->query(\"update m_product_info set is_sourceable=? where product_id=? and is_sourceable != ? limit 1\",array($stat,$pid,$stat));\r\n\t\t$output['status'] = $this->db->affected_rows();\r\n\t\t$t_inp=array(\"product_id\"=>$pid,\"is_sourceable\"=>$stat,\"created_on\"=>time(),\"created_by\"=>$user['userid']);\r\n\t\t$this->db->insert(\"products_src_changelog\",$t_inp);\r\n\t\techo json_encode($output);\r\n\t}", "function updatereviewstatus($assid, $studentid, $datesubmitted, $tid, $pid){\n\t\t\t$strQuery=\"update review_assignments set pid = '$pid', date_submitted='$datesubmitted', status = 'not' where aid='$assid' and stid = '$studentid' and tid='$tid'\";\n\t\t\t$result = $this->query($strQuery);\n\t}", "public function updateStatus(){\t\t\tif( is_null( $this->id ) ) trigger_error( \"User::update(): Attempt to update a user object that does not have its ID property set.\", E_USER_ERROR );\r\n\t\t\t\r\n\t\t\r\n\r\n\t\t\t//Update the object\r\n\t\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\t\t\r\n\t\t\t$sql = \"UPDATE \".TABLENAME_GROUPS.\" SET status=:status WHERE id = :id\";\r\n\t\t\t$st = $conn->prepare( $sql );\r\n\t\t\t$st->bindValue( \":status\", $this->status, PDO::PARAM_STR );\r\n\t\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t\techo \"<br>\";\r\n\t\t\t$st->execute();\r\n\t\t//\tprint_r($st->errorInfo());\r\n\t\t\t$conn = null;\t\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}", "public function review_schedule($sch_id, $status, $comm){\r\n\t $dates = date('Y-m-d');\r\n\r\n$res = $this->db->query('UPDATE leave_schedule SET status='.$status.', sup_update_date=\"'.$dates.'\", super_comment=\"'.$comm.'\" WHERE sched_id='.$sch_id);\r\n\t return $res;\r\n\t }", "function update_record_status($id, $status, $table, $key) {\n\t$sql = \"UPDATE \".TB_PREF.$table.\" SET inactive = \"\n\t\t. ((int)$status).\" WHERE $key=\".db_escape($id);\n\t\t\n \tdb_query($sql, \"Can't update record status\");\n}", "function updateLiveStreamStatus($id, $status) {\nglobal $app, $debug, $jconf, $myjobid;\n\n\tif ( empty($status) ) return false;\n\n $values = array(\n\t\t'status' => $status\n\t);\n\n $converterNodeObj = $app->bootstrap->getModel('livefeed_streams');\n $converterNodeObj->select($id);\n $converterNodeObj->updateRow($values);\n \n\t// Log status change\n\t$debug->log($jconf['log_dir'], $myjobid . \".log\", \"[INFO] Live stream id#\" . $id . \" status changed to '\" . $status . \"'.\", $sendmail = false);\n \n\treturn true;\n}", "public function status($id)\n {\n return appointment::where('id',$id)->update(['verified'=>1]);\n }", "public function testUpdateStatusByUserId()\n {\n $session = $this->objectManager->create(\\Magento\\Security\\Model\\AdminSessionInfo::class);\n /** @var $session \\Magento\\Security\\Model\\AdminSessionInfo */\n $session->getResource()->updateStatusByUserId(\n \\Magento\\Security\\Model\\AdminSessionInfo::LOGGED_OUT_BY_LOGIN,\n 1,\n [1],\n [1],\n '2016-01-19 12:00:00'\n );\n $collection = $session->getResourceCollection()\n ->addFieldToFilter('main_table.user_id', 1)\n ->addFieldToFilter('main_table.status', \\Magento\\Security\\Model\\AdminSessionInfo::LOGGED_OUT_BY_LOGIN)\n ->load();\n $count = $collection->count();\n $this->assertGreaterThanOrEqual(1, $count);\n }", "public function update(){\n\n $sql = 'UPDATE fullorder SET ';\n $sql .= 'Status = \"' . $this->__get('Status') . '\"';\n if ($this->__get('Status') == 'Delivered') {\n $date = date('Y-m-d');\n $time = $date . '' . time();\n $sql .= ', OrderDeliverTime = NOW() ';\n }\n $sql .= 'WHERE OrderID =' . $this->__get('OrderID');\n $con = $this->openconnection();\n $stmt = $con->prepare($sql);\n $stmt = $stmt->execute(); \n $con = null;\n if(!$stmt){\n //echo \"FROM MODEL <br>\";\n return false;\n } else {\n //echo \"FROM MODELllll true<br>\" . $lastId;\n return true;\n \n }\n }", "public function respon(){\n //update 'status'\n }", "function changeStatus($detail) {\r\n\r\n $cid = $detail['cid'];\r\n\r\n $n = count($detail['cid']);\r\n $db = JFactory::getDBO();\r\n $task = JRequest::getCmd('task');\r\n if ($task == \"unpublish\") {\r\n $publish = 0;\r\n } else {\r\n $publish = 1;\r\n }\r\n for ($i = 0; $i < $n; $i++) {\r\n //update the status to the table.\r\n $query = \"UPDATE #__em_paymentmethod set status=\" . $publish . \"\r\n WHERE id = \" . $cid[$i];\r\n $db->setQuery($query);\r\n $result = $db->loadResult();\r\n }\r\n return $result;\r\n }", "public function availability_submit($room){\r\n \r\n $update_query = \"UPDATE \" . self::$db_table . \" SET \" . $this->active_month() . \"='\";\r\n \r\n// echo \"MJESEC: \"; var_dump($month);\r\n \r\n $days_in_month = $this->no_of_days_in_month($this->active_month(), $this->active_year()); \r\n for ($i=1; $i<=$days_in_month ; $i++){\r\n $availability = $_POST['availability'][$i-1]; //jer pocinje od 0\r\n $availability = boolval($availability); \r\n// var_dump($availability);\r\n if (!$availability){\r\n $query_content = \"$i,\";\r\n \r\n// echo $query_content;\r\n $update_query .= $query_content;\r\n }\r\n }\r\n $update_query .= \"'\r\n WHERE room_name = '\" . $room->name . \"'\";\r\n $update_query .= \" AND facility_name = '\" . $room->facility_name . \"'\";\r\n $update_query .= \" AND owner = '\" . $room->get_owner() . \"'\";\r\n $update_query .= \" AND year = '\" . $this->active_year() . \"'\";\r\n// echo $update_query . \"<br>\";\r\n \r\n return $this->update_query_to_db($update_query);\r\n \r\n }", "public function actionUpdateStatus()\n { \n $user_id = Yii::$app->user->identity->id;\n $model = Users::find()->where(['id'=>$user_id])->one();\n $model->step_validate = 2;\n $model->load(Yii::$app->getRequest()->getBodyParams(), '');\n if ($model->validate()) {\n $model->save();\n $response = \\Yii::$app->getResponse();\n $response->setStatusCode(202);\n return $model->getUsersStatusValues();\n }\n else {\n throw new HttpException(422, json_encode($model->errors, JSON_UNESCAPED_UNICODE));\n }\n }", "public function status(Request $request)\n {\n $urow = Registration::where(['id' => $request['Row_id']]);\n if ($urow!= null) {\n $urow->update(['status' => $request['status']]);\n return redirect()->action('FollowupController@index')->with('success', 'Successfully Updated!');\n } else {\n return redirect()->action('FollowupController@index')->with('failed', 'Successfully Updated!');\n }\n }", "function updateReimSheetStatus($params) {\n \n $conn = $this->connectToDB();\n $status = 0;\n $assessmentSql = \"SELECT user_id FROM h_user_review_reim_sheet_status WHERE assessment_id = :assessment_id AND sheet_status = :status\";\n //print_r($params);die;\n $stmt = $conn->prepare($assessmentSql);\n $stmt->bindParam(':assessment_id', $params['assessment_id'], $conn::PARAM_INT);\n $stmt->bindParam(':status', $status, $conn::PARAM_INT);\n $stmt->execute();\n $sheetAssessmentData = $stmt->fetchAll(PDO::FETCH_ASSOC);\n // print_r($sheetAssessmentData);die;\n if(!empty($sheetAssessmentData)) {\n $updateStatusSql = \"UPDATE h_user_review_reim_sheet_status SET sheet_status = :sheet_status WHERE user_id IN ('\";\n $sqlCond = '';\n foreach($sheetAssessmentData as $data) {\n if($_POST['reim_sheet_'.$data['user_id']] == 1) {\n \n $sqlCond .= $data['user_id'].\"','\";\n } \n \n }\n $updateStatus = 0;\n if(!empty($sqlCond)) {\n $updateStatusSql .= trim($sqlCond,\",'\").\"') AND assessment_id=:assessment_id\";\n \n //echo $updateStatusSql;die;\n $sheet_status= 1;\n $stmt = $conn->prepare($updateStatusSql);\n $stmt->bindParam(':assessment_id', $params['assessment_id'], $conn::PARAM_INT);\n $stmt->bindParam(':sheet_status', $sheet_status, $conn::PARAM_INT);\n if($stmt->execute()) {\n $updateStatus = 1;\n \n }\n }else {\n $updateStatus = 1;\n }\n if($updateStatus == 1) {\n $url = SITEURL . 'reimsheetconfirmation.php?status=1';\n header(\"location:$url\");\n }\n //$sheetAssessmentData = $stmt->fetchAll(PDO::FETCH_ASSOC);\n }else {\n $url = SITEURL . 'reimsheetconfirmation.php?status=0';\n header(\"location:$url\");\n }\n // echo \"<pre>\";print_r($sheetAssessmentData);\n \n }", "public function status_change_action(){\n\t $table = $this->input->post('table');\n\t $state = $this->input->post('state');\n\t $primary_field = $this->input->post('primary_field');\n\t $primary_key = $this->input->post('primary_key');\n\t if($state=='true'){\n\t $status = \"Y\";\n\t $status_text = \"Approved\";\n\t }else{\n\t $status = \"N\";\n\t $status_text = \"Rejected\";\n\t }\n\t $statusReturn = $this->common_model->update_row(array('fr_status'=>$status), array($primary_field=>$primary_key), $table);\n\t if($statusReturn){\n\t echo \"1\";\n\t }else{\n\t echo \"0\";\n\t }\n\t}", "public function updateStatuses()\n {\n $affected = DB::update('UPDATE los_orders SET status_code=1 WHERE status_code=0 AND order_date IN (SELECT provide_date FROM los_lunchdates WHERE orders_placed IS NOT NULL)');\n $affected = DB::update('UPDATE los_orders SET status_code=0 WHERE status_code=1 AND order_date IN (SELECT provide_date FROM los_lunchdates WHERE orders_placed IS NULL)');\n }", "function updateLiveFeedStatus($id, $status) {\nglobal $app, $debug, $jconf, $myjobid;\n\n\tif ( empty($status) ) return false;\n\n $values = array(\n\t\t'status' => $status\n\t);\n\n $converterNodeObj = $app->bootstrap->getModel('livefeeds');\n $converterNodeObj->select($id);\n $converterNodeObj->updateRow($values);\n \n\t// Log status change\n\t$debug->log($jconf['log_dir'], $myjobid . \".log\", \"[INFO] Livefeed id#\" . $id . \" status changed to '\" . $status . \"'.\", $sendmail = false);\n \n\treturn true;\n}", "public function notConfirmed($dt)\n{\n\n $code = 401;\n $payload = null;\n $remarks = \"failed\";\n $message = \"Unable to retrieve data\";\n\n\n\n $sql = \"UPDATE `crm_reservations_tb` SET `status_id` = '5' WHERE phone_no = '$dt->phone_no' AND status_id = '3'\";\n $res = $this->gm->generalQuery1($sql, \"\");\n\n if($res['code']!=200) {\n \n $code = 200;\n $payload = $res;\n $remarks = \"success\";\n $message = \"Successfully retrieved data\";\n }\n \n \n return $this->gm->sendPayload($payload, $remarks, $message, $code);\n\n}", "public function userLiveStatusUpdate_post() {\n $this->form_validation->set_rules('ContestGUID', 'ContestGUID', 'trim|required|callback_validateEntityGUID[Contest,ContestID]');\n $this->form_validation->set_rules('UserGUID', 'UserGUID', 'trim|callback_validateEntityGUID[User,UserID]');\n $this->form_validation->set_rules('UserStatus', 'UserStatus', 'trim|required|in_list[Yes,No]');\n $this->form_validation->set_rules('SeriesGUID', 'SeriesGUID', 'trim|required|callback_validateEntityGUID[Series,SeriesID]');\n $this->form_validation->validation($this); /* Run validation */\n $AuctionStatus = $this->SnakeDrafts_model->userLiveStatusUpdate($this->Post, $this->ContestID, $this->UserID, $this->SeriesID);\n if ($AuctionStatus) {\n $this->Return['Message'] = \"User status successfully updated.\";\n $this->Return['Data']['DraftUserLiveTime'] = date('Y-m-d H:i:s');\n } else {\n $this->Return['ResponseCode'] = 500;\n $this->Return['Message'] = \"User status already updated.\";\n }\n }", "public function changestatusAction()\n {\n $user_params=$this->_request->getParams();\n $automail=new Ep_Message_AutoEmails();\n $ftvrequest_obj = new Ep_Ftv_FtvRequests();\n $ftvcontacts_obj = new Ep_Ftv_FtvContacts();\n $ftvpausetime_obj = new Ep_Ftv_FtvPauseTime();\n\n if($user_params['status'] == 'closed')\n $data = array(\"status\"=>$user_params['status'], \"cancelled_at\"=>date('Y-m-d H:i:s'));////////updating\n elseif($user_params['status'] == 'done')\n $data = array(\"status\"=>$user_params['status'], \"closed_at\"=>date('Y-m-d H:i:s'));////////updating\n else\n $data = array(\"status\"=>$user_params['status'], \"closed_at\"=>NULL, \"cancelled_at\"=>NULL);////////updating\n $query = \"identifier= '\".$user_params['requestId'].\"'\";\n $requestdetails = $ftvrequest_obj->requestDetailsById($user_params['requestId']);\n $contactId = $requestdetails[0]['request_by'];\n $contactdetails = $ftvcontacts_obj->getFtvContactDetails($contactId);\n $contactName = $contactdetails[0]['first_name'].\" \".$contactdetails[0]['last_name'];\n $parameters['ftvobject'] = $requestdetails[0]['request_object'];\n $parameters['ftvcontactName'] = $contactName;\n $ftvrequest_obj->updateFtvRequests($data,$query);\n ////making the time resume if its in pause////\n $inpause = $ftvpausetime_obj->inPause($user_params['requestId']);\n if($inpause == 'yes')\n {\n $data = array(\"resume_at\"=>date('Y-m-d H:i:s'));////////updating\n $query = \"ftvrequest_id = '\".$user_params['requestId'].\"' AND resume_at IS NULL \";\n $ftvpausetime_obj->updateFtvPauseTime($data,$query);\n }\n if($user_params['status'] == 'done')\n {\n if($this->adminLogin->userId != '110823103540627' ) ///when not johny head of BO user for FTV changed\n {\n $parameters['ftvrequestlink'] = \"/ftvchaine/ftvch-requests?submenuId=ML11-SL6\";\n $parameters['ftvType'] = \"chaine\";\n $automail->messageToEPMail('110823103540627',114,$parameters);// to johny\n $parameters['ftvrequestlink'] = \"http://ep-test.edit-place.com/ftvchaine/index\";\n $automail->sendFtvChaineContactsPersonalEmail($contactId,114,$parameters); // to client contact\n }\n else // in case jhony change the status\n {\n $parameters['ftvrequestlink'] = \"http://ep-test.edit-place.com/ftvchaine/index\";\n $automail->sendFtvChaineContactsPersonalEmail($contactId,114,$parameters); // to client contact\n }\n }\n\n }", "public function checkoutInvite($id,$status,$cell_number){\n // return $changeStatus;\n return DB::table('visitor_pass')->where('id', $id)->update(['invitation_status'=>$status]);\n }", "public function changestatus()\r {\r $query=\"update `\".$this->tablename.\"` set `status`='\".$this->status.\"' where `id`='\".$this->id.\"' \";\r $result=mysqli_query($this->conn,$query);\r return $result;\r }", "function myPear_update22(){\n myPear_db()->qquery(\"UPDATE zzz_unit_members SET um_status='\".EA_role_employee.EA_role_alumnus.\"' WHERE um_status='\".EA_role_alumnus.\"'\",1);\n}", "public function userViewOld($id)\n {\n $booking=DB::table('bookings')->select('bookings.id','bookings.status',\n 'bookings.created_at','houses.name as house_name',\n 'rooms.number','rooms.id as room_id','rooms.price',\n 'bookings.status','bookings.date_from','bookings.date_to',\n 'users.name','users.last_name','users.birthdate','users.image',\n 'users.gender','bookings.mode','bookings.message','bookings.note',\n 'managers.id as manager_id','users.id as user_id',\n 'users.email as user_email', 'countries.name as country')\n ->join('users','users.id','=','bookings.user_id')\n ->join('rooms','rooms.id','=','bookings.room_id')\n ->join('houses', 'houses.id','=','rooms.house_id')\n ->join('managers','managers.id', '=', 'houses.manager_id')\n ->join('countries','countries.id','=','users.country_id')\n ->where('bookings.id', '=', $id)\n ->first();\n\n $status= $booking->status;\n\n $booking->manager_info = DB::table('managers')\n ->select('users.id','users.name','users.last_name','users.description','users.image','users.email','users.phone','countries.icon', 'users.gender', 'countries.name as country_name')\n ->join('users','users.id','=','managers.user_id')\n ->join('countries','countries.id','=','users.country_id')\n ->where('managers.id','=',$booking->manager_id)\n ->first();\n\n $image_room = DB::table('image_rooms')\n ->select('image_rooms.image')\n ->where('image_rooms.room_id','=',$booking->room_id)\n ->orderBy('priority')\n ->first();\n if ($image_room == null) {\n $non_image = ['priority'=>'100','id'=>'0','room_id'=>$booking->room_id,'image'=>'room_4.jpeg'];\n $non_image= (object) $non_image;\n $image_room=$non_image;\n }\n\n $messages = Message::where('bookings_id','=',$booking->id)->get();\n\n $count = DB::table('bookings')->whereBetween('status',[1,3])\n ->where('bookings.room_id', '=', $booking->room_id )\n ->count();\n\n $query = DB::table('status_update as status')\n ->select('status.created_at')\n ->where('status.booking_id','=',$id)\n ->orderBy('created_at', 'desc')\n ->first();\n if (isset($query)) {\n $date_limit = Carbon::now(); //TIENEN QUE ARREGLARLO\n $date_limit->addDays(2);\n $now = Carbon::now();\n $milliseconds = $date_limit->diffInSeconds($now)*1000;\n } else {\n $milliseconds = 0;\n }\n $user=DB::table('users')->where('id','=',$booking->user_id)->first();\n $room=DB::table('rooms')->where('id','=',$booking->room_id)->first();\n $house=DB::table('houses')->where('id','=',$room->house_id)->first();\n // $vico_chat=View('bookings.vico_chat_user',[\n // 'booking' => $booking,\n // 'messages' => $messages,\n // 'user'=> $user,\n // 'today_time' => Carbon::now()->toTimeString(),\n // 'room' => $room,\n // 'house'=>$house\n // ])->render();\n\n $whatsappnumberforlink = substr($booking->manager_info->phone, 1);\n\n $verification = Verification::firstOrCreate(\n ['user_id' => $booking->manager_info->id],\n [\n 'user_id' => $user->id,\n 'phone_verified' => false,\n 'whatsapp_verified' => false,\n 'document_verified' => false,\n ]\n );\n\n $currency = new Currency();\n $currency = $currency->getCurrentCurrency();\n\n return view('bookings.request', [\n 'image_room' => $image_room->image,\n 'count' => $count -1,\n 'booking' => $booking,\n 'countries' => Country::all('id','name','icon')->sortBy('name'),\n 'houses' => House::all(),\n 'house' => $house,\n 'status' => $this->STATUS,\n 'room' => $room,\n 'user' => $user,\n 'whatsappnumberforlink' => $whatsappnumberforlink,\n 'milliseconds' => $milliseconds,\n 'today_date' => Carbon::now()->toDateString(),\n 'today_time' => Carbon::now()->toTimeString(),\n 'messages' => $messages,\n // 'vico_chat'=>$vico_chat,\n 'verification' => $verification,\n 'currency' => $currency\n ]);\n }", "function change_status_to() {\n $stat_param = array(\n 'status' => $this->uri->segment(3)\n );\n $id = $this->uri->segment(4);\n $updt_status = $this->guest_post_model->change_status_to('newsletter', $stat_param, $id);\n if ($updt_status) {\n $this->session->set_userdata('success_msg', 'Status Updated susseccfully.');\n } else {\n $this->session->set_userdata('error_msg', 'Cannot update status.');\n }\n redirect('news_letter_cont');\n }", "function updateReservationStatus($codigo_reserva) {\r\n\r\n global $connect;\r\n\r\n $sql_update_query = \"UPDATE reserva SET estado=1 WHERE (codigo_reserva = '$codigo_reserva');\";\r\n\r\n // Realizamos la consulta a la tabla \r\n $updated = $connect->executeIDU($sql_update_query);\r\n\r\n if (!$updated) { \r\n echo \"no se pudo acceder a la base\";\r\n return false;\r\n }\r\n\r\n }", "public function travel_quote_status() {\n\t\t$id = $this->uri->segment(4);\n\t\t$status = $this->uri->segment(5);\n\t\tCheckAdminLoginSession();\t\t\n\t\t$data['status'] = $status;\t\t\t\t \t \t\t \n\t\t$this->admin_model->setUpdateData($this->travel_quote,$data,$id);\n\t\t$this->session->set_flashdata('message','Your status has been update successfully');\n\t\tredirect('admin/travel-quote/lists','refresh');\t\t\n\t}", "function wppb_check_serial_number($oldVal, $newVal){\r\n\r\n\t$serial_number_set = $newVal;\r\n\r\n\r\n\t$response = wp_remote_get( 'http://updatemetadata.cozmoslabs.com/checkserial/?serialNumberSent='.$serial_number_set );\r\n\tif ( PROFILE_BUILDER == 'Profile Builder Pro' ){\r\n wppb_update_serial_status($response, 'pro');\r\n wp_clear_scheduled_hook( \"check_plugin_updates-profile-builder-pro-update\" );\r\n } else {\r\n wppb_update_serial_status($response, 'hobbyist');\r\n wp_clear_scheduled_hook( \"check_plugin_updates-profile-builder-hobbyist-update\" );\r\n\t}\r\n $user_ID = get_current_user_id();\r\n\tdelete_user_meta( $user_ID, 'wppb_dismiss_notification' );\r\n\r\n}", "public function update_availability()\n\t{\n\t\tdate_default_timezone_set(\"Asia/Kolkata\");\n\t\t$res=date('Y-m-d H:i', time());\n\t\techo $res;\n\t\t$data=$this->Setting_model->check_end(); \n\t\tforeach($data as $key)\n\t\t{ $id=$key->id;\n\t\t\t$user_id= $key->user_id;\n\t\t\t//echo $id; echo $user_id;\n\t\t\t$date_time=$key->dates .' '.$key->end_time;\n\t\t\tif($res==$date_time)\n\t\t\t{\n\t\t\t\t//echo \"yess\";\n\t\t\t \t$this->Setting_model->update_time($id,$user_id);\n\t\t\t}\n\t\t}\n\t}", "public function updateStatusProposal()\n { \n $now = Mage::getSingleton('core/date')->gmtDate(\"Y-m-d\"); \n $collection = Mage::getModel('qquoteadv/qqadvcustomer')->getCollection();\n $collection->addFieldToFilter('status', Ophirah_Qquoteadv_Model_Status::STATUS_PROPOSAL);\n $collection->getSelect()->where('expiry < \\''.$now.'\\' AND no_expiry = \\'0\\'');\n $collection->load(); \n\n foreach ($collection as $item) { \n $item->setStatus(Ophirah_Qquoteadv_Model_Status::STATUS_PROPOSAL_EXPIRED);\n $item->save(); \n }\n }", "private function existUdetails($roomId, $start, $end){\n $query = \"SELECT ud_id FROM unavailabilitydetails WHERE room_id = :room_id AND ud_from_date < :start AND ud_to_date > :end\";\n $stmt = $this->conn->prepare($query);\n $stmt->bindValue('room_id', $roomId);\n $stmt->bindValue('start', $start);\n $stmt->bindValue('end', $end);\n $stmt->execute();\n $existOne = $stmt->rowCount() > 0;\n if($existOne){\n return true;\n }\n\n /*elimino la disponibilidades si caen dentro*/\n $query = \"DELETE FROM unavailabilitydetails WHERE room_id = :room_id AND ud_from_date >= :start AND ud_to_date <= :end\";\n $stmt = $this->conn->prepare($query);\n $stmt->bindValue('room_id', $roomId);\n $stmt->bindValue('start', $start);\n $stmt->bindValue('end', $end);\n $stmt->execute();\n /*$deleteOne = $stmt->rowCount() > 0;\n if($deleteOne){\n return false;\n }*/\n\n /*Actualizar la no disponibilidad que el start cae dentro de la no disponibilidad*/\n $ud_to_date_new = (new \\DateTime($start))->modify('-1 day')->format('Y-m-d');\n $query = \"UPDATE unavailabilitydetails SET ud_to_date = :ud_to_date WHERE room_id = :room_id AND ud_from_date < :start AND ud_to_date >= :start\";\n $stmt = $this->conn->prepare($query);\n $stmt->bindValue('ud_to_date', $ud_to_date_new);\n $stmt->bindValue('room_id', $roomId);\n $stmt->bindValue('start', $start);\n $stmt->execute();\n /*$modifOne = $stmt->rowCount() > 0;\n if($modifOne){\n $aa = 1;\n }*/\n\n /*Actualizar la no disponibilidades que el end cae dentro de la no disponibilidad*/\n $ud_from_date_new = (new \\DateTime($end))->modify('+1 day')->format('Y-m-d');\n $query = \"UPDATE unavailabilitydetails SET ud_from_date = :ud_from_date WHERE room_id = :room_id AND ud_from_date <= :xend AND ud_to_date > :xend\";\n $stmt = $this->conn->prepare($query);\n $stmt->bindValue('ud_from_date', $ud_from_date_new);\n $stmt->bindValue('room_id', $roomId);\n $stmt->bindValue('xend', $end);\n $stmt->execute();\n /*$modifOne = $stmt->rowCount() > 0;\n if($modifOne){\n $aa = 1;\n }*/\n\n return false;\n }", "public function updateByPk($pk,$attributes,$condition='',$params=array(),$checker=1,$id_order)\r\n {\r\n // возможно нужно будет поменять на хостинге на Asia/Yekaterinburg\r\n \r\n \r\n Yii::trace(get_class($this).'.updateByPk()','system.db.ar.CActiveRecord');\r\n $builder=$this->getCommandBuilder();\r\n $table=$this->getTableSchema();\r\n $criteria=$builder->createPkCriteria($table,$pk,$condition,$params);\r\n $command=$builder->createUpdateCommand($table,$attributes,$criteria);\r\n if($checker!='vpizdy')\r\n {\r\n $table_user = Ticks::model()->findByPk($pk);\r\n \r\n $data = array(\r\n 'id'=>$table_user->id\r\n ,'id_clienthotel'=>$table_user->id_clienthotel\r\n ,'date_period_begin'=>$table_user->date_period_begin\r\n ,'date_period_finish'=>$table_user->date_period_finish\r\n ,'status'=>$table_user->status\r\n ,'finish_sum'=>$table_user->finish_sum\r\n ,'note'=>$table_user->note\r\n ,'id_informer'=>$table_user->id_informer\r\n ,'sum_for_days'=>$table_user->sum_for_days\r\n ,'sum_for_doc'=>$table_user->sum_for_doc\r\n ,'date_public'=>$table_user->date_public\r\n );\r\n //\r\n $id_user = Yii::app()->user->getId();\r\n $sid = Yii::app()->session->sessionID; \r\n $id_action = 1; // 0 - создал, 1 - редактировал, 2 - удалил\r\n $sql_query = array('table'=>'ticks','data'=>$data);\r\n $short_desc = 'Редактирование счёта';\r\n $change_time = date('Y-m-d H:i');\r\n if(!is_numeric($checker)) $txt = $checker;\r\n else $txt='update';\r\n //$tmp_id = SqlLogs::model()->find(\"tmp_id={$table_user->id_clienthotel} and post_type='$txt'\"); \r\n \r\n if($txt!='update')\r\n SqlLogs::saveLOG($id_user,$sid,$id_action,$sql_query,$short_desc,$change_time,$txt,$id_order);\r\n }\r\n \r\n \r\n return $command->execute();\r\n }", "function updateData($id,$username,$fullname,$status_aktif,$user_group,$telephone,$email,$gereja)\n\t{\n\t\t$hasil=$this->db->query(\"UPDATE users SET username='$username',fullname='$fullname',email='$email',group_id='$user_group',active='$status_aktif',modified=current_time,telpno='$telephone',gereja_id='$gereja' WHERE id='$id'\");\n return $hasil;\n\t}", "public function updateRooms(){\r\n\r\n\t\t$this->form_validation->set_error_delimiters('<div class=\"error\">', '</div>');\r\n\r\n\t\t$updateID=$this->input->post(\"id\");\r\n\t\t\r\n $room_number=$this->input->post('room_number');\r\n\t\t$room_type=$this->input->post('room_type');\r\n\t\t$single_size=$this->input->post('single_size');\r\n\t\t$double_size=$this->input->post('double_size');\r\n\t\t$king_size=$this->input->post('king_size');\r\n\t\t$queen_size=$this->input->post('queen_size');\r\n\t\t$room_condition=$this->input->post('room_condition');\r\n\t\t$room_status=$this->input->post('room_status');\r\n\t\t$hotel_id = $this->session->userdata['hotel_id'];\r\n\t\t$updateData=array(\r\n 'room_number'=>$room_number, \r\n\t\t\t'room_type'=>$room_type,\r\n\t\t\t'single_size' =>$single_size,\r\n\t\t\t'double_size' =>$double_size,\r\n\t\t\t'king_size' =>$king_size,\r\n\t\t\t'queen_size' =>$queen_size,\r\n\t\t\t'room_condition' =>$room_condition,\r\n\t\t\t'room_status' =>$room_status,\r\n\t\t\t'hotel_id' =>$hotel_id\r\n\r\n\t\t);\r\n\r\n\r\n\t\t$tbl_name='rooms';\r\n\r\n $this->load->Model('General_Model');\r\n $result=$this->General_Model->update($updateData,$updateID,$tbl_name);\r\n\r\n\t\tif(!empty($result)){\r\n\r\n\t\t\t$this->session->set_flashdata('success', \"Record Update Successfully !!\"); \r\n\t\t\tredirect(\"room/RoomsController/showRoomsList\");\r\n\r\n\t\t}\r\n\t\telse{\r\n\r\n\t\t\t$this->session->set_flashdata('error',\"Sorry,Record Update failed.\");\r\n\t\t\tredirect(\"room/RoomsController/showRoomsList\");\r\n\t\t}\r\n\r\n\t\t\r\n\r\n\t}", "public function doUpdateStatus()\n\t{\n\n\t\t\n\t\t$rules = array(\n\t\t\t'row_id' => 'required', \n\t\t\t'status' => 'required'\n\t\t);\n\t\t\n\t\t// run the validation rules \n\t\t$validator = Validator::make(Input::all(), $rules);\n\n\t\tif ($validator->fails()) {\n\t\t\t\n\t\t\treturn Redirect::to('order')\n\t\t\t\t->withErrors($validator);\n\t\t\t\n\t\t}\n\t\t\n\t\ttry {\n\t\t \n\t\t\t$object = Object::find(Input::get('row_id'));\n\t\t\t$object->fk_status = Input::get('status');\n\t\t\t$object->save();\n\t\t\t\n $logDetails = json_encode(['row_id' => Input::get('row_id'),\n\t\t\t\t\t\t\t\t\t 'status' => Input::get('status')]);\n\t\t\t\t\t\n\t\t\tActivity::log([\n\t\t\t\t'contentId' => Auth::User()->id,\n\t\t\t\t'contentType' => 'admin_pickup_status',\n\t\t\t\t'action' => 'Updated',\n\t\t\t\t'description' => 'Pickup Status Updated',\n\t\t\t\t'details' => $logDetails,\n\t\t\t\t'updated' => true,\n\t\t\t]);\n\t\t\t\n\t\t\t Session::flash('message', 'Order #' . Input::get('row_id') . ' updated');\n\t\t\treturn Redirect::to('order');\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t \n\t\t\tSession::flash('error', $e->getMessage() );\n\t\t\treturn Redirect::to('order');\n\t\t}\n\t\t\n\t\t\n\t}", "public function activeAlerts(){\n $today=Date('Y-m-d');\n $data=array(\n 'status'=>'active'\n );\n $this->db->where('reminderDate <=',$today);\n $this->db->where('status !=','done');\n $this->db->update('regularcost',$data);\n }", "function update_user(){\n\n\t\trequire_once(\"dbconnection.php\");\n\t\t$obj=new dbconnection();\n\t\t$con=$obj->getcon();\n\t\t\n\t\t\n\t\t$dbh=$obj->get_pod();\n\t\t\n\t\t$err=0;\n\n\t\t$act_mode \t= mysqli_real_escape_string($con,$_POST['act_mode']);\n\t\t$u_id \t\t= mysqli_real_escape_string($con,$_POST['u_id']);\n\t\t$txtusername = mysqli_real_escape_string($con,$_POST['txtusername']);\n\t\t$cmbusertype = mysqli_real_escape_string($con,$_POST['cmbusertype']);\n\t\t$txtpassword \t= mysqli_real_escape_string($con,$_POST['txtpassword']);\n\t\t$rdbstatus \t= mysqli_real_escape_string($con,$_POST['rdbstatus']);\n\t\n\t\t\t$sqlget = \"SELECT uname FROM users WHERE uname='$txtusername' AND uID='$u_id' ;\";\n\t\t\t$resultget = mysqli_query($con,$sqlget) or die(\"SQL Error : \".mysqli_error($con));\n\t\t\t$recget= mysqli_fetch_assoc($resultget);\n\t\t\n\t\t\t$getuser = $recget[\"uname\"];\n\t\t\tif($getuser ==$txtusername ){\t\n\t\t\t\t$txtpassword = md5($txtpassword);\n\t\t\t\t$sql = \"UPDATE users SET uname=?, upwd=?, utype=?, ustatus=? WHERE uID=?\";\n\n\t\t\t\t$stmt = $dbh->prepare($sql);\n\t\t\t\t$stmt->execute(array($txtusername, $txtpassword, $cmbusertype, $rdbstatus,$u_id));\n\t\t\t\t\t\n\t\t\t\t\tif(count($stmt)<0){\n\t\t\t\t\t\t \n\t\t\t\t\t\t $status =\"0\";\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\t\t$status =\"2\";\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\techo json_encode($status);\n\t\t\t\t\n\t\t\t\t}\n\t\t\telse{\n\t\t\t\t\t$status =\"3\";\n\t\t\t\t\techo json_encode($status);\n\t\t\t\t}\n\t\t\n\t}", "function update_about_status($about_id,$about_status)\n {\n if($about_status==0)\n {\n $new_stat=\"1\";\n }\n elseif($about_status==1)\n {\n $new_stat=\"0\";\n }\n $query = $this->db->query(\"UPDATE tbl_about SET about_status = '$new_stat' WHERE about_id='$about_id'\");\n //echo $this->db->last_query();\n }", "public function showOld($id)\n {\n // dd(\\Session::has('accepted_success'));\n $booking=DB::table('bookings')->where('id','=',$id)->first();\n // dd($booking);\n $status=$booking->status;\n $room=DB::table('rooms')->where('id','=',$booking->room_id)->first();\n $house=DB::table('houses')->where('id','=',$room->house_id)->first();\n $booking->manager_info = DB::table('managers')\n ->join('users','users.id','=','managers.user_id')\n ->where('managers.id','=',$house->manager_id)\n ->first();\n $user=DB::table('users')->where('id','=',$booking->user_id)->first();\n $image_room = DB::table('image_rooms')\n ->select('image_rooms.image')\n ->where('image_rooms.room_id','=',$booking->room_id)\n ->orderBy('priority')\n ->first();\n if ($image_room == null) {\n $non_image = ['priority'=>'100','id'=>'0','room_id'=>$booking->room_id,'image'=>'room_4.jpeg'];\n $non_image= (object) $non_image;\n $image_room=$non_image;\n }\n $available = DB::table('bookings')\n ->where('bookings.room_id','=',$booking->room_id)\n ->where('bookings.status','=',4)\n ->exists(); // is true if exists some booking is reserved\n // $deadline = DB::table('status_update')->where('booking_id', '=', $booking->id)->orderByDesc('created_at')->first();\n // $deadline = Carbon::parse($deadline->created_at)->addDays(1);\n $count = DB::table('bookings')->where('bookings.user_id','=',$booking->user_id)->count();\n // dd($country);\n\n $messages = DB::table('messages')\n ->where('messages.bookings_id','=',$booking->id)\n ->get();\n $vico_chat=View('bookings.vico_chat_show',[\n 'booking' => $booking,\n 'messages' => $messages,\n 'user'=> $user,\n 'room' => $room,\n 'house' => $house,\n // 'deadline' => $deadline\n\n ])->render();\n\n $whatsappnumberforlink = substr($user->phone, 1);\n\n $user_country = Country::find($user->country_id);\n\n $verification = Verification::firstOrCreate(['user_id' => $user->id],\n [\n 'user_id' => $user->id,\n 'phone_verified' => false,\n 'whatsapp_verified' => false,\n 'document_verified' => false,\n ]\n );\n // dd($user_country);\n return view('bookings.show',[\n 'user_country' => $user_country,\n 'image_room' => $image_room->image,\n 'available' => $available,\n 'count' => $count -1,\n 'booking' => $booking,\n 'room' => $room,\n 'house' => $house,\n 'user' => $user,\n 'whatsappnumberforlink' => $whatsappnumberforlink,\n 'countries' => Country::all('id','name','icon')->sortBy('name'),\n 'houses' => House::all(),\n 'status' => $this->STATUS,\n 'today_date' => Carbon::now()->toDateString(),\n 'today_time' => Carbon::now()->toTimeString(),\n 'messages' => $messages,\n 'vico_chat' => $vico_chat,\n 'verification' => $verification,\n // 'deadline' => $deadline\n\n ]);\n }", "function jx_update_emp_sms_status()\r\n\t{\r\n\t\t$this->erpm->auth();\r\n\t\tif(!$_POST)\r\n\t\t\tdie();\r\n\t\t$status=$this->input->post('status');\r\n\t\t$emp_id=$this->input->post('emp_id');\r\n\t\t$output=array();\r\n\t\t\r\n\t\t$this->db->query(\"update m_employee_info set send_sms=? where employee_id=?\",array($status,$emp_id));\r\n\t\t\r\n\t\tif($this->db->affected_rows())\r\n\t\t{\r\n\t\t\t$output['status']='success';\r\n\t\t\t$output['message']='sms status changed';\r\n\t\t}else{\r\n\t\t\t$output['status']='error';\r\n\t\t\t$output['message']='sms status not changed';\r\n\t\t}\r\n\t\t\r\n\t\techo json_encode($output);\r\n\t}", "function active_blog($id,$status){\n\t\tglobal $bdd;\n\n\t\t$req = $bdd->query(\"UPDATE `utilisateur` SET `status_blog` = '$status' WHERE `id_utilisateur` = $id\");\n\t\t\n\t\t$req->closeCursor();\n\t}", "private function update_status_gasolina($id) \n {\n\n }", "function change_status_to() {\n $stat_param = array(\n 'status' => $this->uri->segment(3)\n );\n $id = $this->uri->segment(4);\n $updt_status = $this->news_letter_model->change_status_to('newsletter', $stat_param, $id);\n if ($updt_status) {\n $this->session->set_userdata('success_msg', 'Status Updated susseccfully.');\n } else {\n $this->session->set_userdata('error_msg', 'Cannot update status.');\n }\n redirect('news_letter_cont');\n }", "public function projectTaskStatusUpdate(){\r\n\t\t//fetch activity feed list\r\n\t\t$post = $this->input->post(null, true);\r\n\t\t$parent_id = $post['pid'];\r\n\t\t$task_id = $post['tid'];\r\n\t\t$status_id = $post['stat'];\r\n\t\t$completed_time = gmdate('Y-m-d H:i:s');\r\n\r\n\t\t//$task = new Task();\r\n\t\t$data = array('status_id' => $status_id, 'completed_date'=>$completed_time);\r\n\t\t$this->db->where(\"parent_id\", $parent_id);\r\n\t\t$this->db->where(\"task_id\", $task_id);\r\n\t\t$this->db->update(\"sc_tasks\", $data);\r\n\r\n\t}", "function update_user_status($id, $pref, $value, $deprecated = \\null)\n {\n }", "public function updateUrgencyStatuses() {\n\n\n $deadlineOverdue = date('Y-m-d H:i:s', strtotime('-' . Configure::read('TICKET.OVERDUE_DAYS') . ' days'));\n $overdueTickets = $this->getPendingTicketsByAge($deadlineOverdue);\n\n foreach ($overdueTickets as $i => $overdueTicket) {\n\n $this->id = $overdueTicket['Ticket']['ticket_id'];\n $overdueTicket['Ticket']['status'] = 'Overdue';\n $this->save($overdueTicket, array('validate' => false, 'modified' => false, 'callbacks' => false));\n }\n\n\n $deadlineUrgend = date('Y-m-d H:i:s', strtotime('-' . Configure::read('TICKET.URGEND_DAYS') . ' days'));\n $urgendTickets = $this->getPendingTicketsByAge($deadlineUrgend, array('New', 'Requested'));\n\n foreach ($urgendTickets as $i => $urgendTicket) {\n\n $this->id = $urgendTicket['Ticket']['ticket_id'];\n $urgendTicket['Ticket']['status'] = 'Urgend';\n $this->save($urgendTicket, array('validate' => false, 'modified' => false, 'callbacks' => false));\n }\n\n }", "function waiting_list_update($mode_edit_case){\r\n\t\t//POST variable here\r\n\t\tif($mode_edit_case=='update_list'){\r\n\t\t\t//UPDATE db.appointment_detail selain status, dan kondisi ini bisa dipastikan status!='datang'\r\n\t\t\t$wl_id=trim(@$_POST[\"wl_id\"]);\r\n\t\t\t$wl_date=trim(@$_POST[\"wl_date\"]);\r\n\t\t\t$wl_keterangan=trim(@$_POST[\"wl_keterangan\"]);\r\n\t\t\t$wl_keterangan=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$wl_keterangan);\r\n\t\t\t$wl_keterangan=str_replace(\"'\", \"&#39\",$wl_keterangan);\r\n\t\t\t$wl_status=trim(@$_POST[\"wl_status\"]);\r\n\t\t\t$wl_status=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$wl_status);\r\n\t\t\t\r\n\t\t\t$wl_user=$_SESSION[SESSION_USERID];\r\n\t\t\t\r\n\t\t\t$result = $this->m_waiting_list->waiting_list_update_list($wl_id\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t,$wl_date\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t,$wl_keterangan\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t,$wl_status\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t,$wl_user);\r\n\t\t\techo $result;\r\n\t\t\t\r\n\t\t}else if($mode_edit_case=='update_list_status'){\r\n\t\t\t$dapp_id=trim(@$_POST[\"dapp_id\"]);\r\n\t\t\t$dapp_status=trim(@$_POST[\"dapp_status\"]);\r\n\t\t\t$dapp_status=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$dapp_status);\r\n\t\t\t\r\n\t\t\t$app_user=$_SESSION[SESSION_USERID];\r\n\t\t\t\r\n\t\t\t$result = $this->m_waiting_list->waiting_list_update_list_status($dapp_id, $dapp_status, $app_user);\r\n\t\t\techo $result;\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t$wl_id=trim(@$_POST[\"wl_id\"]);\r\n\t\t\t$wl_customer=trim(@$_POST[\"wl_customer\"]);\r\n\t\t\t$karyawan_id=trim(@$_POST[\"karyawan_id\"]);\r\n\t\t\t$rawat_id=trim(@$_POST[\"rawat_id\"]);\r\n\t\t\t$wl_tanggal=trim(@$_POST[\"wl_tanggal\"]);\r\n\t\t\t$wl_keterangan=trim(@$_POST[\"wl_keterangan\"]);\r\n\t\t\t$wl_keterangan=str_replace(\"/(<\\/?)(p)([^>]*>)\", \"\",$wl_keterangan);\r\n\t\t\t$wl_keterangan=str_replace(\"'\", \"''\",$wl_keterangan);\r\n\t\t\t\r\n\t\t\t$wl_user=$_SESSION[SESSION_USERID];\r\n\t\t\t\r\n\t\t\t$result = $this->m_waiting_list->waiting_list_update($wl_id\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ,$wl_customer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ,$karyawan_id\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ,$rawat_id\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ,$wl_tanggal\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ,$wl_keterangan\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ,$wl_user);\r\n\t\t\techo $result;\r\n\t\t}\r\n\t}", "function __update_statd($pmdid, $arr) {\n //return $this -> db -> update('pembayaran_detail_tab', $arr);\nreturn $this -> db-> query(\"update pembayaran_detail_tab set pstatus='3' where pmdid='$pmdid'\");\t\t\n\t\t\n\t}", "function update_organiser_status(){\r\n\t\t$this->organiser_model->update_organiser_status($_POST['status'],$_POST['organiser_id']);\r\n\t\t$this->send_status_email($_POST['status'],$_POST['organiser_id']);\r\n\t\techo \"1\";exit;\r\n\t}", "function Update(){\r\n $query = \"UPDATE userschedules\r\n SET branchId = $this->branchId, \r\n locationCode = '$this->locationCode',\r\n date = '$this->date',\r\n startingTime = '$this->startingTime',\r\n finishingTime = '$this->finishingTime',\r\n status = '$this->status'\r\n WHERE referenceId = $this->referenceId\r\n AND organizationId = $this->organizationId\";\r\n include(\"includes/dbConnection.php\");\t\t\t\r\n $executeQuery = $db->prepare($query);\r\n $executeQuery->execute() or exit(\"Error: UPDATE query failed.\");\r\n }", "function changeStatusEquipments($post,$deviceType,$appVersion,$OSVersion,$browserVersion){\n\n $con=connectToDB(); //connect to the DB\n mysql_query('SET NAMES UTF8');\t\t\n $StatusID=$post['StatusID'];\n\t$EquipmentID=$post['EquipmentID'];\n\t\n\t\n\t $errorMsg=\"Error in updation\";\n\t\t$result2 = mysql_query(\"SELECT * FROM SCP_Equipments_Staff WHERE EquipmentID='\".$EquipmentID.\"'\")or die(mysql_error());\n\t\t$num_rows = mysql_num_rows($result2);\n\t\t\n\t\t\n\t\tif($num_rows>0){\n\t\t $result = '';\n\t\t $errorMsg = 'Sorry, you do not deactivate this Equipment, it is already assigned to some staff.';\n\t\t}else{\n\t\t \t$sql2=\"UPDATE `SCP_Equipments` SET `StatusID` = '\".$StatusID.\"' WHERE `EquipmentID` = '\".$EquipmentID.\"'\";\t \n $result = mysql_query($sql2) or die(mysql_error());\n\t\t}\n\t\t\t\n if($result) {\n $data['responseData'] = '';\n $data['message'] = \"Updated successfully\";\n $data['responseCode'] = \"200\";\n $data['status'] = \"1\";\n } else {\n $data['responseData'] = '';\n $data['message'] = $errorMsg;\n $data['responseCode'] = \"200\";\n $data['status'] = \"0\";\n }\n print json_encode($data);\n mysql_close($con); //close the connection\n}", "function updateVCRReclinkStatus($id, $status) {\nglobal $app, $debug, $jconf, $myjobid;\n\n\tif ( empty($status) ) return false;\n\n\t$values = array(\n\t\t'status' => $status\n\t);\n\n $converterNodeObj = $app->bootstrap->getModel('recording_links');\n $converterNodeObj->select($id);\n $converterNodeObj->updateRow($values);\n \n\t// Log status change\n\t$debug->log($jconf['log_dir'], $myjobid . \".log\", \"[INFO] Recording link id#\" . $id . \" status changed to '\" . $status . \"'.\", $sendmail = false);\n\n\treturn true;\n}", "public function updateStaffDetailActive($id)\n {\n $userdb = User::find($id);\n if($userdb->active == '0'){\n $userdb->active = '1';\n }else{\n $userdb->active = '0';\n }\n $userdb->save();\n// return redirect('/staffDetail');\n }", "function update_passenger_record($book_id, $sindex, $status) {\r\n\t\t$cond ['app_reference'] = $book_id;\r\n\t\t$cond ['segment_indicator'] = $sindex;\r\n\t\t\r\n\t\t$data ['status'] = $status;\r\n\t\t$CI = & get_instance ();\r\n\t\t\r\n\t\t$CI->custom_db->update_record ( 'flight_booking_passenger_details', $data, $cond );\r\n\t}", "public function employee_form_status()\n {\n $this->common_model->checkAdminUserPermission(9);\n if ($this->session->userdata('admin_id'))\n {\n $id = $_GET['id'];\n $status = $_GET['status'];\n\n $updateData = ['status' => $status];\n\n $this->db->where('id', $id);\n $this->db->update('tbl_yourself', $updateData);\n\n redirect(base_url() . \"employee_form\");\n }\n else\n {\n redirect(base_url() . \"admin\");\n }\n }", "function updateState(){\r\n $conn= databaseConnection();\r\n $state=\"\";\r\n $sql = \"SELECT Status FROM tblOnlineForStaff WHERE OnlineID=1 ;\";\r\n $result = mysqli_query($conn, $sql);\r\n if (mysqli_num_rows($result) > 0) {\r\n // output data of each row\r\n while($row = mysqli_fetch_assoc($result)) {\r\n $state= $row [\"Status\"];\r\n }\r\n }\r\n if ($state==\"Offline\" ) $state=\"Online\";\r\n else if ($state==\"Online\" ) $state=\"Offline\";\r\n $updateSql = \"UPDATE tblOnlineForStaff SET Status = '$state' WHERE OnlineID=1 ;\";\r\n if ($conn->query($updateSql) !== TRUE) echo \"-Error: \" . $conn->error;\r\n mysqli_close($conn);\r\n }", "function update_template_statuss(){ \n\t\t$user_id = $this->input->post('user__id');\n\t\t$id = $this->input->post('temp_id');\n\t\t $status = $this->input->post('status');\n\t\t echo $this->InteractModal->add_user_meta( $user_id, 'status_template_id_'.$id , $status);\t\t\n\t}", "public function lead_status_update($data, $l_t_id)\n {\n if($query = $this->db->query(\"call lead_status_update(\n\n '\".$data['lead_status'].\"',\n '\".$data['m_on'].\"',\n '\".$data['m_by'].\"',\n '\".$l_t_id.\"'\n \n )\"))\n { \n save_query_in_log();\n return true;\n }else{ return false; }\n }", "function mentioned_notification_seen($uid, $pid) {\n try {\n $db = \\Db::dbc();\n\n $sql=\"UPDATE MENTIONNER SET LUMENT = CURRENT_TIMESTAMP WHERE IDUSER=:uid AND IDTWEET=:pid;\";\n $stmt=$db->prepare($sql);\n $stmt->execute(array(\n \t':uid'=>$uid,\n ':pid'=>$pid\n ));\n } catch (\\PDOException $e) {\n\t\techo $e->getMessage();\n\t}\n\t$db=NULL;\n}", "function change_koupon_status_active($kpnid){\n$strSQL1 = \"SELECT * FROM kpn_deal_headers where kpn_id='$kpnid'\";\n$koupons_status = mysql_query($strSQL1);\n\twhile($koupon_status = mysql_fetch_array($koupons_status)){\n\t\t\tmysql_query(\"UPDATE kpn_deal_headers SET status='Active' WHERE kpn_id='$kpnid'\");\n\t}\n}", "function update_cron_job_status($jobId, $status, $userId)\n\t{\n\t\tlog_message('debug', '_setting/update_cron_job_status');\n\t\tlog_message('debug', '_setting/update_cron_job_status:: [1] jobId='.$jobId.' status='.$status.' userId='.$userId);\n\n\t\t$response = server_curl(CRON_SERVER_URL, array('__action'=>'run', 'query'=>'update_cron_job_status', 'variables'=>array(\n\t\t\t\t'job_id'=>$jobId,\n\t\t\t\t'is_done'=>($status == 'active'? 'N': 'Y'),\n\t\t\t\t'user_id'=>$userId\n\t\t\t) ));\n\t\tlog_message('debug', '_setting/cron_jobs:: [2] response='.json_encode($response));\n\n\t\treturn array('success'=>((!empty($response['result']) && $response['result'] == 'SUCCESS')? 'TRUE': 'FALSE'));\n\t}", "function update_log_status(){\t\t\n\t\t$field_name = $this->input->post('field_name');\n\t\t$url_value = $this->input->post('url_value');\n\t\t$current_url = $this->input->post('current_url');\n\t\t$status_update = $this->input->post('status_update');\n\t\t$status_task_id = $this->input->post('status_task_id');\n\t\t$agent_name = $this->input->post('agent_name');\n\t\t$contact_number = $this->input->post('contact_number');\t\n\t\t//$email_id = $this->input->post('email_id');\t\n\t\t$link = $this->input->post('link');\n\t\t$date_value = $this->input->post('date_value');\n\t\t$time_value = $this->input->post('time_value');\n\t\t$property_address = $this->input->post('property_address');\n\t\t$broker_id = $this->input->post('broker_id');\t\n\t\t$response = $this->InteractModal->signature_user_email($broker_id);\n\t\t$email_broker = $response[0]['user_email'];\n\t\t$concerned_person = $this->InteractModal->get_user_meta($broker_id,'concerned_person');\n\t\t$phone = $this->InteractModal->get_user_meta($broker_id,'phone_number');\n\t\t$data = array(\n\t\t\t'status'=>$status_update,\n\t\t\t);\n\t\t$query = $this->InteractModal->update_task_details($data,$status_task_id );\n\t\tif(!empty($query)){\n\t\t\t$query = $this->InteractModal->get_showing_log($status_task_id );\n\t\t\tif(!empty($query)){\n\t\t\t\tforeach($query as $queries){\n\t\t\t\t\t$status = $queries['status'];\n\t\t\t\t\tif($status == 'complete'){\n\t\t\t\t\t\t$email_content = 'Hi, Please click on this link to provide the feedback for the showing, <br /> <a href=\"'. $link .'\">Click here</a>'; \n\t\t\t\t\t\t$email = '[email protected]';\n\t\t\t\t\t\t$subject = 'Please provide feedback for our recent showing';\n\t\t\t\t\t\t$msg = 'Hi,<br /><br />We would really appreciate your feedback, please tell us what you thought about your recent showing at \"'. $property_address .'\" on \"'. $time_value .'\". <br /><a href=\"'. $link .'\">Please click here to submit your feedback </a> <br /><br /> Thank you,<br /> <br /> '. $concerned_person .' <br /> '. $phone .' <br /> '. $email_broker .'';\n\t\t\t\t\t\t$config = array(\n\t\t\t\t\t\t'smtp_user' => '[email protected]',\n\t\t\t\t\t\t'mailtype' => 'html',\n\t\t\t\t\t\t'charset' => 'utf-8',\n\t\t\t\t\t\t'starttls' => true,\n\t\t\t\t\t\t'newline' => \"\\r\\n\",\n\t\t\t\t\t\t);\n\t\t\t\t\t\t$this->load->library('email', $config);\n\t\t\t\t\t\t$this->email->from('[email protected]', 'InteractRE');\n\t\t\t\t\t\t$this->email->set_header('InteractRE', 'Interact Notifications');\n\t\t\t\t\t\t$this->email->to( $email );\n\t\t\t\t\t\t$this->email->subject( $subject );\n\t\t\t\t\t\t$this->email->message( $msg ); \n\t\t\t\t\t\t$response = $this->email->send();\t\t\t\t\t\n\t\t\t\t\t\tif( $response ){\n\t\t\t\t\t\t\tredirect( $current_url);\n\t\t\t\t\t\t\t/* if($field_name == 'showing_log'){\n\t\t\t\t\t\t\tredirect( base_url( 'Interact/dashboard/'));}else{\n\t\t\t\t\t\t\t\t\tredirect( base_url( 'Interact/all_showing_log/'));\n\t\t\t\t\t\t\t} */\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\techo'Unable to send feedback link at this time. Please try again';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telseif($status == 'cancelled'){\n\t\t\t\t\t\t$data = array(\n\t\t\t\t\t\t'status'=>$status_update,\n\t\t\t\t\t\t);\n\t\t\t\t\t$query = $this->InteractModal->update_task_details($data,$status_task_id );\n\t\t\t\t\t\tif(!empty($query)){\n\t\t\t\t\t\t\tredirect( $current_url);\n\t\t\t\t\t\t\t/* if($field_name == 'showing_log'){\n\t\t\t\t\t\t\t\tredirect( base_url( 'Interact/dashboard/'));}else{\n\t\t\t\t\t\t\t\tredirect( base_url( 'Interact/all_showing_log/'));\n\t\t\t\t\t\t\t} */\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tredirect( $current_url);\n\t\t\t/* if($field_name == 'showing_log'){\n\t\t\t\tredirect( base_url( 'Interact/dashboard/'));}else{\n\t\t\t\t\tredirect( base_url( 'Interact/all_showing_log/'));\n\t\t\t\t} */\n\t\t\t} \n\t\t}", "public function active_userstatus($id)\n {\n \n $query = new Query;\n\n $result = $query->createCommand()->update('core_users', ['user_status' => '2'], 'user_id = \"'.$id.'\"')->execute();\n\n if ($result == 1){\n return \"SUCCESS\";\n }else{\n return \"FAILED\";\n }\n }", "function changeStatusChecks($post,$deviceType,$appVersion,$OSVersion,$browserVersion){\n\n $con=connectToDB(); //connect to the DB\n mysql_query('SET NAMES UTF8');\t\t\n $StatusID=$post['StatusID'];\n\t$ChecksID=$post['ChecksID'];\n\t\n\t\n\t $errorMsg=\"Error in updation\";\n\t\t$result2 = mysql_query(\"SELECT * FROM SCP_Checks_Staff WHERE ChecksID='\".$ChecksID.\"'\")or die(mysql_error());\n\t\t$num_rows = mysql_num_rows($result2);\n\t\t\n\t\t\n\t\tif($num_rows>0){\n\t\t $result = '';\n\t\t $errorMsg = 'Sorry, you do not deactivate this Check, it is already assigned to some staff.';\n\t\t}else{\n\t\t \t$sql2=\"UPDATE `SCP_Checks` SET `StatusID` = '\".$StatusID.\"' WHERE `ChecksID` = '\".$ChecksID.\"'\";\t \n $result = mysql_query($sql2) or die(mysql_error());\n\t\t}\n\t\t\t\n if($result) {\n $data['responseData'] = '';\n $data['message'] = \"Updated successfully\";\n $data['responseCode'] = \"200\";\n $data['status'] = \"1\";\n } else {\n $data['responseData'] = '';\n $data['message'] = $errorMsg;\n $data['responseCode'] = \"200\";\n $data['status'] = \"0\";\n }\n print json_encode($data);\n mysql_close($con); //close the connection\n}", "public function changestatus_post()\r\n {\r\n $userid=$this->uri->segment(3);\r\n\r\n $user=$this->user_m->get($userid);\r\n if($user->status==\"1\"){\r\n $data=array(\r\n \"status\"=> \"0\"\r\n );\r\n }\r\n else{\r\n $data=array(\r\n \"status\"=> \"1\"\r\n ); \r\n }\r\n if ($succes_status = $this->user_m->update_data($userid,$data)){\r\n if($user->status==\"1\"){\r\n $this->response(\r\n array(\r\n 'Status_code' => \"201\",\r\n 'Message' => \"User Deactivated\"\r\n )\r\n );\r\n }\r\n else{\r\n $this->response(\r\n array(\r\n 'Status_code' => \"201\",\r\n 'Message' => \"User Activated\"\r\n )\r\n ); \r\n }\r\n }\r\n else\r\n {\r\n $this->response(\r\n array(\r\n 'Status_code' => \"401\",\r\n 'Message' => \"ops something went wrong\"\r\n )\r\n ); \r\n }\r\n }", "function update_plp_details_by_user($post) {\n $last_tgram_id = $this->mdl_common->save_tgram_by_user($post);\n if ($last_tgram_id) {\n $post['tgrmid'] = $last_tgram_id;\n }\n $this->mdl_common->save_pm_by_user($post);\n $update_data = array(\n 'tgrmid' => $post['tgrmid'],\n 'tgram_id' => $post['tgram_id'],\n 'account_name' => $post['account_name'],\n 'cid' => $post['cid'],\n 'error_details_plp' => $post['error_details_plp'],\n 'received_date' => $post['received_date'],\n 'account_type_id' => $post['account_type_id'],\n 'pm_id' => $post['pm_id'],\n 'billing_hour' => $post['billing_hour'],\n 'total_hour' => $post['billing_hour'],\n 'actual_hour' => $post['billing_hour'],\n 'comments' => $post['comments'],\n 'user_id' => $post['user_id'],\n 'submit_time' => date(\"Y-m-d G:i:s\", time())\n );\n \n $this->db->where('id', $post['plp_id']);\n $this->db->update('tbl_plp', $update_data);\n\n return 1;\n }", "function _update ($params = array()) {\n\t\tif (!$this->STATS_ENABLED) {\n\t\t\treturn false;\n\t\t}\n\t\treturn $this->_update_user_stats ($params[\"user_id\"], (array)$params[\"user_info\"]);\n\t}", "public function updateClassMonitorStatus($data)\n {\n // update monitoring_id and is_monitored sa classes table\n $class_id = $data['class_id'];\n $faculty_id = $data['faculty_id'];\n $room_id = $data['room_id'];\n\n\n $sql = \"UPDATE users SET is_monitored=:is_monitored WHERE id=:user_id\";\n $stmt = $this->conn->prepare($sql);\n $run = $stmt->execute([\n 'is_monitored' => 1,\n 'user_id' => $faculty_id,\n ]);\n if ($run) {\n $sql = \"UPDATE classes SET monitoring_id=:monitoring_id, is_monitored=:is_monitored WHERE id=:class_id\";\n $stmt = $this->conn->prepare($sql);\n $updated = $stmt->execute([\n 'monitoring_id' => $_SESSION['id'],\n 'is_monitored' => 1,\n 'class_id' => $class_id,\n ]);\n if ($updated) {\n redirect(\"monitoring_class_detail.php?class_id=$class_id&user_id=$faculty_id&room_id=$room_id\");\n }\n }\n }", "function status_call_function()\r\n{\r\n $status =$_POST['status'];\r\n $id =$_POST['userid'];\r\n global $wpdb;\r\n if($status == 0)\r\n $wpdb->query(\"UPDATE wp_members SET status = 1 WHERE id = $id\");\r\n else\r\n $wpdb->query(\"UPDATE wp_members SET status = 0 WHERE id = $id\");\r\n wp_die();\r\n}", "public static function changeStatus($params)\n {\n $status = $params['status'] == 'offline' ? '0' : '1';\n $q = Doctrine_Query::create()->update('EmailLightBox')\n ->set('status', $status)\n ->where('id=?', $params['id'])\n ->execute();\n }", "function updateBossRoomData($item, $isClear = false)\n {\n $bossId = $item->boss_id;\n $reqRoomInfo = json_decode($item->room_info);\n if ($bossId == 0) return array();\n $this->db->select(\"*\");\n $this->db->from('room_updated');\n $this->db->where('boss_id', $bossId);\n $this->db->where('info_type', $item->info_type);\n $this->db->where('active_date', $item->active_date);\n $result = $this->db->get()->row();\n if (count($result) == 0) {\n if (!$isClear && count($reqRoomInfo) > 0) {\n $this->db->insert('room_updated', $item);\n $result = $this->db->insert_id();\n }\n } else {\n if ($isClear) {\n $dbRoomInfo = json_decode($result->room_info);\n $targetRoomInfo = array();\n foreach ($dbRoomInfo as $dbRoom) {\n $isExist = false;\n if (count($reqRoomInfo) > 0) {\n foreach ($reqRoomInfo as $reqRoom) {\n if ($dbRoom->room_id != $reqRoom->room_id) continue;\n if ($dbRoom->start_time != $reqRoom->start_time) continue;\n if ($dbRoom->end_time != $reqRoom->end_time) continue;\n $isExist = true;\n break;\n }\n }\n if ($isExist) continue;\n array_push($targetRoomInfo, $dbRoom);\n }\n } else {\n $dbRoomInfo = json_decode($result->room_info);\n if (count($reqRoomInfo) > 0) {\n foreach ($reqRoomInfo as $reqRoom) {\n array_push($dbRoomInfo, $reqRoom);\n }\n }\n $targetRoomInfo = $dbRoomInfo;\n }\n if (count($targetRoomInfo) > 0) {\n $item->room_info = json_encode($targetRoomInfo);\n $this->db->set($item);\n $this->db->where('boss_id', $item->boss_id);\n $this->db->where('info_type', $item->info_type);\n $this->db->where('active_date', $item->active_date);\n $this->db->update('room_updated');\n } else {\n $this->db->where('boss_id', $item->boss_id);\n $this->db->where('info_type', $item->info_type);\n $this->db->where('active_date', $item->active_date);\n $this->db->delete('room_updated');\n }\n $result = $result->id;\n }\n\n return $result;\n }" ]
[ "0.6710224", "0.6464089", "0.60707635", "0.60121477", "0.6002458", "0.599619", "0.5962396", "0.5917518", "0.59131336", "0.5853849", "0.5806405", "0.5791246", "0.578557", "0.57854795", "0.5757012", "0.5755382", "0.5747321", "0.57198405", "0.57089204", "0.5702322", "0.56964374", "0.5690623", "0.56885976", "0.5677599", "0.56677955", "0.5666611", "0.56643784", "0.56534207", "0.5652879", "0.5650156", "0.5620317", "0.5614048", "0.56040496", "0.5584966", "0.5584962", "0.5579746", "0.55763656", "0.55701375", "0.5568084", "0.55648196", "0.55624527", "0.5544639", "0.55436254", "0.5536808", "0.5524313", "0.5521709", "0.551719", "0.5512797", "0.5511304", "0.5508693", "0.5505654", "0.5503252", "0.54858935", "0.548186", "0.5473329", "0.5470416", "0.5456842", "0.54528373", "0.54492897", "0.54444224", "0.5443515", "0.54373604", "0.5435194", "0.5432237", "0.54282606", "0.5427004", "0.5425779", "0.5419462", "0.54190165", "0.54177314", "0.54136086", "0.54057676", "0.53979254", "0.539365", "0.5392836", "0.5389384", "0.5387056", "0.5384644", "0.53842515", "0.53815013", "0.53758997", "0.53743297", "0.53733134", "0.5372217", "0.5365235", "0.53612137", "0.5356243", "0.5355015", "0.53508", "0.53506774", "0.5349886", "0.5347558", "0.534524", "0.53417534", "0.5336681", "0.5335285", "0.5331819", "0.53312343", "0.53270596", "0.53190184" ]
0.6790034
0
top funs > gift reciver
function get_topfans() { require_once("config.php"); $input = @file_get_contents("php://input"); $event_json = json_decode($input,true); //print_r($event_json); die; if(isset($event_json['fb_id'])) { $fb_id=htmlspecialchars(strip_tags($event_json['fb_id'] , ENT_QUOTES)); // $query2=mysqli_query($conn,"select *,sum(diamonds) as topdiamonds from view_top_fan as vtf where vtf.reciever_id='".$fb_id."' group by sender_id order by sum(diamonds) DESC limit 1")or die(mysqli_error()); $sql="SELECT SUM(UBH.ubh_gift_total_diamond) as total FROM `user_baggage_history` AS UBH JOIN users as U ON U.fb_id=UBH.ubh_fb_id WHERE UBH.ubh_fb_id='".$fb_id."' "; $total=mysqli_fetch_assoc(mysqli_query($conn,$sql))['total'];//or die(mysqli_error($conn)); if(!$total){ $total=0; } $sql="SELECT UBH.ubh_sender_fb_id as reciever_id , SUM(UBH.ubh_gift_total_diamond) as topdiamonds FROM `user_baggage_history` AS UBH JOIN users as U ON U.fb_id=UBH.ubh_fb_id WHERE UBH.ubh_fb_id='".$fb_id."' GROUP BY UBH.ubh_sender_fb_id order BY topdiamonds DESC"; $query=mysqli_query($conn,$sql)or die(mysqli_error($conn)); $array_out = array(); while($srow=mysqli_fetch_assoc($query)) { //print_r($srow); $row=array(); $sender_id=$srow['reciever_id']; $sql="SELECT * FROM users where `fb_id`='$sender_id'"; $query2=mysqli_query($conn,$sql); $row=mysqli_fetch_assoc($query2); $row['reciever_id']=$srow['reciever_id']; $row['topdiamonds']=$srow['topdiamonds']; $selected_value_explde_array=explode(',',$row['user_wear_badge']); $row['follow_Status']=get_follow_users_status($row['fb_id'], $fb_id); $row['vip_details']=get_user_vip_status($row['fb_id']); $row['user_level']=get_user_level($row['fb_id']); $row['user_live_level']=get_user_live_level($row['fb_id']); $row['user_total_send_diamond']=get_user_total_send_diamond($row['fb_id']); $row['user_total_received_diamond']=get_user_total_received_diamond($row['fb_id']); $row['user_followers']=get_user_followers_count($row['fb_id']); $row['user_following']=get_user_following_count($row['fb_id']); $row['user_hearts']=get_user_hearts_count($row['fb_id']); $row['user_post']=get_user_post_count($row['fb_id']); $guardian_shield=get_guardian_shields($row['fb_id']); if($guardian_shield){ $row['guardian_shields_status']="1"; $row['guardian_shields_details']=$guardian_shield; } $row['is_user_on_live_room']="0"; $row['user_on_live_room_data']=""; $is_user_on_live_room=get_user_on_hoster_live_room($row['fb_id']); if($is_user_on_live_room){ $row['is_user_on_live_room']="1"; $row['user_on_live_room_data']=$is_user_on_live_room; } $row['vip_details_icon'] =get_user_vip_status_icon($row['fb_id']); $row['user_level_icon']= get_user_level_icon($row['fb_id']); $row['user_family_level_icon']= get_user_family_level_icon($row['fb_id']); // $sresult = array_merge($srow,$row); array_push($array_out,$row ); // $array_out[]=$sresult; // $array_out[] =$row; /* array( "sender_id" => $row['sender_id'], "reciever_id" =>$row['reciever_id'], "diamonds" =>$row['topdiamonds'], "reciever_name" =>$row['sender_name'], "reciever_vip_status" =>$row['sender_vip_status'], "reciever_profile_pic" =>$row['sender_profile_pic'], "follow_Status" =>array ( "follow" => $follow, "follow_status_button" => $follow_button_status ) ); */ } $output=array( "code" => "200", "data" => array( 'total'=>$total, 'list' => $array_out)); print_r(json_encode($output, true)); } else { $array_out = array(); $array_out[] = array( "response" =>"Json Parem are missing"); $output=array( "code" => "201", "data" => $array_out); print_r(json_encode($output, true)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function top();", "function getToplist($limit=false, $extended=false) {\n static $toplist;\n $challenges = challenges();\n if (!$toplist) {\n $top = array();\n $lists = array();\n $info = array();\n foreach ($challenges as $challenge_id => $data) {\n if ($data['type'] == 'private' && isChallengeOpen($challenge_id)) {\n $lists[] = getChallToplist($challenge_id, false);\n }\n }\n foreach ($lists as $list) {\n if (!$list) {\n continue;\n }\n foreach ($list as $data) {\n if (array_key_exists($data['userid'], $top)) {\n $top[$data['userid']] += $data['points'];\n } else {\n $top[$data['userid']] = $data['points'];\n $info[$data['userid']] = array('username' => $data['username'], 'country' => $data['country']);\n }\n }\n }\n arsort($top);\n foreach ($top as $userid => $points) {\n unset($top[$userid]);\n $tmp['username'] = $info[$userid]['username'];\n $tmp['country'] = $info[$userid]['country'];\n $tmp['userid'] = $userid;\n $tmp['points'] = $points;\n if ($extended) {\n $tmp['total'] = count(getUserChalls($userid));\n }\n $newTop[] = $tmp;\n }\n $top = $newTop;\n $toplist = $top;\n } else {\n $top = $toplist;\n }\n if ($limit) {\n $top = array_slice($top,0,$limit,true);\n }\n return $top;\n}", "public function getTop();", "function top_matches($prefs, $p, $dist){\r\n\t//get the top rated books only\r\n\t$topBooks = array();\r\n\tforeach($prefs[$p] as $k => $v){\r\n\t\tif ($v > RATING_MIN){\r\n\t\t\t//add the code to increase the rating if there is a similarity between the users\r\n\t\t\t//checking if the distance is greater that SOMEthING, then bumping up the rating\r\n\t\t\tif ($dist > SIM_NUM){\r\n\t\t\t\t$v += $v*$dist;\t\t\r\n\t\t\t}\r\n\t\t\t$topBooks[$k] = $v;\r\n\t\t}\r\n\t}\r\n\tarsort($topBooks);\r\n\t//print_r($topBooks);\r\n\treturn $topBooks;\r\n}", "function retrieve_top_profile_visitors(){\n\t\t\n\t\t$this->CI->load->model('model_users_promoters', 'users_promoters', true);\n\t\treturn $this->CI->users_promoters->retrieve_top_profile_visitors($this->promoter->pt_id);\n\t\t\n\t}", "function getTopGoTerms($ref_gf_id, $n_max) {\n $top_gos = array(\"BP\"=>array(), \"MF\"=>array(), \"CC\"=>array());\n $query\t\t= \"SELECT gf_fd.`name`, fd.`desc`, fd.`info` FROM `gf_functional_data` gf_fd, `functional_data` fd WHERE gf_fd.`gf_id`='\" . $ref_gf_id . \"' AND gf_fd.`type`='go' AND gf_fd.`is_hidden`='0' AND fd.`name`=gf_fd.`name` ORDER BY gf_fd.`f_score` DESC\";\n $res\t\t= $this->query($query);\n foreach($res as $r) {\n $go_aspect = $r['fd']['info'];\n $go_name = $r['gf_fd']['name'];\n $go_desc = $r['fd']['desc'];\n if(count($top_gos[$go_aspect]) < $n_max){\n $top_gos[$go_aspect][] = array(\"name\"=>$go_name, \"desc\"=>$go_desc);\n }\n }\n $top_gos = array_filter($top_gos);\n return $top_gos;\n }", "public function top()\n {\n }", "function tpps_details_top_callback() {\n print(tpps_details_top());\n}", "function _topNode () {\r\n $args = func_get_args ();\r\n if (!count ($args)) {\r\n return; // oops?\r\n }\r\n $method = array_shift ($args);\r\n $stack_count = count ($this->_stack);\r\n $method = array (&$this->_stack[$stack_count-1], $method);\r\n if (!is_callable ($method)) {\r\n return; // oops?\r\n }\r\n return call_user_func_array ($method, $args);\r\n }", "private function top() {\n\t\t\t$many = empty($this->params[1]) ? 5 : (int) $this->params[1];\n\t\t\t$tops = pdm::top( $many );\n\t\t\t$message = \"\";\n\t\t\t$i = 1;\n\t\t\tforeach($tops as $user_id => $count) {\n\t\t\t\t$name = user::name($user_id);\n\t\t\t\t$icon = numberize($i);\n\t\t\t\t$message .= $icon .' '. $name['name'].' with *'.$count.\" minutes*.\\n\";\n\t\t\t\t$i++;\n\t\t\t}\n \treturn slack::sendNotification($message);\n\t\t}", "function getTopIprTerms($ref_gf_id, $n_max) {\n $top_iprs = [];\n $query\t\t= \"SELECT gf_fd.`name`, fd.`desc` FROM `gf_functional_data` gf_fd, `functional_data` fd WHERE gf_fd.`gf_id`='\" . $ref_gf_id . \"' AND gf_fd.`type`='interpro' AND gf_fd.`is_hidden`='0' AND fd.`name`=gf_fd.`name` ORDER BY gf_fd.`f_score` DESC\";\n $res\t\t= $this->query($query);\n foreach($res as $r) {\n $ipr_name = $r['gf_fd']['name'];\n $ipr_desc = $r['fd']['desc'];\n if(count($top_iprs) < $n_max){\n $top_iprs[] = array(\"name\"=>$ipr_name, \"desc\"=>$ipr_desc);\n }\n }\n return $top_iprs;\n }", "public function topFiltered(string $flag): ResponseInterface;", "public function top(): ResponseInterface;", "public function topAction();", "public function revealTopCard(): int;", "public function get_top($args) {\n $payload = [];\n if (isset($args['q'])) $payload = $this->queries->get_query($args['q'], $payload);\n if (isset($args['sources'])) $payload = $this->queries->get_sources($args['sources'], $payload);\n if (isset($args['language'])) $payload = $this->queries->get_language($args['language'], $payload);\n if (isset($args['country'])) $payload = $this->queries->get_country($args['country'], $payload);\n if (isset($args['pageSize'])) $payload = $this->queries->get_page_size($args['pageSize'], $payload);\n if (isset($args['page'])) $payload = $this->queries->get_page_count($args['page'], $payload);\n return $this->queries->connect($this->queries->constants->urls['top'], $payload, $this->api_key);\n }", "public function top($top=10) {\n return $this->limit($top, 0);\n }", "public function toplist()\n {\n $listfac = Pago::join('factura_cab', 'factura_cab.numfac', '=', 'pagos.numfac')\n ->join('entidades','entidades.COD_ENT','=','factura_cab.cod_ent')\n ->select('factura_cab.numfac as numfac','fecfac', 'fecpago','NOM_ENT','valpago','estfac')\n ->orderBy('numfac', 'desc')\n ->take(5)\n ->get();\n\n return $listfac; \n }", "public function actionGettop()\n\t{\n\t\t$cur_date = Date('Y-m-d');\n\t\t$flag_ex = 0;\n\n// Check existing top for current date\n\n\t\tif (($model=Top::model()->find('rating_date=:rating_date', array(':rating_date' => $cur_date)))===null) // if rating is not exist\n\t\t{\n\t\t\t$flag_ex =1;\n\t\t}\n\n\n\t\t\t$data = Yii::app()->imdbs->chart_top();\n\n\n\t\t\tif(isset($data[0]))\n\t\t\t{\n\t\t\t\tfor($i = 0;$i < 20; $i++)\n\t\t\t\t{\n\t\t\t\t\tif (($model=Movies::model()->find('tconst=:tconst', array(':tconst' => $data[$i]->tconst)))===null)\n\t\t\t\t\t{\n\t\t\t\t\t\t$model = new Movies;\n\t\t\t\t\t\t$model->tconst = $data[$i]->tconst;\n\t\t\t\t\t\t$model->title = $data[$i]->title;\n\t\t\t\t\t\t$model->year = $data[$i]->year;\n\t\t\t\t\t\t$model->save();\n\t\t\t\t\t\t$movie_id = $model->id;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$movie_id = $model->id;\n\t\t\t\t\t}\n\n\t\t\t\t\tif($flag_ex > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$rat = new Top;\n\t\t\t\t\t\t$rat->rating_date = $cur_date;\n\t\t\t\t\t\t$rat->order_id = $i+1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$rat=Top::model()->findByAttributes(array('order_id'=>$i+1,'rating_date'=>$cur_date));\n\t\t\t\t\t}\n\n\t\t\t\t\t$rat->movie_id = $movie_id;\n\t\t\t\t\t$rat->reting = $data[$i]->rating;\n\t\t\t\t\t$rat->num_votes = $data[$i]->num_votes;\n\t\t\t\t\t$rat->updated = date(\"Y-m-d H:i:s\");\n\t\t\t\t\t$rat->save();\n\t\t\t\t}\n\t\t\t}\n\n\t}", "public function getTopTags(): array;", "public function getnextgiftlevelAction()\n {\n \ttry {\n\t \t$uid = $this->uid;\n\t \t$result = Hapyfish2_Island_Bll_User::getUserNextBigGiftLevel($uid);\n\t \t$this->echoResult($result);\n \t} catch (Exception $e) {\n }\n }", "function spectra_block_top ()\n\t{\n\t\t$hash = getbestblockhash ();\n\t\t$block = getblock ($hash);\n\t\t\n\t\treturn $block;\n\t}", "function generateByTopHit()\n{\n\t$recipe = array();\n\t$review = array();\n\t$reviewSelector = new Review;\n\t$recipeSelector = new Recipe;\n\t$candidates = array();\n\t$randomNum = 0;\n\t\n\t$candidates = $reviewSelector->selectAverageRatings();\n\t\n\t$candidates = randomRatingCategory($candidates);\n\t\n\tif (count($candidates) != 0)\n\t{\n\t\t$review = selectRandomCandidate($candidates);\n\t\t\n\t\t$recipe = $recipeSelector->selectByRecipeID($review);\n\t\t\n\t\tif (count($recipe) == 0)\n\t\t{\n\t\t\t$recipe = null;\n\t\t}\n\t}\n\t\n\telse \n\t{\n\t\t$recipe = null;\n\t}\n\t\n\treturn $recipe;\n}", "public function writeTop() {}", "public function topRankings()\n {\n\n $this->load->model('M_Photographer_table');\n $photographers = $this->M_Photographer_table->getRankings();\n $data[\"photographers\"] = $photographers;\n $this->load->view('admin/topRankings',$data);\n }", "public function writeTop()\n {\n }", "function tpps_details_top() {\n global $base_url;\n $params = drupal_get_query_parameters($_POST);\n $page = 0;\n if (empty($params)) {\n $params = drupal_get_query_parameters();\n }\n if (!empty($params['page'])) {\n $page = $params['page'];\n }\n $per_page = 20;\n\n $query = db_select('chado.plusgeno_view', 'pg');\n $query->addExpression('count(distinct(pg.accession))', 'count');\n if (!empty($params['type']) and !empty($params['value']) and !empty($params['op'])) {\n switch ($params['type']) {\n case 'title':\n case 'species':\n case 'project_id':\n case 'accession':\n case 'author':\n case 'year':\n $query->condition($params['type'], $params['value'], $params['op']);\n break;\n\n case 'phenotype_name':\n $query->innerJoin('chado.project_stock', 'ps', 'ps.project_id = pg.project_id');\n $query->innerJoin('chado.stock_phenotype', 'sp', 'sp.stock_id = ps.stock_id');\n $query->innerJoin('chado.phenotype', 'ph', 'ph.phenotype_id = sp.phenotype_id');\n $query->condition('ph.name', $params['value'], $params['op']);\n break;\n\n case 'phenotype_ontology':\n $query->innerJoin('chado.project_stock', 'ps', 'ps.project_id = pg.project_id');\n $query->innerJoin('chado.stock_phenotype', 'sp', 'sp.stock_id = ps.stock_id');\n $query->innerJoin('chado.phenotype', 'ph', 'ph.phenotype_id = sp.phenotype_id');\n $query->innerJoin('chado.cvterm', 'cvt', 'cvt.cvterm_id = ph.attr_id');\n $query->innerJoin('chado.cv', 'cv', 'cv.cv_id = cvt.cv_id');\n $query->condition('cv.name', $params['value'], $params['op']);\n break;\n\n case 'genotype_name':\n $query->innerJoin('chado.tpps_search_genotype_name', 'g', 'g.project_id = pg.project_id');\n $query->condition('g.name', $params['value'], $params['op']);\n break;\n\n case 'genotype_marker':\n $query->innerJoin('chado.tpps_search_genotype_marker', 'g', 'g.project_id = pg.project_id');\n $query->condition('g.name', $params['value'], $params['op']);\n break;\n\n case 'tags':\n $query->innerJoin('public.tpps_submission', 'ts', 'ts.accession = pg.accession');\n $query->innerJoin('public.tpps_submission_tag', 'st', 'st.tpps_submission_id = ts.tpps_submission_id');\n $query->innerJoin('public.tpps_tag', 'tt', 'tt.tpps_tag_id = st.tpps_tag_id');\n $query->condition('tt.name', $params['value'], $params['op']);\n break;\n\n default:\n break;\n }\n }\n $query = $query->execute();\n $total = $query->fetchObject()->count;\n\n $_GET['page'] = $page;\n $page = pager_default_initialize($total, $per_page);\n $start = $page * $per_page;\n\n $submissions = db_select('chado.plusgeno_view', 'pg');\n $submissions->distinct();\n $submissions->innerJoin('chado.project', 'p', 'p.project_id = pg.project_id');\n if (!empty($params['type']) and !empty($params['value']) and !empty($params['op'])) {\n switch ($params['type']) {\n case 'title':\n case 'species':\n case 'project_id':\n case 'accession':\n case 'author':\n case 'year':\n $submissions->condition($params['type'], $params['value'], $params['op']);\n break;\n\n case 'phenotype_name':\n $submissions->innerJoin('chado.project_stock', 'ps', 'ps.project_id = pg.project_id');\n $submissions->innerJoin('chado.stock_phenotype', 'sp', 'sp.stock_id = ps.stock_id');\n $submissions->innerJoin('chado.phenotype', 'ph', 'ph.phenotype_id = sp.phenotype_id');\n $submissions->condition('ph.name', $params['value'], $params['op']);\n break;\n\n case 'phenotype_ontology':\n $submissions->innerJoin('chado.project_stock', 'ps', 'ps.project_id = pg.project_id');\n $submissions->innerJoin('chado.stock_phenotype', 'sp', 'sp.stock_id = ps.stock_id');\n $submissions->innerJoin('chado.phenotype', 'ph', 'ph.phenotype_id = sp.phenotype_id');\n $submissions->innerJoin('chado.cvterm', 'cvt', 'cvt.cvterm_id = ph.attr_id');\n $submissions->innerJoin('chado.cv', 'cv', 'cv.cv_id = cvt.cv_id');\n $submissions->condition('cv.name', $params['value'], $params['op']);\n break;\n\n case 'genotype_name':\n $submissions->innerJoin('chado.tpps_search_genotype_name', 'g', 'g.project_id = pg.project_id');\n $submissions->condition('g.name', $params['value'], $params['op']);\n break;\n\n case 'genotype_marker':\n $submissions->innerJoin('chado.tpps_search_genotype_marker', 'g', 'g.project_id = pg.project_id');\n $submissions->condition('g.name', $params['value'], $params['op']);\n break;\n\n case 'tags':\n $submissions->innerJoin('public.tpps_submission', 'ts', 'ts.accession = pg.accession');\n $submissions->innerJoin('public.tpps_submission_tag', 'st', 'st.tpps_submission_id = ts.tpps_submission_id');\n $submissions->innerJoin('public.tpps_tag', 'tt', 'tt.tpps_tag_id = st.tpps_tag_id');\n $submissions->condition('tt.name', $params['value'], $params['op']);\n break;\n\n default:\n break;\n }\n }\n $submissions->fields('pg', array(\n 'title',\n 'project_id',\n 'accession',\n 'tree_count',\n 'phenotypes_assessed',\n 'phen_count',\n 'gen_count',\n ));\n $submissions->range($start, $per_page);\n $submissions->orderBy('pg.accession');\n $submissions = $submissions->execute();\n\n $rows = array();\n while (($sub = $submissions->fetchObject())) {\n $proj_id = $sub->project_id;\n\n $query = db_select('chado.organism', 'o');\n $query->join('chado.pub_organism', 'po', 'o.organism_id = po.organism_id');\n $query->join('chado.project_pub', 'pp', 'pp.pub_id = po.pub_id');\n $query->fields('o', array('organism_id', 'genus', 'species'));\n $query->condition('pp.project_id', $proj_id);\n $query->distinct();\n $query = $query->execute();\n\n $species = array();\n while (($result = $query->fetchObject())) {\n $species[] = tpps_entity_link($result->organism_id, \"{$result->genus} {$result->species}\", 'Organism');\n }\n\n $warning = \"\";\n if (empty(tpps_load_submission($sub->accession))) {\n $warning = \"<img src='$base_url/misc/message-16-warning.png' title='This study has not yet been resubmitted through the new TPPS pipeline'> \";\n }\n\n $row = array(\n \"<a href=\\\"$base_url/tpps/details/{$sub->accession}\\\">{$sub->accession}</a>\",\n \"$warning<a href=\\\"$base_url/tpps/details/{$sub->accession}\\\">{$sub->title}</a>\",\n tpps_show_tags(tpps_submission_get_tags($sub->accession)),\n implode('<br>', $species),\n $sub->tree_count,\n $sub->phenotypes_assessed,\n $sub->phen_count,\n $sub->gen_count,\n );\n $rows[$sub->accession] = $row;\n }\n\n ksort($rows);\n\n $vars = array(\n 'header' => array(\n 'Accession',\n 'Title',\n 'Tags',\n 'Species',\n 'Plant Count',\n 'Phenotypes Assessed',\n 'Phenotypic Measures',\n 'Genotype Count',\n ),\n 'rows' => $rows,\n 'attributes' => array(\n 'class' => array('view'),\n 'id' => 'tpps_table_display',\n ),\n 'caption' => '',\n 'colgroups' => NULL,\n 'sticky' => FALSE,\n 'empty' => '',\n );\n\n $output = theme('table', $vars);\n $pager = theme('pager', array('quantity', $total));\n return $pager . $output;\n}", "function show_most_viewed()\n\t{\n\t\tglobal $required_position, $userdata, $template, $db, $SID, $lang, $phpEx, $garage_config, $board_config;\n\t\n\t\tif ( $garage_config['mostviewed_on'] != TRUE )\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$template_block = 'block_'.$required_position;\n\t\t$template_block_row = 'block_'.$required_position.'.row';\n\t\t$template->assign_block_vars($template_block, array(\n\t\t\t'BLOCK_TITLE' => $lang['Most_Viewed_Vehicle'],\n\t\t\t'COLUMN_1_TITLE' => $lang['Vehicle'],\n\t\t\t'COLUMN_2_TITLE' => $lang['Owner'],\n\t\t\t'COLUMN_3_TITLE' => $lang['Views'])\n\t\t);\n\t\n\t // What's the count? Default to 10\n\t $limit = $garage_config['mostviewed_limit'] ? $garage_config['mostviewed_limit'] : 10;\n\t \t\t \t\t\n\t \t$sql = \"SELECT g.id, CONCAT_WS(' ', g.made_year, makes.make, models.model) AS vehicle, \n\t g.member_id, g.views AS POI, m.username \n\t FROM \" . GARAGE_TABLE . \" AS g \n\t LEFT JOIN \" . GARAGE_MAKES_TABLE . \" AS makes ON g.make_id = makes.id \n\t LEFT JOIN \" . GARAGE_MODELS_TABLE . \" AS models ON g.model_id = models.id\n\t LEFT JOIN \" . USERS_TABLE . \" AS m ON g.member_id = m.user_id\n\t\t\tWHERE makes.pending = 0 AND models.pending = 0\n\t ORDER BY POI DESC LIMIT $limit\";\n\t \t\t \n\t \tif(!$result = $db->sql_query($sql))\n\t\t{\n\t\t\tmessage_die(GENERAL_ERROR, \"Could not query vehicle information\", \"\", __LINE__, __FILE__, $sql);\n\t\t}\n\t \t\t \n\t \twhile ( $vehicle_data = $db->sql_fetchrow($result) )\n\t \t{\n\t\t\t$template->assign_block_vars($template_block_row, array(\n\t\t\t\t'U_COLUMN_1' => append_sid(\"garage.$phpEx?mode=view_vehicle&amp;CID=\".$vehicle_data['id'].\"\"),\n\t\t\t\t'U_COLUMN_2' => append_sid(\"profile.$phpEx?mode=viewprofile&amp;\".POST_USERS_URL.\"=\".$vehicle_data['member_id'].\"\"),\n\t\t\t\t'COLUMN_1_TITLE' => $vehicle_data['vehicle'],\n\t\t\t\t'COLUMN_2_TITLE' => $vehicle_data['username'],\n\t\t\t\t'COLUMN_3' => $vehicle_data['POI'])\n\t\t\t);\n\t \t}\n\t\n\t\t$required_position++;\n\t\treturn ;\n\t}", "public function findPraiseTopTen(){\n $sql = \"SELECT p.`id`, u.`nickname`, p.`favorite`, p.`pic` FROM `photo` AS p, `user` AS u WHERE p.`uid` = u.`uid` ORDER BY p.`favorite` DESC, p.`created` LIMIT 0, 10\";\n $res = $this->connect()->query($sql);\n $list = $res->fetch_all($resulttype = MYSQLI_ASSOC);\n if($list) {\n return $list;\n }\n return FALSE;\n }", "public static function getTopTresRecetas(){\n $top_tres = Receta::where('estado', 1)->orderBy('visitas', 'desc')->take(3)->get();\n return $top_tres;\n }", "function report_topcontrib($period = 'week', $size = 5, $lng = NULL, $origin = NULL, $project = NULL) {\n\n // validate parameters\n if (!in_array($lng, btr::languages_get())) {\n $lng = 'all';\n }\n if (!in_array($period, array('day', 'week', 'month', 'year'))) {\n $period = 'week';\n }\n $size = (int) $size;\n if ($size < 5) $size = 5;\n if ($size > 100) $size = 100;\n\n // Return cache if possible.\n $cid = \"report_topcontrib:$period:$size:$lng\";\n if ($origin != NULL) $cid .= \":$origin\";\n if ($project != NULL) $cid .= \":$project\";\n $cache = cache_get($cid, 'cache_btrCore');\n if (!empty($cache) && isset($cache->data) && !empty($cache->data)) {\n return $cache->data;\n }\n\n // Get the query condition and the arguments.\n $condition = 'time >= :from_date';\n $args[':from_date'] = date('Y-m-d', strtotime(\"-1 $period\"));\n if ($lng != 'all') {\n $condition .= ' AND ulng = :lng';\n $args[':lng'] = $lng;\n }\n\n // Select translations and votes that will be used for the stats.\n if ($origin == NULL) {\n $btr_translations = 'btr_translations';\n $btr_votes = 'btr_votes';\n }\n else {\n include_once __DIR__ . '/_create_tmp_tables.inc';\n _create_tmp_tables($lng, $origin, $project);\n $btr_translations = 'btr_tmp_translations';\n $btr_votes = 'btr_tmp_votes';\n }\n\n // Give weight 5 to a translation and weight 1 to a vote,\n // get the sum of all the weights grouped by user (umail),\n // order by this score, and get the top users.\n $sql_get_topcontrib = \"\n SELECT u.uid, u.name, u.umail, sum(w.weight) AS score,\n sum(w.translation) AS translations, sum(w.vote) AS votes\n FROM (\n (\n SELECT t.umail, t.lng as ulng,\n 5 AS weight, 1 AS translation, 0 AS vote\n FROM {$btr_translations} t\n WHERE $condition\n )\n UNION ALL\n (\n SELECT v.umail, v.ulng,\n 1 AS weight, 0 AS translation, 1 AS vote\n FROM {$btr_votes} v\n WHERE $condition\n )\n ) AS w\n LEFT JOIN {btr_users} u\n ON (u.ulng = w.ulng AND u.umail = w.umail)\n WHERE u.name != 'admin'\n GROUP BY w.umail\n ORDER BY score DESC\n \";\n $topcontrib = btr::db_query_range($sql_get_topcontrib, 0, $size, $args)->fetchAll();\n\n // Cache for 12 hours.\n cache_set($cid, $topcontrib, 'cache_btrCore', time() + 12*60*60);\n\n return $topcontrib;\n}", "public function getAllTopThreads() {\r\n\t\t$filteredList = array();\r\n\t\tforeach ($this->threads as $thread) {\r\n\t\t\tif ($thread -> getTopTopic() == -1) {\r\n\t\t\t\tarray_push($filteredList, $thread);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $filteredList;\r\n\t}", "public function getTopVoters(): array {\n return $this->plugin->getTopVoters();\n }", "public function show_topBoards($num_top = 10, $output_method = 'echo')\n {\n return $this->call_method(\"show/topBoards\",\n array('num_top' => $num_top,\n 'output_method' => $output_method,\n )\n );\n }", "function show_topquartermile()\n\t{\n\t\tglobal $required_position, $userdata, $template, $db, $SID, $lang, $phpEx, $phpbb_root_path, $garage_config, $board_config;\n\t\n\t\tif ( $garage_config['topquartermile_on'] != TRUE )\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$template_block = 'block_'.$required_position;\n\t\t$template_block_row = 'block_'.$required_position.'.row';\n\t\t$template->assign_block_vars($template_block, array(\n\t\t\t'BLOCK_TITLE' => $lang['Top_Quartermile_Runs'],\n\t\t\t'COLUMN_1_TITLE' => $lang['Vehicle'],\n\t\t\t'COLUMN_2_TITLE' => $lang['Owner'],\n\t\t\t'COLUMN_3_TITLE' => $lang['Quartermile'])\n\t\t);\n\t\n\t // What's the count? Default to 10\n\t $limit = $garage_config['topquartermile_limit'] ? $garage_config['topquartermile_limit'] : 10;\n\t\n\t\t//First Query To Return Top Time For All Or For Selected Filter...\n\t\t$sql = \"SELECT qm.garage_id, MIN(qm.quart) as quart\n\t\t\tFROM \" . GARAGE_QUARTERMILE_TABLE .\" AS qm\n\t\t\t\tLEFT JOIN \" . GARAGE_TABLE .\" AS g ON qm.garage_id = g.id\n\t\t\t\tLEFT JOIN \" . USERS_TABLE .\" AS user ON g.member_id = user.user_id\n\t\t\t LEFT JOIN \" . GARAGE_MAKES_TABLE . \" AS makes ON g.make_id = makes.id\n\t \t\t\tLEFT JOIN \" . GARAGE_MODELS_TABLE . \" AS models ON g.model_id = models.id\n\t\t\tWHERE\t(qm.sixty IS NOT NULL\n\t\t\t\tOR qm.three IS NOT NULL\n\t\t\t\tOR qm.eight IS NOT NULL\n\t\t\t\tOR qm.eightmph IS NOT NULL\n\t\t\t\tOR qm.thou IS NOT NULL\n\t\t\t\tOR qm.rt IS NOT NULL\n\t\t\t\tOR qm.quartmph IS NOT NULL) AND ( qm.pending = 0 )\n\t\t\t\tAND ( makes.pending = 0 AND models.pending = 0 )\n\t\t\tGROUP BY qm.garage_id\n\t\t\tORDER BY quart ASC LIMIT $limit \";\n\t\n\t\tif( !($first_result = $db->sql_query($sql)) )\n\t\t{\n\t\t\tmessage_die(GENERAL_ERROR, 'Error Selecting Top Quartermile Time', '', __LINE__, __FILE__, $sql);\n\t\t}\n\t\t\n\t\t//Now Process All Rows Returned And Get Rest Of Required Data\t\n\t\t$i = 0;\n\t\twhile ($row = $db->sql_fetchrow($first_result) )\n\t\t{\n\t\t\t$sql = \"SELECT g.id, g.member_id, user.username, CONCAT_WS(' ', g.made_year, makes.make, models.model) AS vehicle,\n\t\t\t\t\tqm.rt, qm.sixty, qm.three, qm.eight, qm.eightmph, qm.thou, qm.quart, qm.quartmph, qm.rr_id,\n\t\t\t\t\trr.bhp, rr.bhp_unit, rr.torque, rr.torque_unit, rr.boost, rr.boost_unit, rr.nitrous\n\t\t\t\tFROM \" . GARAGE_QUARTERMILE_TABLE .\" AS qm\n\t\t\t\t\tLEFT JOIN \" . GARAGE_TABLE .\" AS g ON qm.garage_id = g.id\n\t\t\t\t\tLEFT JOIN \" . USERS_TABLE .\" AS user ON g.member_id = user.user_id\n\t\t\t\t\tLEFT JOIN \" . GARAGE_ROLLINGROAD_TABLE . \" AS rr ON qm.rr_id = rr.id\n\t\t\t\t LEFT JOIN \" . GARAGE_MAKES_TABLE . \" AS makes ON g.make_id = makes.id\n\t \t\t\t\tLEFT JOIN \" . GARAGE_MODELS_TABLE . \" AS models ON g.model_id = models.id\n\t\t\t\tWHERE qm.garage_id = \" . $row['garage_id'] . \" AND qm.quart = \" . $row['quart'];\n\t\n\t \t\tif(!$result = $db->sql_query($sql))\n\t\t\t{\n\t\t\t\tmessage_die(GENERAL_ERROR, \"Could not query vehicle information\", \"\", __LINE__, __FILE__, $sql);\n\t\t\t}\n\t \t\t \n\t\t \t$vehicle_data = $db->sql_fetchrow($result);\n\t\n\t\t\t$mph = (empty($vehicle_data['quartmph'])) ? 'N/A' : $vehicle_data['quartmph'];\n\t \t$quartermile = $vehicle_data['quart'] .' @ ' . $mph . ' '. $lang['Quartermile_Speed_Unit'];\n\t\n\t\t\t$template->assign_block_vars($template_block_row, array(\n\t\t\t\t'U_COLUMN_1' => append_sid(\"garage.$phpEx?mode=view_vehicle&amp;CID=\".$vehicle_data['id'].\"\"),\n\t\t\t\t'U_COLUMN_2' => append_sid(\"profile.$phpEx?mode=viewprofile&amp;\".POST_USERS_URL.\"=\".$vehicle_data['member_id'].\"\"),\n\t\t\t\t'COLUMN_1_TITLE' => $vehicle_data['vehicle'],\n\t\t\t\t'COLUMN_2_TITLE' => $vehicle_data['username'],\n\t\t\t\t'COLUMN_3' => $quartermile)\n\t\t\t);\n\t \t}\n\t\n\t\t$required_position++;\n\t\treturn ;\n\t}", "function get_top_tags() {\n\t\t$data = $this->_request_data('toptags');\n\n\t\tif (!$data) return false;\n\n\t\tforeach($data->tag as $tag) {\n\t\t\t$tag = new LastfmTag($tag, $this->_connection);\n\n\t\t\t$result[] = $tag;\n\n\t\t}\n\n\t\treturn $result;\n\n\t}", "function array_top($stack){\n\tif(empty($stack))\n\t\treturn NULL;\n\n\t$top = array_pop($stack);\n\tarray_push($stack, $top);\n\n\treturn $top;\n}", "public function getTopTags()\n {\n return $this->getClient()->call('tag.gettoptags', array(\n ));\n }", "public function top() {\n return current($this->stack);\n }", "function calculate_top15(&$smartyTop15,$showCounts=1,$topN=15,$searchBox=false) {\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t\t\t\t\t'tx_civserv_service.uid as uid,\n\t\t\t\t\t\t tx_civserv_service.sv_name as name,\n\t\t\t\t\t\t\t tx_civserv_service.t3ver_oid,\n\t\t\t\t\t\t\t tx_civserv_service.t3ver_wsid,\n\t\t\t\t\t\t\t tx_civserv_service.t3ver_state,\n\t\t\t\t\t\t\t tx_civserv_service.fe_group,\n\t\t\t\t\t\t SUM(tx_civserv_accesslog.al_number) as number',\t// SELECT\n\t\t\t\t\t\t 'tx_civserv_accesslog,\n\t\t\t\t\t\t tx_civserv_service',\t\t// FROM\n\t\t\t\t \t\t\t'1 '.\n\t\t\t \t\t\t $this->cObj->enableFields('tx_civserv_service').\n\t\t\t\t\t ' AND tx_civserv_service.uid = tx_civserv_accesslog.al_service_uid\n\t\t\t\t\t\t AND tx_civserv_service.pid IN (' . $this->community['pidlist'] . ')',\t\t// WHERE\n\t\t\t\t\t\t\t'tx_civserv_accesslog.al_service_uid',\t\t\t\t\t\t\t\t\t// GROUP BY\n\t\t\t\t\t\t\t'number DESC',\t\t\t\t\t\t\t\t\t\t\t// ORDER BY\n\t\t\t\t\t\t\t$topN); \t\t\t\t\t\t\t\t\t\t\t\t// LIMIT\n\t\t$row_counter = 0;\n\t\t//not sure how to handle workspaces and preview here.....\n\t\twhile ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {\n\t\t\t$top15_data[$row_counter]['link'] = htmlspecialchars($this->pi_linkTP_keepPIvars_url(array(mode => 'service',id => $row['uid']),1,1));\n\t\t\t$top15_data[$row_counter]['name'] = $row['name'];\n\t\t\t$top15_data[$row_counter]['fe_group'] = $row['fe_group'];\n\t\t\tif ($showCounts) {\n\t\t\t\t$top15_data[$row_counter]['number'] = $row['number'];\n\t\t\t}\n\t\t\t$row_counter++;\n\t\t}\n\t\t$smartyTop15->assign('top15', $top15_data);\n\t\t$smartyTop15->assign('top15_label', $this->pi_getLL('tx_civserv_pi1_top15.top15','The 15 most frequently requested services'));\n\t\t$smartyTop15->assign('serviceinformation_label', $this->pi_getLL('tx_civserv_pi1_common.serviceinformation','Service information'));\n\t\t$smartyTop15->assign('frequently_visited_label', $this->pi_getLL('tx_civserv_pi1_common.frequently_visited','The following sites are visited frequently'));\n\n\t\tif ($searchBox) {\n\t\t\t//$_SERVER['REQUEST_URI'] = $this->pi_linkTP_keepPIvars_url(array(mode => 'search_result'),0,1); //dropped this according to instructions from security review\n\t\t\t$smartyTop15->assign('searchbox', $this->pi_list_searchBox('',true));\n\t\t}\n\t\treturn true;\n\t}", "public function top()\n {\n return current($this->stack);\n }", "public function top()\n {\n return current($this->stack);\n }", "function getTopLinks() {\n\t\t$link = getDbConnect();\n\t\t$preparedStatement = $link->prepare(\"SELECT * FROM urls ORDER BY visits DESC LIMIT 50;\");\n\t\t$preparedStatement->execute(array());\n\t\treturn parseFullResults($preparedStatement->fetchAll());\n\t}", "public function topFreelancers()\n {\n \t$freelancers = DB::table('freelancers')\n \t\t\t\t\t->join('users','user_id','freelancers.user_id','users.id')\n \t\t\t\t\t->join('userprofiles','freelancers.user_id','freelancers.user_id','userprofiles.user_id')\n \t\t\t\t\t->join('countries','userprofiles.country_id','countries.id','userprofiles.country_id')\n \t\t\t\t\t->take(5)\n \t\t\t\t\t->get();\n \t//$categories = DB::table('skill_categories')\n\n\n \t$title = 'Browse Top Freelancers';\n\n \treturn view('profiles.top-freelancers-profile',['title'=>$title,'freelancers'=>$freelancers]);\n }", "public function findTopRated($topRatedCount = 0) {\n\t\t\t$ordering = array('lastVersion.experience.rating' => Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING);\n\t\t\treturn $this->findAll(0, $topRatedCount, $ordering);\n\t\t}", "public static function getTopAttractionsByRatings()\n\t{\n\t\t$topAttractions= DB::table('Reviews')->select(DB::raw(\"avg(ratings) as AttractionAvg, AttractionName\"))->orderBy('AttractionAvg', 'desc')->groupBy('AttractionName')->take(10)->get();\n\t\treturn $topAttractions;\n\t}", "public function viewTopFourAction() {\n\n /**\n * Select 4 comments from the database that do not contain \"Reply\" in the title columb in decending timestamp order.\n * This will give us the top 4 new discussions.\n */\n $this->db->select('*')\n ->from(\"comment WHERE title NOT LIKE '%Reply%' ORDER BY timestamp DESC LIMIT 4\");\n $top_new = $this->db->executeFetchAll();\n\n /**\n * Count the number of idTags as \"tc\" in the assigntags table where idTag \n * is grouped and ordered in decending order to get the top 4 results.\n */\n $this->db->select('idTag, COUNT(idTag) as tc')\n ->from('assigntags GROUP BY idTag ORDER BY tc DESC LIMIT 4');\n $top_tags = $this->db->executeFetchAll();\n\n /**\n * Get the name of the tages from the top_tags object.\n */\n foreach ($top_tags as $value) {\n $value->tag = $this->assignTags->getTagName($value->idTag)->name;\n }\n\n /**\n * Count the userId from comments that are groupd by userId in decending order \n * to get the top 4 most active users.\n */\n $this->db->select('userId, COUNT(userId) as uc')\n ->from('comment GROUP BY userId ORDER BY uc DESC LIMIT 4');\n $top_users = $this->db->executeFetchAll();\n\n /**\n * Get the names of the users and save them in the top_users variable.\n */\n foreach ($top_users as $value) {\n $value->name = $this->users->find($value->userId)->name;\n }\n\n /**\n * Prepare the view.\n */\n $this->views->add('comment/topfour', [\n 'new' => $top_new,\n 'tags' => $top_tags,\n 'users' => $top_users,\n 'title' => 'stats',\n ]);\n }", "function exp_popularitySort($a,$b){\n return $b[\"contrib_count\"] - $a[\"contrib_count\"];\n}", "public function top()\n {\n return $this->getIterator()->top();\n }", "protected function getMostPopularRecipes()\n {\n $self = $this;\n\n $result = Cache::remember(\n 'home_popularRecipes',\n config('kosher.cache_expiration_time'),\n function () use ($self) {\n return Recipe::mostPopular()->with('user', 'videos')\n ->whereNotIn('recipes.id', $self->receivedRecipes->all())\n ->take(config('kosher.pagination.home_popular_recipes'))\n ->get();\n }\n );\n\n $this->mergeReceivedRecipes($result);\n\n return $result;\n }", "function rank_top_sql() {\n Debug::Oblast('RANKADMIN_SQL');\n // TODO: nazov / server_name zistovat neskor z amxid -> serverid -> nazov\n // Ak vysledny pocet viac ako 1 -> Admin na viacerych serveroch\n $sqltxt = \"\n SELECT DISTINCT user_id, user_name, user_avatar, vip, slot, `sb`.`nazov`, \n \";\n $sqltxt .= hlasovanie_sql_head();\n // TODO: Tu maju byt vsade len JOIN, ale kedze admini a fusion_user neje synchronizovane\n // WARNING: Pri admin servers nemoze byt LIMIT 1 lebo nahodou vytiahne to kde nic nieje\n $sqltxt .= \" FROM `phpbanlist`.`amx6_amxadmins` a\n \tJOIN ( SELECT user_name, user_id, user_avatar, vip, slot, amxid, cs_meno FROM `cstrike`.`fusion_users` ) u\n ON a.id = u.amxid\n JOIN ( SELECT admin_id, server_id FROM `phpbanlist`.`amx6_admins_servers` ) sa\n on `a`.`id` = `sa`.`admin_id` \n JOIN ( SELECT amx, nazov FROM `cstrike`.`servers` LIMIT 1 ) sb\n on `sa`.`server_id` = `sb`.`amx`\n \";\n $sqltxt .= hlasovanie_sql_body();\n $sqltxt .= \" ORDER BY znamka DESC LIMIT 3\";\n $sql = DB::Query($sqltxt);\n Debug::Oblast('RANKADMIN_SQL');\n //echo $sqltxt;\n return $sql;\n}", "function getTopRatedTutors(){\n $qStr = \"SELECT\n\t\t\t\t\tusers.id,users.first_name,users.last_name,users.image,tutor_details.personal_statement,tutor_details.hourly_rate,AVG(reviews.rating) as avg_rating\n\t\t\t\t FROM\n\t\t\t\t\tusers\n\t\t\t\t INNER JOIN\n\t\t\t\t\ttutor_details\n\t\t\t\t\t\tON\n\t\t\t\t\tusers.id = tutor_details.tutor_id\n\t\t\t\t LEFT JOIN\n\t\t\t\t\t(SELECT * FROM reviews WHERE is_active = \".ACTIVE_STATUS_ID.\")\n\t\t\t\t\treviews\n\t\t\t\t\t\tON\n\t\t\t\t\tusers.id = reviews.tutor_id\n\t\t\t\t WHERE\n\t\t\t\t\tusers.is_active = \".ACTIVE_STATUS_ID.\" AND users.is_featured= \".ACTIVE_STATUS_ID.\"\n\t\t\t\t GROUP BY users.id ORDER BY avg_rating DESC\n\t\t\t\t LIMIT \".HOMEPAGE_TUTORS;\n $query = $this->db->query($qStr);\n\t\t$result = $query->result_array();\n\t\treturn $result;\n\t}", "function getPriority() ;", "function getPriority() ;", "function getPriority() ;", "public function actionTop() {\n $limit = 5;\n $model = new $this->modelClass;\n $results = $model::find()->limit($limit)->orderBy(['Data' => SORT_DESC, 'Nome' => SORT_ASC])->all();\n return['limite' => $limit, 'results' => $results];\n }", "function getPriority() ;", "function getPriority() ;", "function getPriority() ;", "function getPriority() ;", "function retrieve_recent_profile_views(){\n\t\t\n\t\t$this->CI->load->model('model_users_promoters', 'users_promoters', true);\n\t\treturn $this->CI->users_promoters->retrieve_recent_profile_views($this->promoter->pt_id);\n\t\t\n\t}", "public function show_topPoster($topNumber = 1, $output_method = 'echo')\n {\n return $this->call_method(\"show/topPoster\",\n array('topNumber' => $topNumber,\n 'output_method' => $output_method,\n )\n );\n }", "function getTopMessage($action) {\r\n $groupedFeeds = null;\r\n if ($action->type == 'friends') {\r\n $subject_guid = $action->getSubject()->getGuid();\r\n $total_guid = $action->type . '_' . $subject_guid;\r\n } elseif ($action->type == 'tagged') {\r\n foreach ($action->getAttachments() as $attachment) {\r\n $object_guid = $attachment->item->getGuid();\r\n $Subject_guid = $action->getSubject()->getGuid();\r\n $total_guid = $action->type . '_' . $object_guid . '_' . $Subject_guid;\r\n }\r\n } else {\r\n $subject_guid = $action->getObject()->getGuid();\r\n $total_guid = $action->type . '_' . $subject_guid;\r\n }\r\n\r\n if (!isset($grouped_actions[$total_guid]) && isset($this->groupedFeeds[$total_guid])) {\r\n $groupedFeeds = $this->groupedFeeds[$total_guid];\r\n }\r\n /* End Working group feed. */\r\n\r\n return strip_tags($this->getActionController()->view->getContent($action, false, $groupedFeeds));\r\n }", "function get_most_played() {\n\t\t$this->db->select('songs.song_id, songs.title, songs.artist, songs.album_art, count(interactions.song_id) as play')->from('songs')->order_by('play','desc')->limit(15);\n\t\t$this->db->join('interactions', 'songs.song_id = interactions.song_id');\n\t\t$this->db->group_by('songs.song_id');\n\t\t$songs = $this->db->get();\n\t\treturn $songs->result();\n\n\t}", "public function displayTopRated()\n {\n // we first fetch all products with reviews. Then get those that meet our criteria\n // our criteria states that a top rated product should have at least 4.0 stars and\n // be reviewed at least 2 times. The hard coded values are just defaults, just in-case\n // the ones in our config are missing\n\n // for now, that criteria will be ok, since we have a few products and users\n $data = $this->with(['reviews'])->whereHas('reviews', function ($q) {\n\n $q->where('stars', '>=', config('site.reviews.hottest', 3.5));\n\n }, '>=', config('site.reviews.count', 10))->get()->sortByDesc(function ($p) {\n\n // sort by the number of stars\n return $p->reviews->sortBy(function ($r) {\n return $r->stars;\n });\n });\n\n return $data;\n }", "function getTopFutureGames($mainNewerGames){\n $gamesTopFuture = getDataToTopFutureGames();\n\n $answer = \"<div id= \\\"mainNewGames\\\" >\";\n // The text\n $answer = $answer.\"<p id=\\\"gameTopTitle\\\">\".$mainNewerGames.\"</p>\";\n // The separator\n $answer = $answer.\"<p id=\\\"separatorTopTitle\\\"></p></div>\";\n\n // Make it a list\n $answer = $answer.\"<ul id=\\\"topNewList\\\" class=\\\"gamesList\\\">\";\n\n // Call for every game to the top\n for ($i=0; $i < getNumberOfTopFutureGames(); $i++){\n $answer = $answer . getTopNewGame($gamesTopFuture, $i);\n }\n\n return $answer . \"</ul>\";\n}", "function isTopHit($heading)\n{\n\t$isTopHit = false;\n\t\n\tif ((strcmp($heading, \"Top Hits\") == 0) || (strcmp($heading, \"Chef Favourites\") == 0))\n\t{\n\t\t$isTopHit = true;\n\t}\n\t\n\treturn $isTopHit;\n}", "function facesTop($param = '') {\r\n\t\t$result['state'] = '001';\r\n\t\t$result['data'] = array ();\r\n\t\tif ($this->auth->checktoken($param)) {\r\n\t\t\t$result['state'] = '000';\r\n\t\t\t$result['myScore'] = \"\";\r\n\t\t\t$page = intval($this->input->get('page') - 1);\r\n\t\t\t$width = intval($this->input->get('width'));\r\n\t\t\t$width == 0 && $width = 60;\r\n\r\n\t\t\t$this->load->model('remote');\r\n\t\t\tif($this->uid and ($page==0 OR $page==1) and $result['myScore'] = $this->getUloc()){\r\n $result['myScore']['thumb'] = $this->remote->thumb($result['myScore']['uid'], $width);\r\n $result['myScore']['pic'] = $this->remote->show($result['myScore']['pic']);\r\n $result['myScore']['alias'] = $this->wen_auth->get_username();;\r\n\t\t\t}\r\n\t\t\t$this->db->limit(20, 20 * $page);\r\n\t\t\t$this->db->order_by(\"faces.score\", \"DESC\");\r\n\t\t\t$this->db->select('faces.id, faces.uid,faces.score,faces.pic,users.phone,users.alias');\r\n\t\t\t$this->db->join('users', 'users.id = faces.uid','left');\r\n\t\t\t$res = $this->db->get('faces')->result_array();\r\n\r\n\t\t\tforeach ($res as $k=>$r) {\r\n\t\t\t\tif(empty($r['alias'])){\r\n\t\t\t\t\t$r['alias'] = strlen($r['phone']) > 4 ? substr($r['phone'],0,4).\"***\":$r['phone'];\r\n\t\t\t\t}\r\n\t\t\t\t$r['thumb'] = $this->remote->thumb($r['uid'], $width);\r\n\t\t\t\t$r['pic'] = $this->remote->show($r['pic']);\r\n\t\t\t\t$r['score'] = (isset($r['score']) && $r['score'] > 100) ? 100: $r['score'];\r\n\t\t\t\t$res[$k] = $r;\r\n\t\t\t}\r\n\t\t\t$result['data'] = $res;\r\n\r\n\t\t}\r\n\t\techo json_encode($result);\r\n\t}", "function overview_bestrep_members()\n{\n global $mybb, $settings, $db, $templates, $theme, $lang, $trow;\n\n $trow = alt_trow();\n\n $table_heading = $lang->overview_bestrep_members;\n $column1_heading = $lang->overview_username;\n $column2_heading = $lang->overview_reputation;\n\n // Fetch data\n $query = $db->query(\"SELECT username, reputation, uid, usergroup, displaygroup\n FROM \".TABLE_PREFIX.\"users\n ORDER BY reputation DESC\n LIMIT 0,{$settings['overview_max']};\");\n\n // Print data\n while ($users = $db->fetch_array($query))\n {\n $val1 = overview_parseuser($users['uid'], $users['username'], $users['usergroup'], $users['displaygroup']);\n $val2 = get_reputation($users['reputation'], $users['uid']);\n eval(\"\\$table_content .= \\\"\".$templates->get(\"overview_2_columns_row\").\"\\\";\");\n }\n\n eval(\"\\$output = \\\"\".$templates->get(\"overview_2_columns\").\"\\\";\");\n\n return $output;\n}", "function TopPledgersLevel($iFYID, $iPercent)\n{\n $sSQL = 'SELECT plg_Amount FROM pledge_plg \n\t\t\t WHERE plg_FYID = '.$iFYID.' AND plg_PledgeOrPayment=\"Pledge\" ORDER BY plg_Amount DESC';\n $rsPledges = RunQuery($sSQL);\n $pledgeCount = mysqli_num_rows($rsPledges);\n mysqli_data_seek($rsPledges, $pledgeCount * $iPercent / 100);\n $aLastTop = mysqli_fetch_array($rsPledges);\n\n return $aLastTop['plg_Amount'];\n}", "public function listTopTags()\n {\n $tagger = new Kronolith_Tagger();\n $result = new stdClass;\n $result->tags = array();\n $tags = $tagger->getCloud($GLOBALS['registry']->getAuth(), 10, true);\n foreach ($tags as $tag) {\n $result->tags[] = $tag['tag_name'];\n }\n return $result;\n }", "public function listRetailersByPopularityByCountry() {\n\t\t\tglobal $retailers;\n\t\t\t$countries = array_column($retailers, 'country');\n\t\t\tforeach($countries as $ck =>$cv){\n \t\t\t$p=0;\n \t\t\tforeach($retailers as $rk =>$rv){\n \t\t\tif ($rv['country']==$cv && $rv['popularity']>$p ){\n \t\t\t\t\t\t\t$p=$rv['popularity']; \n \t\t\t\t\t\t\t$this->mostpopularbycountry[$cv] = $rv;\n\t\t\t\t\t\t\t}//end if\n \t\t\t}//end foreach\n\t\t\t}//end foreach\n\t\t}", "private static function getPopularBrackets() {\r\n $topBrackets = Api\\Bracket::queryReturnAll(\r\n [\r\n 'state' => [ 'in' => [ BS_ELIMINATIONS, BS_VOTING ] ],\r\n 'hidden' => 0\r\n ],\r\n [ 'score' => 'desc' ], 6\r\n );\r\n // Shift off the featured bracket\r\n array_shift($topBrackets);\r\n\r\n // Five DB calls to get a representing entrant...\r\n foreach ($topBrackets as $bracket) {\r\n $character = Api\\Character::queryReturnAll([ 'bracketId' => $bracket->id ], [ 'id' => 'asc' ], 1);\r\n\r\n // Just shove the character in the \"winner\" property. I know what I mean by it...\r\n $bracket->winner = $character[0];\r\n }\r\n\r\n return $topBrackets;\r\n }", "public function get_top5_pvp_kills_by_main_characters($start, $end) {\n\t\tglobal $wpdb;\n\t\t\n\t\t// get all kills\n\t\t$sql = \"SELECT * FROM `\" . $wpdb->prefix . \"tr_sso_credentials`\";\n\t\t\n\t\t$corp_data = $wpdb->get_row ( $sql, ARRAY_A );\n\t\t\n// \t\t$sql = \"SELECT count(`kill_id`) as total, `char_id`as ownerName2 FROM `\" . $wpdb->prefix . \"tr_pvp_chars_kills`\n// \t\tWHERE `timestamp` BETWEEN '$start' AND '$end'\n// \t\tAND `corp_id`='\" . $corp_data ['corporation_id'] . \"' GROUP BY `ownerName2` ORDER BY total DESC\";\n\t\t\n\t\t$sql = \"SELECT count(`kill_id`) as total, `char_id`,\" . $wpdb->prefix . \"tr_characters.ownerName2 FROM `\" . $wpdb->prefix . \"tr_pvp_chars_kills`\n\t\tJOIN \" . $wpdb->prefix . \"tr_characters ON \" . $wpdb->prefix . \"tr_pvp_chars_kills.char_id=\" . $wpdb->prefix . \"tr_characters.owner_id \n\t\tWHERE `timestamp` BETWEEN '$start' AND '$end'\n\t\tAND \" . $wpdb->prefix . \"tr_pvp_chars_kills.corp_id='\" . $corp_data ['corporation_id'] . \"' GROUP BY `ownerName2` ORDER BY total DESC\";\n\t\t\n\t\t\n\t\t$top_pvpers = $wpdb->get_results ( $sql, ARRAY_A );\n\t\t\n\t\t// sort them by main chars.\n\t\t\n\t\t$sorted_kills_by_main = $this->gather_data_by_main_chars ( $start, $end, $top_pvpers );\n\t\t\n\t\t// sort the array desc\n\t\t\n\t\tif ($sorted_kills_by_main) {\n\t\t\tusort ( $sorted_kills_by_main, array (\n\t\t\t\t\t$this,\n\t\t\t\t\t\"isk_compare\" \n\t\t\t) );\n\t\t\t\n\t\t\t$limit = 5;\n\t\t\t$top_five = null;\n\t\t\tforeach ( $sorted_kills_by_main as $character ) {\n\t\t\t\tif ($limit <1) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t$top_five [] = $character;\n\t\t\t\t$limit --;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $top_five;\n\t}", "function main()\n{\n runGetFeature();\n runListFeatures();\n runRecordRoute();\n runRouteChat();\n}", "function get_not_top_5_best_polls($reviewer)\n{\n $reviewer = (int)$reviewer;\n $limit = mysql_result(mysql_query(\"SELECT Value FROM parameter WHERE Short_name = 'Reviews_to_give'\"), 0);\n $query = mysql_query(\"SELECT ID, Reviewee, Score FROM candidate_poll WHERE Reviewer=$reviewer ORDER BY Score DESC LIMIT 100 OFFSET $limit\");\n if (!$query || mysql_num_rows($query) <= 0) {\n echo mysql_error();\n return false;\n } else {\n while ($row = mysql_fetch_assoc($query)) {\n $polls[] = array(\n 'ID' => $row['ID'],\n 'Reviewee' => $row['Reviewee'],\n 'Score' => $row['Score']\n );\n }\n return $polls;\n }\n}", "function getTopNewerGames($mainNewerGames){\n $gamesTopNew = getDataToTopNewGames();\n\n $answer = \"<div id= \\\"mainNewGames\\\" >\";\n // The text\n $answer = $answer.\"<p id=\\\"gameTopTitle\\\">\".$mainNewerGames.\"</p>\";\n // The separator\n $answer = $answer.\"<p id=\\\"separatorTopTitle\\\"></p></div>\";\n\n // Make it a list\n $answer = $answer.\"<ul id=\\\"topNewList\\\" class=\\\"gamesList\\\">\";\n\n // Call for every game to the top\n for ($i=0; $i < getNumberOfTopNewGames(); $i++){\n $answer = $answer . getTopNewGame($gamesTopNew, $i);\n }\n\n return $answer . \"</ul>\";\n}", "public function actionTopmembers()\n\t{\t\t\n\t\t$this->layout='front_layout';\n\t\tYii::app()->clientScript->registerCoreScript('jquery');\t\t\n\t\t$allusersphotos = array();\n\t\t$criteria = new CDbCriteria();\n\t\t$criteria->select = 't.* , (SELECT COUNT(*) FROM log_photos_hearts b WHERE b.owner_id = t.user_id) AS totalcount';\n\t\t$criteria->group = 't.user_id';\n\t\t$criteria->order = 'totalcount DESC';\n\t\t$criteria->limit=$this->cartlimit;\t\t\n\t\t$country = Yii::app()->user->getState('usercountry');\n\t\tif(!empty($country)){\n\t\t\t//Show Only User's Country\n\t\t\t$criteria->condition = \"userLocation.user_location_country='$country' AND userDetails.user_unique_url<>'poslyadmin'\";\t\t\t\n\t\t\t$allusersphotos=Photos::model()->with('user', 'user.userDetails','user.userLocation')->findAll($criteria);\n\t\t}\t\t\n\t\telse{\n\t\t\t//If Not, Show World Wide\n\t\t\t$criteria->condition = 'exists(select * from photos where user_id=t.user_id) AND userDetails.user_unique_url<>\"poslyadmin\"';\t\t\t\n\t\t\t$allusersphotos=Photos::model()->with('user', 'user.userDetails')->findAll($criteria);\n\t\t}\t\n\t\tunset($criteria);\t\t\t\t\n\t\t//Get Hash Tags Listings for sidebar, this action define in Controller class\n\t\t$limit = (Yii::app()->user->isGuest)?9:6; //HashTag Limit\t\t\n\t\t$hash_tags = $this->actionHashtaglist($limit);\n\t\t$this->render('index', array('photos'=>$allusersphotos,'hash_tags'=>$hash_tags,'menulink'=>'topmember'));\t\t\n\t}", "function get_recommendations($prefs, $p1){\r\n\t//if he is very similar, then get the books from those that he has not read\r\n\r\n\t//saving the array in a different array\r\n\t$prefsOriginal = $prefs;\r\n\r\n\t//unsetting the person from the array - for whom we are getting the recommendation\r\n\tunset($prefs[$p1]);\r\n\r\n\t//array to save the person and the distance\r\n\t$personDistance = array();\r\n\r\n\t//calculating the similarity of this person with other users\r\n\tforeach($prefs as $k => $v){\r\n\t\t$dist = sim_distance($prefsOriginal, $p1, $k);\r\n\t\t$personDistance[$k] = $dist;\r\n\t}\r\n\r\n\t//sorting the array based on the distance - nearest first\r\n\tarsort($personDistance);\r\n\r\n\t//printing the top recommenders\r\n\t//print_r($personDistance);\r\n\r\n\t//getting the books from the distance people - taking top 3\r\n\t$i = 0;\r\n\t$recommendedBooks = array();\r\n\t$topBooks = array();\r\n\tforeach($personDistance as $k => $v){\r\n\t\t//get the top books for this person\r\n\t\t$topBooks = top_matches($prefs, $k, $v);\r\n\t\tif(sizeof($topBooks) >= 1){\r\n\t\t\t$recommendedBooks[] = $topBooks;\r\n\t\t\t$i += 1;\r\n\t\t}\r\n\t\tif($i > RECOM_NUM) break; //condition to take the recommendations only from the top matches\r\n\t}\r\n\t//printing the combine array\r\n\t//print_r($recommendedBooks);\r\n\r\n\t//echo ('<br><br>');\r\n\r\n\t$recBooks = array();\r\n\r\n\t//merging the arrays based on the RECOM_NUM\r\n\tforeach($recommendedBooks as $rks){\r\n\t\tforeach ($rks as $key => $value) {\r\n\t\t\t//check if the key already exists\r\n\t\t\tif(array_key_exists($key, $recBooks)){\r\n\t\t\t\t//see whether the value that we are going to insert is higher\r\n\t\t\t\tif($recBooks[$key] < $value){\r\n\t\t\t\t\t$recBooks[$key] = $value;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$value = $recBooks[$key];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$recBooks[$key] = $value;\t\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\r\n\r\n\t//getting the name of the books\r\n\t//$recBooks = array_keys($recBooks);\r\n\t//print_r($recBooks);\r\n\r\n\t//subtracting the items that the user has already seen\r\n\tforeach($prefsOriginal[$p1] as $k => $v){\r\n\t\t// echo('kitaab hai = '.$k);\r\n\t\t// echo ('<br>');\r\n\t\tif (in_array($k, $recBooks)){\r\n\t\t\t$key = array_search($k, $recBooks);\r\n\t\t\t//print $key;\r\n\t\t\tunset($recBooks[$key]);\r\n\t\t}\r\n\t}\r\n\r\n\t//getting the order of the books in which to display based on the rating match\r\n\t//sorting the array based on the key\r\n\tarsort($recBooks);\r\n\r\n\t//printing after removing the read books\r\n\t//echo ('<br><br>');\r\n\r\n\treturn $recBooks;\r\n\r\n}", "function getChallToplist($challenge_id,$limit) {\n $PDO = &DB::$PDO;\n static $toplist = array();\n $challenges = challenges(true);\n if (!$challenges[$challenge_id]) {\n return false;\n }\n\n $rec = DB::$PDO->prepare('SELECT\n u.username,\n u.country,\n a.size,\n ROUND((\n SELECT\n MIN(size)\n FROM\n attempts\n WHERE\n (challenge_id=a.challenge_id)\n AND\n passed\n ) / a.size * 1000) points\n FROM\n attempts a\n INNER JOIN\n users u\n ON\n (u.id=a.user_id)\n WHERE\n passed\n AND\n NOT EXISTS(\n SELECT\n 1\n FROM\n attempts\n WHERE\n (challenge_id=a.challenge_id)\n AND\n passed\n AND\n (user_id=a.user_id)\n AND\n ((size<a.size) OR ((size=a.size) AND ((time<a.time) OR ((time=a.time) AND (id<a.id)))))\n )\n AND\n (challenge_id=:cid)\n ORDER BY\n 3, a.time\n LIMIT 0, '.($limit? $limit : 99999));\n $rec->execute(Array(':cid' => $challenge_id));\n while(is_array($aRow = $rec->fetch(PDO::FETCH_ASSOC))){\n $list[] = $aRow;\n }\n return $list;\n}", "function getTopTrending($connection){\n $query = \"SELECT ft.*,fs.student_name AS trendingName,fs.student_profile AS trendingProfile FROM forum_trending ft LEFT JOIN forum_student fs on ft.user_id=fs.id ORDER BY coins DESC LIMIT 10\";\n //echo $query;\n $result = $connection->query($query);\n return $result;\n }", "private static function calculateTopChargersData(): array\n {\n $companyId = auth() -> user() -> company_id;\n\n $byOrders = DB :: select(self :: ordersFrequencyQuery( $companyId ));\n $byKilowatts = DB :: select(self :: accumulatedKilowattsPerChargerQuery( $companyId ));\n $byDuration = DB :: select(self :: accumulatedDurationPerChargerQuery( $companyId ));\n \n Helper :: castListInto($byOrders, 'charge_count', 'int');\n Helper :: castListInto($byKilowatts, 'kilowatts', 'float');\n Helper :: castListInto($byDuration, 'duration', 'float');\n\n array_walk($byKilowatts, function( $el ) {\n $el -> kilowatts /= 1000;\n $el -> kilowatts = round($el -> kilowatts, 2);\n });\n\n return [\n 'top_by_number_of_orders' => $byOrders,\n 'top_by_kilowatts' => $byKilowatts,\n 'top_by_duration' => $byDuration,\n ];\n }", "public function list_top($limit = 10) {\n //Let get_list do the work\n return $this->get_list(self::SERVICE_LIST_POPULAR, array('limit' => $limit), 'games');\n }", "public function topTags()\r\n {\r\n $this->paginatedResult->setLimit(15); \r\n\t $this->paginatedResult->setOffset(0);\r\n\t $query = \"SELECT count(a.tag_name) total, a.tag_name as name FROM tags a inner join list_tags_links b on a.ID = b.ID_tags inner join links l on l.id = b.ID_Links where l.id_status = 4 group by a.tag_name order by total desc\";\r\n\t $this->paginatedResult->setQuery( $query );\r\n\t $this->paginatedResult->setMethod( 'cache' );\r\n\t $this->paginatedResult->generatePagination();\r\n\t return $this->paginatedResult;\r\n }", "function wp_get_popular_importers()\n {\n }", "function show_best($a,$b,$c)\n{\n$sql = \"SELECT datum, views FROM stats_site WHERE pageid='\".$a.\"' AND modus='\".$b.\"' ORDER BY 'views' DESC LIMIT 0,$c\";\n$result = mysql_db_query(\"portal\",$sql);\necho \"<table>\";\nwhile ($zeile=mysql_fetch_array($result))\n{\nextract($zeile);\necho '<tr><td>';\nwochentag($datum);\necho '</td><td width=\"100\">'.substr($datum,8,2).'.'.substr($datum,5,2).'.'.substr($datum,0,4).'</td><td><b>'. $views .'</b></td></tr>';\n}\necho \"</table>\";\n}", "public function top_scores() {\n $this->View->render('info/top_scores', // <-- path to rendered file\n array(\n // get top scores\n 'ranking' => GameModel::get_ranking()\n ));\n }", "public function topGames()\n {\n $response = $this->client->get('/kraken/games/top');\n\n return $response->json();\n }", "function show_toprated()\n\t{\n\t\tglobal $required_position, $userdata, $template, $db, $SID, $lang, $phpEx, $garage_config, $board_config;\n\t\n\t\tif ( $garage_config['toprated_on'] != TRUE )\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$template_block = 'block_'.$required_position;\n\t\t$template_block_row = 'block_'.$required_position.'.row';\n\t\t$template->assign_block_vars($template_block, array(\n\t\t\t'BLOCK_TITLE' => $lang['Top_Rated_Vehicles'],\n\t\t\t'COLUMN_1_TITLE' => $lang['Vehicle'],\n\t\t\t'COLUMN_2_TITLE' => $lang['Owner'],\n\t\t\t'COLUMN_3_TITLE' => $lang['Rating'])\n\t\t);\n\t\n\t // What's the count? Default to 10\n\t $limit = $garage_config['toprated_limit'] ? $garage_config['toprated_limit'] : 10;\n\t\n\t\t$sql = \"SELECT g.id, g.member_id, m.username, CONCAT_WS(' ', g.made_year, makes.make, models.model) AS vehicle, sum( r.rating ) AS rating, count( * ) *10 AS total_rating\n\t\t\t FROM \" . GARAGE_RATING_TABLE . \" AS r\n\t\t\t\tLEFT JOIN \" . GARAGE_TABLE . \" AS g ON r.garage_id = g.id\n\t LEFT JOIN \" . GARAGE_MAKES_TABLE . \" AS makes ON g.make_id = makes.id \n\t LEFT JOIN \" . GARAGE_MODELS_TABLE . \" AS models ON g.model_id = models.id\n\t LEFT JOIN \" . USERS_TABLE . \" AS m ON g.member_id = m.user_id\n\t\t\t WHERE makes.pending = 0 AND models.pending = 0\n\t\t\t GROUP BY garage_id\n\t\t\t ORDER BY rating DESC LIMIT $limit\";\n\t \t\t \t\t\n\t \tif(!$result = $db->sql_query($sql))\n\t\t{\n\t\t\tmessage_die(GENERAL_ERROR, \"Could not query vehicle information\", \"\", __LINE__, __FILE__, $sql);\n\t\t}\n\t \t\t \n\t \twhile ( $vehicle_data = $db->sql_fetchrow($result) )\n\t \t{\n\t\t\t$template->assign_block_vars($template_block_row, array(\n\t\t\t\t'U_COLUMN_1' => append_sid(\"garage.$phpEx?mode=view_vehicle&amp;CID=\".$vehicle_data['id'].\"\"),\n\t\t\t\t'U_COLUMN_2' => append_sid(\"profile.$phpEx?mode=viewprofile&amp;\".POST_USERS_URL.\"=\".$vehicle_data['member_id'].\"\"),\n\t\t\t\t'COLUMN_1_TITLE' => $vehicle_data['vehicle'],\n\t\t\t\t'COLUMN_2_TITLE' => $vehicle_data['username'],\n\t\t\t\t'COLUMN_3' => $vehicle_data['rating'] . '/' . $vehicle_data['total_rating'])\n\t\t\t);\n\t \t}\n\t\n\t\t$required_position++;\n\t\treturn ;\n\t}", "function getMostVisited($link,$profile_id)\n\t\t{\n\t\t\t$sql = 'SELECT COUNT(id) as ct,place_id FROM check_in GROUP BY place_id,profile_id HAVING profile_id = \"'.$profile_id.'\" ORDER BY ct DESC LIMIT 3';\n\t\t\t\n\t\t\tif($result = mysqli_query($link, $sql)){\n\t\t\t\t$num_rows = mysqli_num_rows($result);\n\t\t\t\tif($num_rows == 0){\n\t\t\t\t\treturn '{\"status\":\"error\",\"message\":\"fav place not found\"}';\n\t\t\t\t}else{\n\t\t\t\t\t$rows = array();\n\t\t\t\t\twhile($r = mysqli_fetch_assoc($result)) {\n\t\t\t\t\t\t$sql = 'SELECT name,photo,location FROM place WHERE id=\"'.$r['place_id'].'\" LIMIT 1';\n\t\t\t\t\t\t$result2 = mysqli_query($link,$sql);\n\t\t\t\t\t\t$value = mysqli_fetch_object($result2);\n\t\t\t\t\t\t$r['name'] = $value->name;\n\t\t\t\t\t\t$r['photo'] = 'file_upload/place/'.$value->name.'-'.$value->location.'/'.$value->photo;\n\t\t\t\t\t\t$rows[] = $r;\n\t\t\t\t\t}\n\t\t\t\t\treturn $rows;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\treturn '{\"status\":\"error\",\"message\":\"sql error\"}';\n\t\t\t}\n\t\t}", "public function getTop()\n\t{\n\t\treturn $this->stackArray[0]??null;\n\t}", "public function top()\n {\n // $rating = DB::select(\"SELECT AVG(rating) AS rating FROM review ORDER BY rating ASC\");\n $animes = DB::select(\"SELECT animes.*,AVG(rating) AS rating\n FROM animes \n JOIN review ON animes.id = review.anime_id\n GROUP BY animes.id, title, description, cover, updated_at, created_at\n ORDER BY rating DESC\");\n return view('top', [\"animes\" => $animes]);\n }", "function udesign_entry_top() {\r\n do_action('udesign_entry_top');\r\n}", "function getInterceptionPoints() ;", "public function topBetter()\n\t\t{\n\t\t\t$categoryId= $this->input->get_post('category_id');\n\t\t\ttry{\n\t\t\t\tif($categoryId > 0 && $categoryId <= 9 ){\n\t\t\t\t\t$data = $this->userModel->topBetter($categoryId);\n\t\t\t\t\tif(count($data)>0){\n\t\t\t\t\t\t$this->_jsonData['status']=\"SUCCESS\";\n\t\t\t\t\t\t$this->_jsonData['message']=\"Top Better Selected\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->_jsonData['status']=\"FAILURE\";\n\t\t\t\t\t\t$this->_jsonData['message']=\"No Any Top Better\";\n\t\t\t\t\t}\n\t\t\t\t\t$this->_jsonData['data']=$data;\n\t\t\t\t}else{\n\t\t\t\t\t$this->_jsonData['status']=\"FAILURE\";\n\t\t\t\t\t$this->_jsonData['message']=\"Category id is missing \";\n\t\t\t\t}\n\t\t\t}catch(Exception $e){\n\t\t\t\t\t$this->_jsonData['status']=\"FAILURE\";\n\t\t\t\t\t$this->_jsonData['message']=\"Error Occured\";\n\t\t\t}\n\t\t\t\techo json_encode($this->_jsonData);\n\t\t\t$this->ServicesModel->createService($_REQUEST,$this->_jsonData,$_SERVER['SERVER_ADDR'],'topBetter',$_FILES);\n\n\t\t}", "function prof_print()\r\n{\r\n global $prof_timing, $prof_names, $profiling;\r\n $size = count($prof_timing);\r\n for($i=0;$i<$size - 1; $i++)\r\n {\r\n \tif($profiling)\r\n \t{\r\n \techo \"{$prof_names[$i]}\\n\";\r\n \techo sprintf(\" %f\\n\", $prof_timing[$i+1]-$prof_timing[$i]);\r\n \t}\r\n }\r\n if($profiling)\r\n {\r\n \techo \"{$prof_names[$size-1]}\\n\";\r\n\t}\r\n}", "public function hookTop(){\n $settings = unserialize( Configuration::get($this->name.'_settings') );\n \n $this->context->smarty->assign(array(\n 'user' => $settings['user'],\n 'widget_id' => $settings['widget_id'],\n 'tweets_limit' => $settings['tweets_limit'],\n 'follow_btn' => $settings['follow_btn']\n ));\n \n return $this->display(__FILE__, $this->name.'_scroll.tpl');\n }", "public function listRetailersByPopularityByName() {\n global $retailers;\n $this->mostpopularbyname = array_column($retailers, 'name');\n $this->popularities = array_column($retailers, 'popularity');\n array_multisort($this->popularities, SORT_DESC, $this->mostpopularbyname );\n\t\t\t\t//mostpopularbyname is now sorted by popularity. Searching this array will produce the first match in that order. \n\t\t}", "public function getFunctions();", "function topSubject($type, $fid = 0, $num = 0, $hour = 0) {\r\n\t\tglobal $timestamp;\r\n\t\t$toppedtype = array(\r\n\t\t\t1,\r\n\t\t\t2,\r\n\t\t\t3\r\n\t\t);\r\n\t\t!in_array($type, $toppedtype) && $type = 0;\r\n\t\t$type = (int) $type;\r\n\t\t$num = (int) $num;\r\n\t\t$hour = (int) $hour;\r\n\t\t!$fid && $fid = getCommonFid();\r\n\t\t!$num && $num = $this->cachenum;\r\n\t\t$time = $hour ? (strlen($hour) == 10 ? $hour : $timestamp - intval($hour) * 3600) : 0;\r\n\t\t$sqladd = '';\r\n\t\t$sqladd .= $time ? ' AND postdate>' . S::sqlEscape($time) : '';\r\n\t\t$fid && $sqladd .= \" AND fid IN ($fid) \";\r\n\t\t$sqlTopped = implode(',',array(PW_THREADSPECIALSORT_TOP1,PW_THREADSPECIALSORT_TOP2,PW_THREADSPECIALSORT_TOP3));\r\n\t\teval(\"\\$specialSort = PW_THREADSPECIALSORT_TOP$type;\");\r\n\t\t$sqladd .= $type ? ' AND topped=' . S::sqlEscape($specialSort) : \" AND topped IN($sqlTopped)\";\r\n\t\tif ($this->reality == false) {\r\n\t\t\t$sql = \"SELECT tid AS id,lastpost AS value FROM pw_threads WHERE ifcheck='1' $sqladd ORDER BY lastpost DESC \" . S::sqlLimit($num);\r\n\t\t} else {\r\n\t\t\t$sql = \"SELECT tid,fid,author,authorid,subject,type,postdate,hits,replies FROM pw_threads WHERE ifcheck='1' $sqladd ORDER BY lastpost DESC \" . S::sqlLimit($num);\r\n\t\t}\r\n\t\t$posts = array();\r\n\t\t$query = $this->db->query($sql);\r\n\t\twhile ($rt = $this->db->fetch_array($query)) {\r\n\t\t\t$post = array();\r\n\t\t\t$post['url'] = 'read.php?tid=' . $rt['tid'];\r\n\t\t\t$post['title'] = $rt['subject'];\r\n\t\t\t$post['value'] = $rt['postdate'];\r\n\t\t\t$post['image'] = '';\r\n\t\t\t$post['forumname'] = getForumName($rt['fid']);\r\n\t\t\t$post['forumurl'] = getForumUrl($rt['fid']);\r\n\t\t\tlist($post['topictypename'],$post['topictypeurl']) = getTopicType($rt['type'],$rt['fid']);\r\n\t\t\t$post['addition'] = $rt;\r\n\t\t\t$posts[] = $post;\r\n\t\t}\r\n\t\treturn $posts;\r\n\t}" ]
[ "0.61778456", "0.60519046", "0.58193743", "0.5813828", "0.578711", "0.5782836", "0.57103056", "0.56449556", "0.5540786", "0.54816514", "0.544142", "0.54278797", "0.5414964", "0.5287006", "0.5278998", "0.5265269", "0.5190515", "0.5129964", "0.51084334", "0.5104772", "0.50982785", "0.50744486", "0.5054813", "0.50283825", "0.5028082", "0.5017316", "0.4986703", "0.49714226", "0.4966288", "0.49509758", "0.49439058", "0.49429435", "0.49328214", "0.49249622", "0.4920685", "0.4910945", "0.49090862", "0.48699877", "0.48613146", "0.48579866", "0.48438126", "0.48438126", "0.48406255", "0.48386446", "0.4837952", "0.48260564", "0.4811948", "0.4797157", "0.47826806", "0.47682422", "0.47675127", "0.4759332", "0.47480443", "0.47480443", "0.47480443", "0.47478008", "0.474708", "0.47467205", "0.47467205", "0.47467205", "0.47435427", "0.47308773", "0.4727258", "0.47249988", "0.47174576", "0.47146767", "0.47128356", "0.46985334", "0.4692845", "0.46915644", "0.46751505", "0.4672932", "0.46720043", "0.4661319", "0.4657678", "0.46426734", "0.46393666", "0.46277377", "0.4623872", "0.4617927", "0.46160832", "0.46142966", "0.45999756", "0.45883688", "0.45747486", "0.45733458", "0.45679277", "0.456753", "0.45562327", "0.4552795", "0.45368415", "0.45311674", "0.4527026", "0.4526108", "0.45154476", "0.4514457", "0.451443", "0.45034546", "0.4503421", "0.45010635" ]
0.48312652
45
Check whether the account is a checking account. Entry's extra1 attribute will be the cheque no.
public function isChecking($id) { return ($id==11201); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function checkAccount($account) {\n if (parent::checkAccount($account)) {\n // Do other subclass checking\n return true;\n }\n \n return false;\n }", "public function validate_account(){ \n\t\tif($this->data['Client']['account_holder'][0] != ''){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function checkAccount(Account $account, int $lastBlock = -1)\n {\n // TODO: Implement checkAccount() method.\n }", "public static function checkAccount () {\n $user_id = session::getUserId();\n if ($user_id) {\n $a = q::select('account')->filter('id =', $user_id)->fetchSingle();\n \n // user may have been deleted\n if (empty($a)) {\n self::killSessionAll($user_id);\n return false;\n } \n \n if ($a['locked'] == 1) {\n self::killSessionAll($user_id);\n return false;\n }\n }\n return true;\n }", "private function _isValidAccount( $blz, $account ) {\n return ( TRUE );\n }", "public function checkaccount()\n {\n $this->data['lang'] = $this->language;\n $apiKey = preg_replace('/[^[:alnum:]]/i', '', $this->request->get['apikey']);\n $this->data['onego_jssdk_url'] = OneGoConfig::get('jsSdkURI').'?apikey='.$apiKey;\n $this->template = 'total/onego_status_jssdk.tpl';\n $this->response->setOutput($this->render());\n }", "public static function maybe_check_account() {\n\n\t\tif ( isset( $_GET['wcs_paypal'] ) && 'check_reference_transaction_support' === $_GET['wcs_paypal'] && wp_verify_nonce( $_GET['_wpnonce'], __CLASS__ ) ) {\n\n\t\t\t$redirect_url = remove_query_arg( array( 'wcs_paypal', '_wpnonce' ) );\n\n\t\t\tif ( WCS_PayPal::are_reference_transactions_enabled( 'bypass_cache' ) ) {\n\t\t\t\t$redirect_url = add_query_arg( array( 'wcs_paypal' => 'rt_enabled' ), $redirect_url );\n\t\t\t} else {\n\t\t\t\t$redirect_url = add_query_arg( array( 'wcs_paypal' => 'rt_not_enabled' ), $redirect_url );\n\t\t\t}\n\n\t\t\twp_safe_redirect( $redirect_url );\n\t\t}\n\t}", "function check_requirements()\n\t{\n\t\tif (!$this->obj_chart->verify_id())\n\t\t{\n\t\t\tlog_write(\"error\", \"page_output\", \"The requested account (\". $this->id .\") does not exist - possibly the account has been deleted.\");\n\t\t\treturn 0;\n\t\t}\n\n\t\tunset($sql_obj);\n\n\n\t\t// check the lock status of the account\n\t\t$this->locked = $this->obj_chart->check_delete_lock();\n\n\t\treturn 1;\n\t}", "public function isSignupChecked()\n {\n $v = Mage::helper('budgetmailer/config')->getAdvancedCreateAccount();\n \n return \n Professio_BudgetMailer_Model_Config_Source_Account::HIDDENCHECKED\n == $v\n || Professio_BudgetMailer_Model_Config_Source_Account::CHECKED\n == $v;\n }", "function show_accounts_info($check_value = '', $check_field = 'account_id', $return_field = 'account_username') {\n\t\tif ( $check_value == null || $check_field == null || $return_field == null ) {return false;}\n\t\t$this->load->database();\n\t\t$this->db->where($check_field, $check_value);\n\t\t$query = $this->db->get($this->db->dbprefix(\"ws_accounts\"));\n\t\tif ( $query->num_rows() > 0 ) {\n\t\t\t$row = $query->row();\n\t\t\t$query->free_result();\n\t\t\treturn $row->$return_field;\n\t\t}\n\t\t$query->free_result();\n\t\treturn false;\n\t}", "public function check() : bool\n { \n foreach($this->caller->numbersCalled as $key => $number)\n {\n \n foreach ($this->card->numbers as $key => $cardLine) \n {\n \n if(in_array($number, $cardLine)){\n $this->confirmations++;\n continue 2;\n }\n\n }\n }\n\n if($this->confirmations<24)\n {\n return false;\n }\n\n return true;\n }", "public function hasAccountId()\n {\n return $this->account_id !== null;\n }", "private function isAccountValid($account) {\n\t\t// Ensure the prefix is unique (or empty if self-hosted)\n\t\tif ($account->selfHost) return true;\n\t\t$sql = \t<<<EOD\n\t\t\t\tSELECT F_RootID, F_Prefix\n\t\t\t\tFROM T_AccountRoot\n\t\t\t\tWHERE F_Prefix=?\nEOD;\n\t\t$rs = $this->db->Execute($sql, array($account->prefix));\n\t\t\n\t\tswitch ($rs->RecordCount()) {\n\t\t\tcase 0:\n\t\t\t\t// There are no duplicates\n\t\t\t\treturn true;\n\t\t\tcase 1:\n\t\t\t\t// There is a duplicate, but if this is an update it might be the same record\n\t\t\t\treturn ((int)($rs->FetchNextObj()->F_RootID) == (int)($account->id));\n\t\t\tdefault:\n\t\t\t\t// Something is wrong with the database!\n\t\t\t\tthrow new Exception(\"isAccountValid: More than one account was returned with prefix '\".$account->prefix.\"'\");\n\t\t}\n\t}", "function emptyFieldAccount($account){\n\t\t$checker = false;\n\t\tif($account['userFirstName'] == ''){\n\t\t\t$checker = true;\n\t\t}\n\t\telseif ($account['userSurName'] == '') {\n\t\t\t$checker = true;\n\t\t}\n\t\telseif($account['userEmail'] == ''){\n\t\t\t$checker = true;\n\t\t}\n\t\telseif ($account['usernameCredentials'] == '') {\n\t\t\t$checker = true;\n\t\t}\n\t\telseif($account['passwordCredentials'] == ''){\n\t\t\t$checker = true;\n\t\t}\n\t\telseif ($account['userGender'] == '') {\n\t\t\t$checker = true;\n\t\t}\n\t\telseif($account['userAddress'] == ''){\n\t\t\t$checker = true;\t\n\t\t}\n\t\treturn $checker;\n\t}", "private function IsFreeAccount() {\n $ret = TRUE;\n $curl = curl_init();\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($curl, CURLOPT_USERAGENT, DOWNLOAD_STATION_USER_AGENT);\n curl_setopt($curl, CURLOPT_COOKIEFILE, $this->TOUTDEBRID_COOKIE);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($curl, CURLOPT_URL, $this->TOUTDEBRID_ACCOUNT_URL);\n $AccountRet = curl_exec($curl);\n curl_close($curl);\n preg_match('/Compte:.*<b>(.*)<\\/b>/', $AccountRet, $match);\n if (isset($match[0])) {\n $compare = strtolower($match[0]);\n if (strstr($compare, $this->TOUTDEBRID_PREMIUM_ACCOUNT_KEYWORD)) {\n $ret = FALSE;\n }\n }\n return $ret;\n }", "protected function _validateAccount() {\n\t\tif(!check($this->_username)) return;\n\t\tif(!check($this->_password)) return;\n\t\t$data = array(\n\t\t\t'username' => $this->_username,\n\t\t\t'password' => $this->_password\n\t\t);\n\t\tif($this->_md5Enabled) {\n\t\t\t$query = \"SELECT * FROM \"._TBL_MI_.\" WHERE \"._CLMN_USERNM_.\" = :username AND \"._CLMN_PASSWD_.\" = [dbo].[fn_md5](:password, :username)\";\n\t\t} else {\n\t\t\t$query = \"SELECT * FROM \"._TBL_MI_.\" WHERE \"._CLMN_USERNM_.\" = :username AND \"._CLMN_PASSWD_.\" = :password\";\n\t\t}\n\t\t\n\t\t$result = $this->db->queryFetchSingle($query, $data);\n\t\tif(!is_array($result)) return;\n\t\t\n\t\treturn true;\n\t}", "protected function _checkCard($account) {\n\t\t// Make sure it isn't on the blacklist\n\t\t$result = payment_option_credit_card::validate_blacklist ( $account );\n\t\tif (FALSE === $result ['valid']) {\n\t\t\t$this->response = $result ['error'];\n\t\t\t$this->status = self::STATUS_FAIL;\n\t\t\t$this->save_failure ();\n\t\t\t\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\t// Make sure it isn't on the greylist\n\t\t$result = payment_option_credit_card::validate_greylist ( $account );\n\t\tif (FALSE === $result ['valid']) {\n\t\t\t$this->response = $result ['error'];\n\t\t\t$this->status = self::STATUS_FAIL;\n\t\t\t$this->save_failure ();\n\t\t\t\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\treturn TRUE;\n\t}", "public function hasAccount($key);", "function validClientAccount($account_num){\r\n\t$db = new mysqli(\"localhost\",\"root\",\"***\",\"onlinebanking\");\r\n\t$cardNum = $db -> real_escape_string($_SESSION[\"loggedIn\"][1]);\r\n\t// CHEQUING ACCOUNT\r\n\tif($account_num[0]=='1'){\r\n\t\t$rChequing = $db -> query(\"SELECT account_num FROM chequingaccounts WHERE card_num='$cardNum'\");\r\n\t\t$db -> close();\r\n\t\t$chequingAccounts = $rChequing -> fetch_all(MYSQLI_ASSOC);\r\n\t\tif(empty($chequingAccounts)){\r\n\t\t\treturn False;\r\n\t\t} else{\r\n\t\t\t// Loops through each row, as client may have multiple chequing accounts\r\n\t\t\t$valid = False;\r\n\t\t\tforeach($chequingAccounts as $account){\r\n\t\t\t\tif($account['account_num']==$account_num){\r\n\t\t\t\t\t$valid = True;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif($valid){\r\n\t\t\t\treturn True;\r\n\t\t\t}else{\r\n\t\t\t\treturn False;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t// SAVINGS ACCOUNT\r\n\telseif($account_num[0]=='2'){\r\n\t\t$rSavings = $db -> query(\"SELECT account_num FROM savingsaccounts WHERE card_num='$cardNum'\");\r\n\t\t$db -> close();\r\n\t\t$savingsAccounts = $rSavings -> fetch_all(MYSQLI_ASSOC);\r\n\t\tif(empty($savingsAccounts)){\r\n\t\t\treturn False;\r\n\t\t} else{\r\n\t\t\t// Loops through each row, as client may have multiple savings accounts\r\n\t\t\t$valid = False;\r\n\t\t\tforeach($savingsAccounts as $account){\r\n\t\t\t\tif($account['account_num']==$account_num){\r\n\t\t\t\t\t$valid = True;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif($valid){\r\n\t\t\t\treturn True;\r\n\t\t\t}else{\r\n\t\t\t\treturn False;\r\n\t\t\t}\r\n\t\t}\r\n\t}else{\r\n\t\treturn False;\r\n\t}\r\n}", "public function preChecks($account) {\n // if env = local --> in dev mode --> skips prechecks\n if(config('app.env') == \"local\") {\n return true;\n }\n else {\n // Check if the domain is a valid gmail domain\n if(isset($account->user['domain']))\n return true;\n else\n return false;\n }\n }", "public function isAccountEligibleForChargeGeneration()\n\t{\n\t\t$objAccount = Account::getForId($this->account);\n\t\tif ($objAccount == null)\n\t\t{\n\t\t\tthrow new Exception(\"Associated Account (Id: {$this->account}) could not be found\");\n\t\t}\n\t\t\n\t\t// RecurringCharges only get generated if their associated account is active\n\t\tif ($objAccount->archived == ACCOUNT_STATUS_ACTIVE)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public function hasIsCheckIn(){\n return $this->_has(3);\n }", "public function hasAccid(){\n return $this->_has(1);\n }", "public function accountDetailsNotFilledIn()\n {\n return (empty(Mage::getStoreConfig('easywebshopsms/api_connection/api_host'))\n || empty(Mage::getStoreConfig('easywebshopsms/api_connection/api_user'))\n || empty(Mage::getStoreConfig('easywebshopsms/api_connection/api_pass'))\n || empty(Mage::getStoreConfig('easywebshopsms/api_connection/api_port'))\n );\n }", "protected function hasAccount(): bool\n {\n if (null === $this->hasAccount) {\n $account = $this->accountContext->getAccount();\n if (null !== $account) {\n $this->account = $account;\n $this->hasAccount = true;\n } else {\n $this->hasAccount = false;\n }\n }\n\n return $this->hasAccount;\n }", "public function justifiesNewIncidentForCheck(Check $check): bool\n {\n // if incident suppression is on, never allow new incident\n if ($check->areIncidentsSuppressed()) {\n return false;\n }\n\n $lastResult = $check->getResult();\n $lastIncident = $check->getIncident();\n\n // if current result is OK, no incident\n if ($this->ok()) {\n return false;\n }\n\n // current result NOT OK and last incident exists\n if ($lastIncident) {\n // last incident to-state different from $this' state\n return $lastIncident->getToState() !== $this->getState();\n }\n\n // current result NOT OK and NO last incident exists\n // and last result exists\n if ($lastResult) {\n // last result state different from new state\n return $lastResult->getState() !== $this->getState();\n }\n\n // not ok, no last incident, no last result\n return true;\n }", "public function checkAccountType($username)\n {\n $valid = false;\n $check = sizeof($this->checkAccount($username));\n \n // if the user is part of the ehealth staff will be returned in the query size\n if($check == 1) {\n $valid = true;\n }\n return $valid;\n }", "public function consentDatePerStatus($check){\n return true;\n }", "public function IsValid() : bool\n\t{\n\t\t$AccountType = $this->GetAccountType();\n\n\t\tif( $AccountType <= self::TypeInvalid || $AccountType > self::TypeAnonUser )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t$AccountUniverse = $this->GetAccountUniverse();\n\n\t\tif( $AccountUniverse <= self::UniverseInvalid || $AccountUniverse > self::UniverseDev )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t$AccountID = $this->GetAccountID();\n\t\t$AccountInstance = $this->GetAccountInstance();\n\n\t\tif( $AccountType === self::TypeIndividual )\n\t\t{\n\t\t\tif( $AccountID === 0 || $AccountInstance > self::WebInstance )\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tif( $AccountType === self::TypeClan )\n\t\t{\n\t\t\tif( $AccountID === 0 || $AccountInstance !== 0 )\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tif( $AccountType === self::TypeGameServer )\n\t\t{\n\t\t\tif( $AccountID === 0 )\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public function allowAccountSettlement() \n {\n $blReturn = (\n $this->oxorder__oxpaymenttype->value == 'fcpopayadvance' ||\n fcPayOnePayment::fcIsPayOneOnlinePaymentType($this->oxorder__oxpaymenttype->value)\n );\n\n return $blReturn;\n }", "function is_account_page() {\n\t\treturn is_page( carton_get_page_id( 'myaccount' ) ) || is_page( carton_get_page_id( 'edit_address' ) ) || is_page( carton_get_page_id( 'view_order' ) ) || is_page( carton_get_page_id( 'change_password' ) ) || is_page( carton_get_page_id( 'lost_password' ) ) || apply_filters( 'carton_is_account_page', false ) ? true : false;\n\t}", "function accountswitcher_is_installed()\n{\n\tglobal $db;\n\n\tif ($db->field_exists(\"as_uid\", \"users\") && $db->field_exists(\"as_canswitch\", \"usergroups\") && $db->field_exists(\"as_limit\", \"usergroups\"))\n\t{\n\t\treturn true;\n\t}\n\telse\n\t{\n\t\treturn false;\n\t}\n}", "public function hasMultipleAccounts();", "function check() {\r\n global $db;\r\n if (!isset($this->_check)) {\r\n $check_query = $db->Execute(\"select configuration_value from \" . TABLE_CONFIGURATION . \" where configuration_key = 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_STATUS'\");\r\n $this->_check = $check_query->RecordCount();\r\n }\r\n return $this->_check;\r\n }", "public function isAccountant()\n {\n return (\\Auth::user()->role == 'accountant');\n }", "public static function check ()\n {\n return (bool)self::$user;\n }", "public function account()\n {\n if ($response = $this->request('account')) {\n if (isset($response->success) && $response->success == true) {\n return $response->account;\n }\n }\n return false;\n }", "function check() {\n\n global $db;\n\n if (!isset($this->_check)) {\n $check_query = $db->Execute(\"select configuration_value from \" . TABLE_CONFIGURATION . \" where configuration_key = 'MODULE_PAYMENT_CCBILL_STATUS'\");\n $this->_check = $check_query->RecordCount();\n }// end if\n\n return $this->_check;\n\n }", "function validTransferAmount($account,$amount){\r\n\tif($account[0]=='1'){\r\n\t\t$db = new mysqli(\"localhost\",\"root\",\"***\",\"onlinebanking\");\r\n\t\t$amount = $db -> real_escape_string($amount);\r\n\t\t$rChequing = $db -> query(\"SELECT balance FROM chequingaccounts WHERE account_num='$account'\");\r\n\t\t$db -> close();\r\n\r\n\t\t$chequingBalance = $rChequing -> fetch_all(MYSQLI_ASSOC);\r\n\t\tif(empty($chequingBalance)){\r\n\t\t\treturn False;\r\n\t\t}else{\r\n\t\t\tif($chequingBalance[0]['balance']>=$amount){\r\n\t\t\t\treturn True;\r\n\t\t\t}else{\r\n\t\t\t\treturn False;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}elseif($account[0]='2'){\r\n\t\t$db = new mysqli(\"localhost\",\"root\",\"***\",\"onlinebanking\");\r\n\t\t$amount = $db -> real_escape_string($amount);\r\n\t\t$rSavings = $db -> query(\"SELECT balance FROM savingsaccounts WHERE account_num='$account'\");\r\n\t\t$db -> close();\r\n\r\n\t\t$savingsBalance = $rSavings -> fetch_all(MYSQLI_ASSOC);\r\n\t\tif(empty($savingsBalance)){\r\n\t\t\treturn False;\r\n\t\t}else{\r\n\t\t\tif($savingsBalance[0]['balance']>=$amount){\r\n\t\t\t\treturn True;\r\n\t\t\t}else{\r\n\t\t\t\treturn False;\r\n\t\t\t}\r\n\t\t}\r\n\t}else{\r\n\t\treturn False;\r\n\t}\r\n}", "function checkAccount($person){\r\n\r\n\t\t$pay_plan = $this->accounts_model->checkAccountPlan($person['id']);\r\n\r\n\t\tif(!empty($pay_plan) && count($pay_plan) > 0 ){\r\n\r\n\t\t\t$hrs = abs(strtotime( date('Y-m-d h:i:s') ) - strtotime($pay_plan['last_paid_date']))/(60*60);\r\n\t\t\t$hrs = (int)$hrs;\r\n\r\n\t\t\tif(strpos($person['role'], 'pro_')){\r\n\r\n\t\t\t\tif($person['pay_plan']==\"annually\"){\r\n\r\n\t\t\t\t\tif($hrs < 365*24)\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\telse{//monthly\r\n\r\n\t\t\t\t\tif($hrs < 31*24)\r\n\t\t\t\t\t\treturn true;\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tredirect('payplan/'.$person['id']);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\r\n\t\t\t$hrs = abs(strtotime(date('Y-m-d h:i:s')) - strtotime($person['regdate']))/(60*60);\r\n\t\t\t$hrs = (int)$hrs;\r\n\r\n\t\t\tif(strpos($person['role'], 'pro_')){\r\n\t\t\t\t\r\n\t\t\t\tif($hrs < 14*24){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tredirect('payplan/'.$person['id']);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//common users\r\n\t\treturn true;\r\n\t}", "public function check()\t{\n\t\treturn ! is_null($this->user());\n\t}", "public function checkData()\n\t{\n\t\t$result = parent::checkData();\n\t\t$query = (new \\App\\Db\\Query())->from($this->baseTable)->where(['server_id' => $this->get('server_id'), 'user_name' => $this->get('user_name')]);\n\t\tif ($this->getId()) {\n\t\t\t$query->andWhere(['<>', 'id', $this->getId()]);\n\t\t}\n\t\treturn !$result && $query->exists() ? 'LBL_DUPLICATE_LOGIN' : $result;\n\t}", "function _checkAllowedEntryType($entry) {\n\t\treturn in_array($entry, $this->allowedEntryTypes);\n\t}", "public function getCheckInfo()\n {\n return $this->check_info;\n }", "private function verifyAccount()\n {\n $check = $this->db->query('SELECT users.password, users.id FROM users WHERE username = ?', $this->username)->fetchArray();\n //Check of de user in de database staat.\n if (isset($check['password'])) {\n //Check of de password matched\n if (password_verify($this->password, $check['password'])) {\n echo \"AUTH verify complete\";\n $this->setLoggedinUser($check['id']);\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n }", "public function check()\n {\n return null !== $this->user();\n }", "abstract public function check();", "public function is_allowed($check = 'both', $blog_id = \\null)\n {\n }", "function checkAccount($name, $username){\n $query = \"SELECT * FROM users_account WHERE fullname = ? OR username = ?\";\n $paramType = \"ss\";\n $paramValue = array(\n $name,\n $username\n );\n $result = $this->db_handle->runquery($query, $paramType, $paramValue);\n return $result;\n }", "public function checkUserExist($account){\n $query = \"select * from members where account=\\\"$account\\\"\";\n $result = $this->dbh->query($query);\n if($result->rowCount() > 0){\n return true;\n }\n return false;\n }", "public static function check()\n {\n return !is_null(static::user());\n }", "function Check()\n {\n $this->_RegenerateId();\n return (isset($_SESSION['ss_fprint1']) && $_SESSION['ss_fprint1'] == $this->_Fingerprint());\n }", "public function check()\n\t{\n\t\treturn ! is_null($this->user());\n\t}", "function is_valid_account($account)\n{\n if (is_null($account) || strlen($account) < 2)\n {\n return false;\n }\n $pattern = \"/^[_a-z0-9\\-]+(\\.[_a-z0-9\\-]+)*$/\";\n return (preg_match($pattern, $account) == 1);\n}", "public function check()\n {\n if($this->user_provider->retrieveById($this->user_provider->getAuthIdentifier()))\n return true;\n\n return false;\n }", "public function getCheck()\n {\n return $this->check;\n }", "function check() {\r\n global $db;\r\n if (!isset($this->_check)) {\r\n $check_query = $db->Execute(\"select configuration_value from \" . TABLE_CONFIGURATION . \" where configuration_key = 'MODULE_PAYMENT_NOCHEX_STATUS'\");\r\n $this->_check = $check_query->RecordCount();\r\n }\r\n return $this->_check;\r\n }", "public function check_entry($data){\r\n\t\t$query = $this->conn->query($data);\r\n\t\t$row = $query->fetch_array(MYSQLI_ASSOC);\r\n\t\tif($query->num_rows>0){\r\n \t\t\treturn 1;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public function checkAccess()\n {\n $orders = $this->getOrders();\n\n return parent::checkAccess()\n && $orders\n && $orders[0]\n && $orders[0]->getProfile();\n }", "function check_pass($pass,$account){\n\t\t$arr = arr_one($account);\n\t\tif($pass == $arr['pass']) return true;\n\t\telse return false;\n\t}", "function has_account()\n{\n return file_exists(DEFAULT_ACCOUNTFILE);\n}", "public function check()\r\n\t{\r\n\t\treturn true;\r\n\t}", "abstract function check();", "public function check();", "public function check();", "public function check();", "public function check();", "public function check();", "static public function tryToDeleteAccount() {\r\n\t\tDB::getInstance()->stopAddingAccountID();\r\n\t\t$Account = DB::getInstance()->exec('DELETE FROM `'.PREFIX.'account` WHERE `deletion_hash`='.DB::getInstance()->escape($_GET['delete']).' LIMIT 1');\r\n\t\tDB::getInstance()->startAddingAccountID();\r\n\r\n\t\tif ($Account) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "function check() {\n if (! isset($this->_check)) {\n $check_query = tep_db_query(\"select configuration_value from \" . TABLE_CONFIGURATION . \" where configuration_key = 'MODULE_PAYMENT_CGP_\" . $this->module_cgp_text . \"_STATUS'\");\n $this->_check = tep_db_num_rows($check_query);\n }\n return $this->_check;\n }", "public function checkAccountAccess()\n\t{\n\t\tif (!$this->isActive())\n\t\t\tthrow new Exception(Yii::t('user', 'account_no_longer_active'));\n\n\t\tif ($this->tooManyFailedLogins())\n\t\t\tthrow new Exception(Yii::t('user', 'account_locked_failed_logins'));\n\t}", "public static function add_check( $name, $check ) {\n\n\t\tif ( ! preg_match( '#^[A-Za-z0-9-]+$#', $name ) ) {\n\t\t\tWP_CLI::error( \"Check name '{$name}' is invalid. Verify check registration.\" );\n\t\t}\n\n\t\tif ( ! is_object( $check ) ) {\n\t\t\tif ( ! class_exists( $check ) ) {\n\t\t\t\tWP_CLI::error( \"Class '{$check}' for check '{$name}' doesn't exist. Verify check registration.\" );\n\t\t\t}\n\t\t\t$check = new $check();\n\t\t}\n\t\tif ( ! is_subclass_of( $check, 'runcommand\\Doctor\\Checks\\Check' ) ) {\n\t\t\t$class = get_class( $check );\n\t\t\tWP_CLI::error( \"Class '{$class}' for check '{$name}' needs to extend Check base class. Verify check registration.\" );\n\t\t}\n\t\tself::$instance->checks[ $name ] = $check;\n\t}", "public function check_insta_user() {\n \n }", "public static function check();", "public function getUserCheck()\n {\n return $this->get(self::_USER_CHECK);\n }", "function eralha_crowdfunding_account(){\n\t\t\t\n\t\t}", "function checkValidLine_Y6051($acct){\r\n\t\t\tif( strlen($acct)==9 && is_numeric($acct) ){\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "function check_row($account){\n\t\t$run = check_login($account);\n\t\t$row = mysqli_num_rows($run);\n\t\treturn $row;\n\t}", "public function check() {}", "public function isSignupHidden()\n {\n return Professio_BudgetMailer_Model_Config_Source_Account::HIDDENCHECKED\n == Mage::helper('budgetmailer/config')->getAdvancedCreateAccount();\n }", "public function check()\n {\n $user = $this->user();\n return !empty($user);\n }", "public function isAbyss() : bool {\n return ($this->typeId->id === 3 && $this->security === 'A');\n }", "public function check(): bool\n {\n return ! is_null($this->user());\n }", "protected function checkLogin($check = ''){\n $uid = (int) session('uid');\n $username = session('username');\n if($check == '' && !empty($uid) && $uid > 0 ){\n return $uid;\n }elseif($check != '' && $check == $username && !empty($uid) && $uid > 0){\n return $uid;\n }else{\n return false;\n }\n }", "function isValidUserAccount(\n $user_info,\n $which_key = 'id', // userid, id, username\n $ref_status_text = ''\n){\n\n $field_name = '';\n $bind_types = '';\n switch ($which_key) {\n case \"id\" :\n case \"userid\" :\n $field_name = 'id';\n $bind_types .= 'i';\n break;\n case \"username\":\n $field_name = 'username';\n $bind_types .= 's';\n break;\n default :\n $ref_status_text = 'nosuchuserfield';\n return false;\n }\n\n $mysql = \"\n select count(*)\n from users\n where $field_name = ?\n and active_status = 1\";\n \n $status = 0;\n $count = 0;\n \n while (1) {\n \n try {\n $conn = db_connect();\n $sth = $conn->prepare($mysql);\n $sth->bind_param($bind_types, $user_info);\n $sth->execute();\n $sth->bind_result($count);\n $sth->fetch();\n } catch (mysqli_sql_exception $e) {\n $ermsg = 'isValidUserAccount() \\n' .\n 'sql: ' . $mysql . \"\\n\\n\" .\n 'user ' . $user_info . \"\\n\" .\n 'MYSQL ERROR TO STRING: ' . $e->__toString();\n writeDataToFile($ermsg, __FILE__, __LINE__);\n $ref_status_text = 'dberror';\n break;\n }\n\n if ($count == 1) {\n $status = 1;\n } elseif ($count > 1) {\n $ref_status_text = 'multipleuseraccounts';\n }\n break;\n }\n @$sth->close();\n return $status;\n}", "public function user_is_allowed()\n {\n //check if the record exist\n if (! $this->record) {\n $this->build_error('These record does not exist or it may not belong to you',404);\n }\n\n //check if the user is the owner of the entry\n if(!isOwner($this->record)) {\n $this->build_error('you are not the owner of this task');\n }\n\n //check if the incomming entries type is Array\n if (!is_array($this->request->entries)) {\n $this->build_error('Please the entries must be an Array');\n }\n }", "function accountswitcher_alerts_status()\n{\n\tglobal $db;\n\n\tif ($db->table_exists('alert_types'))\n\t{\n\t\t$query = $db->simple_select('alert_types', \"*\", \"code='accountswitcher_author'\");\n\t\tif ($db->num_rows($query) == 1)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "public static function nav_account($verbose=FALSE) {\n return (isset(self::$account->message) ? FALSE : self::$account);\n\t\t}", "public function isRublonSecuredAccount() {\n\t\treturn $this->isRublonConfigured() && ($this->isProjectOwner() || RublonFeature::isBusinessEdition());\n\t}", "static public function verifyAccountName(&$accountName, &$error)\n\t{\n\t\treturn true;\n\t}", "public function isCredit()\r\n\t{\r\n\t\treturn $this->root->getAttribute('credit') == 'oui';\r\n\t}", "public function check_installer($installer, $class_name)\n\t{\n\t}", "public function getNeedsExternalInfoInCheckout();", "public function checkUniqueMod($check) {\n return !$this->isModerator($this->data[$this->alias]['user_id'], $this->data[$this->alias]['forum_id']);\n }", "function check_rebrandly_account() {\n $options = get_option('sbrb_settings');\n // If API Key option not set, do nothing\n if( $options['sbrb_api_key'] == '' )\n return;\n\n $url = 'https://api.rebrandly.com/v1/account';\n\n $result = wp_remote_get(\n $url, \n array(\n 'headers' => array(\n 'apikey' => $options['sbrb_api_key']\n )\n )\n );\n\n $response = ( $result['response']['code'] == 200 ) ? true : false;\n\n return $response;\n }", "private function checkAccountStatus($account,$key){\n\t\tif($account == null){\n\t\t\treturn [\n\t\t\t\t\"status\"=>false,\n\t\t\t\t\"data\"=>[\n\t\t\t\t\t\"code\"=>4004,\n\t\t\t\t\t\"code_msg\"=>\"Invalid Account!\",\n\t\t\t\t\t\"msg_status\" => \"Invalid Account!\"\n\t\t\t\t]\n\t\t\t];\n\t\t}\n\t\tif($account->api_key != $key){\n\t\t\treturn [\n\t\t\t\t\"status\"=>false,\n\t\t\t\t\"data\"=>[\n\t\t\t\t\t\"code\"=>4003,\n\t\t\t\t\t\"code_msg\"=>\"Invalid Api-Key!\",\n\t\t\t\t\t\"msg_status\" => \"Invalid Api-Key!\"\n\t\t\t\t]\n\t\t\t];\n\t\t}\n\t\tif($account->suspended == 1){\n\t\t\treturn [\n\t\t\t\t\"status\"=>false,\n\t\t\t\t\"data\"=>[\n\t\t\t\t\t\"code\"=>4005,\n\t\t\t\t\t\"code_msg\"=>\"Account Suspended.\",\n\t\t\t\t\t\"msg_status\" => \"Account Suspended.\"\n\t\t\t\t]\n\t\t\t];\n\t\t}\n\t\treturn ['status'=>true,'data'=>[]];//if oky\n\t}", "protected function _fcpoCheckTxid()\n {\n $blAppointedError = false;\n $sTxid = $this->_oFcpoHelper->fcpoGetSessionVariable('fcpoTxid');\n\n $sTestOxid = '';\n if ($sTxid) {\n $sQuery = \"SELECT oxid FROM fcpotransactionstatus WHERE FCPO_TXACTION = 'appointed' AND fcpo_txid = '\" . $sTxid . \"'\";\n $sTestOxid = $this->_oFcpoDb->getOne($sQuery);\n }\n\n if (!$sTestOxid) {\n $blAppointedError = true;\n $this->oxorder__oxfolder = new oxField('ORDERFOLDER_PROBLEMS', oxField::T_RAW);\n $oLang = $this->_oFcpoHelper->fcpoGetLang();\n $sCurrentRemark = $this->oxorder__oxremark->value;\n $sAddErrorRemark = $oLang->translateString('FCPO_REMARK_APPOINTED_MISSING');\n $sNewRemark = $sCurrentRemark.\" \".$sAddErrorRemark;\n $this->oxorder__oxremark = new oxField($sNewRemark, oxField::T_RAW);\n }\n $this->_fcpoSetAppointedError($blAppointedError);\n\n return $blAppointedError;\n }", "protected function isAccountExist()\n {\n $sessionId = \\Session::getId();\n $account = Account::where('session_id', $sessionId)->first();\n if (!$account) return false;\n\n return true;\n }", "public static function checkThreemaId(&$threemaid, $type, &$error, $checkExistence = true)\n {\n $threemaid = strtoupper($threemaid);\n\n // check whether an id is formally correct\n if (!preg_match('/' . ThreemaGateway_Constants::REGEX_THREEMA_ID[$type] . '/', $threemaid)) {\n $error = (new XenForo_Phrase('threemagw_invalid_threema_id'))->render();\n return false;\n }\n\n if (!$checkExistence) {\n return true;\n }\n\n /** @var ThreemaGateway_Handler_Action_GatewayServer $gwServer */\n $gwServer = new ThreemaGateway_Handler_Action_GatewayServer;\n\n // fetches public key of an id to check whether it exists\n try {\n $gwServer->fetchPublicKey($threemaid);\n } catch (Exception $e) {\n // to show detailed error messages: $error = new XenForo_Phrase('threemagw_threema_id_does_not_exist') . ' ' . $e->getMessage();\n $error = (new XenForo_Phrase('threemagw_threema_id_does_not_exist'))->render();\n return false;\n }\n\n return true;\n }", "public function allowAccountAccess()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$this->checkAccountAccess();\n\t\t}\n\t\tcatch (Exception $ex)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "function check_requirements()\n\t{\n\t\t$sql_obj\t\t= New sql_query;\n\t\t$sql_obj->string\t= \"SELECT id, locked FROM account_gl WHERE id='\". $this->id .\"' LIMIT 1\";\n\t\t$sql_obj->execute();\n\n\t\tif (!$sql_obj->num_rows())\n\t\t{\n\t\t\tlog_write(\"error\", \"page_output\", \"The requested transaction (\". $this->id .\") does not exist - possibly the transaction has been deleted.\");\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql_obj->fetch_array();\n\n\t\t\t$this->locked = $sql_obj->data[0][\"locked\"];\n\t\t}\n\n\t\tunset($sql_obj);\n\n\n\t\treturn 1;\n\t}" ]
[ "0.6508236", "0.6457467", "0.60543174", "0.59628904", "0.5713142", "0.56188416", "0.55738455", "0.5544236", "0.55243814", "0.5481169", "0.54359627", "0.54025245", "0.53617996", "0.53388584", "0.53217274", "0.5316378", "0.5302692", "0.5300694", "0.52953017", "0.5282216", "0.5268898", "0.52370584", "0.52270406", "0.5189265", "0.51479995", "0.5114293", "0.51140654", "0.51118714", "0.50966656", "0.50917804", "0.5084384", "0.50843364", "0.50746036", "0.50708723", "0.50620157", "0.5054611", "0.50479406", "0.5011083", "0.5008907", "0.49982017", "0.49906892", "0.4950216", "0.49463853", "0.49323234", "0.49287266", "0.49064362", "0.49054152", "0.489771", "0.48948592", "0.489472", "0.4891544", "0.48813525", "0.4879321", "0.48775724", "0.48750097", "0.4873188", "0.48696092", "0.48658445", "0.48609996", "0.48528665", "0.4847586", "0.4800632", "0.47991663", "0.47780624", "0.47780624", "0.47780624", "0.47780624", "0.47780624", "0.47772938", "0.4775219", "0.4773824", "0.47737193", "0.4768899", "0.47660327", "0.47651252", "0.47610646", "0.47600448", "0.47582087", "0.47445512", "0.47422206", "0.47399455", "0.4725351", "0.47137746", "0.47116676", "0.47115287", "0.47113764", "0.47083086", "0.47041756", "0.47036836", "0.4692707", "0.46913967", "0.46913165", "0.46910363", "0.46826318", "0.4676843", "0.46693113", "0.46666217", "0.4664161", "0.46508095", "0.4649626", "0.46489394" ]
0.0
-1
Get product packages as defined on product level or default from configuration
protected function getPackages($product, $simpleProductWeight) { $packages = array(); if($product->getData('temando_packaging_mode')) { //packaging defined - use it for($i=1; $i<=5; $i++) { $desc = $product->getData("temando_package_{$i}_description"); if($desc && !empty($desc)) { $packages[] = array( 'description' => $product->getData("temando_package_{$i}_description"), 'packaging' => $product->getData("temando_package_{$i}_type"), 'fragile' => $product->getData("temando_package_{$i}_fragile"), 'weight' => $product->getData("temando_package_{$i}_weight"), 'length' => $product->getData("temando_package_{$i}_length"), 'width' => $product->getData("temando_package_{$i}_width"), 'height' => $product->getData("temando_package_{$i}_height"), ); } } } //use defaults if empty if(empty($packages)) { $packages[] = $this->getDefaultPackage($product, $simpleProductWeight); } return $packages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPackages()\n {\n return $this->file->get(self::SETTING_PACKAGES);\n }", "public static function getProductOptions()\n {\n return self::get('product') ?: [];\n }", "private function getAvailableSubpackages() {\n\t\t$availableSubpackages = array();\n\t\t$directories = t3lib_div::get_dirs(t3lib_extMgm::extPath('introduction', 'Resources/Private/Subpackages'));\n\t\tforeach($directories as $directory) {\n\t\t\tif (file_exists(t3lib_extMgm::extPath('introduction', 'Resources/Private/Subpackages/' . $directory . '/Configuration.php'))) {\n\t\t\t\t$availableSubpackages[] = $directory;\n\t\t\t}\n\t\t}\n\t\treturn $availableSubpackages;\n\t}", "function getPackaging() {\n\t\treturn $this->_packaging;\n\t}", "public static function getProductsOptions()\n {\n return self::get('products') ?: [];\n }", "public function getProductDefaults()\n {\n $defaults = $this->_config->get('product_defaults');\n\n if (is_array($defaults)) {\n return $defaults;\n }\n\n return [];\n }", "public function getConfig($package);", "public function getPackageInfo()\n {\n return $this->getConfig()->getPackageInfo();\n }", "public function get_additional_packages()\n {\n return array();\n }", "public function getPackages()\n\t{\n\t\treturn $this->packages;\n\t}", "public function getProduct();", "public function getProductOption();", "public function getPackage() {}", "private function getInstallments()\n {\n $aRes = [\n 'productType' => $this->oConfig->get('productType'),\n 'productID' => $this->oConfig->get('productID'),\n ];\n return $aRes;\n }", "private function getProducts(): array\n {\n return $this->_type === 'price'\n ? $this->_priceProducts\n : $this->_stockProducts;\n }", "abstract public function getPackage();", "private function get_packing_items() {\n\t\t$product_pane = $this->dom->find( '#j-product-desc' );\n\t\tif ( ! $product_pane ) {\n\t\t\treturn [];\n\t\t}\n\n\t\t$packaging_list = $product_pane[0]->find( '.product-packaging-list' );\n\t\tif ( ! $packaging_list ) {\n\t\t\treturn [];\n\t\t}\n\n\t\t$items = $packaging_list[0]->find( 'li.packaging-item' );\n\t\tif ( ! $items ) {\n\t\t\treturn [];\n\t\t}\n\n\t\treturn $items;\n\t}", "public function getAvailablePackages() {}", "function read_package_config($package_name) {\n\tglobal $g;\n\n\t$pkg_info_xml = '/usr/local/share/' . g_get('pkg_prefix') . $package_name .\n\t '/info.xml';\n\n\tif (!file_exists($pkg_info_xml)) {\n\t\treturn false;\n\t}\n\n\t$pkg_info = parse_xml_config_pkg($pkg_info_xml, 'pfsensepkgs');\n\n\tif (empty($pkg_info)) {\n\t\treturn false;\n\t}\n\n\t/* it always returns an array with 1 item */\n\treturn $pkg_info['package'][0];\n}", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "protected function getDefaultPackage($product, $simpleProductWeight) {\n\treturn array(\n\t 'description' => $product->getName(),\n\t 'packaging' => $this->getConfigData('defaults/packaging'),\n\t 'fragile' => $this->getConfigData('defaults/fragile'),\n\t 'weight' => $product->getWeight() ? $product->getWeight() : $simpleProductWeight,\n\t 'length' => $this->getConfigData('defaults/length'),\n\t 'width' => $this->getConfigData('defaults/width'),\n\t 'height' => $this->getConfigData('defaults/height')\n\t);\n }", "public function provides()\n\t{\n\t\treturn array('products');\n\t}", "public function getRequiredPackages();", "protected function getProduct() {\n return $this->registry->registry('product');\n }", "public function package() {\n\t\treturn $this->package;\n\t}", "public function getProduct()\n {\n return $this->coreRegistry->registry('product');\n }", "protected function get_detected_products () {\n if ( $this->type == 'theme' ) {\n return $this->get_detected_theme();\n } elseif ( $this->type == 'plugin' ) {\n return $this->get_detected_plugins();\n } else {\n return array();\n }\n }", "function getProducts()\n {\n $ret = array();\n foreach ($this->getItems() as $item)\n if ($item->item_type == 'product')\n if ($pr = $item->tryLoadProduct())\n $ret[] = $pr;\n return $ret;\n }", "function stal_woo_get_global_product() {\n\t\tglobal $product;\n\n\t\treturn $product;\n\t}", "public function getActivePackages() {}", "public function getPackagesByApp() {\n // create entity and set its values\n $entity = new Package();\n $entity->setApp($this->app);\n $entity->setLang($this->lang);\n $entity->setState($this->state);\n $entity->setType($this->type);\n\n // call mapper for data\n $data = $this->packagesMapper->getPackagesByApp($entity);\n\n // return data\n return $data;\n }", "public function getProductos(){\n\t\n\treturn $this->productos;\n\t}", "public function sizes(){\n\t\t$meta = ProductMeta::where('product_id', $this->id)->where('meta', 'product_packages_id')->get();\n\t\t$metaGroup = array();\n\t\tif($meta){\n\t\t\tforeach($meta as $each){\n\t\t\t\t$metaGroup[] = $each->value;\n\t\t\t}\n\t\t}\n\t\treturn ProductPackage::find($metaGroup);\n\t}", "public function getAvailablePackages(): array\n {\n return $this->packages;\n }", "public function getJsonConfig()\n {\n /* @var $product \\Magento\\Catalog\\Model\\Product */\n $product = $this->getProduct();\n\n if (!$this->hasOptions()) {\n $config = [\n 'productId' => $product->getId(),\n 'priceFormat' => $this->_localeFormat->getPriceFormat()\n ];\n return $this->_jsonEncoder->encode($config);\n }\n\n $tierPrices = [];\n $tierPricesList = $product->getPriceInfo()->getPrice('tier_price')->getTierPriceList();\n foreach ($tierPricesList as $tierPrice) {\n $tierPrices[] = $tierPrice['price']->getValue();\n }\n\n //qxd testing lo de los productos */\n\n $qxd_config = null;\n\n /*$writer = new \\Zend\\Log\\Writer\\Stream(BP . '/var/log/configurable.log');\n $logger = new \\Zend\\Log\\Logger();\n $logger->addWriter($writer);\n $logger->info(print_r($product->getTypeId(),true));\n $logger->info(print_r('nuevo',true));*/\n\n switch ($product->getTypeId()) {\n case 'bundle': \n //$bundle_block= $this->getLayout()->createBlock('Magento\\Bundle\\Block\\Catalog\\Product\\View\\Type\\Bundle');\n\n //$qxd_config = $bundle_block->getJsonConfig();\n break;\n\n case 'configurable':\n\n $qxd_config = $price_config = json_decode($product->getPriceRangeConfig(), true); \n /*$configurable_block= $this->getLayout()->createBlock('Magento\\ConfigurableProduct\\Block\\Product\\View\\Type\\Configurable');\n\n $configurable_config = $configurable_block->getJsonConfig();\n if($configurable_config){\n $configurable_config = json_decode($configurable_config, true);\n $options = $configurable_config[\"optionPrices\"];\n\n $first_option = reset($options);\n $higherRegular = $first_option[\"oldPrice\"]['amount'];\n $lowerRegular = $first_option[\"oldPrice\"]['amount'];\n $regularPrice = $first_option[\"oldPrice\"]['amount'];\n $specialPrices = [];\n\n $hasSameRegularPrice = true;\n $hasSameSpecialPrice = true;\n\n $hasSpecialPrice = false;\n foreach ($options as $price) {\n //regular\n\n //get higher\n if($price[\"oldPrice\"]['amount'] > $higherRegular)\n $higherRegular = $price[\"oldPrice\"]['amount'];\n\n //get lower\n if($price[\"oldPrice\"]['amount'] < $lowerRegular)\n $lowerRegular = $price[\"oldPrice\"]['amount'];\n\n if($price[\"oldPrice\"]['amount'] != $regularPrice)\n $hasSameRegularPrice = false;\n\n\n //special\n\n if($price[\"finalPrice\"]['amount'] < $price[\"oldPrice\"]['amount']){\n $hasSpecialPrice = true;\n $specialPrices[] = $price[\"finalPrice\"]['amount'];\n }\n }\n\n if(empty($specialPrices)){\n $qxd_config['hasSpecialPrice'] = false;\n }else{\n $qxd_config['hasSpecialPrice'] = true;\n sort($specialPrices);\n $hasSameSpecialPrice = count(array_unique($specialPrices)) == 1;\n $qxd_config['rangeSpecial'] = [\"lower\" => $specialPrices[0], \"higher\" => $specialPrices[count($specialPrices) - 1]];\n \n }\n\n $qxd_config['rangeRegular'] = [\"lower\" => $lowerRegular, \"higher\" => $higherRegular];\n $qxd_config['hasSameSpecialPrice'] = $hasSameSpecialPrice;\n $qxd_config['hasSameRegularPrice'] = $hasSameRegularPrice; \n\n\n }*/\n break;\n \n default:\n break;\n }\n\n $qxd_price = [\n 'amount' => 0,\n 'adjustments' => [],\n 'data' => $qxd_config\n ];\n\n $config = [\n 'productId' => $product->getId(),\n 'priceFormat' => $this->_localeFormat->getPriceFormat(),\n 'prices' => [\n 'oldPrice' => [\n 'amount' => $product->getPriceInfo()->getPrice('regular_price')->getAmount()->getValue(),\n 'adjustments' => []\n ],\n 'basePrice' => [\n 'amount' => $product->getPriceInfo()->getPrice('final_price')->getAmount()->getBaseAmount(),\n 'adjustments' => []\n ],\n 'finalPrice' => [\n 'amount' => $product->getPriceInfo()->getPrice('final_price')->getAmount()->getValue(),\n 'adjustments' => []\n ]\n ],\n 'idSuffix' => '_clone',\n 'tierPrices' => $tierPrices,\n 'qxd_price' => $qxd_price\n ];\n\n $responseObject = new \\Magento\\Framework\\DataObject();\n $this->_eventManager->dispatch('catalog_product_view_config', ['response_object' => $responseObject]);\n if (is_array($responseObject->getAdditionalOptions())) {\n foreach ($responseObject->getAdditionalOptions() as $option => $value) {\n $config[$option] = $value;\n }\n }\n\n return $this->_jsonEncoder->encode($config);\n }", "public function getPackageName(): string;", "public function getProductConfigurationHelpers()\n {\n return $this->_productHelpers;\n }", "public function getPackageList()\r\n {\r\n $directory = Mage::getBaseDir('design') . DS . 'frontend';\r\n return $this->_listDirectories($directory);\r\n }", "public function getPackage() {\n\t\t\t$packages_json = $this->application->configuration([ \"packagemanager\", \"packages_json\" ]);\n\t\t\t$packages = (new Packages($this->application))->getPackages();\n\t\t\tif(isset($packages->packages->{$this->package_directory}))\n\t\t\t\treturn new Object($packages->packages->{$this->package_directory});\n\t\t\telse return null;\n\t\t}", "public function getPackagesByGlobal($global = TRUE) {\n return $this->entityTypeManager->getStorage('exo_icon_package')->loadByProperties(['global' => $global]);\n }", "public function getPackages(): array\n {\n return $this->packagesClasses;\n }", "public function getPackageList() {\n return $this->packageDao->getPackageList();\n }", "function get_base_pkg_name() {\n\tglobal $g;\n\n\t/* XXX: Use pkg annotation */\n\tif (is_pkg_installed(g_get('product_name') . '-base-' . g_get('product_name'))) {\n\t\treturn g_get('product_name') . '-base-' . g_get('product_name');\n\t} else if (is_pkg_installed(g_get('product_name') . '-base')) {\n\t\treturn g_get('product_name') . '-base';\n\t}\n\treturn false;\n}", "public function getProductors ()\n {\n if (empty($this->production)) {\n $this->getCompanyCredits();\n }\n\n return $this->production;\n }", "private function getPacking($product)\n { \n $packings= $product->packings;\n\n if(!$packings->isEmpty())\n {\n $packingName=NULL;\n\n foreach ($packings as $packing) {\n\n $packingName .= $packing->packing_type . \"+\";\n }\n\n return trim($packingName,\"+\");\n\n }\n else\n {\n return NULL;\n }\n }", "public function getPackages()\n {\n $packages = array();\n foreach( $this->getCategories() as $category ) {\n $packages[ $category->name ] = $category->getPackages();\n }\n return $packages;\n }", "function read_package_configurationfile($package_name) {\n\t$pkg_config = array();\n\t$id = get_package_id($package_name);\n\t$pkg_data = config_get_path(\"installedpackages/package/{$id}\", []);\n \n\tif ($id < 0 || empty($pkg_data)) {\n\t\treturn $pkg_config;\n\t}\n\n\tif (empty($pkg_data['configurationfile'])) {\n\t\treturn $pkg_config;\n\t}\n\n\tif (!file_exists('/usr/local/pkg/' . $pkg_data['configurationfile'])) {\n\t\treturn $pkg_config;\n\t}\n\n\t$pkg_config = parse_xml_config_pkg('/usr/local/pkg/' .\n\t $pkg_data['configurationfile'], \"packagegui\");\n\n\treturn $pkg_config;\n}", "public function provides()\n {\n return array('products', 'loops.products');\n }", "public function getAccessPackages()\n {\n if (array_key_exists(\"accessPackages\", $this->_propDict)) {\n return $this->_propDict[\"accessPackages\"];\n } else {\n return null;\n }\n }", "public function getProductDefaultConfig() {\n //Selected Image Categories\n $categories = array();\n $imageCategories = $this->artworkcateFactory->create()->getArtworkCateCollection();\n if($imageCategories->count()) {\n foreach($imageCategories as $_category) {\n $categories[$_category->getId()] = array('position' => $_category->getPosition());\n } \n }\n return array(\n 'selected_image' => json_encode($categories),\n );\n }", "protected function get_product_reference_list () {\n global $_ud_license_updater;\n //echo \"<pre>\"; print_r( $_ud_license_updater ); echo \"</pre>\"; die();\n $response = array();\n if( \n isset( $_ud_license_updater[ $this->slug ] ) \n && is_callable( array( $_ud_license_updater[ $this->slug ], 'get_products' ) ) \n ) {\n $response = $_ud_license_updater[ $this->slug ]->get_products();\n }\n return $response;\n }", "function _getPackageFromFolder()\n {\n $p_dir = JRequest::getString('install_directory');\n $p_dir = JPath::clean( $p_dir );\n\n // Did you give us a valid directory?\n if( !is_dir($p_dir) ) {\n JError::raiseWarning(100, JText::_('Please enter a package directory'));\n return false;\n }\n\n // Detect the package type\n $type = JInstallerHelper::detectType( $p_dir );\n\n // Did you give us a valid package?\n if( !$type || ($type != 'sef_ext') ) {\n JError::raiseWarning(100, JText::_('Path does not have a valid sef_ext package'));\n return false;\n }\n\n $package['packagefile'] = null;\n $package['extractdir'] = null;\n $package['dir'] = $p_dir;\n $package['type'] = $type;\n\n return $package;\n }", "public function getProduct() {\n return $this->_registry->registry ( 'current_product' );\n }", "protected function _getAdditionalConfig()\n {\n $configuration = array();\n\n foreach ($this->getAllowProducts() as $simpleProduct) {\n $configuration['simple_skus'][$simpleProduct->getId()] = $simpleProduct->getSku();\n }\n\n return $configuration;\n }", "protected function getVendorReplacement()\n {\n return $this->theme->config('composer.vendor');\n }", "public function getProducts_options() {\n\t\treturn $this->products_options;\n\t}", "public function getShowInProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_product');\n }", "function get_meta_pkg_name() {\n\tglobal $g;\n\n\t/* XXX: Use pkg annotation */\n\tif (is_pkg_installed(g_get('product_name'))) {\n\t\treturn g_get('product_name');\n\t}\n\tforeach (g_get('alternativemetaports') as $suffix) {\n\t\tif (is_pkg_installed(g_get('product_name') . '-' . $suffix)) {\n\t\t\treturn g_get('product_name') . '-' . $suffix;\n\t\t}\n\t}\n\treturn false;\n}", "public function getPackage()\n {\n return $this->package;\n }", "public function getPackage()\n {\n return $this->package;\n }", "public static function getPackageName() {\n\t\treturn self::$_packageName;\n\t}", "public static function getInstalledPackages()\n {\n $packages = array();\n foreach (self::getInstalled() as $installed) {\n $packages[] = array_keys($installed['versions']);\n }\n\n\n if (1 === \\count($packages)) {\n return $packages[0];\n }\n\n return array_keys(array_flip(\\call_user_func_array('array_merge', $packages)));\n }", "public function getProductPriceAll()\n {\n return Mage::getStoreConfig('splitprice/split_price_config/show_all');\n }", "public function getProductTemandoParams() {\n\t\n\t$return = array('packaging_mode');\n\tfor($i=1; $i<=5; $i++) {\n\t $return[] = \"package_{$i}_description\";\n\t $return[] = \"package_{$i}_type\";\n\t $return[] = \"package_{$i}_fragile\";\n\t $return[] = \"package_{$i}_weight\";\n\t $return[] = \"package_{$i}_length\";\n\t $return[] = \"package_{$i}_width\";\n\t $return[] = \"package_{$i}_height\";\n\t}\n\treturn $return;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getPackages()\n {\n $packages = $this->getShipment()->getPackages();\n if (!$packages) {\n return [];\n }\n return $this->json->unserialize($packages);\n }", "public function getVendorPackageService() {\n\t\treturn $this->get('sly-service-package-vendor');\n\t}", "private function getAvailableProductCustomOption(string $productSku): array\n {\n $query = <<<QUERY\n{\n products(filter: {sku: {eq: \"${productSku}\"}}) {\n items {\n name\n ... on CustomizableProductInterface {\n options {\n option_id\n title\n ... on CustomizableDropDownOption {\n value {\n option_type_id\n title\n }\n }\n }\n }\n }\n }\n}\nQUERY;\n\n $response = $this->graphQlQuery($query);\n $this->assertNotEmpty($response['products']['items'], \"No result for product with sku: '{$productSku}'\");\n return $response['products']['items'][0]['options'];\n }", "public function getProductType();", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "private function get_package() {\n\t\t$translation = $this->get_item_from_api();\n\t\tif ( $translation && isset( $translation['package'] ) ) {\n\t\t\treturn $translation['package'];\n\t\t}\n\n\t\t// Fallback.\n\t\treturn \"{$this->api_url}/{$this->slug}/{$this->slug}-{$this->lang}.zip\";\n\t}", "public function getProdGeneral()\n {\n return $this->prod_general;\n }", "protected function getProducts()\r\n {\r\n $category = new Category((int)Configuration::get('FIELD_FEATUREDPSL_CAT'), (int)Context::getContext()->language->id);\r\n\r\n $searchProvider = new CategoryProductSearchProvider(\r\n $this->context->getTranslator(),\r\n $category\r\n );\r\n\r\n $context = new ProductSearchContext($this->context);\r\n\r\n $query = new ProductSearchQuery();\r\n\r\n $nProducts = (int)Configuration::get('FIELD_FEATUREDPSL_NBR');\r\n if ($nProducts < 0) {\r\n $nProducts = 12;\r\n }\r\n\r\n $query\r\n ->setResultsPerPage($nProducts)\r\n ->setPage(1)\r\n ;\r\n $query->setSortOrder(new SortOrder('product', 'position', 'asc'));\r\n $result = $searchProvider->runQuery(\r\n $context,\r\n $query\r\n );\r\n\r\n $assembler = new ProductAssembler($this->context);\r\n\r\n $presenterFactory = new ProductPresenterFactory($this->context);\r\n $presentationSettings = $presenterFactory->getPresentationSettings();\r\n $presenter = new ProductListingPresenter(\r\n new ImageRetriever(\r\n $this->context->link\r\n ),\r\n $this->context->link,\r\n new PriceFormatter(),\r\n new ProductColorsRetriever(),\r\n $this->context->getTranslator()\r\n );\r\n\r\n $products_for_template = [];\r\n\t\t$products_features=$result->getProducts();\r\n\t\tif(is_array($products_features)){\r\n\t\t\tforeach ($products_features as $rawProduct) {\r\n\t\t\t\t$products_for_template[] = $presenter->present(\r\n\t\t\t\t\t$presentationSettings,\r\n\t\t\t\t\t$assembler->assembleProduct($rawProduct),\r\n\t\t\t\t\t$this->context->language\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n return $products_for_template;\r\n }", "function thrive_dashboard_get_products()\n{\n $products = array();\n $products = apply_filters('thrive_dashboard_installed_products', $products);\n\n return $products;\n}", "private function packageItems()\n {\n /**\n * Defined variables\n */\n $request = $this->getRequest();\n $paramNameRequest = $request->getParam('m');\n\n $packageName = str_replace('_', '/', $paramNameRequest);\n\n $searchCriteriaBuilder = $this->searchCriteria;\n $searchCriteria = $searchCriteriaBuilder->addFilter(\n 'name',\n $packageName,\n 'eq'\n )->create();\n $packagesFiles = $this->packagesRepository->getList($searchCriteria);\n $packagesItems = $packagesFiles->getItems();\n\n return $packagesItems;\n }", "private function _fetchPackagesToImport(SimpleXMLElement $el, $basePath)\n\t{\n\t\t// Initialize variables.\n\t\t$packages = array();\n\n\t\t// If we have no packages specified assume we'll get them all imported.\n\t\tif (!isset($el->packages[0]) || !isset($el->packages[0]->package[0]))\n\t\t{\n\t\t\treturn $packages;\n\t\t}\n\n\t\t// Check to see if legacy support should be imported.\n\t\t$legacy = (((string) $el['legacy'] == 'true') ? true : false);\n\n\t\t// Get the package set element and determine if we are using an exclusion rule or not.\n\t\t$packageSet = $el->packages[0];\n\t\t$exclude = (((string) $packageSet['exclude'] == 'true') ? true : false);\n\n\t\t// Get the enumerated packages from the XML.\n\t\t$enumerated = array();\n\t\tforeach ($packageSet->package as $p)\n\t\t{\n\t\t\t$enumerated[] = (string) $p['name'];\n\t\t}\n\n\t\t// We are using an exclusion rule. Sounds like work.\n\t\tif ($exclude)\n\t\t{\n\t\t\t// Iterate over the main package directory contents.\n\t\t\t$directory = new DirectoryIterator($basePath . '/joomla');\n\t\t\tforeach ($directory as $child)\n\t\t\t{\n\t\t\t\tif ($child->isDir() && !$child->isDot() && !in_array($child->getFilename(), $enumerated))\n\t\t\t\t{\n\t\t\t\t\t$packages[] = $child->getFilename();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Iterate over the legacy package directory contents if legacy is enabled.\n\t\t\tif ($this->_legacy)\n\t\t\t{\n\t\t\t\t$directory = new DirectoryIterator($basePath . '/legacy');\n\t\t\t\tforeach ($directory as $child)\n\t\t\t\t{\n\t\t\t\t\tif ($child->isDir() && !$child->isDot() && !in_array($child->getFilename(), $enumerated))\n\t\t\t\t\t{\n\t\t\t\t\t\t$packages[] = $child->getFilename();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Easy peasy, just get the enumerated packages.\n\t\telse\n\t\t{\n\t\t\t$packages = $enumerated;\n\t\t}\n\n\t\t// Make sure we have unique values.\n\t\t$packages = array_unique($packages);\n\n\t\treturn $packages;\n\t}", "public function package($name)\n\t{\n\t\tif( ! isset($this->packages[ $name ]))\n\t\t{\n\t\t\tthrow new PackageNotDefinedException(\"$name is not defined\");\n\t\t}\n\t\treturn $this->packages[ $name ];\n\t}", "protected function _getConfig()\n {\n return $this->_vendor;\n }", "protected function getPackageName()\n {\n return null;\n }", "public function getProducts() {\n\t\treturn $this->requester->request('GET', $this->url);\n\t}", "private function getPackage() {\n $objModulo = new Modulo($this->dbAdapter);\n $lista_modulos = $objModulo->getPackage();\n\n $returnValue = array();\n if (count($lista_modulos) > 0) {\n foreach ($lista_modulos as $index => $modulo) {\n $returnValue[$modulo['id']] = $modulo['chr_nombre_publico'];\n }\n }\n //var_dump($returnValue);\n return $returnValue;\n }", "public function getCssCustomProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/css_product');\n }", "function ava_get_single_product_layouts() {\n\n\t$image_dir = get_template_directory_uri() . '/inc/customizer/images/';\n\n\treturn apply_filters(\n\t\t'ava_single_product_layouts', array(\n\t\t\t'single-product-1' => esc_url( $image_dir ) . 'single-product-1.svg',\n\t\t\t'single-product-2' => esc_url( $image_dir ) . 'single-product-2.svg',\n\t\t\t'single-product-3' => esc_url( $image_dir ) . 'single-product-3.svg',\n\t\t)\n\t);\n}", "public function getProducts() {\n\t\t$baseUrl = 'https://'.$this->apiKey.':'.$this->password.'@'.$this->domain.'.myshopify.com';\n\t\t$request = '/admin/products.json';\n\t\t$method = 'GET';\n\n\t\t$result = $this->curl($baseUrl.$request, $method);\n\n\t\t$products = array();\n\t\tforeach($result->products as $shopify) {\n\t\t\tforeach($shopify->variants as $variant) {\n\t\t\t\t// need to make a class Product in this folder?\n\t\t\t\t$product = new stdClass;\n\t\t\t\t$product->id \t\t= $shopify->id;\n\t\t\t\t$product->sku \t\t= $variant->sku;\n\t\t\t\t$product->name \t\t= $shopify->title;\n\t\t\t\t$product->price \t= $variant->price;\n\t\t\t\t$product->quantity \t= $variant->inventory_quantity;\t\n\t\t\t\tarray_push($products, $product);\n\t\t\t}\n\t\t}\n\n\t\treturn $products;\n\t}", "function pkg_list_repos() {\n\tglobal $g;\n\n\t$repo_base = \"{$g['pkg_repos_path']}/{$g['product_name']}-repo\";\n\t$result = array();\n\t$name_files = glob(\"{$repo_base}-*.name\");\n\tforeach ($name_files as $name_file) {\n\t\t$repo_name = file_get_contents($name_file);\n\t\tif ($repo_name == false || strlen($repo_name) <= 1) {\n\t\t\tcontinue;\n\t\t}\n\t\t$repo_name_base = \"{$repo_base}-{$repo_name}\";\n\t\t$descr_file = \"{$repo_name_base}.descr\";\n\t\tif (file_exists($descr_file)) {\n\t\t\t$descr = file_get_contents($descr_file);\n\t\t\tif ($descr == false) {\n\t\t\t\t$descr = 'Unknown';\n\t\t\t}\n\t\t} else {\n\t\t\t$descr = 'Unknown';\n\t\t}\n\t\t$entry = array(\n\t\t 'name' => $repo_name,\n\t\t 'path' => \"{$repo_name_base}.conf\",\n\t\t 'descr' => $descr\n\t\t);\n\t\tif (file_exists(\"{$repo_name_base}.default\")) {\n\t\t\t$entry['default'] = true;\n\t\t}\n\t\t$result[] = $entry;\n\t}\n\n\treturn $result;\n}", "function app_products() {\r\n $this->name=\"app_products\";\r\n $this->title=\"<#LANG_APP_PRODUCTS#>\";\r\n $this->module_category=\"<#LANG_SECTION_APPLICATIONS#>\";\r\n $this->checkInstalled();\r\n}", "public function getProduct()\r\n {\r\n return $this->_params['product'];\r\n }", "public function getProducts(): ?array\n {\n return $this->getParam(self::PRODUCTS);\n }", "protected function _getConfigArray(){\n \n return array(\n array(\n 'version' => '0.0.4',\n 'path' => 'bss_quickview/seting_theme/product_image_wrapper',\n 'value' => 'product-item-photo'\n ),\n array(\n 'version' => '0.0.5',\n 'path' => 'bss_quickview/success_popup_design/background_color',\n 'value' => '0088CC'\n ),\n array(\n 'version' => '0.0.5',\n 'path' => 'porto_settings/custom_settings/custom_style',\n 'value' => 'table.desc_spec_tbl{border-collapse:collapse}\ntable.desc_spec_tbl td{border:1px solid #dcdcdc}\n.product.description ul{list-style:disc}\n.page-header.type2.header-newskin .main-panel-top{border-bottom:1px solid rgba(248,248,248,0.2)}\n.page-header.type2.header-newskin .main-panel-inner{border:none}\n#phone-hrs{font-size:1.4em!important;color:#636363;padding-right:15px!important}\n#phone-hrs a{color:#08C!important}\n.page-header.type2.header-newskin .custom-block{width:100%!important;text-align:right!important;top:90%!important;right:0!important}\nh2.side-menu-title{margin:0;background-color:#FF7B0D;color:#fff;font-size:13px;font-weight:700;line-height:1;padding:14px 15px;border-radius:5px 5px 0 0;border-bottom:1px solid #ddd}\n.filterproduct-title{color:#fff!important;background-color:#08c!important;padding-left:20px!important}\n.products-grid.columns4{margin-left:0!important;margin-right:0!important}\n.home-side-menu h2.side-menu-title{color:#fff!important}\n.page-header.type2.header-newskin .minicart-wrapper .action.showcart:before,.page-header.type2.header-newskin .minicart-wrapper .action.showcart.active:before{font-size:33px;color:#08C!important}\n.page-header.type2.header-newskin .minicart-wrapper .action.showcart{padding-right:17px}\n.page-header.type2.header-newskin .minicart-wrapper .action.showcart .counter.qty{margin-top:-21px;background-color:#ff5b5b}\n.page-header.type2.header-newskin .minicart-wrapper .action.showcart:after{right:-6px}\n.homepage-bar{border:none;background-color:transparent}\n.homepage-bar .col-lg-4{border-color:#fff;padding-top:14px;padding-bottom:15px}\n.homepage-bar [class*=\" porto-icon-\"],.homepage-bar [class^=\"porto-icon-\"]{color:#465157}\n.homepage-bar .text-area{display:inline-block;vertical-align:middle;text-align:left;margin-left:5px}\n.homepage-bar h3{font-size:14px;font-weight:600;color:#465157;line-height:19px}\n.homepage-bar p{font-size:13px;font-weight:300;color:#839199;line-height:19px}\n.owl-theme .owl-dots .owl-dot span{width:13px;height:13px;border-radius:100%;border:solid 2px #d5d5d5;background:none;position:relative;margin:5px 2px}\n#banner-slider-demo-9.owl-bottom-narrow .owl-controls{text-align:left;padding-left:28px}\n#banner-slider-demo-9.owl-theme .owl-dots .owl-dot span{border:2px solid rgba(0,0,0,0.2);background:none}\n#banner-slider-demo-9.owl-theme .owl-dots .owl-dot.active span,#banner-slider-demo-9.owl-theme .owl-dots .owl-dot:hover span{border-color:#fff;background:none}\n.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{border-color:#05131c;background:none}\n.owl-theme .owl-controls .owl-dot.active span:before,.owl-theme .owl-dots .owl-dot:hover span:before{content:\"\";position:absolute;left:3px;top:3px;right:3px;bottom:3px;background-color:#05131c;border-radius:100%}\n#banner-slider-demo-9.owl-theme .owl-dots .owl-dot.active span:before,#banner-slider-demo-9.owl-theme .owl-dots .owl-dot:hover span:before{background-color:#fff}\n.owl-theme .owl-dots .owl-dot.active span:before,.owl-theme .owl-dots .owl-dot:hover span:before{background-color:#05131c}\n.block.block-subscribe.home-sidebar-block{border:none;background-color:#f4f4f4;text-align:center;border-radius:2px!important}\n.block.block-subscribe.home-sidebar-block .block-title strong{font-size:17px;font-weight:700;color:#05131c}\n.block.block-subscribe.home-sidebar-block .block-content p{line-height:24px;letter-spacing:.001em;color:#4a505e;font-size:14px}\n.block.block-subscribe.home-sidebar-block .newsletter .control input{height:45px;border-color:#e4e4e4;padding-right:10px;border-radius:3px;color:#05131c;text-transform:uppercase}\n.block.block-subscribe.home-sidebar-block button.subscribe{width:100%;margin:7px 0 0;height:auto;position:relative;left:auto;right:auto;top:auto;border-radius:5px;background-color:inherit}\n.block.block-subscribe.home-sidebar-block button.subscribe span{height:45px;text-transform:uppercase;background-color:#05131c;border:none;border-radius:3px;font-size:12px;letter-spacing:.005em;color:#fff;font-family:\"Oswald\";line-height:45px;display:block}\n#testimonials-slider-demo-9{padding:22px;border:solid 2px #0188cc;border-radius:2px}\n.cms-index-index .testimonial-author{margin:8px 0 0}\n.cms-index-index .testimonial-author .img-thumbnail{border:none;padding:0;margin-right:20px;border-radius:100%!important;overflow:hidden}\n.cms-index-index blockquote.testimonial{background-color:transparent;color:#62615e;font-size:14px;font-style:normal;line-height:24px;font-weight:400;font-family:\"Open Sans\";margin:0 -10px;padding:15px 30px 15px 43px;width:100%;float:left;margin-top:13px}\n.cms-index-index blockquote.testimonial:before{color:#0188cc;font-family:\"porto\";font-weight:400;font-size:54px}\n.cms-index-index blockquote.testimonial:after{color:#0188cc;font-family:\"porto\";font-weight:400;font-size:54px;right:-2px}\n.cms-index-index .testimonial-author p{line-height:20px}\n.cms-index-index .testimonial-author p >strong{text-transform:uppercase;font-size:13px;font-weight:700;letter-spacing:.0025em;color:#2b2b2d}\n.cms-index-index blockquote.testimonial p{line-height:24px;letter-spacing:.001em}\n#testimonials-slider-demo-6.owl-theme .owl-controls{text-align:left;padding-left:32px}\n.recent-posts .item{padding-top:40px}\n.recent-posts .post-date{display:block;float:none;text-align:left}\n.recent-posts .post-date .long-date{font-size:13px;font-weight:700;color:#0188cc;line-height:22px;text-transform:uppercase}\n.recent-posts .postTitle{min-height:auto}\n.recent-posts .postTitle h2{margin:0}\n.recent-posts .postTitle h2 a{font-size:17px;font-weight:600;line-height:22px;color:#2b2b2d}\n.recent-posts .postContent{margin:0;padding:0}\n.recent-posts .postContent>p{line-height:27px;letter-spacing:.001em}\n.recent-posts a.readmore{display:none}\n.recent-posts .owl-controls{text-align:left}\n.filterproduct-title{background:none;font-size:17px;color:#2b2b2d}\n.filterproduct-title .content{background:none;padding:0}\n.owl-top-narrow .owl-theme .owl-controls .owl-dots{margin-top:0}\n.small-list.products-grid .product-item .product-item-name{font-size:14px;font-weight:400;letter-spacing:.005em}\n.small-list.products-grid .product-item .product-reviews-summary{margin-top:0}\n.shop-features [class*=\" porto-icon-\"],.shop-features [class^=\"porto-icon-\"]{color:#0188cc;border-color:#0188cc}\n.shop-features h3{font-size:14px;font-weight:700}\n.shop-features p{color:#4a505e;line-height:27px;font-weight:400}\n.shop-features a{font-family:\"Oswald\";font-size:12.5px;text-transform:uppercase;color:#2b2b2d;letter-spacing:.0025em;line-height:26px;border:solid 1px #efefef;padding:7px 28px;background:none;box-shadow:none}\n.shop-features a:hover{background:none;color:#2b2b2d;border-color:#efefef}\n.owl-top-narrow{margin:0 -10px}\n.owl-top-narrow .owl-theme .owl-controls{right:8px}\n.owl-top-narrow .owl-carousel .owl-item > .item{padding:10px}\n@media (min-width: 768px) {\n.catalog-category-view .page-main,.catalog-product-view .page-main{padding-top:0}\n}\n.breadcrumbs li.home a{width:15px;display:inline-block;text-indent:30px;overflow:hidden;float:left;position:relative}\n.breadcrumbs li.home a:after{content:\"\\e883\";font-family:\"porto-icons\";position:absolute;left:0;top:0;text-indent:0}\n.sidebar.sidebar-main{position:relative}\n.block-category-list .block-title,.filter-options-title,.filter .filter-current-subtitle{border:none;background-color:transparent;padding:16px 20px 4px;font-size:15px;text-transform:uppercase;font-weight:600;color:#21293c;letter-spacing:.01em}\n.block-category-list .block-title{padding:0 20px 0}\n.block-category-list .block-title strong{font-weight:600}\n.block-category-list .block-content,.filter-options-content{border:none;background-color:transparent;padding:10px 20px 26px;border-bottom:#efefef solid 1px;position:relative;z-index:2;border-radius:0}\n.filter-current .items{border:none;background-color:transparent;position:relative;z-index:2}\n.filter-current .item{padding-left:20px}\n.filter-current .action.remove{right:20px;color:#21293c}\n.filter-actions{border:none;background-color:transparent;border-bottom:#efefef solid 1px;position:relative;z-index:2;padding-right:20px}\n.filter-actions a{color:#858585}\n.filter-options-title:after{content:\"\\f803\";border:none;color:#21293c;font-size:17px;margin-top:-6px}\n.filter-options-title:hover:after{background:none;color:#21293c}\n.active > .filter-options-title:after{content:\"\\f800\"}\n#ln_slider_price.ui-slider-horizontal{height:3px;box-shadow:none}\n#ln_slider_price .ui-slider-handle{width:12px;height:12px;border-radius:100%}\n.sidebar-title{font-size:15px;font-weight:600;color:#21293c;letter-spacing:.01em;margin-bottom:20px;padding-left:20px;padding-right:20px}\n.porto-icon-left-open-huge:before{content:\"\\f802\";color:#21293c}\n.porto-icon-right-open-huge:before{content:\"\\f801\";color:#21293c}\n.sidebar .owl-top-narrow .owl-theme .owl-controls{top:-40px;right:3px}\n.sidebar .owl-top-narrow .owl-theme .owl-controls .owl-nav div :before{color:#21293c}\n.sidebar .product-items .product-item-info .product-item-photo{max-width:25.19%}\n.sidebar .product-items .product-item-details{margin-left:calc(26% + 15px)}\n.sidebar .product-items .product-item-name a{font-size:12px;color:#5b5b5f;font-weight:400}\n.sidebar .sidebar-filterproducts{margin-bottom:30px;padding-bottom:40px;background:none;border-bottom:#efefef solid 1px}\n.sidebar .product-items .product-item .product-reviews-summary{display:block}\n.sidebar-filterproducts.custom-block + h2{font-size:15px!important;text-transform:uppercase;font-weight:600;color:#21293c!important;letter-spacing:.01em;padding:0 20px}\n.sidebar-filterproducts.custom-block + h2 +h5{font-family:\"Open Sans\"!important;font-weight:600!important;font-size:14px!important;color:#7a7d82!important;letter-spacing:.022em;padding:0 20px}\n.sidebar-filterproducts.custom-block + h2 + h5 + p{color:#21293c!important;font-size:15px!important;letter-spacing:.01em;padding:0 20px}\n.sidebar .custom-block{padding:0 20px}\n.category-boxed-banner.owl-theme .owl-controls{bottom:0}\n.page-products .toolbar .limiter{display:block}\n.page-with-filter .toolbar-amount{display:none}\n.full-width-image-banner{height:300px}\n.full-width-image-banner:after{display:none}\n.full-width-image-banner h2{font-size:36px;font-weight:900;letter-spacing:-.025em;text-transform:uppercase;line-height:38px}\n.full-width-image-banner p{font-size:18px;line-height:38px;font-weight:700;text-transform:uppercase}\n.full-width-image-banner .btn-default{font-size:14px;line-height:25px;letter-spacing:.025em;padding:10px 20px;background-color:#010204;color:#fff;font-family:\"Oswald\";text-transform:uppercase;border-radius:2px;margin-top:31px}\n.page-products .toolbar .limiter .limiter-text{display:none}\n.modes-mode.active{border:none;background:none;color:#111}\n.modes-mode,.modes-mode:hover{border:none;background:none;color:#111;width:15px}\n.toolbar select{border:1px solid #e4e4e4;height:37px;color:#7a7d82;font-weight:400;font-size:14px;text-transform:capitalize;padding:0 10px;padding-right:30px;line-height:31px}\n.toolbar-sorter .sorter-action{margin-top:6px;color:#21293c}\n.toolbar-sorter .sorter-action:before{color:#21293c}\n.pages a.page,.pages strong.page,.pages .action{width:32px;line-height:32px}\n.products-grid + .toolbar.toolbar-products{border-top:solid 1px #efefef;padding-top:25px}\n.filterproducts.products .product-item .product-item-photo{border:solid 1px #ececec}\n.product-item .product-reviews-summary{background:none}\n.price-box .price{font-family:\"Oswald\";font-weight:400;font-size:18px;color:#465157}\n.old-price .price{font-size:13px;color:#999}\n.catalog-product-view .sidebar .custom-block{border:none;color:#6b7a83;padding-bottom:0;margin-bottom:33px;background:none}\n.catalog-product-view .sidebar .custom-block-1>div i{color:#08c;border:none;font-size:40px;float:left}\n.catalog-product-view .sidebar .custom-block-1>div{min-height:65px;clear:both;padding:18px 0;border-bottom:solid 1px #dee5e8;margin-bottom:0}\n.catalog-product-view .sidebar .custom-block-1>div:last-child{border-bottom-width:0}\n.block-manufacturer{text-align:center;padding:10px 20px 0;margin-bottom:0}\n.block-manufacturer hr{border-color:#dee5e8;margin-bottom:0}\n.catalog-product-view .sidebar .custom-block-1>div h3{font-size:14px;font-weight:600;line-height:20px;letter-spacing:.005em;color:#6b7a83;margin-left:80px}\n.block.related{padding:0 20px}\n.block .title strong{font-size:15px;font-weight:600;color:#21293c;letter-spacing:.01em;margin-bottom:20px!important;padding-top:0;text-transform:uppercase}\n.block.related .product-items .product-item-actions{display:none}\n.product-info-main .page-title-wrapper h1{font-size:25px;font-weight:600;letter-spacing:-.01em;color:#21293c;margin:3px 0 15px}\n.prev-next-products a{color:#555}\n.product-reviews-summary .reviews-actions a{line-height:20px;font-size:14px;color:#bdbdbd}\n.product-info-main .product.overview{font-size:14px;font-weight:400;letter-spacing:.005em;line-height:27px;border-bottom:solid 1px #dae2e6}\n.product.media{padding-right:12px}\n.fotorama__stage__shaft{border:none}\n.fotorama__nav--thumbs .fotorama__thumb{border-color:#dae2e6}\n.product-options-bottom .price-box .price-container .price,.product-info-price .price-box .price-container .price{font-family:\"Oswald\";font-size:21px;font-weight:700;letter-spacing:.005em}\n.product-info-main .product-info-price .old-price .price-wrapper .price{font-size:16px;color:#2b2b2d;font-weight:400}\n.product-info-main .fieldset > .field.qty,.product-info-main .nested.options-list > .field.qty{position:relative;width:106px}\n.product-info-main .qty.field .control,.product-info-main .qty.field .qty-changer{margin-left:29px}\n.product-info-main .qty.field .qty-changer > a{position:absolute;top:0;left:0;height:43px;width:30px;line-height:41px;text-align:center;margin:0;border-color:#dae2e6}\n.product-info-main .qty.field .qty-changer > a:first-child{left:auto;right:4px}\n.product-info-main .box-tocart .input-text.qty{font-family:\"Oswald\";display:inline-block;vertical-align:middle;height:43px;width:44px!important;font-size:14px;font-weight:400;text-align:center;color:#61605a;margin:0;border-color:#dae2e6}\n.product-info-main .qty.field .qty-changer > a .porto-icon-up-dir:before{content:\"\\f882\"}\n.product-info-main .qty.field .qty-changer > a .porto-icon-down-dir:before{content:\"\\f883\"}\n.catalog-product-view:not(.weltpixel-quickview-catalog-product-view):not(.weltpixel_quickview-catalog_product-view) .box-tocart .action.tocart{height:43px;font-size:14px;letter-spacing:.05em;font-weight:400}\n.box-tocart .action.tocart:before{content:\"\\e87f\";font-family:\"porto-icons\";margin-right:7px;font-size:16px}\n.action.primary,.action.primary:active{font-family:\"Oswald\";letter-spacing:1px;text-transform:uppercase}\n.product-addto-links .action.towishlist,.product-addto-links .action.tocompare,.moved-add-to-links .action.mailto.friend,.product-social-links .action.mailto.friend{width:43px;height:43px;line-height:41px}\n.product.data.items > .item.content{background-color:#fff;box-shadow:none;border:none;border-top:#dae2e6 solid 1px;font-size:14px;font-weight:400;letter-spacing:.005em;line-height:27px}\n.main-upsell-product-detail .block.upsell .title strong{background:none}\n.block.upsell .title{background:none;border-bottom:#e1e1e1 solid 1px;font-weight:700;margin-bottom:16px;padding-bottom:10px;text-transform:uppercase;text-align:left}\n.block.upsell .title strong{font-size:14px;font-weight:400;font-family:\"Oswald\";color:#302e2a}\n.review-ratings .rating-label{display:block}\n.footer-middle{padding:62px 0 42px}\n.footer-ribbon{margin:-78px 0 25px}\n.footer-middle p{font-size:13px;line-height:20px;margin-bottom:0}\n.footer-middle .block .block-title{margin-bottom:15px}\n.footer-middle .block .block-title strong{font-size:16px;font-weight:700;text-transform:uppercase}\n.footer-middle ul.links li,.footer-middle ul.features li{padding:6px 0}\n.footer-container .validation-advice{position:absolute}\n.footer-middle .block.newsletter .form.subscribe{max-width:400px}\n.footer-middle .block.newsletter .control:before{line-height:48px;margin-left:20px}\n.footer-middle .block.newsletter .control{position:relative}\n.footer-middle .block.newsletter .control input{background-color:#fff;color:#686865;height:48px;border:none;font-size:14px;padding-left:10px}\n.footer-middle .block.newsletter .control div.mage-error{position:absolute;bottom:-22px}\n.footer-middle .block.newsletter .action.subscribe{height:48px;text-transform:uppercase;padding:0 22px}\n.footer-middle .block-bottom{border-top:1px solid #3d3d38;text-align:left;padding:27px 0;overflow:hidden}\n.footer-middle .social-icons a{background-image:none;background-color:#33332f;text-indent:0;color:#fff;border-radius:0;font-size:15px;width:37px;height:37px;text-align:center;margin-left:0;margin-right:4px;float:left;line-height:35px}\n.footer-middle .contact-info li:first-child{border-top-width:0}\n.footer-middle .contact-info li{padding:9px 0}\n.footer-middle .contact-info i{color:#e1ddc3!important;font-size:26px;line-height:28px}\n.footer-middle .contact-info p{line-height:1}\n.footer-middle .contact-info b{font-weight:400;font-size:13px;margin-bottom:7px;display:inline-block}\n.footer-bottom{padding:18px 0}\n.footer-bottom address{float:left}\n.footer-bottom .container{position:relative}\n.footer-bottom .container:before{content:\"\";position:absolute;background-color:#3d3d38;left:15px;right:15px;top:-18px;height:1px;width:calc(100% - 30px)}\n@media (max-width: 991px) {\n.footer .block .block-content{margin-bottom:30px}\n.footer-middle .block-content{min-width:auto!important;width:100%}\n}\n@media (max-width: 767px) {\n.navigation.sw-megamenu > .sticky-logo{display:none}\n.page-header.type2.header-newskin .custom-block{display:none}\n.homepage-bar .col-lg-4{text-align:left!important}\n#banner-slider-demo-9{margin-bottom:20px}\n.sidebar.sidebar-main{position:static}\n.page-products .toolbar .limiter{display:none}\n.product.data.items{margin:0}\n.prev-next-products .product-nav.product-next .product-pop{margin:0}\n.prev-next-products .product-nav.product-prev .product-pop{left:-20px}\n.product-info-main .fieldset > .field.qty{margin-bottom:20px}\n.fieldset > .actions{vertical-align:top}\n.catalog-product-view .sidebar .custom-block{padding:0}\n.footer-middle{padding:62px 0 0;margin-bottom:-20px}\n.footer .block .block-content{margin-bottom:30px}\n.footer-middle .block-content{float:none!important}\n.footer-middle .social-icons{overflow:hidden;float:none!important}\n.footer-bottom .custom-block.f-right{margin-left:0}\n}\n.page-products .sorter{float:left}\n.modes{float:right;margin-right:0;margin-left:20px;margin-top:7px}\n.modes-mode:before{content:\"\\e880\";font-size:14px}\n.mode-list:before{content:\"\\e87b\";font-size:14px}\n.products.wrapper ~ .toolbar .limiter{float:left}\n.products.wrapper ~ .toolbar .pages{float:right}\n@media (min-width: 768px) {\n.page-header.type2.header-newskin .minicart-wrapper{background-color:transparent;width:81px;height:41px;text-align:center;box-shadow:none;border-radius:0;border:none}\n.home-side-menu{background-color:transparent;border-color:#dae2e6;border-radius:2px}\n.home-side-menu h2.side-menu-title{color:#465157;font-size:14.5px;font-weight:700;letter-spacing:.001em}\n.navigation.side-megamenu a,.navigation.side-megamenu a:hover{color:#465157}\n.sw-megamenu.navigation.side-megamenu li.level0.parent > a:after{color:#838b90}\n.sw-megamenu.navigation.side-megamenu li.level0.parent:hover > a:after{color:#fff}\n.sw-megamenu.navigation.side-megamenu li.level0 > .submenu{border:solid 1px #dae2e6;box-shadow:0 3px 15px -2px rgba(0,0,0,0.3);padding:10px 0 10px 15px}\n.sw-megamenu.navigation.side-megamenu li.level0 > .submenu:before,.sw-megamenu.navigation.side-megamenu li.level0 > .submenu:after{border-bottom-style:solid;content:\"\";display:block;height:0;position:absolute;width:0}\n.sw-megamenu.navigation.side-megamenu li.level0 > .submenu:before{border:8px solid;border-color:transparent #fff transparent transparent;z-index:3;left:-16px;top:11px}\n.sw-megamenu.navigation.side-megamenu li.level0 > .submenu:after{border:9px solid;border-color:transparent #dae2e6 transparent transparent;z-index:2;left:-18px;top:10px;right:auto}\n.sw-megamenu.navigation li.level0.fullwidth .submenu li.level1 > a,.sw-megamenu.navigation li.level0.staticwidth .submenu li.level1 > a{font-size:13px;font-weight:700;color:#434d53;letter-spacing:-.001em;margin-top:9px}\n.sw-megamenu.navigation li.level0.fullwidth .submenu a,.sw-megamenu.navigation li.level0.staticwidth .submenu a,.sw-megamenu.navigation li.level0.classic .submenu a{font-size:13px;font-weight:600;color:#696969;line-height:inherit}\n.sidebar.sidebar-main:before{content:\"\";position:absolute;left:0;right:20px;border:solid 1px #dae2e6;top:0;bottom:0;border-radius:2px}\n.product.data.items > .item.title{padding:10px 30px 10px 0}\n.product.data.items > .item.title > .switch{font-size:14px;font-weight:700;color:#818692;text-transform:uppercase;border:none;border-radius:0;line-height:30px;background:none;padding:0}\n.product.data.items > .item.title:not(.disabled) > .switch:focus,.product.data.items > .item.title:not(.disabled) > .switch:hover{background:none;color:#818692}\n.product.data.items > .item.title.active > .switch,.product.data.items > .item.title.active > .switch:focus,.product.data.items > .item.title.active > .switch:hover{color:#21293c;position:relative;border-bottom:#08C solid 2px}\n.product.data.items > .item.content{padding:35px 0 0;margin-top:45px}\n}\n@media (min-widtH: 768px) {\n.page-header .switcher .options .action.toggle{color:#fff}\n}\n.products-grid .product-item .product-item-info .product-item-photo > a:not(.weltpixel-quickview):after{content:\"\";display:block;background-color:#000;opacity:0;width:100%;height:100%;position:absolute;left:0;top:0;z-index:2;visibility:hidden;transition:all .3s}\n.products-grid .product-item .product-item-info:hover .product-item-photo > a:not(.weltpixel-quickview):after{opacity:.1;visibility:visible}\n.page-header.type2.header-newskin.sticky-header .minicart-wrapper .block-minicart:after{right:38px}\n.page-header.type2.header-newskin.sticky-header .minicart-wrapper .block-minicart:before{right:39px}\n.swatch-attribute.size .swatch-option,.swatch-attribute.manufacturer .swatch-option{background:#fff;color:#636363;border-color:#e9e9e9}\n.swatch-option.text{min-width:26px;line-height:18px;padding:3px;height:26px}\n.pages a.page,.pages strong.page,.pages .action{background:transparent;color:#706f6c;font-size:15px;font-weight:600;line-height:30px}\n.pages a.page:hover,.pages a.action:hover{background-color:transparent;color:#706f6c}\n.pages a.action:hover:before{color:#706f6c!important}\n.pages .action{border-color:transparent}\n.product-info-main .product-info-stock-sku{color:#333;font-size:14px;padding-bottom:23px}\n.product-reviews-summary .reviews-actions a{color:#21293c}\n.product-info-main .product-info-stock-sku{color:#21293c}\n.catalog-product-view .sidebar .custom-block.custom-block-1{margin-top:-25px}\n.block-minicart .block-content > .actions > .secondary .action.viewcart{color:#333;font-weight:500;font-family:\"Oswald\"}\n.cms-index-index .single-images{margin-bottom:5px}\n.product-item .rating-summary .rating-result > span:before{color:#575f68}\n@media (max-width: 767px) {\n.block-category-list .block-title,.block-category-list .block-content,.sidebar-title,.sidebar .custom-block,.sidebar-filterproducts.custom-block + h2,.sidebar-filterproducts.custom-block + h2 +h5,.sidebar-filterproducts.custom-block + h2 + h5 + p{padding-left:0;padding-right:0}\n}\n.page-header .switcher .options .action.toggle{color:#bde1f5}\n.page-wrapper > .breadcrumbs{margin-bottom:0}\n.products-grid .product-item-details .product-item-actions .tocart{text-transform:uppercase;font-size:12.53px;font-family:\"Oswald\";font-weight:400;letter-spacing:.025em;color:#fff;line-height:30px;background-color:#08c;border-color:#08c;}\n.products-grid .product-item-details .product-item-actions .tocart:hover{background-color:#006496!important;border-color:#006496!important;color:#fff}\n.product-item .tocart:before{content:\"\\e87f\";font-size:17px;vertical-align:middle}\n.product-social-links .action.towishlist:before,.product-addto-links .action.towishlist:before,.block-bundle-summary .action.towishlist:before,.product-item .action.towishlist:before,.table-comparison .action.towishlist:before{content:\"\\e889\"}'\n ),\n array(\n 'version' => '0.0.6',\n 'path' => 'persistent/options/lifetime',\n 'value' => '14400'\n ),\n );\n }", "public function install() {\n\t\treturn $this->defaults;\n\t}", "public function getProducts()\n {\n $products = [\n [\"name\" => \"Sledgehammer\", \"price\" => 125.75],\n [\"name\" => \"Axe\", \"price\" => 190.50],\n [\"name\" => \"Bandsaw\", \"price\" => 562.131],\n [\"name\" => \"Chisel\", \"price\" => 12.9],\n [\"name\" => \"Hacksaw\", \"price\" => 18.45],\n ];\n return $products;\n }", "public function provides()\n {\n return ['packages'];\n }", "public function getProduct() {\n return Mage::registry('product');\n }", "public function getJsCustomProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/js_product');\n }", "public function getPackagesVersions()\n {\n $components = [\n 'core' => [],\n 'theme' => [],\n 'widget' => [],\n 'module' => [],\n ];\n\n $components['core']['ZEDx'] = Core::VERSION;\n\n foreach (Themes::all() as $theme) {\n $components['theme'][$theme['manifest']['name']] = $theme['manifest']['version'];\n }\n\n foreach (Widgets::noType()->noFilter()->all(null, true) as $namespace => $widget) {\n $components['widget'][$namespace] = $widget->get('version');\n }\n\n foreach (Modules::all() as $module) {\n $components['module'][$module->name] = $module->version;\n }\n\n return $components;\n }", "public function getVariantConfig();", "public function getProductDefaultValue() {\n //initialize dummy value.. no content header.pure html\n $sql = null;\n $productId = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n SELECT `productId`\n FROM `product`\n WHERE `isActive` = 1\n AND `companyId` = '\" . $this->getCompanyId() . \"'\n AND \t `isDefault` =\t 1\n LIMIT 1\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n SELECT TOP 1 [productId],\n FROM [product]\n WHERE [isActive] = 1\n AND [companyId] = '\" . $this->getCompanyId() . \"'\n AND \t [isDefault] = 1\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n SELECT PRODUCTID AS \\\"productId\\\",\n FROM PRODUCT\n WHERE ISACTIVE = 1\n AND COMPANYID = '\" . $this->getCompanyId() . \"'\n AND \t ISDEFAULT\t =\t 1\n AND \t\t ROWNUM\t =\t 1\";\n } else {\n header('Content-Type:application/json; charset=utf-8');\n echo json_encode(array(\"success\" => false, \"message\" => $this->t['databaseNotFoundMessageLabel']));\n exit();\n }\n }\n }\n try {\n $result = $this->q->fast($sql);\n } catch (\\Exception $e) {\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n if ($result) {\n $row = $this->q->fetchArray($result);\n $productId = $row['productId'];\n }\n return $productId;\n }", "function getPackagePluginsConfig( $pForce = FALSE ){\n\t\tif( empty( $this->mPackagePluginsConfig ) || $pForce ){\n\t\t\t$query = \"SELECT pp.`guid` as guid_key, pp.`guid`, pp.`package_guid`, pp.`version`, pp.`active`, pp.`required`, pp.`path_type`, pp.`handler_file`, pp.`name`, pp.`description`, pp.`pos` \n\t\t\t\t\t\tFROM `\".BIT_DB_PREFIX.\"package_plugins` pp \n\t\t\t\t\t\tINNER JOIN `packages` p ON p.`guid` = pp.`package_guid`\n\t\t\t\t\t\tWHERE pp.`active` = ? AND p.`active` = ? ORDER BY pp.`pos` ASC\";\n\t\t\tif( $result = $this->mDb->getAssoc( $query, array( 'y', 'y' ) ) ){\n\t\t\t\t$this->mPackagePluginsConfig = &$result;\n\t\t\t}\n\t\t\t// load up the handlers too\n\t\t\t$this->loadPackagePluginHandlers();\n\t\t}\n\n\t\t// vd( $this->mPackagePluginsHandlers );\n\t\treturn $this->mPackagePluginsConfig;\n\t}", "public function getPlatformProduct()\n {\n return $this->getSubscription()->getPlatformProduct();\n }", "public function getPackageInfo($name) {\n\t\tif (isset($this->packageInfo[$name])) return $this->packageInfo[$name];\n\t\treturn null;\n\t}" ]
[ "0.6181589", "0.61719364", "0.6045074", "0.59584373", "0.59383744", "0.5923415", "0.59168804", "0.59085757", "0.59079623", "0.5899286", "0.5886126", "0.5844112", "0.5832811", "0.57884926", "0.57549936", "0.5753364", "0.57510066", "0.5745688", "0.5743944", "0.5725652", "0.56957054", "0.56887484", "0.5678569", "0.5678412", "0.5670115", "0.5660626", "0.5633739", "0.56180894", "0.56118643", "0.5611487", "0.5589881", "0.55882084", "0.55544305", "0.55427957", "0.5523559", "0.5523551", "0.55145", "0.5491785", "0.54905456", "0.54868156", "0.5482167", "0.5479259", "0.5473234", "0.5472981", "0.5458863", "0.5450849", "0.544908", "0.5439205", "0.54306436", "0.5428145", "0.5427562", "0.54099953", "0.539848", "0.5397217", "0.5393714", "0.5384443", "0.5370415", "0.5364145", "0.53479725", "0.53479725", "0.53389543", "0.5331331", "0.5329986", "0.53183955", "0.531605", "0.53123844", "0.53106093", "0.5304736", "0.52943486", "0.5286534", "0.52864575", "0.52840483", "0.5282708", "0.5277136", "0.5268025", "0.52657586", "0.5255351", "0.5253249", "0.5249884", "0.52490216", "0.5248787", "0.5247054", "0.5235762", "0.52350885", "0.52349913", "0.5234538", "0.52275383", "0.52076435", "0.5204665", "0.5204341", "0.5201724", "0.5194555", "0.5187419", "0.5185977", "0.5182806", "0.5182612", "0.5178982", "0.5175228", "0.516658", "0.516646" ]
0.61558205
2
Get default package from configured values
protected function getDefaultPackage($product, $simpleProductWeight) { return array( 'description' => $product->getName(), 'packaging' => $this->getConfigData('defaults/packaging'), 'fragile' => $this->getConfigData('defaults/fragile'), 'weight' => $product->getWeight() ? $product->getWeight() : $simpleProductWeight, 'length' => $this->getConfigData('defaults/length'), 'width' => $this->getConfigData('defaults/width'), 'height' => $this->getConfigData('defaults/height') ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPackage() {}", "abstract public function getPackage();", "function getDefaultModule()\n\t{\n\t\t$modules = ModuleComponentContainerAdapter::getAll( $this->dbConnection, \"IsDefault = 1 and (AppName LIKE '\".SoondaUtil::encodeHTML($this->config[\"appname\"]).\"' or AppName LIKE '\".$this->config[\"appname\"].\"') \" );\n\n\t\tif(count( $modules) > 0)\n\t\t\treturn $modules[0];\n\t\telse \n\t\t\treturn null;\n\t}", "private function get_package() {\n\t\t$translation = $this->get_item_from_api();\n\t\tif ( $translation && isset( $translation['package'] ) ) {\n\t\t\treturn $translation['package'];\n\t\t}\n\n\t\t// Fallback.\n\t\treturn \"{$this->api_url}/{$this->slug}/{$this->slug}-{$this->lang}.zip\";\n\t}", "public function getPackageName(): string;", "protected function getPackageName()\n {\n return null;\n }", "public static function getDefault()\r\n {\r\n return self::get('default');\r\n }", "public function getDefaultDefinition(): string;", "public function package() {\n\t\treturn $this->package;\n\t}", "public function getPackage() {\n\t\t\t$packages_json = $this->application->configuration([ \"packagemanager\", \"packages_json\" ]);\n\t\t\t$packages = (new Packages($this->application))->getPackages();\n\t\t\tif(isset($packages->packages->{$this->package_directory}))\n\t\t\t\treturn new Object($packages->packages->{$this->package_directory});\n\t\t\telse return null;\n\t\t}", "public static function getPackageName() {\n\t\treturn self::$_packageName;\n\t}", "public function getDefaultModule();", "function get_base_pkg_name() {\n\tglobal $g;\n\n\t/* XXX: Use pkg annotation */\n\tif (is_pkg_installed(g_get('product_name') . '-base-' . g_get('product_name'))) {\n\t\treturn g_get('product_name') . '-base-' . g_get('product_name');\n\t} else if (is_pkg_installed(g_get('product_name') . '-base')) {\n\t\treturn g_get('product_name') . '-base';\n\t}\n\treturn false;\n}", "public function getPackage()\n {\n return $this->package;\n }", "public function getPackage()\n {\n return $this->package;\n }", "function getPackageName($baseClass)\n{\n switch ($baseClass)\n {\n case 'sfAction':\n case 'sfActions':\n return 'actions';\n break;\n case 'sfComponent':\n case 'sfComponents':\n return 'components';\n break;\n case 'sfForm':\n case 'sfFormFilter':\n case 'sfFormDoctrine':\n case 'sfFormPropel':\n return 'forms';\n break;\n case 'sfFilter':\n return 'filters';\n break;\n case 'sfProjectConfiguration':\n case 'sfPluginConfiguration':\n case 'sfApplicationConfiguration':\n return 'configurations';\n break;\n case 'sfWidgetForm':\n return 'widgets';\n break;\n default:\n return '';\n break;\n }\n}", "public function getPackages()\n {\n return $this->file->get(self::SETTING_PACKAGES);\n }", "public function getDefaultDriver()\n\t{\n\t\treturn $this->app['config']['nova-dynamic-lang.sections.default'];\n\t}", "public function install() {\n\t\treturn $this->defaults;\n\t}", "public function getDefaultDriver()\n {\n if (in_array($this->getTemplateName(), $this->availableThemes)) \n {\n return $this->getTemplateName();\n }\n else\n {\n return $this->defaultThemeName;\n } \n }", "public function getPackageType(): string\n {\n //if it starts with / like /foo/bar\n if (strpos($this->name, '/') === 0) {\n //it's a root package\n return self::TYPE_ROOT;\n }\n\n //if theres a slash like foo/bar\n if (strpos($this->name, '/') !== false) {\n //it's vendor package\n return self::TYPE_VENDOR;\n }\n\n //by default it's a pseudo package\n return self::TYPE_PSEUDO;\n }", "public function getDefaultDriver()\n {\n return $this->app['config']['option.default'];\n }", "public function getDefaultDriver()\n {\n $driver = $this->config[self::$packageName.'::driver'];\n return $driver;\n }", "function getPackagePath() ;", "public function getPackageLocation(): string;", "function packagename()\r\n{\r\n\treturn app('packagename');\r\n}", "public function getDefault()\n {\n return $this->getOption('default');\n }", "public function getConfigDefaults()\n {\n // $file = realpath(__DIR__ . '/../../data/distribution/config.dist.php');\n $file = __DIR__ . '/../../data/distribution/config.dist.php';\n\n return $this->getConfigFromFile($file);\n }", "private function getDefaultFromConfigFor($name) {\n list($module, $settingName) = explode('::', $name);\n return mconfig(\"$module.settings.$settingName.default\", '');\n }", "public function getPackageName()\n {\n return $this->package_name;\n }", "public function getPseudoPackageName()\n\t{\n\t\tif ($this->reflection->isInternal()) {\n\t\t\treturn 'PHP';\n\t\t}\n\n\t\tif ($package = $this->reflection->getAnnotation('package')) {\n\t\t\t$packageName = preg_replace('~\\s+.*~s', '', $package[0]);\n\t\t\tif ($subpackage = $this->reflection->getAnnotation('subpackage')) {\n\t\t\t\t$packageName .= '\\\\' . preg_replace('~\\s+.*~s', '', $subpackage[0]);\n\t\t\t}\n\t\t\treturn $packageName;\n\t\t}\n\n\t\treturn 'None';\n\t}", "public function getDefaultGroup(): string;", "public function getDefaultNamespace();", "public function getProfileDefault()\n {\n return $this->getConfig('packages/global_settings_default-profile');\n }", "public function getDefaultDriver(): string\n {\n return $this->app['config'][$this->driverKey()];\n }", "public static function getDefault()\n {\n return self::$default;\n }", "public function getDefaultDriver(): string\n {\n return $this->config('version');\n }", "public static function returnExtConfDefaults() {}", "public function getRootPackageName()\n {\n return $this->composerJson['name'];\n }", "public function getPhpDefaultValue()\n {\n return $this->domain->getPhpDefaultValue();\n }", "public function getDefault()\n {\n return $this->get($this->default);\n }", "public function get_package_name()\n {\n return $this->_package_name;\n }", "abstract public function getDefaultNameSpace();", "public function getConfig($package);", "public function getDefaultModule()\n {\n return $this->_defaultModule;\n }", "public function getPackagePath() {}", "public function getDefaultGroup($group)\n\t{\n\t\tif (!isset($this->default_settings[$group])) {\n\t\t\t$group_file = $this->getGroupFile($group);\n\n\t\t\tif ($group_file) {\n\t\t\t\t$group_settings = require($group_file);\n\t\t\t} else {\n\t\t\t\t$group_settings = array();\n\t\t\t}\n\n\t\t\t$this->default_settings[$group] = (array)$group_settings;\n\t\t}\n\n\t\treturn $this->default_settings[$group];\n\t}", "function stage_get_default($request, $pop = false)\n{\n return Settings::getDefault($request, $pop);\n}", "public function getDefault();", "public function getPackage()\n {\n return $this->tpPackage;\n }", "public function getDefault()\n {\n return $this->config['config']['default'] ?? null;\n }", "public function getDefaultApp()\n {\n return APPPATH;\n }", "public function defaultConfig();", "public function getDefault(): ?string;", "function _getPackageFromFolder()\n {\n $p_dir = JRequest::getString('install_directory');\n $p_dir = JPath::clean( $p_dir );\n\n // Did you give us a valid directory?\n if( !is_dir($p_dir) ) {\n JError::raiseWarning(100, JText::_('Please enter a package directory'));\n return false;\n }\n\n // Detect the package type\n $type = JInstallerHelper::detectType( $p_dir );\n\n // Did you give us a valid package?\n if( !$type || ($type != 'sef_ext') ) {\n JError::raiseWarning(100, JText::_('Path does not have a valid sef_ext package'));\n return false;\n }\n\n $package['packagefile'] = null;\n $package['extractdir'] = null;\n $package['dir'] = $p_dir;\n $package['type'] = $type;\n\n return $package;\n }", "function getDefault() {\n // to obtain the default\n // annoyingly\n $d = array();\n foreach ($this->_widgets as $w) {\n if (PEAR::isError($w)) {\n continue;\n }\n $d[$w->getBasename()] = $w->getDefault();\n }\n return $d;\n }", "public function resolveDefaultConfigName(): string\n {\n $configKey = self::CONFIG_KEY;\n\n return $this->config->get(\"{$configKey}.defaultConnection\", 'rabbitmq');\n }", "protected function getVendorReplacement()\n {\n return $this->theme->config('composer.vendor');\n }", "function pkg_get_repo_name($path) {\n\t$repos = pkg_list_repos();\n\n\t$default = $repos[0]['name'];\n\tforeach ($repos as $repo) {\n\t\tif ($repo['path'] == $path) {\n\t\t\treturn $repo['name'];\n\t\t}\n\t\tif (isset($repo['default'])) {\n\t\t\t$default = $repo['name'];\n\t\t}\n\t}\n\n\t/* Default */\n\treturn $default;\n}", "public function get_default(){\n\t\treturn $this->default;\n\t}", "public static function defaultVersion()\n {\n return static::where('default', true)->first();\n }", "public function getDefault(): string\n {\n return $this->default;\n }", "public function getDefault(): string\n {\n return $this->default;\n }", "public function getProductDefault($needle)\n {\n $defaults = $this->getProductDefaults();\n\n if (array_key_exists($needle, $defaults)) {\n return $defaults[$needle];\n }\n\n return null;\n }", "public function getPackageInfo()\n {\n return $this->getConfig()->getPackageInfo();\n }", "public function getDefault()\n {\n return $this->default;\n }", "public function getDefaultDriver()\n {\n return Config::get('currency::default_provider');\n }", "public function getDefaultDriver()\n {\n return Arr::get($this->container['config']['cache'], 'default');\n }", "public function getDefaultNamespace()\n\t{\n\t\treturn $this->default_namespace;\n\t}", "function getPackageKey() ;", "public function getPackage(): PackageInterface|null;", "public function getDefaultDriver(): ?string\n {\n return $this->config['default'];\n }", "public function getDefaultTheme(): string\n {\n return config('theme-system.theme', 'default') ?? 'default';\n }", "public function defaultSettings()\n {\n return $this->repository->get( $this->repoOptionString($this->settingsKey, $this->defaultSettingsKey), array());\n }", "function tg_columns_head_package($defaults) {\n $defaults['package_items'] = esc_html__('Package Listing','weddingvendor');\n\t$defaults['package_price'] = esc_html__('Price','weddingvendor');\n return $defaults;\n}", "public function getDefault($var);", "function read_package_config($package_name) {\n\tglobal $g;\n\n\t$pkg_info_xml = '/usr/local/share/' . g_get('pkg_prefix') . $package_name .\n\t '/info.xml';\n\n\tif (!file_exists($pkg_info_xml)) {\n\t\treturn false;\n\t}\n\n\t$pkg_info = parse_xml_config_pkg($pkg_info_xml, 'pfsensepkgs');\n\n\tif (empty($pkg_info)) {\n\t\treturn false;\n\t}\n\n\t/* it always returns an array with 1 item */\n\treturn $pkg_info['package'][0];\n}", "public function getDefaultDriver()\n {\n return $this->config()->get('settings.default', 'json');\n }", "private function getDefaultFromConfigFor($name)\n {\n return Arr::get($this->getConfigFor($name), 'default') ?: '';\n }", "function ot_theme_option_adapter( $default, $key ) {\r\n\treturn ot_get_option( $key, $default );\r\n}", "public function GetDefaults ();", "protected function getDefaultImportExportFolder() {}", "protected function getDefaultImportExportFolder() {}", "public function getDefaultDriver()\n {\n \treturn 'default';\n }", "public function getDefaultDirectory(): string|null;", "public function testExtractWithDefaultDomainSetDefault()\n {\n $this->assertEquals($this->getDefaultDomainFixture(__DIR__ . '/Fixture/MyFormTypeWithDefaultDomainSetDefault.php'), $this->extract('MyFormTypeWithDefaultDomainSetDefault.php'));\n }", "public function getDefaultConfiguration() {}", "function wp_default_packages($scripts)\n {\n }", "public function getDefaultJoomlaGroup()\n {\n if (MageBridgeHelper::isJoomla15()) {\n $usergroup = MageBridgeModelConfig::load('usergroup');\n if (!empty($usergroup)) {\n $usergroup_name = JFactory::getACL()->get_group_name($usergroup);\n return $usergroup_name;\n } else {\n $conf = JComponentHelper::getParams('com_users');\n return $conf->get('new_usertype', 'Registered');\n }\n }\n return null;\n }", "public function getDefaultConfiguration();", "protected function getDefaultNamespace($rootNamespace)\n {\n return $rootNamespace.config('ac-developers.repository.generator.namespaces.services', '\\Services');\n }", "public function getPackage($packageName = null) {\r\n\t if($packageName === null) {\r\n\t $packageName = strtolower(Nomenclature::getVendorAndPackage($this));\r\n\t }\r\n\r\n\t\treturn $this->getFramework()->getPackage($packageName);\r\n\t}", "protected function getDefaults()\n {\n return $this->transbankConfig->getDefaults(\n lcfirst(Helpers::classBasename(static::class))\n ) ?? [];\n }", "public function getDefaultAppName()\n\t{\n\t\treturn $this->_defaultAppName;\n\t}", "private function initDefaultLanguage()\r\n\t{\r\n\t\t$default_language = $this->xml->xpath(\"configuration/config[@name='languages']/language[position()=1]/@code\");\r\n\t\t\r\n\t\tif ( count($default_language) > 0)\r\n\t\t{\r\n\t\t\t$this->default_language = (string) $default_language[0][\"code\"];\r\n\t\t}\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->default_language = null;\r\n\t\t}\r\n\r\n\t\treturn $this->default_language;\r\n\t}", "public function defaultLocale()\n {\n $locales = $this->app('locales');\n\n foreach ($locales as $locale)\n {\n if( isset( $locale['default'] ) )\n return $locale['key'];\n }\n\n return false;\n }", "function get_meta_pkg_name() {\n\tglobal $g;\n\n\t/* XXX: Use pkg annotation */\n\tif (is_pkg_installed(g_get('product_name'))) {\n\t\treturn g_get('product_name');\n\t}\n\tforeach (g_get('alternativemetaports') as $suffix) {\n\t\tif (is_pkg_installed(g_get('product_name') . '-' . $suffix)) {\n\t\t\treturn g_get('product_name') . '-' . $suffix;\n\t\t}\n\t}\n\treturn false;\n}", "function acapi_get_option_file() {\n $defaults = acapi_common_options();\n return drush_get_option('ac-config', $defaults['ac-config']['default_value']);\n}", "protected function getDefaultDriver()\n {\n return config('filesystems.default');\n }", "function read_package_configurationfile($package_name) {\n\t$pkg_config = array();\n\t$id = get_package_id($package_name);\n\t$pkg_data = config_get_path(\"installedpackages/package/{$id}\", []);\n \n\tif ($id < 0 || empty($pkg_data)) {\n\t\treturn $pkg_config;\n\t}\n\n\tif (empty($pkg_data['configurationfile'])) {\n\t\treturn $pkg_config;\n\t}\n\n\tif (!file_exists('/usr/local/pkg/' . $pkg_data['configurationfile'])) {\n\t\treturn $pkg_config;\n\t}\n\n\t$pkg_config = parse_xml_config_pkg('/usr/local/pkg/' .\n\t $pkg_data['configurationfile'], \"packagegui\");\n\n\treturn $pkg_config;\n}" ]
[ "0.6571055", "0.65278476", "0.63079625", "0.6261967", "0.62408876", "0.62050027", "0.60639864", "0.6054709", "0.60540724", "0.60134476", "0.5989175", "0.5985479", "0.5929514", "0.5914323", "0.5914323", "0.58960205", "0.5895109", "0.58669084", "0.5866501", "0.58656716", "0.5862062", "0.5859123", "0.5853047", "0.5845692", "0.5812803", "0.5808597", "0.58016396", "0.5800248", "0.5795394", "0.5783073", "0.57673186", "0.5763718", "0.57552534", "0.5731775", "0.5726479", "0.57234013", "0.5717297", "0.5714034", "0.5707895", "0.56982875", "0.5691029", "0.56749725", "0.5659455", "0.5643519", "0.5640773", "0.5633599", "0.562341", "0.5622778", "0.56175274", "0.5615857", "0.5607842", "0.5586693", "0.5575942", "0.5566443", "0.5558621", "0.55556303", "0.55473644", "0.5547203", "0.5530825", "0.55241877", "0.55149895", "0.5512048", "0.5512048", "0.5500534", "0.5497826", "0.5496594", "0.5492339", "0.54879653", "0.5480508", "0.54724425", "0.5472195", "0.5469961", "0.546273", "0.5461781", "0.546029", "0.54532427", "0.5451389", "0.5443166", "0.5434367", "0.5433363", "0.54083407", "0.54065186", "0.54065186", "0.540413", "0.5389414", "0.5386956", "0.53807855", "0.5377847", "0.5377692", "0.5371709", "0.53703344", "0.5368067", "0.53647846", "0.5358306", "0.53566825", "0.5352721", "0.53513724", "0.5348649", "0.5345597", "0.5339507" ]
0.58706856
17
Get simple product from parent configurable product
public function getSelectedSimpleFromConfigurable($product, $item) { if (!is_callable(array($product, 'getTypeInstance')) || !is_callable(array($product->getTypeInstance(), 'getUsedProducts'))) { return $product; } $selectedAttributes = array(); $_attributes = $item->getOptionByCode('attributes'); if (!$_attributes) { $_attributes = $item->getProductOptionByCode('info_buyRequest'); if ($_attributes && isset($_attributes['super_attribute'])) { $selectedAttributes = $_attributes['super_attribute']; } } else { $selectedAttributes = unserialize($_attributes->getValue()); } if (!count($selectedAttributes)) { return $product; } $_Product = false; foreach ($product->getTypeInstance()->getUsedProducts() as $childProduct) { $checkRes = true; foreach ($selectedAttributes as $attributeId => $attributeValue) { $code = $product->getTypeInstance()->getAttributeById($attributeId)->getAttributeCode(); if ($childProduct->getData($code) != $attributeValue) { $checkRes = false; break; } } if ($checkRes) { $_Product = $childProduct; break; } } if (!$_Product) { return $product; } return $_Product; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConfigurableBySimple($idProduct);", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getProduct();", "public function getProduct()\n {\n return $this->coreRegistry->registry('product');\n }", "public function getProduct()\r\n {\r\n return $this->item->getParentObject()->getProduct();\r\n }", "protected function getProduct() {\n return $this->registry->registry('product');\n }", "public function getProduct() {\n return Mage::registry('product');\n }", "public function getProduct()\n {\n return Mage::registry('product');\n }", "public function getProduct()\n {\n return Mage::registry('product');\n }", "public function getProduct()\n {\n return Mage::registry('product');\n }", "public function getProduct() {\n return $this->_registry->registry ( 'current_product' );\n }", "public function primaryProduct() : object\n {\n return $this->hasOne(Species::class, 'id');\n }", "public function getProduct()\n {\n return Mage::registry('current_product');\n }", "public function getProduct(){\r\n return Mage::registry('current_product');\r\n }", "public function product()\n {\n return $this->belongsTo(config('inventory.models.product-variant'), 'product_variant_id');\n }", "public function getProduct()\r\n {\r\n return $this->product;\r\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "protected function getProduct()\n {\n $parentBlock = $this->getParentBlock();\n\n $product = $parentBlock && $parentBlock->getProductItem()\n ? $parentBlock->getProductItem()\n : $this->registry->registry('product');\n return $product;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getProduct()\n {\n return isset($this->product) ? $this->product : null;\n }", "public function getProduct()\n {\n return $this->product instanceof ProductReferenceBuilder ? $this->product->build() : $this->product;\n }", "public function getProduct(): Product\n {\n return $this->product;\n }", "public function get_product()\n {\n return $this->_product;\n }", "public function getProductOption();", "public function product() {\n $slug = $this->param('slug');\n\n return Products::where('slug', '=', $slug)->first();\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct()\n {\n return $this->product;\n }", "public function getProduct() {\r\n return $this->_product;\r\n }", "public function getProduct()\r\n {\r\n return $this->_params['product'];\r\n }", "public function product()\n {\n return $this->m_product;\n }", "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "public function getProduct0()\n {\n return $this->hasOne(Products::className(), ['id' => 'product']);\n }", "public function product() {\n return $this->morphTo();\n }", "public function getProduct()\n {\n return $this->getSubscription()->getProduct();\n }", "function Product() {\r\n\t\treturn $this->owner;\r\n\t}", "public function getPlatformProduct()\n {\n return $this->getSubscription()->getPlatformProduct();\n }", "public function product()\n {\n return $this->belongsTo('App\\Models\\Api\\v1\\Product', 'n_ProductId_FK')->withDefault();\n }", "public function _getProduct() {\n \n // get website id from request\n $websiteId = ( int ) $this->getRequest ()->getParam ( static::WEBSITE_ID );\n if ($websiteId <= 0) {\n $websiteId = Mage::app ()->getWebsite ( 'base' )->getId ();\n }\n \n // get store id from request\n $storeId = ( int ) $this->getRequest ()->getParam ( static::STORE_ID );\n if ($storeId <= 0) {\n $storeId = Mage::app ()->getWebsite ( $websiteId )->getDefaultGroup ()->getDefaultStoreId ();\n }\n if (is_null ( $this->_product )) {\n $productId = $this->getRequest ()->getParam ( 'id' );\n /**\n *\n * @var $productHelper Mage_Catalog_Helper_Product\n */\n $productHelper = Mage::helper ( 'catalog/product' );\n $product = $productHelper->getProduct ( $productId, $storeId );\n if (! ($product->getId ())) {\n $this->_critical ( static::RESOURCE_NOT_FOUND );\n }\n // check if product belongs to website current\n if ($this->_getStore ()->getId ()) {\n $isValidWebsite = in_array ( $websiteId, $product->getWebsiteIds () );\n if (! $isValidWebsite) {\n $this->_critical ( static::RESOURCE_NOT_FOUND );\n }\n }\n // Check display settings for customers & guests\n if ($this->getApiUser ()->getType () != Mage_Api2_Model_Auth_User_Admin::USER_TYPE) {\n // check if product assigned to any website and can be shown\n if ((! Mage::app ()->isSingleStoreMode () && ! count ( $product->getWebsiteIds () )) || ! $productHelper->canShow ( $product )) {\n $this->_critical ( static::RESOURCE_NOT_FOUND );\n }\n }\n $this->_product = $product;\n }\n return $this->_product;\n }", "protected abstract function isSingleProduct();", "protected function _getProduct()\n {\n if (!$this->_product) {\n $this->_product = $this->_objectManager->create(\\Magento\\Catalog\\Model\\Product::class);\n $productId = (int)$this->getRequest()->getParam('product', 0);\n $urlRewrite = $this->_getUrlRewrite();\n if (!$productId && $urlRewrite->getId() && $urlRewrite->getEntityType() === self::ENTITY_TYPE_PRODUCT) {\n $productId = $this->_getUrlRewrite()->getEntityId();\n }\n if ($productId) {\n $this->_product->load($productId);\n }\n }\n return $this->_product;\n }", "public function product()\n {\n return $this->belongsTo(BaseProduct::class);\n }", "public function getShowInProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_product');\n }", "public function getProduct() {\n\n if (!$this->product) {\n $this->product = $this->productPublicRepository->getById($this->getCartItem()->product_id);\n }\n return $this->product;\n }", "function product( )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $ret = new eZProduct( $this->ProductID );\n \n return $ret;\n }", "function stal_woo_get_global_product() {\n\t\tglobal $product;\n\n\t\treturn $product;\n\t}", "public function getCurrentProduct()\n {\n return $this->_registry->registry('current_product');\n }", "public function getCurrentProduct()\n {\n return $this->_registry->registry('current_product');\n }", "public function getCurrentProduct()\n {\n return $this->_registry->registry('current_product');\n }", "public function getProduct() {\n\t\t// if this is just a model made on our end, we might not the serialized product yet\n\t\t// alternatively: newer BillForward may omit serialized product and necessitate a fetch\n\t\tif (!$this->product) {\n\t\t\tif (!$this->productID) {\n\t\t\t\tthrow new Bf_PreconditionFailedException(\"This Bf_ProductRatePlan has neither a 'product' specified, nor a 'productID' by which to obtain said product.\");\n\t\t\t}\n\t\t\t$this->product = Bf_Product::getByID($this->productID);\n\t\t}\n\t\treturn $this->product;\n\t}", "function createProduct($parent = null);", "private function getProductByReference($prodRef) {\n $entityManager = $this->getDoctrine()->getManager();\n $product = null;\n $productList = $entityManager->getRepository('DppCustomersBundle:Product')->findBy(array('urlRef' => $prodRef));\n if (!$productList == null) {\n $product = $productList[0];\n }\n return $product;\n }", "public function getProductDefaultValue() {\n //initialize dummy value.. no content header.pure html\n $sql = null;\n $productId = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n SELECT `productId`\n FROM `product`\n WHERE `isActive` = 1\n AND `companyId` = '\" . $this->getCompanyId() . \"'\n AND \t `isDefault` =\t 1\n LIMIT 1\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n SELECT TOP 1 [productId],\n FROM [product]\n WHERE [isActive] = 1\n AND [companyId] = '\" . $this->getCompanyId() . \"'\n AND \t [isDefault] = 1\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n SELECT PRODUCTID AS \\\"productId\\\",\n FROM PRODUCT\n WHERE ISACTIVE = 1\n AND COMPANYID = '\" . $this->getCompanyId() . \"'\n AND \t ISDEFAULT\t =\t 1\n AND \t\t ROWNUM\t =\t 1\";\n } else {\n header('Content-Type:application/json; charset=utf-8');\n echo json_encode(array(\"success\" => false, \"message\" => $this->t['databaseNotFoundMessageLabel']));\n exit();\n }\n }\n }\n try {\n $result = $this->q->fast($sql);\n } catch (\\Exception $e) {\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n if ($result) {\n $row = $this->q->fetchArray($result);\n $productId = $row['productId'];\n }\n return $productId;\n }", "public function getProductType();", "public function getViewedProduct();", "public function getPicturesProduct()\n {\n $aVariantSelections = $this->getVariantSelections();\n if ($aVariantSelections && $aVariantSelections['oActiveVariant'] && !$aVariantSelections['blPerfectFit']) {\n return $aVariantSelections['oActiveVariant'];\n }\n\n return $this->getProduct();\n }", "public function getProdName() {\n return $this->ProductName;\n}", "abstract protected function extractProductDetail();", "abstract protected function getExistingVendorProduct(int $vendorProductId);", "public function getJsCustomProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/js_product');\n }", "public function getProductType()\n {\n }", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "public function find($id = 0)\n {\n\n $sql = 'SELECT products.id , product_name, categories.category_name, product_sku FROM `products`\n INNER JOIN product_properties_values on product_properties_values.id_product = products.id\n INNER JOIN categories on categories.id = product_properties_values.property_value\n WHERE products.id = ?';\n\n $sqlData = [(int)$id];\n $app = Application::instance();\n $product['header'] = $this->catalog = $app->db()->getArrayBySqlQuery($sql,$sqlData);\n\n /*$sql = 'SELECT products.product_name, products.product_price, products.product_sku FROM products\n WHERE products.id_parent_product ='. (int)$id\n ;*/\n\n\n $sql = 'SET @SQL = NULL';\n $app->db()->getArrayBySqlQuery($sql);\n $sql = 'SELECT\n GROUP_CONCAT(DISTINCT\n CONCAT(\\'GROUP_CONCAT(IF(pr.product_property_name = \\\"\\', pr.`product_property_name`, \\'\\\", pp.property_value, NULL)) AS \\', pr.`product_property_name`)\n ) INTO @SQL\n FROM product_properties AS pr';\n $app->db()->getArrayBySqlQuery($sql);\n $sql = 'SET @SQL = CONCAT(\\'SELECT p .*, \\', @SQL, \\'\n FROM products AS p\n LEFT JOIN product_properties_values AS pp ON (p.id = pp.id_product)\n LEFT JOIN product_properties AS pr ON (pr.id = pp.id_property)\n WHERE p.id_parent_product =' . (int)$id . '\n AND deleted is NULL\n GROUP BY p.id ;\\')';\n $app->db()->getArrayBySqlQuery($sql);\n $sql = 'PREPARE stmt FROM @SQL';\n $app->db()->getArrayBySqlQuery($sql);\n $sql = 'EXECUTE stmt';\n $product['list'] = $app->db()->getArrayBySqlQuery($sql);\n $sql = 'DEALLOCATE PREPARE stmt';\n $app->db()->getArrayBySqlQuery($sql);\n\n foreach ($product['list'] as $key => $good) {\n $product['list'][$key]['Photo'] = explode(',', $product['list'][$key]['Photo']);\n }\n\n\n $this->product = $product;\n\n\n return $this->product;\n }", "public function product()\n {\n return $this->belongsTo(ProductProxy::modelClass());\n }", "public function getProduct() {\r\n\t\t$id = $this->getRequest()->getParam('id');\r\n\t\t$products = Mage::getModel('catalog/product')->load($id);\r\n\t\treturn $products;\r\n\t}", "public function getChildProduct($item)\n {\n if ($option = $item->getOptionByCode('simple_product')) {\n return $option->getProduct();\n }\n return null;\n }", "function get_child_product($entity_id)\n\t{\n\t\t$relTable = Mage::getSingleton('core/resource')->getTableName('catalog_product_relation');\n\t\t$sql = \"SELECT child_id FROM `\" . $relTable . \"`\n\t\t\t\t\t\tWHERE parent_id = '\" . (int) $entity_id . \"'\";\n\t\t$prods = Mage::getSingleton('core/resource')->getConnection('core_read')->fetchAll($sql);\n\t\tif ($prods) {\n\t\t\treturn $prods;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function get_product($aWhere = array())\n\t{\n\t\tif ($this->product === null) {\n\n\t\t\t$oOrm = new Orm;\n\n\t\t\t$oOrm->select(array('*'))\n\t\t\t\t ->from('product');\n\t\t\t\t\t\t\t\t\t\t\t\t \n\t $aWhere['id'] = $this->get_id_product();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t \n $aResult = $oOrm->where($aWhere)\n\t\t\t\t\t\t ->load(false, '\\Venus\\src\\Helium\\Entity');\n\n if (count($aResult) > 0) { $this->product = $aResult[0]; }\n else { $this->product = array(); }\n }\n\n\t\treturn $this->product;\n\t}", "public function getProducte()\n {\n return $this->producte;\n }", "function get_product( $the_product = false, $args = array() ) {\n\tglobal $carton;\n\treturn $carton->product_factory->get_product( $the_product, $args );\n}", "public function product()\n {\n return $this->belongsTo('App\\CatalogProduct', 'product_id');\n }", "public function product()\n {\n //retorna un solo objeto product, la capacitacion solo tiene un producto\n return $this->belongsTo('Vest\\Tables\\Product');\n }", "function sellerproduct($sellerid) {\n $sellerproduct = Mage::getModel ( static::CAT_PRO )->getCollection ()->addFieldToFilter ( static::SELLER_ID, $sellerid );\n return $sellerproduct->getData ();\n }", "public function getShowInProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function product_able()\n {\n return $this->morphTo();\n }", "public function getProductSKU()\n {\n }", "public function product_detail()\n {\n return $this->has_one('Product_Detail');\n }", "protected function _prepareProducts(Mage_Catalog_Model_Product $parentProduct, Mage_Catalog_Model_Product $simpleProduct)\n\t{\n\t\tif (Mage::helper('bcp')->getConfig('keep_configurable_media_gallery'))\n\t\t{\n\t\t\t$images = $parentProduct->getMediaGalleryImages();\n\t\t\t$simpleProduct->setData('media_gallery_images', $images);\n\t\t}\n\t\t\n\t\tif (Mage::helper('bcp')->getConfig('keep_configurable_description'))\n\t\t{\n\t\t\t$description = $parentProduct->getDescription();\n\t\t\t$simpleProduct->setData('description', $description);\n\t\t}\n\n\t\tif (Mage::helper('bcp')->getConfig('update_price'))\n\t\t{\n\t\t\t/*\n\t\t\t * Load the simple products tier prices and set the data on the configurable product\n\t\t\t */\n\t\t\t$simpleProduct->getTierPrice();\n\t\t\t$parentProduct->setData('tier_price', $simpleProduct->getData('tier_price'));\n\t\t}\n\t\t\n\t\t$simpleProduct->setBcpParentProduct($parentProduct);\n\n\t\treturn $this;\n\t}", "public function getProductName(){\n return $this->product_name;\n }", "public function getProductId(): string;", "public function getOneProducto()\n {\n $sql = \"SELECT * FROM productos WHERE id = {$this->getId()}\";\n $query = $this->conexion->query($sql);\n\n if ($query == true) {\n\n $resultado = $query->fetch_object();\n return $resultado;\n }\n }", "protected function getProduct($forceReload = false): ProductInterface\n {\n return $this->productRepository->get('simple', false, Store::DEFAULT_STORE_ID, $forceReload);\n }", "public function getProdRelated()\n {\n return $this->prod_related;\n }", "public function getSimpleProductField()\n {\n return [\n 'arguments' => [\n 'data' => [\n 'config' => [\n 'label' => __('Simple Product'),\n 'componentType' => Field::NAME,\n 'formElement' => Select::NAME,\n 'dataType' => Text::NAME,\n 'sortOrder' => 10,\n 'options' => $this->getSimpleProductOptions(),\n ],\n ],\n ],\n ];\n }", "public function getSource()\n {\n return 'product';\n }", "public function getConfigurableProductIdentifiers(\\stdClass $args, \\Mage_Catalog_Model_Product $configurable)\r\n\t{\r\n\t\tif ($this->useConfigurableParent())\r\n\t\t{\r\n\t\t\t$args->id\t\t= $configurable->getSku();\r\n\t\t\t$args->idParent = $configurable->getSku();\r\n\t\t\t$args->name \t= $configurable->getName();\r\n\t\t}\r\n\r\n\t\treturn $args;\r\n\t}", "static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }", "public function product()\n {\n return $this->hasOne('App\\Models\\Product');\n }", "public function getCurrent()\n\t{\n\t\treturn Mage::registry('current_product');\n\t}", "public function getSimpleProductOptions()\n {\n $simpleProducts = [];\n $selectedName = null;\n $configurableOption = $this->getProduct()->getData('simple_product_preselect');\n $disabled = ['value' => 0, 'label' => 'Disabled'];\n\n foreach ($this->getSimpleProducts() as $index => $product) {\n if ($product->isSaleable()) {\n if ($configurableOption !== $product->getData('entity_id')) {\n $simpleProducts[$index]['value'] = $product->getData('entity_id');\n $simpleProducts[$index]['label'] = $product->getData('name') . ' - ' . $product->getData('sku');\n } else {\n $selectedName = $product->getData('name') . ' - ' . $product->getData('sku');\n }\n }\n }\n\n if ($configurableOption && $selectedName) {\n $selected = ['value' => 0, 'label' => $selectedName];\n array_unshift($simpleProducts, $selected, $disabled);\n } else {\n array_unshift($simpleProducts, $disabled);\n }\n\n return $simpleProducts;\n }", "public function product(): BelongsTo\n {\n return $this->belongsTo(config('laravel-inventory.product'));\n }", "public function getProductID()\n {\n }", "protected function _initProduct()\n {\n $this->_title($this->__('Catalog'))\n ->_title($this->__('Manage Products'));\n\n $productId = (int) $this->getRequest()->getParam('id');\n $product = Mage::getModel('catalog/product')\n ->setStoreId($this->getRequest()->getParam('store', 0));\n\n // Hack\n\n $this->getRequest()->setParam('set',4);\n $this->getRequest()->setParam('type','simple');\n if (!$productId) {\n if ($setId = (int) $this->getRequest()->getParam('set')) {\n $product->setAttributeSetId($setId);\n }\n\n if ($typeId = $this->getRequest()->getParam('type')) {\n $product->setTypeId($typeId);\n }\n }\n\n $product->setData('_edit_mode', true);\n if ($productId) {\n try {\n $product->load($productId);\n\n } catch (Exception $e) {\n $product->setTypeId(Mage_Catalog_Model_Product_Type::DEFAULT_TYPE);\n Mage::logException($e);\n }\n }\n\n $attributes = $this->getRequest()->getParam('attributes');\n if ($attributes && $product->isConfigurable() &&\n (!$productId || !$product->getTypeInstance()->getUsedProductAttributeIds())) {\n $product->getTypeInstance()->setUsedProductAttributeIds(\n explode(\",\", base64_decode(urldecode($attributes)))\n );\n }\n\n // Required attributes of simple product for configurable creation\n if ($this->getRequest()->getParam('popup')\n && $requiredAttributes = $this->getRequest()->getParam('required')) {\n $requiredAttributes = explode(\",\", $requiredAttributes);\n foreach ($product->getAttributes() as $attribute) {\n if (in_array($attribute->getId(), $requiredAttributes)) {\n $attribute->setIsRequired(1);\n }\n }\n }\n\n if ($this->getRequest()->getParam('popup')\n && $this->getRequest()->getParam('product')\n && !is_array($this->getRequest()->getParam('product'))\n && $this->getRequest()->getParam('id', false) === false) {\n\n $configProduct = Mage::getModel('catalog/product')\n ->setStoreId(0)\n ->load($this->getRequest()->getParam('product'))\n ->setTypeId($this->getRequest()->getParam('type'));\n\n /* @var $configProduct Mage_Catalog_Model_Product */\n $data = array();\n foreach ($configProduct->getTypeInstance()->getEditableAttributes() as $attribute) {\n\n /* @var $attribute Mage_Catalog_Model_Resource_Eav_Attribute */\n if(!$attribute->getIsUnique()\n && $attribute->getFrontend()->getInputType()!='gallery'\n && $attribute->getAttributeCode() != 'required_options'\n && $attribute->getAttributeCode() != 'has_options'\n && $attribute->getAttributeCode() != $configProduct->getIdFieldName()) {\n $data[$attribute->getAttributeCode()] = $configProduct->getData($attribute->getAttributeCode());\n }\n }\n\n $product->addData($data)\n ->setWebsiteIds($configProduct->getWebsiteIds());\n }\n\n Mage::register('product', $product);\n Mage::register('current_product', $product);\n Mage::getSingleton('cms/wysiwyg_config')->setStoreId($this->getRequest()->getParam('store'));\n return $product;\n }" ]
[ "0.693966", "0.68753296", "0.6782604", "0.6780061", "0.6592597", "0.6592458", "0.65876496", "0.6566668", "0.6566668", "0.6566668", "0.64918184", "0.6483138", "0.64762497", "0.6451072", "0.642542", "0.6417246", "0.64117086", "0.64117086", "0.64117086", "0.64117086", "0.64117086", "0.64117086", "0.6404585", "0.6400718", "0.63158", "0.6285052", "0.6276797", "0.6272123", "0.62068534", "0.61879164", "0.61830825", "0.61830825", "0.6178063", "0.6177232", "0.6175219", "0.6159097", "0.6159097", "0.6159097", "0.6159097", "0.6142005", "0.6104556", "0.6045058", "0.6035811", "0.60226846", "0.5963736", "0.59373564", "0.59350526", "0.5912199", "0.5847745", "0.58392185", "0.58350056", "0.58178735", "0.58080536", "0.58065695", "0.58065695", "0.58065695", "0.58039165", "0.57721305", "0.5764069", "0.57542354", "0.5753367", "0.5737104", "0.5707356", "0.56888896", "0.56883526", "0.56578875", "0.5649515", "0.5649509", "0.5648456", "0.5647368", "0.56412786", "0.5631845", "0.56254053", "0.55943644", "0.55880404", "0.55837417", "0.5583514", "0.5580631", "0.5578023", "0.5563022", "0.55608785", "0.55578655", "0.55530804", "0.5549544", "0.5542311", "0.5528595", "0.55253804", "0.55230206", "0.54980844", "0.5495148", "0.54910266", "0.54891396", "0.54886043", "0.5484986", "0.54839236", "0.54835945", "0.5478061", "0.54766905", "0.5475563", "0.54710424" ]
0.654798
10
Get product package parameters for temando
public function getProductTemandoParams() { $return = array('packaging_mode'); for($i=1; $i<=5; $i++) { $return[] = "package_{$i}_description"; $return[] = "package_{$i}_type"; $return[] = "package_{$i}_fragile"; $return[] = "package_{$i}_weight"; $return[] = "package_{$i}_length"; $return[] = "package_{$i}_width"; $return[] = "package_{$i}_height"; } return $return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getExportModelParameters(Product $product)\n {\n $object = new \\ReflectionObject($product);\n $property = $object->getProperty('_parameters');\n $property->setAccessible(true);\n return $property->getValue($product);\n }", "public function getData()\n {\n $this->validate(\n 'app_id',\n 'productid',\n 'app_key'\n );\n\n $params = $this->parameters->all();\n $params['appid'] = $params['app_id'];\n $params['appkey'] = $params['app_key'];\n $params['mch_id'] = $params['partner'];\n $params = array_only($params, array(\n 'appid', 'productid', 'appkey',\n 'noncestr', 'timestamp', 'package','mch_id'\n ));\n\n\n return $params;\n }", "public function getProduct()\r\n {\r\n return $this->_params['product'];\r\n }", "function PKG_getPackageParams($id)\n{ \nreturn(PKG_getInfoFromPackageID($id,\"params\"));\n}", "public static function getProductOptions()\n {\n return self::get('product') ?: [];\n }", "public function getHelmertParameters(){\n\n\t\t\treturn $this->_helmertPatameters;\n\t\t}", "public function getParameters() {}", "protected function getSetupParameters() {\n return array(\n 'AR Segments' => 'N/A',\n 'Pre Condition 1' => 'None',\n '&nbsp;&nbsp;TOIO - TC/QD' => '',\n '&nbsp;&nbsp;SS Rounds' => '',\n 'Pre Condition 2' => 'None',\n '&nbsp;&nbsp;TOIO - TC/QD ' => '',\n '&nbsp;&nbsp;SS Rouds ' => '',\n 'Notes' => ''\n );\n }", "function getParameters() {\n $ar = split(\";\", $GLOBALS[\"pagedata\"][\"module\"]);\n for ($c = 0; $c < sizeof($ar); $c++) {\n $a = split(\"=\", $ar[$c]);\n $this->module_param[$a[0]] = $a[1];\n }\n }", "function getParameters() {\n $ar = split(\";\", $GLOBALS[\"pagedata\"][\"module\"]);\n for ($c = 0; $c < sizeof($ar); $c++) {\n $a = split(\"=\", $ar[$c]);\n $this->module_param[$a[0]] = $a[1];\n }\n }", "public function getParameters();", "public function getParameters();", "public function getParameters();", "public function getParameters();", "public function getParameters();", "public function getParameters();", "public function getParameters();", "public function getParameters();", "function getParameters()\r\n {\r\n }", "function getParameters();", "function getParameters();", "abstract public function getParameters();", "public function transactionGetParameters ();", "public function getConfig($package);", "static function plInfo()\n {\n return array(\n \"plShortName\" => _(\"Argonaut Mirror settings\"),\n \"plDescription\" => _(\"Argonaut Mirror settings\").\" (\"._(\"Services\").\")\",\n \"plIcon\" => \"plugins/argonaut/images/iconMiniMirrorConfig.png\",\n\n \"plProvidedAcls\" => parent::generatePlProvidedAcls(self::getAttributesInfo())\n );\n }", "public static function get_params() {\n\n\t\t\t$params = array(\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'admin_label' => true,\n\t\t\t\t\t'heading' => esc_html__( 'Height', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'size',\n\t\t\t\t\t'value' => '30px',\n\t\t\t\t\t'description' => vcex_shortcode_param_description( 'height' ),\n\t\t\t\t\t'dependency' => array( 'element' => 'responsive', 'value' => 'false' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_ofswitch',\n\t\t\t\t\t'heading' => esc_html__( 'Responsive?', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'responsive',\n\t\t\t\t\t'value' => 'false',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_responsive_sizes',\n\t\t\t\t\t'heading' => esc_html__( 'Height', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'size_responsive',\n\t\t\t\t\t'value' => '30px',\n\t\t\t\t\t'description' => vcex_shortcode_param_description( 'height' ),\n\t\t\t\t\t'dependency' => array( 'element' => 'responsive', 'value' => 'true' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Custom Classes', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'class',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_visibility',\n\t\t\t\t\t'heading' => esc_html__( 'Visibility', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'visibility',\n\t\t\t\t),\n\t\t\t);\n\n\t\t\treturn apply_filters( 'vcex_shortcode_params', $params, 'vcex_spacing' );\n\n\t\t}", "public function getProductOption();", "public static function get_params() {\n\t\t\t$params = array(\n\t\t\t\t// General\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Heading', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'heading',\n\t\t\t\t\t'value' => 'Sample Heading',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textarea_html',\n\t\t\t\t\t'holder' => 'div',\n\t\t\t\t\t'heading' => esc_html__( 'Content', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'content',\n\t\t\t\t\t'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed faucibus feugiat convallis. Integer nec eros et risus condimentum tristique vel vitae arcu.',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Element ID', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'unique_id',\n\t\t\t\t\t'admin_label' => true,\n\t\t\t\t\t'description' => vcex_shortcode_param_description( 'unique_id' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Extra class name', 'total-theme-core' ),\n\t\t\t\t\t'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'classes',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_visibility',\n\t\t\t\t\t'heading' => esc_html__( 'Visibility', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'visibility',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_hover_animations',\n\t\t\t\t\t'heading' => esc_html__( 'Hover Animation', 'total-theme-core'),\n\t\t\t\t\t'param_name' => 'hover_animation',\n\t\t\t\t),\n\t\t\t\tvcex_vc_map_add_css_animation(),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Animation Duration', 'total'),\n\t\t\t\t\t'param_name' => 'animation_duration',\n\t\t\t\t\t'description' => esc_html__( 'Enter your custom time in seconds (decimals allowed).', 'total'),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Animation Delay', 'total'),\n\t\t\t\t\t'param_name' => 'animation_delay',\n\t\t\t\t\t'description' => esc_html__( 'Enter your custom time in seconds (decimals allowed).', 'total'),\n\t\t\t\t),\n\t\t\t\t// Style\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'dropdown',\n\t\t\t\t\t'heading' => esc_html__( 'Style', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'style',\n\t\t\t\t\t'value' => array(\n\t\t\t\t\t\tesc_html__( 'Default', 'total-theme-core' ) => '',\n\t\t\t\t\t\tesc_html__( 'Plain', 'total-theme-core' ) => 'one',\n\t\t\t\t\t\tesc_html__( 'Boxed Rounded', 'total-theme-core' ) => 'two',\n\t\t\t\t\t\tesc_html__( 'Boxed Square', 'total-theme-core' ) => 'three',\n\t\t\t\t\t\tesc_html__( 'Outline', 'total-theme-core' ) => 'four',\n\t\t\t\t\t),\n\t\t\t\t\t'group' => esc_html__( 'Style', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'dropdown',\n\t\t\t\t\t'heading' => esc_html__( 'Bottom Margin', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'bottom_margin',\n\t\t\t\t\t'value' => vcex_margin_choices(),\n\t\t\t\t\t'admin_label' => true,\n\t\t\t\t\t'group' => esc_html__( 'Style', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'dropdown',\n\t\t\t\t\t'heading' => esc_html__( 'Shadow', 'total' ),\n\t\t\t\t\t'param_name' => 'shadow',\n\t\t\t\t\t'value' => vcex_shadow_choices(),\n\t\t\t\t\t'group' => esc_html__( 'Style', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_text_alignments',\n\t\t\t\t\t'heading' => esc_html__( 'Text Align', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'text_align',\n\t\t\t\t\t'std' => '',\n\t\t\t\t\t'group' => esc_html__( 'Style', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_trbl',\n\t\t\t\t\t'heading' => esc_html__( 'Padding', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'padding',\n\t\t\t\t\t'dependency' => array( 'element' => 'style', 'value' => array( 'two', 'three' ) ),\n\t\t\t\t\t'group' => esc_html__( 'Style', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_colorpicker',\n\t\t\t\t\t'heading' => esc_html__( 'Background Color', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'background',\n\t\t\t\t\t'dependency' => array( 'element' => 'style', 'value' => array( 'two', 'three' ) ),\n\t\t\t\t\t'group' => esc_html__( 'Style', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_colorpicker',\n\t\t\t\t\t'heading' => esc_html__( 'Border Color', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'border_color',\n\t\t\t\t\t'dependency' => array( 'element' => 'style', 'value' => array( 'four' ) ),\n\t\t\t\t\t'group' => esc_html__( 'Style', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Border Radius', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'border_radius',\n\t\t\t\t\t'dependency' => array( 'element' => 'style', 'value' => array( 'two', 'three', 'four' ) ),\n\t\t\t\t\t'group' => esc_html__( 'Style', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\t// Heading\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_colorpicker',\n\t\t\t\t\t'heading' => esc_html__( 'Color', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'heading_color',\n\t\t\t\t\t'group' => esc_html__( 'Heading', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_select_buttons',\n\t\t\t\t\t'heading' => esc_html__( 'Tag', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'heading_type',\n\t\t\t\t\t'group' => esc_html__( 'Heading', 'total-theme-core' ),\n\t\t\t\t\t'std' => 'h2',\n\t\t\t\t\t'choices' => 'html_tag',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_font_family_select',\n\t\t\t\t\t'heading' => esc_html__( 'Font Family', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'heading_font_family',\n\t\t\t\t\t'group' => esc_html__( 'Heading', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_font_weight',\n\t\t\t\t\t'heading' => esc_html__( 'Font Weight', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'heading_weight',\n\t\t\t\t\t'group' => esc_html__( 'Heading', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_text_transforms',\n\t\t\t\t\t'heading' => esc_html__( 'Text Transform', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'heading_transform',\n\t\t\t\t\t'group' => esc_html__( 'Heading', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_responsive_sizes',\n\t\t\t\t\t'target' => 'font-size',\n\t\t\t\t\t'heading' => esc_html__( 'Font Size', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'heading_size',\n\t\t\t\t\t'description' => vcex_shortcode_param_description( 'font_size' ),\n\t\t\t\t\t'group' => esc_html__( 'Heading', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_trbl',\n\t\t\t\t\t'heading' => esc_html__( 'Margin', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'heading_margin',\n\t\t\t\t\t'description' => vcex_shortcode_param_description( 'margin' ),\n\t\t\t\t\t'group' => esc_html__( 'Heading', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Letter Spacing', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'heading_letter_spacing',\n\t\t\t\t\t'description' => vcex_shortcode_param_description( 'letter_spacing' ),\n\t\t\t\t\t'group' => esc_html__( 'Heading', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\t// Content\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'dropdown',\n\t\t\t\t\t'heading' => esc_html__( 'Top Spacing', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'content_top_margin',\n\t\t\t\t\t'value' => vcex_margin_choices(),\n\t\t\t\t\t'group' => esc_html__( 'Content', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_colorpicker',\n\t\t\t\t\t'heading' => esc_html__( 'Background', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'content_background',\n\t\t\t\t\t'group' => esc_html__( 'Content', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_colorpicker',\n\t\t\t\t\t'heading' => esc_html__( 'Color', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'content_color',\n\t\t\t\t\t'group' => esc_html__( 'Content', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_trbl',\n\t\t\t\t\t'heading' => esc_html__( 'Margin', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'content_margin',\n\t\t\t\t\t'description' => vcex_shortcode_param_description( 'margin' ),\n\t\t\t\t\t'group' => esc_html__( 'Content', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_trbl',\n\t\t\t\t\t'heading' => esc_html__( 'Padding', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'content_padding',\n\t\t\t\t\t'description' => vcex_shortcode_param_description( 'padding' ),\n\t\t\t\t\t'group' => esc_html__( 'Content', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_responsive_sizes',\n\t\t\t\t\t'target' => 'font-size',\n\t\t\t\t\t'heading' => esc_html__( 'Font Size', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'content_font_size',\n\t\t\t\t\t'description' => vcex_shortcode_param_description( 'font_size' ),\n\t\t\t\t\t'group' => esc_html__( 'Content', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_font_weight',\n\t\t\t\t\t'heading' => esc_html__( 'Font Weight', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'content_font_weight',\n\t\t\t\t\t'group' => esc_html__( 'Content', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\t// Media\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'dropdown',\n\t\t\t\t\t'heading' => esc_html__( 'Source', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'image_source',\n\t\t\t\t\t'std' => 'media_library',\n\t\t\t\t\t'value' => array(\n\t\t\t\t\t\tesc_html__( 'Media Library', 'total-theme-core' ) => 'media_library',\n\t\t\t\t\t\tesc_html__( 'External', 'total-theme-core' ) => 'external',\n\t\t\t\t\t),\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'attach_image',\n\t\t\t\t\t'heading' => esc_html__( 'Image', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'image',\n\t\t\t\t\t'dependency' => array( 'element' => 'image_source', 'value' => 'media_library' ),\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'External Image URL', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'external_image',\n\t\t\t\t\t'dependency' => array( 'element' => 'image_source', 'value' => 'external' ),\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Image Alt', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'image_alt',\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t\t'dependency' => array( 'element' => 'image', 'not_empty' => true ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Video link', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'video',\n\t\t\t\t\t'description' => esc_html__( 'Enter in a video URL that is compatible with WordPress\\'s built-in oEmbed feature.', 'total-theme-core' ),\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_select_buttons',\n\t\t\t\t\t'heading' => esc_html__( 'Image Style', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'img_style',\n\t\t\t\t\t'std' => '',\n\t\t\t\t\t'choices' => array(\n\t\t\t\t\t\t'' => esc_html__( 'Auto', 'total-theme-core' ),\n\t\t\t\t\t\t'stretch' => esc_html__( 'Stretch', 'total-theme-core' ),\n\t\t\t\t\t),\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_text_alignments',\n\t\t\t\t\t'heading' => esc_html__( 'Align', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'img_align',\n\t\t\t\t\t'std' => '',\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'dropdown',\n\t\t\t\t\t'heading' => esc_html__( 'Border Radius', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'img_border_radius',\n\t\t\t\t\t'value' => vcex_border_radius_choices(),\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'dropdown',\n\t\t\t\t\t'heading' => esc_html__( 'Bottom Margin', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'img_bottom_margin',\n\t\t\t\t\t'value' => vcex_margin_choices(),\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_image_sizes',\n\t\t\t\t\t'heading' => esc_html__( 'Image Size', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'img_size',\n\t\t\t\t\t'std' => 'wpex_custom',\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t\t'dependency' => array( 'element' => 'image_source', 'value' => 'media_library' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_image_crop_locations',\n\t\t\t\t\t'heading' => esc_html__( 'Image Crop Location', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'img_crop',\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t\t'dependency' => array( 'element' => 'img_size', 'value' => 'wpex_custom' ),\n\t\t\t\t\t'dependency' => array( 'element' => 'image_source', 'value' => 'media_library' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Image Crop Width', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'img_width',\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t\t'dependency' => array( 'element' => 'img_size', 'value' => 'wpex_custom' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Image Crop Height', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'img_height',\n\t\t\t\t\t'description' => esc_html__( 'Leave empty to disable vertical cropping and keep image proportions.', 'total-theme-core' ),\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t\t'dependency' => array( 'element' => 'img_size', 'value' => 'wpex_custom' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_image_filters',\n\t\t\t\t\t'heading' => esc_html__( 'Image Filter', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'img_filter',\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_image_hovers',\n\t\t\t\t\t'heading' => esc_html__( 'CSS3 Image Hover', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'img_hover_style',\n\t\t\t\t\t'group' => esc_html__( 'Media', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\t// Link\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vc_link',\n\t\t\t\t\t'heading' => esc_html__( 'URL', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'url',\n\t\t\t\t\t'group' => esc_html__( 'Link', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_ofswitch',\n\t\t\t\t\t'heading' => esc_html__( 'Local Scroll', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'url_local_scroll',\n\t\t\t\t\t'group' => esc_html__( 'Link', 'total-theme-core' ),\n\t\t\t\t\t'std' => 'false',\n\t\t\t\t),\n\t\t\t\t// CSS\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'css_editor',\n\t\t\t\t\t'heading' => esc_html__( 'CSS box', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'css',\n\t\t\t\t\t'group' => esc_html__( 'CSS', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t);\n\n\t\t\treturn apply_filters( 'vcex_shortcode_params', $params, 'vcex_teaser' );\n\n\t\t}", "public function transactionFormGetScriptParameters ();", "public function parameters();", "public function parameters();", "protected function getKernelParameters()\n {\n $parameters = parent::getKernelParameters();\n $parameters['kernel.drupal_root'] = DRUPAL_ROOT;\n $parameters['kernel.conf_path'] = conf_path();\n $parameters['kernel.conf_dir'] = basename(conf_path());\n $parameters['kernel.secret'] = variable_get('drupal_private_key', 0);\n\n return $parameters;\n }", "protected function RTEtsConfigParams() {}", "public function getDesignParams();", "public static function getProviderParameters();", "public function getParameters()\n {\n // TODO: Implement getParameters() method.\n }", "public function getSettingParameters() : array\n {\n \treturn $this->settings['parameters'];\n }", "public function getPackageInfo()\n {\n return $this->getConfig()->getPackageInfo();\n }", "function info()\n\t{\n\t\t$info=array();\n\t\t$info['author']='Chris Graham';\n\t\t$info['organisation']='ocProducts';\n\t\t$info['hacked_by']=NULL;\n\t\t$info['hack_version']=NULL;\n\t\t$info['version']=2;\n\t\t$info['locked']=false;\n\t\t$info['parameters']=array('root','sort','search','max','param','select','template_set','display_type');\n\t\treturn $info;\n\t}", "public function cpt_params( ){\n\t\t\t\n\t\t\t$a = $this->cpt_args;\n\t\t\t\n\t\t\t$labels = $this->cpt_labels();\n\t\t\t\n\t\t\t$caps = $this->set_caps(\n\t\t\t\t\tarray( \n\t\t\t\t\t\t'cap_posts' => $a[ 'cap_posts' ], \n\t\t\t\t\t\t'cap_post' => $a[ 'cap_post' ] )\n\t\t\t\t);\n\t\t\t\n\t\t\t\n\t\t\t$params = array(\n\t\t\t\t'labels' => $labels,\n\t\t\t\t'capabilities' => $caps, \n\t\t\t\t'description' => $a[ 'description' ],\n\t\t\t\t'public' => true ,\n\t\t\t\t'publicly_queryable' => true,\n\t\t\t\t'query_var' => true,\n\t\t\t\t'show_ui' => true,\n\t\t\t\t'show_in_menu' => $a[ 'show_in_menu' ], //Toggle here to hide from main menu. \n\t\t\t\t'has_archive' => true, \n\t\t\t\t'hierarchical' => true,\n\t\t\t\t'menu_position' => $a[ 'menu_pos' ],\n\t\t\t\t'menu_icon' => 'dashicons-'. $a[ 'menu_icon' ],\n\t\t\t\t'supports' => $a[ 'supports' ], \n\t\t\t\t'capability_type'=>'post',\n\t\t\t\t'map_meta_cap'=> true, \n\t\t\t\t'rewrite' => array( 'slug' => $a[ 'rewrite' ] )\n\t\t\t);\n\t\t\t\n\t\t\treturn $params;\n\t\t\t\n\t\t}", "public static function get_parameters() {\n return array(\n array(\n 'name' => 'termlist_id',\n 'caption' => 'Term List',\n 'description' => 'The term list being edited.',\n 'type' => 'select',\n 'table' => 'termlist',\n 'captionField' => 'title',\n 'valueField' => 'id',\n 'siteSpecific'=>true,\n 'group' => 'Terms',\n 'required'=>true\n ),\n array(\n 'name' => 'language_id',\n 'caption' => 'Language',\n 'description' => 'The language that terms are created in.',\n 'type' => 'select',\n 'table' => 'language',\n 'captionField' => 'language',\n 'valueField' => 'id',\n 'siteSpecific'=>true,\n 'group' => 'Terms',\n 'required'=>true\n )\n );\n }", "public function getProductData()\n {\n // use\n //$this->request->getParams(); // all params\n $id= $this->request->getParam('param');\n $product = $this->_product->create()->load($id);\n return $product;\n\n }", "protected function addProductPackParameterNode()\n {\n $builder = new TreeBuilder();\n $node = $builder->root('product_pack');\n\n $node\n ->treatTrueLike(array('entity' => null))\n ->treatFalseLike(array('entity' => null))\n ->addDefaultsIfNotSet()\n ->children()\n ->scalarNode('entity')\n ->defaultNull()\n ->end()\n ->end()\n ;\n\n return $node;\n }", "function getParams()\n {\n global $id;\n global $mode;\n global $data_source;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($data_source)) {\n $this->data_source = $data_source;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "public static function getProductsOptions()\n {\n return self::get('products') ?: [];\n }", "public function getParameters($applicationRoot)\n {\n return array(\n 'boot.app_dir' => $applicationRoot,\n );\n }", "public function getParams() {}", "function getProductInfos($oid){\n if (!isset($this->products[$oid])){\n $r = array('pool'=>NULL, 'ticket'=>NULL, 'person'=>NULL, 'taarticleno'=>NULL);\n $selectedfields = array('tapool', 'taperson', 'taticket', 'prdconf');\n if ($this->xwtscatalog->fieldExists('taarticleno')){\n $selectedfields[] = 'taarticleno';\n }\n $dp = $this->xwtscatalog->display(array('oid'=>$oid,\n 'selectedfields'=>$selectedfields,\n 'options'=>array('tapool'=>array('target_fields'=>array('prjno', 'poolno')),\n 'taperson'=>array('target_fields'=>array('ptno')),\n 'prdconf'=>array('target_fields'=>array('calendar')),\n 'taticket'=>array('target_fields'=>array('tapool', 'ttno'))\n )\n )\n );\n $r['project'] = $dp['otapool']->link['oprjno']->raw;\n $r['pool'] = $dp['otapool']->link['opoolno']->raw;\n $r['ticket'] = $dp['otaticket']->link['ottno']->raw;\n $r['person'] = $dp['otaperson']->link['optno']->raw;\n $r['calendartype'] = $dp['oprdconf']->link['ocalendar']->link['otype']->raw;\n if (isset($dp['otaarticleno']))\n $r['taarticleno'] = $dp['otaarticleno']->raw;\n $this->products[$oid] = $r;\n }\n return $this->products[$oid];\n }", "public function getParameters()\n\t{\n\n\t}", "public function getParameters()\n\t{\n\n\t}", "public function parameters()\n {\n return [\n 'dir' => $this->input('dir'),\n 'hash' => $this->input('hash', ''),\n 'data' => $this->input('data'),\n 'name' => $this->input('name'),\n 'type' => $this->input('type'),\n 'offset' => $this->input('offset'),\n 'eof' => $this->input('eof'),\n ];\n }", "public function getParameter();", "public function getParameter();", "public function info()\n {\n $info = array();\n $info['author'] = 'Chris Graham';\n $info['organisation'] = 'ocProducts';\n $info['hacked_by'] = null;\n $info['hack_version'] = null;\n $info['version'] = 2;\n $info['locked'] = false;\n $info['parameters'] = array('param', 'zone', 'give_context', 'include_breadcrumbs', 'guid');\n return $info;\n }", "public function getShowInProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_product');\n }", "public function appParameters()\n {\n return $this->appParameters;\n }", "public static function get_params() {\n\n\t\t\t$params = array(\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Shortcode', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'content',\n\t\t\t\t\t'admin_label' => true,\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'dropdown',\n\t\t\t\t\t'heading' => esc_html__( 'Bottom Margin', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'bottom_margin',\n\t\t\t\t\t'value' => vcex_margin_choices(),\n\t\t\t\t\t'admin_label' => true,\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'vcex_visibility',\n\t\t\t\t\t'heading' => esc_html__( 'Visibility', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'visibility',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Extra class name', 'total-theme-core' ),\n\t\t\t\t\t'param_name' => 'el_class',\n\t\t\t\t\t'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'total-theme-core' ),\n\t\t\t\t),\n\t\t\t\tvcex_vc_map_add_css_animation(),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Animation Duration', 'total'),\n\t\t\t\t\t'param_name' => 'animation_duration',\n\t\t\t\t\t'description' => esc_html__( 'Enter your custom time in seconds (decimals allowed).', 'total'),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t'heading' => esc_html__( 'Animation Delay', 'total'),\n\t\t\t\t\t'param_name' => 'animation_delay',\n\t\t\t\t\t'description' => esc_html__( 'Enter your custom time in seconds (decimals allowed).', 'total'),\n\t\t\t\t),\n\t\t\t);\n\n\t\t\treturn apply_filters( 'vcex_shortcode_params', $params, 'vcex_shortcode' );\n\n\t\t}", "public function getJsonConfig()\n {\n /* @var $product \\Magento\\Catalog\\Model\\Product */\n $product = $this->getProduct();\n\n if (!$this->hasOptions()) {\n $config = [\n 'productId' => $product->getId(),\n 'priceFormat' => $this->_localeFormat->getPriceFormat()\n ];\n return $this->_jsonEncoder->encode($config);\n }\n\n $tierPrices = [];\n $tierPricesList = $product->getPriceInfo()->getPrice('tier_price')->getTierPriceList();\n foreach ($tierPricesList as $tierPrice) {\n $tierPrices[] = $tierPrice['price']->getValue();\n }\n\n //qxd testing lo de los productos */\n\n $qxd_config = null;\n\n /*$writer = new \\Zend\\Log\\Writer\\Stream(BP . '/var/log/configurable.log');\n $logger = new \\Zend\\Log\\Logger();\n $logger->addWriter($writer);\n $logger->info(print_r($product->getTypeId(),true));\n $logger->info(print_r('nuevo',true));*/\n\n switch ($product->getTypeId()) {\n case 'bundle': \n //$bundle_block= $this->getLayout()->createBlock('Magento\\Bundle\\Block\\Catalog\\Product\\View\\Type\\Bundle');\n\n //$qxd_config = $bundle_block->getJsonConfig();\n break;\n\n case 'configurable':\n\n $qxd_config = $price_config = json_decode($product->getPriceRangeConfig(), true); \n /*$configurable_block= $this->getLayout()->createBlock('Magento\\ConfigurableProduct\\Block\\Product\\View\\Type\\Configurable');\n\n $configurable_config = $configurable_block->getJsonConfig();\n if($configurable_config){\n $configurable_config = json_decode($configurable_config, true);\n $options = $configurable_config[\"optionPrices\"];\n\n $first_option = reset($options);\n $higherRegular = $first_option[\"oldPrice\"]['amount'];\n $lowerRegular = $first_option[\"oldPrice\"]['amount'];\n $regularPrice = $first_option[\"oldPrice\"]['amount'];\n $specialPrices = [];\n\n $hasSameRegularPrice = true;\n $hasSameSpecialPrice = true;\n\n $hasSpecialPrice = false;\n foreach ($options as $price) {\n //regular\n\n //get higher\n if($price[\"oldPrice\"]['amount'] > $higherRegular)\n $higherRegular = $price[\"oldPrice\"]['amount'];\n\n //get lower\n if($price[\"oldPrice\"]['amount'] < $lowerRegular)\n $lowerRegular = $price[\"oldPrice\"]['amount'];\n\n if($price[\"oldPrice\"]['amount'] != $regularPrice)\n $hasSameRegularPrice = false;\n\n\n //special\n\n if($price[\"finalPrice\"]['amount'] < $price[\"oldPrice\"]['amount']){\n $hasSpecialPrice = true;\n $specialPrices[] = $price[\"finalPrice\"]['amount'];\n }\n }\n\n if(empty($specialPrices)){\n $qxd_config['hasSpecialPrice'] = false;\n }else{\n $qxd_config['hasSpecialPrice'] = true;\n sort($specialPrices);\n $hasSameSpecialPrice = count(array_unique($specialPrices)) == 1;\n $qxd_config['rangeSpecial'] = [\"lower\" => $specialPrices[0], \"higher\" => $specialPrices[count($specialPrices) - 1]];\n \n }\n\n $qxd_config['rangeRegular'] = [\"lower\" => $lowerRegular, \"higher\" => $higherRegular];\n $qxd_config['hasSameSpecialPrice'] = $hasSameSpecialPrice;\n $qxd_config['hasSameRegularPrice'] = $hasSameRegularPrice; \n\n\n }*/\n break;\n \n default:\n break;\n }\n\n $qxd_price = [\n 'amount' => 0,\n 'adjustments' => [],\n 'data' => $qxd_config\n ];\n\n $config = [\n 'productId' => $product->getId(),\n 'priceFormat' => $this->_localeFormat->getPriceFormat(),\n 'prices' => [\n 'oldPrice' => [\n 'amount' => $product->getPriceInfo()->getPrice('regular_price')->getAmount()->getValue(),\n 'adjustments' => []\n ],\n 'basePrice' => [\n 'amount' => $product->getPriceInfo()->getPrice('final_price')->getAmount()->getBaseAmount(),\n 'adjustments' => []\n ],\n 'finalPrice' => [\n 'amount' => $product->getPriceInfo()->getPrice('final_price')->getAmount()->getValue(),\n 'adjustments' => []\n ]\n ],\n 'idSuffix' => '_clone',\n 'tierPrices' => $tierPrices,\n 'qxd_price' => $qxd_price\n ];\n\n $responseObject = new \\Magento\\Framework\\DataObject();\n $this->_eventManager->dispatch('catalog_product_view_config', ['response_object' => $responseObject]);\n if (is_array($responseObject->getAdditionalOptions())) {\n foreach ($responseObject->getAdditionalOptions() as $option => $value) {\n $config[$option] = $value;\n }\n }\n\n return $this->_jsonEncoder->encode($config);\n }", "function getPackageVariables(): array\n {\n return $this->compiler->getPackageVariables();\n }", "public function getApiParameters();", "public function parameters()\n\t{\n\t\treturn [\n\t\t\t'parent_id' => $this->input('parent_id'),\n\t\t\t'title' => $this->input('title'),\n\t\t\t'icon' => $this->input('icon'),\n\t\t\t'description' => $this->input('description'),\n\t\t\t'is_active' => $this->has('is_active')\n\t\t];\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\tarray('package', InputArgument::REQUIRED, 'The name of the package being published.'),\n\t\t);\n\t}", "public function info()\n {\n $info = array();\n $info['author'] = 'Chris Graham';\n $info['organisation'] = 'ocProducts';\n $info['hacked_by'] = null;\n $info['hack_version'] = null;\n $info['version'] = 2;\n $info['locked'] = false;\n $info['parameters'] = array('param', 'limit', 'hot', 'date_key', 'username_key', 'title', 'check');\n return $info;\n }", "public function getJsCustomProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/js_product');\n }", "public function getParams()\r\n {\r\n \tglobal $mainframe;\r\n \t\r\n \t$params =& JComponentHelper::getParams('com_jresearch');\r\n $jinput = JFactory::getApplication()->input; \r\n \t$itemid = $jinput->getInt('Itemid', 0);\r\n \t\r\n \tif($itemid != 0 && !$mainframe->isAdmin())\r\n \t{\r\n \t\t$menu = JSite::getMenu();\r\n \t\t$mparams = $menu->getParams($itemid);\r\n \t\t\r\n \t\t$params->merge($mparams);\r\n \t}\r\n \t\r\n \treturn $params;\r\n }", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "protected function getArguments()\n {\n return array(\n array('package', InputArgument::REQUIRED, 'The name (vendor/name) of the extension.'),\n );\n }", "function getConfigParameters() {\n $sync_sugarcrm_users_parameters = array(\n 'crm_user_name' => '', \n 'crm_user_hash' => '', \n 'crm_url' => '', \n 'crm_auto_create_user' => 0, \n 'crm_auto_create_user1' => 0, \n 'crm_auto_create_module' => 'Users', \n );\n $devOptions = get_option($this->config_parameters_name);\n if (!empty($devOptions)) {\n foreach ($devOptions as $key => $option)\n $sync_sugarcrm_users_parameters[$key] = $option;\n }\t\t\t\t\n //update_option($this->config_parameters_name, $sync_sugarcrm_users_parameters);\n return $sync_sugarcrm_users_parameters;\n }", "public function info()\n {\n $info = array();\n $info['author'] = 'Chris Graham';\n $info['organisation'] = 'ocProducts';\n $info['hacked_by'] = null;\n $info['hack_version'] = null;\n $info['version'] = 2;\n $info['locked'] = false;\n $info['parameters'] = array('username', 'period', 'display', 'title', 'width', 'height');\n return $info;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public static function getAdminParameters()\n\t{\n\t\treturn array(\n\t\t\t'logo' => array(\n\t\t\t\t'type' \t=> 'custom', \n\t\t\t\t'label' => '', \n\t\t\t\t'html' \t=> '<img src=\"https://www.paypalobjects.com/webstatic/i/ex_ce2/logo/logo_paypal_106x29.png\"/>',\n\t\t\t),\n\t\t\t'account' => array(\n\t\t\t\t'type' \t\t=> 'text', \n\t\t\t\t'label' \t=> 'PayPal Account://The PayPal account <b>e-mail address</b> must be specified instead of the <b>merchant account</b>.',\n\t\t\t\t'required' \t=> 1,\n\t\t\t),\n\t\t\t'sandbox' => array(\n\t\t\t\t'type' \t\t=> 'select', \n\t\t\t\t'label' \t=> 'Test Mode://When enabled, the PayPal SANDBOX will be used. Turn OFF this option to collect PRODUCTION payments.', \n\t\t\t\t'options' \t=> array(\n\t\t\t\t\t1 => 'ON',\n\t\t\t\t\t0 => 'OFF',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'safemode' => array(\n\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t'label' \t=> 'Safe Connection://When enabled, the connection to PayPal will be established only through the TLS 1.2 protocol.',\n\t\t\t\t'options' \t=> array(\n\t\t\t\t\t1 => 'ON',\n\t\t\t\t\t0 => 'OFF',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'image' => array(\n\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t'label' \t=> 'Image URL//The image URL that will be used to display the Pay Now button.',\n\t\t\t\t'default' \t=> 'https://www.paypal.com/en_GB/i/btn/btn_paynow_SM.gif',\n\t\t\t),\n\t\t);\n\t}", "public static function parameters()\n {\n $fields = array('name', 'amount');\n return array_intersect_key(self::fields(), array_flip($fields));\n }", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "protected function _getConfigArray(){\n \n return array(\n array(\n 'version' => '0.0.4',\n 'path' => 'bss_quickview/seting_theme/product_image_wrapper',\n 'value' => 'product-item-photo'\n ),\n array(\n 'version' => '0.0.5',\n 'path' => 'bss_quickview/success_popup_design/background_color',\n 'value' => '0088CC'\n ),\n array(\n 'version' => '0.0.5',\n 'path' => 'porto_settings/custom_settings/custom_style',\n 'value' => 'table.desc_spec_tbl{border-collapse:collapse}\ntable.desc_spec_tbl td{border:1px solid #dcdcdc}\n.product.description ul{list-style:disc}\n.page-header.type2.header-newskin .main-panel-top{border-bottom:1px solid rgba(248,248,248,0.2)}\n.page-header.type2.header-newskin .main-panel-inner{border:none}\n#phone-hrs{font-size:1.4em!important;color:#636363;padding-right:15px!important}\n#phone-hrs a{color:#08C!important}\n.page-header.type2.header-newskin .custom-block{width:100%!important;text-align:right!important;top:90%!important;right:0!important}\nh2.side-menu-title{margin:0;background-color:#FF7B0D;color:#fff;font-size:13px;font-weight:700;line-height:1;padding:14px 15px;border-radius:5px 5px 0 0;border-bottom:1px solid #ddd}\n.filterproduct-title{color:#fff!important;background-color:#08c!important;padding-left:20px!important}\n.products-grid.columns4{margin-left:0!important;margin-right:0!important}\n.home-side-menu h2.side-menu-title{color:#fff!important}\n.page-header.type2.header-newskin .minicart-wrapper .action.showcart:before,.page-header.type2.header-newskin .minicart-wrapper .action.showcart.active:before{font-size:33px;color:#08C!important}\n.page-header.type2.header-newskin .minicart-wrapper .action.showcart{padding-right:17px}\n.page-header.type2.header-newskin .minicart-wrapper .action.showcart .counter.qty{margin-top:-21px;background-color:#ff5b5b}\n.page-header.type2.header-newskin .minicart-wrapper .action.showcart:after{right:-6px}\n.homepage-bar{border:none;background-color:transparent}\n.homepage-bar .col-lg-4{border-color:#fff;padding-top:14px;padding-bottom:15px}\n.homepage-bar [class*=\" porto-icon-\"],.homepage-bar [class^=\"porto-icon-\"]{color:#465157}\n.homepage-bar .text-area{display:inline-block;vertical-align:middle;text-align:left;margin-left:5px}\n.homepage-bar h3{font-size:14px;font-weight:600;color:#465157;line-height:19px}\n.homepage-bar p{font-size:13px;font-weight:300;color:#839199;line-height:19px}\n.owl-theme .owl-dots .owl-dot span{width:13px;height:13px;border-radius:100%;border:solid 2px #d5d5d5;background:none;position:relative;margin:5px 2px}\n#banner-slider-demo-9.owl-bottom-narrow .owl-controls{text-align:left;padding-left:28px}\n#banner-slider-demo-9.owl-theme .owl-dots .owl-dot span{border:2px solid rgba(0,0,0,0.2);background:none}\n#banner-slider-demo-9.owl-theme .owl-dots .owl-dot.active span,#banner-slider-demo-9.owl-theme .owl-dots .owl-dot:hover span{border-color:#fff;background:none}\n.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{border-color:#05131c;background:none}\n.owl-theme .owl-controls .owl-dot.active span:before,.owl-theme .owl-dots .owl-dot:hover span:before{content:\"\";position:absolute;left:3px;top:3px;right:3px;bottom:3px;background-color:#05131c;border-radius:100%}\n#banner-slider-demo-9.owl-theme .owl-dots .owl-dot.active span:before,#banner-slider-demo-9.owl-theme .owl-dots .owl-dot:hover span:before{background-color:#fff}\n.owl-theme .owl-dots .owl-dot.active span:before,.owl-theme .owl-dots .owl-dot:hover span:before{background-color:#05131c}\n.block.block-subscribe.home-sidebar-block{border:none;background-color:#f4f4f4;text-align:center;border-radius:2px!important}\n.block.block-subscribe.home-sidebar-block .block-title strong{font-size:17px;font-weight:700;color:#05131c}\n.block.block-subscribe.home-sidebar-block .block-content p{line-height:24px;letter-spacing:.001em;color:#4a505e;font-size:14px}\n.block.block-subscribe.home-sidebar-block .newsletter .control input{height:45px;border-color:#e4e4e4;padding-right:10px;border-radius:3px;color:#05131c;text-transform:uppercase}\n.block.block-subscribe.home-sidebar-block button.subscribe{width:100%;margin:7px 0 0;height:auto;position:relative;left:auto;right:auto;top:auto;border-radius:5px;background-color:inherit}\n.block.block-subscribe.home-sidebar-block button.subscribe span{height:45px;text-transform:uppercase;background-color:#05131c;border:none;border-radius:3px;font-size:12px;letter-spacing:.005em;color:#fff;font-family:\"Oswald\";line-height:45px;display:block}\n#testimonials-slider-demo-9{padding:22px;border:solid 2px #0188cc;border-radius:2px}\n.cms-index-index .testimonial-author{margin:8px 0 0}\n.cms-index-index .testimonial-author .img-thumbnail{border:none;padding:0;margin-right:20px;border-radius:100%!important;overflow:hidden}\n.cms-index-index blockquote.testimonial{background-color:transparent;color:#62615e;font-size:14px;font-style:normal;line-height:24px;font-weight:400;font-family:\"Open Sans\";margin:0 -10px;padding:15px 30px 15px 43px;width:100%;float:left;margin-top:13px}\n.cms-index-index blockquote.testimonial:before{color:#0188cc;font-family:\"porto\";font-weight:400;font-size:54px}\n.cms-index-index blockquote.testimonial:after{color:#0188cc;font-family:\"porto\";font-weight:400;font-size:54px;right:-2px}\n.cms-index-index .testimonial-author p{line-height:20px}\n.cms-index-index .testimonial-author p >strong{text-transform:uppercase;font-size:13px;font-weight:700;letter-spacing:.0025em;color:#2b2b2d}\n.cms-index-index blockquote.testimonial p{line-height:24px;letter-spacing:.001em}\n#testimonials-slider-demo-6.owl-theme .owl-controls{text-align:left;padding-left:32px}\n.recent-posts .item{padding-top:40px}\n.recent-posts .post-date{display:block;float:none;text-align:left}\n.recent-posts .post-date .long-date{font-size:13px;font-weight:700;color:#0188cc;line-height:22px;text-transform:uppercase}\n.recent-posts .postTitle{min-height:auto}\n.recent-posts .postTitle h2{margin:0}\n.recent-posts .postTitle h2 a{font-size:17px;font-weight:600;line-height:22px;color:#2b2b2d}\n.recent-posts .postContent{margin:0;padding:0}\n.recent-posts .postContent>p{line-height:27px;letter-spacing:.001em}\n.recent-posts a.readmore{display:none}\n.recent-posts .owl-controls{text-align:left}\n.filterproduct-title{background:none;font-size:17px;color:#2b2b2d}\n.filterproduct-title .content{background:none;padding:0}\n.owl-top-narrow .owl-theme .owl-controls .owl-dots{margin-top:0}\n.small-list.products-grid .product-item .product-item-name{font-size:14px;font-weight:400;letter-spacing:.005em}\n.small-list.products-grid .product-item .product-reviews-summary{margin-top:0}\n.shop-features [class*=\" porto-icon-\"],.shop-features [class^=\"porto-icon-\"]{color:#0188cc;border-color:#0188cc}\n.shop-features h3{font-size:14px;font-weight:700}\n.shop-features p{color:#4a505e;line-height:27px;font-weight:400}\n.shop-features a{font-family:\"Oswald\";font-size:12.5px;text-transform:uppercase;color:#2b2b2d;letter-spacing:.0025em;line-height:26px;border:solid 1px #efefef;padding:7px 28px;background:none;box-shadow:none}\n.shop-features a:hover{background:none;color:#2b2b2d;border-color:#efefef}\n.owl-top-narrow{margin:0 -10px}\n.owl-top-narrow .owl-theme .owl-controls{right:8px}\n.owl-top-narrow .owl-carousel .owl-item > .item{padding:10px}\n@media (min-width: 768px) {\n.catalog-category-view .page-main,.catalog-product-view .page-main{padding-top:0}\n}\n.breadcrumbs li.home a{width:15px;display:inline-block;text-indent:30px;overflow:hidden;float:left;position:relative}\n.breadcrumbs li.home a:after{content:\"\\e883\";font-family:\"porto-icons\";position:absolute;left:0;top:0;text-indent:0}\n.sidebar.sidebar-main{position:relative}\n.block-category-list .block-title,.filter-options-title,.filter .filter-current-subtitle{border:none;background-color:transparent;padding:16px 20px 4px;font-size:15px;text-transform:uppercase;font-weight:600;color:#21293c;letter-spacing:.01em}\n.block-category-list .block-title{padding:0 20px 0}\n.block-category-list .block-title strong{font-weight:600}\n.block-category-list .block-content,.filter-options-content{border:none;background-color:transparent;padding:10px 20px 26px;border-bottom:#efefef solid 1px;position:relative;z-index:2;border-radius:0}\n.filter-current .items{border:none;background-color:transparent;position:relative;z-index:2}\n.filter-current .item{padding-left:20px}\n.filter-current .action.remove{right:20px;color:#21293c}\n.filter-actions{border:none;background-color:transparent;border-bottom:#efefef solid 1px;position:relative;z-index:2;padding-right:20px}\n.filter-actions a{color:#858585}\n.filter-options-title:after{content:\"\\f803\";border:none;color:#21293c;font-size:17px;margin-top:-6px}\n.filter-options-title:hover:after{background:none;color:#21293c}\n.active > .filter-options-title:after{content:\"\\f800\"}\n#ln_slider_price.ui-slider-horizontal{height:3px;box-shadow:none}\n#ln_slider_price .ui-slider-handle{width:12px;height:12px;border-radius:100%}\n.sidebar-title{font-size:15px;font-weight:600;color:#21293c;letter-spacing:.01em;margin-bottom:20px;padding-left:20px;padding-right:20px}\n.porto-icon-left-open-huge:before{content:\"\\f802\";color:#21293c}\n.porto-icon-right-open-huge:before{content:\"\\f801\";color:#21293c}\n.sidebar .owl-top-narrow .owl-theme .owl-controls{top:-40px;right:3px}\n.sidebar .owl-top-narrow .owl-theme .owl-controls .owl-nav div :before{color:#21293c}\n.sidebar .product-items .product-item-info .product-item-photo{max-width:25.19%}\n.sidebar .product-items .product-item-details{margin-left:calc(26% + 15px)}\n.sidebar .product-items .product-item-name a{font-size:12px;color:#5b5b5f;font-weight:400}\n.sidebar .sidebar-filterproducts{margin-bottom:30px;padding-bottom:40px;background:none;border-bottom:#efefef solid 1px}\n.sidebar .product-items .product-item .product-reviews-summary{display:block}\n.sidebar-filterproducts.custom-block + h2{font-size:15px!important;text-transform:uppercase;font-weight:600;color:#21293c!important;letter-spacing:.01em;padding:0 20px}\n.sidebar-filterproducts.custom-block + h2 +h5{font-family:\"Open Sans\"!important;font-weight:600!important;font-size:14px!important;color:#7a7d82!important;letter-spacing:.022em;padding:0 20px}\n.sidebar-filterproducts.custom-block + h2 + h5 + p{color:#21293c!important;font-size:15px!important;letter-spacing:.01em;padding:0 20px}\n.sidebar .custom-block{padding:0 20px}\n.category-boxed-banner.owl-theme .owl-controls{bottom:0}\n.page-products .toolbar .limiter{display:block}\n.page-with-filter .toolbar-amount{display:none}\n.full-width-image-banner{height:300px}\n.full-width-image-banner:after{display:none}\n.full-width-image-banner h2{font-size:36px;font-weight:900;letter-spacing:-.025em;text-transform:uppercase;line-height:38px}\n.full-width-image-banner p{font-size:18px;line-height:38px;font-weight:700;text-transform:uppercase}\n.full-width-image-banner .btn-default{font-size:14px;line-height:25px;letter-spacing:.025em;padding:10px 20px;background-color:#010204;color:#fff;font-family:\"Oswald\";text-transform:uppercase;border-radius:2px;margin-top:31px}\n.page-products .toolbar .limiter .limiter-text{display:none}\n.modes-mode.active{border:none;background:none;color:#111}\n.modes-mode,.modes-mode:hover{border:none;background:none;color:#111;width:15px}\n.toolbar select{border:1px solid #e4e4e4;height:37px;color:#7a7d82;font-weight:400;font-size:14px;text-transform:capitalize;padding:0 10px;padding-right:30px;line-height:31px}\n.toolbar-sorter .sorter-action{margin-top:6px;color:#21293c}\n.toolbar-sorter .sorter-action:before{color:#21293c}\n.pages a.page,.pages strong.page,.pages .action{width:32px;line-height:32px}\n.products-grid + .toolbar.toolbar-products{border-top:solid 1px #efefef;padding-top:25px}\n.filterproducts.products .product-item .product-item-photo{border:solid 1px #ececec}\n.product-item .product-reviews-summary{background:none}\n.price-box .price{font-family:\"Oswald\";font-weight:400;font-size:18px;color:#465157}\n.old-price .price{font-size:13px;color:#999}\n.catalog-product-view .sidebar .custom-block{border:none;color:#6b7a83;padding-bottom:0;margin-bottom:33px;background:none}\n.catalog-product-view .sidebar .custom-block-1>div i{color:#08c;border:none;font-size:40px;float:left}\n.catalog-product-view .sidebar .custom-block-1>div{min-height:65px;clear:both;padding:18px 0;border-bottom:solid 1px #dee5e8;margin-bottom:0}\n.catalog-product-view .sidebar .custom-block-1>div:last-child{border-bottom-width:0}\n.block-manufacturer{text-align:center;padding:10px 20px 0;margin-bottom:0}\n.block-manufacturer hr{border-color:#dee5e8;margin-bottom:0}\n.catalog-product-view .sidebar .custom-block-1>div h3{font-size:14px;font-weight:600;line-height:20px;letter-spacing:.005em;color:#6b7a83;margin-left:80px}\n.block.related{padding:0 20px}\n.block .title strong{font-size:15px;font-weight:600;color:#21293c;letter-spacing:.01em;margin-bottom:20px!important;padding-top:0;text-transform:uppercase}\n.block.related .product-items .product-item-actions{display:none}\n.product-info-main .page-title-wrapper h1{font-size:25px;font-weight:600;letter-spacing:-.01em;color:#21293c;margin:3px 0 15px}\n.prev-next-products a{color:#555}\n.product-reviews-summary .reviews-actions a{line-height:20px;font-size:14px;color:#bdbdbd}\n.product-info-main .product.overview{font-size:14px;font-weight:400;letter-spacing:.005em;line-height:27px;border-bottom:solid 1px #dae2e6}\n.product.media{padding-right:12px}\n.fotorama__stage__shaft{border:none}\n.fotorama__nav--thumbs .fotorama__thumb{border-color:#dae2e6}\n.product-options-bottom .price-box .price-container .price,.product-info-price .price-box .price-container .price{font-family:\"Oswald\";font-size:21px;font-weight:700;letter-spacing:.005em}\n.product-info-main .product-info-price .old-price .price-wrapper .price{font-size:16px;color:#2b2b2d;font-weight:400}\n.product-info-main .fieldset > .field.qty,.product-info-main .nested.options-list > .field.qty{position:relative;width:106px}\n.product-info-main .qty.field .control,.product-info-main .qty.field .qty-changer{margin-left:29px}\n.product-info-main .qty.field .qty-changer > a{position:absolute;top:0;left:0;height:43px;width:30px;line-height:41px;text-align:center;margin:0;border-color:#dae2e6}\n.product-info-main .qty.field .qty-changer > a:first-child{left:auto;right:4px}\n.product-info-main .box-tocart .input-text.qty{font-family:\"Oswald\";display:inline-block;vertical-align:middle;height:43px;width:44px!important;font-size:14px;font-weight:400;text-align:center;color:#61605a;margin:0;border-color:#dae2e6}\n.product-info-main .qty.field .qty-changer > a .porto-icon-up-dir:before{content:\"\\f882\"}\n.product-info-main .qty.field .qty-changer > a .porto-icon-down-dir:before{content:\"\\f883\"}\n.catalog-product-view:not(.weltpixel-quickview-catalog-product-view):not(.weltpixel_quickview-catalog_product-view) .box-tocart .action.tocart{height:43px;font-size:14px;letter-spacing:.05em;font-weight:400}\n.box-tocart .action.tocart:before{content:\"\\e87f\";font-family:\"porto-icons\";margin-right:7px;font-size:16px}\n.action.primary,.action.primary:active{font-family:\"Oswald\";letter-spacing:1px;text-transform:uppercase}\n.product-addto-links .action.towishlist,.product-addto-links .action.tocompare,.moved-add-to-links .action.mailto.friend,.product-social-links .action.mailto.friend{width:43px;height:43px;line-height:41px}\n.product.data.items > .item.content{background-color:#fff;box-shadow:none;border:none;border-top:#dae2e6 solid 1px;font-size:14px;font-weight:400;letter-spacing:.005em;line-height:27px}\n.main-upsell-product-detail .block.upsell .title strong{background:none}\n.block.upsell .title{background:none;border-bottom:#e1e1e1 solid 1px;font-weight:700;margin-bottom:16px;padding-bottom:10px;text-transform:uppercase;text-align:left}\n.block.upsell .title strong{font-size:14px;font-weight:400;font-family:\"Oswald\";color:#302e2a}\n.review-ratings .rating-label{display:block}\n.footer-middle{padding:62px 0 42px}\n.footer-ribbon{margin:-78px 0 25px}\n.footer-middle p{font-size:13px;line-height:20px;margin-bottom:0}\n.footer-middle .block .block-title{margin-bottom:15px}\n.footer-middle .block .block-title strong{font-size:16px;font-weight:700;text-transform:uppercase}\n.footer-middle ul.links li,.footer-middle ul.features li{padding:6px 0}\n.footer-container .validation-advice{position:absolute}\n.footer-middle .block.newsletter .form.subscribe{max-width:400px}\n.footer-middle .block.newsletter .control:before{line-height:48px;margin-left:20px}\n.footer-middle .block.newsletter .control{position:relative}\n.footer-middle .block.newsletter .control input{background-color:#fff;color:#686865;height:48px;border:none;font-size:14px;padding-left:10px}\n.footer-middle .block.newsletter .control div.mage-error{position:absolute;bottom:-22px}\n.footer-middle .block.newsletter .action.subscribe{height:48px;text-transform:uppercase;padding:0 22px}\n.footer-middle .block-bottom{border-top:1px solid #3d3d38;text-align:left;padding:27px 0;overflow:hidden}\n.footer-middle .social-icons a{background-image:none;background-color:#33332f;text-indent:0;color:#fff;border-radius:0;font-size:15px;width:37px;height:37px;text-align:center;margin-left:0;margin-right:4px;float:left;line-height:35px}\n.footer-middle .contact-info li:first-child{border-top-width:0}\n.footer-middle .contact-info li{padding:9px 0}\n.footer-middle .contact-info i{color:#e1ddc3!important;font-size:26px;line-height:28px}\n.footer-middle .contact-info p{line-height:1}\n.footer-middle .contact-info b{font-weight:400;font-size:13px;margin-bottom:7px;display:inline-block}\n.footer-bottom{padding:18px 0}\n.footer-bottom address{float:left}\n.footer-bottom .container{position:relative}\n.footer-bottom .container:before{content:\"\";position:absolute;background-color:#3d3d38;left:15px;right:15px;top:-18px;height:1px;width:calc(100% - 30px)}\n@media (max-width: 991px) {\n.footer .block .block-content{margin-bottom:30px}\n.footer-middle .block-content{min-width:auto!important;width:100%}\n}\n@media (max-width: 767px) {\n.navigation.sw-megamenu > .sticky-logo{display:none}\n.page-header.type2.header-newskin .custom-block{display:none}\n.homepage-bar .col-lg-4{text-align:left!important}\n#banner-slider-demo-9{margin-bottom:20px}\n.sidebar.sidebar-main{position:static}\n.page-products .toolbar .limiter{display:none}\n.product.data.items{margin:0}\n.prev-next-products .product-nav.product-next .product-pop{margin:0}\n.prev-next-products .product-nav.product-prev .product-pop{left:-20px}\n.product-info-main .fieldset > .field.qty{margin-bottom:20px}\n.fieldset > .actions{vertical-align:top}\n.catalog-product-view .sidebar .custom-block{padding:0}\n.footer-middle{padding:62px 0 0;margin-bottom:-20px}\n.footer .block .block-content{margin-bottom:30px}\n.footer-middle .block-content{float:none!important}\n.footer-middle .social-icons{overflow:hidden;float:none!important}\n.footer-bottom .custom-block.f-right{margin-left:0}\n}\n.page-products .sorter{float:left}\n.modes{float:right;margin-right:0;margin-left:20px;margin-top:7px}\n.modes-mode:before{content:\"\\e880\";font-size:14px}\n.mode-list:before{content:\"\\e87b\";font-size:14px}\n.products.wrapper ~ .toolbar .limiter{float:left}\n.products.wrapper ~ .toolbar .pages{float:right}\n@media (min-width: 768px) {\n.page-header.type2.header-newskin .minicart-wrapper{background-color:transparent;width:81px;height:41px;text-align:center;box-shadow:none;border-radius:0;border:none}\n.home-side-menu{background-color:transparent;border-color:#dae2e6;border-radius:2px}\n.home-side-menu h2.side-menu-title{color:#465157;font-size:14.5px;font-weight:700;letter-spacing:.001em}\n.navigation.side-megamenu a,.navigation.side-megamenu a:hover{color:#465157}\n.sw-megamenu.navigation.side-megamenu li.level0.parent > a:after{color:#838b90}\n.sw-megamenu.navigation.side-megamenu li.level0.parent:hover > a:after{color:#fff}\n.sw-megamenu.navigation.side-megamenu li.level0 > .submenu{border:solid 1px #dae2e6;box-shadow:0 3px 15px -2px rgba(0,0,0,0.3);padding:10px 0 10px 15px}\n.sw-megamenu.navigation.side-megamenu li.level0 > .submenu:before,.sw-megamenu.navigation.side-megamenu li.level0 > .submenu:after{border-bottom-style:solid;content:\"\";display:block;height:0;position:absolute;width:0}\n.sw-megamenu.navigation.side-megamenu li.level0 > .submenu:before{border:8px solid;border-color:transparent #fff transparent transparent;z-index:3;left:-16px;top:11px}\n.sw-megamenu.navigation.side-megamenu li.level0 > .submenu:after{border:9px solid;border-color:transparent #dae2e6 transparent transparent;z-index:2;left:-18px;top:10px;right:auto}\n.sw-megamenu.navigation li.level0.fullwidth .submenu li.level1 > a,.sw-megamenu.navigation li.level0.staticwidth .submenu li.level1 > a{font-size:13px;font-weight:700;color:#434d53;letter-spacing:-.001em;margin-top:9px}\n.sw-megamenu.navigation li.level0.fullwidth .submenu a,.sw-megamenu.navigation li.level0.staticwidth .submenu a,.sw-megamenu.navigation li.level0.classic .submenu a{font-size:13px;font-weight:600;color:#696969;line-height:inherit}\n.sidebar.sidebar-main:before{content:\"\";position:absolute;left:0;right:20px;border:solid 1px #dae2e6;top:0;bottom:0;border-radius:2px}\n.product.data.items > .item.title{padding:10px 30px 10px 0}\n.product.data.items > .item.title > .switch{font-size:14px;font-weight:700;color:#818692;text-transform:uppercase;border:none;border-radius:0;line-height:30px;background:none;padding:0}\n.product.data.items > .item.title:not(.disabled) > .switch:focus,.product.data.items > .item.title:not(.disabled) > .switch:hover{background:none;color:#818692}\n.product.data.items > .item.title.active > .switch,.product.data.items > .item.title.active > .switch:focus,.product.data.items > .item.title.active > .switch:hover{color:#21293c;position:relative;border-bottom:#08C solid 2px}\n.product.data.items > .item.content{padding:35px 0 0;margin-top:45px}\n}\n@media (min-widtH: 768px) {\n.page-header .switcher .options .action.toggle{color:#fff}\n}\n.products-grid .product-item .product-item-info .product-item-photo > a:not(.weltpixel-quickview):after{content:\"\";display:block;background-color:#000;opacity:0;width:100%;height:100%;position:absolute;left:0;top:0;z-index:2;visibility:hidden;transition:all .3s}\n.products-grid .product-item .product-item-info:hover .product-item-photo > a:not(.weltpixel-quickview):after{opacity:.1;visibility:visible}\n.page-header.type2.header-newskin.sticky-header .minicart-wrapper .block-minicart:after{right:38px}\n.page-header.type2.header-newskin.sticky-header .minicart-wrapper .block-minicart:before{right:39px}\n.swatch-attribute.size .swatch-option,.swatch-attribute.manufacturer .swatch-option{background:#fff;color:#636363;border-color:#e9e9e9}\n.swatch-option.text{min-width:26px;line-height:18px;padding:3px;height:26px}\n.pages a.page,.pages strong.page,.pages .action{background:transparent;color:#706f6c;font-size:15px;font-weight:600;line-height:30px}\n.pages a.page:hover,.pages a.action:hover{background-color:transparent;color:#706f6c}\n.pages a.action:hover:before{color:#706f6c!important}\n.pages .action{border-color:transparent}\n.product-info-main .product-info-stock-sku{color:#333;font-size:14px;padding-bottom:23px}\n.product-reviews-summary .reviews-actions a{color:#21293c}\n.product-info-main .product-info-stock-sku{color:#21293c}\n.catalog-product-view .sidebar .custom-block.custom-block-1{margin-top:-25px}\n.block-minicart .block-content > .actions > .secondary .action.viewcart{color:#333;font-weight:500;font-family:\"Oswald\"}\n.cms-index-index .single-images{margin-bottom:5px}\n.product-item .rating-summary .rating-result > span:before{color:#575f68}\n@media (max-width: 767px) {\n.block-category-list .block-title,.block-category-list .block-content,.sidebar-title,.sidebar .custom-block,.sidebar-filterproducts.custom-block + h2,.sidebar-filterproducts.custom-block + h2 +h5,.sidebar-filterproducts.custom-block + h2 + h5 + p{padding-left:0;padding-right:0}\n}\n.page-header .switcher .options .action.toggle{color:#bde1f5}\n.page-wrapper > .breadcrumbs{margin-bottom:0}\n.products-grid .product-item-details .product-item-actions .tocart{text-transform:uppercase;font-size:12.53px;font-family:\"Oswald\";font-weight:400;letter-spacing:.025em;color:#fff;line-height:30px;background-color:#08c;border-color:#08c;}\n.products-grid .product-item-details .product-item-actions .tocart:hover{background-color:#006496!important;border-color:#006496!important;color:#fff}\n.product-item .tocart:before{content:\"\\e87f\";font-size:17px;vertical-align:middle}\n.product-social-links .action.towishlist:before,.product-addto-links .action.towishlist:before,.block-bundle-summary .action.towishlist:before,.product-item .action.towishlist:before,.table-comparison .action.towishlist:before{content:\"\\e889\"}'\n ),\n array(\n 'version' => '0.0.6',\n 'path' => 'persistent/options/lifetime',\n 'value' => '14400'\n ),\n );\n }", "public function get_params()\n {\n }", "public function get_params()\n {\n }", "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "function getAppParams()\n {\n $paramJson = \"{\\\"method\\\":\\\"epass.push.wms.stock.waring.inventory.get\\\",\\\"app_key\\\":\\\"12910\\\",\\\"v\\\":\\\"1.0\\\",\\\"timestamp\\\":\\\"2016-09-03 16:01:30\\\",\\\"sign\\\":\\\"F19C25D12F4280F6EB44F3A02746376C\\\",\\\"goods_list\\\":[{\\\"type\\\":\\\"1\\\",\\\"warehouse_id\\\":\\\"1230005\\\",\\\"warehouse_name\\\":\\\"仓库名称\\\",\\\"goods_id\\\":\\\"005624\\\",\\\"goods_name\\\":\\\"商品名称\\\",\\\"goods_batch\\\":\\\"no897345\\\",\\\"store_type\\\":\\\"2\\\",\\\"waring_text\\\":\\\"商品库存数量少于100\\\",\\\"waring_time\\\":\\\"2015-12-11 14:22:22\\\"}]}\";\n $params = json_decode($paramJson,1);\n return $params;\n }", "function init_sale_parameters($transact)\n {\n $transact->setSecret($this->secret_id);\n $transact->setAlg($this->alg);\n\n // Required: set ID of who gets paid\n $transact->setRecipient($this->recipient_id);\n\n // Required: Set the price of the sale\n //todo: what is max value?\n $transact->setPrice($this->price);\n\n // Required: Set PROD to use real money, TEST for testing\n $transact->setClass($this->env);\n\n // Required: set URL associated with this puchase\n // User should be able to return to this URL\n $transact->setURL($this->article_url);\n\n // Recommended: Title for customer to read for the purchase\n $transact->setTitle($this->article_title);\n\n $transact->setMethod($this->method); // Optional: by default close the popup\n\n\n // Unique code for seller to set to what they want\n // This could be a code for the item your selling\n $transact->setItem($this->item_id);\n\n // Optional Unique ID of this sale\n $transact->setUid($this->sales_id);\n\n // Set Affiliated if exists\n $transact->setAffiliate($this->affiliate);\n\n // Set your own meta data\n // Note you must keep this short to avoid going over the 1024 byte limt\n // of the token URL\n //todo: what ist his?\n $transact->setMeta(array(\n 'your' => 'data',\n 'anything' => 'you want'\n ));\n }", "public static function get_parameters() {\n $r = array_merge(\n iform_map_get_map_parameters(),\n iform_report_get_minimal_report_parameters(),\n array(\n array(\n 'name' => 'downloadOwnDataOnly',\n 'caption' => 'Download own data only',\n 'description' => 'If ticked then the user is only allowed to download data when showing just their own data.',\n 'type' => 'checkbox',\n 'default' => false,\n 'required' => false\n ),\n array(\n 'name' => 'includeEditLink',\n 'caption' => 'Include edit link',\n 'description' => 'Include an edit link for each row that was input by the current user',\n 'type' => 'checkbox',\n 'default' => true,\n 'required' => false\n ),\n array(\n 'name' => 'includeEditLinkPath',\n 'caption' => 'Path to page used for edits',\n 'description' => 'The path to the page used for edits. This is just the site relative path, e.g. http://www.example.com/index.php?q=enter-records needs '.\n 'to be input as just enter-records. The path is called with the id of the record in a parameter called occurrence_id.',\n 'type' => 'text_input',\n 'default' => '',\n 'required' => false\n ),\n array(\n 'name' => 'columns_config',\n 'caption' => 'Columns Configuration',\n 'description' => 'Define a list of columns with various configuration options when you want to override the '.\n 'default output of the report.',\n 'type' => 'jsonwidget',\n 'schema' => '{\n \"type\":\"seq\",\n \"title\":\"Columns List\",\n \"sequence\":\n [\n {\n \"type\":\"map\",\n \"title\":\"Column\",\n \"mapping\": {\n \"fieldname\": {\"type\":\"str\",\"desc\":\"Name of the field to output in this column. Does not need to be specified when using the template option.\"},\n \"display\": {\"type\":\"str\",\"desc\":\"Caption of the column, which defaults to the fieldname if not specified.\"},\n \"actions\": {\n \"type\":\"seq\",\n \"title\":\"Actions List\",\n \"sequence\": [{\n \"type\":\"map\",\n \"title\":\"Actions\",\n \"desc\":\"List of actions to make available for each row in the grid.\",\n \"mapping\": {\n \"caption\": {\"type\":\"str\",\"desc\":\"Display caption for the action\\'s link.\"},\n \"visibility_field\": {\"type\":\"str\",\"desc\":\"Optional name of a field in the data which contains true or false to define the visibility of this action.\"},\n \"img\": {\"type\":\"str\",\"desc\":\"Set img to the path to an image to use an image for the action instead of a text caption - the caption '.\n 'then becomes the image\\'s title. The image path can contain {rootFolder} to be replaced by the root folder of the site, in this '.\n 'case it excludes the path parameter used in Drupal when dirty URLs are used (since this is a direct link to a URL).\"},\n \"url\": {\"type\":\"str\",\"desc\":\"A url that the action link will point to, unless overridden by JavaScript. The url can contain tokens which '.\n 'will be subsituted for field values, e.g. for http://www.example.com/image/{id} the {id} is replaced with a field called id in the current row. '.\n 'Can also use the subsitution {currentUrl} to link back to the current page, {rootFolder} to represent the folder on the server that the current PHP page is running from, and '.\n '{imageFolder} for the image upload folder\"},\n \"urlParams\": {\n \"type\":\"map\",\n \"subtype\":\"str\",\n \"desc\":\"List of parameters to append to the URL link, with field value replacements such as {id} begin replaced '.\n 'by the value of the id field for the current row.\"\n },\n \"class\": {\"type\":\"str\",\"desc\":\"CSS class to attach to the action link.\"},\n \"javascript\": {\"type\":\"str\",\"desc\":\"JavaScript that will be run when the link is clicked. Can contain field value substitutions '.\n 'such as {id} which is replaced by the value of the id field for the current row. Because the javascript may pass the field values as parameters to functions, '.\n 'there are escaped versions of each of the replacements available for the javascript action type. Add -escape-quote or '.\n '-escape-dblquote to the fieldname. For example this would be valid in the action javascript: foo(\\\"{bar-escape-dblquote}\\\"); '.\n 'even if the field value contains a double quote which would have broken the syntax.\"}\n }\n }]\n },\n \"visible\": {\"type\":\"bool\",\"desc\":\"Should this column be shown? Hidden columns can still be used in templates or actions.\"},\n \"template\": {\"type\":\"txt\",\"desc\":\"Allows you to create columns that contain dynamic content using a template, rather than just the output '.\n 'of a field. The template text can contain fieldnames in braces, which will be replaced by the respective field values. '.\n 'Note that template columns cannot be sorted by clicking grid headers.\" }\n }\n }\n ]\n}',\n 'required' => false,\n 'group' => 'Report Settings'\n ),\n )\n );\n // @todo Set the default report name\n foreach ($r as &$param) {\n if ($param['name']==='report_name') {\n $param['default'] = 'library/occurrences/explore_list';\n $param['description'] .= '<br/>The report used must meet a set of criteria to be used for this form, as illustrated by the library/occurrences/explore_list '.\n 'report. The report should have the following columns:<br/>'.\n '<strong>belongs_to_user</strong> - a boolean indicating if the record belongs to (i.e. is editable by) the logged in user.<br/>'.\n '<strong>certainty</strong> - text output which identifies the certainty of the record if known. This is appended to the word '.\n 'certainty to make a class which is attached to the row HTML, allowing you to use CSS to style the row output. E.g. if the report '.\n 'outputs C in this column then the row HTML will have a class certaintyC.<br/>'.\n '<br/>The report should have the following parameters:<br/>'.\n '<strong>location_id</strong> - Warehouse ID of the user\\'s preferred recording location passed automatically from the user\\'s account. Only applied if own_locality is 1.<br/>'.\n '<strong>ownLocality</strong> - Boolean (1 or 0) parameter which defines if the output should be filtered to the contents of the location identified by location_id.<br/>'.\n '<strong>taxon_groups</strong> Takes a comma separated list of taxon_group_ids as a string suitable for insertion into an SQL in (...) clause. '.\n 'Will be passed the user\\'s preferred species groups from their user account if the Easy Login feature is installed. Only applied if ownGroups is 1.<br/>'.\n '<strong>ownGroups</strong> - Boolean (1 or 0) parameter which defines if the output should be filtered to the contents of the taxon groups identified by taxon_groups.<br/>'.\n '<strong>currentUser</strong> Warehouse User ID of the logged in user, used to filter records to their own data. Only applied if ownData is 1.<br/>'.\n '<strong>ownData</strong> - Boolean (1 or 0) parameter which defines if the output should be filtered to the user\\'s own records.';\n }\n elseif ($param['name']==='param_presets')\n $param['default'] = \"smpattrs=\\noccattrs=\\nlocation_id={profile_location}\\ntaxon_groups={profile_taxon_groups}\\ncurrentUser={profile_indicia_user_id}\";\n elseif ($param['name']==='param_defaults')\n $param['default'] = \"idlist=\\nsearchArea=\";\n elseif ($param['name']==='standard_controls')\n $param['default'] = \"layerSwitcher\\npanZoomBar\";\n }\n return $r;\n }", "public function getDataConfig()\n {\n return $this->params;\n }", "public function getProductOptions($filter = array())\n {\n //$filter = null;\n $products = $this->em\n ->getRepository('GistInventoryBundle:Product')\n ->findBy(\n $filter,\n array('id' => 'ASC')\n );\n\n $prod_opts = array();\n foreach ($products as $prod)\n $prod_opts[$prod->getID()] = $prod->getName();\n\n return $prod_opts;\n }", "public static function get_parameters() {\n $r = array_merge(\n parent::get_parameters(),\n array(\n array(\n 'name' => 'transect_count_attr_ids',\n 'caption' => 'Transect count attribute IDs',\n 'description' => 'Comma separated list of sample attribute IDs. Specify each attribute that can contain a count of transects surveyed '.\n '(e.g. low shore, middle shore, high shore). For each attribute, n transects will be available for data input.',\n 'type' => 'textfield',\n 'required' => true,\n 'group' => 'Big Sea setup'\n ), array(\n 'name' => 'transect_captions',\n 'caption' => 'Transect captions',\n 'description' => 'Comma separated list of captions to use for each of the above attributes, in the same order.',\n 'type' => 'textfield',\n 'required' => true,\n 'group' => 'Big Sea setup'\n ),\n array(\n 'name' => 'child_sample_zone_attr_id',\n 'caption' => 'Child sample zone attribute ID',\n 'description' => 'A text attribute used to store the zone in the child sample.',\n 'type' => 'select',\n 'table' => 'sample_attribute',\n 'valueField' => 'id',\n 'captionField' => 'caption',\n 'group' => 'Big Sea setup'\n ), array(\n 'name' => 'child_sample_transect_attr_id',\n 'caption' => 'Child sample transect attribute ID',\n 'description' => 'An integer attribute used to store the transect in the child sample.',\n 'type' => 'select',\n 'table' => 'sample_attribute',\n 'valueField' => 'id',\n 'captionField' => 'caption',\n 'group' => 'Big Sea setup'\n ), array(\n 'name' => 'search_species_transect_attr_id',\n 'caption' => 'Parent sample search species attribute ID',\n 'description' => 'An integer multivalut attribute used to store the search species list in the parent attribute.',\n 'type' => 'select',\n 'table' => 'sample_attribute',\n 'valueField' => 'id',\n 'captionField' => 'caption',\n 'group' => 'Big Sea setup'\n ),\n array(\n 'name' => 'front_page_path',\n 'caption' => 'Front page path',\n 'description' => 'Path to the front page input form.',\n 'type' => 'textfield',\n 'required' => true,\n 'group' => 'Big Sea setup'\n ),\n array(\n 'name' => 'parent_sample_method_id',\n 'caption' => 'Parent Sample Method',\n 'type' => 'select',\n 'table' => 'termlists_term',\n 'captionField' => 'term',\n 'valueField' => 'id',\n 'extraParams' => array('termlist_external_key' => 'indicia:sample_methods'),\n 'required' => false,\n 'helpText' => 'The sample method that will be used for created visit samples.',\n 'group' => 'Big Sea setup'\n )\n )\n );\n return $r;\n }", "public function getParams() {\n $params = array(\n \"invoice_type\" => \"klarna_\" . $this->moduleType . \"_invoice_type\",\n \"companyName\" => \"klarna_\" . $this->moduleType . \"_companyName\",\n \"socialNumber\" => \"klarna_\" . $this->moduleType . \"_socialNumber\",\n \"sex\" => \"klarna_\" . $this->moduleType . \"_gender\",\n \"firstName\" => \"klarna_\" . $this->moduleType . \"_firstName\",\n \"lastName\" => \"klarna_\" . $this->moduleType . \"_lastName\",\n \"street\" => \"klarna_\" . $this->moduleType . \"_street\",\n \"homenumber\" => \"klarna_\" . $this->moduleType . \"_homenumber\",\n \"house_extension\" => \"klarna_\" . $this->moduleType . \"_house_extension\",\n \"zipcode\" => \"klarna_\" . $this->moduleType . \"_zipcode\",\n \"city\" => \"klarna_\" . $this->moduleType . \"_city\",\n \"phoneNumber\" => \"klarna_\" . $this->moduleType . \"_phoneNumber\",\n \"mobilePhone\" => \"klarna_\" . $this->moduleType . \"_mobilePhone\",\n \"emailAddress\" => \"klarna_\" . $this->moduleType . \"_emailAddress\",\n \"invoiceType\" => \"klarna_\" . $this->moduleType . \"_invoiceType\",\n \"reference\" => \"klarna_\" . $this->moduleType . \"_reference\",\n \"year_salary\" => \"klarna_\" . $this->moduleType . \"_year_salary\",\n \"shipmentAddressInput_invoice\" => \"klarna_\" . $this->moduleType . \"_shipmentAddressInput_invoice\",\n \"birthday_day\" => \"klarna_\" . $this->moduleType . \"_birth_day\",\n \"birthday_month\" => \"klarna_\" . $this->moduleType . \"_birth_month\",\n \"birthday_year\" => \"klarna_\" . $this->moduleType . \"_birth_year\",\n \"consent\" => \"klarna_\" . $this->moduleType . \"_consent\",\n \"paymentPlan\" => \"klarna_\" . $this->moduleType . \"_paymentPlan\"\n );\n return $params;\n }", "function getParameters(): array;", "public function getProductOptionsTransfer($filter = array())\n {\n //$filter = null;\n $products = $this->em\n ->getRepository('GistInventoryBundle:Product')\n ->findBy(\n $filter,\n array('id' => 'ASC')\n );\n\n $prod_opts = array();\n foreach ($products as $prod)\n $prod_opts[$prod->getItemCode()] = $prod->getName();\n\n return $prod_opts;\n }", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\tarray('package', InputArgument::REQUIRED, 'Package name.'),\n\t\t);\n\t}", "protected function generateParams()\n {\n $qty = Cart::count();\n\n $templatePart = $qty ? '_cart-content' : '_cart-empty';\n\n $html = view(\"website.cart.$templatePart\")->render();\n\n return compact('html', 'qty');\n }" ]
[ "0.66258353", "0.61609155", "0.6114301", "0.6007139", "0.59229124", "0.5877141", "0.58763975", "0.5849248", "0.5755074", "0.5755074", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.572348", "0.5685262", "0.5685262", "0.56801665", "0.5668305", "0.5622771", "0.5621275", "0.56182224", "0.5600193", "0.5598277", "0.55465573", "0.553013", "0.553013", "0.54858637", "0.5484356", "0.54821867", "0.5479271", "0.5453574", "0.54424876", "0.5438569", "0.5425121", "0.53941953", "0.5387816", "0.5371685", "0.53640217", "0.5354815", "0.5347454", "0.5345569", "0.53440475", "0.5342685", "0.5341002", "0.5341002", "0.5328876", "0.53252983", "0.53252983", "0.53153366", "0.53006756", "0.5300413", "0.5299048", "0.5294376", "0.5285972", "0.5284117", "0.5281516", "0.52740926", "0.5257933", "0.5257643", "0.5252931", "0.5251879", "0.5251879", "0.5251879", "0.5251879", "0.5251879", "0.5251879", "0.5251879", "0.5251879", "0.5251879", "0.5251879", "0.52512056", "0.52511674", "0.52509785", "0.5248368", "0.52383965", "0.5235434", "0.52295005", "0.52295005", "0.52295005", "0.52295005", "0.5226532", "0.5225231", "0.5225231", "0.5224689", "0.5224551", "0.52235883", "0.520662", "0.5202068", "0.5193793", "0.51894474", "0.5188035", "0.51845515", "0.51836395", "0.51825285", "0.51711214" ]
0.83408827
0
Returns applicable dynamic origin based on destination
public function getDynamicOrigin($postcode, $storeId = null) { return Mage::getSingleton('temando/warehouse')->getCollection()->getOriginByPostcode($postcode, $storeId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOrigin();", "public function getOrigin() {}", "public function getOrigin() {}", "public function getOriginAttribute(){\n if($origin = $this->getParam('origin')){\n return $origin;\n }\n else{\n return 0;\n }\n }", "public function getOrigin()\n {\n if (array_key_exists(\"origin\", $this->_propDict)) {\n return $this->_propDict[\"origin\"];\n } else {\n return null;\n }\n }", "private function _getOriginCountry()\n {\n // If the admin has chose to select a different \"origin\" country\n if (Mage::getStoreConfig('carriers/iparcel/choose_domestic')) {\n return Mage::getStoreConfig('carriers/iparcel/origin_country_id');\n }\n return Mage::getStoreConfig('shipping/origin/country_id');\n }", "public function getOrigin(): string {\n return $this->configuration['origin'];\n }", "public function getOrigin(string ...$arguments) : string\n {\n if ($arguments) {\n return $this->router->fillPlaceholders($this->origin, ...$arguments);\n }\n return $this->origin;\n }", "public function getOrigin(){\n return $this->origin;\n }", "private function getOrigin()\n {\n $version = $this->configuration->get(TransformedIdentifierConfiguration::VERSION);\n $origin = self::TRANSFORMED_ORIGIN;\n\n if ($version > 0) {\n $origin .= \";v={$version}\";\n }\n\n return $origin;\n }", "public function getOrigin()\n {\n return $this->_fields['Origin']['FieldValue'];\n }", "public function getOrigin()\n {\n return $this->resultOrigin;\n }", "public function getOriginLocation()\r\n {\r\n $first_location = $this->getRoutes()->getOriginLocation();\r\n\r\n return $first_location;\r\n }", "public function getOrigin()\n {\n return $this->origin;\n }", "public function getOrigin()\n {\n return $this->origin;\n }", "public function getShortestPath($origin, $destination);", "public function getOrigin()\n {\n return $this->_origin;\n }", "public function getOrigin()\n {\n return $this->_origin;\n }", "public function getOrigin() {\n return $this->origin;\n }", "public function getOrigin()\n {\n return $this->getValue('nb_domain_zone_origin');\n }", "function getNationalRoute($originCity, $destinyCity)\n {\n }", "public function getOrigin()\n {\n return $this->send('POST', 'getOrigin');\n }", "function getDepartamentalRoute($originCity, $destinyCity)\n {\n }", "public function origin()\n {\n return $this->origin;\n }", "public abstract function getOrigin(): Point;", "public function getOriginId()\n {\n return $this->origin_id;\n }", "public function getOrigin(): string {\n\t\treturn $this->origin;\n\t}", "function GetDirectionURL($type,$origin,$destination){\r\n $url = null;\r\n\r\n if($type == 'findway'){\r\n $url = 'https://www.google.com/maps/dir/?api=1&origin='.trim($origin).'&destination='.trim($destination).'&travelmode=driving';\r\n }else if($type == 'where') {\r\n\r\n $url = 'https://www.google.com/maps/search/?api=1&query=' . $destination;\r\n }\r\n return $url;\r\n}", "public function destination() {\n return $this->destination;\n }", "public function getOriginLocation()\n {\n return $this->originLocation;\n }", "public function getOriginLocation()\n {\n return $this->originLocation;\n }", "public function getOrigin()\n {\n if (is_null($this->origin)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_ORIGIN);\n if (is_null($data)) {\n return null;\n }\n $this->origin = (string) $data;\n }\n\n return $this->origin;\n }", "function GetDestination() {\n if (isset($_REQUEST['destination'])) {\n return 'destination=' . urlencode($_REQUEST['destination']);\n } else {\n return 'destination=' . urlencode(str_ireplace(\"/\" . PROJECT_NAME, \"\", $_SERVER[\"REQUEST_URI\"]));\n }\n }", "abstract protected function getRoute($destination);", "public function getDestination(): array;", "public function getOrigin()\n\t{\n\t\tif ($this->template)\n\t\t{\n\t\t\t$file = $this->template;\n\n\t\t\tif (strncmp($file, 'string:', 7) === 0)\n\t\t\t{\n\t\t\t\t$file = substr($file, 7);\n\t\t\t\t$line = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$line = $this->templateLine;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$file = $this->file;\n\t\t\t$line = $this->line;\n\t\t}\n\n\t\treturn $file.($line ? \" ({$line})\" : '');\n\t}", "public function getDestination()\n {\n return $this->destination;\n }", "public function getDestination() {\n return $this->destination;\n }", "public function getDestination()\n\t{\n\t\treturn $this->resource->model_destination;\n\t}", "public function getDestination()\r\n {\r\n return $this->destination;\r\n }", "public function isOrigin()\n {\n return !is_null($this->_fields['Origin']['FieldValue']) && $this->_fields['Origin']['FieldValue'];\n }", "protected function getOrigin()\n {\n $origin = $this->request->server->get('HTTP_ORIGIN');\n $host = $this->request->server->get('HTTP_HOST');\n return $origin ? $origin : ($host ? 'http://' . str_replace('www.', '', $host) : null);\n }", "function queryOrigin() {\r\r\n\r\r\n\t\t$term = 'SUBSTRING(';\r\r\n\t\t$term.=\t\t'HTTP_REFERER,';\r\r\n\t\t$term.=\t\t'LOCATE(\".\", HTTP_REFERER)+1,';\r\r\n\t\t$term.=\t\t'LOCATE(\"/\",HTTP_REFERER,9)-';\r\r\n\t\t$term.=\t\t\t'LOCATE(\".\",HTTP_REFERER)-1';\r\r\n\t\t$term.= ')';\r\r\n\r\r\n\t\treturn(\"$term origin\");\r\r\n\t}", "private function resolveOrigin()\n {\n $uri = 'http';\n\n if (getenv('HTTPS') === 'on') {\n $uri .= 's';\n }\n\n $uri .= '://';\n $uri .= getenv('HTTP_HOST').getenv('REQUEST_URI');\n\n return $uri;\n }", "public function getDestination()\n {\n return $this->destination;\n }", "public function getDestination()\n {\n return $this->destination;\n }", "public function getDestination()\n {\n return $this->destination;\n }", "public function setOrigin($var)\n {\n GPBUtil::checkString($var, True);\n $this->origin = $var;\n }", "function get_http_origin()\n {\n }", "function custom_rules_is_destination_set(){\n\treturn isset( $_GET['destination'] );\n}", "public function setOriginAndDestinationAction(Request $request)\n {\n // Get Entity manager and repository\n $em = $this->getDoctrine()->getManager();\n $placesRepository = $em->getRepository(\"App:Destinations\");\n\n // Search the neighborhoods that belongs to the city with the given id as GET parameter \"cityid\"\n $places = $placesRepository->createQueryBuilder(\"q\")\n ->where(\"q.type = :setcategoryid\")\n ->setParameter(\"setcategoryid\", $request->query->get(\"id\"))\n ->getQuery()\n ->getResult();\n\n // Serialize into an array the data that we need, in this case only name and id\n // Note: you can use a serializer as well, for explanation purposes, we'll do it manually\n $responseArray = array();\n foreach($places as $obj){\n $responseArray[] = array(\n \"id\" => $obj->getId(),\n \"name\" => $obj->getName()\n );\n }\n\n // Return array with structure of the neighborhoods of the providen city id\n return new JsonResponse($responseArray);\n\n\n }", "public function getDestination()\n {\n return $this->send('POST', 'getDestination');\n }", "function getInternationalRoute($originCity, $destinyCity)\n {\n }", "public function getAbsoluteSrc();", "function getOrigin(){\n $output = dbcCmd(\"getOrigin\\n\");\n //Error Check\n if($output[\"stdout\"] == \"failed\\n\"){\n return str_replace(\"\\n\",\"\",$output[\"stdout\"]);\n }\n $rtn = array(\"origin\"=>str_replace(\"\\n\",\"\",$output[\"stdout\"]));\n return json_encode($rtn);\n}", "public function getOriginName()\n {\n return $this->origin_name;\n }", "public function getCanonicalLocation(): string;", "public function getDestination(): string\n {\n return $this->destination;\n }", "public function getDestination() {\n return $this->destinationDao->getDestination();\n }", "public function getDestinationLocation()\n {\n return $this->destinationLocation;\n }", "public function getDnsOrigin()\n {\n return $this->getValue('nb_domain_zone_dns_origin');\n }", "public function set_origin($origin){\n \t$this->origin = $origin;\n }", "public function getOriginUrlParts() {\n\t\treturn $this->_originUrlParts;\n\t}", "function getDestWhere() {\n return $this->destWhere;\n }", "public function isOriginVisible()\n {\n return (\n $this->isInformationVisible() && \n Mage::getStoreConfigFlag(self::XML_PATH_OPTIONS_DISPLAY_ORIGIN)\n ) ? true : false;\n }", "public function destination() {\n\n if(is_callable($this->options['destination'])) {\n return call($this->options['destination'], $this);\n } else {\n\n $destination = new Obj(); \n $safeName = f::safeName($this->source->name());\n\n $destination->filename = str::template($this->options['filename'], array(\n 'extension' => $this->source->extension(),\n 'name' => $this->source->name(),\n 'filename' => $this->source->filename(),\n 'safeName' => $safeName,\n 'safeFilename' => $safeName . '.' . $this->extension(),\n 'width' => $this->options['width'],\n 'height' => $this->options['height'],\n 'hash' => md5($this->source->root() . $this->settingsIdentifier()),\n ));\n\n $destination->url = $this->options['url'] . '/' . $destination->filename;\n $destination->root = $this->options['root'] . DS . $destination->filename;\n\n return $destination;\n\n }\n\n }", "public function getDestinationForLocations($date = null, $destination ,$toLocations)\n {\n $vatry = 'Vatry';\n $qb = $this->createQueryBuilder('f')\n ->where(\"f.fromLocation = :vatry \")\n ->setParameter('vatry', $vatry);\n\n if ($destination) {\n $qb->andWhere('f.toLocation in (:locations)')\n ->setParameter('locations', $toLocations);\n }\n\n if ($date) {\n $qb\n ->andWhere('f.time like :like')\n ->setParameter('like', $date . \"%\");\n }\n\n return $qb->getQuery()->getResult();\n }", "protected function setDestination() {}", "public function cerasisOriginAddress(\n $request,\n $_product,\n $receiverZipCode\n ) {\n //Todo: need to check which warehouse is selected and method params conflict also must be fixed. fetchWarehouseSecData()\n $this->request = $request;\n $whQuery = $this->dataHelper->fetchWarehouseSecData('warehouse');\n $enableDropship = $_product->getData('en_dropship');\n\n if ($enableDropship) {\n $dropShipID = $_product->getData('en_dropship_location');\n $originList = $this->dataHelper->fetchWarehouseWithID('dropship', $dropShipID);\n\n if (!$originList) {\n $product = $this->productLoader->create()->load($_product->getEntityId());\n $product->setData('en_dropship', 0)->getResource()->saveAttribute($product, 'en_dropship');\n $origin = $whQuery;\n } else {\n $origin = $originList;\n }\n } else {\n $origin = $whQuery;\n }\n if (!empty($origin)) {\n return $this->multiWarehouse($origin, $receiverZipCode);\n }\n }", "public function originPort() {\n\t\treturn $this->getOriginPort();\n\t}", "public function getCountryOfOrigin() {\n\t\treturn $this->countryOfOrigin;\n\t}", "private function get_cities_origin() {\n $t_location = get_transient('wcis_location');\n return $t_location['cities'];\n }", "public function routeUrlDestinationAutodetect()\n {\n\n }", "public function getFirstRelatedDestinationAttribute()\n {\n try {\n /** @var \\App\\Models\\Destination $destination */\n $destination = $this->destinations()->first()->destination;\n $destination->append('avatar');\n return $destination;\n } catch (\\ErrorException $e) {\n return null;\n }\n }", "public function isSortByOrigin()\n {\n return ($this->getSortBy() == 'origin') ? true : false;\n }", "public function getCheckOrigin()\n {\n return $this->_checkOrigin;\n }", "public function getDestination()\n {\n return $this->hasOne(Destination::className(), ['id' => 'destination_id']);\n }", "public function isSetOrigin()\n {\n return !is_null($this->_fields['Origin']['FieldValue']);\n }", "public function setDestination($destination) {}", "public function setDestination($destination) {}", "public function getDestinationLocation()\r\n {\r\n $last_location = $this->getRoutes()->getDestinationLocation();\r\n\r\n return $last_location;\r\n }", "public function getOriginCity()\n\t{\n\t\treturn $this->origin_city;\n\t}", "public function get_data_origin() {\n\t\treturn $this->data_origin;\n\t}", "public function GetDistance($origin=\"\",$destination=\"\"){\n\t\t\t$from = urlencode($origin);\n\t\t\t$to = urlencode($destination);\n\t\t\t$data = file_get_contents(\"https://maps.googleapis.com/maps/api/distancematrix/json?origins=$from&destinations=$to&language=en-EN&sensor=false&key=\".GOOGLEAPI);\n\t\t\t$data = json_decode($data,true);\n\n\t\t\tif($data['status']=='OK'){\n\t\t\t if($data['rows'][0]['elements'][0]['status']=='ZERO_RESULTS'){\n\t\t\t\t$value=0;\n\t\t\t }else{\n\t\t\t\t $value=$data['rows'][0]['elements'][0]['distance']['text']; \n\t\t\t }\n\t\t\t}\n\t\t\treturn $value; \n\n\t\t}", "function fn_warehouses_get_destinations_for_picker(array $params)\n{\n $params = array_merge(\n [\n 'ids' => [],\n 'store_location_id' => null,\n 'page' => null,\n 'page_size' => null,\n 'q' => '',\n ],\n $params\n );\n\n $destinations = fn_get_destinations(DESCR_SL);\n if ($params['ids']) {\n $destinations = array_filter(\n $destinations,\n function ($destination) use ($params) {\n return in_array($destination['destination_id'], $params['ids']);\n }\n );\n }\n if ($params['q'] !== '') {\n $destinations = array_filter(\n $destinations,\n function ($destination) use ($params) {\n $search_critiera = fn_strtolower($params['q']);\n $destination_name = fn_strtolower($destination['destination']);\n\n return strstr($destination_name, $search_critiera) !== false;\n }\n );\n }\n\n $manager = ServiceProvider::getManager();\n $warehouse_destinations = $manager->initializeDestinationsByWarehouseId($params['store_location_id']);\n $destinations = array_map(\n function ($destination) use ($warehouse_destinations) {\n $destination_id = (int) $destination['destination_id'];\n $destination_name = $destination['destination'];\n /** @var \\Tygh\\Addons\\Warehouses\\Destination|null $warehouse_destination */\n $warehouse_destination = isset($warehouse_destinations[$destination_id])\n ? $warehouse_destinations[$destination_id]\n : null;\n\n return [\n 'id' => $destination_id,\n 'text' => $destination_name,\n 'data' => [\n 'url' => fn_url('destinations.update?destination_id=' . $destination_id),\n 'destination' => $destination_name,\n 'destination_id' => $destination_id,\n 'warn_about_delay' => $warehouse_destination\n ? (int) $warehouse_destination->isWarnAboutDelay()\n : 0,\n 'shipping_delay' => $warehouse_destination\n ? $warehouse_destination->getShippingDelay()\n : '',\n 'position' => $warehouse_destination\n ? $warehouse_destination->getPosition()\n : 0,\n ],\n ];\n },\n $destinations\n );\n\n $objects = $destinations;\n if ($params['page'] && $params['page_size']) {\n $objects = array_slice($objects, ($params['page'] - 1) * $params['page_size'], $params['page_size']);\n }\n $total_objects = count($destinations);\n\n return [$objects, $total_objects];\n}", "protected function getOriginName()\n {\n return $this->container->getParameter('tenside.self_update.origin_name');\n }", "protected function getDevOriginHeader()\n {\n return $this->dev_origin\n ?: filter_input(INPUT_ENV, 'HTTP_X_BUD_DEV_ORIGIN', FILTER_SANITIZE_URL)\n ?: filter_input(INPUT_SERVER, 'HTTP_X_BUD_DEV_ORIGIN', FILTER_SANITIZE_URL);\n }", "public static function get_destination( $key ) {\r\n\r\n\t\t\t$key = strtoupper( $key );\r\n\r\n\t\t\tif ( isset( self::$destinations[ $key ] ) && is_object( self::$destinations[ $key ] ) )\r\n\t\t\t\treturn self::$destinations[ $key ];\r\n\r\n\t\t\t$reg_dests = self::get_registered_destinations();\r\n\t\t\tif ( ! empty( $reg_dests[ $key ][ 'class' ] ) ) {\r\n\t\t\t\tself::$destinations[ $key ] = new $reg_dests[ $key ][ 'class' ];\r\n\t\t\t} else {\r\n\t\t\t\treturn NULL;\r\n\t\t\t}\r\n\r\n\t\t\treturn self::$destinations[ $key ];\r\n\t\t}", "public function getDestinationId()\n {\n return $this->destination_id;\n }", "public function setOrigin($val)\n {\n $this->_propDict[\"origin\"] = $val;\n return $this;\n }", "public function get_m2m_current_post_type_relationships_per_origin( $current_post_type ) {\n\t\t\n\t\t$relationship_definitions_per_origin = array(\n\t\t\tToolset_Relationship_Origin_Wizard::ORIGIN_KEYWORD => array(),\n\t\t\tToolset_Relationship_Origin_Post_Reference_Field::ORIGIN_KEYWORD => array()\n\t\t);\n\n\t\t$query = new Toolset_Relationship_Query_V2();\n\n\t\t// Note that we can not use $query->do_if() because it actually runs both branches\n\t\t// and one of them expects $current_post_type->name to exist\n\t\tif ( $current_post_type instanceof WP_Post_Type ) {\n\t\t\t$relationship_definitions = $query\n\t\t\t\t->add(\n\t\t\t\t\t$query->do_and(\n\t\t\t\t\t\t$query->do_or(\n\t\t\t\t\t\t\t$query->has_domain_and_type( $current_post_type->name, Toolset_Element_Domain::POSTS ),\n\t\t\t\t\t\t\t$query->intermediary_type( $current_post_type->name )\n\t\t\t\t\t\t),\n\t\t\t\t\t\t$query->do_or(\n\t\t\t\t\t\t\t$query->origin( Toolset_Relationship_Origin_Wizard::ORIGIN_KEYWORD ),\n\t\t\t\t\t\t\t$query->origin( Toolset_Relationship_Origin_Post_Reference_Field::ORIGIN_KEYWORD )\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t->get_results();\n\t\t} else {\n\t\t\t$relationship_definitions = $query\n\t\t\t\t->add(\n\t\t\t\t\t$query->do_or(\n\t\t\t\t\t\t$query->origin( Toolset_Relationship_Origin_Wizard::ORIGIN_KEYWORD ),\n\t\t\t\t\t\t$query->origin( Toolset_Relationship_Origin_Post_Reference_Field::ORIGIN_KEYWORD )\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t->get_results();\n\t\t}\n\n\t\tforeach( $relationship_definitions as $relationship_definition ) {\n\t\t\t$relationship_cardinality = $relationship_definition->get_cardinality();\n\t\t\t$origin = $relationship_definition->get_origin();\n\t\t\t\n\t\t\t$relationship_definitions_per_origin[ $origin->get_origin_keyword() ][] = $relationship_definition;\n\t\t}\n\n\t\treturn $relationship_definitions_per_origin;\n\t}", "function destination(){\n $sql= $this->chk(\n \"select * from destination \"\n );\n $destination= $this->sqlData($sql);\n echo ($destination);\n }", "public function GetAbsolute ();", "public static function getDestination()\n {\n return public_path() . '/img/profile_photos/';\n }", "private function _allowOrigin(ServerRequestInterface $request)\n {\n $allowOrigin = $this->config['AllowOrigin'];\n $origin = $request->getHeaderLine('Origin');\n\n if ($allowOrigin === true || $allowOrigin === '*') {\n return $origin;\n }\n\n if (is_array($allowOrigin)) {\n $origin = (array) $origin;\n\n foreach ($origin as $o) {\n if (in_array($o, $allowOrigin, true)) {\n return $origin;\n }\n }\n\n return '';\n }\n\n return (string) $allowOrigin;\n }", "public function getDestinationContext();", "public function setOrigin($origin, $reassign = false);", "public function getDestinationIp()\n {\n return $this->destination_ip;\n }", "public function getDestinationIp()\n {\n return $this->destination_ip;\n }", "public function originIpAddress() {\n\t\treturn $this->getOriginIpAddress();\n\t}" ]
[ "0.6758524", "0.6519141", "0.6516237", "0.63004035", "0.6249608", "0.6186907", "0.60588175", "0.60214883", "0.59936315", "0.5956334", "0.5901311", "0.58612067", "0.58322984", "0.57764333", "0.57764333", "0.5730243", "0.57128733", "0.57128733", "0.5699754", "0.5680876", "0.56778955", "0.56361353", "0.5627718", "0.562658", "0.5608176", "0.5604477", "0.56012774", "0.5568397", "0.55346817", "0.55246353", "0.55246353", "0.55009097", "0.5480701", "0.5427032", "0.54236734", "0.541105", "0.53951496", "0.53747755", "0.5364658", "0.53500825", "0.5348295", "0.53420764", "0.5299796", "0.52986115", "0.528961", "0.528961", "0.528961", "0.52711695", "0.52432495", "0.52300644", "0.52105343", "0.52023965", "0.51841825", "0.517509", "0.5172582", "0.5169413", "0.5163245", "0.5162197", "0.5143713", "0.5107852", "0.5081916", "0.50740206", "0.5041671", "0.504036", "0.5039451", "0.5023295", "0.50118923", "0.49784237", "0.49775323", "0.49658626", "0.4956826", "0.49536237", "0.49532264", "0.49393907", "0.49201798", "0.49121934", "0.49075794", "0.48957726", "0.48909324", "0.48909324", "0.4879914", "0.4862563", "0.48616803", "0.4855526", "0.48364827", "0.4833456", "0.4819654", "0.4818611", "0.48130813", "0.4807574", "0.47822776", "0.47806028", "0.47400728", "0.473207", "0.47233415", "0.47141963", "0.4704268", "0.46975005", "0.46975005", "0.4694292" ]
0.56536573
21
Prepares returned packaging information from getQuotes request for save into database table
public function getSerializedPackagingFromApiResponse($anythings) { //Mage::log($anythings, null, 'anythings.log', true); if(!is_array($anythings->anything)) { $anythings->anything = array(0 => $anythings->anything); } $packages = array(); foreach($anythings->anything as $package) { $productCounts = array(); $customPackageDescription = isset($package->packagingDescription) ? $package->packagingDescription . ': ' : ''; isset($package->articles) ? $description = $customPackageDescription . $this->getPackagingDescription($package->articles, $productCounts) : $description = null; $packages[] = array( 'class' => $package->class, 'mode' => $package->mode, 'packaging' => $package->packaging, 'fragile' => $package->qualifierFreightGeneralFragile, 'distanceMeasurementType' => $package->distanceMeasurementType, 'weightMeasurementType' => $package->weightMeasurementType, 'length' => $package->length, 'width' => $package->width, 'height' => $package->height, 'weight' => $package->weight, 'quantity' => $package->quantity, 'packagingDescription' => isset($package->packagingDescription) ? $package->packagingDescription : '', 'description' => $description,//$this->getPackagingDescription(isset($package->articles) ? $package->articles : null) 'products' => $productCounts, ); } return serialize($packages); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function installQuoteData()\n {\n $quoteInstaller = $this->quoteSetupFactory->create(\n [\n 'resourceName' => 'quote_setup',\n 'setup' => $this->setup\n ]\n );\n $quoteInstaller\n ->addAttribute(\n 'quote',\n CustomFieldsInterface::CHECKOUT_PURPOSE,\n ['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true]\n );\n }", "protected function prepareData()\n {\n parent::prepareData();\n $this->prepareConfigurableProductOptions();\n $this->prepareAttributeSet();\n }", "public function prepare_item_for_database($request)\n {\n }", "public function prepare_item_for_database($request)\n {\n }", "protected function preparePrep()\n {\n $this->prepList = [];\n $this->invalidList = [];\n $this->rewind();\n if (array_key_exists('SellerSKUList.Id.1', $this->options)) {\n $this->options['Action'] = 'GetPrepInstructionsForSKU';\n $this->resetASINs();\n } elseif (array_key_exists('ASINList.Id.1', $this->options)) {\n $this->options['Action'] = 'GetPrepInstructionsForASIN';\n $this->resetSKUs();\n }\n }", "protected function prepare_item_for_database($request)\n {\n }", "protected function prepare_item_for_database($request)\n {\n }", "abstract public function prepareData();", "function _prepare() {}", "public function saveQuote()\n {\n $this->calculateSubscription();\n $this->calculateService();\n $this->calculateGoods();\n \n $return = array();\n $return['services'] = $this->services;\n $return['goods'] = $this->goods;\n $return['subscription'] = $this->subscription;\n $return['userEmail'] = $this->user->getEmail();\n $return['UUID'] = $this->generateQuoteUUID($return);\n $return['user'] = $this->user;\n $return['subtotal'] = $this->subtotal;\n return $return;\n\n }", "function _canadapostGetQuote() {\r\n\t$strXML = \"<?xml version=\\\"1.0\\\" ?>\";\r\n\r\n\t// set package configuration.\r\n\t$strXML .= \"<eparcel>\\n\";\r\n\t$strXML .= \" <language>\" . $this->language . \"</language>\\n\";\r\n\t$strXML .= \" <ratesAndServicesRequest>\\n\";\r\n\t$strXML .= \" <merchantCPCID>\" . $this->CPCID . \"</merchantCPCID>\\n\";\r\n\t$strXML .= \" <fromPostalCode>\" . $this->_canadapostOriginPostalCode . \"</fromPostalCode>\\n\";\r\n\t$strXML .= \" <turnAroundTime>\" . $this->turnaround_time . \"</turnAroundTime>\\n\";\r\n\t$strXML .= \" <itemsPrice>\" . (string)$this->items_price . \"</itemsPrice>\\n\";\r\n\t\r\n\t// add items information.\r\n\t$strXML .= \" <lineItems>\\n\";\r\n\tfor ($i=0; $i < $this->items_qty; $i++) {\r\n\t $this->item_description[$i] = str_replace(\"&\", \"and\", $this->item_description[$i]);\r\n\t\t$strXML .= \"\t <item>\\n\";\r\n\t\t$strXML .= \" <quantity>\" . $this->item_quantity[$i] . \"</quantity>\\n\";\r\n\t\t$strXML .= \" <weight>\" . ($this->item_weight[$i]) . \"</weight>\\n\";\r\n\t\t$strXML .= \" <length>\" . $this->item_length[$i] . \"</length>\\n\";\r\n\t\t$strXML .= \" <width>\" . $this->item_width[$i] . \"</width>\\n\";\r\n\t\t$strXML .= \" <height>\" . $this->item_height[$i] . \"</height>\\n\";\r\n\t\t$strXML .= \" <description>\" . $this->item_description[$i] . \"</description>\\n\";\r\n\t\tif ($this->item_readytoship[$i]) $strXML .= \" <readyToShip/>\\n\";\r\n\t\t$strXML .= \"\t </item>\\n\";\r\n\t}\r\n\t$strXML .= \" </lineItems>\\n\";\r\n\t\r\n\t// add destination information.\r\n\t$strXML .= \" <city>\" . $this->dest_city . \"</city>\\n\";\r\n\t$strXML .= \" <provOrState>\" . $this->dest_province . \"</provOrState>\\n\";\r\n\t$strXML .= \" <country>\" . $this->dest_country . \"</country>\\n\";\r\n\t$strXML .= \" <postalCode>\" . $this->dest_zip . \"</postalCode>\\n\";\r\n\t$strXML .= \" </ratesAndServicesRequest>\\n\";\r\n\t$strXML .= \"</eparcel>\\n\";\r\n\t\r\n\t//print $strXML;\r\n\tif ($resultXML = $this->_sendToHost($this->server,$this->port,'POST','',$strXML)) {\r\n\t\treturn $this->_parserResult($resultXML);\r\n\t} else {\r\n\t return false;\r\n\t}\r\n }", "protected function prepare()\n {\n $this->slug = $this->getSubmittedSlug();\n\n if ($this->isNew()) {\n $this->prepForNewEntry();\n } else {\n $this->prepForExistingEntry();\n }\n\n // As part of the prep, we'll apply the date and slug. We'll remove them\n // from the fields array since we don't want it to be in the YAML.\n unset($this->fields['date'], $this->fields['slug']);\n\n $this->fieldset = $this->content->fieldset()->withTaxonomies();\n }", "protected function addQuotes()\n {\n foreach ($this->data->Quotes as &$quote) {\n foreach (['OutboundLeg', 'InboundLeg'] as $leg) {\n if (isset($quote->$leg)) {\n foreach ($quote->$leg->CarrierIds as $key => $carrierId) {\n $carrier = $this->arraySearch($carrierId, $this->data->Carriers, 'CarrierId');\n $quote->Carriers[] = $this->data->Carriers[$carrier];\n }\n if ($this->flattenSingleCarrier === true && \\count($quote->$leg->CarrierIds) === 1) {\n $quote->Carrier = $quote->Carriers[0];\n unset($quote->Carriers);\n }\n foreach (['Origin' => 'OriginId', 'Destination' => 'DestinationId'] as $variable => $search) {\n $place = $this->arraySearch($quote->$leg->$search, $this->data->Places, 'PlaceId');\n $quote->$variable = $this->data->Places[$place];\n }\n }\n if ($this->removeIds === true) {\n unset($quote->$leg->CarrierIds, $quote->$leg->OriginId, $quote->$leg->DestinationId);\n }\n }\n }\n return $this->data->Quotes;\n }", "public function mainform_get_quotes()\n\t{\n\t\t$quotes = $this->get_quotes();\n\t// process the quotes\n\t\tforeach($quotes as $key => &$value)\n\t\t{\n\t\t $tmp = (array) $value;\n\t\t $quotes[$key] = $tmp['price'];\n\t\t} \n\t\tksort($quotes);\n\t\t$data['quotes'] = $quotes;\n\t\treturn $quotes;\n\t}", "function zed_getquoteforbookshelf()\n{\n $someObj = new stdClass;\n $zedPage = get_page_by_path('zed-book-club');\n $someObj->quotation = get_field('quotation', $zedPage->ID);\n $someObj->quotation_attribution = get_field('quotation_attribution', $zedPage->ID);\n return $someObj;\n}", "abstract protected function _prepare();", "function prepareFields() {\r\n\t\t$data = array_keys($this->modx->getFieldMeta('msProductData'));\r\n\t\tforeach ($this->resourceArray as $k => $v) {\r\n\t\t\tif (is_array($v) && in_array($k, $data)) {\r\n\t\t\t\t$tmp = $this->resourceArray[$k];\r\n\t\t\t\t$this->resourceArray[$k] = array();\r\n\t\t\t\tforeach ($tmp as $v2) {\r\n\t\t\t\t\tif (!empty($v2)) {\r\n\t\t\t\t\t\t$this->resourceArray[$k][] = array('value' => $v2);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (empty($this->resourceArray['vendor'])) {\r\n\t\t\t$this->resourceArray['vendor'] = '';\r\n\t\t}\r\n\t}", "public function prepareImportContent();", "public function prepareQuote($quote, $info)\n {\n if ($this->validatePaymentClass()) {\n return $this->getPaymentClass()->prepareQuote($quote, $info);\n }\n\n return parent::prepareQuote($quote, $info);\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "protected function _prepareNewCustomerQuote()\n {\n $quote = $this->getQuote();\n $billing = $quote->getBillingAddress();\n $shipping = $quote->isVirtual() ? null : $quote->getShippingAddress();\n\n $customer = $quote->getCustomer();\n /* @var $customer Mage_Customer_Model_Customer */\n $customerBilling = $billing->exportCustomerAddress();\n $customer->addAddress($customerBilling);\n $billing->setCustomerAddress($customerBilling);\n $customerBilling->setIsDefaultBilling(true);\n if ($shipping && !$shipping->getSameAsBilling()) {\n $customerShipping = $shipping->exportCustomerAddress();\n $customer->addAddress($customerShipping);\n $shipping->setCustomerAddress($customerShipping);\n $customerShipping->setIsDefaultShipping(true);\n } elseif ($shipping) {\n $customerBilling->setIsDefaultShipping(true);\n }\n\n if ($quote->getCustomerTaxnumber() && !$billing->getCustomerTaxnumber()) {\n $billing->setCustomerTaxnumber($quote->getCustomerTaxnumber());\n }\n\n Mage::helper('core')->copyFieldset('checkout_onepage_quote', 'to_customer', $quote, $customer);\n $customer->setPassword($customer->decryptPassword($quote->getPasswordHash()));\n $customer->setPasswordHash($customer->hashPassword($customer->getPassword()));\n $quote->setCustomer($customer)\n ->setCustomerId(true);\n }", "private function getPrepared()\n {\n $array = $this->ToArray();\n unset($array['currentPage']);\n unset($array['pageCount']);\n unset($array['errors']);\n unset($array['insert']);\n unset($array['table']);\n unset($array['Adapter']);\n unset($array['pdoFetch']);\n unset($array['cmsFetchMode']);\n unset($array[$this->primaryName]);\n unset($array['primaryName']);\n $prepared['update'] = '';\n foreach($array as $k=>$v)\n {\n $prepared['values'][':'.$k] = $v;\n $prepared['update'] .= '`'.$k.'`'.\"=\".':'.$k.',';\n }\n if ($prepared['update']{strlen($prepared['update'])-1} == ',')\n {\n $prepared['update'] = substr($prepared['update'],0,-1);\n }\n $prepared['set'] = implode(', ', array_keys($array));\n return $prepared;\n }", "protected function prepare()\n\t{\n\t}", "protected function _prepareNewCustomerQuote()\n {\n $quote = $this->getQuote();\n $billing = $quote->getBillingAddress();\n $shipping = $quote->isVirtual() ? null : $quote->getShippingAddress();\n\n $customer = $quote->getCustomer();\n /* @var $customer Mage_Customer_Model_Customer */\n $customerBilling = $billing->exportCustomerAddress();\n $customer->addAddress($customerBilling);\n $billing->setCustomerAddress($customerBilling);\n $customerBilling->setIsDefaultBilling(true);\n if ($shipping && !$shipping->getSameAsBilling()) {\n $customerShipping = $shipping->exportCustomerAddress();\n $customer->addAddress($customerShipping);\n $shipping->setCustomerAddress($customerShipping);\n $customerShipping->setIsDefaultShipping(true);\n } else {\n $customerBilling->setIsDefaultShipping(true);\n }\n\n Mage::helper('core')->copyFieldset('checkout_onepage_quote', 'to_customer', $quote, $customer);\n $customer->setPassword($customer->decryptPassword($quote->getPasswordHash()));\n $quote->setCustomer($customer)\n ->setCustomerId(true);\n }", "private function prepareExternalProduct() {\n if ($this->getSaverData()->isFirstPage()) {\n $this->setPrice();\n $this->setSKU();\n $this->setEnableReviews();\n $this->setMenuOrder();\n $this->setExternalProductDetails();\n }\n\n $this->setTags();\n $this->setAttributes();\n }", "function create() {\n\n if ( ! authCheck(['salesperson', 'manager']) ) {\n\n return json_encode(['success' => false, 'authorised' => false]);\n\n } else {\n\n $requestBody = file_get_contents('php://input');\n $data = json_decode($requestBody);\n\n // make quote\n $quote = new \\App\\Quote;\n $quote->owner = $_COOKIE['userid'];\n $quote->customer_name = getPropertySafely($data, 'customer_name');\n $quote->address = getPropertySafely($data, 'address');\n $quote->date = (getPropertySafely($data, 'date')) ? getPropertySafely($data, 'date') . ' 00:00:00': '1970-01-01 00:00:00';\n $quote->appointment_number = getPropertySafely($data, 'appointment_number');\n $quote->product_price = getPropertySafely($data, 'total_product_price');\n $quote->installation_price = getPropertySafely($data, 'total_installation_price');\n $quote->cost_price = getPropertySafely($data, 'total_price');\n $quote->save();\n $quoteId = $quote->id;\n\n foreach($data->products as $productName => $product) {\n\n foreach ($product as $rowId => $row) {\n\n // make quote product (\"Item\")\n $quoteProduct = new \\App\\QuoteProduct;\n $quoteProduct->quote_id = $quoteId;\n $quoteProduct->product = $productName;\n $quoteProduct->row = $rowId;\n $quoteProduct->save();\n $quoteProductId = $quoteProduct->id;\n\n foreach ($row as $settingName => $value) {\n\n // make quote product setting (could specify product to remove quote products table)\n $qpSetting = new \\App\\QuoteProductSetting;\n $qpSetting->quote_id = $quoteId;\n $qpSetting->quote_product_id = $quoteProductId;\n $qpSetting->setting = $settingName;\n if ($settingName == \"location\" || $settingName == \"description\" ) {\n $qpSetting->valueString = $value;\n } else {\n $qpSetting->value = $value;\n }\n $qpSetting->save();\n\n }\n }\n }\n\n //die();\n \n return json_encode(['success' => true, 'id' => $quoteId]);\n }\n }", "protected function _prepareCustomerQuote()\n {\n $quote = $this->getQuote();\n $billing = $quote->getBillingAddress();\n $shipping = $quote->isVirtual() ? null : $quote->getShippingAddress();\n\n $customer = $this->getCustomerSession()->getCustomer();\n if (!$billing->getCustomerId() || $billing->getSaveInAddressBook()) {\n $customerBilling = $billing->exportCustomerAddress();\n $customer->addAddress($customerBilling);\n $billing->setCustomerAddress($customerBilling);\n }\n if ($shipping && !$shipping->getSameAsBilling() &&\n (!$shipping->getCustomerId() || $shipping->getSaveInAddressBook())) {\n $customerShipping = $shipping->exportCustomerAddress();\n $customer->addAddress($customerShipping);\n $shipping->setCustomerAddress($customerShipping);\n }\n\n if (isset($customerBilling) && !$customer->getDefaultBilling()) {\n $customerBilling->setIsDefaultBilling(true);\n }\n if ($shipping && isset($customerShipping) && !$customer->getDefaultShipping()) {\n $customerShipping->setIsDefaultShipping(true);\n } else if (isset($customerBilling) && !$customer->getDefaultShipping()) {\n $customerBilling->setIsDefaultShipping(true);\n }\n $quote->setCustomer($customer);\n }", "public function prepare_items() {\n\n\t\t$this->_column_headers = array(\n\t\t\t$this->get_columns(),\n\t\t\tarray(),\n\t\t\t$this->get_sortable_columns(),\n\t\t\t'product_id',\n\t\t);\n\n\t\t$this->set_pagination_args( array(\n\t\t\t'total_items' => Tux_SU_Licenses_List::record_count(),\n\t\t\t'per_page' => 20,\n\t\t) );\n\n\t\tif ( isset( $_GET['orderby'] ) && ( in_array( $_GET['orderby'], array( 'created', 'modified', 'user_id', 'product_id', ) ) ) ) {\n\n\t\t\t$order = $_GET['orderby'];\n\n\t\t} else {\n\n\t\t\t$order = 'modified';\n\n\t\t}\n\n\t\tif ( isset( $_GET['order'] ) && ( 'asc' === $_GET['order'] || 'desc' === $_GET['order'] ) ) {\n\n\t\t\t$order .= ' ' . $_GET['order'];\n\n\t\t} else {\n\n\t\t\t$order .= ' desc';\n\n\t\t}\n\n\t\tif ( ! empty( $_GET['s'] ) ) {\n\n\t\t\t$items = tux_su_get_db( array(\n\t\t\t\t'user_id' => $_GET['s'],\n\t\t\t\t'product_id' => $_GET['s'],\n\t\t\t\t'info' => $_GET['s'],\n\t\t\t\t'type' => 'license',\n\t\t\t\t'order' => $order,\n\t\t\t\t'limit' => 20,\n\t\t\t\t'offset' => ( $this->get_pagenum() - 1 ) * 20,\n\t\t\t\t'search' => true,\n\t\t\t) );\n\n\t\t} else {\n\n\t\t\tif ( isset( $_GET['product_id'] ) ) {\n\n\t\t\t\t$items = tux_su_get_db( array(\n\t\t\t\t\t'product_id' => $_GET['product_id'],\n\t\t\t\t\t'type' => 'license',\n\t\t\t\t\t'order' => $order,\n\t\t\t\t\t'limit' => 20,\n\t\t\t\t\t'offset' => ( $this->get_pagenum() - 1 ) * 20,\n\t\t\t\t) );\n\n\n\t\t\t} else {\n\n\t\t\t\t$items = tux_su_get_db( array(\n\t\t\t\t\t'type' => 'license',\n\t\t\t\t\t'order' => $order,\n\t\t\t\t\t'limit' => 20,\n\t\t\t\t\t'offset' => ( $this->get_pagenum() - 1 ) * 20,\n\t\t\t\t) );\n\n\t\t\t}\n\t\t} // End if().\n\n\t\t$product_ids = array();\n\n\t\tforeach ( $items as $item ) {\n\n\t\t\tif ( ! empty( $item['product_id'] ) ) {\n\n\t\t\t\t$product_ids[] = $item['product_id'];\n\n\t\t\t}\n\t\t}\n\n\t\t$license_rules = array();\n\n\t\tif ( ! empty( $product_ids ) ) {\n\n\t\t\t$license_rules = tux_su_get_db( array(\n\t\t\t\t'product_id' => $product_ids,\n\t\t\t\t'type' => 'rule',\n\t\t\t) );\n\n\t\t}\n\n\t\tforeach ( $items as $item ) {\n\n\t\t\t$info = array();\n\n\t\t\tif ( isset( $item['info'] ) ) {\n\n\t\t\t\t$info = maybe_unserialize( $item['info'] );\n\n\t\t\t}\n\n\t\t\t$product_name = '';\n\t\t\t$activation_limit = 0;\n\t\t\t$expiry = 0;\n\n\t\t\tforeach ( $license_rules as $license_rule ) {\n\n\t\t\t\tif ( $license_rule['product_id'] === $item['product_id'] ) {\n\n\t\t\t\t\t$license_rule['info'] = maybe_unserialize( $license_rule['info'] );\n\n\t\t\t\t\tif ( isset( $license_rule['info']['product_name'] ) ) {\n\n\t\t\t\t\t\t$product_name = $license_rule['info']['product_name'];\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( ! empty( $info['child_id'] ) ) {\n\n\t\t\t\t\t\tif ( ! empty( $license_rule['info']['children'][ $info['child_id'] ]['name'] ) ) {\n\n\t\t\t\t\t\t\t$product_name .= ' ' . $license_rule['info']['children'][ $info['child_id'] ]['name'];\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( isset( $license_rule['info']['children'][ $info['child_id'] ]['activation_limit'] ) ) {\n\n\t\t\t\t\t\t\t$activation_limit = $license_rule['info']['children'][ $info['child_id'] ]['activation_limit'];\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( isset( $license_rule['info']['children'][ $info['child_id'] ]['expiry'] ) ) {\n\n\t\t\t\t\t\t\t$expiry = $license_rule['info']['children'][ $info['child_id'] ]['expiry'];\n\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif ( isset( $license_rule['info']['activation_limit'] ) ) {\n\n\t\t\t\t\t\t\t$activation_limit = $license_rule['info']['activation_limit'];\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( isset( $license_rule['info']['expiry'] ) ) {\n\n\t\t\t\t\t\t\t$expiry = $license_rule['info']['expiry'];\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t} // End if().\n\t\t\t} // End foreach().\n\n\t\t\t$this->items[] = array(\n\t\t\t\t'id' => isset( $item['id'] ) ? $item['id'] : '',\n\t\t\t\t'user_id' => isset( $item['user_id'] ) ? $item['user_id'] : '',\n\t\t\t\t'user_name' => isset( $info['user_name'] ) ? $info['user_name'] : '',\n\t\t\t\t'product_name' => $product_name,\n\t\t\t\t'product_id' => isset( $item['product_id'] ) ? $item['product_id'] : '',\n\t\t\t\t'order_id' => isset( $info['order_id'] ) ? $info['order_id'] : '',\n\t\t\t\t'activations' => empty( $activation_limit ) ? __( 'unlimited', 'tuxedo-software-updater' ) : count( isset( $info['activations'] ) ? $info['activations'] : array() ) . ' / ' . $activation_limit,\n\t\t\t\t'expires' => isset( $item['created'] ) ? ( empty( $expiry ) ? __( 'never', 'tuxedo-software-updater' ) : date( 'M j, Y', strtotime( $item['created'] . ' + ' . $expiry . ' days' ) ) ) : __( 'error', 'tuxedo-software-updater' ),\n\t\t\t\t'created' => isset( $item['created'] ) ? date( 'M j, Y', strtotime( $item['created'] ) ) : '',\n\t\t\t\t'modified' => isset( $item['modified'] ) ? date( 'M j, Y', strtotime( $item['modified'] ) ) . '<br>' . date( 'g:i a', strtotime( $item['modified'] ) ) : '',\n\t\t\t);\n\n\t\t}\n\n\t}", "private function prepareSimpleProduct() {\n if ($this->getSaverData()->isFirstPage()) {\n $this->setPrice();\n $this->setDownloadOptions();\n $this->setSKU();\n $this->setStockOptions();\n $this->setSoldIndividually();\n $this->setShippingOptions();\n $this->setPurchaseNote();\n $this->setEnableReviews();\n $this->setMenuOrder();\n }\n\n $this->setTags();\n $this->setAttributes();\n }", "public function getQuoteDetails()\n {\n $types = [\n ['value' => 'Full Kitchen', 'text' => 'Full Kitchen'],\n ['value' => 'Cabinet Only', 'text' => 'Cabinet Only'],\n ['value' => 'Cabinet Small Job', 'text' => 'Cabinet Small Job'],\n ['value' => 'Cabinet and Install', 'text' => 'Cabinet and Install'],\n ['value' => 'Granite Only', 'text' => 'Granite Only'],\n ];\n if (Auth::user()->id == 5 || Auth::user()->id == 1)\n {\n $types[] = ['value' => 'Builder', 'text' => 'Builder'];\n }\n $type = Editable::init()->id(\"quote_type\")->placement('right')->type('select')->title(\"Quote Type\")\n ->linkText($this->quote->type)\n ->source($types)->url(\"/quote/{$this->quote->id}/type/liveupdate\")->render();\n\n if (!$this->quote->title)\n {\n $this->quote->title = \"Main Quote\";\n }\n $title = Editable::init()->id(\"quote_title\")->placement('right')->type('text')->title(\"Title\")\n ->linkText($this->quote->title)\n ->url(\"/quote/{$this->quote->id}/title/liveupdate\")->render();\n $markup = Editable::init()->id(\"quote_markup\")->placement('right')->type('text')->title(\"Markup Percentage\")\n ->linkText($this->quote->markup)\n ->url(\"/quote/{$this->quote->id}/markup/liveupdate\")->render();\n\n $rows = [];\n $rows[] = ['Quote Type:', $type];\n $rows[] = ['Title (Description)', $title];\n if ($this->quote->type == 'Full Kitchen')\n {\n $rows[] = ['Customer Picking Slab:', $this->quote->picking_slab];\n }\n if ($this->quote->type == 'Builder')\n {\n $rows[] = ['Frugal Markup Percentage:', $markup];\n }\n if (isset($this->meta['finance']))\n {\n switch ($this->meta['finance']['type'])\n {\n case 'all':\n $type = \"100% Financing Option for \" . $this->meta['finance']['terms'] . \" months\";\n break;\n case 'partial':\n\n $type = \"Partial financing Option putting $\" . $this->meta['finance']['downpayment'] . \" down\n with \";\n if (isset($this->meta['finance']['down_cash']) && $this->meta['finance']['down_cash'] > 0)\n {\n $type .= '$' . $this->meta['finance']['down_cash'] . \" in cash, \";\n }\n if (isset($this->meta['finance']['down_credit']) && $this->meta['finance']['down_credit'] > 0)\n {\n $type .= '$' . $this->meta['finance']['down_credit'] . \" in cash, \";\n }\n $type = substr($type, 0, -2);\n $type .= \" and financing for \" . $this->meta['finance']['terms'] . \" months\";\n break;\n case 'none':\n $type = \"No financing paying \";\n if (isset($this->meta['finance']['method']) && $this->meta['finance']['method'] == 'split')\n {\n if (isset($this->meta['finance']['no_cash']) && $this->meta['finance']['no_cash'] > 0)\n {\n $type .= \"$\" . number_format($this->meta['finance']['no_cash'], 2) . \" in cash, \";\n }\n if (isset($this->meta['finance']['no_credit']) && $this->meta['finance']['no_credit'] > 0)\n {\n $type .= \"$\" . number_format($this->meta['finance']['no_credit'], 2) . \" in credit, \";\n }\n $type = substr($type, 0, -2);\n }\n else\n {\n $type = \"No finance using \" . $this->meta['finance']['method'] . \" for payment\";\n }\n break;\n default:\n $type = \"Financing Option Needed\";\n }\n $rows[] = ['Financing Options', $type];\n }\n\n $table = Table::init()->rows($rows)->render();\n $panel = Panel::init('primary')\n ->header(\"Quote Details <small style='color:#fff'>Quote Type and Cabinet Information</small>\")\n ->content($table)->render();\n return $panel;\n }", "protected function _prepareCustomerQuote()\n {\n $quote = $this->getQuote();\n $billing = $quote->getBillingAddress();\n $shipping = $quote->isVirtual() ? null : $quote->getShippingAddress();\n\n $customer = $this->getCustomerSession()->getCustomer();\n if (!$billing->getCustomerId() || $billing->getSaveInAddressBook()) {\n $customerBilling = $billing->exportCustomerAddress();\n $customer->addAddress($customerBilling);\n $billing->setCustomerAddress($customerBilling);\n }\n\n if ($shipping && !$shipping->getSameAsBilling()\n && (!$shipping->getCustomerId() || $shipping->getSaveInAddressBook())\n ) {\n $customerShipping = $shipping->exportCustomerAddress();\n $customer->addAddress($customerShipping);\n $shipping->setCustomerAddress($customerShipping);\n }\n\n if (isset($customerBilling) && !$customer->getDefaultBilling()) {\n $customerBilling->setIsDefaultBilling(true);\n }\n\n if ($shipping && isset($customerShipping) && !$customer->getDefaultShipping()) {\n $customerShipping->setIsDefaultShipping(true);\n } else if (isset($customerBilling) && !$customer->getDefaultShipping()) {\n $customerBilling->setIsDefaultShipping(true);\n }\n\n $quote->setCustomer($customer);\n }", "public function fetchPrepInstructions()\n {\n if (! array_key_exists('SellerSKUList.Id.1', $this->options) &&\n ! array_key_exists('ASINList.Id.1', $this->options)) {\n $this->log('Product IDs must be set in order to get prep instructions!', 'Warning');\n\n return false;\n }\n\n if (! array_key_exists('ShipToCountryCode', $this->options)) {\n $this->log('Country Code must be set in order to get prep instructions!', 'Warning');\n\n return false;\n }\n\n $this->preparePrep();\n\n $url = $this->urlbase.$this->urlbranch;\n\n $query = $this->genQuery();\n\n $path = $this->options['Action'].'Result';\n if ($this->mockMode) {\n $xml = $this->fetchMockFile();\n } else {\n $response = $this->sendRequest($url, ['Post'=>$query]);\n\n if (! $this->checkResponse($response)) {\n return false;\n }\n\n $xml = simplexml_load_string($response['body']);\n }\n\n $this->parseXml($xml->$path);\n }", "public function prepare_items() {\n\n\t\t$columns = $this->get_columns();\n\t\t$hidden = get_hidden_columns( $this->screen );\n \t\t$sortable = $this->get_sortable_columns();\n \t\t$this->_column_headers = array($columns, $hidden, $sortable);\n \t\t//$this->_column_headers = $this->get_column_info();\n\t\t/** Process bulk action */\n\t\t$this->process_bulk_action();\n\n\t\t$per_page = $this->get_items_per_page( 'transactions_per_page', 10 );\n\t\t$current_page = $this->get_pagenum();\n\t\t$total_items = self::record_count();\n\n\t\t$this->set_pagination_args( array(\n\t\t\t'total_items' => $total_items, //WE have to calculate the total number of items\n\t\t\t'per_page' => $per_page //WE have to determine how many items to show on a page\n\t\t));\n\n\t\t$this->items = self::get_customers( $per_page, $current_page );\n\t}", "public function queryFromPreliminary(QueryServiceQuotesRequest $request)\n {\n $facilitator = $request->input('facilitator');\n $scheduledAt = $request->input('scheduled_at');\n $service = $request->input('service', 'all'); // the specific service rate to query - defaults to `all`\n $serviceType = $request->input('service_type'); // the specific type of service rate to query\n $isCashOnDelivery = $request->has('cod');\n $currency = $request->has('currency');\n $totalDistance = $request->input('distance');\n $totalTime = $request->input('time');\n $pickup = $request->or(['payload.pickup', 'pickup']);\n $dropoff = $request->or(['payload.dropoff', 'dropoff']);\n $return = $request->or(['payload.return', 'return']);\n $waypoints = $request->or(['payload.waypoints', 'waypoints'], []);\n $entities = $request->or(['payload.entities', 'entities']);\n $single = $request->boolean('single');\n $isRouteOptimized = $request->boolean('is_route_optimized', true);\n\n // store preliminary data in service quotes meta\n $preliminaryData = [\n 'pickup' => $pickup,\n 'dropoff' => $dropoff,\n 'return' => $return,\n 'waypoints' => $waypoints,\n 'entities' => $entities,\n 'cod' => $isCashOnDelivery,\n 'currency' => $currency\n ];\n\n $requestId = ServiceQuote::generatePublicId('request');\n $serviceQuotes = [];\n\n if (Utils::isNotScalar($pickup)) {\n $pickup = Place::createFromMixed($pickup);\n }\n\n if (Utils::isNotScalar($dropoff)) {\n $dropoff = Place::createFromMixed($dropoff);\n }\n\n if (Utils::isPublicId($pickup)) {\n $pickup = Place::where('public_id', $pickup)->first();\n }\n\n if (Utils::isPublicId($dropoff)) {\n $dropoff = Place::where('public_id', $dropoff)->first();\n }\n\n // convert waypoints to place instances\n $waypoints = collect($waypoints)->mapInto(Place::class);\n $entities = collect($entities)->mapInto(Entity::class);\n\n // should all be Place like\n $waypoints = collect([$pickup, ...$waypoints, $dropoff])->filter();\n\n // if facilitator is an integrated partner resolve service quotes from bridge\n if ($facilitator && Utils::isIntegratedVendorId($facilitator)) {\n $integratedVendor = IntegratedVendor::where('company_uuid', session('company'))->where(function ($q) use ($facilitator) {\n $q->where('public_id', $facilitator);\n $q->orWhere('provider', $facilitator);\n })->first();\n\n if ($integratedVendor) {\n try {\n /** @var \\Fleetbase\\Models\\ServiceQuote $serviceQuote */\n $serviceQuote = $integratedVendor->api()->setRequestId($requestId)->getQuoteFromPreliminaryPayload($waypoints, $entities, $serviceType, $scheduledAt, $isRouteOptimized);\n } catch (\\Exception $e) {\n return response()->json([\n 'errors' => [$e->getMessage()]\n ], 400);\n }\n }\n\n // set preliminary data to meta\n $serviceQuote->updateMeta('preliminary_data', $preliminaryData);\n\n // send single quote back\n if ($single) {\n return new ServiceQuoteResource($serviceQuote);\n }\n\n if (!is_array($serviceQuote)) {\n $serviceQuote = [$serviceQuote];\n }\n\n return ServiceQuoteResource::collection($serviceQuote);\n }\n\n // if no total distance recalculate totalDistance and totalTime based on waypoints collected\n if (!$totalDistance) {\n $matrix = Utils::distanceMatrix([$waypoints->first()], $waypoints->skip(1));\n\n // set totalDistance and totalTime\n $totalDistance = $matrix->distance ?? 0;\n $totalTime = $matrix->time ?? 0;\n }\n\n // if quote for single service\n if ($service !== 'all') {\n $serviceRate = ServiceRate::where('uuid', $service)->first();\n $serviceQuotes = collect();\n\n if ($serviceRate) {\n [$subTotal, $lines] = $serviceRate->quoteFromPreliminaryData($entities, $waypoints, $totalDistance, $totalTime, $isCashOnDelivery);\n\n $quote = ServiceQuote::create([\n 'request_id' => $requestId,\n 'company_uuid' => $serviceRate->company_uuid,\n 'service_rate_uuid' => $serviceRate->uuid,\n 'amount' => $subTotal,\n 'currency' => $serviceRate->currency,\n ]);\n\n // set preliminary data to meta\n $quote->updateMeta('preliminary_data', $preliminaryData);\n\n $items = $lines->map(function ($line) use ($quote) {\n return ServiceQuoteItem::create([\n 'service_quote_uuid' => $quote->uuid,\n 'amount' => $line['amount'],\n 'currency' => $line['currency'],\n 'details' => $line['details'],\n 'code' => $line['code'],\n ]);\n });\n\n $quote->setRelation('items', $items);\n $serviceQuotes->push($quote);\n\n if ($single) {\n return new ServiceQuoteResource($quote);\n }\n\n return ServiceQuoteResource::collection($serviceQuotes);\n }\n }\n\n // get all service rates\n $serviceRates = ServiceRate::getServicableForPlaces(\n $waypoints,\n $serviceType,\n $currency,\n function ($query) use ($request) {\n $query->where('company_uuid', $request->session()->get('company'));\n }\n );\n $serviceQuotes = collect();\n\n // calculate quotes\n foreach ($serviceRates as $serviceRate) {\n [$subTotal, $lines] = $serviceRate->quoteFromPreliminaryData($entities, $waypoints, $totalDistance, $totalTime, $isCashOnDelivery);\n\n $quote = ServiceQuote::create([\n 'request_id' => $requestId,\n 'company_uuid' => $serviceRate->company_uuid,\n 'service_rate_uuid' => $serviceRate->uuid,\n 'amount' => $subTotal,\n 'currency' => $serviceRate->currency,\n ]);\n\n // set preliminary data to meta\n $quote->updateMeta('preliminary_data', $preliminaryData);\n\n $items = $lines->map(function ($line) use ($quote) {\n return ServiceQuoteItem::create([\n 'service_quote_uuid' => $quote->uuid,\n 'amount' => $line['amount'],\n 'currency' => $line['currency'],\n 'details' => $line['details'],\n 'code' => $line['code'],\n ]);\n });\n\n $quote->setRelation('items', $items);\n $serviceQuotes->push($quote);\n }\n\n // if single quotation requested\n if ($single) {\n // find the best quotation\n $bestQuote = $serviceQuotes->sortBy('amount')->first();\n\n return new ServiceQuoteResource($bestQuote);\n }\n\n return ServiceQuoteResource::collection($serviceQuotes);\n }", "function prepare()\r\n\t{\r\n\t\treturn parent::prepare();\r\n\t}", "function createPackage() {\n\n $sql = sprintf(\"INSERT INTO packages_new (name,\n \t\t\t\t\t\t\t\t\t\tprice_per_month,\n \t\t\t\t\t\t\t\t\t\tprice_per_year,\n \t\t\t\t\t\t\t\t\t\tis_agency_or_builder\t\n \t\t\t\t\t\t\t\t\t) VALUES ('%s',\n \t\t\t\t\t\t\t\t\t'%s',\n \t\t\t\t\t\t\t\t\t'%s',\n \t\t\t\t\t\t\t\t\t%d \n )\",\n \t\t\t\t\t\t\t\t\t\t$this->package_name,\n \t\t\t\t\t\t\t\t\t\t$this->price_per_month,\n \t\t\t\t\t\t\t\t\t\t$this->price_per_year,\n \t\t\t\t\t\t\t\t\t\t$this->is_agency_or_builder \t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t);\n $this->conn->setsql($sql);\n $this->package_id = $this->conn->insertDB();\n\n if($this->conn->error) {\n for(reset($this->conn->error); $key = key($this->conn->error); next($this->conn->error)) {\n $this->Error[\"SQL ERROR ClssCmpnCrt-\".$key] = $this->conn->error[$key];\n }\n return false;\n }\n\n \n $sql = sprintf(\"SELECT id FROM supplements_new WHERE in_package = 1 AND is_agency_or_builder = %d \", $this->is_agency_or_builder);\n $this->conn->setsql($sql);\n $this->conn->getTableRows();\n if($this->conn->numberrows > 0 && $this->package_id > 0)\n {\n \tfor ($n=0;$n<$this->conn->numberrows;$n++)\n \t{\n\t\t $sql = sprintf(\"INSERT INTO packages_supliments_new (package_id,\n\t\t \t\t\t\t\t\t\t\t\t \tsuplement_id,\n\t\t \t\t\t\t\t\t\t\t\t \tvalue \t\t\t\t\t\t\t\t\t\t\n\t\t \t\t\t\t\t\t\t\t\t) VALUES (%d,\n\t\t \t\t\t\t\t\t\t\t\t%d,\n\t\t \t\t\t\t\t\t\t\t\t'%s'\n\t\t )\",\n\t\t \t\t\t\t\t\t\t\t\t\t$this->package_id,\n\t\t \t\t\t\t\t\t\t\t\t\t$this->conn->result[$n]['id'],\n\t\t \t\t\t\t\t\t\t\t\t\t'0' \t\t\t\t\t\t\t\t\t\t\n\t\t \t\t\t\t\t\t\t\t\t);\n\t\t $this->conn->setsql($sql);\n\t\t $this->conn->insertDB();\n\t\t\n\t\t if($this->conn->error) {\n\t\t for(reset($this->conn->error); $key = key($this->conn->error); next($this->conn->error)) {\n\t\t $this->Error[\"SQL ERROR ClssCmpnCrt-\".$key] = $this->conn->error[$key];\n\t\t }\n\t\t return false;\n\t\t }\n\t \n \t}\n \t\n }\n\n \n \n \n return true;\n }", "function bq_get_quotes() {\n\t/** These are quotes from A P J Abul Kalam */\n $quotes=[\n \"“স্বপ্ন বাস্তবায়ন না হওয়া পর্যন্ত তোমাকে স্বপ্ন দেখে যেতে হবে” – Abdul Kalam\",\n \"“স্বপ্ন সেটা নয় যেটা তুমি ঘুমিয়ে ঘুমিয়ে দেখো | স্বপ্ন হলো সেটাই যা পূরণের অদম্য ইচ্ছা তোমায় ঘুমাতে দেবে না” – Abdul Kalam\",\n \"“একটা কথা পরিষ্কার, সৃষ্টিকর্তা তাদেরই সহায় থাকেন, যারা কঠোর পরিশ্রম করেন” – Abdul Kalam\",\n \"“যদি সূর্যের মতো উজ্জ্বল হতে চাও, তাহলে তোমাকেই প্রথমে সূর্যের মত পুড়তে হবে” – Abdul Kalam\",\n \"“সফলতার গল্পে কেবল একটা বার্তা থাকে কিন্তু ব্যর্থতার গল্পে সফল হওয়ার উপায় থাকে” – Abdul Kalam\",\n \"“স্বপ্ন দেখতে হবে, স্বপ্ন থেকেই চিন্তার জন্ম হয় আর চিন্তা জন্ম দেয় কাজের” – Abdul Kalam \",\n \"“আমরা শুধু সাফল্যের উপরই গড়ি না, আমরা অসফলতার উপরেও গড়ি” – Abdul Kalam\",\n \"“জটিল কাজে বেশি আনন্দ পাওয়া যায়, তাই সফলতার আনন্দ পাওয়ার জন্য মানুষের কাজ জটিল হওয়া উচিত” – Abdul Kalam\",\n \"“ব্যর্থতা নামক রোগের সবথেকে ভালো অসুধ হলো আত্মবিশ্বাস আর কঠোর পরিশ্রম, এটা আপনাকে একজন সফল মানুষ করে তুলবে” – Abdul Kalam \",\n \"“নির্দিষ্ট লক্ষ্য, ক্রমাগত জ্ঞান সঞ্চয় করা, কঠোর পরিশ্রম ও হার না মানা মনোভাব – এই চারটি জিনিস মেনে চললে যেকোনো কিছুকেই লাভ করা যেতে পারে” – Abdul Kalam\"\n ];\n\n\t// And then randomly choose a line.\n\tprintf(wptexturize( $quotes[ mt_rand( 0, count( $quotes ) - 1 ) ] ));\n}", "abstract public function prepareToStore();", "function prepare()\n\t{\n\t\treturn null;\n\t}", "function prepare()\n\t{\n\t\treturn null;\n\t}", "public function __prepare()\n {\n $config = $this->objectManager->get(\\Magento\\Mtf\\Config\\DataInterface::class);\n // Prepare config data\n $configData['dbHost'] = $config->get('install/0/host/0');\n $configData['dbUser'] = $config->get('install/0/user/0');\n $configData['dbPassword'] = $config->get('install/0/password/0');\n $configData['dbName'] = $config->get('install/0/dbName/0');\n $configData['baseUrl'] = $config->get('install/0/baseUrl/0');\n $configData['admin'] = $config->get('install/0/backendName/0');\n\n return ['configData' => $configData];\n }", "public function prepare($data)\n {\n $response = array('name' => $data['title']);\n \n if (!empty($data['short_description'])) {\n $response['short_description'] = $data['short_description'];\n }\n \n if (!empty($data['description'])) {\n $response['description'] = $data['description'];\n }\n \n if (!empty($data['categories'])) {\n $categories = array();\n foreach ($data['categories'] as $categoryId) {\n $categories[] = array('id' => $categoryId);\n }\n \n $response['categories'] = $categories;\n }\n \n $images = array(); $position = 0;\n foreach ($data['images'] as $image) {\n $images[] = array(\n 'src' => $image,\n 'position' => $position++\n );\n }\n $response['images'] = $images;\n\n \n $isVariable = (!empty($data['variations']));\n $response['type'] = ($isVariable) ? 'variable' : 'simple';\n \n if (!$isVariable) {\n $response['regular_price'] = $data['price_low'];\n if (!empty($data['special_price_low'])) {\n $response['sale_price'] = $data['special_price_low'];\n }\n }\n\n $attributes = $variationAttributeTitles = array(); $position = 0;\n foreach ($data['attributes'] as $attribute) {\n $attributes[] = array(\n 'name' => $attribute['title'],\n 'position' => $position++,\n 'visible' => true,\n 'options' => explode('|', $attribute['value']),\n 'variation' => ($attribute['is_variation'])\n );\n \n if ($attribute['is_variation']) {\n $variationAttributeTitles[] = $attribute['title'];\n }\n }\n $response['attributes'] = $attributes;\n \n if ($isVariable) {\n $variations = array();\n foreach ($data['variations'] as $variation) {\n $newVariation = array(\n 'regular_price' => $variation['advertised'],\n 'image' => array(\n array(\n 'src' => $variation['image'],\n 'position' => 0\n )\n )\n );\n \n if (!empty($variation['final_price'])) {\n $newVariation['sale_price'] = $variation['final_price'];\n }\n \n $attributes = array(); \n $attributeValues = explode('|', $variation['name']);\n foreach ($variationAttributeTitles as $key => $variationAttributeTitle) {\n $attributes[] = array(\n 'name' => $variationAttributeTitle,\n 'option' => $attributeValues[$key]\n );\n }\n \n $newVariation['attributes'] = $attributes;\n $variations[] = $newVariation;\n }\n \n $response['variations'] = $variations;\n }\n \n return $response;\n }", "public function prepare(){\n\t\treturn array(\n\t\t\t'creationData' => $this->creationData->prepare(),\n\t\t\t'modificationHistory' => $this->modificationHistory->prepare() );\t\t\n\t}", "public function prepare_items() {\r\n\t\t$this->_column_headers = $this->get_column_info();\r\n\r\n\t\t/** Process bulk action */\r\n\t\t$this->process_bulk_action();\r\n\r\n\t\t$per_page = $this->get_items_per_page( 'customers_per_page', 5 );\r\n\t\t$current_page = $this->get_pagenum();\r\n\t\t$total_items = self::record_count();\r\n\r\n\t\t$this->set_pagination_args( [\r\n\t\t\t'total_items' => $total_items,\r\n\t\t\t'per_page' => $per_page\r\n\t\t] );\r\n\r\n\t\t$this->items = self::get_customers( $per_page, $current_page );\r\n\t}", "public function prepare() {}", "public function prepare() {}", "public function prepareImport();", "public function prepare_items() {\n\t\t/** Process bulk action */\n\t\t$this->process_bulk_action();\n\n\t\t$columns = $this->get_columns();\n $hidden = $this->get_hidden_columns();\n $sortable = $this->get_sortable_columns();\n $this->_column_headers = array($columns, $hidden, $sortable);\n\n\t\t$per_page = $this->get_items_per_page( 'posts_per_page', 20 );\n\t\t$current_page = $this->get_pagenum();\n\t\t$total_items = self::record_count();\n\n\t\t$this->set_pagination_args( [\n\t\t\t'total_items' => $total_items, //WE have to calculate the total number of items\n\t\t\t'per_page' => $per_page //WE have to determine how many items to show on a page\n\t\t] );\n\n\t\t$this->items = self::get_posts( $per_page, $current_page );\n\t}", "public function createQuote()\n\t{\n\t\t$this->setType($_POST['frmquotetype']);\n\t\t$this->setDate($_POST['frmquotedate']);\n\t\t$this->setStatus('Open');\n\t\t$this->setJobName($_POST['frmjobname']);\n\t\t$this->setJobAddress($_POST['frmjobaddress']);\n\t\t$this->setJobCity($_POST['frmjobcity']);\n\t\t$this->setJobZipcode($_POST['frmjobzipcode']);\n\t\t$this->setAttention($_POST['frmattn']);\n\t\t// Here we are going to post the tax rate and turn it into a float.\n\t\t$unformatted_tax_rate = $_POST['frmtaxrate'];\n\t\t$this->setTaxRate((float)$unformatted_tax_rate);\n\t\t$this->setCostBeforeTax($_POST['cartBeforeTaxCost']);\n\t\t$this->setTotalCost($_POST['cartTotalCost']);\n\t\t$this->setSalesTax($_POST['cartTax']);\n\t\t$this->setMonthlyTotal($_POST['cartMonthlyTotal']);\n\t\t$this->setDeliveryTotal($_POST['cartDeliveryTotal']);\n\t\t$this->setHidden(null);\n\n\t\t// Need to insert the new order into the database.\n\t\t$this->getDB()->insert('quotes', [\n\t\t\t\t'quote_customer' \t\t=> $this->getCustomer(),\n\t\t\t\t'quote_customer_id' \t=> $this->getCustomerId(),\n\t\t\t\t'quote_date' \t\t\t=> $this->getDate(),\n\t\t\t\t'quote_status' \t\t\t=> $this->getStatus(),\n\t\t\t\t'quote_type' \t\t\t=> $this->getType(),\n\t\t\t\t'job_name' \t\t\t\t=> $this->getJobName(),\n\t\t\t\t'job_city' \t\t\t\t=> $this->getJobCity(),\n\t\t\t\t'job_address' \t\t\t=> $this->getJobAddress(),\n\t\t\t\t'job_zipcode' \t\t\t=> $this->getJobZipcode(),\n\t\t\t\t'attn' \t\t\t\t\t=> $this->getAttention(),\n\t\t\t\t'tax_rate' \t\t\t\t=> $this->getTaxRate(),\n\t\t\t\t'cost_before_tax' \t\t=> $this->getCostBeforeTax(),\n\t\t\t\t'total_cost' \t\t\t=> $this->getTotalCost(),\n\t\t\t\t'sales_tax' \t\t\t=> $this->getSalesTax(),\n\t\t\t\t'monthly_total' \t\t=> $this->getMonthlyTotal(),\n\t\t\t\t'delivery_total'\t\t=> $this->getDeliveryTotal(),\n\t\t\t\t'hidden'\t\t\t\t=> $this->getHidden()\n\t\t\t]);\n\n\t\t// If properly inserted, grab the ID, else throw error.\n\t\tif($this->getDB()->lastId() != null)\n\t\t{\n\t\t\t$this->id = $this->getDB()->lastId();\n\t\t} \n\t\telse \n\t\t{\n\t\t\tthrow new Exception(\"There was an error inserting the quote into the database.\");\n\t\t}\n\t\t\n\t}", "public function insertQuotedProducts()\n\t{\n\t\t// Insert each product into the database.\n\t\t$i = 0;\n\t\twhile ($i < $_POST['itemCount'])\n\t\t{\n\t\t\t/*\n\t\t\t * Here we will decode the json and create each product and insert it into the\n\t\t\t * product orders database.\n\t\t\t */\n\t\t\t$post_product = json_decode($_POST['product'.$i], true);\n\t\t\t$new_product = new Product($post_product['id']);\n\t\t\t$new_product->setProductQuantity($post_product['qty']);\n\t\t\t$new_product->setProductCost($post_product['cost']);\n\t\t\t$i++;\n\n\t\t\t// Insert the data into the database.\n\t\t\t$this->getDB()->insert('product_orders',array('quote_id'=>$this->id,\n\t\t\t\t\t\t\t'product_type'=>$new_product->getItemType(),\n\t\t\t\t\t\t\t'product_msn'=>$new_product->getModShortName(),\n\t\t\t\t\t\t\t'product_cost'=>$new_product->getProductCost(),\n\t\t\t\t\t\t\t'product_qty'=>$new_product->getProductQuantity(),\n\t\t\t\t\t\t\t'product_name'=>$new_product->getModName(),\n\t\t\t\t\t\t\t'product_id'=>$new_product->getId()));\n\n\t\t\t// Check to see if the data was inserted into the db properly, else throw exception.\n\t\t\tif($this->getDB()->lastId() == null)\n\t\t\t{\n\t\t\t\tthrow new Exception('The database did not insert products properly.');\n\t\t\t}\n\t\t}\n\t}", "public function prepare();", "public function prepare();", "public function prepare_items() {\n\n\t\t// Roll out each part.\n\t\t$columns = $this->get_columns();\n\t\t$hidden = $this->get_hidden_columns();\n\t\t$sortable = $this->get_sortable_columns();\n\t\t$dataset = $this->table_data();\n\n\t\t// Check for the action key value to filter.\n\t\tif ( ! empty( $_REQUEST['wbr-review-filter'] ) ) { // WPCS: CSRF ok.\n\t\t\t$dataset = $this->maybe_filter_dataset( $dataset );\n\t\t}\n\n\t\t// Handle our sorting.\n\t\tusort( $dataset, array( $this, 'sort_data' ) );\n\n\t\t// Load up the pagination settings.\n\t\t$paginate = 20;\n\t\t$item_count = count( $dataset );\n\t\t$current = $this->get_pagenum();\n\n\t\t// Set my pagination args.\n\t\t$this->set_pagination_args( array(\n\t\t\t'total_items' => $item_count,\n\t\t\t'per_page' => $paginate,\n\t\t\t'total_pages' => ceil( $item_count / $paginate ),\n\t\t));\n\n\t\t// Slice up our dataset.\n\t\t$dataset = array_slice( $dataset, ( ( $current - 1 ) * $paginate ), $paginate );\n\n\t\t// Do the column headers.\n\t\t$this->_column_headers = array( $columns, $hidden, $sortable );\n\n\t\t// Make sure we have the single action running.\n\t\t$this->process_single_action();\n\n\t\t// Make sure we have the bulk action running.\n\t\t$this->process_bulk_action();\n\n\t\t// Make sure we have the status change.\n\t\t$this->process_status_change();\n\n\t\t// And the result.\n\t\t$this->items = $dataset;\n\t}", "protected function prepareDetailsTables()\n\t{\n\t}", "function populate_from_request();", "public function prepareResponse();", "public function quote_request_new() {\n\t /*\t$step_one_sidebar = '<div class=\"col-md-2\">\n\t <div class=\"sidebar\">\n\t <h3>Talk TO A REPRESENTATIVE</h3>\n\t <div class=\"selection-container\">\n\t <ul>\n\t <li>1 (877) 589-2214 (US/Canada)<br/><a href=\"mailto:[email protected]\">[email protected]</a></li>\n\t </ul>\n\t \n\t </div>\n\t </div>\n\t </div>'; */ \n\t\t$step_four = 'test';\n\t //return $this->new_product_finder('quote_request', NULL, $step_four);\n\t\t$path = \\Drupal::request()->getpathInfo();\n $arg = explode('/', $path);\t\t\n $cur_page = $arg[1];\n\t\t\n\t\t$pid = $_GET['pid'];\n\t\t\n\t\t$newrfq = $fpage;\n\t\t//$newrfq = $step_four;\n\t\t\n\t\treturn array(\n\t '#theme' => 'quote_request',\n\t\t '#cur_page' => $cur_page,\n\t\t '#pid' => $pid,\n\t '#quote_related_products' => $step_four,\n\t );\n \t}", "function prepareData()\r\n\t{\r\n\t\treturn true;\r\n\t}", "public function addProduct(Request $request)\n {\n $user = auth()->user();\n $returnResult = [];\n $success = false;\n $today = date(\"Y-m-d\");\n if ($request->place) {\n if (!$request->quoteId) {\n $quote_number = DB::table('quotes')->max('quote_number');\n if ($quote_number === 0) {\n $org = \\App\\Organization::find($user->organization_id);\n $quote_number = --$org->quote_number;\n }\n\n $accountData = DB::table('accounts')\n ->select('accounts.id as account_id',\n 'record_types.tax')\n ->join('document_types', 'document_types.id', '=', 'accounts.document_type_id')\n ->join('record_types', 'record_types.id', '=', 'document_types.record_type_id')\n ->join('locations', 'locations.id', '=', 'accounts.location_id')\n ->join('users', 'users.id', '=', 'accounts.created_by_id')\n ->where('users.organization_id', $user->organization_id)\n ->where('locations.id', $user->locationId)\n ->where('quotes.id', $id)->first();\n\n $locationId = $request->locationId;\n $quote = new \\App\\Quote;\n $quote->account_id=$accountData->account_id;\n $quote->location_id=$locationId;\n $quote->quote_number=++$quote_number;\n $quote->aditional_detail=$request->aditional_detail;\n $quote->quote_date=$request->quote_date;\n $quote->tax=$accountData->tax;\n $quote->created_by_id=$user->id;\n $quote->stage_id=2;\n $quote->save();\n }\n $quoteId = $request->quoteId ? $request->quoteId : $quote->id;\n if ($quoteId) {\n\n $quoteItem= new \\App\\QuoteItem;\n $quoteUser = \\App\\Quote::find($quoteId)->users;\n $quote = \\App\\Quote::find($quoteId);\n if ($user->organization_id == $quoteUser->organization_id) {\n $quoteItem->quote_id=$quoteId;\n $quoteItem->product_id=$request->id;\n $quoteItem->quantity=$request->quantity;\n $quoteItem->description=$request->description;\n $quoteItem->place_id=$request->place;\n $quoteItem->category_id=$request->category;\n if ($request->price){\n $quoteItem->price=$request->price;\n }\n $quoteItem->package=0;\n if ($request->package === \"true\"){\n $quoteItem->package=1;\n \n $itemPackage = DB::table('quote_item_packages')\n ->where('quote_id', $quoteId)\n ->where('place_id', $request->place)\n ->where('category_id', $request->category)\n ->first();\n if (!$itemPackage) {\n $itemPackage = new \\App\\QuoteItemPackage;\n $itemPackage->quote_id=$quoteId;\n $itemPackage->place_id=$request->place;\n $itemPackage->category_id=$request->category;\n // $itemPackage->created_at = date('Y-m-d H:i:s');\n // $itemPackage->updated_at = date('Y-m-d H:i:s');\n $itemPackage->value=0;\n $itemPackage->save();\n }\n } else {\n if ($request->optional === \"true\" || $request->offer === \"true\"){\n if ($request->other) {\n $quoteItem->other = 0;\n }\n } else {\n $quoteItem->other=$request->other !== null ? $request->other : 0;\n }\n if ($request->optional === \"true\"){\n $quoteItem->optional=1;\n } else {\n $quoteItem->optional=0;\n }\n if ($request->offer === \"true\"){\n $quoteItem->offer=1;\n } else {\n $quoteItem->offer=0;\n }\n }\n if ($quote->stage_id === 2 && $quoteItem->save()) {\n $quote->aditional_detail=$request->aditional_detail;\n $quote->quote_date=$request->quote_date;\n $quote->updated_at=date('Y-m-d H:i:s');\n $quote->save();\n\n // $product = DB::table('categories')\n // ->select('categories.id')\n // ->join('places',\n // 'places.category_id', '=', 'categories.id')\n // ->join('users', 'users.id', '=', 'categories.created_by_id')\n // ->limit(1)\n // ->where('places.id', $request->place)\n // ->where('users.organization_id', $user->organization_id)->get();\n \\App\\QuoteItemCategory::updateOrCreate(\n ['quote_id' => $quoteId, 'category_id' => $request->category],\n ['description' => $request->descripcionCat]\n );\n $returnResult = $this->QuoteDetail($quoteItem->quote_id);\n $returnResult['quoteId'] = $quoteId;\n $success = true;\n } else {\n $returnResult['message'] = 'Error while adding item, please contact your administrator';\n }\n } else {\n $returnResult['message'] = 'You have no permissions on this record';\n }\n } else {\n $returnResult['message'] = 'Error while saving record, please contact your administrator';\n }\n } else {\n $returnResult['message'] = 'Debe seleccionar un lugar';\n }\n return response()->json(array('success' => $success, 'data'=>$returnResult));\n }", "private function prepareItems()\n {\n $attribute = $this->attribute;\n $items = $this->model->$attribute;\n if (!is_array($items)) {\n $items = [];\n }\n\n $this->_items = $items;\n }", "abstract protected function prepareData( $data );", "public function prepareFieldset();", "public function prepareData()\r\n\t{\r\n\r\n\t\t// Get title and encode it\r\n\t\tif (empty($this->title)) {\r\n\t\t\t$this->title = urlencode(urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8')));\r\n\t\t}\r\n\r\n\t\t// Get current post permalink and encode it\r\n\t\tif (empty($this->shared_url)) {\r\n\t\t\t$this->shared_url = get_permalink(get_the_ID());\r\n\t\t}\r\n\r\n\t\t// Get excerpt and format it for Twitter\r\n\t\tif (empty($this->tweet)) {\r\n\t\t\t$tweet = (strlen(get_the_excerpt()) > 140) ? substr(get_the_excerpt(), 0, 140) . '...' : get_the_excerpt();\r\n\t\t\t$this->tweet = $tweet . ' ' . $this->shared_url;\r\n\t\t}\r\n\t}", "function prepare_items() {\n global $wpdb, $_wp_column_headers;\n $screen = get_current_screen();\n\n /* -- Création de la requete -- */\n $table_name = $wpdb->prefix . \"funny_quotes\";\n $query=\"SELECT * FROM \".$table_name;\n\n /* -- Récuperation des colonnes a trier -- */\n\n $orderby = !empty($_GET[\"orderby\"]) ? mysql_real_escape_string($_GET[\"orderby\"]) : 'ASC';\n $order = !empty($_GET[\"order\"]) ? mysql_real_escape_string($_GET[\"order\"]) : '';\n if(!empty($orderby) & !empty($order)){ $query.=' ORDER BY '.$orderby.' '.$order; }\n\n /* -- Récuperation du nombre total de quote -- */\n \n $totalitems = $wpdb->query($query);\n\n //Nombre de quote par page\n $perpage = 10;\n //Gestion des pages\n $paged = !empty($_GET[\"paged\"]) ? mysql_real_escape_string($_GET[\"paged\"]) : '';\n \n if(empty($paged) || !is_numeric($paged) || $paged<=0 ){ $paged=1; }\n\n $totalpages = ceil($totalitems/$perpage);\n if(!empty($paged) && !empty($perpage)){\n $offset=($paged-1)*$perpage;\n $query.=' LIMIT '.(int)$offset.','.(int)$perpage;\n }\n\n $this->set_pagination_args( array(\n \"total_items\" => $totalitems,\n \"total_pages\" => $totalpages,\n \"per_page\" => $perpage,\n ) );\n\n /* — Gestions des colonnes — */\n $columns = $this->get_columns();\n $hidden = array();\n $sortable = $this->get_sortable_columns();\n $this->_column_headers = array($columns, $hidden, $sortable);\n\n /* -- Récupération des quotes -- */\n $this->items = $wpdb->get_results($query);\n }", "protected function getPreparedItemByProductId()\n {\n $order = $this->getOrder();\n $request = \\XLite\\Core\\Request::getInstance();\n $item = new \\XLite\\Model\\OrderItem;\n $item->setOrder($order);\n $item->setProduct(\\XLite\\Core\\Database::getRepo('XLite\\Model\\Product')->find($request->product_id));\n\n $attributes = $request->new;\n $attributes = reset($attributes);\n $attributeValues = array();\n if (!empty($attributes['attribute_values'])) {\n $attributeValues = $attributes['attribute_values'];\n }\n\n return array($item, $attributeValues);\n }", "function prepare()\r\n {\r\n return parent::prepare();\r\n }", "function prepare()\r\n {\r\n return parent::prepare();\r\n }", "function prepare()\r\n {\r\n return parent::prepare();\r\n }", "public function prepare_items() {\n\t\t$column = $this->get_columns();\n\t\t$hidden = array();\n\t\t$sortable = $this->get_sortable_columns();\n\n\t\t$this->_column_headers = array( $column, $hidden, $sortable );\n\n\t\t$per_page = 20;\n\t\t$current_page = $this->get_pagenum();\n\t\t$offset = ( $current_page - 1 ) * $per_page;\n\n\t\t$args = array(\n\t\t\t'number' => $per_page,\n\t\t\t'offset' => $offset,\n\t\t);\n\n\t\tif ( isset( $_REQUEST['orderby'] ) && isset( $_REQUEST['order'] ) ) {\n\t\t\t$args['orderby'] = $_REQUEST['orderby'];\n\t\t\t$args['order'] = $_REQUEST['order'];\n\t\t}\n\n\t\t$this->items = Persistence::get( $args );\n\n\t\t$this->set_pagination_args(\n\t\t\tarray(\n\t\t\t\t'total_items' => Persistence::count(),\n\t\t\t\t'per_page' => $per_page,\n\t\t\t)\n\t\t);\n\t}", "protected function _prep_args() {\n\t\t// this is the data prepared for binding.\n\t\t// these fields are ordered as they are in the table\n\t\t$args = array(\n\t\t\t'the_id' => $this->id,\n\t\t\t'date_created' => $this->date_created,\n\t\t\t'completed' => $this->completed,\n\t\t\t'template_id' => $this->template_id,\n\t\t);\n\n\t\treturn $args;\n\t}", "function prepare()\r\n {\r\n $url = '';\r\n $condtion='1';\r\n \r\n \t if(isset($_GET[\"brand\"])){\r\n \t \t$value = trim($_GET['brand']);\r\n \t \tif($value != \"\"){\r\n\t \t \t$condtion = sprintf(\"brand='%s'\",$value);\r\n\t \t \t$url = '&brand='.$value;\r\n \t \t}\r\n \t }\r\n \t \r\n \t if(isset($_GET[\"module\"])){\r\n \t \t$value = trim($_GET['module']);\r\n \t \tif($value != \"\"){\r\n\t \t \t$module = sprintf(\"series='%s'\",$value);\r\n\t \t \t$condtion = $condtion.' and '.$module;\r\n\t \t \t$url = $url.'&module='.$value;\r\n \t \t}\r\n \t }\r\n \t \r\n \t if(isset($_GET[\"part\"])){\r\n \t \t$value = trim($_GET['part']);\r\n \t \tif($value != \"\"){ \t \t\r\n\t \t \t$part = sprintf(\"module='%s'\",$value);\r\n\t \t \t$condtion = $condtion.' and '.$part;\r\n\t \t \t$url = $url.'&part='.$value;\r\n \t \t}\r\n \t }\r\n \t \r\n \t if(isset($_GET[\"key\"])){\r\n \t \t$value = trim($_GET[\"key\"]);\r\n \t \tif($value != \"\"){\r\n\t \t \t$condtion = $this->key_query($value,$url);\r\n\t \t \t//echo \"++++++++++\".$condtion;\r\n\t \t \t//$url = $url.'&part='.$value; \t \t\r\n \t \t}\r\n \t }\r\n \t $this->cond = $condtion;\r\n \t $this->pget = $url;\r\n \t $this->total = $this->getTotal($condtion);\r\n \t //echo \"++++++++++\".$condtion;\r\n }", "abstract protected function prepareVendorProductData(int $vendorProductId);", "abstract protected function prepareVendorProductData(int $vendorProductId);", "public function prepare_items()\n {\n $columns = $this->get_columns();\n $hidden = $this->get_hidden_columns();\n $sortable = $this->get_sortable_columns();\n $data = $this->table_data();\n usort( $data, array( &$this, 'sort_data' ) );\n $perPage = 10;\n $currentPage = $this->get_pagenum();\n $totalItems = count($data);\n $this->set_pagination_args( array(\n 'total_items' => $totalItems,\n 'per_page' => $perPage\n ) );\n $data = array_slice($data,(($currentPage-1)*$perPage),$perPage);\n $this->_column_headers = array($columns, $hidden, $sortable);\n $this->process_bulk_action();\n $this->items = $data;\n }", "function loadQuotationToWishlist($qid)\n {\n \t$result = $this->query(\"SELECT * FROM `\".$this->tblPrefix.$this->table.\"` WHERE client_id='\".$this->logUser.\"' and id='\".$qid.\"'\");\n\t$arr = $this->toArray($result[0]['content']) ;\n if($arr)\n {\n foreach ($arr as &$value) {\n $tostringarr[$n][0] = \t$value['id'];\n $tostringarr[$n][1] = \t$value['qty'];\n $n++;\n }\n $str = $this->toString($tostringarr);\n \n // Create the Quotation\n // Updated by Saliya Wijesinghe\n $thisTime=time();\n $thisQuoteId=\"RE:\".$result[0]['quotationid'];\n $this->query(\"INSERT INTO`\".$this->tblPrefix.$this->table.\"` (client_id,quotationid,title,content,amount,moddate,himage,cdetails,othertxt,status)\n VALUES ('\".$this->logUser.\"', '\".$thisQuoteId.\"', '\".$result[0]['title'].\"','\".$result[0]['content'].\"','\".$result[0]['amount'].\"',\n '\".$thisTime.\"','\".$result[0]['himage'].\"','\".$result[0]['cdetails'].\"','\".$result[0]['othertxt'].\"','open')\");\n\n // GetThe added record\n $newQuote = $this->query(\"SELECT id FROM `\".$this->tblPrefix.$this->table.\"` WHERE client_id='\".$this->logUser.\"' AND moddate='\".$thisTime.\"' AND content='\".$result[0]['content'].\"' AND quotationid='\".$thisQuoteId.\"'\");\n // Update the Wish list\n $result = $this->query(\"UPDATE `\".$this->tblPrefix.\"sys_support` SET content_wlist='\".$str.\"',wish_quote_link='\".$newQuote[0]['id'].\"' WHERE client_id='\".$this->logUser.\"'\");\n\n if($result) return $msg = array('SUC','QUOTE_RE_CREATED');\n \n }\n\t \t \n }", "public function updateQuoteDetail(Request $request)\n {\n $user = auth()->user();\n $returnResult = [];\n $success = false;\n if ($request->place) {\n $quoteItem = \\App\\QuoteItem::find($request->id);\n $quoteUser = \\App\\Quote::find($quoteItem->quote_id)->users;\n $quote = \\App\\Quote::find($quoteItem->quote_id);\n if ($user->organization_id == $quoteUser->organization_id) {\n $quoteItem->product_id=$request->productId;\n $quoteItem->quantity=$request->quantity !== null ? $request->quantity : 1;\n $quoteItem->description=$request->description;\n $quoteItem->place_id=$request->place;\n $quoteItem->category_id=$request->category;\n $quoteItem->package=0;\n $currentPlace = 0;\n $currentCategory = 0;\n if ($request->package === \"true\"){\n $quoteItem->package=1;\n \n $itemPackage = DB::table('quote_item_packages')\n ->where('quote_id', $quoteItem->quote_id)\n ->where('place_id', $request->place)\n ->where('category_id', $request->category)\n ->first();\n if (!$itemPackage) {\n $currentPlace = $itemPackage->place_id;\n $currentCategory = $itemPackage->category_id;\n $itemPackage = new \\App\\QuoteItemPackage;\n $itemPackage->quote_id=$quoteItem->quote_id;\n $itemPackage->place_id=$request->place;\n $itemPackage->category_id=$request->category;\n $itemPackage->value=0;\n $itemPackage->save();\n }\n } else {\n if ($request->optional === \"true\" || $request->offer === \"true\"){\n if ($request->other) {\n $quoteItem->other = 0;\n }\n } else {\n $quoteItem->other=$request->other !== null ? $request->other : 0;\n }\n if ($request->optional === \"true\"){\n $quoteItem->optional=1;\n } else {\n $quoteItem->optional=0;\n }\n if ($request->offer === \"true\"){\n $quoteItem->offer=1;\n } else {\n $quoteItem->offer=0;\n }\n\n }\n if ($quote->stage_id === 2 && $quoteItem->save()) {\n $quote->updated_at = date('Y-m-d H:i:s');\n $quote->save();\n $itemCategory = \\App\\QuoteItemCategory::find($request->itemCategory);\n $quoteDetail = DB::table('quote_items')\n ->join('quotes', 'quotes.id', '=', 'quote_items.quote_id')\n ->join('places', 'places.id', '=', 'quote_items.place_id')\n ->join('categories', 'categories.id', '=', 'quote_items.category_id')\n ->join('quote_item_categories', function ($join) {\n $join->on('quote_item_categories.category_id', '=', 'categories.id')\n ->on('quote_item_categories.quote_id', '=', 'quotes.id');\n })\n ->join('products', 'products.id', '=', 'quote_items.product_id')\n ->join('users', 'users.id', '=', 'quotes.created_by_id')\n ->select('quote_item_categories.id')\n ->where('users.organization_id', $user->organization_id)\n ->where('quote_item_categories.quote_id', $quoteItem->quote_id)\n ->where('quote_item_categories.category_id', $itemCategory->category_id)->first();\n if (!$quoteDetail && $request->category !== $itemCategory->category_id) {\n $itemCategory->delete();\n }\n \\App\\QuoteItemCategory::updateOrCreate(\n ['quote_id' => $quoteItem->quote_id, 'category_id' => $request->category],\n ['description' => $request->categoryDescription]\n );\n $tienePaquete = DB::select('SELECT v.id\n FROM quotes v\n INNER JOIN quote_items dv on dv.quote_id = v.id and dv.package = 1\n INNER JOIN quote_item_packages dp on dp.place_id = dv.place_id\n INNER JOIN users ON users.id = v.created_by_id\n WHERE dv.quote_id = ? AND dp.place_id = ?\n AND users.organization_id = ?',\n [$quoteItem->quote_id,$currentPlace,$user->organization_id]);\n $itemPackage = DB::table('quote_item_packages')\n ->select('quote_item_packages.id')\n ->join('quotes', 'quotes.id', '=', 'quote_item_packages.quote_id')\n ->join('users', 'users.id', '=', 'quotes.created_by_id')\n ->where('quote_item_packages.place_id', $currentPlace)\n ->where('quote_item_packages.category_id', $currentCategory)\n ->where('quote_item_packages.quote_id', $quoteItem->quote_id)\n ->where('users.organization_id', $user->organization_id)->first();\n if (empty($tienePaquete) && !empty($itemPackage)) {\n $itemPackage = \\App\\QuoteItemPackage::find($itemPackage->id);\n $itemPackage->delete();\n }\n $returnResult = $this->QuoteDetail($quoteItem->quote_id);\n $success = true;\n } else {\n $returnResult['message'] = 'An internal server erros has ocurred, please contact your administrator';\n }\n } else {\n $returnResult['message'] = 'You have no permissions on this record';\n }\n } else {\n $returnResult['message'] = 'Debe seleccionar un lugar';\n }\n return response()->json(array('success' => $success, 'data'=>$returnResult));\n }", "public function quoteAction()\n {\n $result = array();\n \n try {\n \n //hash to get quote\n $hash = $this->getRequest()->getParam('hash');\n \n if (!$hash){\n //json post\n if ($postBody = file_get_contents('php://input')){\n \n $data = (array)json_decode($postBody);\n \n } else {\n \n $data = $this->getRequest()->getPost();\n }\n \n if (is_array($data) && count($data)>0){\n \n $model = $this->getModel();\n $productIdOrSku = $data['product'];\n $model->loadOptions($productIdOrSku);\n $result = $model->validateCartData($data);\n \n if (!$result['error']){\n \n $result = $model->addToCart($data);\n \n if (!$result['error']){\n \n $quoteUrl = Mage::getUrl('customconfigurable/index/quote/hash/'.$result['data']);\n $result = array('Location' => $quoteUrl);\n }\n }\n \n } else {\n \n $result['error'] = true;\n $result['data'] = 'No post data';\n }\n \n } else {\n \n $model = $this->getModel();\n $model->loadOptions();\n \n $result = $model->getQuote($hash);\n \n if (!$result['error']){ \n unset($result['error']);\n $result['hash'] = $hash;\n $result['quote'] = $result['data'];\n unset($result['data']);\n }\n \n }\n \n } catch (Exception $e) {\n \n $result['error'] = true;\n $result['data'] = $e->getMessage();\n }\n \n $this->getResponse()->clearHeaders()->setHeader('Content-type','application/json',true)->setBody(Mage::helper('core')->jsonEncode($result));\n \n }", "abstract protected function prepareContextItem();", "public function replase()\n {\n $url = 'http://i.b5cai.com/batch/release_occupy.json';\n $sku = $_GET['sku_id'];\n $model = new Model();\n $ret = $model->table('tb_wms_batch_order')->where('SKU_ID = \"' . $sku . '\" and up_flag = 1')->select();\n\n $requestData ['data']['release'] = [];\n if ($ret) {\n foreach ($ret as $k => $v) {\n $tmp ['gudsId'] = $v ['GUDS_ID'];\n $tmp ['skuId'] = $v ['SKU_ID'];\n $tmp ['orderId'] = $v ['ORD_ID'];\n $requestData ['data']['release'][] = $tmp;\n }\n }\n\n curl_get_json($url, json_encode($requestData));\n }", "public function prepareResult(array $result, array $viewingUser)\n\t{\n\t\t$this->_getQuoteModel()->prepareQuotation($result);\n\t\treturn $result;\n\t}", "public function fetchQuoteProducts()\n\t{\n\n\t\t$this->getDB()->query('SELECT * FROM product_orders WHERE quote_id = '.$this->getId());\n\t\t$res = $this->getDB()->results('arr');\n\t\tforeach($res as $quotedProd)\n\t\t{\n\t\t\t$product = new Product($quotedProd['product_id']);\n\t\t\t$product->setProductCost($quotedProd['product_cost']);\n\t\t\t$product->setProductQuantity($quotedProd['product_qty']);\n\t\t\t$product->setProductType($quotedProd['product_type']);\n\n\t\t\tarray_push($this->products, $product);\n\t\t}\n\t}", "public function prepare_items()\r\r\n {\r\r\n\r\r\n $this->_column_headers = $this->get_column_info();\r\r\n\r\r\n /** Process bulk action */\r\r\n //\t$this->process_bulk_action();\r\r\n $per_page = $this->get_items_per_page('data_logs_per_page', 5);\r\r\n $current_page = $this->get_pagenum();\r\r\n $total_items = self::record_count();\r\r\n $this->set_pagination_args(array(\r\r\n 'total_items' => $total_items,\r\r\n 'per_page' => $per_page,\r\r\n ));\r\r\n\r\r\n $this->items = self::get_Data($per_page, $current_page);\r\r\n }", "private function packMeta()\n {\n $transport = $this->modx->fromJSON(file_get_contents(__DIR__ . '/../transport.json'));\n unset($transport['support']['db']);\n\n $this->builder->setPackageAttributes([\n 'changelog' => file_get_contents(__DIR__ . '/../meta/changelog.txt'),\n 'license' => file_get_contents(__DIR__ . '/../meta/license.txt'),\n 'readme' => file_get_contents(__DIR__ . '/../meta/readme.txt'),\n 'requires' => $transport['support']\n ]);\n }", "public function clean() {\n\n\t\t$report = array();\n\n\t\t$limit = intval(Mage::getStoreConfig('system/quotecleaner/limit'));\n\t\t$limit = min($limit, 50000);\n\n\t\t$olderThan = intval(Mage::getStoreConfig('system/quotecleaner/clean_quoter_older_than'));\n\t\t$olderThan = max($olderThan, 7);\n\n\t\t$writeConnection = Mage::getSingleton('core/resource')->getConnection('core_write'); /* @var $writeConnection Varien_Db_Adapter_Pdo_Mysql */\n\n\t\t$tableName = Mage::getSingleton('core/resource')->getTableName('sales/quote');\n\t\t$tableName = $writeConnection->quoteIdentifier($tableName, true);\n\n\n\n\t\t// customer quotes\n\t\t$startTime = time();\n\t\t$sql = sprintf('DELETE FROM %s WHERE (NOT ISNULL(customer_id) AND customer_id != 0) AND updated_at < DATE_SUB(Now(), INTERVAL %s DAY) LIMIT %s',\n\t\t\t$tableName,\n\t\t\t$olderThan,\n\t\t\t$limit\n\t\t);\n\t\t$stmt = $writeConnection->query($sql);\n\t\t$report['customer']['count'] = $stmt->rowCount();\n\t\t$report['customer']['duration'] = time() - $startTime;\n\t\tMage::log('[QUOTECLEANER] Cleaning old customer quotes (duration: '.$report['customer']['duration'].', row count: '.$report['customer']['count'].')');\n\n\t\t// anonymous quotes\n $olderThan = intval(Mage::getStoreConfig('clean_anonymous_quotes_older_than'));\n $olderThan = max($olderThan, 7);\n $startTime = time();\n\t\t$sql = sprintf('DELETE FROM %s WHERE (ISNULL(customer_id) OR customer_id = 0) AND updated_at < DATE_SUB(Now(), INTERVAL %s DAY) LIMIT %s',\n\t\t\t$tableName,\n\t\t\t$olderThan,\n\t\t\t$limit\n\t\t);\n\t\t$stmt = $writeConnection->query($sql);\n\t\t$report['anonymous']['count'] = $stmt->rowCount();\n\t\t$report['anonymous']['duration'] = time() - $startTime;\n\t\tMage::log('[QUOTECLEANER] Cleaning old anonymous quotes (duration: '.$report['anonymous']['duration'].', row count: '.$report['anonymous']['count'].')');\n\n\n\n\t\treturn $report;\n\t}", "private function populatePaymentTable()\n {\n $preset = $this->getPaymentInfo()->brands;\n\n foreach ($preset as $brand => $value) {\n $this->db->query(\n \"INSERT INTO `\" . DB_PREFIX . \"mundipagg_payments`\n (brand_name, is_enabled, installments_up_to, installments_without_interest, interest)\n VALUES ('\" .\n $brand . \"', \" .\n $value->enabled . \", \" .\n $value->installmentsUpTo . \", \" .\n $value->installmentsWithoutInterest . \", \" .\n $value->interest . \"\n );\"\n );\n }\n }", "function estcalcpaperinfo($quoteid) {\n global $conn, $lang,$userid,$active_company;\n $recordSet=&$conn->Execute('select estprpricestockusagestock.numberout,estprpricestockusagestock.numberup,estprpricestockusagestock.cuts,estquotestdsize.width,estquotestdsize.length,estquotesubstock.inchesperm from estquote,estprprice,estprpricestockusage,estprpricestockusagestock,estquotesubstock,estquotestdsize where estquotestdsize.id=estprprice.estquotestdsizeid and estquote.id='.sqlprep($quoteid).' and estprprice.id=estquote.prpriceid and estprpricestockusage.prpriceid=estprprice.id and estprpricestockusagestock.stockusageid=estprpricestockusage.id and estquotesubstock.id=estprpricestockusagestock.substockid');\n if ($recordSet&&!$recordSet->EOF) {\n $numberout=$recordSet->fields[0];\n $numberup=$recordSet->fields[1];\n $cuts=$recordSet->fields[2];\n $width=$recordSet->fields[3];\n $length=$recordSet->fields[4];\n $height=$recordSet->fields[5];\n };\n if ($numberup==0) $numberup=1;\n $recordSet=&$conn->Execute('select max(estquotesubstock.parts), sum(estquotestdsize.length) from estquote,estprprice,estprpricestockusage,estprpricestockusagestock,estquotesubstock,estquotestdsize where estquotestdsize.id=estprprice.estquotestdsizeid and estquote.id='.sqlprep($quoteid).' and estprprice.id=estquote.prpriceid and estprpricestockusage.prpriceid=estprprice.id and estprpricestockusagestock.stockusageid=estprpricestockusage.id and estquotesubstock.id=estprpricestockusagestock.substockid');\n if ($recordSet&&!$recordSet->EOF) {\n $parts=$recordSet->fields[0];\n $totlength=$recordSet->fields[1];\n };\n $stuff=array(\"parts\" => $parts, \"numberout\" => $numberout, \"numberup\" => $numberup, \"cuts\" => $cuts, \"width\" => $width, \"length\" => $length, \"height\" => $height, \"totlength\" => $totlength);\n return $stuff;\n }", "function fn_QuoteSubmission($quoteRequest){\n\t\t\t$params = $this->params;\n\t\t\t$wsdl \t= $this->wsdl;\n\t\t\t$responce = \"\";\n\t\t\ttry\t{\n\t\t\t\t$soap = new SoapClient($wsdl, $params);\n\t\t\t\t$args = array('token' => $this->token, 'quoteRequest' => $quoteRequest);\n\t\t\t\t$responce = $soap->QuoteSubmission($args);\n\t\t\t} \n\t\t\tcatch (SoapFault $e) {\n\t\t\t\t//$responce = \"\";\n\t\t\t \t//$responce = 'Caught exception:'.$e->getMessage().\"\\n\";\n\t\t\t \t\n\t\t\t \t$responce['faultcode'] \t\t= $e->faultcode;\n\t\t\t $responce['faultstring'] \t= $e->faultstring;\n\t\t\t $responce['faultactor'] \t= $e->faultactor;\n\t\t\t $responce['faultname'] \t\t= $e->faultname;\n\t\t\t $responce['headerfault'] \t= $e->headerfault;\n\t\t\t}\n\t\t\treturn $responce;\n\t\t}", "public function prepare()\r\n\t{\r\n\t\treturn null; // nothing\r\n\t}", "abstract public function Quote($data);", "public function prepareCollection()\n {\n $this->_reset();\n\n $this->addAttributeToSelect('*');\n\n // Select cart items\n $this->joinTable(\n array('qi' => 'sales/quote_item'),\n 'product_id = entity_id',\n array(\n 'product_name' => 'name',\n 'counts' => 'COUNT(1)',\n 'sum_qty' => \"SUM(CASE WHEN qip.product_type IN ('configurable', 'bundle') THEN qip.qty * qi.qty ELSE qi.qty END)\",\n 'total' => \"SUM(CASE WHEN qip.product_type='configurable' THEN qip.base_row_total ELSE qi.base_row_total END)\",\n 'product_type',\n 'quote_id' => 'quote_id',\n 'parent_item_id' => 'parent_item_id',\n 'item_created_at' => 'created_at'\n )\n );\n $this->addFilterToMap('parent_item_id', 'qi.parent_item_id');\n $this->addFilterToMap('product_type', 'qi.product_type');\n $this->addFilterToMap('item_created_at', 'item_created_at');\n\n // Retrieve base currency code from parent quote\n $this->joinTable(\n array('q' => 'sales/quote'),\n 'entity_id = quote_id',\n array('currency_code' => 'base_currency_code', 'store_id' => 'store_id')\n );\n\n // Select only cart items attached to a subscription\n $this->joinTable(\n array('s' => 'sheep_subscription/subscription'),\n 'quote_id = quote_id',\n array('subscription_created_at' => 'created_at',)\n );\n\n // re-join sales_flat_quote_item to retrieve parent info (if available)\n $this->joinTable(\n array('qip' => 'sales/quote_item'),\n 'item_id = parent_item_id',\n array('parent_product_type' => 'product_type', 'parent_qty' => 'qty'),\n null,\n 'left'\n );\n $this->addFilterToMap('parent_product_type', 'qip.product_type');\n $this->addFilterToMap('parent_qty', 'qip.qty');\n\n // Filter only cart items created during specified period\n $this->addFieldToFilter('item_created_at', array(\n 'from' => $this->_from,\n 'to' => $this->_to,\n 'datetime' => true\n ));\n\n $this->getSelect()->where(\n \"(qi.parent_item_id is null and qi.product_type NOT IN ('bundle', 'configurable')) OR\" .\n \"(qi.parent_item_id is not null and qip.product_type IN ('bundle', 'configurable'))\"\n );\n\n $this->getSelect()\n ->group('e.entity_id')\n ->order('counts ' . self::SORT_ORDER_DESC)\n ->having('COUNT(qi.product_id) > ?', 0);\n\n\n // Filter only quotes that were created in specified stores\n if ($this->_storeIds) {\n $this->addFieldToFilter('store_id', array('in' => $this->_storeIds));\n }\n }", "public function paymentPreparation()\n {\n $response = $this->client->request($this->methods['post'], \"payment_gateway_api/preparation_payment\", [\n 'json' => [\n 'VENDOR_ID' => $this->vendor_id,\n 'MERCHANT_TRANS_ID' => $this->merchant_trans_id,\n 'MERCHANT_TRANS_AMOUNT' => $this->merchant_trans_amount,\n 'MERCHANT_CARD_NUMBER' => $this->merchant_card_number,\n 'MERCHANT_CARD_EXPIRE' => $this->merchant_card_expire,\n 'MERCHANT_CURRENCY' => $this->merchant_currency,\n 'MERCHANT_TRANS_NOTE' => $this->merchant_trans_note,\n 'SIGN_TIME' => $this->generateSignTime(),\n 'SIGN_STRING' => md5($this->SECRET_KEY. $this->vendor_id. $this->merchant_trans_id. $this->merchant_trans_amount. $this->merchant_card_number. $this->merchant_card_expire. $this->merchant_currency. $this->sign_time),\n\n ]\n ]);\n\n return json_decode($response->getBody());\n }", "public function prepareDocumentData($args)\n {\n $this->_beforePrepareDocumentData();\n \n $data = $args['row'];\n $this->_documentData['document_id'] = $data['entity_id'];\n \n //Inject category index product position for sorting purpose\n $this->_documentData['cat_position_int'] = 0;\n if (isset($data['cat_index_position'])) {\n $this->_documentData['cat_position_int'] = $data['cat_index_position'];\n }\n \n $this->_injectDoctype();\n $this->_injectStoreId();\n $this->_injectWebsiteId();\n \n $this->_injectUniqueId();\n \n $this->_injectProductSkuIntoDocumentTextSearch($data);\n \n $this->_injectProductAttributeData($data['entity_id']);\n \n $this->_injectCategoryData($data['entity_id']);\n \n $this->_injectProductUrlData($data['entity_id']);\n \n $this->_injectProductImage($data['entity_id']);\n \n $this->_injectTextSearchData();\n \n $this->_injectAutocompleteSearchData();\n \n //print_r($this->_documentData);\n \n $this->_documents .= '\"add\": '.json_encode(array('doc'=>$this->_documentData)).\",\";\n \n //\\Solrbridge\\Search\\Helper\\Debug::log(print_r($this->_documentData, true).PHP_EOL);\n //$file = fopen('/tmp/solrbridge/'.$data['entity_id'].'.txt', 'w');\n //fwrite($file, print_r($this->_documentData, true));\n //fclose($file);\n \n $this->_fetchedRecords++;\n \n $this->_afterPrepareDocumentData();\n }", "private function prepareData(){\n\t\t\t$this->text = trim($this->text);\n\t\t\t$this->user_id = intval($this->user_id);\n\t\t\t$this->parent_id = intval($this->parent_id);\n\t\t}", "protected function preprocessData() {}", "public function getQuote();", "public function prepare( $data );", "function _processSale() {\n\t\t$this->autoload();\t\t\n\t\tJbPaymentxxsourcexxLib::write_log('xxsourcexx.txt', 'IPN: '.json_encode($_REQUEST));\n\t\t\n\t\t$input = jfactory::getApplication()->input;\t\t\n\t\t$status = $input->getString('xxsourcexx_transactionStatus');\n\t\t\n\t\t$success_status = array('CO','PA');\n\t\t\n\t\tif(in_array($status, $success_status)){\n\t\t\t$order_number = $input->getString('_itemId');\n\t\t\t$order_jb = JbPaymentxxsourcexxLib::getOrder($order_number);\n\t\t\t$order_jb->pay_status = 'SUCCESS';\n\t\t\t$order_jb->order_status = 'CONFIRMED';\n\t\t\t$order_jb->tx_id = $tnxref;\n\t\t\t$order_jb->store ();\n\t\t\treturn $order_jb;\t\n\t\t}else{\n\t\t\texit;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}" ]
[ "0.58062124", "0.557922", "0.55609536", "0.55609536", "0.55292815", "0.54991996", "0.54991996", "0.5444673", "0.54148513", "0.5404238", "0.5367681", "0.5342987", "0.5340452", "0.533207", "0.5329085", "0.5310853", "0.52900445", "0.5251016", "0.52497923", "0.5242114", "0.5241675", "0.5239186", "0.5239186", "0.5239186", "0.52011985", "0.51950747", "0.51907176", "0.5188995", "0.51618415", "0.51436865", "0.51413476", "0.51223546", "0.5096825", "0.50899464", "0.50793946", "0.5068865", "0.50378376", "0.50317854", "0.50238925", "0.50202763", "0.5014394", "0.5001935", "0.49953148", "0.49953148", "0.4995272", "0.49890637", "0.49832478", "0.497641", "0.49763888", "0.4975454", "0.4970628", "0.49414402", "0.49363112", "0.49322602", "0.49281406", "0.49281406", "0.4926341", "0.49261785", "0.49261296", "0.49115786", "0.49015802", "0.4891141", "0.4889744", "0.48739234", "0.4872407", "0.48719972", "0.4862195", "0.4859331", "0.48504537", "0.4848368", "0.4848368", "0.4848368", "0.48476812", "0.48426473", "0.48410943", "0.48360658", "0.48360658", "0.4829766", "0.48190406", "0.4814181", "0.48064047", "0.48054823", "0.4799912", "0.47957724", "0.47953737", "0.47935018", "0.47912267", "0.47884417", "0.47801942", "0.4778311", "0.47604686", "0.4758518", "0.4746142", "0.47356713", "0.47340035", "0.4733544", "0.4733088", "0.47307992", "0.47304383", "0.47214493", "0.4721034" ]
0.0
-1
Constructs package description from API getQuotes response (article) with consolidated quantities (ie 1x tshirt, 2x pants)
public function getPackagingDescription($articles, &$count = array()) { if($articles) { if(!is_array($articles->article)) { $articles->article = array(0 => $articles->article); } $tmp = array(); foreach($articles->article as $article) { if(array_key_exists($article->sku, $count)) { $count[$article->sku] += 1; } else { $count[$article->sku] = 1; } $tmp[$article->sku] = $count[$article->sku].'x '.$article->description; } return implode(',', array_values($tmp)); } return ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _canadapostGetQuote() {\r\n\t$strXML = \"<?xml version=\\\"1.0\\\" ?>\";\r\n\r\n\t// set package configuration.\r\n\t$strXML .= \"<eparcel>\\n\";\r\n\t$strXML .= \" <language>\" . $this->language . \"</language>\\n\";\r\n\t$strXML .= \" <ratesAndServicesRequest>\\n\";\r\n\t$strXML .= \" <merchantCPCID>\" . $this->CPCID . \"</merchantCPCID>\\n\";\r\n\t$strXML .= \" <fromPostalCode>\" . $this->_canadapostOriginPostalCode . \"</fromPostalCode>\\n\";\r\n\t$strXML .= \" <turnAroundTime>\" . $this->turnaround_time . \"</turnAroundTime>\\n\";\r\n\t$strXML .= \" <itemsPrice>\" . (string)$this->items_price . \"</itemsPrice>\\n\";\r\n\t\r\n\t// add items information.\r\n\t$strXML .= \" <lineItems>\\n\";\r\n\tfor ($i=0; $i < $this->items_qty; $i++) {\r\n\t $this->item_description[$i] = str_replace(\"&\", \"and\", $this->item_description[$i]);\r\n\t\t$strXML .= \"\t <item>\\n\";\r\n\t\t$strXML .= \" <quantity>\" . $this->item_quantity[$i] . \"</quantity>\\n\";\r\n\t\t$strXML .= \" <weight>\" . ($this->item_weight[$i]) . \"</weight>\\n\";\r\n\t\t$strXML .= \" <length>\" . $this->item_length[$i] . \"</length>\\n\";\r\n\t\t$strXML .= \" <width>\" . $this->item_width[$i] . \"</width>\\n\";\r\n\t\t$strXML .= \" <height>\" . $this->item_height[$i] . \"</height>\\n\";\r\n\t\t$strXML .= \" <description>\" . $this->item_description[$i] . \"</description>\\n\";\r\n\t\tif ($this->item_readytoship[$i]) $strXML .= \" <readyToShip/>\\n\";\r\n\t\t$strXML .= \"\t </item>\\n\";\r\n\t}\r\n\t$strXML .= \" </lineItems>\\n\";\r\n\t\r\n\t// add destination information.\r\n\t$strXML .= \" <city>\" . $this->dest_city . \"</city>\\n\";\r\n\t$strXML .= \" <provOrState>\" . $this->dest_province . \"</provOrState>\\n\";\r\n\t$strXML .= \" <country>\" . $this->dest_country . \"</country>\\n\";\r\n\t$strXML .= \" <postalCode>\" . $this->dest_zip . \"</postalCode>\\n\";\r\n\t$strXML .= \" </ratesAndServicesRequest>\\n\";\r\n\t$strXML .= \"</eparcel>\\n\";\r\n\t\r\n\t//print $strXML;\r\n\tif ($resultXML = $this->_sendToHost($this->server,$this->port,'POST','',$strXML)) {\r\n\t\treturn $this->_parserResult($resultXML);\r\n\t} else {\r\n\t return false;\r\n\t}\r\n }", "public function getPurchaseInfo() {\n $info = \"\";\n $productPrice = \"Item: \" . $this->getType() . \" Price: \" . $this->price . \"\\n\"; \n $info .= $productPrice;\n foreach($this->extraItems as $extraItem) {\n $extraPrice = \"- Extra item: \" . $extraItem->getType() . \" Price: \" . $extraItem->getPrice() . \"\\n\";\n $info .= $extraPrice;\n }\n return $info;\n }", "public function getQuoteDetails()\n {\n $types = [\n ['value' => 'Full Kitchen', 'text' => 'Full Kitchen'],\n ['value' => 'Cabinet Only', 'text' => 'Cabinet Only'],\n ['value' => 'Cabinet Small Job', 'text' => 'Cabinet Small Job'],\n ['value' => 'Cabinet and Install', 'text' => 'Cabinet and Install'],\n ['value' => 'Granite Only', 'text' => 'Granite Only'],\n ];\n if (Auth::user()->id == 5 || Auth::user()->id == 1)\n {\n $types[] = ['value' => 'Builder', 'text' => 'Builder'];\n }\n $type = Editable::init()->id(\"quote_type\")->placement('right')->type('select')->title(\"Quote Type\")\n ->linkText($this->quote->type)\n ->source($types)->url(\"/quote/{$this->quote->id}/type/liveupdate\")->render();\n\n if (!$this->quote->title)\n {\n $this->quote->title = \"Main Quote\";\n }\n $title = Editable::init()->id(\"quote_title\")->placement('right')->type('text')->title(\"Title\")\n ->linkText($this->quote->title)\n ->url(\"/quote/{$this->quote->id}/title/liveupdate\")->render();\n $markup = Editable::init()->id(\"quote_markup\")->placement('right')->type('text')->title(\"Markup Percentage\")\n ->linkText($this->quote->markup)\n ->url(\"/quote/{$this->quote->id}/markup/liveupdate\")->render();\n\n $rows = [];\n $rows[] = ['Quote Type:', $type];\n $rows[] = ['Title (Description)', $title];\n if ($this->quote->type == 'Full Kitchen')\n {\n $rows[] = ['Customer Picking Slab:', $this->quote->picking_slab];\n }\n if ($this->quote->type == 'Builder')\n {\n $rows[] = ['Frugal Markup Percentage:', $markup];\n }\n if (isset($this->meta['finance']))\n {\n switch ($this->meta['finance']['type'])\n {\n case 'all':\n $type = \"100% Financing Option for \" . $this->meta['finance']['terms'] . \" months\";\n break;\n case 'partial':\n\n $type = \"Partial financing Option putting $\" . $this->meta['finance']['downpayment'] . \" down\n with \";\n if (isset($this->meta['finance']['down_cash']) && $this->meta['finance']['down_cash'] > 0)\n {\n $type .= '$' . $this->meta['finance']['down_cash'] . \" in cash, \";\n }\n if (isset($this->meta['finance']['down_credit']) && $this->meta['finance']['down_credit'] > 0)\n {\n $type .= '$' . $this->meta['finance']['down_credit'] . \" in cash, \";\n }\n $type = substr($type, 0, -2);\n $type .= \" and financing for \" . $this->meta['finance']['terms'] . \" months\";\n break;\n case 'none':\n $type = \"No financing paying \";\n if (isset($this->meta['finance']['method']) && $this->meta['finance']['method'] == 'split')\n {\n if (isset($this->meta['finance']['no_cash']) && $this->meta['finance']['no_cash'] > 0)\n {\n $type .= \"$\" . number_format($this->meta['finance']['no_cash'], 2) . \" in cash, \";\n }\n if (isset($this->meta['finance']['no_credit']) && $this->meta['finance']['no_credit'] > 0)\n {\n $type .= \"$\" . number_format($this->meta['finance']['no_credit'], 2) . \" in credit, \";\n }\n $type = substr($type, 0, -2);\n }\n else\n {\n $type = \"No finance using \" . $this->meta['finance']['method'] . \" for payment\";\n }\n break;\n default:\n $type = \"Financing Option Needed\";\n }\n $rows[] = ['Financing Options', $type];\n }\n\n $table = Table::init()->rows($rows)->render();\n $panel = Panel::init('primary')\n ->header(\"Quote Details <small style='color:#fff'>Quote Type and Cabinet Information</small>\")\n ->content($table)->render();\n return $panel;\n }", "public function getSerializedPackagingFromApiResponse($anythings) {\n\t\n\t//Mage::log($anythings, null, 'anythings.log', true);\n\t\n\tif(!is_array($anythings->anything)) {\n\t $anythings->anything = array(0 => $anythings->anything);\n\t}\n \n\t$packages = array();\n\tforeach($anythings->anything as $package)\n {\n\t $productCounts = array();\n\t $customPackageDescription = isset($package->packagingDescription) ? $package->packagingDescription . ': ' : '';\n\t \n\t isset($package->articles) ? \n\t\t$description = $customPackageDescription . $this->getPackagingDescription($package->articles, $productCounts) : \n\t\t$description = null;\n\t \n\t $packages[] = array(\n\t\t'class'\t\t => $package->class,\n\t\t'mode'\t\t => $package->mode,\n\t\t'packaging'\t => $package->packaging,\n\t\t'fragile'\t => $package->qualifierFreightGeneralFragile,\n\t\t'distanceMeasurementType' => $package->distanceMeasurementType,\n\t\t'weightMeasurementType'\t => $package->weightMeasurementType,\n\t\t'length'\t => $package->length,\n\t\t'width'\t\t => $package->width,\n\t\t'height'\t => $package->height,\n\t\t'weight'\t => $package->weight,\n\t\t'quantity'\t => $package->quantity,\n\t\t'packagingDescription' => isset($package->packagingDescription) ? $package->packagingDescription : '',\n\t\t'description' => $description,//$this->getPackagingDescription(isset($package->articles) ? $package->articles : null)\n\t\t'products'\t=> $productCounts,\n\t );\n\t}\n\t\t\n\treturn serialize($packages);\n }", "function estcalcpaperinfo($quoteid) {\n global $conn, $lang,$userid,$active_company;\n $recordSet=&$conn->Execute('select estprpricestockusagestock.numberout,estprpricestockusagestock.numberup,estprpricestockusagestock.cuts,estquotestdsize.width,estquotestdsize.length,estquotesubstock.inchesperm from estquote,estprprice,estprpricestockusage,estprpricestockusagestock,estquotesubstock,estquotestdsize where estquotestdsize.id=estprprice.estquotestdsizeid and estquote.id='.sqlprep($quoteid).' and estprprice.id=estquote.prpriceid and estprpricestockusage.prpriceid=estprprice.id and estprpricestockusagestock.stockusageid=estprpricestockusage.id and estquotesubstock.id=estprpricestockusagestock.substockid');\n if ($recordSet&&!$recordSet->EOF) {\n $numberout=$recordSet->fields[0];\n $numberup=$recordSet->fields[1];\n $cuts=$recordSet->fields[2];\n $width=$recordSet->fields[3];\n $length=$recordSet->fields[4];\n $height=$recordSet->fields[5];\n };\n if ($numberup==0) $numberup=1;\n $recordSet=&$conn->Execute('select max(estquotesubstock.parts), sum(estquotestdsize.length) from estquote,estprprice,estprpricestockusage,estprpricestockusagestock,estquotesubstock,estquotestdsize where estquotestdsize.id=estprprice.estquotestdsizeid and estquote.id='.sqlprep($quoteid).' and estprprice.id=estquote.prpriceid and estprpricestockusage.prpriceid=estprprice.id and estprpricestockusagestock.stockusageid=estprpricestockusage.id and estquotesubstock.id=estprpricestockusagestock.substockid');\n if ($recordSet&&!$recordSet->EOF) {\n $parts=$recordSet->fields[0];\n $totlength=$recordSet->fields[1];\n };\n $stuff=array(\"parts\" => $parts, \"numberout\" => $numberout, \"numberup\" => $numberup, \"cuts\" => $cuts, \"width\" => $width, \"length\" => $length, \"height\" => $height, \"totlength\" => $totlength);\n return $stuff;\n }", "function format_item($item) //returns an item result with the proper formatting\n{\n\t$format_arr = array('Necessity', 'Title', 'Edition', 'Authors', 'Publisher');\n\t\n\tforeach ($format_arr as $name)\n\t{\n\t\tif (isset($item[$name]) && $item[$name])\n\t\t{\n\t\t\t$item[$name] = ucwords(strtolower(trim($item[$name], \" \\t\\n\\r\\0\\x0B\\xA0\")));\n\t\t}\n\t}\n\tif (isset($item['Year']) && $item['Year'])\n\t{\n\t\t$item['Year'] = date('Y', strtotime(trim($item['Year'])));\n\t}\n\tif (isset($item['ISBN']) && $item['ISBN'])\n\t{\n\t\t$item['ISBN'] = get_ISBN13(str_replace('&nbsp;', '', trim($item['ISBN'])));\n\t}\n\tif (isset($item['Bookstore_Price']) && $item['Bookstore_Price'])\n\t{\n\t\t$item['Bookstore_Price'] = priceFormat($item['Bookstore_Price']);\n\t}\n\t\n\tif (isset($item['New_Price']) && $item['New_Price'])\n\t{\n\t\t$item['New_Price'] = priceFormat($item['New_Price']);\n\t}\n\tif (isset($item['Used_Price']) && $item['Used_Price'])\n\t{\n\t\t$item['Used_Price'] = priceFormat($item['Used_Price']);\n\t}\n\tif (isset($item['New_Rental_Price']) && $item['New_Rental_Price'])\n\t{\n\t\t$item['New_Rental_Price'] = priceFormat($item['New_Rental_Price']);\n\t}\n\tif (isset($item['Used_Rental_Price']) && $item['Used_Rental_Price'])\n\t{\n\t\t$item['Used_Rental_Price'] = priceFormat($item['Used_Rental_Price']);\n\t}\n\n\treturn $item;\n}", "public function _getOrderDescription($order)\n {\n $descriptionItems = array();\n $description = '';\n $lengs = 0;\n foreach ($order->getAllItems() as $item) {\n if ($item->getParentItem()) continue;\n // we know that Ingenico Payment Services is not able to handle characters that are not available in iso-8859-1\n// $descriptionItems[] = mb_ereg_replace(\"[^a-zA-Z0-9äáàéèíóöõúüûÄÁÀÉÍÓÖÕÚÜÛ_ ]\" , \"\" , $item->getName());\n $descriptionItems[] = $this->convertToLatin1($item->getName());\n $description = Mage::helper('core/string')->substr(implode(', ', $descriptionItems), 0, 100);\n //COM field is limited to 100 chars max\n if (100 <= Mage::helper('core/string')->strlen($description)) {\n break;\n }\n }\n return $description;\n }", "public function getContent()\n {\n $everpsquotation = new EverpsquotationClass(\n (int)$this->id_everpsquotation_quotes\n );\n $everpsquotation->date_add = date(\n 'd/m/Y',\n strtotime($everpsquotation->date_add)\n );\n $details = EverpsquotationDetail::getQuoteDetailByQuoteId(\n $this->id_everpsquotation_quotes,\n Context::getContext()->shop->id,\n Context::getContext()->language->id\n );\n $customizations = array();\n foreach ($details as $detail) {\n if ((int)$detail['id_customization']) {\n $custs = EverpsquotationDetail::getCustomizationValue(\n (int)$detail['id_customization']\n );\n $customizations[] = array(\n 'product_id' => (int)$detail['product_id'],\n 'customizations' => $custs\n );\n }\n }\n $total_taxes = $everpsquotation->total_paid_tax_incl - $everpsquotation->total_paid_tax_excl;\n\n $this->smarty->assign(array(\n '_PS_VERSION_' => _PS_VERSION_,\n 'details' => $details,\n 'customizations' => $customizations,\n 'total_discounts' => $everpsquotation->total_discounts,\n 'total_discounts_tax_incl' => $everpsquotation->total_discounts_tax_incl,\n 'total_discounts_tax_excl' => $everpsquotation->total_discounts_tax_excl,\n 'total_paid_tax_incl' => $everpsquotation->total_paid_tax_incl,\n 'total_paid_tax_excl' => $everpsquotation->total_paid_tax_excl,\n 'total_products' => $everpsquotation->total_products,\n 'total_products_wt' => $everpsquotation->total_products_wt,\n 'total_shipping' => $everpsquotation->total_shipping,\n 'total_shipping_tax_incl' => $everpsquotation->total_shipping_tax_incl,\n 'total_shipping_tax_excl' => $everpsquotation->total_shipping_tax_excl,\n 'total_wrapping' => $everpsquotation->total_wrapping,\n 'total_wrapping_tax_incl' => $everpsquotation->total_wrapping_tax_incl,\n 'total_wrapping_tax_excl' => $everpsquotation->total_wrapping_tax_excl,\n 'total_taxes' => $total_taxes,\n 'date_add' => $everpsquotation->date_add,\n 'everpsquotationmentions' => $this->mentions,\n ));\n\n return $this->smarty->fetch($this->pdfDir . '/everquotation_content.tpl');\n }", "function _getDmstcQuote($pkg, $method = '') {\r\n\t\tglobal $order;\r\n\t\tif (tep_not_null($method) && in_array($method, $this->dmstc_available)) {\r\n\t\t\t$request_types = array($method);\r\n\t\t} else {\r\n\t\t\t$request_types = $this->dmstc_available;\r\n\t\t}\r\n\t\t$shipping_weight = ($pkg['item_weight'] < 0.0625 ? 0.0625 : $pkg['item_weight']);\r\n\t\t$shipping_pounds = floor($shipping_weight);\r\n\t\t$shipping_ounces = ceil((16 * ($shipping_weight - $shipping_pounds)) * 100) / 100; // rounded to two decimal digits\r\n\t\t$ounces = $shipping_weight * 16.0;\r\n\t\t$pkgvalue = $pkg['item_price'];\r\n\t\tif ($pkgvalue > MODULE_SHIPPING_USPS_DMSTC_INSURANCE_MAX) $pkgvalue = MODULE_SHIPPING_USPS_DMSTC_INSURANCE_MAX;\r\n\t\tif ($pkgvalue <= 0) $pkgvalue = 0.01;\r\n\t\t$nonuspsinsurancecost = 0;\r\n\t\tif (MODULE_SHIPPING_USPS_NON_USPS_INSURE == 'True') {\r\n\t\t\tif ($pkg['item_price'] <= 50) {\r\n\t\t\t\t$nonuspsinsurancecost = MODULE_SHIPPING_USPS_INS1;\r\n\t\t\t} else if ($pkg['item_price'] <= 100) {\r\n\t\t\t\t$nonuspsinsurancecost = MODULE_SHIPPING_USPS_INS2;\r\n\t\t\t}\telse if ($pkg['item_price'] <= 200) {\r\n\t\t\t\t$nonuspsinsurancecost = MODULE_SHIPPING_USPS_INS3;\r\n\t\t\t} else if ($pkg['item_price'] <= 300) {\r\n\t\t\t\t$nonuspsinsurancecost = MODULE_SHIPPING_USPS_INS4;\r\n\t\t\t} else {\r\n\t\t\t\t$nonuspsinsurancecost = MODULE_SHIPPING_USPS_INS4 + ((ceil($pkg['item_price']/100) - 3) * MODULE_SHIPPING_USPS_INS5);\r\n\t\t\t}\r\n\t\t}\r\n\t\t$sservs = array(); // any special services to request\r\n\t\tif (MODULE_SHIPPING_USPS_DMSTC_INSURANCE_OPTION == 'True') $sservs = array(1, 11); //request insurance, both regular & express mail\r\n\t\tif ((MODULE_SHIPPING_USPS_DMST_SIG_CONF == 'True') && ($order->info['subtotal'] >= MODULE_SHIPPING_USPS_SIG_THRESH)) {\r\n\t\t\t$sservs[] = 15;\r\n\t\t} elseif (MODULE_SHIPPING_USPS_DMST_DEL_CONF == 'True') {\r\n\t\t\t$sservs[] = 13;\r\n\t\t}\r\n\t\t$sservice = '';\r\n\t\tif (!empty($sservs)) {\r\n\t\t\tforeach ($sservs as $id) $sservice .= '<SpecialService>' . $id . '</SpecialService>';\r\n\t\t\t$sservice = '<SpecialServices>' . $sservice . '</SpecialServices>';\r\n\t\t}\r\n\t\t$box = array($pkg['item_length'], $pkg['item_width'], $pkg['item_height']);\r\n\t\trsort($box); // put package size in large to small order for purposes of checking dimensions\r\n\t\tlist($length, $width, $height) = $box;\r\n\t\t$id = 0;\r\n\t\t$quotes = $request_group = array();\r\n\t\t$group_count = 1;\r\n\t\t$type_count = 0;\r\n\t\t$urllength = strlen('production.shippingapis.com/shippingAPI.dll?<RateV4Request USERID=\"' . MODULE_SHIPPING_USPS_USERID . '\"><Revision>2</Revision></RateV4Request>');\r\n\t\tforeach ($request_types as $service) { // break the requested shipping methods into groups\r\n\t\t\tif (strpos($service, 'First') !== false) { // if first class mail service check if will fit type\r\n\t\t\t\t$fcmt = $this->first_class_to_mail_type[$service];\r\n\t\t\t\tif (($fcmt == 'LETTER') && (($length > $this->first_class_letter['length']) || ($width > $this->first_class_letter['width']) || ($height > $this->first_class_letter['height']) || ($ounces > $this->first_class_letter['ounces']))) continue; // don't check letter type if package doesn't fit\r\n\t\t\t\tif (($fcmt == 'FLAT') && (($length > $this->first_class_large_letter['length']) || ($width > $this->first_class_large_letter['width']) || ($height > $this->first_class_large_letter['height']) || ($ounces > $this->first_class_large_letter['ounces']))) continue; // don't check large letter type if package doesn't fit\r\n\t\t\t\tif (($fcmt == 'POSTCARD') && (($length > 6) || ($width > 4.25) || ($height > 0.016) || ($ounces > 3.5))) continue; // don't check postcard type if package doesn't fit\r\n\t\t\t\tif ($ounces > $this->first_class_parcel_max_ounces) continue; // don't check First Class if too heavy\r\n\t\t\t}\r\n\t\t\t$cont = $this->type_to_container[$service]; // begin checking for packages larger than USPS containers\r\n\t\t\t// if this service type specifies a container and this package won't fit then skip this service\r\n\t\t\tif (strpos($cont, 'Envelope') !== false) { // if service container is envelope\r\n\t\t\t\tif ($height > 1) continue; // anything thicker than one inch won't fit an envelope\r\n\t\t\t\tif ((strpos($cont, 'SM') !== false) && (($length > 10) || ($width > 6))) continue;\r\n\t\t\t\tif ((strpos($cont, 'Window') !== false) && (($length > 10) || ($width > 5))) continue;\r\n\t\t\t\tif ((strpos($cont, 'Gift') !== false) && (($length > 10) || ($width > 7))) continue;\r\n\t\t\t\tif ((strpos($cont, 'Legal') !== false) && (($length > 15) || ($width > 9.5))) continue;\r\n\t\t\t\tif (($length > 12.5) || ($width > 9.5)) continue; // other envelopes\r\n\t\t\t}\r\n\t\t\tif (($cont == 'SM Flat Rate Box') && (($length > 8.625) || ($width > 5.375) || ($height > 1.625))) continue;\r\n\t\t\tif (($cont == 'MD Flat Rate Box') || ($cont == 'Flat Rate Box')) {\r\n\t\t\t\tif ($length > 13.625) continue; // too big for longest medium box\r\n\t\t\t\tif ($length > 11) { // check medium type 2 box\r\n\t\t\t\t\tif (($length > 13.625) || ($width > 11.875) || ($height > 3.375)) continue; // won't fit medium type 2 box\r\n\t\t\t\t} elseif (($length > 11) || ($width > 8.5) || ($height > 5.5)) continue; // won't fit either type medium box\r\n\t\t\t}\r\n\t\t\tif (($cont == 'LG Flat Rate Box') && (($length > 12) || ($width > 12) || ($height > 5.5))) continue;\r\n\t\t\tif ($cont == 'Regional Rate Box A') {\r\n\t\t\t\tif ($length > 12.8125) continue; // too big for longest A box\r\n\t\t\t\tif ($length > 10) { // check A2 box\r\n\t\t\t\t\tif (($length > 12.8125) || ($width > 10.9375) || ($height > 2.375)) continue; // won't fit A2 box\r\n\t\t\t\t} elseif (($length > 10) || ($width > 7) || ($height > 4.75)) continue; // won't fit either type A box\r\n\t\t\t}\r\n\t\t\tif ($cont == 'Regional Rate Box B') {\r\n\t\t\t\tif ($length > 15.875) continue; // too big for longest B box\r\n\t\t\t\tif ($length > 12) { // check B2 box\r\n\t\t\t\t\tif (($length > 15.875) || ($width > 14.375) || ($height > 2.875)) continue; // won't fit B2 box\r\n\t\t\t\t} elseif (($length > 12) || ($width > 10.25) || ($height > 5)) continue; // won't fit either type B box\r\n\t\t\t}\r\n\t\t\tif (($cont == 'Regional Rate Box C') && (($length > 14.75) || ($width > 11.75) || ($height > 11.5))) continue;\r\n\t\t\t// passed all size checks so build request\r\n\t\t\t$request = '<Package ID=\"'. $id . '\"><Service>' . $this->type_to_request[$service] . '</Service>';\r\n\t\t\tif (strpos($service, 'First') !== false) $request .= '<FirstClassMailType>' . $fcmt . '</FirstClassMailType>';\r\n\t\t\t$request .= '<ZipOrigination>' . SHIPPING_ORIGIN_ZIP . '</ZipOrigination>' .\r\n\t\t\t\t\t'<ZipDestination>' . $this->dest_zip . '</ZipDestination>' .\r\n\t\t\t\t\t'<Pounds>' . $shipping_pounds . '</Pounds>' .\r\n\t \t\t'<Ounces>' . $shipping_ounces . '</Ounces>';\r\n\t\t\tif ((strpos($cont, 'Rate') === false) && (max($length, $width, $height) > 12)) {\r\n\t\t\t\t$request .= '<Container>RECTANGULAR</Container><Size>LARGE</Size>' .\r\n\t\t\t\t\t\t'<Width>' . $width . '</Width>' .\r\n\t\t\t\t\t\t'<Length>' . $length . '</Length>'.\r\n\t\t\t\t\t\t'<Height>' . $height . '</Height>';\r\n\t\t\t} else {\r\n\t\t\t\t$request .= '<Container>' . $cont . '</Container><Size>REGULAR</Size>';\r\n\t\t\t}\r\n\t\t\tif (MODULE_SHIPPING_USPS_DMSTC_INSURANCE_OPTION == 'True') $request .= '<Value>' . number_format($pkgvalue, 2, '.', '') . '</Value>';\r\n\t\t\t$request .= $sservice;\r\n\t\t\tif ((strpos($service, 'First') !== false) || (strpos($service, 'Post') !== false)) $request .= '<Machinable>true</Machinable>';\r\n\t\t\t$request .= '</Package>';\r\n\t\t\t$id++;\r\n\t\t\t$type_count++;\r\n\t\t\tif (($type_count > 25) || (($urllength + strlen(urlencode($request))) > 2000)) { // only 25 services allowed per request or 2000 characters per url\r\n\t\t\t\t$group_count++;\r\n\t\t\t\t$type_count = 1;\r\n\t\t\t\t$urllength = strlen('production.shippingapis.com/shippingAPI.dll?<RateV4Request USERID=\"' . MODULE_SHIPPING_USPS_USERID . '\"><Revision>2</Revision></RateV4Request>');\r\n\t\t\t}\r\n\t\t\t$urllength += strlen(urlencode($request));\r\n\t\t\t$request_group[$group_count][$type_count] = $request;\r\n\t\t} // end foreach request type as service\r\n\t\tif (empty($request_group)) return array('error' => MODULE_SHIPPING_USPS_ERROR_NO_SERVICES);\r\n\t\tif (!class_exists('httpClient')) {\r\n\t\t\tinclude(DIR_FS_CATALOG . DIR_WS_CLASSES .'http_client.php');\r\n\t\t} //print_r($request_group);\r\n\t\tforeach ($request_group as $service_group) {\r\n\t\t\t$request = '<RateV4Request USERID=\"' . MODULE_SHIPPING_USPS_USERID . '\"><Revision>2</Revision>';\r\n\t\t\tforeach ($service_group as $service_request) {\r\n\t\t\t\t$request .= $service_request;\r\n\t\t\t}\r\n\t\t\t$request .= '</RateV4Request>';\r\n\t\t\t$request = \t'API=RateV4&XML=' . urlencode($request);\r\n\t\t\t$body = '';\r\n\t\t\t$http = new httpClient();\r\n\t\t\tif ($http->Connect('production.shippingapis.com', 80)) {\r\n\t\t\t\t$http->addHeader('Host', 'production.shippingapis.com');\r\n\t\t\t\t$http->addHeader('User-Agent', 'IntenseCart');\r\n\t\t\t\t$http->addHeader('Connection', 'Close');\r\n\t\t\t\tif ($http->Get('/shippingAPI.dll?' . $request)) $body = $http->getBody();\r\n\t\t\t\t$http->Disconnect();\r\n\t\t\t} else {\r\n\t\t\t\t$body = '<Error><Number></Number><Description>' . MODULE_SHIPPING_USPS_TEXT_CONNECTION_ERROR . '</Description></Error>';\r\n\t\t\t}\r\n\t\t\t$doc = XML_unserialize($body); //print_r($doc);\r\n\t\t\tif (isset($doc['Error'])) return array('error' => $doc['Error']['Number'] . ' ' . $doc['Error']['Description']);\r\n\t\t\tif (isset($doc['RateV4Response']['Package']['Postage'])) { // single mail service response\r\n\t\t\t\t$tmp = $this->_decode_domestic_response($doc['RateV4Response']['Package']['Postage'], $pkgvalue, $nonuspsinsurancecost, $pkg['item_price']);\r\n\t\t\t\tif (!empty($tmp)) $quotes[$tmp['id']] = $tmp;\r\n\t\t\t} elseif (isset($doc['RateV4Response']['Package'][0])) { // multiple mailing services returned\r\n\t\t\t\tforeach ($doc['RateV4Response']['Package'] as $mailsvc) {\r\n\t\t\t\t\tif (isset($mailsvc['Postage'])) {\r\n\t\t\t\t\t\t$tmp = $this->_decode_domestic_response($mailsvc['Postage'], $pkgvalue, $nonuspsinsurancecost, $pkg['item_price']);\r\n\t\t\t\t\t\tif (!empty($tmp)) $quotes[$tmp['id']] = $tmp;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} // end foreach $request_group\r\n\t\treturn $quotes;\r\n\t}", "private function QuoteDetail($id)\n {\n $user = auth()->user();\n $organization = \\App\\Organization::find($user->organization_id);\n $returnResult = [];\n $quoteItems = $this->getQuoteItems($id);\n $valoresVenta = $this->getQuoteVales($id);\n $itemsCategories = $this->getItemsCategories($id);\n $itemsPackages = $this->getItemsPackages($id);\n $infoVenta = $this->getInfoVenta($id);\n $places = $this->getPlaces($id);\n $totales = [];\n $value = $valoresVenta[0];\n $aumentos = $value->descuentos;\n $total = $value->subTotal + $aumentos;\n $subTotal = $value->subTotal;\n $packageValue = 0;\n foreach ($itemsPackages as $value) {\n $packageValue += $value->value;\n }\n $total = $total + $packageValue;\n $HT = $total - (($infoVenta->tax * $total) / 100);\n $subTotal = $subTotal + $packageValue;\n $totales['tax'] = ($infoVenta->tax * $total) / 100;\n $totales['subTotal'] = number_format($subTotal, 2, ',', '.');\n $totales['tax'] = number_format($totales['tax'], 2, ',', '.');\n $totales['descuentos'] = number_format($aumentos, 2, ',', '.');\n $totales['total'] = number_format($total, 2, ',', '.');\n $totales['HT'] = number_format($HT, 2, ',', '.');\n\n $returnResult['html'] = view('quote.quoteItems',['quoteItems'=> $quoteItems,\n 'itemsCategories'=> $itemsCategories, 'totales' => $totales,\n 'infoVenta' => $infoVenta,\n 'itemsPackages' => $itemsPackages,\n 'places'=> $places])->render();\n $returnResult['message'] = 'Success';\n\n return $returnResult;\n }", "function fastQuote_info() {\n global $lang;\n\n $lang->load('fastQuote');\n $lang->fastQuoteDesc = '<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\" style=\"float:right;\">' .\n '<input type=\"hidden\" name=\"cmd\" value=\"_s-xclick\">' . \n '<input type=\"hidden\" name=\"hosted_button_id\" value=\"3BTVZBUG6TMFQ\">' .\n '<input type=\"image\" src=\"https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif\" border=\"0\" name=\"submit\" alt=\"PayPal - The safer, easier way to pay online!\">' .\n '<img alt=\"\" border=\"0\" src=\"https://www.paypalobjects.com/pl_PL/i/scr/pixel.gif\" width=\"1\" height=\"1\">' .\n '</form>' . $lang->fastQuoteDesc;\n\n return Array(\n 'name' => $lang->fastQuoteName,\n 'description' => $lang->fastQuoteDesc,\n 'website' => 'https://lukasztkacz.com',\n 'author' => 'Lukasz \"LukasAMD\" Tkacz',\n 'authorsite' => 'https://lukasztkacz.com',\n 'version' => '1.2.0',\n 'compatibility' => '18*',\n 'codename' => 'fast_quote'\n );\n}", "function getQuotationItems($qid)\n {\n $where = \"id='\".$qid.\"'\";\n $result = $this->dList($where);\n $itemArr = $this->getValues($result[0][4],$this->logUser);\n\t$cusItemArr = $this->toArray($result[0][4]);\n\t$n=0;$this->grandTotal=0;$this->itemData='';\n\tforeach ($itemArr as &$value) {\n\t\t$arr[$n][0] = $value[0];\n\t\t$arr[$n][0]['cp'] = $cusItemArr[$value[0]['id']]['cp'];\n\t\t$arr[$n][0]['order'] = $cusItemArr[$value[0]['id']]['order'];\n\t\t$this->itemData[$value[0]['id']]['cp']=$arr[$n][0]['cp'] ;\n\t\tif($cusItemArr[$value[0]['id']]['cp'] && $arr[$n][0]['qty']){\n\t\t\n\t\t$arr[$n][0]['totle'] = $cusItemArr[$value[0]['id']]['cp'] * $arr[$n][0]['qty'];\n\t\t }elseif($cusItemArr[$value[0]['id']]['cp'])\n\t\t {\n\t\t\t $arr[$n][0]['totle'] = $cusItemArr[$value[0]['id']]['cp'];\n\t\t }else\n\t\t {\n\t\t\t switch($arr[$n][0]['type']){\n\t\t\t\tcase\"M\": {\n\t\t\t $arr[$n][0]['totle'] = ($arr[$n][0]['qty'])? $arr[$n][0][6] * $arr[$n][0]['qty'] : $arr[$n][0][6];\n\t\t\t\t} break;\n\t\t\t\tcase\"S\":{\n\t\t\t $arr[$n][0]['totle'] = ($arr[$n][0]['qty']) ? $arr[$n][0][10] * $arr[$n][0]['qty'] : $arr[$n][0][10];\n\t\t\t\t}break;\n\t\t\t\tcase\"C\":{\n\t\t\t $arr[$n][0]['totle'] = ($arr[$n][0]['qty']) ? $arr[$n][0][10] * $arr[$n][0]['qty'] : $arr[$n][0][10];\n\t\t\t\t}break;\n\t\t\t }\n\t\t }\n\t\t$this->grandTotal+=$arr[$n][0]['totle'];\n\t\t$n++;\n\t}\n\n if(!empty($arr))\n {usort($arr, array(\"Quotation\", \"compare\"));}\n\n\t return $arr;\n }", "function printQuote()\n{\n $arr_printing = getRandomQuote($GLOBALS['quotes']);\n $string_to_print = '';\n $string_to_print .= '<p class=\"quote\">' . $arr_printing['quote'] . ' </p>';\n $string_to_print .= '<p class=\"source\">' . $arr_printing['source'];\n if ($arr_printing['citation']) {\n $string_to_print .= '<span class=\"citation\">' . $arr_printing['citation'] . '</span>';\n $string_to_print .= '<span class=\"year\">' . $arr_printing['year'] . '</span>';\n }\n if ($arr_printing['tags']) {\n $string_to_print .= '</br><span class=\"tags\">' . $arr_printing['tags'] . '</span>';\n }\n $string_to_print .= '</p>';\n echo $string_to_print;\n}", "protected function getDescriptionExample()\n {\n return '<p><b>' . __('Example') . '</b><p><p>[Buy||Order] [name][ by {manufacturer|brand}][ of {color} color][ for only||for {price}][ in {categories}] at[ {store_name},][ website_name]. [short_description] <p>' .\n __('will be transformed into') .\n '<br><p>Order HTC Touch Diamond by HTC of Black color for only € 517.50 in Cell Phones - Electronics at Digital Store, Digital-Store.com. HTC Touch Diamond signals a giant leap forward in combining hi-tech prowess with intuitive usability and exhilarating design';\n }", "public function getQuote();", "private function inforQuoteDetail($id)\n {\n $user = auth()->user();\n $organization = \\App\\Organization::find($user->organization_id);\n $returnResult = [];\n $quoteItems = $this->getQuoteItems($id);\n $valoresVenta = $this->getQuoteVales($id);\n $itemsCategories = $this->getItemsCategories($id);\n $itemsPackages = $this->getItemsPackages($id);\n $infoVenta = $this->getInfoVenta($id);\n $places = $this->getPlaces($id);\n $totales = [];\n $value = $valoresVenta[0];\n $aumentos = $value->descuentos;\n $total = $value->subTotal + $aumentos;\n $subTotal = $value->subTotal;\n $packageValue = 0;\n foreach ($itemsPackages as $value) {\n $packageValue += $value->value;\n }\n $total = $total + $packageValue;\n $tax = ($infoVenta->tax * $total) / 100;\n $HT = $total - $tax;\n $subTotal = $subTotal + $packageValue;\n $totales['subTotal'] = number_format($subTotal, 2, ',', '.');\n $totales['tax'] = number_format($tax, 2, ',', '.');\n $totales['descuentos'] = number_format($aumentos, 2, ',', '.');\n $totales['total'] = number_format($total, 2, ',', '.');\n $totales['HT'] = number_format($HT, 2, ',', '.');\n\n $returnResult['quoteItems'] = $quoteItems;\n $returnResult['itemsCategories'] = $itemsCategories;\n $returnResult['totales'] = $totales;\n $returnResult['infoVenta'] = $infoVenta;\n $returnResult['itemsPackages'] = $itemsPackages;\n $returnResult['places'] = $places;\n\n return $returnResult;\n }", "function bq_get_quotes() {\n\t/** These are quotes from A P J Abul Kalam */\n $quotes=[\n \"“স্বপ্ন বাস্তবায়ন না হওয়া পর্যন্ত তোমাকে স্বপ্ন দেখে যেতে হবে” – Abdul Kalam\",\n \"“স্বপ্ন সেটা নয় যেটা তুমি ঘুমিয়ে ঘুমিয়ে দেখো | স্বপ্ন হলো সেটাই যা পূরণের অদম্য ইচ্ছা তোমায় ঘুমাতে দেবে না” – Abdul Kalam\",\n \"“একটা কথা পরিষ্কার, সৃষ্টিকর্তা তাদেরই সহায় থাকেন, যারা কঠোর পরিশ্রম করেন” – Abdul Kalam\",\n \"“যদি সূর্যের মতো উজ্জ্বল হতে চাও, তাহলে তোমাকেই প্রথমে সূর্যের মত পুড়তে হবে” – Abdul Kalam\",\n \"“সফলতার গল্পে কেবল একটা বার্তা থাকে কিন্তু ব্যর্থতার গল্পে সফল হওয়ার উপায় থাকে” – Abdul Kalam\",\n \"“স্বপ্ন দেখতে হবে, স্বপ্ন থেকেই চিন্তার জন্ম হয় আর চিন্তা জন্ম দেয় কাজের” – Abdul Kalam \",\n \"“আমরা শুধু সাফল্যের উপরই গড়ি না, আমরা অসফলতার উপরেও গড়ি” – Abdul Kalam\",\n \"“জটিল কাজে বেশি আনন্দ পাওয়া যায়, তাই সফলতার আনন্দ পাওয়ার জন্য মানুষের কাজ জটিল হওয়া উচিত” – Abdul Kalam\",\n \"“ব্যর্থতা নামক রোগের সবথেকে ভালো অসুধ হলো আত্মবিশ্বাস আর কঠোর পরিশ্রম, এটা আপনাকে একজন সফল মানুষ করে তুলবে” – Abdul Kalam \",\n \"“নির্দিষ্ট লক্ষ্য, ক্রমাগত জ্ঞান সঞ্চয় করা, কঠোর পরিশ্রম ও হার না মানা মনোভাব – এই চারটি জিনিস মেনে চললে যেকোনো কিছুকেই লাভ করা যেতে পারে” – Abdul Kalam\"\n ];\n\n\t// And then randomly choose a line.\n\tprintf(wptexturize( $quotes[ mt_rand( 0, count( $quotes ) - 1 ) ] ));\n}", "public function getItemBreakdown() {\n echo 'Cone type: '.$this->coneType['name'].'- $'.number_format($this->coneType['price'], 2).\"\\n\";\n echo \"Flavors used:\\n\";\n foreach ($this->scoops as $scoop) {\n echo ' '.$scoop['name'].' - $'.number_format($scoop['price'], 2).\"\\n\";\n }\n echo \"\\n\\n\";\n }", "function quantitiesInBaseQuoteOrder($get_asset, $get_quantity, $give_asset, $give_quantity)\n{\n $assets = assetsToTradingPair($get_asset, $give_asset);\n\n return $assets[0] === $get_asset ? [$get_quantity, $give_quantity] : [$give_quantity, $get_quantity];\n}", "public function prodViewDetails($quote_id)\n\t{\n\t\t$quote_obj=new Ep_Quote_Quotes();\n\n\t\tif($quote_id)\n\t\t{\n\t\t\t$quoteDetails=$quote_obj->getQuoteDetails($quote_id);\n\t\t\tif($quoteDetails)\n\t\t\t{\n\t\t\t\t$q=0;\n\t\t\t\tforeach($quoteDetails as $quote)\n\t\t\t\t{\n\t\t\t\t\t$quoteDetails[$q]['category_name']=$this->getCategoryName($quote['category']);\n\t\t\t\t\t$quoteDetails[$q]['websites']=explode(\"|\",$quote['websites']);\n\t\t\t\t\t\n\t\t\t\t\tif($quote['documents_path'])\n\t\t\t\t\t{\n\t\t\t\t\t\t/* $related_files='';\n\t\t\t\t\t\t$documents_path=explode(\"|\",$quote['documents_path']);\n\t\t\t\t\t\t$documents_name=explode(\"|\",$quote['documents_name']);\n\n\t\t\t\t\t\t\n\t\t\t\t\t\tforeach($documents_path as $k=>$file)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(file_exists($this->quote_documents_path.$documents_path[$k]) && !is_dir($this->quote_documents_path.$documents_path[$k]))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($documents_name[$k])\n\t\t\t\t\t\t\t\t$file_name=$documents_name[$k];\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t$file_name=basename($file);\n\n\t\t\t\t\t\t\t$related_files.='\n\t\t\t\t\t\t\t<a href=\"/quote/download-document?type=quote&index='.$k.'&quote_id='.$quote_id.'\">'.$file_name.'</a><br>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} */\n\t\t\t\t\t\t$files = array('documents_path'=>$quote['documents_path'],'documents_name'=>$quote['documents_name'],'quote_id'=>$quote_id,'delete'=>false);\n\t\t\t\t\t\t$related_files = $this->getQuoteFiles($files);\n\t\t\t\t\t}\n\n\t\t\t\t\t$quoteDetails[$q]['related_files']=$related_files;\n\n\t\t\t\t\t$quoteDetails[$q]['sales_suggested_price_format']=number_format($quote['sales_suggested_price'], 2, ',', ' ');\n\t\t\t\t\t$quoteDetails[$q]['comment_time']=time_ago($quote['created_at']);\n\t\t\t\t\t\n\n\t\t\t\t\t//bo user details\n\t\t\t\t\t$quote_by=$quote['quote_by'];\n\t\t\t\t\t$client_obj=new Ep_Quote_Client();\n\t\t\t\t\t$bo_user_details=$client_obj->getQuoteUserDetails($quote_by);\n\t\t\t\t\tif($bo_user_details!='NO')\n\t\t\t\t\t{\n\t\t\t\t\t\t$quoteDetails[$q]['quote_user_name']=$bo_user_details[0]['first_name'].' '.$bo_user_details[0]['last_name'];\n\t\t\t\t\t\t$quoteDetails[$q]['email']=$bo_user_details[0]['email'];\n\t\t\t\t\t\t$quoteDetails[$q]['phone_number']=$bo_user_details[0]['phone_number'];\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t//getting mission details\n\t\t\t\t\t$searchParameters['quote_id']=$quote_id;\n\t\t\t\t\t$searchParameters['misson_user_type']='sales';\n\t\t\t\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t\t\t\t$missonDetails=$quoteMission_obj->getMissionDetails($searchParameters);\n\t\t\t\t\tif($missonDetails)\n\t\t\t\t\t{\n\t\t\t\t\t\t$m=0;\n\t\t\t\t\t\tforeach($missonDetails as $mission)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$missonDetails[$m]['product_name']=$this->product_array[$mission['product']];\t\t\t\n\t\t\t\t\t\t\t$missonDetails[$m]['language_source_name']=$this->getLanguageName($mission['language_source']);\n\t\t\t\t\t\t\t$missonDetails[$m]['product_type_name']=$this->producttype_array[$mission['product_type']];\n\t\t\t\t\t\t\tif($mission['language_dest'])\n\t\t\t\t\t\t\t\t$missonDetails[$m]['language_dest_name']=$this->getLanguageName($mission['language_dest']);\n\n\t\t\t\t\t\t\t$quoteDetails[$q]['missions_list'][$mission['identifier']]='Mission '.($m+1).' - '.$missonDetails[$m]['product_name'];\n\n\t\t\t\t\t\t\t$missonDetails[$m]['comment_time']=time_ago($mission['created_at']);\n\t\t\t\t\t\t\t//mission versionings if version is gt 1\n\t\t\t\t\t\t\tif($quote['version']>1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$previousVersion=($quote['version']-1);\n\n\t\t\t\t\t\t\t\t$quoteMissionObj=new Ep_Quote_QuoteMissions();\n\t\t\t\t\t\t\t\t$previousMissionDetails=$quoteMissionObj->getMissionVersionDetails($mission['identifier'],$previousVersion,'sales');\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif($previousMissionDetails)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tforeach($previousMissionDetails as $key=>$vmission)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['product_name']=$this->seo_product_array[$vmission['product']];\t\t\t\n\t\t\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['language_source_name']=$this->getLanguageName($vmission['language_source']);\n\t\t\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['product_type_name']=$this->producttype_array[$vmission['product_type']];\n\t\t\t\t\t\t\t\t\t\tif($vmission['language_dest'])\n\t\t\t\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['language_dest_name']=$this->getLanguageName($vmission['language_dest']);\n\n\t\t\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t\t\t\t//Get All version details of a mission\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$allVersionMissionDetails=$quoteMissionObj->getMissionVersionDetails($mission['identifier'],NULL,'sales');\n\t\t\t\t\t\t\t\t\tif($allVersionMissionDetails)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$table_start='<table class=\"table quote-history table-striped\">';\n\t\t\t\t\t\t\t\t\t\t$table_end='</table>';\n\t\t\t\t\t\t\t\t\t\t$language_versions=$product_type_versions=$volume_versions=$nb_words_versions='';\n\t\t\t\t\t\t\t\t\t\t$price_versions=$mission_length_versions='';\n\n\t\t\t\t\t\t\t\t\t\tforeach($allVersionMissionDetails as $versions)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t \tif($versions['product']=='translation')\n\t\t\t\t\t\t\t\t\t\t \t\t$language= $this->getLanguageName($versions['language_source']).\" > \".$this->getLanguageName($vmission['language_dest']);\n\t\t\t\t\t\t\t\t\t\t \telse\n\t\t\t\t\t\t\t\t\t\t \t\t$language= $this->getLanguageName($versions['language_source']);\n\t\t\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t\t \t$created_at=date(\"d/m/Y\", strtotime($versions['created_at']));\n\t\t\t\t\t\t\t\t\t\t \t$version_text='v'.$versions['version'];\n\n\t\t\t\t\t\t\t\t\t\t \t$language_versions.=\"<tr><td>$language</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t\t\t \t$product_type_versions.=\"<tr><td>\".$this->producttype_array[$versions['product_type']].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t\t\t \t$volume_versions.=\"<tr><td>\".$versions['volume'].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t\t\t \t$nb_words_versions.=\"<tr><td>\".$versions['nb_words'].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t\t\t \t$price_versions.=\"<tr><td>\".zero_cut($versions['unit_price'],2).\" &\". $versions['sales_suggested_currency'].\";</td><td>$created_at</td><td>$version_text</td></tr>\";\n\n\t\t\t\t\t\t\t\t\t\t \t$mission_length_option=$this->duration_array[$versions['mission_length_option']];//$versions['mission_length_option']=='days' ? ' Jours' : ' Hours';\n\n\t\t\t\t\t\t\t\t\t\t \t$mission_length_versions.=\"<tr><td>\".$versions['mission_length'].\" $mission_length_option</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\t//checking the version differences\n\t\t\t\t\t\t\t\t\tif($mission['language_source'] !=$previousMissionDetails[0]['language_source'])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['language_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['language_versions']=$table_start.$language_versions.$table_end;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif($mission['language_dest'] !=$previousMissionDetails[0]['language_dest'])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['language_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['language_versions']=$table_start.$language_versions.$table_end;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif($mission['product_type'] !=$previousMissionDetails[0]['product_type'])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['product_type_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['product_type_versions']=$table_start.$product_type_versions.$table_end;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif($mission['volume'] !=$previousMissionDetails[0]['volume'])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['volume_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['volume_versions']=$table_start.$volume_versions.$table_end;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif($mission['nb_words'] !=$previousMissionDetails[0]['nb_words'])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['nb_words_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['nb_words_versions']=$table_start.$nb_words_versions.$table_end;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif($mission['unit_price'] !=$previousMissionDetails[0]['unit_price'])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['unit_price_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['price_versions']=$table_start.$price_versions.$table_end;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$current_mission_lenght=$mission['mission_length_option']=='hours' ? ($mission['mission_length']/24) : $mission['mission_length'];\n\t\t\t\t\t\t\t\t\t$previous_mission_lenght=$previousMissionDetails[0]['mission_length_option']=='hours' ? ($previousMissionDetails[0]['mission_length']/24) : $previousMissionDetails[0]['mission_length'];\n\t\t\t\t\t\t\t\t\tif($current_mission_lenght !=$previous_mission_lenght)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['mission_length_difference']='yes';\t\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['mission_length_versions']=$table_start.$mission_length_versions.$table_end;\n\t\t\t\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\t\t\t\t$missonDetails[$m]['previousMissionDetails']=$previousMissionDetails;\n\t\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t//Get seo missions related to a mission\n\t\t\t\t\t\t\t$searchParameters['quote_id']=$quote_id;\n\t\t\t\t\t\t\t$searchParameters['misson_user_type']='seo';\n\t\t\t\t\t\t\t$searchParameters['related_to']=$mission['identifier'];\n\t\t\t\t\t\t\t$searchParameters['product']=$mission['product'];\n\t\t\t\t\t\t\t//echo \"<pre>\";print_r($searchParameters);\n\t\t\t\t\t\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t\t\t\t\t\t$seoMissonDetails=$quoteMission_obj->getMissionDetails($searchParameters);\n\t\t\t\t\t\t\t//echo \"<pre>\";print_r($seoMissonDetails);exit;\n\t\t\t\t\t\t\tif($seoMissonDetails)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$s=0;\n\t\t\t\t\t\t\t\tforeach($seoMissonDetails as $smission)\n\t\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$client_obj=new Ep_Quote_Client();\n\t\t\t\t\t\t\t\t\t$bo_user_details=$client_obj->getQuoteUserDetails($smission['created_by']);\n\t\t\t\t\t\t\t\t\t$seoMissonDetails[$s]['seo_user_name']=$bo_user_details[0]['first_name'].' '.$bo_user_details[0]['last_name'];\n\n\t\t\t\t\t\t\t\t\t$seoMissonDetails[$s]['comment_time']=time_ago($smission['created_at']);\n\n\t\t\t\t\t\t\t\t\t$seoMissonDetails[$s]['product_type_name']=$this->producttype_array[$smission['product_type']];\n\n\t\t\t\t\t\t\t\t\t$prodMissionObj=new Ep_Quote_ProdMissions();\n\n\t\t\t\t\t\t\t\t\t$searchParameters['quote_mission_id']=$smission['identifier'];\n\t\t\t\t\t\t\t\t\t$prodMissionDetails=$prodMissionObj->getProdMissionDetails($searchParameters);\n\t\t\t\t\t\t\t\t\t//echo \"<pre>\";print_r($prodMissionDetails);exit;\n\n\t\t\t\t\t\t\t\t\tif($prodMissionDetails)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$seoMissonDetails[$s]['prod_mission_details']=$prodMissionDetails;\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\t//getting suggested mission Details for seo missions\n\t\t\t\t\t\t\t\t\t\tif($smission['sales_suggested_missions'])\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$archmission_obj=new Ep_Quote_Mission();\n\t\t\t\t\t\t\t\t\t\t\t$archParameters['mission_id']=$smission['sales_suggested_missions'];\n\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details=$archmission_obj->getMissionDetails($archParameters);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif($suggested_mission_details)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tforeach($suggested_mission_details as $key=>$suggested_mission)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t$sug_mission_length=$smission['volume']*($smission['nb_words']/$suggested_mission['article_length']);\n\t\t\t\t\t\t\t\t\t\t\t\t\t$prod_mission_length=round($suggested_mission['mission_length']*($sug_mission_length/$suggested_mission['num_of_articles']));\n\t\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['mission_length']=$prod_mission_length;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['mission_length']=round(($smission['mission_length']*90)/100);\n\t\t\t\t\t\t\t\t\t\t\t\t\t$staff_setup_length=ceil(($smission['mission_length']*10)/100);\n\t\t\t\t\t\t\t\t\t\t\t\t\t$staff_setup_length=$staff_setup_length ? $staff_setup_length :1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$staff_setup_length=$staff_setup_length < 10 ? $staff_setup_length :10;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['staff_setup_length']=$staff_setup_length < 10 ? $staff_setup_length :10;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//pre-fill staff calculations\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//total mission words\n\t\t\t\t\t\t\t\t\t\t\t\t\t$mission_volume=$smission['volume'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$mission_nb_words=$smission['nb_words'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$total_mission_words=($mission_volume*$mission_nb_words);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t//words that can write per writer with in delivery weeks\n\t\t\t\t\t\t\t\t\t\t\t\t\t$sales_delivery_time=$smission['mission_length_option']=='hours' ? ($smission['mission_length']/24) : $smission['mission_length'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$sales_delivery_week=ceil($sales_delivery_time/7);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t$mission_product=$smission['product_type'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$articles_perweek=$this->configval['max_writer_'.$mission_product];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$words_perweek_peruser=$articles_perweek*250;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$words_peruser_perdelivery=$sales_delivery_week*$words_perweek_peruser;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//wrting and proofreading staff calculations\n\t\t\t\t\t\t\t\t\t\t\t\t\t$writing_staff=round($total_mission_words/$words_peruser_perdelivery);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(!$writing_staff || $writing_staff <1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$writing_staff=1;\t\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['writing_staff']=$writing_staff;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t$seoMissonDetails[$s]['suggested_mission_details']=$suggested_mission_details;\t\n\t\t\t\t\t\t\t\t\t\t\t\t//staff time details\n\t\t\t\t\t\t\t\t\t\t\t\t$seoMissonDetails[$s]['staff_time']=$staff_setup_length;\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//echo \"<pre>\";print_r($seoMissonDetails);exit;\n\t\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t\t\t\t$s++;\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t$missonDetails[$m]['seoMissions']=$seoMissonDetails;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//echo \"<pre>\";print_r($missonDetails);exit;\n\n\t\t\t\t\t\t\t$prodMissionObj=new Ep_Quote_ProdMissions();\n\n\t\t\t\t\t\t\t$searchParameters['quote_mission_id']=$mission['identifier'];\n\t\t\t\t\t\t\t$prodMissionDetails=$prodMissionObj->getProdMissionDetails($searchParameters);\n\t\t\t\t\t\t\t//echo \"<pre>\";print_r($prodMissionDetails);exit;\n\n\t\t\t\t\t\t\tif($prodMissionDetails)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$p=0;\n\t\t\t\t\t\t\t\tforeach($prodMissionDetails as $mission)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//mission versionings if version is gt 1\n\t\t\t\t\t\t\t\t\tif($quote['version']>1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$previousVersion=($quote['version']-1);\n\n\t\t\t\t\t\t\t\t\t\t$prodMissionObj=new Ep_Quote_ProdMissions();\n\t\t\t\t\t\t\t\t\t\t$previousMissionDetails=$prodMissionObj->getMissionVersionDetails($mission['identifier'],$previousVersion);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif($previousMissionDetails)\n\t\t\t\t\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t//Get All version details of a mission\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$allVersionMissionDetails=$prodMissionObj->getMissionVersionDetails($mission['identifier']);\n\n\t\t\t\t\t\t\t\t\t\t\tif($allVersionMissionDetails)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$table_start='<table class=\"table quote-history table-striped\">';\n\t\t\t\t\t\t\t\t\t\t\t\t$table_end='</table>';\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t$price_versions=$mission_length_versions='';\n\t\t\t\t\t\t\t\t\t\t\t\t$staff_versions=$staff_length_versions='';\n\n\t\t\t\t\t\t\t\t\t\t\t\tforeach($allVersionMissionDetails as $versions)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t\t\t\t \t$created_at=date(\"d/m/Y\", strtotime($versions['created_at']));\n\t\t\t\t\t\t\t\t\t\t\t\t \t$version_text='v'.$versions['version'];\t\t\t\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t\t\t\t \t$staff_versions.=\"<tr><td>\".$versions['staff'].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\n\t\t\t\t\t\t\t\t\t\t\t\t \t$price_versions.=\"<tr><td>\".zero_cut($versions['cost'],2).\" &\". $versions['currency'].\";</td><td>$created_at</td><td>$version_text</td></tr>\";\n\n\t\t\t\t\t\t\t\t\t\t\t\t \t$staff_length_option=$versions['staff_time_option']=='days' ? ' Jours' : ' Hours';\n\n\t\t\t\t\t\t\t\t\t\t\t\t \t$staff_length_versions.=\"<tr><td>\".$versions['staff_time'].\" $staff_length_option</td><td>$created_at</td><td>$version_text</td></tr>\";\n\n\t\t\t\t\t\t\t\t\t\t\t\t \t$mission_length_option=$versions['delivery_option']=='days' ? ' Jours' : ' Hours';\n\n\t\t\t\t\t\t\t\t\t\t\t\t \t$mission_length_versions.=\"<tr><td>\".$versions['delivery_time'].\" $mission_length_option</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\t\t\t//checking the version differences\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\t\tif($mission['cost'] !=$previousMissionDetails[0]['cost'])\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['cost_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['price_versions']=$table_start.$price_versions.$table_end;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif($mission['staff'] !=$previousMissionDetails[0]['staff'])\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['staff_difference']='yes';\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['staff_versions']=$table_start.$staff_versions.$table_end;\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t$current_mission_lenght=$mission['delivery_option']=='hours' ? ($mission['delivery_time']/24) : $mission['delivery_time'];\n\t\t\t\t\t\t\t\t\t\t\t$previous_mission_lenght=$previousMissionDetails[0]['delivery_option']=='hours' ? ($previousMissionDetails[0]['delivery_time']/24) : $previousMissionDetails[0]['delivery_time'];\n\t\t\t\t\t\t\t\t\t\t\tif($current_mission_lenght !=$previous_mission_lenght)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['mission_length_difference']='yes';\t\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['mission_length_versions']=$table_start.$mission_length_versions.$table_end;\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t$current_staff_lenght=$mission['staff_time_option']=='hours' ? ($mission['staff_time']/24) : $mission['staff_time'];\n\t\t\t\t\t\t\t\t\t\t\t$previous_staff_lenght=$previousMissionDetails[0]['staff_time_option']=='hours' ? ($previousMissionDetails[0]['staff_time']/24) : $previousMissionDetails[0]['staff_time'];\n\t\t\t\t\t\t\t\t\t\t\tif($current_staff_lenght !=$previous_staff_lenght)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['staff_length_difference']='yes';\t\n\t\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['staff_length_versions']=$table_start.$staff_length_versions.$table_end;\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\t\t\t\t\t\t$prodMissionDetails[$p]['previousMissionDetails']=$previousMissionDetails;\n\t\t\t\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$p++;\n\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t$missonDetails[$m]['prod_mission_details']=$prodMissionDetails;\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//getting suggested mission Details for quote missions\n\t\t\t\t\t\t\t\tif($mission['sales_suggested_missions'])\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$archmission_obj=new Ep_Quote_Mission();\n\t\t\t\t\t\t\t\t\t$archParameters['mission_id']=$mission['sales_suggested_missions'];\n\t\t\t\t\t\t\t\t\t$suggested_mission_details=$archmission_obj->getMissionDetails($archParameters);\n\t\t\t\t\t\t\t\t\tif($suggested_mission_details)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tforeach($suggested_mission_details as $key=>$suggested_mission)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif($suggested_mission['writing_cost_before_signature_currency']!=$quote['sales_suggested_currency'])\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$conversion=$quote['conversion'];\n\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['writing_cost_before_signature']=($suggested_mission['writing_cost_before_signature']*$conversion);\n\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['correction_cost_before_signature']=($suggested_mission['correction_cost_before_signature']*$conversion);\n\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['other_cost_before_signature']=($suggested_mission['other_cost_before_signature']*$conversion);\n\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['unit_price']=($suggested_mission['selling_price']*$conversion);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['unit_price']=($suggested_mission['selling_price']);\n\n\n\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['mission_length']=round(($mission['mission_length']*90)/100);\n\t\t\t\t\t\t\t\t\t\t\t$staff_setup_length=ceil(($mission['mission_length']*10)/100);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$staff_setup_length=$staff_setup_length ? $staff_setup_length :1;\n\t\t\t\t\t\t\t\t\t\t\t$staff_setup_length=$staff_setup_length < 10 ? $staff_setup_length :10;\n\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['staff_setup_length']=$staff_setup_length < 10 ? $staff_setup_length :10;\n\n\t\t\t\t\t\t\t\t\t\t\t//pre-fill staff calculations\n\n\t\t\t\t\t\t\t\t\t\t\t//total mission words\n\t\t\t\t\t\t\t\t\t\t\t$mission_volume=$mission['volume'];\n\t\t\t\t\t\t\t\t\t\t\t$mission_nb_words=$mission['nb_words'];\n\t\t\t\t\t\t\t\t\t\t\t$total_mission_words=($mission_volume*$mission_nb_words);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t//words that can write per writer with in delivery weeks\n\t\t\t\t\t\t\t\t\t\t\t$sales_delivery_time=$mission['mission_length_option']=='hours' ? ($mission['mission_length']/24) : $mission['mission_length'];\n\t\t\t\t\t\t\t\t\t\t\t$sales_delivery_week=ceil($sales_delivery_time/7);\n\n\t\t\t\t\t\t\t\t\t\t\t$mission_product=$mission['product_type'];\n\t\t\t\t\t\t\t\t\t\t\tif($mission['product_type']=='autre')\n\t\t\t\t\t\t\t\t\t\t\t\t$mission_product='article_seo';\n\n\t\t\t\t\t\t\t\t\t\t\t$articles_perweek=$this->configval['max_writer_'.$mission_product];\n\t\t\t\t\t\t\t\t\t\t\t$words_perweek_peruser=$articles_perweek*250;\n\t\t\t\t\t\t\t\t\t\t\t$words_peruser_perdelivery=$sales_delivery_week*$words_perweek_peruser;\n\n\t\t\t\t\t\t\t\t\t\t\t//wrting and proofreading staff calculations\n\t\t\t\t\t\t\t\t\t\t\t$writing_staff=round($total_mission_words/$words_peruser_perdelivery);\n\t\t\t\t\t\t\t\t\t\t\tif(!$writing_staff || $writing_staff <1)\n\t\t\t\t\t\t\t\t\t\t\t\t$writing_staff=1;\n\n\t\t\t\t\t\t\t\t\t\t\t$proofreading_staff=round($total_mission_words/($words_peruser_perdelivery*5));\n\t\t\t\t\t\t\t\t\t\t\tif(!$proofreading_staff || $proofreading_staff <1)\n\t\t\t\t\t\t\t\t\t\t\t\t$proofreading_staff=1;\n\n\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['writing_staff']=$writing_staff;\n\t\t\t\t\t\t\t\t\t\t\t$suggested_mission_details[$key]['proofreading_staff']=$proofreading_staff;\n\n\t\t\t\t\t\t\t\t\t\t\t//ENDED\n\t\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['suggested_mission_details']=$suggested_mission_details;\t\n\t\t\t\t\t\t\t\t\t\t//staff time details\n\t\t\t\t\t\t\t\t\t\t$missonDetails[$m]['staff_time']=$staff_setup_length;\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t\t$m++;\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t//echo \"<pre>\";print_r($missonDetails);exit;\n\t\t\t\t\t\t$quoteDetails[$q]['mission_details']=$missonDetails;\n\t\t\t\t\t}\n\t\t\t\t\tif($quote['version']>1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$previousVersion=($quote['version']-1);\n\t\t\t\t\t\t$deletedMissionVersions=$this->deletedMissionVersions($quote['identifier'],$previousVersion,'sales');\n\t\t\t\t\t\tif($deletedMissionVersions)\n\t\t\t\t\t\t\t$quoteDetails[$q]['deletedMissionVersions']=$deletedMissionVersions;\n\t\t\t\t\t}\n\n\t\t\t\t\t//client aims\n\t\t\t\t\t\t$client_aims=explode(\",\",$quote['client_aims']);\n\t\t\t\t\t\t$client_prio=explode(\",\",$quote['client_prio']);\n\t\t\t\t\t\t$client_aims_text='';\n\t\t\t\t\t\tif(count($client_aims)>0 && is_array($client_aims))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tforeach($client_aims as $i=>$aim)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$client_aims_text.='<b>'.ucfirst($aim).'</b> - Prio '.$client_prio[$i].'<br>';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$quoteDetails[$q]['client_aims_text']=$client_aims_text;\t\t\n\n\t\t\t\t\t$q++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->_view->quoteDetails=$quoteDetails;\n\n\t\t\t//echo \"<pre>\";print_r($quoteDetails);exit;\t\t\t\n\n\t\t\t//getting tech mission details\n\t\t\t$tech_obj=new Ep_Quote_TechMissions();\n\t\t\t$searchParameters['quote_id']=$quote_id;\n\t\t\t$techMissionDetails=$tech_obj->getTechMissionDetails($searchParameters);\n\t\t\t//echo \"<pre>\";print_r($techMissionDetails);exit;\n\t\t\tif($techMissionDetails)\n\t\t\t{\n\t\t\t\t$t=0;\n\t\t\t\tforeach($techMissionDetails as $mission)\n\t\t\t\t{\n\t\t\t\t\t$client_obj=new Ep_Quote_Client();\n\t\t\t\t\t$bo_user_details=$client_obj->getQuoteUserDetails($mission['created_by']);\n\t\t\t\t\t$techMissionDetails[$t]['tech_user_name']=$bo_user_details[0]['first_name'].' '.$bo_user_details[0]['last_name'];\n\t\t\t\t\t$techMissionDetails[$t]['comment_time']=time_ago($mission['created_at']);\n\n\t\t\t\t\t//mission versionings if version is gt 1\n\t\t\t\t\tif($quoteDetails[0]['version']>1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$previousVersion=($quoteDetails[0]['version']-1);\n\n\t\t\t\t\t\t$techMissionObj=new Ep_Quote_TechMissions();\n\t\t\t\t\t\t$previousMissionDetails=$techMissionObj->getMissionVersionDetails($mission['identifier'],$quoteDetails[0]['identifier'],$previousVersion);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($previousMissionDetails)\n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Get All version details of a mission\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$allVersionMissionDetails=$techMissionObj->getMissionVersionDetails($mission['identifier'],$quoteDetails[0]['identifier']);\n\t\t\t\t\t\t\tif($allVersionMissionDetails)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$table_start='<table class=\"table quote-history table-striped\">';\n\t\t\t\t\t\t\t\t$table_end='</table>';\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$price_versions=$mission_length_versions='';\n\t\t\t\t\t\t\t\t$title_versions='';\n\n\t\t\t\t\t\t\t\tforeach($allVersionMissionDetails as $versions)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t$created_at=date(\"d/m/Y\", strtotime($versions['created_at']));\n\t\t\t\t\t\t\t\t \t$version_text='v'.$versions['version'];\n\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t$title_versions.=\"<tr><td>\".$versions['title'].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\n\t\t\t\t\t\t\t\t \t$price_versions.=\"<tr><td>\".zero_cut($versions['cost'],2).\" &\". $versions['currency'].\";</td><td>$created_at</td><td>$version_text</td></tr>\";\n\n\t\t\t\t\t\t\t\t \t$mission_length_option=$versions['delivery_option']=='days' ? ' Jours' : ' Hours';\n\n\t\t\t\t\t\t\t\t \t$mission_length_versions.=\"<tr><td>\".$versions['delivery_time'].\" $mission_length_option</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t//checking the version differences\n\t\t\t\t\t\t\tif($mission['title'] !=$previousMissionDetails[0]['title'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$techMissionDetails[$t]['title_difference']='yes';\n\t\t\t\t\t\t\t\t$techMissionDetails[$t]['title_versions']=$table_start.$title_versions.$table_end;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\tif($mission['cost'] !=$previousMissionDetails[0]['cost'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$techMissionDetails[$t]['cost_difference']='yes';\n\t\t\t\t\t\t\t\t$techMissionDetails[$t]['price_versions']=$table_start.$price_versions.$table_end;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$current_mission_lenght=$mission['delivery_option']=='hours' ? ($mission['delivery_time']/24) : $mission['delivery_time'];\n\t\t\t\t\t\t\t$previous_mission_lenght=$previousMissionDetails[0]['delivery_option']=='hours' ? ($previousMissionDetails[0]['delivery_time']/24) : $previousMissionDetails[0]['delivery_time'];\n\t\t\t\t\t\t\tif($current_mission_lenght !=$previous_mission_lenght)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$techMissionDetails[$t]['mission_length_difference']='yes';\t\n\t\t\t\t\t\t\t\t$techMissionDetails[$t]['mission_length_versions']=$table_start.$mission_length_versions.$table_end;\n\t\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\t\t$techMissionDetails[$t]['previousMissionDetails']=$previousMissionDetails;\n\t\t\t\t\t\t}\t\n\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$techMissionDetails[$t]['files'] = \"\";\n\t\t\t\t\tif($mission['documents_path'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$filesarray = array('documents_path'=>$mission['documents_path'],'documents_name'=>$mission['documents_name'],'id'=>$mission['identifier'],'delete'=>false);\n\t\t\t\t\t\t$files = $this->getTechFiles($filesarray);\n\t\t\t\t\t\t$techMissionDetails[$t]['files'] = $files;\n\t\t\t\t\t}\n\n\t\t\t\t\t$t++;\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\t\t$this->_view->techMissionDetails=$techMissionDetails;\n\t\t\t}\n\n\t\t\t//ALL language list\n\t\t\t$language_array=$this->_arrayDb->loadArrayv2(\"EP_LANGUAGES\", $this->_lang);\n \tnatsort($language_array);\n \t$this->_view->ep_language_list=$language_array;\n\n\t\t\t//getting seo mission details\n\t\t\t//getting mission details\n\t\t\tunset($searchParameters);\n\t\t\t$searchParameters['quote_id']=$quote_id;\n\t\t\t$searchParameters['misson_user_type']='seo';\n\t\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t\t$seoMissionDetails=$quoteMission_obj->getMissionDetails($searchParameters);\n\t\t\tif($seoMissionDetails)\n\t\t\t{\n\t\t\t\t$s=0;\n\t\t\t\tforeach($seoMissionDetails as $mission)\n\t\t\t\t{\n\t\t\t\t\tif($mission['documents_path'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$filesarray = array('documents_path'=>$mission['documents_path'],'documents_name'=>$mission['documents_name'],'id'=>$mission['identifier'],'delete'=>false);\n\t\t\t\t\t\t$files = $this->getSeoFiles($filesarray);\n\t\t\t\t\t\t$seoMissionDetails[$s]['files'] = $files;\n\t\t\t\t\t}\n\t\t\t\t\t$client_obj=new Ep_Quote_Client();\n\t\t\t\t\t$bo_user_details=$client_obj->getQuoteUserDetails($mission['created_by']);\n\t\t\t\t\t$seoMissionDetails[$s]['seo_user_name']=$bo_user_details[0]['first_name'].' '.$bo_user_details[0]['last_name'];\n\n\t\t\t\t\t$seoMissionDetails[$s]['comment_time']=time_ago($mission['created_at']);\n\n\t\t\t\t\t$seoMissionDetails[$s]['product_name']=$this->seo_product_array[$mission['product']];\n\n\t\t\t\t\t//mission versionings if version is gt 1\n\t\t\t\t\tif($quoteDetails[0]['version']>1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$previousVersion=($quoteDetails[0]['version']-1);\n\n\t\t\t\t\t\t$quoteMissionObj=new Ep_Quote_QuoteMissions();\n\t\t\t\t\t\t$previousMissionDetails=$quoteMissionObj->getMissionVersionDetails($mission['identifier'],$previousVersion,'seo');\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($previousMissionDetails)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tforeach($previousMissionDetails as $key=>$vmission)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['product_name']=$this->seo_product_array[$vmission['product']];\t\t\t\n\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['language_source_name']=$this->getLanguageName($vmission['language_source']);\n\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['product_type_name']=$this->producttype_array[$vmission['product_type']];\n\t\t\t\t\t\t\t\tif($vmission['language_dest'])\n\t\t\t\t\t\t\t\t\t$previousMissionDetails[$key]['language_dest_name']=$this->getLanguageName($vmission['language_dest']);\n\n\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t\t//Get All version details of a mission\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$allVersionMissionDetails=$quoteMissionObj->getMissionVersionDetails($mission['identifier'],NULL,'seo');\n\t\t\t\t\t\t\tif($allVersionMissionDetails)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$table_start='<table class=\"table quote-history table-striped\">';\n\t\t\t\t\t\t\t\t$table_end='</table>';\n\t\t\t\t\t\t\t\t$product_versions=$language_versions=$product_type_versions=$volume_versions=$nb_words_versions='';\n\t\t\t\t\t\t\t\t$price_versions=$mission_length_versions='';\n\n\t\t\t\t\t\t\t\tforeach($allVersionMissionDetails as $versions)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t \tif($versions['product']=='translation')\n\t\t\t\t\t\t\t\t \t\t$language= $this->getLanguageName($versions['language_source']).\" > \".$this->getLanguageName($vmission['language_dest']);\n\t\t\t\t\t\t\t\t \telse\n\t\t\t\t\t\t\t\t \t\t$language= $this->getLanguageName($versions['language_source']);\n\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t$created_at=date(\"d/m/Y\", strtotime($versions['created_at']));\n\t\t\t\t\t\t\t\t \t$version_text='v'.$versions['version'];\n\n\t\t\t\t\t\t\t\t \t$language_versions.=\"<tr><td>$language</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t \t$product_versions.=\"<tr><td>\".$this->seo_product_array[$versions['product']].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t \t$product_type_versions.=\"<tr><td>\".$this->producttype_array[$versions['product_type']].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t \t$volume_versions.=\"<tr><td>\".$versions['volume'].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t \t$nb_words_versions.=\"<tr><td>\".$versions['nb_words'].\"</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t \t$price_versions.=\"<tr><td>\".zero_cut($versions['cost'],2).\" &\". $versions['sales_suggested_currency'].\";</td><td>$created_at</td><td>$version_text</td></tr>\";\n\n\t\t\t\t\t\t\t\t \t$mission_length_option=$this->duration_array[$versions['mission_length_option']];//$versions['mission_length_option']=='days' ? ' Jours' : ' Hours';\n\n\t\t\t\t\t\t\t\t \t$mission_length_versions.=\"<tr><td>\".$versions['mission_length'].\" $mission_length_option</td><td>$created_at</td><td>$version_text</td></tr>\";\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t//checking the version differences\n\t\t\t\t\t\t\tif($mission['language_source'] !=$previousMissionDetails[0]['language_source'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['language_difference']='yes';\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['language_versions']=$table_start.$language_versions.$table_end;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($mission['language_dest'] !=$previousMissionDetails[0]['language_dest'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['language_difference']='yes';\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['language_versions']=$table_start.$language_versions.$table_end;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif($mission['product'] !=$previousMissionDetails[0]['product'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['product_difference']='yes';\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['product_versions']=$table_start.$product_versions.$table_end;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tif($mission['product_type'] !=$previousMissionDetails[0]['product_type'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['product_type_difference']='yes';\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['product_type_versions']=$table_start.$product_type_versions.$table_end;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($mission['volume'] !=$previousMissionDetails[0]['volume'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['volume_difference']='yes';\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['volume_versions']=$table_start.$volume_versions.$table_end;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($mission['nb_words'] !=$previousMissionDetails[0]['nb_words'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['nb_words_difference']='yes';\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['nb_words_versions']=$table_start.$nb_words_versions.$table_end;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($mission['cost'] !=$previousMissionDetails[0]['cost'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['unit_price_difference']='yes';\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['price_versions']=$table_start.$price_versions.$table_end;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$current_mission_lenght=$mission['mission_length_option']=='hours' ? ($mission['mission_length']/24) : $mission['mission_length'];\n\t\t\t\t\t\t\t$previous_mission_lenght=$previousMissionDetails[0]['mission_length_option']=='hours' ? ($previousMissionDetails[0]['mission_length']/24) : $previousMissionDetails[0]['mission_length'];\n\t\t\t\t\t\t\tif($current_mission_lenght !=$previous_mission_lenght)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['mission_length_difference']='yes';\t\n\t\t\t\t\t\t\t\t$seoMissionDetails[$s]['mission_length_versions']=$table_start.$mission_length_versions.$table_end;\n\t\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\t\t$seoMissionDetails[$s]['previousMissionDetails']=$previousMissionDetails;\n\t\t\t\t\t\t}\t\n\n\t\t\t\t\t}\n\n\t\t\t\t\t$s++;\n\t\t\t\t}\t\n\t\t\t\t$this->_view->seoMissionDetails=$seoMissionDetails;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//echo \"<pre>\";print_r($seoMissionDetails);exit;\n\n\t\treturn $html=$this->_view->renderHtml('prod-quote-view-details'); \n\n\t\t\n\t}", "abstract protected function extractProductDetail();", "function zed_getquoteforbookshelf()\n{\n $someObj = new stdClass;\n $zedPage = get_page_by_path('zed-book-club');\n $someObj->quotation = get_field('quotation', $zedPage->ID);\n $someObj->quotation_attribution = get_field('quotation_attribution', $zedPage->ID);\n return $someObj;\n}", "public function getDiscountDescription();", "public function getContent()\n {\n $objModule = new MpSellerInvoice();\n $invoiceAddressPatternRules = Tools::jsonDecode(Configuration::get('PS_INVCE_INVOICE_ADDR_RULES'), true);\n $deliveryAddressPatternRules = Tools::jsonDecode(Configuration::get('PS_INVCE_DELIVERY_ADDR_RULES'), true);\n $invoiceAddress = new Address((int) $this->order->id_address_invoice);\n $formattedInvoiceAddress = AddressFormat::generateAddress($invoiceAddress, $invoiceAddressPatternRules, '<br />', ' ');\n $deliveryAddress = null;\n $formattedDeliveryAddress = '';\n $deliveryAddress = new Address((int) $this->order->id_address_delivery);\n $formattedDeliveryAddress = AddressFormat::generateAddress($deliveryAddress, $deliveryAddressPatternRules, '<br />', ' ');\n $customer = new Customer((int) $this->order->id_customer);\n $orderDetails = $this->order->getProducts();\n\n $sellerTotalProducts = 0;\n // customize orderDetails to maintain tax\n foreach ($orderDetails as $key => $row) {\n // Add information for virtual product\n if ($orderDetails[$key]['download_hash'] && !empty($row['download_hash'])) {\n $orderDetails[$key]['filename'] = ProductDownload::getFilenameFromIdProduct((int) $row['product_id']);\n // Get the display filename\n $orderDetails[$key]['display_filename'] = ProductDownload::getFilenameFromFilename($row['filename']);\n }\n $orderDetails[$key]['id_address_delivery'] = $this->order->id_address_delivery;\n /* Ecotax */\n $roundMode = $this->order->round_mode;\n $orderDetails[$key]['ecotax_tax_excl'] = $row['ecotax']; // alias for coherence\n $orderDetails[$key]['ecotax_tax_incl'] = $row['ecotax'] * (100 + $row['ecotax_tax_rate']) / 100;\n $row['ecotax_tax_incl'] = $row['ecotax'] * (100 + $row['ecotax_tax_rate']) / 100;\n $row['ecotax_tax_excl'] = $row['ecotax'];\n $orderDetails[$key]['ecotax_tax'] = $row['ecotax_tax_incl'] - $row['ecotax_tax_excl'];\n if ($roundMode == Order::ROUND_ITEM) {\n $row['ecotax_tax_incl'] = Tools::ps_round($row['ecotax_tax_incl'], _PS_PRICE_COMPUTE_PRECISION_, $roundMode);\n }\n $orderDetails[$key]['total_ecotax_tax_excl'] = $row['ecotax_tax_excl'] * $row['product_quantity'];\n $orderDetails[$key]['total_ecotax_tax_incl'] = $row['ecotax_tax_incl'] * $row['product_quantity'];\n $row['total_ecotax_tax_incl'] = $row['ecotax_tax_incl'] * $row['product_quantity'];\n $row['total_ecotax_tax_excl'] = $row['ecotax_tax_excl'] * $row['product_quantity'];\n $orderDetails[$key]['total_ecotax_tax'] = $row['total_ecotax_tax_incl'] - $row['total_ecotax_tax_excl'];\n $row['total_ecotax_tax'] = $row['total_ecotax_tax_incl'] - $row['total_ecotax_tax_excl'];\n $row['ecotax_tax'] = $row['ecotax_tax_incl'] - $row['ecotax_tax_excl'];\n foreach (array(\n 'ecotax_tax_excl',\n 'ecotax_tax_incl',\n 'ecotax_tax',\n 'total_ecotax_tax_excl',\n 'total_ecotax_tax_incl',\n 'total_ecotax_tax',\n ) as $ecotaxfield) {\n $orderDetails[$key][$ecotaxfield] = Tools::ps_round($row[$ecotaxfield], _PS_PRICE_COMPUTE_PRECISION_, $roundMode);\n }\n // Aliases\n $orderDetails[$key]['unit_price_tax_excl_including_ecotax'] = $row['unit_price_tax_excl'];\n $orderDetails[$key]['unit_price_tax_incl_including_ecotax'] = $row['unit_price_tax_incl'];\n $orderDetails[$key]['total_price_tax_excl_including_ecotax'] = $row['total_price_tax_excl'];\n $orderDetails[$key]['total_price_tax_incl_including_ecotax'] = $row['total_price_tax_incl'];\n }\n\n $hasDiscount = false;\n foreach ($orderDetails as $id => &$orderDetail) {\n if ($this->id_seller == 0) {\n $isBelongToSeller = $this->getSellerProductInfoByProductId($orderDetail['product_id']);\n //sending admin invoice then check config if seller invoice enabled and product is seller product then unset otherwise send seller product in admin invoice bescause seller invoice is disabled\n if ($isBelongToSeller && Configuration::get('MP_SELLER_INVOICE_ACTIVE') == 1) {\n unset($orderDetails[$id]);\n continue;\n }\n } else {\n $isBelongToSeller = $this->getSellerProductInfo($orderDetail['product_id']);\n if (!$isBelongToSeller) {\n unset($orderDetails[$id]);\n continue;\n }\n }\n // Find out if column 'price before discount' is required\n if ($orderDetail['reduction_amount_tax_excl'] > 0) {\n $hasDiscount = true;\n $orderDetail['unit_price_tax_excl_before_specific_price'] = $orderDetail['unit_price_tax_excl_including_ecotax'] + $orderDetail['reduction_amount_tax_excl'];\n } elseif ($orderDetail['reduction_percent'] > 0) {\n $hasDiscount = true;\n $orderDetail['unit_price_tax_excl_before_specific_price'] = (100 * $orderDetail['unit_price_tax_excl_including_ecotax']) / (100 - $orderDetail['reduction_percent']);\n }\n if (isset($orderDetail['unit_price_tax_excl_before_specific_price'])) {\n $orderDetail['unit_price_tax_excl_before_specific_price'] = Tools::displayPrice($orderDetail['unit_price_tax_excl_before_specific_price'], $this->currency);\n }\n // Set tax_code\n $taxes = OrderDetail::getTaxListStatic($id);\n $taxTemp = array();\n foreach ($taxes as $tax) {\n $obj = new Tax($tax['id_tax']);\n $taxTemp[] = sprintf($objModule->l('%1$s%2$s%%'), ($obj->rate + 0), '&nbsp;');\n }\n $sellerTotalProducts += $orderDetail['total_price_tax_excl'];\n $orderDetail['order_detail_tax'] = $taxes;\n $orderDetail['order_detail_tax_label'] = implode(', ', $taxTemp);\n $sellerOrder = $this->getProductCommissionDetail($orderDetail['product_id'], $orderDetail['product_attribute_id']);\n if ($sellerOrder) {\n $orderDetails[$id]['admin_commission'] = Tools::displayPrice($sellerOrder['admin_commission'], $this->currency);\n $orderDetails[$id]['admin_commission_tax'] = Tools::displayPrice($sellerOrder['admin_tax'], $this->currency);\n $orderDetails[$id]['seller_amount'] = Tools::displayPrice($sellerOrder['seller_amount'], $this->currency);\n $orderDetails[$id]['seller_amount_tax'] = Tools::displayPrice($sellerOrder['seller_tax'], $this->currency);\n $orderDetails[$id]['order_total_commission'] = Tools::displayPrice($sellerOrder['admin_commission'] + $sellerOrder['admin_tax'], $this->currency);\n }\n unset($sellerOrder);\n }\n\n unset($taxTemp);\n unset($orderDetail);\n // calculating seller voucher if applied\n $mpVoucher = WkMpOrderVoucher::getVoucherDetailByIdSeller($this->order->id, $this->id_seller);\n $voucherTotal = 0;\n if ($mpVoucher) {\n foreach ($mpVoucher as &$voucher) {\n $voucherTotal = $voucherTotal + $voucher['voucher_value'];\n $voucher['voucher_value'] = Tools::displayPrice($voucher['voucher_value'], $this->currency);\n }\n }\n // add product image in invoice\n if (Configuration::get('PS_PDF_IMG_INVOICE')) {\n foreach ($orderDetails as &$orderDetail) {\n if ($this->id_seller == 0) {\n $isBelongToSeller = $this->getSellerProductInfoByProductId($orderDetail['product_id']);\n //sending admin invoice then check config if seller invoice enabled and product is seller product then unset otherwise send seller product in admin invoice bescause seller invoice is disabled\n if ($isBelongToSeller && Configuration::get('MP_SELLER_INVOICE_ACTIVE') == 1) {\n unset($orderDetails[$id]);\n continue;\n }\n } else {\n $isBelongToSeller = $this->getSellerProductInfo($orderDetail['product_id']);\n if (!$isBelongToSeller) {\n unset($orderDetails[$id]);\n continue;\n }\n }\n if ($orderDetail['image'] != null) {\n $name = 'product_mini_'.(int) $orderDetail['product_id'].(isset($orderDetail['product_attribute_id']) ? '_'.(int) $orderDetail['product_attribute_id'] : '').'.jpg';\n $path = _PS_PROD_IMG_DIR_.$orderDetail['image']->getExistingImgPath().'.jpg';\n $orderDetail['image_tag'] = preg_replace(\n '/\\.*'.preg_quote(__PS_BASE_URI__, '/').'/',\n _PS_ROOT_DIR_.DIRECTORY_SEPARATOR,\n ImageManager::thumbnail($path, $name, 45, 'jpg', false),\n 1\n );\n if (file_exists(_PS_TMP_IMG_DIR_.$name)) {\n $orderDetail['image_size'] = getimagesize(_PS_TMP_IMG_DIR_.$name);\n } else {\n $orderDetail['image_size'] = false;\n }\n }\n }\n unset($orderDetail); // don't overwrite the last order_detail later\n }\n $cartRules = $this->order->getCartRules($this->order->id);\n $freeShipping = false;\n foreach ($cartRules as $key => $cartRule) {\n if ($cartRule['free_shipping']) {\n $freeShipping = true;\n /*\n * Adjust cart rule value to remove the amount of the shipping.\n * We're not interested in displaying the shipping discount as it is already shown as \"Free Shipping\".\n */\n $cartRules[$key]['value_tax_excl'] -= $this->order->total_shipping_tax_excl;\n $cartRules[$key]['value'] -= $this->order->total_shipping_tax_incl;\n /*\n * Don't display cart rules that are only about free shipping and don't create\n * a discount on products.\n */\n if ($cartRules[$key]['value'] == 0) {\n unset($cartRules[$key]);\n }\n }\n }\n $productTaxes = 0;\n foreach ($this->getProductTaxesBreakdown() as $details) {\n $productTaxes += $details['total_amount'];\n }\n $productDiscountsTaxExcl = $this->order->total_discounts_tax_excl;\n $productDiscountsTaxIncl = $this->order->total_discounts_tax_incl;\n if ($freeShipping) {\n $productDiscountsTaxExcl -= $this->order->total_shipping_tax_excl;\n $productDiscountsTaxIncl -= $this->order->total_shipping_tax_incl;\n }\n $productsAfterDiscountsTaxExcl = $this->order->total_products - $productDiscountsTaxExcl;\n $productsAfterDiscountsTaxIncl = $this->order->total_products_wt - $productDiscountsTaxIncl;\n $shippingTaxExcl = $freeShipping ? 0 : $this->order->total_shipping_tax_excl;\n $shippingTaxIncl = $freeShipping ? 0 : $this->order->total_shipping_tax_incl;\n $shippingTaxes = $shippingTaxIncl - $shippingTaxExcl;\n $wrappingTaxes = $this->order->total_wrapping_tax_incl - $this->order->total_wrapping_tax_excl;\n $totalTaxes = $this->order->total_paid_tax_incl - $this->order->total_paid_tax_excl;\n $free = 1;\n if ($shippingTaxExcl > 0) {\n $free = 0;\n }\n $footer = array(\n 'products_before_discounts_tax_excl' => $sellerTotalProducts,\n 'product_discounts_tax_excl' => $productDiscountsTaxExcl,\n 'products_after_discounts_tax_excl' => $productsAfterDiscountsTaxExcl,\n 'products_before_discounts_tax_incl' => $this->order->total_products_wt,\n 'product_discounts_tax_incl' => $productDiscountsTaxIncl,\n 'products_after_discounts_tax_incl' => $productsAfterDiscountsTaxIncl,\n 'product_taxes' => $productTaxes,\n 'shipping_tax_excl' => $shippingTaxExcl,\n 'shipping_taxes' => $shippingTaxes,\n 'shipping_tax_incl' => $shippingTaxIncl,\n 'wrapping_tax_excl' => $this->order->total_wrapping_tax_excl,\n 'wrapping_taxes' => $wrappingTaxes,\n 'wrapping_tax_incl' => $this->order->total_wrapping_tax_incl,\n 'ecotax_taxes' => $totalTaxes - $productTaxes - $wrappingTaxes - $shippingTaxes,\n 'total_taxes' => $totalTaxes,\n 'total_paid_tax_excl' => $this->order->total_paid_tax_excl,\n 'total_paid_tax_incl' => $this->order->total_paid_tax_incl,\n 'free_shipping' => $free\n );\n foreach ($footer as $key => $value) {\n $footer[$key] = Tools::ps_round($value, _PS_PRICE_COMPUTE_PRECISION_, $this->order->round_mode);\n }\n $roundType = $this->getRoundType($this->order->round_type);\n $displayProductImages = Configuration::get('PS_PDF_IMG_INVOICE');\n $taxExcludedDisplay = Group::getPriceDisplayMethod($customer->id_default_group);\n $layout = $this->computeLayout(array('has_discount' => $hasDiscount));\n $legalFreeText = Hook::exec('displayInvoiceLegalFreeText', array('order' => $this->order));\n if (!$legalFreeText) {\n $legalFreeText = Configuration::get('PS_INVOICE_LEGAL_FREE_TEXT', (int) Context::getContext()->language->id, null, (int) $this->order->id_shop);\n }\n // Calculate all the seller and admin amount from the order\n $totalAdminCommission = $totalAdminCommissionTax = $sellerTotal = $sellerTotalTax = 0;\n $objOrderDetail = new WkMpSellerOrderDetail();\n $sellerOrderDetail = $objOrderDetail->getSellerProductFromOrder($this->order->id, $this->id_seller_customer);\n if ($sellerOrderDetail) {\n foreach ($sellerOrderDetail as $sellerDetail) {\n if (isset($orderDetails[$sellerDetail['id_order_detail']])) {\n $orderDetails[$sellerDetail['id_order_detail']]['commission_rate'] = Tools::ps_round(\n $sellerDetail['commission_rate'],\n 2\n );\n }\n $totalAdminCommission += $sellerDetail['admin_commission'];\n $totalAdminCommissionTax += $sellerDetail['admin_tax'];\n $sellerTotal += $sellerDetail['seller_amount'];\n $sellerTotalTax += $sellerDetail['seller_tax'];\n }\n }\n $sellerCommission = new WkMpCommission();\n $commissionRate = $sellerCommission->getCommissionRate($this->id_seller_customer);\n if (!$commissionRate) {\n $commissionRate = Configuration::get('WK_MP_GLOBAL_COMMISSION');\n }\n $objCurrency = new Currency($this->order->id_currency);\n if ($orderDetails) {\n foreach ($orderDetails as $key => $value) {\n $orderDetails[$key]['unit_price_tax_excl'] = Tools::displayPrice($value['unit_price_tax_excl'], $objCurrency);\n $orderDetails[$key]['ecotax_tax_excl'] = Tools::displayPrice($value['ecotax_tax_excl'], $objCurrency);\n $orderDetails[$key]['unit_price_tax_incl'] = Tools::displayPrice($value['unit_price_tax_incl'], $objCurrency);\n $orderDetails[$key]['ecotax_tax_incl'] = Tools::displayPrice($value['ecotax_tax_incl'], $objCurrency);\n $orderDetails[$key]['total_price_tax_excl'] = Tools::displayPrice($value['total_price_tax_excl'], $objCurrency);\n }\n }\n $sellerTotal = $footer['products_before_discounts_tax_excl'] + $footer['product_taxes'];\n $footer = $this->getFooterFormatedData($footer, $objCurrency, $voucherTotal);\n $carrier = new Carrier($this->order->id_carrier);\n $data = array(\n 'order' => $this->order,\n 'carrierName' => $carrier->name,\n 'currency' => new Currency($this->order->id_currency),\n 'seller_obj' => $this->obj_seller,\n 'order_invoice' => $this->order,\n 'order_details' => $orderDetails,\n 'cart_rules' => $cartRules,\n 'delivery_address' => $formattedDeliveryAddress,\n 'invoice_address' => $formattedInvoiceAddress,\n 'addresses' => array('invoice' => $invoiceAddress, 'delivery' => $deliveryAddress),\n 'tax_excluded_display' => $taxExcludedDisplay,\n 'display_product_images' => $displayProductImages,\n 'layout' => $layout,\n 'tax_tab' => $this->getTaxTabContent(),\n 'customer' => $customer,\n 'footer' => $footer,\n 'sellerTotal' => Tools::displayPrice($sellerTotal, $objCurrency),\n 'sellerTotalTax' => Tools::displayPrice($sellerTotalTax, $objCurrency),\n 'totalAdminCommission' => Tools::displayPrice($totalAdminCommission, $objCurrency),\n 'totalAdminCommissionTax' => Tools::displayPrice($totalAdminCommissionTax, $objCurrency),\n 'totalCommission' => Tools::displayPrice($totalAdminCommissionTax + $totalAdminCommission, $objCurrency),\n 'sellerCommissionRate' => $commissionRate,\n 'ps_price_compute_precision' => _PS_PRICE_COMPUTE_PRECISION_,\n 'round_type' => $roundType,\n 'legal_free_text' => $legalFreeText,\n );\n $this->context->smarty->assign($data);\n $this->context->smarty->assign(array('invoice_admin_seller' => 2));\n //To check admin product or not\n if ($this->id_seller) {\n $this->context->smarty->assign(array('is_admin_product' => $objModule->l('Seller')));\n } else {\n $this->context->smarty->assign(array('is_admin_product' => $objModule->l('Admin')));\n }\n $tpls = $this->getTpls();\n $this->context->smarty->assign($tpls);\n return $this->context->smarty->fetch($this->getTemplate('invoice'));\n }", "public function buildBasketContent()\n {\n $orders = $this->getOrder();\n $basketArray = [];\n\n foreach($orders as $order){\n $portionId = $order['portionId'];\n $portion = Portion::where('id',$portionId)->get();\n $basketArray[] = [['portion'=>$portion], ['units'=> $order['unit']]];\n }\n return $basketArray;\n }", "function printQuote($array) {\n $quoteElements = getRandomQuote($array);\n $quoteItem = '';\n\n $quoteItem .= \"<p class=\\\"quote\\\">\" . $quoteElements['quote'] . \"</p>\";\n $quoteItem .= \"<p class=\\\"source\\\">\" . $quoteElements['source'];\n\n if(isset($quoteElements['citation'])){\n $quoteItem .= \"<span class=\\\"citation\\\">\" . $quoteElements['citation'] . \"</span>\";\n }\n\n if(isset($quoteElements['year'])){\n $quoteItem .= \"<span class=\\\"year\\\">\" . $quoteElements['year'] . \"</span></p>\";\n\n }\n\n return $quoteItem;\n\n\n}", "public function getItemSummary() {\n $return = '';\n\n foreach($this->Items() as $item) {\n $return .= \"{$item->Quantity} x {$item->Title};\\n\";\n }\n\n return $return;\n }", "public function getQuote()\n {\n try {\n //make Guzzle request to Nasa api\n $guzzleClient = new GuzzleClient;\n $response = $guzzleClient->get($this->url);\n $responseBody = $response->getBody();\n $result = json_decode($responseBody);\n } catch (GuzzleRequestException $e){\n $result = json_decode($e->getResponse()->getBody());\n }\n\n return $result;\n }", "public function get_packaging_details() : array {\n\t\t$items = $this->get_packing_items();\n\t\tif ( empty( $items ) ) {\n\t\t\treturn [];\n\t\t}\n\n\t\t$out = [];\n\t\tforeach ( $items as $item ) {\n\t\t\t$item_type = $item->find( '.packaging-title' );\n\t\t\t$value = $item->find( '.packaging-des' );\n\t\t\tif ( ! $item_type || ! $value ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$label = str_replace( ':', '', sanitize_text_field( $item_type[0]->text() ) );\n\t\t\t$slug = sanitize_title( $label );\n\n\t\t\tswitch ( $slug ) {\n\t\t\t\tcase 'package-weight':\n\t\t\t\t\t$value = [\n\t\t\t\t\t\t'weight' => floatval( $value[0]->getAttribute( 'rel' ) ),\n\t\t\t\t\t\t'unit' => apply_filters( 'jays_aliex_get_default_shipping_unit', 'kg', $value ),\n\t\t\t\t\t];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'package-size':\n\t\t\t\t\t$value = [\n\t\t\t\t\t\t'size' => array_combine( [ 'length', 'width', 'height' ], array_map( 'intval', explode( '|', $value[0]->getAttribute( 'rel' ) ) ) ),\n\t\t\t\t\t\t'unit' => apply_filters( 'jays_aliex_get_default_size_unit', 'cm', $value ),\n\t\t\t\t\t];\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$value = $value[0]->text();\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$out[ $slug ] = $value;\n\t\t}\n\n\t\treturn [ 'packaging-details' => $out ];\n\t}", "public function randomQuote()\n {\n $quotes = [\n 'Complexity is your enemy. Any fool can make something complicated. It is hard to make something simple.#Richard Branson',\n 'It takes a lot of effort to make things look effortless.#Mark Pilgrim',\n 'Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.#Antoine de Saint-Exupéry',\n 'Everything should be made as simple as possible, but not simpler.#Albert Einstein',\n 'Three Rules of Work: Out of clutter find simplicity; From discord find harmony; In the middle of difficulty lies opportunity.#Albert Einstein',\n 'There is no greatness where there is not simplicity, goodness, and truth.#Leo Tolstoy',\n 'Think simple as my old master used to say - meaning reduce the whole of its parts into the simplest terms, getting back to first principles.#Frank Lloyd Wright',\n 'Simplicity is indeed often the sign of truth and a criterion of beauty.#Mahlon Hoagland',\n 'Simplicity and repose are the qualities that measure the true value of any work of art.#Frank Lloyd Wright',\n 'Nothing is true, but that which is simple.#Johann Wolfgang von Goethe',\n 'There is a simplicity that exists on the far side of complexity, and there is a communication of sentiment and attitude not to be discovered by careful exegesis of a text.#Patrick Buchanan',\n 'The simplest things are often the truest.#Richard Bach',\n \"If you can't explain it to a six year old, you don't understand it yourself.#Albert Einstein\",\n 'One day I will find the right words, and they will be simple.#Jack Kerouac',\n 'Simplicity is the ultimate sophistication.#Leonardo da Vinci',\n 'Our life is frittered away by detail. Simplify, simplify.#Henry David Thoreau',\n 'The simplest explanation is always the most likely.#Agatha Christie',\n 'Truth is ever to be found in the simplicity, and not in the multiplicity and confusion of things.#Isaac Newton',\n 'Simplicity is a great virtue but it requires hard work to achieve it and education to appreciate it. And to make matters worse: complexity sells better.#Edsger Wybe Dijkstra',\n \"Focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains.#Steve Jobs\",\n 'The ability to simplify means to eliminate the unnecessary so that the necessary may speak.#Hans Hofmann',\n \"I've learned to keep things simple. Look at your choices, pick the best one, then go to work with all your heart.#Pat Riley\",\n 'A little simplification would be the first step toward rational living, I think.#Eleanor Roosevelt',\n \"Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that's creativity.#Charles Mingus\",\n 'Keep it simple, stupid.#Kelly Johnson',\n \"There's a big difference between making a simple product and making a product simple.#Des Traynor\",\n ];\n\n $randomquote = explode('#', $quotes[array_rand($quotes, 1)]);\n\n $quote = sprintf(\"“%s”\\n<cite>— %s</cite>\", $randomquote[0], $randomquote[1]);\n\n return $quote;\n }", "function xgb_generate_quote() {\n\t$quote_collection = array(\n\t\t\t'A pipe gives a wise man time to think and a fool something to put in his mouth.',\n\t\t\t'Never underestimate the power of human stupidity.',\n\t\t\t'Whatever goes around, comes around.',\n\t\t\t'Gold is for the mistress - silver for the maid - Copper for the craftsman, cunning at his trade. But Iron - Cold Iron - is master of them all.',\n\t\t\t'The number of people who agree or disagree with you has absolutely no bearing on whether youre *right*. The universe has a way of deciding that for itself.',\n\t\t\t'The truth of any proposition has nothing to do with its credibility...and vice versa.',\n\t\t\t'Money is a powerful aphrodisiac. But flowers work almost as well.',\n\t\t\t'It may be better to be a live jackal than a dead lion, but it is better still to be a live lion. And usually easier.',\n\t\t\t'Place your clothes and weapons where you can find them in the dark.',\n\t\t\t'An Elephant; A Mouse built to government specifications.',\n\t\t\t'Democracy is based on the assumption that a million men are wiser than one man. Hows that again? I missed something.',\n\t\t\t'Autocracy is based on the assumption that one man is wiser than a million men. Lets play that over again too. Who decides?',\n\t\t\t'Taxes are not levied for the benefit of the taxed.',\n\t\t\t'Money is the sincerest form of flattery.',\n\t\t\t'Women love to be flattered. So do men.',\n\t\t\t'You live and learn. Or you dont live long.',\n\t\t\t'Only a sadistic scoundrel - or a fool - tells the bald truth on social occasions.',\n\t\t\t'Be wary of strong drink. It can make you shoot at tax collectors - and miss.',\n\t\t\t'Natural laws have no pity.',\n\t\t\t'Sin lies only in hurting other people unnecessarily. All other sins are invented nonsense.',\n\t\t\t'Certainly the game is rigged. Dont let that stop you. If you dont bet, you cant win.',\n\t\t\t'Never appeal to a mans better nature. He may not have one. Invoking his self-interest gives you more leverage.',\n\t\t\t'A woman is not a property. Husbands who think otherwise are living in a dreamworld.',\n\t\t\t'Formal courtesy between husband and wife is even more important than it is between strangers.',\n\t\t\t'Your friends will know you better in the first minute you meet then your acquaintances will know you in a thousand years.',\n\t\t\t'Argue for your limitations and, sure enough, theyre yours.',\n\t\t\t'You are never given a wish without also being given the power to make it come true. You may have to work for it though.',\n\t\t\t'Here is a test to find out whether your mission on earth is finished; If youre alive, it isnt.',\n\t\t\t'In order to live free and happily, you must sacrifice boredom. It is not always an easy sacrifice.',\n\t\t\t'Believe it and you are half way there. ~Theodore Roosevelt',\n\t\t\t'There is no limit to how gently you can apply a big hammer, but there definitely is to how hard you can hit with a small one.',\n\t\t\t'Every man is born as many men and dies as a single one. ~Martin Heidegger ',\n\t\t\t'Language is the house of the truth of Being. ~Martin Heidegger ',\n\t\t\t'Man acts as though he were the shaper and master of language, while in fact language remains the master of man. ~Martin Heidegger',\n\t\t\t'The most thought-provoking thing in our thought-provoking time is that we are still not thinking. ~Martin Heidegger ',\n\t\t\t'The possible ranks higher than the actual. ~Martin Heidegger',\n\t\t\t'Unless you change how you are, you will always have what you have got. ~Jim Rohn ',\n\t\t\t'A stumble may prevent a fall. ~English Proverb',\n\t\t\t'There is no limit to what a man can achieve, if he doesnt care who gets the credit. ~Laing Burns, Jr.',\n\t\t\t'Dont waste yourself in rejection, nor bark against the bad, but chant the beauty of the good. ~Ralph Waldo Emerson',\n\t\t\t'The most practical, beautiful, workable philosophy in the world wont work - if you wont. ~Zig Ziglar ',\n\t\t\t'I believe the greater the handicap, the greater the triumph. ~John H. Johnson ',\n\t\t\t'Life shrinks or expands in proportion to ones courage. ~Anais Nin',\n\t\t\t'We dont see things as they are we see them as we are. ~Anais Nin',\n\t\t\t'You cant build a reputation on what you are going to do. ~Henry Ford',\n\t\t\t'The greatest form of maturity is at harvest time. That is when we must learn how to reap without complaint if the amounts are small and how to to reap without apology if the amounts are big. ~Jim Rohn ',\n\t\t\t'People seem not to see that their opinion of the world is also a confession of character. ~Ralph Waldo Emerson',\n\t\t\t'The most successful people are those who are good at plan B. ~James Yorke',\n\t\t\t'Opportunity is missed by most because it is dressed in overalls and looks like work. ~Thomas Alva Edison',\n\t\t\t'The universe is full of magical things, patiently waiting for our wits to grow sharper. ~Eden Phillpotts',\n\t\t\t'Experience is not what happens to a man, it is what a man does with what happens to him. ~Aldous Huxley',\n\t\t\t'Imagination rules the world. ~Napoleon Bonaparte',\n\t\t\t'Adversity has the effect of eliciting talents which, in prosperous circumstances, would have lain dormant. ~Horace',\n\t\t\t'It isnt that they cant see the solution, its that they cant see the problem. ~G.K. Chesterton',\n\t\t\t'Facts are stubborn, but statistics are more pliable. ~Mark Twain ',\n\t\t\t'All truth goes through three steps: First, it is ridiculed. Second, it is violently opposed. Finally, it is accepted as self-evident. ~Arthur Schopenhauer ',\n\t\t\t'An invasion of armies can be resisted; an invasion of ideas cannot be resisted. ~Victor Hugo ',\n\t\t\t'Pain is inevitable but misery is optional. ~Barbara Johnson ',\n\t\t\t'Beware of defining as intelligent only those who share your opinions. ~Ugo Ojetti ',\n\t\t\t'If we knew what it was we were doing, it would not be called research, would it? ~Albert Einstein ',\n\t\t\t'To believe a thing is impossible is to make it so. ~French proverb',\n\t\t\t'Simplicity is the ultimate sophistication. ~Leonardo da Vinci ',\n\t\t\t'To be simple is to be great. ~Ralph Waldo Emerson ',\n\t\t\t'The trouble about man is twofold. He cannot learn truths which are too complicated; he forgets truths which are too simple. ~Dame Rebecca West ',\n\t\t\t'Everything should be as simple as it is, but not simpler. ~Albert Einstein ',\n\t\t\t'That you may retain your self-respect, it is better to displease the people by doing what you know is right, than to temporarily please them by doing what you know is wrong. ~William J. H. Boetcker ',\n\t\t\t'Many of lifes failures are people who did not realize how close they were to success when they gave up. ~Thomas Edison',\n\t\t\t'Hitch your wagon to a star. ~Ralph Waldo Emerson ',\n\t\t\t'If you knew how much work went into it, you wouldnt call it genius. ~Michelangelo',\n\t\t\t'I know God will not give me anything I cant handle. I just wish that He didnt trust me so much. ~Mother Teresa ',\n\t\t\t'If we did the things we are capable of, we would astound ourselves. ~Thomas Edison ',\n\t\t\t);\n\t\n\t$quote = $quote_collection[array_rand($quote_collection)];\n\treturn $quote;\n}", "protected function addQuotes()\n {\n foreach ($this->data->Quotes as &$quote) {\n foreach (['OutboundLeg', 'InboundLeg'] as $leg) {\n if (isset($quote->$leg)) {\n foreach ($quote->$leg->CarrierIds as $key => $carrierId) {\n $carrier = $this->arraySearch($carrierId, $this->data->Carriers, 'CarrierId');\n $quote->Carriers[] = $this->data->Carriers[$carrier];\n }\n if ($this->flattenSingleCarrier === true && \\count($quote->$leg->CarrierIds) === 1) {\n $quote->Carrier = $quote->Carriers[0];\n unset($quote->Carriers);\n }\n foreach (['Origin' => 'OriginId', 'Destination' => 'DestinationId'] as $variable => $search) {\n $place = $this->arraySearch($quote->$leg->$search, $this->data->Places, 'PlaceId');\n $quote->$variable = $this->data->Places[$place];\n }\n }\n if ($this->removeIds === true) {\n unset($quote->$leg->CarrierIds, $quote->$leg->OriginId, $quote->$leg->DestinationId);\n }\n }\n }\n return $this->data->Quotes;\n }", "public function fetchRandomQuote()\n {\n try {\n $offset = rand(0, 5000);\n $endpoint = self::BASE_RANDOM_QUOTE_ENDPOINT . $offset;\n $apikey = strtr(\"Token apikey\", [\n 'apikey' => config('paper_quotes_api_key'),\n ]);\n\n $response = $this->client->get($endpoint, [\n 'headers' => [\n 'Authorization' => $apikey,\n ]\n ])->getBody();\n\n $data = json_decode($response);\n $message = strtr('_quote (by _author with _like like(s)).', [\n '_quote' => $data->results[0]->quote,\n '_author' => $data->results[0]->author === \"\" ? \"Anonymous\" : $data->results[0]->author,\n '_like' => $data->results[0]->likes,\n ]);\n\n return $message;\n } catch (Exception $exception) {\n return \"Error! Please try again\";\n }\n }", "function load_avaialable_special_offers($order) {\n $special_offers = array();\n if (!empty($order->commerce_line_items)) {\n $order_wrapper = entity_metadata_wrapper('commerce_order', $order);\n foreach ($order_wrapper->commerce_line_items as $line_item_wrapper) {\n if (!empty($line_item_wrapper->value()->commerce_product)) {\n $product = $line_item_wrapper->commerce_product->value();\n if (!empty($product->field_special_offers)) {\n $offers = $line_item_wrapper->commerce_product->field_special_offers->value();\n foreach($offers as $offer) {\n $special_offers[$offer->product_id] = $offer;\n }\n }\n }\n }\n }\n return array('special_offers' => $special_offers);\n}", "public function getPriceInformation() {\n $fields = array('priceInformation' => array(\n 'priceHeader' => 'header',\n 'price',\n 'acquisitionTerms',\n ));\n $result = TingOpenformatMethods::parseFields($this->_getDetails(), $fields);\n return $result;\n }", "function PKG_getSpecialPackageDescription($package,$distr)\n{\n\treturn(PKG_getSpecialPackageInfo($package,\"Description\",$distr));\n}", "abstract function getdescription();", "public function mainform_get_quotes()\n\t{\n\t\t$quotes = $this->get_quotes();\n\t// process the quotes\n\t\tforeach($quotes as $key => &$value)\n\t\t{\n\t\t $tmp = (array) $value;\n\t\t $quotes[$key] = $tmp['price'];\n\t\t} \n\t\tksort($quotes);\n\t\t$data['quotes'] = $quotes;\n\t\treturn $quotes;\n\t}", "function lb_get_seo_title($product) {\n //$price = lb_format_price($product['finalprice'], true, true);\n $price = round((float)$product['finalprice']/100, 0) . ':-';\n \n $seo_title = 'Köp ' . $product['name'] . (isset($product['merchant'])?' från ' . $product['merchant']:'') . ' för ' . $price . (true == (bool)$product['onsale']?' (' . $product['salediscount'] . '% rabatt!)':'');\n \n error_log('lb_get_seo_title - product[finalprice]=' . $product['finalprice'] . ', price=' . $price . ', product: ' . print_r($product, true));\n\n return wpts_spin($seo_title);\n}", "public function extraPortfolioItemInfo()\n\t{\n\t\t$extraInfo = array();\n\t\t\n\t\t$extraInfo['total_text'] \t= $this->lang->words['global_shares_owned'];\n\t\t$extraInfo['cost'] \t\t \t= $this->caches['ibEco_stocks'][ $this->cartItem['p_type_id'] ]['s_value'];\n\t\t$extraInfo['total']\t \t \t= $this->caches['ibEco_stocks'][ $this->cartItem['p_type_id'] ]['total_share_value'];\n\t\t$extraInfo['total_bought']\t= $this->currencySymbolForSums().$this->registry->getClass('class_localization')->formatNumber( $extraInfo['total'], $this->decimalPlacesForSums());\n\t\t\n\t\treturn $extraInfo;\n\t}", "public function digest($arts, $use_crosses = FALSE, $primary_article = FALSE)\n\t{\n\t\tif (empty($arts)) {\n\t\t\t$arts = array($primary_article);\n\t\t}\n\n\t\t// Check authorisation ('cause we offer price discounts for some users)\n\t\tif (!empty($this->access) and $this->access->_is_auth())\n\t\t{\n\t\t\t$discount = $this->access->accdata->discount;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$discount = 0;\n\t\t}\n\t\t\n\t\t// Extend $arts with crosses\n\t\tif ($use_crosses)\n\t\t{\n\t\t\t$arts = $this->extend_with_crosses($arts);\n\t\t}\n\n\t\t// Grab Prices for each Article ID with one query\n\t\t$this->_get_prices_result($arts, $discount, $primary_article, true);\n\n\t\t// Pull vendors (required for `is_require_apis` to be set properly)\n\t\t$this->local->_vendors_array('all');\n\t\t\n\t\t// Used by JS module to query particular vendors. Empty by default.\n\t\t$vendor_api_ids\t= array();\n $vendor_api_ids_imploded = '';\n\t\t\n\t\t// Gives signal to pull apis. False by default.\n\t\t$is_require_apis = FALSE;\n\n\t\t// Do we have apis to be pulled?\n\t\tif (($num_vendor_apis = count($this->local->vendor_apis)) > 0)\n\t\t{\n\t\t\t$is_require_apis = TRUE;\n\n\t\t\tforeach ($this->local->vendor_apis as $vendor_id=>$api_params)\n\t\t\t{\n\t\t\t\t$vendor_api_ids[] = $vendor_id;\n\t\t\t}\n\n $vendor_api_ids_imploded = implode(' ', $vendor_api_ids);\n\t\t}\n\n\t\treturn (object) array\n\t\t(\n\t\t\t'in_stock'\t\t\t\t\t\t\t=> $this->stock,\n\t\t\t'num_in_stock'\t\t\t\t\t\t=> $this->stock_num_rows,\n\t\t\t\n\t\t\t'not_in_stock'\t\t\t\t\t\t=> $this->arts_keyvals,\n\t\t\t'num_not_in_stock'\t\t\t\t\t=> count($this->arts_keyvals),\n\t\t\t\n\t\t\t'stock_artnrs'\t\t\t\t\t\t=> $this->numbers,\n\t\t\t'stock_brands'\t\t\t\t\t\t=> $this->brands,\n\t\t\t'all_brands_are_similar'\t\t\t=> $this->all_brands_are_similar,\n\t\t\t'discount'\t\t\t\t\t\t\t=> $discount,\n\t\t\t\n\t\t\t'is_require_apis'\t\t\t\t\t=> $is_require_apis,\n\t\t\t'api_list'\t\t\t\t\t\t\t=> $this->local->vendor_apis,\n\t\t\t'api_ids_list'\t\t\t\t\t\t=> $vendor_api_ids,\n\t\t\t'api_list_imploded'\t\t\t\t\t=> $vendor_api_ids_imploded,\n\t\t);\n\t}", "function getExpensiveProdXML($intYear, $howMany, $forDataURL) {\n // Function to connect to the DB\n $link = connectToDB();\n\t\n\t$strSQL = \"SELECT p.ProductName, p.UnitPrice, SUM(d.Quantity) as Quantity FROM FC_Products p, FC_Orders as o, FC_OrderDetails d WHERE YEAR(OrderDate)=\" . $intYear . \" and d.ProductID=p.ProductID and o.OrderID=d.OrderID GROUP BY p.ProductName,p.UnitPrice ORDER BY p.UnitPrice DESC LIMIT \" . $howMany ;\n $result = mysql_query($strSQL) or die(mysql_error());\n\n\t//Initialize <categories> element\n\t$strCat = \"<categories>\";\n\t\n\t//Initialize datasets\n\t$strAmtDS = \"<dataset seriesname='Unit Price'>\";\n\t$strQtyDS = \"<dataset seriesName='Quantity' parentYAxis='S'>\";\n\t\n\t\n //Iterate through each data row\n if ($result) {\n while($ors = mysql_fetch_array($result)) {\n $strCat .= \"<category label='\" . escapeXML($ors['ProductName'],$forDataURL) . \"'/>\";\n\n $strAmtDS .= \"<set value='\" . $ors['UnitPrice'] . \"' />\";\n $strQtyDS .= \"<set value='\" . $ors['Quantity'] . \"'/>\";\n }\n }\n mysql_close($link);\n\n //Closing elements\n\t$strCat .= \"</categories>\";\n\t$strAmtDS .= \"</dataset>\";\n\t$strQtyDS .= \"</dataset>\";\n\t//Entire XML - concatenation\n\t$strXML = $strCat . $strAmtDS . $strQtyDS;\n\t\n\treturn $strXML;\n}", "function get_quote( $qt_str, $homepage ) {\n $zquote = array();\n $zquote_link = $homepage->get_field($qt_str . '_link');\n $zquote_text = $homepage->get_field($qt_str . '_text');\n $zquote_subhead = $homepage->get_field($qt_str . '_subhead');\n $zquote_number = $homepage->get_field($qt_str . '_number');\n\n if ( isset($zquote_link) && is_array($zquote_link) ) {\n $zquote['post'] = new HechingerPost($zquote_link[0]->ID);\n $zquote['subhead'] = new HechingerPost($zquote_link[0]->ID);\n\n if ( isset($zquote_text) && strlen($zquote_text) ) {\n $zquote['text'] = $zquote_text;\n } else {\n $zquote['text'] = $zquote['post']->title;\n }\n\n if ( isset($zquote_subhead) && strlen($zquote_subhead) ) {\n $zquote['subhead'] = $zquote_subhead;\n } else {\n $zquote['subhead'] = $zquote['post']->tease_excerpt(10);\n }\n\n if ( isset($zquote_number) && strlen($zquote_number) ) {\n if ( strpos($zquote_number, '%') !== false) {\n $zquote['number'] = substr($zquote_number, 0, -1) . '<span class=\"tz-special-precent\">%</span>';\n } else {\n $zquote['number'] = $zquote_number;\n }\n $zquote['show_stat'] = true;\n } else {\n $zquote['show_stat'] = false;\n }\n }\n return $zquote;\n}", "function quantitiesToTradingPrice($base_quantity, $quote_quantity)\n{\n $price = $quote_quantity / $base_quantity;\n\n return sprintf(\"%.8f\", $price);\n}", "public function format($stock, $extra)\n\t{\t\n\t\t#can sell back this stock?(added in 1.4.2)\n\t\t$stock['can_sell'] = TRUE;\n\t\tif ( $stock['s_use_perms'] && !$this->registry->permissions->check( 'close', $stock ) )\n\t\t{\n\t\t\t$stock['can_sell'] = FALSE;\n\t\t}\n\t\t\n\t\t#image\n\t\t$stock['image_thumb_link']\t= $this->registry->ecoclass->customItemImageHTML($stock['s_image'], 'chart_curve.png', true); \n\t\t$stock['image_link']\t\t= $this->registry->ecoclass->customItemImageHTML($stock['s_image'], 'chart_curve.png', false);\t\t\n\t\t$stock['image_link_popup']\t= $this->registry->ecoclass->customItemImageHTML($stock['s_image'], 'chart_curve.png', false, '', true);\n\t\t\n\t\t#init description....\n\t\t$stock['desc']\t\t\t\t= $this->lang->words[ $stock['s_type'].'_stock_exp'];\t\n\t\t\n\t\t#main details...\n\t\t$stock['og_s_value']\t\t= $stock['s_value'];\n\t\t$stock['s_value']\t\t\t= $this->registry->getClass('class_localization')->formatNumber( $stock['s_value'], $this->registry->ecoclass->decimal );\n\t\t$stock['s_type']\t\t\t= ucfirst($stock['s_type']);\n\n\t\tif ( $stock['s_type'] != 'Basic' )\n\t\t{\n\t\t\t$stock['s_type_var']\t= ( $stock['s_type_var'] == 'points' ) ? $this->settings['eco_general_currency'] : $this->lang->words[ ucfirst($stock['s_type_var']) ];\n\t\t\n\n\t\t\tif ( $stock['s_type'] != 'Forum' )\n\t\t\t{\n\t\t\t\tif ( $stock['s_type'] == 'Member' )\n\t\t\t\t{\n\t\t\t\t\tif ($this->settings['eco_plugin_ppns_on'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$member = IPSMember::load( $stock['s_type_var_value'], 'profile_portal' ); \n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$member = $stock; \n\t\t\t\t\t}\n\n\t\t\t\t\t$stock['s_type_var_value']\t= $this->registry->getClass('output')->getTemplate('global')->userHoverCard( $member );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$stock['s_type_var_value']\t= $this->caches['group_cache'][intval($stock['s_type_var_value'])]['g_title'];\t\t\t\t\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t}\n\n\t\t$stock['s_type_var']\t\t= ( $stock['s_type_var'] ) ? $stock['s_type_var'] : $this->lang->words['n_a'];\n\t\t$stock['s_type_var_value']\t= ( $stock['s_type_var_value'] ) ? $stock['s_type_var_value'] : $this->lang->words['n_a'];\n\n\t\t#even further (portfolio item)\n\t\t$stock['image'] \t\t\t= 'chart_curve.png';\n\t\t$stock['name'] \t\t\t\t= $stock['s_title'];\n\t\t$stock['type'] \t\t\t\t= ucfirst($stock['p_type']);\n\t\t$stock['link_type_type']\t= $stock['p_type'];\t\n\t\t$stock['type_type']\t\t\t= $stock['s_type'];\n\t\t$stock['num_shares']\t\t= $this->registry->getClass('class_localization')->formatNumber( $stock['p_amount'] );\n\t\t$stock['value']\t\t\t\t= ( $stock['s_type_var'] ) ? $stock['s_type_var'] : $this->lang->words['n_a'];\t\t\t\t\t\t\n\t\t$stock['value2']\t\t\t= $this->settings['eco_general_cursymb'].$stock['s_value'];\n\t\t$stock['total_value']\t\t= $this->registry->getClass('class_localization')->formatNumber( $stock['p_amount'] * $stock['og_s_value'], $this->registry->ecoclass->decimal );\n\t\t$stock['open_date']\t\t\t= $this->registry->getClass( 'class_localization')->getDate( $stock['p_purch_date'], 'JOINED' );\t\t\n\t\t\n\t\t#and yet more! (cart)\n\t\t$stock['type'] \t\t\t\t= ( $stock['s_type_var'] == $this->lang->words['n_a'] ) ? $this->lang->words['basic'] : $stock['s_type_var'];\t\n\t\t$stock['pre_amount_text']\t= $this->lang->words['shares'];\n\t\t$stock['amount'] \t\t\t= $this->registry->getClass('class_localization')->formatNumber( $stock['c_quantity'] );\n\t\t$stock['total'] \t\t\t= $this->registry->getClass('class_localization')->formatNumber( $stock['c_quantity'] * $stock['og_s_value'], $this->registry->ecoclass->decimal );\n\t\t$stock['l_type']\t\t\t= $stock['c_type'];\n\t\t$stock['c_type']\t\t\t= ucfirst($stock['c_type']);\t\n\t\t\n\t\t#finish description\n\t\t$stock['desc'] \t\t\t\t= str_replace( \"<%MEMBER_NAME%>\", $stock['s_type_var_value'], $stock['desc'] );\n\t\t$stock['desc'] \t\t\t\t= str_replace( \"<%VAR_NAME%>\", $stock['s_type_var'], $stock['desc'] );\n\t\t$stock['desc'] \t\t\t\t= str_replace( \"<%GROUP_NAME%>\", $stock['s_type_var_value'], $stock['desc'] );\t\n\n\t\t#totals...\n\t\t$stock['holders']\t\t\t= $this->registry->getClass('class_localization')->formatNumber( $stock['share_holders'] );\n\t\t$stock['funds']\t\t\t\t= $this->registry->getClass('class_localization')->formatNumber( $stock['total_share_value'] );\n\t\t\n\t\t#new stuff (1.5.2+)\n\t\t$stock['cart_item_title']\t\t= $this->registry->ecoclass->truncate($stock['s_title'].\" \".$stock['s_title_long'], 32);\t\t\n\t\t$stock['cart_item_more_info']\t= $this->lang->words['type'].\": \".$stock['s_type'].\" &middot; \".$this->lang->words['variable'].\": \".$stock['s_type_var'].\"<br />\".$this->lang->words['subject'].\": \".$stock['s_type_var_value'];\n\t\t$stock['num_purchased']\t\t\t= $stock['holders'];\n\t\t$stock['num_purchased_text']\t= $this->lang->words['share_holders'];\n\t\t$stock['cost'] \t\t\t\t\t= $this->settings['eco_general_cursymb'].$this->registry->getClass('class_localization')->formatNumber($stock['og_s_value'], $this->registry->ecoclass->decimal );\n\t\t$stock['cost_text']\t\t\t\t= $this->lang->words['current_value'];\n\t\t$stock['right_fields_1']\t\t= $stock['funds'];\n\t\t$stock['right_fields_1_text']\t= $this->lang->words['total_shares_owned'];\n\t\t$stock['right_fields_1_image']\t= 'bar_graph.png';\n\t\t\n\t\t$stock['cart_item_type']\t\t= 'stock';\n\t\t$stock['cart_item_id']\t\t\t= $stock['s_id'];\n\t\t$stock['cart_item_bank_type']\t= 'x';\n\t\t$stock['cart_item_bank_Type']\t= 'X';\t\t\n\t\t$stock['cart_item_tab']\t\t\t= 'invest';\n\n\t\treturn $stock;\n\t}", "function default_quote_content( $content, $post )\n {\n\n if ($post->post_type !== 'lh_quotes')\n {\n return $content;\n }\n\n if(!isset($_GET['client_id']) )\n {\n return $content;\n }\n\n $client_id = $_GET['client_id'];\n\n $client_name = get_the_title($client_id);\n $arr = explode(' ',trim($client_name));\n $first_name = $arr[0]; // get the first name\n\n $content = 'Dear '.$first_name.',<br/>';\n $content.= 'Thanks for your interest in Little House. Please find your quote broken down for the playhouse / play decks as discussed.<br/><br/>';\n $content.= 'This price is only for the timber and labour and so does not include accessories such as the climbing wall holds or slide etc. We can help you to source these, as required.<br/><br/>';\n $content.= '[lh_image]<br/>';\n $content.= '[lh_quote]<br/><br/>';\n\n $content.='This quote is provided on the basis of the following assumptions:';\n $content.='<ul>';\n $content.='<li>Date of build will be agreed upon commission but is subject to the availability of timber</li>';\n $content.='<li>Timber can transported to the build site (e.g. 3m lengths can fit through a side access or direct route through the house)</li>';\n $content.='<li>Timber will be delivered to your home/build site on the day in advance of the build, usually the day prior to the build and will be stored in a safe, secure location. Timber that is damaged after delivery but prior to build will require replacement at an additional cost.</li>';\n $content.='<li><Water and electricity will be available for the duration of the build /li>';\n $content.='<li>You will receive formal approval for the build from your immediate neighbours. </li>';\n $content.='</ul>';\n\n $content.= '<br/>If you would like to proceed and commission your Little House, a deposit of £500 is required, made payable to Barrington Innovation, sort code 309034 account number 32156268, paid a minimum of '.DEPOSIT_DAY_LIMIT.' days prior to build date. The deposit will be deducted from your invoice upon completion of the build.<br/><br/>';\n $content.='To accept this quote and kick start your Little House build, please click on the link below.<br/><br/>';\n $content.= '[lh_accept_link]<br/><br/>';\n\n $content.='If you have any queries or would like to discuss any aspect of the design, please contact Little House’s Client Liaison Ailsa Peron (contact details below), who will help answer any questions relating to your quote and who will help coordinate your build, if commissioned.<br/>';\n $content.='Thank you again for your interest, and we hope to have the opportunity to bring your Little House to life soon!<br/><br/>';\n $content.='Kind regards,<br/>';\n $content.= 'Alex Furr';\n\n return $content;\n }", "private function get_article_description() {\n\n\t\tif ( ! $this->is_json_valid() )\n\t\t\treturn [];\n\n\t\t$tsf = \\the_seo_framework();\n\n\t\tif ( method_exists( $tsf, 'get_description' ) ) {\n\t\t\t$description = $tsf->get_description( $this->get_current_id() );\n\t\t} else {\n\t\t\t$description = $tsf->description_from_cache();\n\t\t}\n\n\t\treturn [\n\t\t\t'description' => \\esc_attr( $description ),\n\t\t];\n\t}", "public function getCustomCustomerDescriptionToProduct(): string;", "public function prepare($data)\n {\n $response = array('name' => $data['title']);\n \n if (!empty($data['short_description'])) {\n $response['short_description'] = $data['short_description'];\n }\n \n if (!empty($data['description'])) {\n $response['description'] = $data['description'];\n }\n \n if (!empty($data['categories'])) {\n $categories = array();\n foreach ($data['categories'] as $categoryId) {\n $categories[] = array('id' => $categoryId);\n }\n \n $response['categories'] = $categories;\n }\n \n $images = array(); $position = 0;\n foreach ($data['images'] as $image) {\n $images[] = array(\n 'src' => $image,\n 'position' => $position++\n );\n }\n $response['images'] = $images;\n\n \n $isVariable = (!empty($data['variations']));\n $response['type'] = ($isVariable) ? 'variable' : 'simple';\n \n if (!$isVariable) {\n $response['regular_price'] = $data['price_low'];\n if (!empty($data['special_price_low'])) {\n $response['sale_price'] = $data['special_price_low'];\n }\n }\n\n $attributes = $variationAttributeTitles = array(); $position = 0;\n foreach ($data['attributes'] as $attribute) {\n $attributes[] = array(\n 'name' => $attribute['title'],\n 'position' => $position++,\n 'visible' => true,\n 'options' => explode('|', $attribute['value']),\n 'variation' => ($attribute['is_variation'])\n );\n \n if ($attribute['is_variation']) {\n $variationAttributeTitles[] = $attribute['title'];\n }\n }\n $response['attributes'] = $attributes;\n \n if ($isVariable) {\n $variations = array();\n foreach ($data['variations'] as $variation) {\n $newVariation = array(\n 'regular_price' => $variation['advertised'],\n 'image' => array(\n array(\n 'src' => $variation['image'],\n 'position' => 0\n )\n )\n );\n \n if (!empty($variation['final_price'])) {\n $newVariation['sale_price'] = $variation['final_price'];\n }\n \n $attributes = array(); \n $attributeValues = explode('|', $variation['name']);\n foreach ($variationAttributeTitles as $key => $variationAttributeTitle) {\n $attributes[] = array(\n 'name' => $variationAttributeTitle,\n 'option' => $attributeValues[$key]\n );\n }\n \n $newVariation['attributes'] = $attributes;\n $variations[] = $newVariation;\n }\n \n $response['variations'] = $variations;\n }\n \n return $response;\n }", "function sGetDistrHtmlDescription ($aArgDistributore) {\n\t\n\textract ($aArgDistributore);\n\t$dst_note = htmlentities($dst_note);\n\t$dst_allevatore = htmlentities($dst_allevatore);\n\t$aDistrDescription = array();\n\tif ($dst_foto) $aDistrDescription[] = '<img class=\"distr_pic\" src=\"'.URL_ROOT.'images/aziende/distributori/'.$dst_foto.'\">';\n\tif ($dst_note) $aDistrDescription[] = '<p>Note: '.$dst_note.'</p>';\n\tif ($dst_logo) $aDistrDescription[] = '<img class=\"az_logo\" src=\"'.URL_ROOT.'images/aziende/loghi/'.$dst_logo.'\">';\n\tif ($dst_allevatore) $aDistrDescription[] = '<p>Allevatore: '.$dst_allevatore.'</p>';\n\tif ($dst_telefono) $aDistrDescription[] = '<p>Telefono: '.$dst_telefono.'</p>';\n\tif ($dst_cellulare) $aDistrDescription[] = '<p>Cellulare: '.$dst_cellulare.'</p>';\n\tif ($dst_email) $aDistrDescription[] = '<p>Email: <a href=\"mailto:'.$dst_email.'?subject=Contatto da www.milkmaps.com\">'.$dst_email.'</a></p>';\n\tif ($dst_sito) $aDistrDescription[] = '<p>Sito internet: <a href=\"http://'.str_replace('http://','',$dst_sito).'?referer=www.milkmaps.com\" target=\"_blank\">'.$dst_sito.'</a></p>';\n\t$sDistrDescription = (count($aDistrDescription)) ? implode(\"\\n\",$aDistrDescription) : '<p>Nessuna informazione aggiuntiva.</p>';\n\t$sCommands = '<p>'.\n\t\t'<a href=\"#\" onclick=\"myZoomTo('.$dst_id.'); myShowZoomLink('.$dst_id.', \\'out\\'); return false;\" style=\"margin-right:0.5em;\" id=\"in'.$dst_id.'\">Ingrandisci qui &raquo;</a>'.\n\t\t'<a href=\"#\" onclick=\"myAutoZoom(aDistributori); myShowZoomLink('.$dst_id.', \\'in\\'); return false;\" style=\"margin-right:0.5em; display:none;\" id=\"out'.$dst_id.'\">&laquo; Visualizza tutti</a>'.\n\t\t'<a href=\"#\" onclick=\"getDirections('.$dst_id.'); return false;\" style=\"margin-right:0.5em;\">Indicazioni stradali</a>' .\n\t\t'</p>';\n\treturn $sDistrDescription . $sCommands;\n}", "public function updateQuoteDataDataProvider()\n {\n return [\n [\n [\n QuoteInterface::DISCOUNT => 10\n ],\n [\n QuoteInterface::DISCOUNT => 10,\n 'remarks' => '{\"admin_note\":\"Additional Discount in amount of 10% was applied.\"}'\n ]\n ],\n [\n [\n QuoteInterface::DISCOUNT => 0,\n QuoteInterface::SURCHARGE => 100\n ],\n [\n QuoteInterface::DISCOUNT => null,\n QuoteInterface::SURCHARGE => 100,\n 'remarks' => '{\"admin_note\":\"Additional Surcharge in amount of 100% was applied.\"}'\n ]\n ]\n ];\n }", "public function extraPortfolioItemInfo()\n\t{\n\t\t$extraInfo = array();\n\t\t\n\t\t$extraInfo['total_text'] \t= $this->lang->words['total_funds'];\n\t\t$extraInfo['cost'] \t\t= $this->caches['ibEco_banks'][ $cartItem['p_type_id'] ]['b_loans_app_fee'];\n\t\t$extraInfo['total'] \t\t= $this->caches['ibEco_banks'][ $cartItem['p_type_id'] ]['outstanding_loan_amt'];\n\t\t$extraInfo['total_bought']\t= $this->currencySymbolForSums().$this->registry->getClass('class_localization')->formatNumber( $extraInfo['total'], $this->decimalPlacesForSums());\n\t\t\n\t\treturn $extraInfo;\n\t}", "public function build_product_data( $item=array(), $old_item=array() ) {\n\n // summarize product details\n $retProd = array(\n 'ASIN' => isset($item['ASIN']) ? $item['ASIN'] : '',\n 'ParentASIN' => isset($item['ParentASIN']) ? $item['ParentASIN'] : '',\n \n 'ItemAttributes' => isset($item['ItemAttributes']) ? $item['ItemAttributes'] : array(),\n 'Title' => isset($item['ItemAttributes']['Title']) ? stripslashes($item['ItemAttributes']['Title']) : '',\n 'SKU' => isset($item['ItemAttributes']['SKU']) ? $item['ItemAttributes']['SKU'] : '',\n 'Feature' => isset($item['ItemAttributes']['Feature']) ? $item['ItemAttributes']['Feature'] : '',\n 'Brand' => isset($item['ItemAttributes']['Brand']) ? $item['ItemAttributes']['Brand'] : '',\n 'Binding' => isset($item['ItemAttributes']['Binding']) ? $item['ItemAttributes']['Binding'] : '',\n //'ListPrice' => isset($item['ItemAttributes']['ListPrice']['FormattedPrice']) ? $item['ItemAttributes']['ListPrice']['FormattedPrice'] : '',\n \n 'Variations' => isset($item['Variations']) ? $item['Variations'] : array(),\n 'VariationSummary' => isset($item['VariationSummary']) ? $item['VariationSummary'] : array(),\n 'BrowseNodes' => isset($item['BrowseNodes']) ? $item['BrowseNodes'] : array(),\n 'DetailPageURL' => isset($item['DetailPageURL']) ? $item['DetailPageURL'] : '',\n 'SalesRank' => isset($item['SalesRank']) ? $item['SalesRank'] : 999999,\n\n 'SmallImage' => isset($item['SmallImage']['URL']) ? trim( $item['SmallImage']['URL'] ) : '',\n 'LargeImage' => isset($item['LargeImage']['URL']) ? trim( $item['LargeImage']['URL'] ) : '',\n\n 'Offers' => isset($item['Offers']) ? $item['Offers'] : '',\n 'OfferSummary' => isset($item['OfferSummary']) ? $item['OfferSummary'] : '',\n 'EditorialReviews' => isset($item['EditorialReviews']['EditorialReview']['Content'])\n ? $item['EditorialReviews']['EditorialReview']['Content'] : '',\n \n\t\t\t\t'hasGallery'\t\t\t=> 'false',\n );\n\t\t\t\n\t\t\t// try to rebuid the description if is empty\n\t\t\tif( trim($retProd[\"EditorialReviews\"]) == \"\" ){\n\t\t\t\tif( isset($item['EditorialReviews']['EditorialReview']) && count($item['EditorialReviews']['EditorialReview']) > 0 ){\n\t\t\t\t\t\n\t\t\t\t\t$new_description = array();\n\t\t\t\t\tforeach ($item['EditorialReviews']['EditorialReview'] as $desc) {\n\t\t\t\t\t\tif( isset($desc['Content']) && isset($desc['Source']) ){\n\t\t\t\t\t\t\t//$new_description[] = '<h3>' . ( $desc['Source'] ) . ':</h3>';\n\t\t\t\t\t\t\t$new_description[] = $desc['Content'] . '<br />';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif( isset($new_description) && count($new_description) > 0 ){\n\t\t\t\t\t$retProd[\"EditorialReviews\"] = implode( \"\\n\", $new_description );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n // CustomerReviews url\n if ( isset($item['CustomerReviews'], $item['CustomerReviews']['HasReviews'])\n && $item['CustomerReviews']['HasReviews'] ) {\n $retProd['CustomerReviewsURL'] = $item['CustomerReviews']['IFrameURL'];\n }\n\n // Images\n $retProd['images'] = $this->build_images_data( $item );\n if ( empty($retProd['images']['large']) ) {\n // no images found - if has variations, try to find first image from variations\n $retProd['images'] = $this->get_first_variation_image( $item );\n }\n \n if ( empty($retProd['SmallImage']) ) {\n if ( isset($retProd['images']['small']) && !empty($retProd['images']['small']) ) {\n $retProd['SmallImage'] = $retProd['images']['small'][0];\n }\n }\n if ( empty($retProd['LargeImage']) ) {\n if ( isset($retProd['images']['large']) && !empty($retProd['images']['large']) ) {\n $retProd['LargeImage'] = $retProd['images']['large'][0];\n }\n }\n\n\t\t\t// has gallery: get gallery images\n\t\t\tif ( isset($item['ImageSets']) && count($item['ImageSets']) > 0 ) {\n\t\t\t\tforeach ( $item['ImageSets'][\"ImageSet\"] as $key => $value ) {\n\t\t\t\t\tif ( isset($value['LargeImage']['URL']) ) {\n\t\t\t\t\t\t$retProd['hasGallery'] = 'true';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n return $retProd;\n }", "function commande_1($bdd) {\n $reponse = $bdd->query('SELECT articles.name, articles.price, articles_commandes.quantity \n FROM articles \n INNER JOIN articles_commandes ON articles_commandes.Articles_id=articles.id\n WHERE Orders_id=1');\n while ($donnees = $reponse -> fetch()) {\n echo '<p>'. $donnees['name'].' - '. $donnees['price'].' euros'.' - '.$donnees['quantity'].'<p>';\n }\n}", "public function run()\n {\n $parts = array(\n //Alloy Wheels\n array(\n 'name' => 'AEZ Straight',\n 'buying_price' => 301.71,\n 'manufacturer_id' => 20,\n 'sub_category_id' => 1,\n ),\n\n array(\n 'name' => 'AXXION AX7',\n 'buying_price' => 224.85,\n 'manufacturer_id' => 21,\n 'sub_category_id' => 1,\n ),\n\n array(\n 'name' => 'BBS CH-R',\n 'buying_price' => 569.70,\n 'manufacturer_id' => 22,\n 'sub_category_id' => 1,\n ),\n\n //Steel Wheels\n array(\n 'name' => 'Magnetto Wheels MW R1-1341',\n 'buying_price' => 144.56,\n 'manufacturer_id' => 23,\n 'sub_category_id' => 2,\n ),\n\n array(\n 'name' => 'Steger ST6355',\n 'buying_price' => 149.22,\n 'manufacturer_id' => 24,\n 'sub_category_id' => 2,\n ),\n\n array(\n 'name' => 'Magnetto Wheels MW R1-1689',\n 'buying_price' => 569.70,\n 'manufacturer_id' => 23,\n 'sub_category_id' => 2,\n ),\n\n //Alluminium Wheels\n array(\n 'name' => 'Wolfrace Eurosport Assassin-X',\n 'buying_price' => 144.56,\n 'manufacturer_id' => 25,\n 'sub_category_id' => 3,\n ),\n\n array(\n 'name' => 'ATS Temperament 5',\n 'buying_price' => 149.22,\n 'manufacturer_id' => 26,\n 'sub_category_id' => 3,\n ),\n\n array(\n 'name' => 'Lenso Samurai D1-R',\n 'buying_price' => 569.70,\n 'manufacturer_id' => 27,\n 'sub_category_id' => 3,\n ),\n\n //Brake discs\n array(\n 'name' => 'Brake Discs 345mm',\n 'buying_price' => 35.50,\n 'manufacturer_id' => 1,\n 'sub_category_id' => 4,\n\n ), //BMW7series\n\n array(\n 'name' => 'Brake Discs Rear Alex 370mm',\n 'buying_price' => 67.45,\n 'manufacturer_id' => 2,\n 'sub_category_id' => 4,\n\n ), //bmw7s\n\n array(\n 'name' => 'Brake Disc 295mm',\n 'buying_price' => 41.42,\n 'manufacturer_id' => 3,\n 'sub_category_id' => 4,\n\n ), //mer_benz_e_class_cabriolet\n array(\n 'name' => 'Brake Disc 310mm',\n 'buying_price' => 26.03,\n 'manufacturer_id' => 4,\n 'sub_category_id' => 4,\n\n ), //audi tt\n\n //Brake pads\n array(\n 'name' => 'Brake Pads Set disk brake Rear A8 TT',\n 'buying_price' => 14.79,\n 'manufacturer_id' => 4,\n 'sub_category_id' => 5,\n\n ), //audi tt\n\n array(\n 'name' => 'Brake Pads Set disk brake Rear A r84',\n 'buying_price' => 24.85,\n 'manufacturer_id' => 3,\n 'sub_category_id' => 5,\n\n ), //audi r84s\n\n array(\n 'name' => 'Brake Pad Set disc brake Front MB sl3',\n 'buying_price' => 36.68,\n 'manufacturer_id' => 3,\n 'sub_category_id' => 5,\n\n ), //mb sl conv\n\n array(\n 'name' => 'Brake pad Set disc brake Rear b7s',\n 'buying_price' => 15.98,\n 'manufacturer_id' => 3,\n 'sub_category_id' => 5,\n\n ), //7series\n\n //Brake shoes\n array(\n 'name' => 'Brake Shoe Set 180mm',\n 'buying_price' => 20.12,\n 'manufacturer_id' => 5,\n 'sub_category_id' => 6,\n\n ), //7series\n\n array(\n 'name' => 'Brake Shoe Set Rear Axle MB 164mm',\n 'buying_price' => 15.38,\n 'manufacturer_id' => 6,\n 'sub_category_id' => 6,\n\n ), //mb e class c 2010\n\n array(\n 'name' => 'Brake Shoe Set Rear Axle 164mm',\n 'buying_price' => 21.90,\n 'manufacturer_id' => 5,\n 'sub_category_id' => 6,\n\n ), //mb s class saloon 2003\n\n array(\n 'name' => 'Brake Shoe Set Rear Axle 161mm',\n 'buying_price' => 21.30,\n 'manufacturer_id' => 5,\n 'sub_category_id' => 6,\n\n ), //audi a5\n\n //Air filters\n array(\n 'name' => 'Air Filter a5 s9',\n 'buying_price' => 18.93,\n 'manufacturer_id' => 7,\n 'sub_category_id' => 7,\n\n ), //Air Filter for AUDI A5 B9 Sportback\n\n array(\n 'name' => 'Air Filter MB e4',\n 'buying_price' => 15.98,\n 'manufacturer_id' => 8,\n 'sub_category_id' => 7,\n\n ), //Air Filter for MERCEDES-BENZ E-Class\n\n array(\n 'name' => 'Air Filter B1 x3',\n 'buying_price' => 11.84,\n 'manufacturer_id' => 16,\n 'sub_category_id' => 7,\n\n ), //BMW x3\n\n array(\n 'name' => 'Air Filter B1 x5',\n 'buying_price' => 15.38,\n 'manufacturer_id' => 16,\n 'sub_category_id' => 7,\n\n ), //bmw x5\n\n //Fuel filters\n array(\n 'name' => 'Fuel Filter MB e5',\n 'buying_price' => 14.79,\n 'manufacturer_id' => 9,\n 'sub_category_id' => 8,\n\n ), //Fuel Filter for MERCEDES-BENZ E-Class\n\n array(\n 'name' => 'Fuel Filter A3 c',\n 'buying_price' => 18.93,\n 'manufacturer_id' => 17,\n 'sub_category_id' => 8,\n\n ), //audi a3 conver\n\n array(\n 'name' => 'Fuel Filter b7s',\n 'buying_price' => 17.75,\n 'manufacturer_id' => 16,\n 'sub_category_id' => 8,\n\n ), //BMW 7 series\n\n array(\n 'name' => 'Fuel Filter b1 7s',\n 'buying_price' => 25.43,\n 'manufacturer_id' => 10,\n 'sub_category_id' => 8,\n\n ), //BMW 7 series\n\n array(\n 'name' => 'Oil filter en 7sB',\n 'buying_price' => 13.01,\n 'manufacturer_id' => 7,\n 'sub_category_id' => 9,\n\n ), //bmw 7s\n\n //Oil filters\n array(\n 'name' => 'Oil filter en 7sB 1',\n 'buying_price' => 9.47,\n 'manufacturer_id' => 18,\n 'sub_category_id' => 9,\n\n ), //bmw 7s\n\n array(\n 'name' => 'Oil filter en E C 2',\n 'buying_price' => 15.21,\n 'manufacturer_id' => 16,\n 'sub_category_id' => 9,\n\n ), //Mercedes-benz e-class saloon\n\n array(\n 'name' => 'Oil filter en E C 1',\n 'buying_price' => 14.16,\n 'manufacturer_id' => 18,\n 'sub_category_id' => 9,\n\n ), //Mercedes-benz e-class saloon\n\n array(\n 'name' => 'Antifreeze DY 01x',\n 'buying_price' => 20.12,\n 'manufacturer_id' => 12,\n 'sub_category_id' => 10,\n\n ), //lamborghini avetador\n\n array(\n 'name' => 'Antifreeze RADICOOL NF',\n 'buying_price' => 10.65,\n 'manufacturer_id' => 13,\n 'sub_category_id' => 10,\n\n ), //BMW Z4\n\n array(\n 'name' => 'Antifreeze TL 7s1',\n 'buying_price' => 7.69,\n 'manufacturer_id' => 11,\n 'sub_category_id' => 10,\n\n ), //bmw 7 s 2015-\n\n array(\n 'name' => 'Antifreeze K2 7s',\n 'buying_price' => 4.50,\n 'manufacturer_id' => 13,\n 'sub_category_id' => 10,\n\n ), //bmw 7s 2015-\n\n array(\n 'name' => 'Total Engine Oil 5W-40 QUARTZ',\n 'buying_price' => 8.87,\n 'manufacturer_id' => 11,\n 'sub_category_id' => 11,\n\n ),//Engine Oil for MERCEDES-BENZ E-Class Convertible (A207) E 400 (207.461)\n\n array(\n 'name' => 'Dynamax Engine Oil 5W-30 PREMIUM',\n 'buying_price' => 7.69,\n 'manufacturer_id' => 12,\n 'sub_category_id' => 11,\n\n ),//BMW z4\n\n array(\n 'name' => 'Engine Oil 5W-30 PREMIUM ULTRA GMD 1',\n 'buying_price' => 8.28,\n 'manufacturer_id' => 12,\n 'sub_category_id' => 11,\n\n ), //bmw 7 s 2015-\n\n array(\n 'name' => 'Engine Oil 5W-40 GTX',\n 'buying_price' => 8.52,\n 'manufacturer_id' => 13,\n 'sub_category_id' => 11,\n\n ), //bmw 7s 2015-\n\n array(\n 'name' => 'Hydraulic Oil Dx lam6',\n 'buying_price' => 8.52,\n 'manufacturer_id' => 12,\n 'sub_category_id' => 12,\n\n ), //lamborghini aventador\n\n array(\n 'name' => 'Central Hydraulic Oil',\n 'buying_price' => 10.06,\n 'manufacturer_id' => 12,\n 'sub_category_id' => 12,\n\n ), //mercedes-benz slk 55amg\n\n array(\n 'name' => 'Hydraulic Oil MB slk9',\n 'buying_price' => 9.23,\n 'manufacturer_id' => 12,\n 'sub_category_id' => 12,\n\n ), //mercedes-benz slk 55amg\n\n array(\n 'name' => 'Hydraulic Oil AD TT R6',\n 'buying_price' => 8.88,\n 'manufacturer_id' => 12,\n 'sub_category_id' => 12,\n\n ), //audi tt rs\n\n array(\n 'name' => 'Novline MAT013 Boot Liner Tray Mat',\n 'buying_price' => 2.85,\n 'manufacturer_id' => 14,\n 'sub_category_id' => 13,\n\n ),\n\n array(\n 'name' => 'Window Regulator Left Rear Electric',\n 'buying_price' => 1.66,\n 'manufacturer_id' => 3,\n 'sub_category_id' => 14,\n\n ), //BMW X3\n\n array(\n 'name' => 'Window Regulator Right Rear Electric',\n 'buying_price' => 1.60,\n 'manufacturer_id' => 3,\n 'sub_category_id' => 14,\n\n ),\n\n array(\n 'name' => 'Floor Mat',\n 'buying_price' => 2.25,\n 'manufacturer_id' => 15,\n 'sub_category_id' => 15,\n\n ),\n );\n\n $imagestart = (new Image)->getPartImageStartPointId();\n foreach ($parts as $part) {\n DB::table('parts')->insert([\n 'name' => $part['name'],\n 'buying_price' => $part['buying_price'],\n 'selling_price' => $part['buying_price']*1.2,\n 'max_possible_discount' => .20,\n 'current_discount' => round(((rand(50,150)/10)/100), 2),\n 'manufacturer_id' => $part['manufacturer_id'],\n 'sub_category_id' => $part['sub_category_id'],\n 'image_id' => $imagestart,\n ]);\n $imagestart++;\n }\n }", "private function getParcelXML()\n {\n\n $english = $this->auction_params->getMyTranslation();\n $invoice = $this->auction_params->getMyInvoice();\n $seller = $this->auction_params->getMySeller();\n $shipping_method_id = $this->request_params['method']->get('shipping_method_id');\n $LabelsCount = $this->auction_params->getLabelsCount($shipping_method_id);\n $domu = strlen($this->auction_params->get('house_shipping')) <= 10 ? \n $this->auction_params->get('house_shipping') :\n substr($this->auction_params->get('house_shipping'), 0, 9);\n\n $weight_total = 0;\n $quantity_total = 0;\n $parcels = [];\n $allorder = \\Order::listAll($this->request_params['DB'], $this->request_params['DB'],\n $this->auction_params->get('auction_number'), $this->auction_params->get('txnid'), 1,\n $this->auction_params->getMyLang(), '0,1', 1);\n\n foreach ($allorder as $key => $order) {\n if (\n $allorder[$key]->article_id != 0 &&\n $allorder[$key]->admin_id == 0 &&\n !in_array($order->article_id, $this->articlesToExclude())\n ) {\n $article = new \\Article($this->request_params['DB'], $this->request_params['DB'], $order->article_id);\n if(\n stripos($article->data->title, 'carton') !== false ||\n stripos($article->data->title, 'cartoon') !== false\n ){\n unset($allorder[$key]);\n continue;\n }\n $weight = $article->parcels[0]->weight_parcel * $order->quantity;\n $weight_total += $weight;\n $quantity = ceil($order->quantity / $article->data->items_per_shipping_unit);\n $quantity_total += $quantity;\n// $parcels[] = [ // produces 1/n label\n// 'weight' => $weight,\n// 'quantity' => $quantity,\n// ];\n }\n }\n $labels = $this->request_params['number_of_labels_ll'] ? $this->request_params['number_of_labels_ll'] : 1;\n // produce amount of pages specified here\n // http://proloheap.prologistics.info/mobile.php?branch=pl&step=3&warehouse_id=107&ramp_id=11\n for($i = 0; $i < $labels; $i++){\n $parcels[] = [ // produces 1/1 label\n 'weight' => $weight_total / $labels,\n 'quantity' => 1,\n ];\n }\n \n \n $weight_details = $this->weightIndex($parcels);\n \n $company = trim($this->auction_params->get('company_shipping')) ? trim($this->auction_params->get('company_shipping')) : \" \";\n $address = $company . \" \" . $this->auction_params->get('firstname_shipping') . \" \" . $this->auction_params->get('name_shipping');\n $address = preg_replace('~[„”]+~', ' ', $address); // Removes special chars\n $zip = str_replace([' ', '-'], '', $this->auction_params->get('zip_shipping'));\n $zip = substr_replace($zip, '-', 2, 0);\n\n $dane = \"<Dane>\n<NazwaMetody>DodajPrzesylki</NazwaMetody>\n<Parametry>\n<Przesylka>\n<usluga>E</usluga>\n<zleceniodawca>{$this->client_id}</zleceniodawca>\n<platnik>ZL</platnik>\n<N_CK>{$this->client_id}</N_CK>\n$weight_details\n<O_CK/>\n<o_os_pryw>N</o_os_pryw>\n<o_nazwa>\" . $address . \"</o_nazwa>\n<o_ulica>\" . $this->auction_params->get('street_shipping') . \"</o_ulica>\n<o_miejscowosc>\" . $this->auction_params->get('city_shipping') . \"</o_miejscowosc>\n<o_kod_pocztowy>\" . $zip . \"</o_kod_pocztowy>\";\n \n$tel_shipping = $this->auction_params->data->tel_shipping_formatted;\n$cel_shipping = $this->auction_params->data->cel_shipping_formatted;\n\nif(strlen($tel_shipping) < 6 || strlen($cel_shipping) < 6){\n if(strlen($tel_shipping) < 6 && strlen($cel_shipping) > 6) $tel_shipping = $cel_shipping;\n if(strlen($cel_shipping) < 6 && strlen($tel_shipping) > 6) $cel_shipping = $tel_shipping;\n}\n\n$dane .= \"<o_tel_st>$tel_shipping</o_tel_st>\";\n$dane .= \"<o_tel_gsm>$cel_shipping</o_tel_gsm>\";\n \n$dane .= \"\n<o_email>\" . $this->auction_params->get('email_shipping') . \"</o_email>\n<O_NR_DOMU>\" . $domu . \"</O_NR_DOMU>\";\n\n if ($this->auction_params->get('payment_method') == '2' && $LabelsCount == 0) {\n $dane .= \"<u_pobranie>T</u_pobranie>\n<u_wart_pobrania>\" . $invoice->get(\"open_amount\") . \"</u_wart_pobrania>\n<u_rach_pobrania>\" . str_replace(' ', '', $seller->get(\"bank_account\")) . \"</u_rach_pobrania>\";\n } else {\n $dane .= \"<u_pobranie/>\n<u_wart_pobrania/>\n<u_rach_pobrania/>\";\n }\n \n $dane .= \"\n<u_ubezp>N</u_ubezp>\n<u_dost_aw_mail>N</u_dost_aw_mail>\n<opis>parcel</opis>\n<nr_przesylki></nr_przesylki>\n<UWAGI>\" . $english[65] . ' ' . $this->auction_params->get('auction_number') . '/' . $this->auction_params->get('txnid') . \"</UWAGI>\n<lp>Zamowienie: \" . $this->auction_params->get('auction_number') . \"</lp>\n</Przesylka>\n</Parametry>\n</Dane>\";\n\n return $dane;\n }", "function quote($method = '', $module = '', $vendors_id='1') {\n global $shipping_quoted, $order, $cart, $shipping_num_boxes, $shipping_weight;\n\n $quotes_array = array();\n if (is_array($this->modules[$vendors_id])) {\n $shipping_quoted = '';\n $shipping_num_boxes = 1;\n \n $shipping_weight = $cart->vendor_shipping[$vendors_id]['weight'];\n $shipping_cost = $cart->vendor_shipping[$vendors_id]['cost'];\n $total_count = $cart->vendor_shipping[$vendors_id]['qty'];\n\n $vendors_data_query = tep_db_query(\"select percent_tare_weight, \n tare_weight, \n max_box_weight \n from \" . TABLE_VENDORS . \" \n where vendors_id = '\" . (int)$vendors_id . \"'\"\n );\n $vendors_data = tep_db_fetch_array($vendors_data_query); //Only the row of the table that is for this vendor\n if ($vendors_data['max_box_weight'] == 0) $vendors_data['max_box_weight'] = 1000000;\n\n if ($vendor['tare_weight'] >= $shipping_weight*$vendors_data['percent_tare_weight']/100) {\n $shipping_weight = $shipping_weight + $vendors_data['tare_weight'];\n } else {\n $shipping_weight = $shipping_weight + ($shipping_weight*$vendors_data['percent_tare_weight']/100);\n }\n\n if ($shipping_weight > $vendors_data['max_box_weight']) { // Split into many boxes\n $shipping_num_boxes = ceil($shipping_weight/$vendors_data['max_box_weight']);\n $shipping_weight = $shipping_weight/$shipping_num_boxes;\n }\n\n $include_quotes = array();\n reset($this->modules[$vendors_id]);\n foreach ($this->modules[$vendors_id] as $value) {\n $class = substr($value, 0, strrpos($value, '.')); // $class is the filename without the .php\n if (tep_not_null($module)) {\n if ( ($module == $class) && ($GLOBALS[$class]->enabled($vendors_id)) ) {\n $include_quotes[] = $class;\n }\n } elseif ($GLOBALS[$class]->enabled($vendors_id)) { //Module is enabled for this vendor\n $include_quotes[] = $class;\n }\n }\n\n reset($include_quotes);\n $size = sizeof($include_quotes);\n for ($i=0; $i<$size; $i++) {\n $quotes = $GLOBALS[$include_quotes[$i]]->quote($method, '', $vendors_id);\n if (is_array($quotes)) $quotes_array[] = $quotes;\n }\n }\n\n return $quotes_array;\n }", "private function _cookData($info) {\n\t\tif(!$info['stock_num']) $this->output(-1, '商品库存不能为空.');\n\t\tif(!$info['limit_num']) $this->output(-1, '商品限购不能为空.');\n\t\tif(!$info['descrip']) $this->output(-1, '商品详情不能为空.');\n\t\tif(!$info['ishot']) $info['ishot'] = 0;\n\n\t\tif(!$info['title']) $this->output(-1, '商品名称不能为空.');\n\t\tif (Util_String::strlen($info['title']) > 60) $this->output('-1', '商品标题不能超过30个字.');\n\t\t\n\t\tif(!$info['img']) $this->output(-1, '商品图片不能为空.');\n\t\tif(!$info['start_time']) $this->output(-1, '开始时间不能为空.'); \n\t\tif(!$info['end_time']) $this->output(-1, '结束时间不能为空.');\n\t\tif($info['end_time'] <= $info['start_time']) $this->output(-1, '开始时间不能大于结束时间.');\n\t\t$info['start_time'] = strtotime($info['start_time']);\n\t\t$info['end_time'] = strtotime($info['end_time']);\n\t\t$info['descrip'] = html_entity_decode(stripslashes($info['descrip']));\n\n\t\treturn $info;\n\t}", "function parseForIngredients($content) {\n $sentinel = true;\n $count = 0; \n global $Units;\n global $IngredientList;\n \n \n while($sentinel) {\n $item = \"\";\n $measure = \"\";\n $word = \"\";\n $ingredient = new Ingredient();\n \n $startpos = strpos($content, '<li class=\"ingredient\" itemprop=\"ingredients\">');\n if($startpos !== false)\n $startpos += 46;\n $content = substr($content, $startpos);\n $endpos = strpos($content, '</li>');\n $line = substr($content, 0, $endpos);\n \n $line = explode(\" \", $line);\n \n $word = $line[0];\n \n if(is_numeric($word)) {\n $ingredient->amount = (int) $word;\n } else if(is_fraction($word)) {\n $ingredient->amount = (double) get_fraction($word);\n } else {\n $ingredient->amount = \"-\";\n }\n \n $i = count($line);\n \n $cost = substr($line[$i-1],1);\n \n if(is_numeric($cost))\n $ingredient->cost = (double) $cost;\n \n for($j=0;$j<$i-1;$j++) {\n $word = $line[$j];\n if(!(is_numeric($word) || is_fraction($word))) \n {\n if((strpos($Units, $word) !== false) || (substr($word, 0,1) === '(') || (substr($word, -1) === ')')){\n $measure = $measure . $word . \" \";\n } else {\n $item = $item . \" \" . $word; \n }\n }\n }\n \n if(empty($measure))\n $ingredient->measure = \"-\";\n else\n $ingredient->measure = $measure;\n \n $ingredient->item = $item;\n \n $inList = false;\n \n foreach($IngredientList as $struct) {\n if($ingredient->item == $struct->item) {\n $inList = true;\n break;\n }\n }\n \n if(!$inList) \n $IngredientList[] = $ingredient;\n \n if(strpos($content,'<li class=\"ingredient\" itemprop=\"ingredients\">') === false)\n $sentinel = false;\n \n $count += 1;\n }\n}", "function getProduct()\n\t\t{\n\t\t\tglobal $conn;\n\t\t\tif(isset($_POST[\"trademarkID\"]) || isset($_POST[\"limit\"]))\n\t\t\t{\n\t\t\t\t$trademark_id=$_POST[\"trademarkID\"];\n\t\t\t\t$limit=$_POST[\"limit\"];\n\t\t\t}\n\t\t\t$query=\"SELECT * FROM product P, trademark T WHERE T.Trademark_id =\".$trademark_id.\" AND T.Trademark_id=P.Trademark_id ORDER BY P.Count_buy DESC LIMIT \".$limit.\",20\";\n\t\t\t$kq=mysqli_query($conn,$query);\n\t\t\t$chuoijson=array();\n\t\t\techo \"{\";\n\t\t\techo \"\\\"PRODUCT\\\":\";\n\t\t\tif($kq)\n\t\t\t{\n\t\t\t\twhile($dong=mysqli_fetch_array($kq))\n\t\t\t\t{\n\t\t\t\t\tarray_push($chuoijson, array(\"Product_id\"=>$dong[\"Product_id\"]\n\t\t\t\t\t,'Product_name'=>$dong[\"Product_name\"]\n\t\t\t\t\t,'Price'=>$dong[\"Price\"]\n\t\t\t\t\t,'Image'=>\"http://\".$_SERVER['SERVER_NAME'].\":82\".\"/webpasokon\".$dong[\"Big_Image\"]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\techo json_encode($chuoijson,JSON_UNESCAPED_UNICODE);\n\t\t\techo \"}\";\n\t\t}", "protected function getItemsInfo($order, $quote)\n {\n $dataItems = [];\n foreach ($order->getAllVisibleItems() as $item) {\n $product = $item->getProduct();\n $image = $this->_helperImage->init($product, 'product_thumbnail_image');\n\n $dataItems[] = [\n \"id\" => $item->getSku(),\n \"title\" => $product->getName(),\n \"description\" => $product->getName(),\n \"picture_url\" => $image->getUrl(),\n \"quantity\" => Round::roundInteger($item->getQtyOrdered()),\n \"unit_price\" => Round::roundWithSiteId($item->getPrice(), $this->getSiteId()),\n \"category_id\" => $this->_scopeConfig->getValue(\n \\MercadoPago\\Core\\Helper\\ConfigData::PATH_ADVANCED_CATEGORY,\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n )\n ];\n }\n\n $discount = $this->getDiscountAmount($quote);\n if ($discount != 0) {\n $dataItems[] = [\n \"id\" => __('Discount'),\n \"title\" => __('Discount'),\n \"description\" => __('Discount'),\n \"quantity\" => 1,\n \"unit_price\" => Round::roundWithSiteId($discount, $this->getSiteId())\n ];\n }\n\n return $dataItems;\n }", "protected function _getQuote()\n {\n return $this->_getCart()->getQuote();\n }", "public function _get_prices_result($arts, $discount = 0, $primary_article = null, $is_join_vendors = true)\n\t{\n\t\t$i_ids_array = $this->local->import_group_ids_array();\n\n $this->numbers = array();\n $this->brands = array();\n\t\t$this->stock = array();\n\n // Prep the brand warning trigger\n $this->all_brands_are_similar = TRUE;\n\n\t\t//\n\t\t$this->arts_keyvals = array();\n\n\t\tif (!empty($primary_article))\n\t\t\t$arts[] = $primary_article;\n\n\t\tif (empty($arts) || !is_array($arts))\n\t\t\treturn null;\n\n\t\t// Iterate through input\n\t\tforeach ($arts as $art)\n\t\t{\n\t\t\t// There can be complete article objects\n\t\t\tif (is_object($art))\n\t\t\t{\n\t\t\t\t$nr = (string) $art->number_clear;\n\t\t\t}\n\n\t\t\t// Or just article numbers (AZ1232 is also meant to be a number)\n\t\t\telse\n\t\t\t{\n\t\t\t\t// We cast string for the case when article number starts with zero\n\t\t\t\t$nr = (string) $art;\n\t\t\t}\n\n\t\t\t// If the number is not already in array\n\t\t\tif (!in_array($nr, $this->numbers, TRUE))\n\t\t\t{\n\t\t\t\t// Add to array\n $this->numbers[] = $nr;\n\t\t\t}\n\n\t\t\tif (!empty($art->brand_clear) && !empty($art->number_clear))\n\t\t\t\t$this->arts_keyvals[$art->brand_clear . $art->number_clear] = $art;\n\t\t\telse\n\t\t\t\t$this->arts_keyvals[] = $art;\n\t\t}\n\n\t\t// Prep a DB where_in routine\n\t\t$this->db->where_in('art_number_clear', $this->numbers);\n\n\t\t// Other DB conditions\n\t\tif ($is_join_vendors)\n\t\t{\n\t\t\t$this->db->select\n\t\t\t('\n\t\t\t\tprices.id,\n\t\t\t\tprices.art_number,\n\t\t\t\tprices.art_number_clear,\n\t\t\t\tprices.sup_brand,\n\t\t\t\tprices.vendor_id,\n\t\t\t\tprices.description,\n\t\t\t\tprices.qty,\n\t\t\t\tprices.price,\n\t\t\t\tvendors.vendor_name,\n\t\t\t\tvendors.delivery_days\n\t\t\t');\n\n\t\t\t$this->db->join('vendors', 'prices.vendor_id = vendors.id');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->db->select('`id`, `art_number_clear`, `art_number`, `sup_brand`, `vendor_id`, `description`, `qty`, `price`', FALSE);\n\t\t}\n\n\t\t$this->db->where_in('prices.import_group_id', $i_ids_array);\n\n\t\t// Limit to 500 just in case (as prices table is very heavy)\n\t\t$this->db->limit(500);\n\n\t\t// Perform query\n\t\t$q = $this->db->get('prices');\n\n $this->stock_num_rows = $q->num_rows();\n\n\t\tif ($this->stock_num_rows > 0) {\n\t\t\tforeach ($q->result() as $r) {\n\t\t\t\t$r->sup_brand_clear = $this->appflow->qprep($r->sup_brand, \"sup_brand\");\n\t\t\t\t$r->art_number_clear = $this->appflow->qprep($r->art_number, \"art_nr\");\n\n\t\t\t\t$r->idkey = $r->sup_brand_clear . $r->art_number_clear;\n\n if (!empty($this->arts_keyvals[$r->idkey])) {\n $stock_art = clone $this->arts_keyvals[$r->idkey];\n }\n else {\n $stock_art = new stdClass();\n\n if (count($arts) == 1 && !empty($primary_article)) {\n $stock_art->number = $primary_article->number;\n $stock_art->brand = $primary_article->brand;\n $stock_art->number_clear = $primary_article->number_clear;\n $stock_art->brand_clear = $primary_article->brand_clear;\n }\n }\n\n $stock_art->number_prc = $r->art_number;\n $stock_art->number_prc_clear = $r->art_number_clear;\n $stock_art->brand_prc = $r->sup_brand;\n $stock_art->brand_prc_clear = $r->sup_brand_clear;\n $stock_art->prices_row_id = $r->id;\n $stock_art->name_prc = $r->description;\n $stock_art->qty = $r->qty;\n $stock_art->price = $r->price;\n $stock_art->vendor_id = $r->vendor_id;\n $stock_art->vendor_name = $this->local->vendor($r->vendor_id)->vendor_name;\n $stock_art->vendor_delivery_days = $this->local->vendor($r->vendor_id)->delivery_days;\n $stock_art->vendor_last_update_readable = date('d.m.Y', $this->local->vendor($r->vendor_id)->last_update);\n $stock_art->discount = $discount;\n\n if ($discount > 0)\n {\n $stock_art->discount_price = $r->price * (1 - $discount/100);\n }\n else\n {\n $stock_art->discount_price = $r->price;\n }\n\n // Check Brands for matching\n $stock_art->brands_match = $this->is_similar_brands($stock_art->brand_prc_clear, $stock_art->brand_clear);\n\n if ($stock_art->brands_match === FALSE or $stock_art->brands_match === 'neutral')\n {\n $this->all_brands_are_similar = FALSE;\n }\n\n // Mark as primary\n if (!empty($primary_article) && $stock_art->brands_match === TRUE && $primary_article->number_clear == $stock_art->number_clear)\n $stock_art->primary = TRUE;\n else\n $stock_art->primary = FALSE;\n\n // no duplicates from prices\n $this->stock[$r->id] = $stock_art;\n\n // simply brands list\n if (!in_array($stock_art->brand_clear, $this->brands))\n $this->brands[] = $stock_art->brand_clear;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\n\n\n\t\t// Return\n\t\treturn false;\n\t}", "public function addDescriptionParams()\n {\n $oBasket = $this->getBasket();\n $oConfig = $this->getPayPalConfig();\n $oRequest = $this->getPayPalRequest();\n\n // description\n $sShopNameFull = $oConfig->getBrandName();\n $sShopName = substr($sShopNameFull, 0, 70);\n if ($sShopNameFull != $sShopName) {\n $sShopName .= \"...\";\n }\n\n $sSubj = sprintf($this->getLang()->translateString(\"OEPAYPAL_ORDER_SUBJECT\"), $sShopName, $oBasket->getFPrice(), $oBasket->getBasketCurrency()->name);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_DESC\", $sSubj);\n $oRequest->setParameter(\"PAYMENTREQUEST_0_CUSTOM\", $sSubj);\n }", "function __construct()\n\t{\n\t\t$standard_proteins = array('Grilled chicken', 'Seared steak', 'Caramelized pork belly', 'Fried tofu', 'Seasonal roasted veggies');\n\t\t$standard_toppings = array('Pickles', 'Extra dressing', 'Cheese', 'Fruit', 'Jalapenos', 'Olives');\n\n\t\t$standard_quantities = array(0,1,2,3,4,5,6,7,8);\n\t\t//($name, $description, $price, $quantities, $options, $extras)\n\t\t$items = array(\n\t\t\tnew items('RICE BOWL', 'Brown Rice or White rice, pickled carrot & daikon, mesclun, cilantro, scallions, fried shallots, and soy drizzle.', 8.25, \n\t\t\t $standard_quantities, $standard_proteins, $standard_toppings),\n\t\t\tnew items('NOODLE SALAD', 'Soba or Rice Noodles (GF), carrot, mesclun, cilantro, and red onion.', 9, \n\t\t\t $standard_quantities, $standard_proteins, $standard_toppings),\n\t\t\tnew items('SALAD (GF)', 'A bed of mesclun with carrot, cilantro, red onion, tomatoes, and almonds', 8, \n\t\t\t $standard_quantities, $standard_proteins, $standard_toppings)\n\t\t);\n\n\t\t//$name, $description, $price, $quantities, $flavors, $sizes\n\t\t$standard_drink_sizes = array('Small', 'Medium', 'Large');\n\n\t\t$beverage = array(\n new beverage('RUMBO', 'Almonds and bananas are blended together.', 5.25, $standard_quantities, $standard_drink_sizes),\n new beverage('SUNRISE STAR', 'spinach, broccoli, celery, cucumber, orange, banana, grapefruit, ice.', 6.25, $standard_quantities, $standard_drink_sizes),\n new beverage('SUNSET STAR', 'carrots, strawberries, orange, peach, ice.', 5.25, $standard_quantities, $standard_drink_sizes),\n\t\t\tnew beverage('Banana Nut', 'Almonds and bananas are blended together.', 5.25, $standard_quantities, $standard_drink_sizes),\n new beverage('Mango Tango', 'Strawberries, mango, pineapple, banana.', 5.75, $standard_quantities,\n\t\t\t $standard_drink_sizes),\n new beverage('Island Passion', 'Mango, bananas and peaches delivered with a hint of coconut keeps you coming back to the island.', 6.00, $standard_quantities, $standard_drink_sizes),\n\t\t\t\n\t\t\t);\n\n\t\t$menu = '<h2>Food Menu</h2>';\n\n\t\tforeach ($items as $item){\n\t\t\t$menu .= $item->toFormField();\n\t\t}\n\n\t\t$menu .= '<h2> Juice Menu </h2>';\n\t\tforeach ($beverage as $beverage){\n\t\t\t$menu .= $beverage->toFormField();\n\t\t}\n\n\t\t$this->form = $menu;\n\t\t$this->items = $items;\n\t\t$this->beverage = $beverage;\n\t}", "public function getItemsInfo()\n {\n $data = [];\n foreach ($this->getOrder()->getAllItems() as $item) {\n if ($this->getDisplayWrappingBothPrices()) {\n $temp['price_excl_tax'] = $this->_preparePrices($item->getGwBasePrice(), $item->getGwPrice());\n $temp['price_incl_tax'] = $this->_preparePrices(\n $item->getGwBasePrice() + $item->getGwBaseTaxAmount(),\n $item->getGwPrice() + $item->getGwTaxAmount()\n );\n } elseif ($this->getDisplayWrappingPriceInclTax()) {\n $temp['price'] = $this->_preparePrices(\n $item->getGwBasePrice() + $item->getGwBaseTaxAmount(),\n $item->getGwPrice() + $item->getGwTaxAmount()\n );\n } else {\n $temp['price'] = $this->_preparePrices($item->getGwBasePrice(), $item->getGwPrice());\n }\n $temp['design'] = $item->getGwId();\n $data[$item->getId()] = $temp;\n }\n return new \\Magento\\Framework\\DataObject($data);\n }", "public function installQuoteData()\n {\n $quoteInstaller = $this->quoteSetupFactory->create(\n [\n 'resourceName' => 'quote_setup',\n 'setup' => $this->setup\n ]\n );\n $quoteInstaller\n ->addAttribute(\n 'quote',\n CustomFieldsInterface::CHECKOUT_PURPOSE,\n ['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true]\n );\n }", "public function getDescription()\n {\n return $this->beverage->getDescription().', '.$this->description;\n }", "function ppt_resources_get_consumptions_stocks_per_product($data)\n{\n if (!isset($data['year']) || (!isset($data['uid']))) {\n return services_error('Year or UID are not defined!', 500);\n }\n\n global $user;\n $year = $data['year'];\n $accounts = [];\n // If there is no uid sent with the api so get the current user id.\n if (isset($data['uid']) && !empty($data['uid'])) {\n $uid = $data['uid'];\n } else {\n $uid = $user->uid;\n }\n $countries = array();\n if (isset($data['countries'])) {\n $countries = $data['countries'];\n }\n $reps = array();\n if (isset($data['reps'])) {\n $reps = $data['reps'];\n } else {\n $is_rep = FALSE;\n if (is_rep($user)) {\n $is_rep = TRUE;\n }\n $reps = ppt_resources_get_sales_manager_reps($uid, $countries, $is_rep);\n }\n\n $user = user_load($uid);\n\n // Check if user selected accounts.\n if (isset($data['accounts'])) {\n $accounts = $data['accounts'];\n } else {\n $accounts = ppt_resources_get_role_accounts($user, $countries);\n }\n\n $products = [];\n // Check if user selected products.\n if (isset($data['products'])) {\n $products = get_products_dosages($data['products']);\n } else {\n // If the user is rep.\n if (is_rep($user)) {\n $products = get_products_for_current_user($uid);\n } else {\n $products = get_products_for_accounts($accounts);\n }\n }\n\n $entries = get_entries($accounts, $products, NULL, $reps);\n $entries_records = get_entries_records_for_year($entries, $year, 'consumption_stock_entry');\n $consumptions = sum_records_per_field_grouped_by_account($entries_records, 'field_product');\n\n return $consumptions;\n}", "function get_new_in_products()\n{\n $sql = \"SELECT * ,SUBSTRING(product_short_description, 1, 20) as sub_description \n FROM products where publish_status = 'public' order by date_time desc limit 3\";\n $query = query($sql);\n confirm($query);\n\n $heading = true;\n while ($row = fetch_array($query)) {\n $product_image = display_image($row['product_image']);\n if ($row['product_disc_price'] != '0') {\n $discount_button = \"<span class='pull-right'><span class='label label-danger blink'> Sale</span> <strong> Rs. {$row['product_disc_price']}</strong></span>\";\n $sale_price = \"<s style='color: #adadad'>Rs. {$row['product_price']}</s>\";\n } else {\n $discount_button = '';\n $sale_price = \"Rs. {$row['product_price']}\";\n }\n\n if ($heading == true) {\n echo '<h4 class=\"breadcrumb\"><span class=\"glyphicon glyphicon-share-alt\"><span> NEW ARRIVALS</h4>';\n $heading = false;\n }\n\n $product = <<<DELIMETER\n \n <div class='col-sm-4 col-lg-4 col-md-4'>\n <div class='thumbnail'>\n <a href='item.php?id={$row['product_id']}'><img style=\"height: 300px\" class=\"img-responsive img-thumbnail\" src='../resources/{$product_image}' alt=''></a>\n <div class='caption'> \n <h4 class='pull-right'>{$sale_price}</h4>\n <h4><a href='item.php?id={$row['product_id']}'>{$row['product_title']}</a> </h4>\n \n\n <a class='btn btn-primary pull-left' href='../resources/cart.php?add={$row['product_id']}&page=index'> Add to <span class=\"glyphicon glyphicon-shopping-cart\"><span></a>\n \n {$discount_button}\n \n \n </div> \n </div>\n </div> \nDELIMETER;\n\n echo $product;\n }\n}", "function _getIntlQuote($pkg, $method) {\r\n\t\tglobal $order;\r\n\t\tif (tep_not_null($method) && in_array($method, $this->intl_available)) {\r\n\t\t\t$request_types = array($method);\r\n\t\t} else {\r\n\t\t\t$request_types = $this->intl_available;\r\n\t\t}\r\n\t\t$this->intl_request_types = $request_types;\r\n\t\t$shipping_weight = ($pkg['item_weight'] < 0.0625 ? 0.0625 : $pkg['item_weight']);\r\n\t\t$shipping_pounds = floor($shipping_weight);\r\n\t\t$shipping_ounces = ceil((16 * ($shipping_weight - $shipping_pounds)) * 100) / 100; // rounded to two decimal digits\r\n\r\n\t\t// # if shipment is under one lb convert to ounces.\r\n\r\n\t\tif (SHIPPING_UNIT_WEIGHT == 'LBS' && $shipping_weight < 1.00) { \r\n\t\t\t$shipping_weight = ($shipping_weight / 16);\r\n\t\t}\r\n\r\n\t\t$nonuspsinsurancecost = 0;\r\n\t\tif (MODULE_SHIPPING_USPS_NON_USPS_INSURE == 'True') {\r\n\t\t\tif ($pkg['item_price'] <= 50) {\r\n\t\t\t\t$nonuspsinsurancecost = MODULE_SHIPPING_USPS_INS1;\r\n\t\t\t} else if ($pkg['item_price'] <= 100) {\r\n\t\t\t\t$nonuspsinsurancecost = MODULE_SHIPPING_USPS_INS2;\r\n\t\t\t}\telse if ($pkg['item_price'] <= 200) {\r\n\t\t\t\t$nonuspsinsurancecost = MODULE_SHIPPING_USPS_INS3;\r\n\t\t\t} else if ($pkg['item_price'] <= 300) {\r\n\t\t\t\t$nonuspsinsurancecost = MODULE_SHIPPING_USPS_INS4;\r\n\t\t\t} else {\r\n\t\t\t\t$nonuspsinsurancecost = MODULE_SHIPPING_USPS_INS4 + ((ceil($pkg['item_price']/100) - 3) * MODULE_SHIPPING_USPS_INS5);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (empty($this->intl_maxinsure) || (MODULE_SHIPPING_USPS_INTL_INSURANCE_OPTION == 'False')) {\r\n\t\t\t$checkvalues = array($pkg['item_price']);\r\n\t\t} else {\r\n\t\t\t$checkvalues = array();\r\n\t\t\tforeach ($this->intl_maxinsure as $maxins) {\r\n\t\t\t\tif ($pkg['item_price'] <= $maxins) {\r\n\t\t\t\t\t$checkvalues[] = $pkg['item_price'];\r\n\t\t\t\t\tbreak; // stop once we find package value is less than allowed maximum\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$checkvalues[] = $maxins;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\trsort($checkvalues); // values must be checked in reverse order\r\n\t\t$request = \t'<IntlRateV2Request USERID=\"' . MODULE_SHIPPING_USPS_USERID . '\">' .\r\n\t\t\t\t'<Revision>2</Revision>';\r\n\t\tforeach ($checkvalues as $pkgvalue) {\r\n\t\t\t$request .= '<Package ID=\"' . intval($pkgvalue) . '\">' .\r\n\t\t\t\t\t'<Pounds>' . $shipping_pounds . '</Pounds>' .\r\n\t\t\t\t\t'<Ounces>' . $shipping_ounces . '</Ounces>' .\r\n\t\t\t\t\t'<Machinable>True</Machinable>' .\r\n\t\t\t\t\t'<MailType>All</MailType>' .\r\n\t\t\t\t\t'<GXG>' .\r\n\t\t\t\t\t'<POBoxFlag>N</POBoxFlag>' .\r\n\t\t\t\t\t'<GiftFlag>N</GiftFlag>' .\r\n\t\t\t\t\t'</GXG>' .\r\n\t\t\t\t\t'<ValueOfContents>' . number_format($pkgvalue, 2, '.', '') . '</ValueOfContents>' .\r\n\t\t\t\t\t'<Country>' . $this->countries[$order->delivery['country']['iso_code_2']] . '</Country>' .\r\n\t\t\t\t\t'<Container>RECTANGULAR</Container>' .\r\n\t\t\t\t\t'<Size>' . ((max($pkg['item_length'], $pkg['item_width'], $pkg['item_height']) > 12) ? ' LARGE' : 'REGULAR') . '</Size>' .\r\n\t\t\t\t\t'<Width>' . $pkg['item_width'] . '</Width>' .\r\n\t\t\t\t\t'<Length>' . $pkg['item_length'] . '</Length>' .\r\n\t\t\t\t\t'<Height>' . $pkg['item_height'] . '</Height>' .\r\n\t\t\t\t\t'<Girth>' . ($pkg['item_height'] + $pkg['item_height'] + $pkg['item_width'] + $pkg['item_width']) . '</Girth>' .\r\n\t\t\t\t\t'<OriginZip>' . SHIPPING_ORIGIN_ZIP . '</OriginZip>' .\r\n\t\t\t\t\t\r\n\t\t\t\t\t'<CommercialFlag>Y</CommercialFlag>' .\r\n\t\t\t\t\t'<ExtraServices>' .\r\n\t\t\t\t\t'<ExtraService>1</ExtraService>' .\r\n\t\t\t\t\t'</ExtraServices>' .\r\n\t\t\t\t\t'</Package>';\r\n\t\t}\r\n\t\t$request .= '</IntlRateV2Request>';\r\n\t\t\r\n\t\t$request = \t'API=IntlRateV2&XML=' . urlencode($request);\r\n\t\t$usps_server = 'production.shippingapis.com';\r\n\t\t$api_dll = 'shippingAPI.dll';\r\n\t\t$body = '';\r\n\t\tif (!class_exists('httpClient')) {\r\n\t\t\tinclude(DIR_FS_CATALOG . DIR_WS_CLASSES . 'http_client.php');\r\n\t\t}\r\n\t\t$http = new httpClient();\r\n\t\tif ($http->Connect($usps_server, 80)) {\r\n\t\t\t$http->addHeader('Host', $usps_server);\r\n\t\t\t$http->addHeader('User-Agent', 'IntenseCart eCommerce');\r\n\t\t\t$http->addHeader('Connection', 'Close');\r\n\t\t\tif ($http->Get('/' . $api_dll . '?' . $request)) $body = $http->getBody();\r\n\t\t\t$http->Disconnect();\r\n\t\t} else {\r\n\t\t\t$body = '<Error><Number></Number><Description>' . MODULE_SHIPPING_USPS_TEXT_CONNECTION_ERROR . '</Description></Error>';\r\n\t\t}\r\n\t\t$doc = XML_unserialize($body);\r\n\t\t\r\n\t\t\r\n// \t\tprint_R( $doc );\r\n// \t\texit;\r\n\t\t\r\n\t\t\r\n\t\t$quotes = array();\r\n\t\tif (isset($doc['Error'])) return array('error' => $doc['Error']['Number'] . ' ' . $doc['Error']['Description']);\r\n\t\tif (isset($doc['IntlRateV2Response']['Package']['Error'])) return array('error' => $doc['IntlRateV2Response']['Package']['Error']['Number'] . ' ' . $doc['IntlRateV2Response']['Package']['Error']['Description']);\r\n\t\tif (isset($doc['IntlRateV2Response']['Package'][0]['Error'])) return array('error' => $doc['IntlRateV2Response']['Package']['Error'][0]['Number'] . ' ' . $doc['IntlRateV2Response']['Package'][0]['Error']['Description']);\r\n\t\tif (isset($doc['IntlRateV2Response']['Package']['Service']['SvcDescription'])) { // single mail service response\r\n\t\t\t$tmp = $this->_decode_intl_response($doc['RateV4Response']['Package']['Service'], $nonuspsinsurancecost, $pkg['item_price']);\r\n\t\t\tif (!empty($tmp)) $quotes[$tmp['id']] = $tmp;\r\n\t\t} elseif (isset($doc['IntlRateV2Response']['Package']['Service'][0])) { // multiple mailing services returned\r\n\t\t\tforeach ($doc['IntlRateV2Response']['Package']['Service'] as $mailsvc) {\r\n\t\t\t\tif (isset($mailsvc['SvcDescription'])) {\r\n\t\t\t\t\t$tmp = $this->_decode_intl_response($mailsvc, $nonuspsinsurancecost, $pkg['item_price']);\r\n\t\t\t\t\tif (!empty($tmp)) $quotes[$tmp['id']] = $tmp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} elseif (isset($doc['IntlRateV2Response']['Package'][0]['Service'])) { // multiple packages requested for insurance purposes\r\n\t\t\tforeach ($doc['IntlRateV2Response']['Package'] as $package) {\r\n\t\t\t\tif (isset($package['Service']['SvcDescription'])) { // single mail service response for package\r\n\t\t\t\t\t$tmp = $this->_decode_intl_response($package['Service'], $nonuspsinsurancecost, $pkg['item_price']);\r\n\t\t\t\t\tif (!empty($tmp)) if (!isset($quotes[$tmp['id']])) $quotes[$tmp['id']] = $tmp; // save only first valid response\r\n\t\t\t\t} elseif (isset($package['Service'][0])) { // multiple mailing services returned for package\r\n\t\t\t\t\tforeach ($package['Service'] as $mailsvc) {\r\n\t\t\t\t\t\tif (isset($mailsvc['SvcDescription'])) {\r\n\t\t\t\t\t\t\t$tmp = $this->_decode_intl_response($mailsvc, $nonuspsinsurancecost, $pkg['item_price']);\r\n\t\t\t\t\t\t\tif (!empty($tmp)) if (!isset($quotes[$tmp['id']])) $quotes[$tmp['id']] = $tmp; // save only first valid response\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $quotes;\r\n\t}", "function quotes($side = 1) # Browse quote library. MODAL\n\t{\n\t\t# \n\t\t# Get recommended quotes for product.\n\t\t$pid = $this->Session->read(\"Design.Product.product_type_id\");\n\n\t\tif(!empty($pid))\n\t\t{\n\t\t\t$productQuotes = $this->ProductQuote->find('all', array(\n\t\t\t\t'conditions'=>array('ProductQuote.product_type_id'=>$pid)\n\t\t\t));\n\t\t\t#echo \"PC($pid)=\".print_r($productQuotes,true);\n\t\t\t$this->set(\"productQuotes\", $productQuotes);\n\t\t}\n\n\t\t# Otherwise, get quote categories for browsing.\n\t\t$categories = $this->GalleryCategory->find('list', array(\n\t\t\t'conditions'=>\"GalleryCategory.parent_node = 1\",\n\t\t\t'fields'=>array('GalleryCategory.browse_node_id','GalleryCategory.browse_name'),\n\t\t\t'order'=>\"GalleryCategory.browse_name\")\n\t\t);\n\t\t$this->set(\"categories\", $categories);\n\n\t\t$maxLength = $this->Session->read(\"Design.Product.quote_limit\");\n\n\t\tif(!empty($this->data['Quote']['browse_node_id'])) # Browse cat.\n\t\t{\n\t\t\t# For now, make all one page, just make them scroll down...\n\n\t\t\t$category = $this->GalleryCategory->read(null, $this->data['Quote']['browse_node_id']);\n\n\t\t\t$kw = $category['GalleryCategory']['browse_name'];\n\n\t\t\t$browseQuotes = $this->Quote->findAll(array(\" (subjects LIKE '%$kw%') \" . ($maxLength > 0 ? \" AND (LENGTH(text)+LENGTH(attribution)) <= '$maxLength' \" : \"\")));\n\n\t\t\t$this->set(\"browseQuotes\", $browseQuotes);\n\t\t}\n\t\telse if(!empty($this->data['Quote']['keywords'])) # Search\n\t\t{\n\t\t\t# For now, make all one page, just make them scroll down...\n\n\t\t\t$keywords = split(\" \", mysql_escape_string($this->data['Quote']['keywords']));\n\n\t\t\t$keywhere = array();\n\t\t\tforeach($keywords as $kw)\n\t\t\t{\n\t\t\t\t$keywhere[] = \"CONCAT(text,attribution,subjects) LIKE '%$kw%'\";\n\t\t\t}\n\t\t\t$keyword_where = join(\" AND \", $keywhere);\n\t\t\t$searchQuotes = $this->paginate('Quote', array( \" ($keyword_where) \" . ($maxLength > 0 ? \" AND (LENGTH(text)+LENGTH(attribution)) <= '$maxLength' \" : \"\")) );\n\n\t\t\t$this->set(\"searchQuotes\", $searchQuotes);\n\n\t\t}\n\n\t\t$this->set(\"side\", $side); # So we know where to inject results.\n\n\t}", "public function description() {\n\t\tif ( ! is_object( $this->object ) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$description = Strategy::get_from_meta( 'post', $this->object->ID, $this->object, 'description' );\n\t\tif ( \\is_string( $description ) && '' !== $description ) {\n\t\t\treturn $description;\n\t\t}\n\n\t\t$description = Strategy::get_description( 'post', $this->object->post_type, $this->object );\n\t\tif ( \\is_string( $description ) && '' !== $description ) {\n\t\t\treturn $description;\n\t\t}\n\n\t\tif ( is_singular( 'product' ) ) {\n\t\t\treturn 'Finn alt du trenger av treningstøy, kosttilskudd, lavkarbo, smartmat og treningsutstyr. Stort utvalg av alt innen trening. Rask levering til hele Norge.';\n\t\t}\n\n\t\treturn '';\n\t}", "public function property_overview_desc() {\n\n\t\t\t$short_description_1 = get_field( 'short_description_1' );\n\t\t\t$short_description_2 = get_field( 'short_description_2' );\n\n\t\t\t$out = '<h6>Overview Description:</h6>';\n\t\t\t$out .= '<p>';\n\t\t\t$out .= ( get_field( 'advertisement_package' ) == '165' )\n\t\t\t\t? $short_description_1\n\t\t\t\t: $short_description_2;\n\t\t\t$out .= '</p>';\n\t\t\t$out .= '<div class=\"hr hr-default\"><span class=\"hr-inner \"><span class=\"hr-inner-style\"></span></span></div>';\n\n\t\t\tif ( $this->add_package == 3 ) {\n\t\t\t$out .= '<h3>Practice Details:</h3>';\n\t\t\t}\n\n\t\t\treturn $out;\n\t\t}", "public function getsingle($item_id){\n $resource = Mage::getSingleton('core/resource');\n \n /**\n * Retrieve the read connection\n */\n $readConnection = $resource->getConnection('core_read');\n \n $table = $resource->getTableName('core/config_data');\n \n /**\n * Set the product ID\n */\n \n $query = \"SELECT value FROM \" . $table . \" WHERE path='ebay/settings/app_name'\"; \n \n \n /**\n * Execute the query and store the results in $results\n */\n $results = $readConnection->fetchAll($query);\n \n /**\n * Print out the results\n */\n ;\n\n\n $passurl=\"http://open.api.ebay.com/shopping?callname=GetSingleItem&responseencoding=XML&appid=\".$results[0]['value'].\"&siteid=77&version=515&ItemID=\".$item_id.\"&IncludeSelector=Variations,Description,Details,ItemSpecifics,ShippingCosts,QuantitySold,Quantity\";\n \n $responseXml= file_get_contents($passurl);\n \n $responseDoc = new DomDocument();\n $responseDoc->loadXML($responseXml);\n \n \n $des = $responseDoc->getElementsByTagName('Description')->item(0)->nodeValue;\n $soldqty = $responseDoc->getElementsByTagName('QuantitySold')->item(0)->nodeValue;\n $qty = $responseDoc->getElementsByTagName('Quantity')->item(0)->nodeValue;\n \n $itemSpecific = $responseDoc->getElementsByTagName('ItemSpecifics')->item(0);\n $listElements = $itemSpecific->getElementsByTagName('NameValueList');\n $i=0;\n foreach($listElements as $listElement){\n $name=$listElement->getElementsByTagName('Name')->item(0)->nodeValue;\n $value=$listElement->getElementsByTagName('Value')->item(0)->nodeValue;\n $m = Mage::getModel('catalog/resource_eav_attribute')\n ->loadByCode('catalog_product',$name);\n\n if(null===$m->getId()) { $this->createAttribute($name, $name, \"text\", \"simple\"); }\n $name_value_list[$i]=array($name,$value);\n $i++;\n }//for each attribute\n \n $name_value_list=$name_value_list;\n \n /*---------------------------import variation------------------- */\n $option=$option_label=array();\n if($responseDoc->getElementsByTagName('Variation')){\n $variation_list = $responseDoc->getElementsByTagName('Variation');\n }\n $i=0;\n foreach($variation_list as $variation){\n $listElements = $variation->getElementsByTagName('NameValueList');\n $j=0;\n foreach($listElements as $listElement){\n $name=$listElement->getElementsByTagName('Name')->item(0)->nodeValue;\n $value=$listElement->getElementsByTagName('Value')->item(0)->nodeValue;\n $option[$j][$i]=$value; \n $option_label[$j]=$name;\n $j++;\n }\n \n $i++;\n }\n $data_arr1['option']=$option;\n $data_arr1['option_label']= $option_label;\n \n /*--------------------------------end------------------------- */\n \n \n $picture_url= $responseDoc->getElementsByTagName('PictureURL');\n $z=0;\n foreach ($picture_url as $p){\n $p_url[$z]=$p->nodeValue;\n $z++;\n break;\n }\n \n if(empty($p_url)){\n $p_url[0]='http://thumbs.ebaystatic.com/pict/3193577262_3.jpg';\n }\n \n $days = $responseDoc->getElementsByTagName('HandlingTime')->item(0)->nodeValue;\n if(!empty($p_url)){\n $importDir = Mage::getBaseDir('media') . DS . 'import' . DS;\n $i=0;\n foreach($p_url as $p){\n $content=@file_get_contents($p);\n $save = $item_id .$i. '.jpg'; \n $path[$i]=$importDir.''.$save;\n @file_put_contents($path[$i],$content);\n $i++;\n }//each photos\n \n $result['description'] = $des;\n $result['soldqty'] = $soldqty;\n $result['qty'] = $qty;\n $result['path'] = $path;\n $result['name_value_list'] = $name_value_list;\n $result['option'] = $option;\n $result['option_label'] = $option_label;\n \n return $result;\n \n }//if photos \n }", "function shortcode_pricing_table_content( $atts, $content = null ) {\n\t\t$variables = array( 'class' => '' );\n\t\textract( shortcode_atts( $variables, $atts ) );\n\t\t$class = empty( $class )?'':( ' ' . $class );\n\t\t$result = '';\n\t\t$result .= '<p class=\"description' . esc_attr( $class ) . '\">';\n\t\t$result .= do_shortcode( $content );\n\t\t$result .= '</p>';\n\t\treturn $result;\n\t}", "public function feature_quotes() {\r\n\t$query = \\Drupal::entityQuery('node')\r\n ->condition('status', 1)\r\n ->condition('type', 'bc_testimonial') \r\n ->condition('field_feature_quote',1, '=') \r\n ->pager(10);\r\n $nids = $query->execute();\r\n $slider = '<li>';\r\n\tforeach ($nids as $nid) {\r\n\t\t$node = \\Drupal\\node\\Entity\\Node::load($nid);\r\n\t\t$body = $node->body->value;\r\n\t\t$title = $node->title->value;\r\n\t\t$avatar = $node->get('field_bc_testimonial_avatar')->entity->getFileUri();\r\n\t\tif ($wrapper = \\Drupal::service('stream_wrapper_manager')->getViaUri($avatar)) {\r\n\t\t\t$avatar = $wrapper->getExternalUrl();\r\n\t\t}\r\n\t\t$slider.= '<div class=\"bc_main_quote\">\r\n\t\t<div class=\"bc_title_quote\">'.$title.'</div>\r\n\t\t<div class=\"bc_body_quote\">'.$body.'</div>\r\n\t\t<div class=\"bc_image_quote\"><img src=\"'.$avatar.'\"></div>\r\n\t\t</div>';\r\n\t} \r\n\t$slider.= '</li>';\r\n $build = [\r\n '#markup' => $slider,\r\n ];\r\n return $build;\r\n }", "public function buildArticleList(Mage_Sales_Model_Abstract $entity, $context)\n {\n if ($context == self::TYPE_PI) {\n return array();\n }\n // collection adjustment fees is not supported by billsafe\n if (self::TYPE_RF == $context && $entity->getAdjustmentNegative()) {\n throw new Mage_Core_Exception($this->getHelper()->__(\n 'Add adjustment fees is not supported by BillSAFE'\n ));\n }\n\n $order = $entity;\n if (in_array($context, array(self::TYPE_RS, self::TYPE_RF))) {\n $order = $entity->getOrder();\n }\n\n $data = array();\n $items = $this->getAllOrderItems($entity, $order, $context);\n\n $remainShipItemQty = $this->getRemainingShipmentItemQty(\n $order, $context\n );\n\n\n\n $taxAmount = 0;\n $amount = 0;\n $paymentFeeItem = null;\n // order items\n $orderItemData = $this->getOrderItemData(\n $items, $amount, $taxAmount, $context\n );\n\n /*\n * append any virtual products to the last shipping, so that the billsafe state is changed correctly\n *\n */\n if (($context == self::TYPE_RS && $this->areAllPhysicalItemsShipped($order))\n || $context == self::TYPE_VO || $context == self::TYPE_VO) {\n $amount = $orderItemData['amount'];\n $taxAmount = $orderItemData['tax_amount'];\n $virtualItemData = $this->getVirtualItemData($order, $amount, $taxAmount, $context);\n if (0 < count($virtualItemData['data'])) {\n $orderItemData['data'] = array_merge($orderItemData['data'], $virtualItemData['data']);\n $orderItemData['amount'] = $virtualItemData['amount'];\n $orderItemData['tax_amount'] = $virtualItemData['tax_amount'];\n }\n }\n\n if (0 < count($orderItemData)) {\n if (array_key_exists('payment_fee_item', $orderItemData)) {\n $paymentFeeItem = $orderItemData['payment_fee_item'];\n }\n if (array_key_exists('data', $orderItemData)) {\n $data = $orderItemData['data'];\n }\n if (array_key_exists('amount', $orderItemData)) {\n $amount = $orderItemData['amount'];\n }\n if (array_key_exists('tax_amount', $orderItemData)) {\n $taxAmount = $orderItemData['tax_amount'];\n }\n }\n //shipping item data\n $shippingItemData = $this->getShippingItemData($order, $context);\n if (0 < count($shippingItemData)) {\n $data[] = $shippingItemData;\n $amountExclTax\n = $order->getShippingAmount() - $order->getShippingRefunded();\n $amount += round(\n $amountExclTax * (1 +\n $this->getShippingTaxPercent($order) / 100)\n );\n $taxAmount += round($amount - $amountExclTax, 2);\n }\n // discount item\n $discountItemData = $this->getDiscountItemData($order, $context);\n if (0 < count($discountItemData)) {\n $data[] = $discountItemData;\n $amount -= $order->getDiscountAmount();\n }\n // adjustment (refund)\n $adjustmentData = $this->getAdjustmentData($order, $context, $amount);\n if (0 < count($adjustmentData)) {\n if (array_key_exists('data', $adjustmentData)) {\n $data[] = $adjustmentData['data'];\n }\n if (array_key_exists('amount', $adjustmentData)) {\n $amount = $adjustmentData['amount'];\n }\n }\n\n // payment fee\n $paymentFeeData = $this->getPaymentFeeData(\n $paymentFeeItem, $context, $amount, $taxAmount\n );\n if (0 < count($paymentFeeData)) {\n if (array_key_exists('data', $paymentFeeData)) {\n $data[] = $paymentFeeData['data'];\n }\n if (array_key_exists('amount', $paymentFeeData)) {\n $amount = $paymentFeeData['amount'];\n }\n if (array_key_exists('tax_amount', $paymentFeeData)) {\n $taxAmount = $paymentFeeData['tax_amount'];\n }\n }\n // special refund\n if (self::TYPE_RF == $context) {\n $data['tax_amount'] = $taxAmount;\n $data['amount'] = $amount;\n }\n return $data;\n }", "protected function getPayPalProduct(\\HGON\\HgonPayment\\Domain\\Model\\Article $article)\n {\n /** @var \\TYPO3\\CMS\\Extbase\\Object\\ObjectManager $objectManager */\n $objectManager = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManager');\n /** @var \\HGON\\HgonPayment\\Domain\\Repository\\PayPalProductRepository $payPalProductRepository */\n $payPalProductRepository = $objectManager->get('HGON\\\\HgonPayment\\\\Domain\\\\Repository\\\\PayPalProductRepository');\n\n $payPalProduct = $payPalProductRepository->findBySku($article->getSku());\n if (! ($payPalProduct instanceof \\HGON\\HgonPayment\\Domain\\Model\\PayPalProduct)) {\n // create it\n\n $data = [\n 'name' => $article->getName(),\n 'description' => $article->getDescription(),\n 'type' => 'SERVICE',\n 'category' => 'SERVICES'\n\n ];\n\n $url = $this->host . '/v1/catalogs/products';\n $authorization = 'Authorization: Bearer ' . $this->clientCredentials->access_token;\n\n $curl = curl_init();\n try {\n curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json;charset=UTF-8', $authorization));\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($curl, CURLOPT_POST, 1);\n curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));\n } catch (\\Exception $e) {\n $this->getLogger()->log(\\TYPO3\\CMS\\Core\\Log\\LogLevel::ERROR, sprintf('An error occurred while trying to make following api call \"%s\". Please check the configuration. Error: %s', $url, $e->getMessage()));\n }\n\n $this->cUrl = $curl;\n $request = $this->sendRequest();\n\n // Create PayPalProduct\n /** @var \\HGON\\HgonPayment\\Domain\\Model\\PayPalProduct $newPayPalProduct */\n $newPayPalProduct = $objectManager->get('HGON\\\\HgonPayment\\\\Domain\\\\Model\\\\PayPalProduct');\n $newPayPalProduct->setName($request->name);\n $newPayPalProduct->setDescription($request->description);\n $newPayPalProduct->setType($request->type);\n $newPayPalProduct->setCategory($request->category);\n $newPayPalProduct->setSku($article->getSku());\n $newPayPalProduct->setProductId($request->id);\n\n $payPalProductRepository->add($newPayPalProduct);\n\n /** @var \\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager $persistenceManager */\n $persistenceManager = $objectManager->get('TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager');\n $persistenceManager->persistAll();\n\n return $newPayPalProduct;\n //===\n }\n\n return $payPalProduct;\n //===\n }", "function PackContentsTable() {\n\treturn\n'\n<table width=\"100%\">\n<thead>\n<tr>\n<th>THIS PACK CONTAINS</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Artists\\' Intention and Learning Objectives</td>\n</tr>\n<tr>\n<td>Step-by-Step Creative Activity Plans</td>\n</tr>\n<tr>\n<td>Environment and Resource Lists</td>\n</tr>\n<tr>\n<td>Top Tips to support Additional Learning Needs</td>\n</tr>\n<tr>\n<td>Guidance for Reflection and Planning</td>\n</tr>\n<tr>\n<td>Activities Mapped against EYFS Areas of Learning</td>\n</tr>\n<tr>\n<td>Case Study of Activities in Practice</td>\n</tr>\n<tr>\n<td><strong>Each pack has between 16-24 pages, in full colour, and has an easy-to-clean matt laminate cover</strong></td>\n</tr>\n</tbody>\n</table>\n';\n\t\n}", "private function _getContent()\n {\n return '{*Sailthru zephyr code is used for full functionality*}\n <div id=\"main\">\n <table width=\"700\">\n <tr>\n <td>\n <h2><p>Hello {profile.vars.name}</p></h2>\n <p>Did you forget the following items in your cart?</p>\n <table>\n <thead>\n <tr>\n <td colspan=\"2\">\n <div><span style=\"display:block;text-align:center;color:white;font-size:13px;font-weight:bold;padding:15px;text-shadow:0 -1px 1px #af301f;white-space:nowrap;text-transform:uppercase;letter-spacing:1;background-color:#d14836;min-height:29px;line-height:29px;margin:0 0 0 0;border:1px solid #af301f;margin-top:5px\"><a href=\"{profile.purchase_incomplete.items[0].vars.checkout_url}\">Re-Order Now!</a></span></div>\n </td>\n </tr>\n </thead>\n <tbody>\n {sum = 0}\n {foreach profile.purchase_incomplete.items as i}\n <table width=\"650\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"margin:0 0 20px 0;background:#fff;border:1px solid #e5e5e5\">\n <tbody>\n <tr>\n <td style=\"padding:20px\"><a href=\"{i.url}\"><img width=\"180\" height=\"135\" border=\"0\" alt=\"{i.title}\" src=\"{i.vars.image_url}\"></a></td>\n <td width=\"420\" valign=\"top\" style=\"padding:20px 10px 20px 0\">\n <div style=\"padding:5px 0;color:#333;font-size:18px;font-weight:bold;line-height:21px\">{i.title}</div>\n <div style=\"padding:0 0 5px 0;color:#999;line-height:21px;margin:0px\">{i.vars.currency}{i.price/100}</div>\n <div style=\"color:#999;font-weight:bold;line-height:21px;margin:0px\">{i.description}</div>\n <div><span style=\"display:block;text-align:center;width:120px;border-left:1px solid #b43e2e;border-right:1px solid #b43e2e;color:white;font-size:13px;font-weight:bold;padding:0 15px;text-shadow:0 -1px 1px #af301f;white-space:nowrap;text-transform:uppercase;letter-spacing:1;background-color:#d14836;min-height:29px;line-height:29px;margin:0 0 0 0;border:1px solid #af301f;margin-top:5px\"><a href=\"{i.url}\">Buy Now</a></span></div>\n </td>\n </tr>\n </tbody>\n </table>\n {/foreach}\n <tr>\n <td align=\"left\" valign=\"top\" style=\"padding:3px 9px\" colspan=\"2\"></td>\n <td align=\"right\" valign=\"top\" style=\"padding:3px 9px\"></td>\n </tr>\n </tbody>\n <tfoot>\n </tfoot>\n </table>\n <p><small>If you believe this has been sent to you in error, please safely <a href=\"{optout_confirm_url}\">unsubscribe</a>.</small></p>\n {beacon}\n </td>\n </tr>\n </table>\n </div>';\n }", "function meta_work($entity)\n{\n\tglobal $config;\n\t\n\t$meta = '';\n\t\n\t$query = 'SELECT ?citation_title ?citation_journal_title ?citation_date ?citation_volume ?citation_firstpage \n\t?citation_lastpage ?citation_abstract_html_url ?citation_doi ?citation_pdf_url\n\t?citation_biostor ?citation_handle\nWHERE {\n \n # title\n <URI> <http://schema.org/name> ?citation_title .\n\n # date\n OPTIONAL {\n <URI> <http://schema.org/datePublished> ?citation_date .\n } \n \n# authors \n\n # journal\n OPTIONAL {\n <URI> <http://schema.org/isPartOf> ?container .\n ?container <http://schema.org/name> ?citation_journal_title .\n } \n \n OPTIONAL {\n <URI> <http://schema.org/volumeNumber> ?citation_volume .\n } \n\n OPTIONAL {\n <URI> <http://schema.org/pageStart> ?citation_firstpage .\n } \n \n OPTIONAL {\n <URI> <http://schema.org/pageEnd> ?citation_lastpage .\n } \n \n OPTIONAL {\n <URI> <http://schema.org/url> ?citation_abstract_html_url .\n } \n \n # DOI\n OPTIONAL {\n <URI> <http://schema.org/identifier> ?identifier .\n?identifier <http://schema.org/propertyID> \"doi\" .\n?identifier <http://schema.org/value> ?citation_doi .\n }\n \n # PDF\n OPTIONAL {\n <URI> <http://schema.org/encoding> ?encoding .\n?encoding <http://schema.org/fileFormat> \"application/pdf\" .\n?encoding <http://schema.org/contentUrl> ?citation_pdf_url .\n }\n \n # rdmp hacks, maybe rethink to store as URLs\n # BioStor\n OPTIONAL {\n <URI> <http://schema.org/identifier> ?biostor_identifier .\n?biostor_identifier <http://schema.org/propertyID> \"biostor\" .\n?biostor_identifier <http://schema.org/value> ?citation_biostor .\n } \n \n # Handle\n OPTIONAL {\n <URI> <http://schema.org/identifier> ?handle_identifier .\n?handle_identifier <http://schema.org/propertyID> \"handle\" .\n?handle_identifier <http://schema.org/value> ?citation_handle .\n } \n \n }\n';\n\t\n\t$query = str_replace('<URI>', '<' . $entity->{'@id'} . '>', $query);\t\n\t$json = sparql_query($config['sparql_endpoint'], $query);\n\t\n\t$result = json_decode($json);\n\t\n\t//echo '<pre>' . $result . '</pre>';\n\t\n\t$meta_list = array();\n\t\n\tif (isset($result->results->bindings))\n\t{\n\t\tif (isset($result->results->bindings[0]))\n\t\t{\n\t\t\tforeach ($result->results->bindings[0] as $k => $v)\n\t\t\t{\t\t\t\t\n\t\t\t\t$key = '';\n\t\t\t\t\n\t\t\t\tswitch ($k) \n\t\t\t\t{\n\t\t\t\t\tcase 'citation_biostor':\n\t\t\t\t\t\t$key = 'citation_abstract_html_url';\n\t\t\t\t\t\t$value = 'https://biostor.org/reference/' . $v->value;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'citation_handle':\n\t\t\t\t\t\t$key = 'citation_abstract_html_url';\n\t\t\t\t\t\t$value = 'https://hdl.handle.net/' . $v->value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$key = $k;\n\t\t\t\t\t\t$value = $v->value;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif (!isset($meta_list[$key]))\n\t\t\t\t{\n\t\t\t\t\t$meta_list[$key] = array();\n\t\t\t\t}\n\t\t\t\n\t\t\t\t$meta_list[$key][] = $value;\n\t\t\t}\t\t\n\t\t}\t\n\t}\n\t\n\t\n\treturn $meta_list;\n}", "function ppt_resources_get_usd_stocks($data)\n{\n// return $data;\n if (!isset($data['year'])) {\n return services_error('Year is not defined!', 500);\n }\n\n $year = $data['year'];\n $accounts = [];\n // If there is no uid sent with the api so get the current user id.\n if (isset($data['uid'])) {\n $uid = $data['uid'];\n } else {\n global $user;\n $uid = $user->uid;\n }\n $countries = array();\n if (isset($data['countries'])) {\n $countries = $data['countries'];\n }\n $reps = array();\n if (isset($data['reps'])) {\n $reps = $data['reps'];\n }\n\n $user = user_load($uid);\n\n // Check if user selected accounts.\n if (isset($data['accounts'])) {\n $accounts = $data['accounts'];\n } else {\n $accounts = ppt_resources_get_role_accounts($user, $countries);\n }\n\n $products = [];\n // Check if user selected products.\n if (isset($data['products'])) {\n $products = get_products_dosages($data['products']);\n } else {\n // If the user is rep.\n if (is_rep($user)) {\n $products = get_products_for_current_user($uid);\n } else {\n $products = get_products_for_accounts($accounts);\n }\n }\n//return entity_metadata_wrapper('field_collection_item', 18045);\n $entries = get_entries($accounts, $products, NULL, $reps);\n $entries_records = get_entries_records_for_year($entries, $year, 'consumption_stock_entry');\n $reports = sum_records_per_field($entries_records, 'field_product', TRUE);\n return $reports;\n}", "function sGetDistrTextDescription ($aArgDistributore, $iLimit = null) {\n\textract ($aArgDistributore);\n\t$aDistrDescription = array();\n\tif ($dst_note) $aDistrDescription[] = 'Note: '.$dst_note;\n\tif ($dst_allevatore) $aDistrDescription[] = 'Allevatore: '.$dst_allevatore;\n\tif ($dst_telefono) $aDistrDescription[] = 'Tel: '.$dst_telefono;\n\tif ($dst_cellulare) $aDistrDescription[] = 'Cell: '.$dst_cellulare;\n\t$sDistrDescription = implode(\"\\n\",$aDistrDescription);\n\tif (count($aDistrDescription)) $sDistrDescription = implode(\"\\n\",$aDistrDescription); else $sDistrDescription = 'Nessuna informazione aggiuntiva.';\n\tif (!empty($iLimit) && strlen($sDistrDescription)>$iLimit) $sDistrDescription = substr($sDistrDescription, 0, $iLimit).'...';\n\treturn $sDistrDescription;\n}", "function _arc_meta_description($type = null)\n{\n global $thisarticle;\n\n $metaDescription = getMetaDescription($type);\n\n if (!empty($metaDescription)) {\n $description = txpspecialchars($metaDescription);\n } elseif (!empty($thisarticle['excerpt'])) {\n $description = strip_tags($thisarticle['excerpt']);\n $description = substr($description, 0, 200);\n $description = txpspecialchars($description);\n } elseif (!empty($thisarticle['body'])) {\n $description = strip_tags($thisarticle['body']);\n $description = substr($description, 0, 200);\n $description = txpspecialchars($description);\n } else {\n $description = null;\n }\n\n return $description;\n}", "public function purchase_items()\n\t{\n\t\t$products = DB::table('products')->select('id as value', 'product_name as label')->where('category_id', 2)->orderBy('id', 'desc')->get();\n\t\t$str = json_encode($products);\n\t\t$str = preg_replace('/\"([^\"]+)\"\\s*:\\s*/', '$1:', $str);\n\t\techo $str;\n\t}", "private function buildItemPayload($quote)\n {\n $currencyCode = $this->storeManager->getStore()->getCurrentCurrencyCode();\n $itemPayload[\"order\"][\"lines\"] = [];\n foreach ($quote->getAllVisibleItems() as $item) {\n $productName = $item->getName();\n $productSku = $item->getSku();\n $productQuantity = $item->getQtyOrdered();\n $itemData = [\n \"title\" => $productName,\n \"sku\" => $productSku,\n \"quantity\" => $productQuantity,\n \"price\" => strval(round($item->getPriceInclTax(), self::PRECISION)),\n \"currency\" => $currencyCode,\n ];\n array_push($itemPayload[\"order\"][\"lines\"], $itemData);\n }\n return $itemPayload;\n }", "function addDescriptionOfProductInList()\n{\n\n echo '<div class=\"product__description\">' . get_the_excerpt() . '</div>';\n}", "private function generateResults(): array\n {\n $contents = $this->getStockListContents();\n $results = [];\n $buy_broker_per = ($this->brokerFeeFrom - 1) * 100;\n $buy_tax_per = ($this->transTaxFrom - 1) * 100;\n $sell_broker_per = (1 - $this->brokerFeeTo) * 100;\n $sell_tax_per = (1 - $this->transTaxTo) * 100;\n\n $taxes = [\n \"list\" => $this->stockListName,\n \"buy_character\" => $this->characterFromName,\n \"sell_character\" => $this->characterToName,\n \"buy_station\" => $this->stationFromName,\n \"sell_station\" => $this->stationToName,\n \"buy_method\" => $this->characterFromMethod,\n \"sell_method\" => $this->characterToMethod,\n \"buy_broker\" => $buy_broker_per,\n \"buy_tax\" => $buy_tax_per,\n \"sell_broker\" => $sell_broker_per,\n \"sell_tax\" => $sell_tax_per,\n ];\n\n foreach ($contents as $row) {\n $this->RateLimiter->rateLimit();\n $item_id = (int) $row->id;\n $item_name = $row->name;\n $row->vol == 0 ? $item_vol = 1 : $item_vol = $row->vol;\n $best_buy_price = $this->getCrestData($item_id, $this->stationFromID, $this->characterFromMethod);\n $buy_broker_fee = $best_buy_price * ($this->brokerFeeFrom - 1);\n $best_sell_price = $this->getCrestData($item_id, $this->stationToID, $this->characterToMethod);\n $sell_broker_fee = $best_sell_price * (1 - $this->brokerFeeTo);\n $sell_trans_tax = $best_sell_price * (1 - $this->transTaxTo);\n\n $best_buy_price_taxed = $best_buy_price * $this->brokerFeeFrom;\n $best_sell_price_taxed = $best_sell_price * $this->brokerFeeTo * $this->transTaxTo;\n $profit_raw = $best_sell_price_taxed - $best_buy_price_taxed;\n $profit_m3 = $profit_raw / $item_vol;\n $best_buy_price_taxed != 0 ? $profit_margin = ($profit_raw / $best_buy_price_taxed) * 100 : $profit_margin = 0;\n\n $item_res = array(\"id\" => $item_id,\n \"name\" => $item_name,\n \"vol\" => $item_vol,\n \"buy_price\" => $best_buy_price,\n \"buy_broker\" => $buy_broker_fee,\n \"sell_price\" => $best_sell_price,\n \"sell_broker\" => $sell_broker_fee,\n \"sell_tax\" => $sell_trans_tax,\n \"profit_raw\" => $profit_raw,\n \"profit_m3\" => $profit_m3,\n \"profit_margin\" => $profit_margin);\n array_push($results, $item_res);\n }\n return array(\"results\" => $results, \"req\" => $taxes);\n }", "public function loadQuoteDetail(Request $request)\n {\n $id = $request->id;\n $returnResult = [];\n\n $places = $this->getPlaces($id);\n $quoteItems = $this->getQuoteItems($id);\n $valoresVenta = $this->getQuoteVales($id);\n $itemsCategories = $this->getItemsCategories($id);\n $itemsPackages = $this->getItemsPackages($id);\n $infoVenta = $this->getInfoVenta($id);\n\n $totales = [];\n $value = $valoresVenta[0];\n $aumentos = $value->descuentos;\n $total = $value->subTotal + $aumentos;\n $subTotal = $value->subTotal;\n $packageValue = 0;\n foreach ($itemsPackages as $value) {\n $packageValue += $value->value;\n }\n $total = $total + $packageValue;\n $HT = $total - (($infoVenta->tax * $total) / 100);\n $subTotal = $subTotal + $packageValue;\n $totales['tax'] = ($infoVenta->tax * $total) / 100;\n $totales['subTotal'] = number_format($subTotal, 2, ',', '.');\n $totales['tax'] = number_format($totales['tax'], 2, ',', '.');\n $totales['descuentos'] = number_format($aumentos, 2, ',', '.');\n $totales['total'] = number_format($total, 2, ',', '.');\n $totales['HT'] = number_format($HT, 2, ',', '.');\n\n $returnResult['html'] = view('quote.quoteItems',['quoteItems'=> $quoteItems,\n 'itemsCategories'=> $itemsCategories, 'totales' => $totales,\n 'infoVenta' => $infoVenta,\n 'itemsPackages' => $itemsPackages,\n 'places'=> $places])->render();\n \n $returnResult['message'] = 'Success';\n $success = true;\n\n return response()->json(array('success' => $success, 'data'=>$returnResult));\n }", "public function getAllProducts()\n {\n $this->db->connect();\n $sql = \"SELECT * FROM $this->table;\";\n $resultset = $this->db->executeFetchAll($sql);\n foreach ($resultset as $value) {\n $value->description = $this->filter->parse($value->description, [\"markdown\"]);\n $value->description = $this->content->tokenTruncate($value->description, 100);\n }\n return $resultset;\n }", "public function fetchRandomQuote()\n {\n $idArray = $this->fetchQuoteId();\n // shuffle the array \n shuffle($idArray);\n $randomId = $idArray[0];\n return $this->fetchQuoteDetails($randomId);\n }", "public function collection_body($order,$title)\n {\n $countedArray = array_count_values($order);\n arsort($countedArray);\n $top_item = array();\n $top_item = array_keys(array_slice($countedArray,0,$this->total_best,true));\n $response = array();\n $detail_collection = array();\n $detail_collection['title']=$title;\n $detail_collection['sort_order']='manual';\n $detail_collection['collects'] = array();\n $collection = array();\n for($item = 0 ; $item < $this->total_best ; $item++){\n if($item < count($top_item)){\n $collection[\"product_id\"] = $top_item[$item];\n array_push($detail_collection[\"collects\"],$collection);\n }\n }\n $response[\"custom_collection\"] = $detail_collection;\n return $response;\n }", "public function salesConvertQuoteItemToOrderItem(Varien_Event_Observer $observer)\n{\n$quoteItem = $observer->getItem();\n if ($additionalOptions = $quoteItem->getOptionByCode('additional_options')) {\n $orderItem = $observer->getOrderItem();\n $options = $orderItem->getProductOptions();\n $options['additional_options'] = unserialize($additionalOptions->getValue());\n$var;\nif (count($options['additional_options'] > 0)) {\n if ($options['additional_options'][0]['value'] != '') \n $i = 0;\n $val = $options['additional_options'][0]['value'];\n\n}\n//Mage::log($val.\" trgy\");\n$orderItem->setCredits($val);\n $orderItem->setProductOptions($options);\n }\n\n}", "function render_article_short($article) {\n $html = sprintf('%s, &ldquo;%s.&rdquo; %s <strong>%s</strong> %s (%s)', implode(', ', $article['authors']), $article['title'], $article['journal'], $article['volume'], $article['pages'], $article['year']);\n return $html; \n}", "public function run()\n {\n $products = [\n ['name' => \"Duracell - AAA Batteries (4-Pack)\", 'description_short' => \"Compatible with select electronic devices; AAA size; DURALOCK Power Preserve technology; 4-pack\", 'description_long' => \"Compatible with select electronic devices; AAA size; DURALOCK Power Preserve technology; 4-pack\", 'price' => 5.49, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/duracell-aaa-batteries-4-pack/43900.p?id=1051384074145&skuId=43900&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=43900', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4390\\/43900_sa.jpg\"}', 'upc' => '041333424019', 'provider' => 'bestbuy'],\n ['name' => \"Duracell - AA 1.5V CopperTop Batteries (4-Pack)\", 'description_short' => \"Long-lasting energy; DURALOCK Power Preserve technology; for toys, clocks, radios, games, remotes, PDAs and more\", 'description_long' => \"Long-lasting energy; DURALOCK Power Preserve technology; for toys, clocks, radios, games, remotes, PDAs and more\", 'price' => 5.49, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/duracell-aa-1-5v-coppertop-batteries-4-pack/48530.p?id=1099385268988&skuId=48530&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=48530', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4853\\/48530_sa.jpg\"}', 'upc' => '041333415017', 'provider' => 'bestbuy'],\n ['name' => \"Duracell - AA Batteries (8-Pack)\", 'description_short' => \"Compatible with select electronic devices; AA size; DURALOCK Power Preserve technology; 8-pack\", 'description_long' => \"Compatible with select electronic devices; AA size; DURALOCK Power Preserve technology; 8-pack\", 'price' => 7.49, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/duracell-aa-batteries-8-pack/127687.p?id=1051384045676&skuId=127687&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=127687', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1276\\/127687_sa.jpg\"}', 'upc' => '041333825014', 'provider' => 'bestbuy'],\n ['name' => \"Energizer - MAX Batteries AA (4-Pack)\", 'description_short' => \"4-pack AA alkaline batteries; battery tester included\", 'description_long' => \"4-pack AA alkaline batteries; battery tester included\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/energizer-max-batteries-aa-4-pack/150115.p?id=1051384046217&skuId=150115&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=150115', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1501\\/150115_sa.jpg\"}', 'upc' => '039800011329', 'provider' => 'bestbuy'],\n ['name' => \"Duracell - C Batteries (4-Pack)\", 'description_short' => \"Compatible with select electronic devices; C size; DURALOCK Power Preserve technology; 4-pack\", 'description_long' => \"Compatible with select electronic devices; C size; DURALOCK Power Preserve technology; 4-pack\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/duracell-c-batteries-4-pack/185230.p?id=1051384046486&skuId=185230&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=185230', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1852\\/185230_sa.jpg\"}', 'upc' => '041333440019', 'provider' => 'bestbuy'],\n ['name' => \"Duracell - D Batteries (4-Pack)\", 'description_short' => \"Compatible with select electronic devices; D size; DURALOCK Power Preserve technology; 4-pack\", 'description_long' => \"Compatible with select electronic devices; D size; DURALOCK Power Preserve technology; 4-pack\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/duracell-d-batteries-4-pack/185267.p?id=1051384046551&skuId=185267&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=185267', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1852\\/185267_sa.jpg\"}', 'upc' => '041333430010', 'provider' => 'bestbuy'],\n ['name' => \"Pioneer - 4\\\" 3-Way Surface-Mount Speakers with IMPP Composite Cones (Pair) - Black\", 'description_short' => \"80W maximum power (20W RMS); 4&quot; IMPP composite cone woofer; 3/4&quot; horn tweeter\", 'description_long' => \"80W maximum power (20W RMS); 4&quot; IMPP composite cone woofer; 3/4&quot; horn tweeter\", 'price' => 144.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pioneer-4-3-way-surface-mount-speakers-with-impp-composite-cones-pair-black/309062.p?id=1218643240258&skuId=309062', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=309062', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0309\\/0309062_sa.jpg\"}', 'upc' => '012562165141', 'provider' => 'bestbuy'],\n ['name' => \"Duracell - 9V Batteries (2-Pack)\", 'description_short' => \"Compatible with select electronic devices; alkaline chemistry; 9V size; DURALOCK Power Preserve technology; 2-pack\", 'description_long' => \"Compatible with select electronic devices; alkaline chemistry; 9V size; DURALOCK Power Preserve technology; 2-pack\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/duracell-9v-batteries-2-pack/312290.p?id=1051384050321&skuId=312290&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=312290', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3122\\/312290_sa.jpg\"}', 'upc' => '041333216010', 'provider' => 'bestbuy'],\n ['name' => \"Directed Electronics - Viper Audio Glass Break Sensor\", 'description_short' => \"From our expanded online assortment; compatible with Directed Electronics alarm systems; microphone and microprocessor detect and analyze intrusions; detects quiet glass breaks\", 'description_long' => \"From our expanded online assortment; compatible with Directed Electronics alarm systems; microphone and microprocessor detect and analyze intrusions; detects quiet glass breaks\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/directed-electronics-viper-audio-glass-break-sensor/324884.p?id=1112808077651&skuId=324884&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=324884', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3248\\/324884_rc.jpg\"}', 'upc' => '093207005060', 'provider' => 'bestbuy'],\n ['name' => \"Energizer - N Cell E90 Batteries (2-Pack)\", 'description_short' => \"Alkaline batteries; 1.5V\", 'description_long' => \"Alkaline batteries; 1.5V\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/energizer-n-cell-e90-batteries-2-pack/333179.p?id=1185268509951&skuId=333179&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=333179', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3331\\/333179_sa.jpg\"}', 'upc' => '039800013200', 'provider' => 'bestbuy'],\n ['name' => \"Salt (Blu-ray Disc) (Unrated)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/salt-blu-ray-disc-unrated/341632.p?id=2164505&skuId=341632&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=341632', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3416\\/341632_sa.jpg\"}', 'upc' => '043396350113', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Radio Installation Dash Kit for Most 1989-2000 Ford, Lincoln & Mercury Vehicles - Black\", 'description_short' => \"From our expanded online assortment; compatible with most 1989-2000 Ford, Lincoln and Mercury vehicles; snap-in TurboKit offers fast installation; spacer/trim ring; rear support bracket\", 'description_long' => \"From our expanded online assortment; compatible with most 1989-2000 Ford, Lincoln and Mercury vehicles; snap-in TurboKit offers fast installation; spacer/trim ring; rear support bracket\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-radio-installation-dash-kit-for-most-1989-2000-ford-lincoln-mercury-vehicles-black/346575.p?id=1218118704590&skuId=346575&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=346575', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3465\\/346575_rc.jpg\"}', 'upc' => '086429002757', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Radio Dash Multikit for Select GM Vehicles - Black\", 'description_short' => \"From our expanded online assortment; compatible with select GM vehicles; plastic material\", 'description_long' => \"From our expanded online assortment; compatible with select GM vehicles; plastic material\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-radio-dash-multikit-for-select-gm-vehicles-black/346646.p?id=1210376657731&skuId=346646', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=346646', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3466\\/346646_rc.jpg\"}', 'upc' => '086429003273', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Wiring Harness for Select 1998-2008 Ford Vehicles - Multicolored\", 'description_short' => \"Compatible with select 1998-2008 Ford vehicles; connects an aftermarket radio to a vehicle&#039;s harness\", 'description_long' => \"Compatible with select 1998-2008 Ford vehicles; connects an aftermarket radio to a vehicle&#039;s harness\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-wiring-harness-for-select-1998-2008-ford-vehicles-multicolored/347137.p?id=1142290459780&skuId=347137&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=347137', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9852\\/9852688_sa.jpg\"}', 'upc' => '086429056514', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Turbo Wire Aftermarket Radio Wire Harness Adapter for Select Vehicles\", 'description_short' => \"Compatible with Honda and Acura vehicles; connects an aftermarket radio to your car&#039;s harness\", 'description_long' => \"Compatible with Honda and Acura vehicles; connects an aftermarket radio to your car&#039;s harness\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-turbo-wire-aftermarket-radio-wire-harness-adapter-for-select-vehicles/347146.p?id=1183160746244&skuId=347146&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=347146', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3471\\/347146_rc.jpg\"}', 'upc' => '086429056507', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Wiring Harness for Most 1986-1998 Honda Acura Vehicles - Multicolored\", 'description_short' => \"Compatible with most 1986-1998 Honda Acura vehicles; connects an aftermarket radio to a vehicle&#039;s harness\", 'description_long' => \"Compatible with most 1986-1998 Honda Acura vehicles; connects an aftermarket radio to a vehicle&#039;s harness\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-wiring-harness-for-most-1986-1998-honda-acura-vehicles-multicolored/347155.p?id=1142292396747&skuId=347155&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=347155', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3471\\/347155_rc.jpg\"}', 'upc' => '086429002597', 'provider' => 'bestbuy'],\n ['name' => \"METRA - Antenna Cable Adapter\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-antenna-cable-adapter/347324.p?id=1122653249084&skuId=347324&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=347324', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3473\\/347324_105x210_sc.jpg\"}', 'upc' => '086429007097', 'provider' => 'bestbuy'],\n ['name' => \"METRA - Antenna Cable Adapter - Black\", 'description_short' => \"Compatible with select 1988-2005 vehicles; adapts an aftermarket antenna to OEM radios; flat plug\", 'description_long' => \"Compatible with select 1988-2005 vehicles; adapts an aftermarket antenna to OEM radios; flat plug\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-antenna-cable-adapter-black/347333.p?id=1169512349334&skuId=347333&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=347333', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3473\\/347333_sa.jpg\"}', 'upc' => '086429007189', 'provider' => 'bestbuy'],\n ['name' => \"INSTALL - PORTABLE RADAR DETECTOR INST\", 'description_short' => \"PORTABLE RADAR DETECTOR INST\", 'description_long' => \"PORTABLE RADAR DETECTOR INST\", 'price' => 29.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/install-portable-radar-detector-inst/349572.p?id=1218019625086&skuId=349572&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=349572', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_m.gif\"}', 'upc' => '400003495726', 'provider' => 'bestbuy'],\n ['name' => \"Pioneer - 4\\\" x 10\\\" 2-Way Car Speakers with Polypropylene Cone (Pair)\", 'description_short' => \"Handles 120 watts peak power (35 watts RMS); 4&quot; x 10&quot; injection-molded polypropylene composite cone woofer; 1-5/8&quot; cone tweeter; 8.8 oz. magnet\", 'description_long' => \"Handles 120 watts peak power (35 watts RMS); 4&quot; x 10&quot; injection-molded polypropylene composite cone woofer; 1-5/8&quot; cone tweeter; 8.8 oz. magnet\", 'price' => 99.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pioneer-4-x-10-2-way-car-speakers-with-polypropylene-cone-pair/354280.p?id=1051826168113&skuId=354280', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=354280', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0354\\/0354280_sa.jpg\"}', 'upc' => '012562175287', 'provider' => 'bestbuy'],\n ['name' => \"Backroads - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/backroads-cd/357946.p?id=273505&skuId=357946&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=357946', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3579\\/357946.jpg\"}', 'upc' => '074644685527', 'provider' => 'bestbuy'],\n ['name' => \"The City - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-city-cd/358801.p?id=102982&skuId=358801&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=358801', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0358\\/0358801_sa.jpg\"}', 'upc' => '075678224829', 'provider' => 'bestbuy'],\n ['name' => \"Sailing the Seas of Cheese - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sailing-the-seas-of-cheese-cd/358909.p?id=95472&skuId=358909&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=358909', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0358\\/0358909_sa.jpg\"}', 'upc' => '606949165925', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Favorite Hits [Capitol Special Markets] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-favorite-hits-capitol-special-markets-cd/359276.p?id=245619&skuId=359276&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=359276', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3592\\/359276.jpg\"}', 'upc' => '077775739626', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Cema/Atlantic] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cema-atlantic-cd/359301.p?id=93259&skuId=359301&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=359301', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3593\\/359301.jpg\"}', 'upc' => '077775739824', 'provider' => 'bestbuy'],\n ['name' => \"O.G. (Original Gangster) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/o-g-original-gangster-cd/359846.p?id=2390035&skuId=359846&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=359846', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0359\\/0359846_sa.jpg\"}', 'upc' => '075992649223', 'provider' => 'bestbuy'],\n ['name' => \"Playground - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/playground-cd/359980.p?id=70015&skuId=359980&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=359980', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3599\\/359980.jpg\"}', 'upc' => '077779548026', 'provider' => 'bestbuy'],\n ['name' => \"Seal [1991] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/seal-1991-cd/360139.p?id=98170&skuId=360139&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=360139', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3601\\/360139_sa.jpg\"}', 'upc' => '075992662727', 'provider' => 'bestbuy'],\n ['name' => \"Wilson Phillips - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wilson-phillips-cd/360193.p?id=104417&skuId=360193&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=360193', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3601\\/360193.jpg\"}', 'upc' => '077779374526', 'provider' => 'bestbuy'],\n ['name' => \"To The Extreme - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/to-the-extreme-cd/360317.p?id=2292802&skuId=360317&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=360317', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0360\\/0360317_sa.jpg\"}', 'upc' => '077779532520', 'provider' => 'bestbuy'],\n ['name' => \"True Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/true-love-cd/360415.p?id=1366577&skuId=360415&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=360415', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '762185123522', 'provider' => 'bestbuy'],\n ['name' => \"Pocket Full of Gold - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pocket-full-of-gold-cd/360433.p?id=83624&skuId=360433&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=360433', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3604\\/360433_sa.jpg\"}', 'upc' => '008811014025', 'provider' => 'bestbuy'],\n ['name' => \"Steelheart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/steelheart-cd/360451.p?id=100266&skuId=360451&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=360451', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0360\\/0360451_sa.jpg\"}', 'upc' => '076732636824', 'provider' => 'bestbuy'],\n ['name' => \"The Alligator Records 20th Anniversary Collection - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-alligator-records-20th-anniversary-collection-cd-various/360665.p?id=72758&skuId=360665&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=360665', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3606\\/360665_sa.jpg\"}', 'upc' => '014551105626', 'provider' => 'bestbuy'],\n ['name' => \"Divinyls - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/divinyls-cd/361343.p?id=80596&skuId=361343&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=361343', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3613\\/361343.jpg\"}', 'upc' => '077778618522', 'provider' => 'bestbuy'],\n ['name' => \"Mama Said [Edited] [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mama-said-edited-pa-cd/361405.p?id=2065353&skuId=361405&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=361405', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0361\\/0361405_sa.jpg\"}', 'upc' => '077778620921', 'provider' => 'bestbuy'],\n ['name' => \"Vagabond Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vagabond-heart-cd/361432.p?id=100421&skuId=361432&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=361432', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0361\\/0361432_sa.jpg\"}', 'upc' => '075992630023', 'provider' => 'bestbuy'],\n ['name' => \"MCMXC A.D. - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mcmxc-a-d-cd/361566.p?id=81577&skuId=361566&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=361566', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0361\\/0361566_sa.jpg\"}', 'upc' => '077778622420', 'provider' => 'bestbuy'],\n ['name' => \"Out of Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => 5.99, 'url' => 'http://www.bestbuy.com/site/out-of-time-cd/361600.p?id=95773&skuId=361600&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=361600', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3616\\/361600_sa.jpg\"}', 'upc' => '075992649629', 'provider' => 'bestbuy'],\n ['name' => \"Luck of the Draw - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/luck-of-the-draw-cd/361888.p?id=95888&skuId=361888&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=361888', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0361\\/0361888_sa.jpg\"}', 'upc' => '077779611126', 'provider' => 'bestbuy'],\n ['name' => \"Chill of an Early Fall - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chill-of-an-early-fall-cd/362191.p?id=100554&skuId=362191&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=362191', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0362\\/0362191_sa.jpg\"}', 'upc' => '008811020422', 'provider' => 'bestbuy'],\n ['name' => \"Night Ride Home - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/night-ride-home-cd/362217.p?id=1535040&skuId=362217&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=362217', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3622\\/362217.jpg\"}', 'upc' => '720642430224', 'provider' => 'bestbuy'],\n ['name' => \"Trixter - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/trixter-cd/362235.p?id=2416887&skuId=362235&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=362235', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3622\\/362235.jpg\"}', 'upc' => '076732638927', 'provider' => 'bestbuy'],\n ['name' => \"Five Man Acoustical Jam - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/five-man-acoustical-jam-cd/362271.p?id=101475&skuId=362271&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=362271', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0362\\/0362271_sa.jpg\"}', 'upc' => '720642431122', 'provider' => 'bestbuy'],\n ['name' => \"Mama Said Knock You Out - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mama-said-knock-you-out-cd/362422.p?id=89494&skuId=362422&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=362422', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0362\\/0362422_sa.jpg\"}', 'upc' => '731452347725', 'provider' => 'bestbuy'],\n ['name' => \"Forever My Lady - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/forever-my-lady-cd/362912.p?id=2701585&skuId=362912&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=362912', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0362\\/0362912_sa.jpg\"}', 'upc' => '008811019822', 'provider' => 'bestbuy'],\n ['name' => \"Jahmekya - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jahmekya-cd/363323.p?id=90634&skuId=363323&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=363323', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3633\\/363323_sa.jpg\"}', 'upc' => '077778621720', 'provider' => 'bestbuy'],\n ['name' => \"Time Passes By - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/time-passes-by-cd/363387.p?id=90836&skuId=363387&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=363387', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3633\\/363387.jpg\"}', 'upc' => '042284697521', 'provider' => 'bestbuy'],\n ['name' => \"Extreme II: Pornograffitti - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/extreme-ii-pornograffitti-cd/363403.p?id=81839&skuId=363403&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=363403', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0363\\/0363403_sa.jpg\"}', 'upc' => '075021531321', 'provider' => 'bestbuy'],\n ['name' => \"The Soul Cages [ECD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-soul-cages-ecd-cd/363421.p?id=100469&skuId=363421&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=363421', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0363\\/0363421_sa.jpg\"}', 'upc' => '075021640528', 'provider' => 'bestbuy'],\n ['name' => \"Lynyrd Skynyrd 1991 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lynyrd-skynyrd-1991-cd/364322.p?id=2305112&skuId=364322&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=364322', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0364\\/0364322_sa.jpg\"}', 'upc' => '075678225826', 'provider' => 'bestbuy'],\n ['name' => \"Sugar Tax - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sugar-tax-cd/364377.p?id=93725&skuId=364377&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=364377', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3643\\/364377_sa.jpg\"}', 'upc' => '077778623427', 'provider' => 'bestbuy'],\n ['name' => \"Unforgettable: With Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/unforgettable-with-love-cd/364493.p?id=78310&skuId=364493&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=364493', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0364\\/0364493_sa.jpg\"}', 'upc' => '075596104920', 'provider' => 'bestbuy'],\n ['name' => \"Keys Of The Kingdom - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/keys-of-the-kingdom-cd/364867.p?id=1531712&skuId=364867&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=364867', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0364\\/0364867_sa.jpg\"}', 'upc' => '042284943321', 'provider' => 'bestbuy'],\n ['name' => \"For Unlawful Carnal Knowledge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-unlawful-carnal-knowledge-cd/364901.p?id=2443914&skuId=364901&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=364901', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0364\\/0364901_sa.jpg\"}', 'upc' => '075992659420', 'provider' => 'bestbuy'],\n ['name' => \"Warm Your Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/warm-your-heart-cd/365143.p?id=93088&skuId=365143&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=365143', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3651\\/365143_sa.jpg\"}', 'upc' => '075021535428', 'provider' => 'bestbuy'],\n ['name' => \"Marc Cohn - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/marc-cohn-cd/365161.p?id=78240&skuId=365161&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=365161', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0365\\/0365161_sa.jpg\"}', 'upc' => '075678217821', 'provider' => 'bestbuy'],\n ['name' => \"Meant to Be Mint - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/meant-to-be-mint-cd/365170.p?id=91850&skuId=365170&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=365170', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3651\\/365170.jpg\"}', 'upc' => '028968100129', 'provider' => 'bestbuy'],\n ['name' => \"New Jack City [Original Soundtrack] [PA] - Original Soundtrack - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-jack-city-original-soundtrack-pa-original-soundtrack-cd/365214.p?id=93149&skuId=365214&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=365214', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0365\\/0365214_sa.jpg\"}', 'upc' => '075992440929', 'provider' => 'bestbuy'],\n ['name' => \"Best of Eric Burdon & the Animals, 1966-1968... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-eric-burdon-the-animals-1966-1968-cd/365241.p?id=76320&skuId=365241&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=365241', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0365\\/0365241_sa.jpg\"}', 'upc' => '042284938822', 'provider' => 'bestbuy'],\n ['name' => \"De La Soul Is Dead - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/de-la-soul-is-dead-cd/365269.p?id=79942&skuId=365269&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=365269', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0365\\/0365269_sa.jpg\"}', 'upc' => '016998102923', 'provider' => 'bestbuy'],\n ['name' => \"Superstition - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/superstition-cd/365811.p?id=98941&skuId=365811&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=365811', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3658\\/365811.jpg\"}', 'upc' => '720642438725', 'provider' => 'bestbuy'],\n ['name' => \"The Greatest Stars of Bluegrass Music [CMH 1989] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-greatest-stars-of-bluegrass-music-cmh-1989-cd-various/366348.p?id=75182&skuId=366348&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=366348', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3663\\/366348_sa.jpg\"}', 'upc' => '027297590328', 'provider' => 'bestbuy'],\n ['name' => \"World's Greatest Country Fiddlers [1995] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/worlds-greatest-country-fiddlers-1995-cd-various/366357.p?id=245447&skuId=366357&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=366357', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3663\\/366357_sa.jpg\"}', 'upc' => '027297590427', 'provider' => 'bestbuy'],\n ['name' => \"Guitar Concertos - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/guitar-concertos-cd/366446.p?id=1676938&skuId=366446&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=366446', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0366\\/0366446_sa.jpg\"}', 'upc' => '074644655629', 'provider' => 'bestbuy'],\n ['name' => \"Aces - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aces-cd/366525.p?id=75404&skuId=366525&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=366525', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3665\\/366525_sa.jpg\"}', 'upc' => '077779584727', 'provider' => 'bestbuy'],\n ['name' => \"Live & Kickin' All over America - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-kickin-all-over-america-cd/366669.p?id=73913&skuId=366669&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=366669', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3666\\/366669_sa.jpg\"}', 'upc' => '022071310321', 'provider' => 'bestbuy'],\n ['name' => \"Jazz [Bonus Tracks] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazz-bonus-tracks-cd/366758.p?id=95706&skuId=366758&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=366758', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0366\\/0366758_sa.jpg\"}', 'upc' => '720616106223', 'provider' => 'bestbuy'],\n ['name' => \"The Game - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-game-cd/366776.p?id=95717&skuId=366776&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=366776', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0366\\/0366776_sa.jpg\"}', 'upc' => '720616106322', 'provider' => 'bestbuy'],\n ['name' => \"A Kind of Magic [Bonus Track] [Hollywood] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-kind-of-magic-bonus-track-hollywood-cd/366883.p?id=95697&skuId=366883&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=366883', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0366\\/0366883_sa.jpg\"}', 'upc' => '720616115225', 'provider' => 'bestbuy'],\n ['name' => \"A Future Without a Past... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-future-without-a-past-cd/366945.p?id=88864&skuId=366945&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=366945', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3669\\/366945_sa.jpg\"}', 'upc' => '075596097628', 'provider' => 'bestbuy'],\n ['name' => \"Attack of the Killer B's [Edited] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/attack-of-the-killer-bs-edited-cd/367490.p?id=1365870&skuId=367490&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=367490', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3674\\/367490_sa.jpg\"}', 'upc' => '042284880428', 'provider' => 'bestbuy'],\n ['name' => \"House of Hope - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/house-of-hope-cd/367597.p?id=77501&skuId=367597&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=367597', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3675\\/367597_sa.jpg\"}', 'upc' => '075021535824', 'provider' => 'bestbuy'],\n ['name' => \"Into the Great Wide Open - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/into-the-great-wide-open-cd/367819.p?id=94821&skuId=367819&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=367819', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3678\\/367819_sa.jpg\"}', 'upc' => '008811031725', 'provider' => 'bestbuy'],\n ['name' => \"The Ruler's Back [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-rulers-back-pa-cd/368177.p?id=99140&skuId=368177&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=368177', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3681\\/368177_sa.jpg\"}', 'upc' => '731452348029', 'provider' => 'bestbuy'],\n ['name' => \"God Fodder - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/god-fodder-cd/368373.p?id=92957&skuId=368373&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=368373', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0368\\/0368373_sa.jpg\"}', 'upc' => '074644792928', 'provider' => 'bestbuy'],\n ['name' => \"Thelma & Louise - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thelma-louise-cd-original-soundtrack/368532.p?id=101546&skuId=368532&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=368532', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3685\\/368532.jpg\"}', 'upc' => '008811023928', 'provider' => 'bestbuy'],\n ['name' => \"Virtuoso Guitar 1925-1934 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/virtuoso-guitar-1925-1934-cd/368701.p?id=74919&skuId=368701&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=368701', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3687\\/368701_sa.jpg\"}', 'upc' => '016351011923', 'provider' => 'bestbuy'],\n ['name' => \"Different Lifestyles - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/different-lifestyles-cd/369247.p?id=104420&skuId=369247&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=369247', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3692\\/369247_sa.jpg\"}', 'upc' => '077779207824', 'provider' => 'bestbuy'],\n ['name' => \"Cajun Conja - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cajun-conja-cd/369336.p?id=74241&skuId=369336&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=369336', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0369\\/0369336_sa.jpg\"}', 'upc' => '081227052522', 'provider' => 'bestbuy'],\n ['name' => \"Peaceful Journey - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/peaceful-journey-cd/369354.p?id=85158&skuId=369354&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=369354', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0369\\/0369354_sa.jpg\"}', 'upc' => '008811028923', 'provider' => 'bestbuy'],\n ['name' => \"Good Woman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/good-woman-cd/369498.p?id=88279&skuId=369498&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=369498', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3694\\/369498.jpg\"}', 'upc' => '008811032920', 'provider' => 'bestbuy'],\n ['name' => \"Reality - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reality-cd/369693.p?id=156319&skuId=369693&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=369693', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0369\\/0369693_sa.jpg\"}', 'upc' => '048021746224', 'provider' => 'bestbuy'],\n ['name' => \"Slave to the Grind [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/slave-to-the-grind-pa-cd/370397.p?id=99055&skuId=370397&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=370397', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0370\\/0370397_sa.jpg\"}', 'upc' => '075678224225', 'provider' => 'bestbuy'],\n ['name' => \"Music Of Glass Hendrix & Others - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-of-glass-hendrix-others-cd/370583.p?id=1681980&skuId=370583&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=370583', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0370\\/0370583_sa.jpg\"}', 'upc' => '075597911121', 'provider' => 'bestbuy'],\n ['name' => \"Nocturnes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nocturnes-cd/370645.p?id=1685148&skuId=370645&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=370645', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0370\\/0370645_sa.jpg\"}', 'upc' => '075597923322', 'provider' => 'bestbuy'],\n ['name' => \"Robin Hood, Prince of Thieves [Original... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/robin-hood-prince-of-thieves-original-cd-original-soundtrack/370789.p?id=96866&skuId=370789&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=370789', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3707\\/370789.jpg\"}', 'upc' => '729592000426', 'provider' => 'bestbuy'],\n ['name' => \"Draped - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/draped-cd/370896.p?id=74426&skuId=370896&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=370896', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3708\\/370896.jpg\"}', 'upc' => '075679170828', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/370976.p?id=99695&skuId=370976&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=370976', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3709\\/370976_sa.jpg\"}', 'upc' => '075992658225', 'provider' => 'bestbuy'],\n ['name' => \"The Best of 1968-1973 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-1968-1973-cd/372386.p?id=2389786&skuId=372386&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=372386', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3723\\/372386.jpg\"}', 'upc' => '077779527120', 'provider' => 'bestbuy'],\n ['name' => \"Harder...Faster - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/harder-faster-cd/372411.p?id=73179&skuId=372411&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=372411', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0372\\/0372411_sa.jpg\"}', 'upc' => '077774606820', 'provider' => 'bestbuy'],\n ['name' => \"Nature of the Beast - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nature-of-the-beast-cd/372420.p?id=73181&skuId=372420&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=372420', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3724\\/372420_sa.jpg\"}', 'upc' => '077774606721', 'provider' => 'bestbuy'],\n ['name' => \"As Far as Siam - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/as-far-as-siam-cd/372439.p?id=96200&skuId=372439&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=372439', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3724\\/372439.jpg\"}', 'upc' => '077779593828', 'provider' => 'bestbuy'],\n ['name' => \"Live Two Five - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-two-five-cd/372448.p?id=93426&skuId=372448&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=372448', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3724\\/372448_sa.jpg\"}', 'upc' => '077779312825', 'provider' => 'bestbuy'],\n ['name' => \"The Early Years, Vol. 1 [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-early-years-vol-1-digipak-cd/372475.p?id=103329&skuId=372475&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=372475', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3724\\/372475_sa.jpg\"}', 'upc' => '767004060125', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Polka Hits of All Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-polka-hits-of-all-time-cd/372493.p?id=103170&skuId=372493&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=372493', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3724\\/372493.jpg\"}', 'upc' => '715187749924', 'provider' => 'bestbuy'],\n ['name' => \"Crazy World - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crazy-world-cd/372947.p?id=98090&skuId=372947&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=372947', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3729\\/372947.jpg\"}', 'upc' => '042284690829', 'provider' => 'bestbuy'],\n ['name' => \"Jensen - 3.6V NiCad Battery for 900MHz Phones\", 'description_short' => \"Rechargeable 3.6V 300 mAh NiCad battery for GE 2-9614 model cordless phones\", 'description_long' => \"Rechargeable 3.6V 300 mAh NiCad battery for GE 2-9614 model cordless phones\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jensen-3-6v-nicad-battery-for-900mhz-phones/373642.p?id=1051384793767&skuId=373642&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=373642', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3736\\/373642_rc.jpg\"}', 'upc' => '044476085840', 'provider' => 'bestbuy'],\n ['name' => \"Can't Stop the Rock: The Stryper Collection... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cant-stop-the-rock-the-stryper-collection-cd/373786.p?id=100634&skuId=373786&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=373786', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3737\\/373786_sa.jpg\"}', 'upc' => '720616110626', 'provider' => 'bestbuy'],\n ['name' => \"See What Tomorrow Brings - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/see-what-tomorrow-brings-cd/374080.p?id=94802&skuId=374080&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=374080', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0374\\/0374080_sa.jpg\"}', 'upc' => '075992665421', 'provider' => 'bestbuy'],\n ['name' => \"Album 1700 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/album-1700-cd/374099.p?id=94788&skuId=374099&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=374099', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3740\\/374099_sa.jpg\"}', 'upc' => '075992716826', 'provider' => 'bestbuy'],\n ['name' => \"Altered State - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/altered-state-cd/374160.p?id=72844&skuId=374160&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=374160', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3741\\/374160.jpg\"}', 'upc' => '075992650229', 'provider' => 'bestbuy'],\n ['name' => \"Western Underground - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/western-underground-cd/375819.p?id=88927&skuId=375819&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=375819', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3758\\/375819.jpg\"}', 'upc' => '077779649921', 'provider' => 'bestbuy'],\n ['name' => \"The Essential Robin Trower - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-essential-robin-trower-cd/375855.p?id=102355&skuId=375855&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=375855', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0375\\/0375855_sa.jpg\"}', 'upc' => '094632185327', 'provider' => 'bestbuy'],\n ['name' => \"Halloween Hits [Rhino] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/halloween-hits-rhino-cd-various/375944.p?id=84690&skuId=375944&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=375944', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0375\\/0375944_sa.jpg\"}', 'upc' => '081227053529', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Bluegrass - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-bluegrass-cd-various/376168.p?id=75191&skuId=376168&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=376168', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0376\\/0376168_sa.jpg\"}', 'upc' => '042284897921', 'provider' => 'bestbuy'],\n ['name' => \"Blue Lines - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-lines-cd/376578.p?id=90752&skuId=376578&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=376578', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3765\\/376578.jpg\"}', 'upc' => '077778622826', 'provider' => 'bestbuy'],\n ['name' => \"Let Me In - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/let-me-in-cd/376630.p?id=104504&skuId=376630&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=376630', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0376\\/0376630_sa.jpg\"}', 'upc' => '077778624424', 'provider' => 'bestbuy'],\n ['name' => \"Songs of the Civil War [Columbia] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/songs-of-the-civil-war-columbia-cd-original-soundtrack/377130.p?id=77848&skuId=377130&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=377130', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0377\\/0377130_sa.jpg\"}', 'upc' => '074644860726', 'provider' => 'bestbuy'],\n ['name' => \"Love Talk - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-talk-cd/378790.p?id=100670&skuId=378790&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=378790', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0378\\/0378790_sa.jpg\"}', 'upc' => '051617440420', 'provider' => 'bestbuy'],\n ['name' => \"Spirit Horses (Concerto for Native American... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spirit-horses-concerto-for-native-american-cd/378807.p?id=92802&skuId=378807&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=378807', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0378\\/0378807_sa.jpg\"}', 'upc' => '729337701427', 'provider' => 'bestbuy'],\n ['name' => \"Sirens - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sirens-cd/378834.p?id=79744&skuId=378834&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=378834', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3788\\/378834_sa.jpg\"}', 'upc' => '025041102629', 'provider' => 'bestbuy'],\n ['name' => \"All I Ever Need Is You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-i-ever-need-is-you-cd/379021.p?id=99467&skuId=379021&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379021', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3790\\/379021_sa.jpg\"}', 'upc' => '076732202524', 'provider' => 'bestbuy'],\n ['name' => \"All Our Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-our-love-cd/379030.p?id=88281&skuId=379030&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379030', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3790\\/379030.jpg\"}', 'upc' => '076742200428', 'provider' => 'bestbuy'],\n ['name' => \"Sedona Suite - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sedona-suite-cd/379502.p?id=1397930&skuId=379502&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379502', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3795\\/379502_sa.jpg\"}', 'upc' => '096507714229', 'provider' => 'bestbuy'],\n ['name' => \"Somery - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/somery-cd/379511.p?id=80256&skuId=379511&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379511', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0379\\/0379511_sa.jpg\"}', 'upc' => '018861025926', 'provider' => 'bestbuy'],\n ['name' => \"Feeding Frenzy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/feeding-frenzy-cd/379548.p?id=2292768&skuId=379548&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379548', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0379\\/0379548_sa.jpg\"}', 'upc' => '008811002220', 'provider' => 'bestbuy'],\n ['name' => \"Poison - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/poison-cd/379557.p?id=283323&skuId=379557&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379557', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3795\\/379557.jpg\"}', 'upc' => '076732638729', 'provider' => 'bestbuy'],\n ['name' => \"Slip of the Tongue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/slip-of-the-tongue-cd/379575.p?id=103887&skuId=379575&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379575', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0379\\/0379575_sa.jpg\"}', 'upc' => '720642424926', 'provider' => 'bestbuy'],\n ['name' => \"The Simpsons Sing the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-simpsons-sing-the-blues-cd/379593.p?id=98825&skuId=379593&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379593', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0379\\/0379593_sa.jpg\"}', 'upc' => '720642430828', 'provider' => 'bestbuy'],\n ['name' => \"Full Moon Fever - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/full-moon-fever-cd/379619.p?id=94816&skuId=379619&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379619', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3796\\/379619_sa.jpg\"}', 'upc' => '076732625323', 'provider' => 'bestbuy'],\n ['name' => \"Pump Up the Volume [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pump-up-the-volume-original-soundtrack-cd-original-soundtrack/379628.p?id=95654&skuId=379628&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379628', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0379\\/0379628_sa.jpg\"}', 'upc' => '076732803929', 'provider' => 'bestbuy'],\n ['name' => \"The Great Radio Controversy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-great-radio-controversy-cd/379664.p?id=101478&skuId=379664&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379664', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0379\\/0379664_sa.jpg\"}', 'upc' => '720642422427', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Three Dog Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-three-dog-night-cd/379673.p?id=101795&skuId=379673&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379673', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0379\\/0379673_sa.jpg\"}', 'upc' => '076732601822', 'provider' => 'bestbuy'],\n ['name' => \"The End of the Innocence - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-end-of-the-innocence-cd/379708.p?id=85241&skuId=379708&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379708', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0379\\/0379708_sa.jpg\"}', 'upc' => '720642421727', 'provider' => 'bestbuy'],\n ['name' => \"Appetite for Destruction [Edited] [Edited] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/appetite-for-destruction-edited-edited-cd/379717.p?id=84437&skuId=379717&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379717', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3797\\/379717_sa.jpg\"}', 'upc' => '720642414828', 'provider' => 'bestbuy'],\n ['name' => \"G N' R Lies [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/g-n-r-lies-pa-cd/379726.p?id=84438&skuId=379726&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379726', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0379\\/0379726_sa.jpg\"}', 'upc' => '720642419823', 'provider' => 'bestbuy'],\n ['name' => \"Havana [Original Motion Picture Soundtrack] - CD - Original Soundtrack Germany\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/havana-original-motion-picture-soundtrack-cd-original-soundtrack-germany/379753.p?id=2434537&skuId=379753&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379753', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3797\\/379753.jpg\"}', 'upc' => '011105200325', 'provider' => 'bestbuy'],\n ['name' => \"In the Digital Mood: Gold Limited Edition - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-the-digital-mood-gold-limited-edition-cd/379824.p?id=69140&skuId=379824&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379824', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0379\\/0379824_sa.jpg\"}', 'upc' => '011105200424', 'provider' => 'bestbuy'],\n ['name' => \"16 of Their Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/16-of-their-greatest-hits-cd/379842.p?id=90295&skuId=379842&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379842', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3798\\/379842_sa.jpg\"}', 'upc' => '076732570128', 'provider' => 'bestbuy'],\n ['name' => \"Fore! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fore-cd/379888.p?id=89137&skuId=379888&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379888', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0379\\/0379888_sa.jpg\"}', 'upc' => '094632153425', 'provider' => 'bestbuy'],\n ['name' => \"Anthology - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/anthology-cd/379897.p?id=91727&skuId=379897&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379897', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3798\\/379897_sa.jpg\"}', 'upc' => '077779448821', 'provider' => 'bestbuy'],\n ['name' => \"Medicine Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/medicine-music-cd/379904.p?id=68916&skuId=379904&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379904', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0379\\/0379904_sa.jpg\"}', 'upc' => '077779204823', 'provider' => 'bestbuy'],\n ['name' => \"The John Lennon Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-john-lennon-collection-cd/379931.p?id=89036&skuId=379931&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379931', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3799\\/379931_sa.jpg\"}', 'upc' => '077779151622', 'provider' => 'bestbuy'],\n ['name' => \"Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-cd/379986.p?id=2387434&skuId=379986&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=379986', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3799\\/379986_sa.jpg\"}', 'upc' => '077779341627', 'provider' => 'bestbuy'],\n ['name' => \"Foreign Affair - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/foreign-affair-cd/380000.p?id=240351&skuId=380000&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380000', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380000_sa.jpg\"}', 'upc' => '762185159323', 'provider' => 'bestbuy'],\n ['name' => \"Red Hot + Blue: A Tribute To Cole Porter - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/red-hot-blue-a-tribute-to-cole-porter-cd-various/380028.p?id=96194&skuId=380028&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380028', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3800\\/380028.jpg\"}', 'upc' => '094632179920', 'provider' => 'bestbuy'],\n ['name' => \"I Remember - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-remember-cd/380037.p?id=70276&skuId=380037&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380037', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380037_sa.jpg\"}', 'upc' => '077779026425', 'provider' => 'bestbuy'],\n ['name' => \"Open Up and Say...Ahh! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/open-up-and-say-ahh-cd/380046.p?id=95127&skuId=380046&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380046', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380046_sa.jpg\"}', 'upc' => '077774849326', 'provider' => 'bestbuy'],\n ['name' => \"Meant to Be - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/meant-to-be-cd/380073.p?id=70710&skuId=380073&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380073', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3800\\/380073_sa.jpg\"}', 'upc' => '077779547920', 'provider' => 'bestbuy'],\n ['name' => \"Nick of Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nick-of-time-cd/380082.p?id=95890&skuId=380082&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380082', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380082_sa.jpg\"}', 'upc' => '077779126828', 'provider' => 'bestbuy'],\n ['name' => \"Pretty Woman [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pretty-woman-original-soundtrack-cd-original-soundtrack/380126.p?id=95407&skuId=380126&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380126', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380126_sa.jpg\"}', 'upc' => '077779349227', 'provider' => 'bestbuy'],\n ['name' => \"M.U.: The Best of Jethro Tull - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/m-u--the-best-of-jethro-tull-cd/380153.p?id=86945&skuId=380153&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380153', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3801\\/380153_sa.jpg\"}', 'upc' => '094632107824', 'provider' => 'bestbuy'],\n ['name' => \"Imagine: John Lennon [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/imagine-john-lennon-original-soundtrack-cd-original-soundtrack/380180.p?id=89032&skuId=380180&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380180', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3801\\/380180.jpg\"}', 'upc' => '077779080328', 'provider' => 'bestbuy'],\n ['name' => \"Brigade - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brigade-cd/380206.p?id=2443689&skuId=380206&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380206', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3802\\/380206_sa.jpg\"}', 'upc' => '077779182022', 'provider' => 'bestbuy'],\n ['name' => \"Capitol Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/capitol-years-cd/380484.p?id=98896&skuId=380484&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380484', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3804\\/380484_sa.jpg\"}', 'upc' => '077779431724', 'provider' => 'bestbuy'],\n ['name' => \"The Revival - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-revival-cd/380509.p?id=101977&skuId=380509&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380509', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3805\\/380509_sa.jpg\"}', 'upc' => '042284190220', 'provider' => 'bestbuy'],\n ['name' => \"Nothing Like the Sun [ECD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nothing-like-the-sun-ecd-cd/380518.p?id=100466&skuId=380518&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380518', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380518_sa.jpg\"}', 'upc' => '075021640221', 'provider' => 'bestbuy'],\n ['name' => \"Their Greatest Hits [ABKCO] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/their-greatest-hits-abkco-cd/380536.p?id=2291990&skuId=380536&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380536', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3805\\/380536.jpg\"}', 'upc' => '018771422723', 'provider' => 'bestbuy'],\n ['name' => \"Slow Turning - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/slow-turning-cd/380545.p?id=85327&skuId=380545&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380545', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380545_sa.jpg\"}', 'upc' => '075021520622', 'provider' => 'bestbuy'],\n ['name' => \"Smashes, Thrashes & Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/smashes-thrashes-hits-cd/380572.p?id=88181&skuId=380572&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380572', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3805\\/380572_sa.jpg\"}', 'upc' => '042283642720', 'provider' => 'bestbuy'],\n ['name' => \"Hot in the Shade - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hot-in-the-shade-cd/380581.p?id=88182&skuId=380581&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380581', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380581_sa.jpg\"}', 'upc' => '042283891326', 'provider' => 'bestbuy'],\n ['name' => \"Rhythm Nation 1814 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rhythm-nation-1814-cd/380590.p?id=86482&skuId=380590&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380590', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380590_sa.jpg\"}', 'upc' => '075021392021', 'provider' => 'bestbuy'],\n ['name' => \"Chariots of Fire [Original Score] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chariots-of-fire-original-score-cd/380625.p?id=77238&skuId=380625&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380625', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3806\\/380625_sa.jpg\"}', 'upc' => '042280002022', 'provider' => 'bestbuy'],\n ['name' => \"Yellow Moon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/yellow-moon-cd/380634.p?id=93099&skuId=380634&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380634', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380634_sa.jpg\"}', 'upc' => '075021524026', 'provider' => 'bestbuy'],\n ['name' => \"Level Best - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/level-best-cd/380661.p?id=89099&skuId=380661&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380661', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380661_sa.jpg\"}', 'upc' => '042284139922', 'provider' => 'bestbuy'],\n ['name' => \"Eclipse - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/eclipse-cd/380670.p?id=90279&skuId=380670&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380670', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380670_sa.jpg\"}', 'upc' => '042284336123', 'provider' => 'bestbuy'],\n ['name' => \"Long Distance Voyager - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/long-distance-voyager-cd/380778.p?id=92172&skuId=380778&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380778', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3807\\/380778_sa.jpg\"}', 'upc' => '042282010520', 'provider' => 'bestbuy'],\n ['name' => \"Cocked and Loaded - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cocked-and-loaded-cd/380787.p?id=88483&skuId=380787&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380787', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380787_sa.jpg\"}', 'upc' => '042283859227', 'provider' => 'bestbuy'],\n ['name' => \"Themes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/themes-cd/380867.p?id=102983&skuId=380867&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380867', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380867_sa.jpg\"}', 'upc' => '042283951822', 'provider' => 'bestbuy'],\n ['name' => \"Addictions, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/addictions-vol-1-cd/380901.p?id=94310&skuId=380901&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=380901', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0380\\/0380901_sa.jpg\"}', 'upc' => '042284230124', 'provider' => 'bestbuy'],\n ['name' => \"Dead Letter Office - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dead-letter-office-cd/381009.p?id=95765&skuId=381009&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381009', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0381\\/0381009_sa.jpg\"}', 'upc' => '044797005428', 'provider' => 'bestbuy'],\n ['name' => \"Murmur - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/murmur-cd/381018.p?id=95772&skuId=381018&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381018', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3810\\/381018_sa.jpg\"}', 'upc' => '044797001420', 'provider' => 'bestbuy'],\n ['name' => \"Reckoning - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reckoning-cd/381027.p?id=95775&skuId=381027&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381027', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3810\\/381027.jpg\"}', 'upc' => '044797004421', 'provider' => 'bestbuy'],\n ['name' => \"Highlights from the Phantom of the Opera... - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/highlights-from-the-phantom-of-the-opera-cd-original-cast-recording/381036.p?id=2222817&skuId=381036&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381036', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3810\\/381036_sa.jpg\"}', 'upc' => '042283156326', 'provider' => 'bestbuy'],\n ['name' => \"Waking Hours - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/waking-hours-cd/381090.p?id=80120&skuId=381090&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381090', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3810\\/381090_sa.jpg\"}', 'upc' => '075021528727', 'provider' => 'bestbuy'],\n ['name' => \"Pyromania - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pyromania-cd/381107.p?id=80093&skuId=381107&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381107', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3811\\/381107.jpg\"}', 'upc' => '042281030826', 'provider' => 'bestbuy'],\n ['name' => \"Hysteria - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hysteria-cd/381116.p?id=80095&skuId=381116&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381116', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3811\\/381116_sa.jpg\"}', 'upc' => '042283067523', 'provider' => 'bestbuy'],\n ['name' => \"Long Cold Winter - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/long-cold-winter-cd/381143.p?id=77815&skuId=381143&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381143', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3811\\/381143_sa.jpg\"}', 'upc' => '042283461222', 'provider' => 'bestbuy'],\n ['name' => \"Melissa Etheridge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/melissa-etheridge-cd/381152.p?id=81708&skuId=381152&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381152', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3811\\/381152_sa.jpg\"}', 'upc' => '042284230322', 'provider' => 'bestbuy'],\n ['name' => \"Rattle & Hum - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rattle-hum-cd/381170.p?id=1953674&skuId=381170&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381170', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0381\\/0381170_sa.jpg\"}', 'upc' => '042284229920', 'provider' => 'bestbuy'],\n ['name' => \"Persistence Of Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/persistence-of-time-cd/381198.p?id=2305280&skuId=381198&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381198', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3811\\/381198_sa.jpg\"}', 'upc' => '042284648028', 'provider' => 'bestbuy'],\n ['name' => \"Blaze of Glory - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blaze-of-glory-cd/381214.p?id=75468&skuId=381214&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381214', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3812\\/381214_sa.jpg\"}', 'upc' => '042284647328', 'provider' => 'bestbuy'],\n ['name' => \"Among the Living - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/among-the-living-cd/381232.p?id=73123&skuId=381232&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381232', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0381\\/0381232_sa.jpg\"}', 'upc' => '042284244725', 'provider' => 'bestbuy'],\n ['name' => \"Spreading The Disease - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spreading-the-disease-cd/381241.p?id=3185920&skuId=381241&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381241', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3812\\/381241.jpg\"}', 'upc' => '042282666826', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Animals [Abkco] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-animals-abkco-cd/381250.p?id=73067&skuId=381250&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381250', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3812\\/381250_sa.jpg\"}', 'upc' => '018771432425', 'provider' => 'bestbuy'],\n ['name' => \"Union - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/union-cd/381269.p?id=77503&skuId=381269&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381269', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0381\\/0381269_sa.jpg\"}', 'upc' => '075021517523', 'provider' => 'bestbuy'],\n ['name' => \"Three Tenors In Concert - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/three-tenors-in-concert-cd/381474.p?id=1676910&skuId=381474&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381474', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0381\\/0381474_sa.jpg\"}', 'upc' => '028943043328', 'provider' => 'bestbuy'],\n ['name' => \"By Request - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/by-request-cd/381508.p?id=2126308&skuId=381508&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381508', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3815\\/381508.jpg\"}', 'upc' => '028942017825', 'provider' => 'bestbuy'],\n ['name' => \"Peter & The Wolf - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/peter-the-wolf-cd/381553.p?id=1697577&skuId=381553&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381553', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3815\\/381553.jpg\"}', 'upc' => '028942939622', 'provider' => 'bestbuy'],\n ['name' => \"Chronicles - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chronicles-cd/381580.p?id=97603&skuId=381580&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381580', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0381\\/0381580_sa.jpg\"}', 'upc' => '042283893627', 'provider' => 'bestbuy'],\n ['name' => \"Borrasca - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/borrasca-cd/381660.p?id=89212&skuId=381660&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381660', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0381\\/0381660_sa.jpg\"}', 'upc' => '018317703620', 'provider' => 'bestbuy'],\n ['name' => \"I Got What It Takes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-got-what-it-takes-cd/381713.p?id=101264&skuId=381713&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381713', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3817\\/381713.jpg\"}', 'upc' => '014551470625', 'provider' => 'bestbuy'],\n ['name' => \"To the East, Blackwards - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/to-the-east-blackwards-cd/381731.p?id=104817&skuId=381731&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381731', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0381\\/0381731_sa.jpg\"}', 'upc' => '016244401923', 'provider' => 'bestbuy'],\n ['name' => \"Sax Appeal - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sax-appeal-cd/381740.p?id=103599&skuId=381740&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381740', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3817\\/381740.jpg\"}', 'upc' => '026656272622', 'provider' => 'bestbuy'],\n ['name' => \"Hot Flash - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hot-flash-cd/381759.p?id=97710&skuId=381759&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381759', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3817\\/381759_sa.jpg\"}', 'upc' => '014551479628', 'provider' => 'bestbuy'],\n ['name' => \"Bad Influence - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bad-influence-cd/381786.p?id=79123&skuId=381786&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381786', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3817\\/381786_sa.jpg\"}', 'upc' => '012928800129', 'provider' => 'bestbuy'],\n ['name' => \"Whitney - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/whitney-cd/381884.p?id=85842&skuId=381884&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381884', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0381\\/0381884_sa.jpg\"}', 'upc' => '078221840521', 'provider' => 'bestbuy'],\n ['name' => \"Highlights from Jekyll & Hyde [Concept] - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/highlights-from-jekyll-hyde-concept-cd-original-cast-recording/381919.p?id=86858&skuId=381919&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381919', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0381\\/0381919_sa.jpg\"}', 'upc' => '090266041626', 'provider' => 'bestbuy'],\n ['name' => \"Hell to Pay - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hell-to-pay-cd/381928.p?id=85100&skuId=381928&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=381928', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0381\\/0381928_sa.jpg\"}', 'upc' => '078221863223', 'provider' => 'bestbuy'],\n ['name' => \"In Effect Mode - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-effect-mode-cd/382231.p?id=100896&skuId=382231&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382231', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3822\\/382231_sa.jpg\"}', 'upc' => '075992566223', 'provider' => 'bestbuy'],\n ['name' => \"Beaches [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => 8.99, 'url' => 'http://www.bestbuy.com/site/beaches-original-soundtrack-cd-original-soundtrack/382268.p?id=74151&skuId=382268&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382268', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382268_sa.jpg\"}', 'upc' => '075678193323', 'provider' => 'bestbuy'],\n ['name' => \"Rei Momo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rei-momo-cd/382277.p?id=76475&skuId=382277&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382277', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382277_sa.jpg\"}', 'upc' => '075992599023', 'provider' => 'bestbuy'],\n ['name' => \"Giving You the Best That I Got - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/giving-you-the-best-that-i-got-cd/382320.p?id=73742&skuId=382320&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382320', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3823\\/382320_sa.jpg\"}', 'upc' => '075596082723', 'provider' => 'bestbuy'],\n ['name' => \"Strange Angels - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/strange-angels-cd/382348.p?id=72968&skuId=382348&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382348', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382348_sa.jpg\"}', 'upc' => '075992590020', 'provider' => 'bestbuy'],\n ['name' => \"5150 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5150-cd/382400.p?id=102934&skuId=382400&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382400', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3824\\/382400_sa.jpg\"}', 'upc' => '075992539425', 'provider' => 'bestbuy'],\n ['name' => \"I'll Give All My Love to You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ill-give-all-my-love-to-you-cd/382419.p?id=2479200&skuId=382419&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382419', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3824\\/382419_sa.jpg\"}', 'upc' => '075596086127', 'provider' => 'bestbuy'],\n ['name' => \"Kill Uncle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kill-uncle-cd/382455.p?id=92297&skuId=382455&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382455', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382455_sa.jpg\"}', 'upc' => '075992651424', 'provider' => 'bestbuy'],\n ['name' => \"The Neighborhood - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-neighborhood-cd/382464.p?id=89694&skuId=382464&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382464', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382464_sa.jpg\"}', 'upc' => '075992613125', 'provider' => 'bestbuy'],\n ['name' => \"Like a Prayer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/like-a-prayer-cd/382516.p?id=90140&skuId=382516&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382516', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3825\\/382516_sa.jpg\"}', 'upc' => '075992584425', 'provider' => 'bestbuy'],\n ['name' => \"I'M Breathless - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/im-breathless-cd/382525.p?id=90141&skuId=382525&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382525', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3825\\/382525_sa.jpg\"}', 'upc' => '075992620925', 'provider' => 'bestbuy'],\n ['name' => \"Waiting For Columbus - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/waiting-for-columbus-cd/382534.p?id=2387845&skuId=382534&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382534', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3825\\/382534.jpg\"}', 'upc' => '075992734424', 'provider' => 'bestbuy'],\n ['name' => \"Ou812 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => 3.99, 'url' => 'http://www.bestbuy.com/site/ou812-cd/382589.p?id=2487429&skuId=382589&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382589', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382589_sa.jpg\"}', 'upc' => '075992573221', 'provider' => 'bestbuy'],\n ['name' => \"Violator - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => 5.99, 'url' => 'http://www.bestbuy.com/site/violator-cd/382598.p?id=80233&skuId=382598&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382598', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382598_sa.jpg\"}', 'upc' => '075992608121', 'provider' => 'bestbuy'],\n ['name' => \"Behind the Mask [Limited] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/behind-the-mask-limited-cd/382614.p?id=2065344&skuId=382614&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382614', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3826\\/382614_sa.jpg\"}', 'upc' => '075992611121', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Warner Bros.] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-warner-bros--cd/382623.p?id=82436&skuId=382623&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382623', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382623_sa.jpg\"}', 'upc' => '075992580120', 'provider' => 'bestbuy'],\n ['name' => \"Environments 1: Psychologically Ultimate Seashore - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/environments-1-psychologically-ultimate-seashore-cd/382641.p?id=81636&skuId=382641&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382641', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382641_sa.jpg\"}', 'upc' => '075678176425', 'provider' => 'bestbuy'],\n ['name' => \"Blue Pacific - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-pacific-cd/382650.p?id=2304988&skuId=382650&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382650', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3826\\/382650_sa.jpg\"}', 'upc' => '075992618328', 'provider' => 'bestbuy'],\n ['name' => \"The Doors [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-doors-original-soundtrack-cd-original-soundtrack/382669.p?id=80779&skuId=382669&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382669', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382669_sa.jpg\"}', 'upc' => '075596104722', 'provider' => 'bestbuy'],\n ['name' => \"So Far - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/so-far-cd/382687.p?id=79273&skuId=382687&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382687', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382687_sa.jpg\"}', 'upc' => '075678264825', 'provider' => 'bestbuy'],\n ['name' => \"Crosby, Stills & Nash - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crosby-stills-nash-cd/382703.p?id=79266&skuId=382703&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382703', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382703_sa.jpg\"}', 'upc' => '075678265129', 'provider' => 'bestbuy'],\n ['name' => \"Mighty Like A Rose - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mighty-like-a-rose-cd/382712.p?id=2390378&skuId=382712&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382712', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382712_sa.jpg\"}', 'upc' => '075992657525', 'provider' => 'bestbuy'],\n ['name' => \"...But Seriously - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/-but-seriously-cd/382721.p?id=78359&skuId=382721&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382721', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382721_sa.jpg\"}', 'upc' => '075678205026', 'provider' => 'bestbuy'],\n ['name' => \"Mixed Up - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mixed-up-cd/382730.p?id=79475&skuId=382730&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382730', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382730_sa.jpg\"}', 'upc' => '075596097826', 'provider' => 'bestbuy'],\n ['name' => \"Disintegration - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/disintegration-cd/382749.p?id=79474&skuId=382749&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382749', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382749_sa.jpg\"}', 'upc' => '075596085526', 'provider' => 'bestbuy'],\n ['name' => \"The Civil War [Original TV Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-civil-war-original-tv-soundtrack-cd-original-soundtrack/382758.p?id=77847&skuId=382758&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382758', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3827\\/382758_sa.jpg\"}', 'upc' => '075597925623', 'provider' => 'bestbuy'],\n ['name' => \"Journeyman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/journeyman-cd/382767.p?id=77902&skuId=382767&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382767', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3827\\/382767_sa.jpg\"}', 'upc' => '075992607421', 'provider' => 'bestbuy'],\n ['name' => \"Love Is Strange - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-is-strange-cd/382874.p?id=97138&skuId=382874&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382874', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3828\\/382874_sa.jpg\"}', 'upc' => '075992628921', 'provider' => 'bestbuy'],\n ['name' => \"Songs for Drella - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/songs-for-drella-cd/382883.p?id=96303&skuId=382883&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382883', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382883_sa.jpg\"}', 'upc' => '075992614023', 'provider' => 'bestbuy'],\n ['name' => \"Ashes to Ashes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ashes-to-ashes-cd/382909.p?id=3522151&skuId=382909&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382909', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382909_sa.jpg\"}', 'upc' => '075992631822', 'provider' => 'bestbuy'],\n ['name' => \"News of the World [Bonus Track] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/news-of-the-world-bonus-track-cd/382918.p?id=95710&skuId=382918&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382918', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0382\\/0382918_sa.jpg\"}', 'upc' => '720616103727', 'provider' => 'bestbuy'],\n ['name' => \"Innuendo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/innuendo-cd/382936.p?id=95705&skuId=382936&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382936', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3829\\/382936_sa.jpg\"}', 'upc' => '720616102027', 'provider' => 'bestbuy'],\n ['name' => \"Green - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/green-cd/382945.p?id=2387427&skuId=382945&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382945', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3829\\/382945_sa.jpg\"}', 'upc' => '075992579520', 'provider' => 'bestbuy'],\n ['name' => \"1999 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1999-cd/382954.p?id=2387776&skuId=382954&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=382954', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3829\\/382954_sa.jpg\"}', 'upc' => '075992372022', 'provider' => 'bestbuy'],\n ['name' => \"All the Stuff (And More), Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-the-stuff-and-more-vol-1-cd/383007.p?id=95910&skuId=383007&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383007', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3830\\/383007_sa.jpg\"}', 'upc' => '075992622028', 'provider' => 'bestbuy'],\n ['name' => \"Ramones Mania - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ramones-mania-cd/383025.p?id=95921&skuId=383025&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383025', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0383\\/0383025_sa.jpg\"}', 'upc' => '075992570923', 'provider' => 'bestbuy'],\n ['name' => \"Why Do Birds Sing? - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/why-do-birds-sing-cd/383043.p?id=103185&skuId=383043&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383043', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0383\\/0383043_sa.jpg\"}', 'upc' => '075992647625', 'provider' => 'bestbuy'],\n ['name' => \"Hack - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hack-cd/383114.p?id=86192&skuId=383114&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383114', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3831\\/383114.jpg\"}', 'upc' => '075992625821', 'provider' => 'bestbuy'],\n ['name' => \"Glory [Original Motion Picture Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/glory-original-motion-picture-soundtrack-cd-original-soundtrack/383141.p?id=83727&skuId=383141&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383141', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3831\\/383141_sa.jpg\"}', 'upc' => '077778615026', 'provider' => 'bestbuy'],\n ['name' => \"A Brief History of the Twentieth Century - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-brief-history-of-the-twentieth-century-cd/383150.p?id=83232&skuId=383150&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383150', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0383\\/0383150_sa.jpg\"}', 'upc' => '075992644822', 'provider' => 'bestbuy'],\n ['name' => \"Afterburner - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/afterburner-cd/383187.p?id=105361&skuId=383187&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383187', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3831\\/383187_sa.jpg\"}', 'upc' => '075992534222', 'provider' => 'bestbuy'],\n ['name' => \"El Loco - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/el-loco-cd/383196.p?id=105359&skuId=383196&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383196', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0383\\/0383196_sa.jpg\"}', 'upc' => '075992359320', 'provider' => 'bestbuy'],\n ['name' => \"Tejas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tejas-cd/383203.p?id=105356&skuId=383203&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383203', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3832\\/383203_sa.jpg\"}', 'upc' => '075992738323', 'provider' => 'bestbuy'],\n ['name' => \"Recycler - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/recycler-cd/383221.p?id=2387204&skuId=383221&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383221', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0383\\/0383221_sa.jpg\"}', 'upc' => '075992626521', 'provider' => 'bestbuy'],\n ['name' => \"Rio Grande Mud - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rio-grande-mud-cd/383230.p?id=105352&skuId=383230&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383230', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3832\\/383230_sa.jpg\"}', 'upc' => '075992738026', 'provider' => 'bestbuy'],\n ['name' => \"Eliminator - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/eliminator-cd/383249.p?id=105360&skuId=383249&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383249', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3832\\/383249_sa.jpg\"}', 'upc' => '075992377423', 'provider' => 'bestbuy'],\n ['name' => \"ZZ Top's First Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/zz-tops-first-album-cd/383267.p?id=105351&skuId=383267&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383267', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3832\\/383267_sa.jpg\"}', 'upc' => '075992737920', 'provider' => 'bestbuy'],\n ['name' => \"Refugees of the Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/refugees-of-the-heart-cd/383285.p?id=3254618&skuId=383285&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383285', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0383\\/0383285_sa.jpg\"}', 'upc' => '077778618928', 'provider' => 'bestbuy'],\n ['name' => \"Live Rust - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/live-rust-cd/383294.p?id=105069&skuId=383294&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383294', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0383\\/0383294_sa.jpg\"}', 'upc' => '075992725026', 'provider' => 'bestbuy'],\n ['name' => \"Ragged Glory - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ragged-glory-cd/383301.p?id=105075&skuId=383301&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383301', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0383\\/0383301_sa.jpg\"}', 'upc' => '075992631525', 'provider' => 'bestbuy'],\n ['name' => \"In The Heart Of The Young - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-the-heart-of-the-young-cd/383310.p?id=2393582&skuId=383310&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383310', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0383\\/0383310_sa.jpg\"}', 'upc' => '075678210327', 'provider' => 'bestbuy'],\n ['name' => \"Mane Attraction - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mane-attraction-cd/383329.p?id=103893&skuId=383329&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383329', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0383\\/0383329_sa.jpg\"}', 'upc' => '075678219320', 'provider' => 'bestbuy'],\n ['name' => \"Graffiti Bridge [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/graffiti-bridge-pa-cd/383374.p?id=95483&skuId=383374&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383374', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0383\\/0383374_sa.jpg\"}', 'upc' => '075992749329', 'provider' => 'bestbuy'],\n ['name' => \"Yessongs [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/yessongs-remaster-cd/383409.p?id=2983078&skuId=383409&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383409', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0383\\/0383409_sa.jpg\"}', 'upc' => '075678268229', 'provider' => 'bestbuy'],\n ['name' => \"Decade - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/decade-cd/383702.p?id=105066&skuId=383702&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=383702', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3837\\/383702_sa.jpg\"}', 'upc' => '075992723329', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Dave Mason [Columbia] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-dave-mason-columbia-cd/384051.p?id=90738&skuId=384051&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=384051', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3840\\/384051.jpg\"}', 'upc' => '074643708920', 'provider' => 'bestbuy'],\n ['name' => \"The Wild, The Innocent & the E Street Shuffle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-wild-the-innocent-the-e-street-shuffle-cd/384355.p?id=99921&skuId=384355&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=384355', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0384\\/0384355_sa.jpg\"}', 'upc' => '074643243223', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/384792.p?id=78231&skuId=384792&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=384792', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0384\\/0384792_sa.jpg\"}', 'upc' => '074643407724', 'provider' => 'bestbuy'],\n ['name' => \"ELO's Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/elos-greatest-hits-cd/384881.p?id=81431&skuId=384881&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=384881', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3848\\/384881_sa.jpg\"}', 'upc' => '074643631020', 'provider' => 'bestbuy'],\n ['name' => \"The Pros and Cons of Hitch Hiking - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-pros-and-cons-of-hitch-hiking-cd/384989.p?id=1820107&skuId=384989&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=384989', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0384\\/0384989_sa.jpg\"}', 'upc' => '886972296326', 'provider' => 'bestbuy'],\n ['name' => \"Faith - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/faith-cd/385256.p?id=91584&skuId=385256&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=385256', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3852\\/385256_sa.jpg\"}', 'upc' => '074644086720', 'provider' => 'bestbuy'],\n ['name' => \"Listen Without Prejudice, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/listen-without-prejudice-vol-1-cd/385265.p?id=91585&skuId=385265&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=385265', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3852\\/385265_sa.jpg\"}', 'upc' => '074644689822', 'provider' => 'bestbuy'],\n ['name' => \"Fear of a Black Planet [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fear-of-a-black-planet-pa-cd/385283.p?id=95631&skuId=385283&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=385283', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3852\\/385283_sa.jpg\"}', 'upc' => '731452344625', 'provider' => 'bestbuy'],\n ['name' => \"A Collection: Greatest Hits...And More - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-collection-greatest-hits-and-more-cd/385336.p?id=100588&skuId=385336&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=385336', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3853\\/385336_sa.jpg\"}', 'upc' => '074644536928', 'provider' => 'bestbuy'],\n ['name' => \"Memories - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/memories-cd/385345.p?id=100605&skuId=385345&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=385345', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3853\\/385345_sa.jpg\"}', 'upc' => '074643767828', 'provider' => 'bestbuy'],\n ['name' => \"Double Live Gonzo! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/double-live-gonzo-cd/385586.p?id=93570&skuId=385586&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=385586', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0385\\/0385586_sa.jpg\"}', 'upc' => '074643506922', 'provider' => 'bestbuy'],\n ['name' => \"The Forgotten Trail (1969-1974) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-forgotten-trail-1969-1974-cd/385611.p?id=95091&skuId=385611&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=385611', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3856\\/385611_sa.jpg\"}', 'upc' => '074644616224', 'provider' => 'bestbuy'],\n ['name' => \"Lotus - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lotus-cd/385675.p?id=97882&skuId=385675&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=385675', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3856\\/385675_sa.jpg\"}', 'upc' => '074644676426', 'provider' => 'bestbuy'],\n ['name' => \"Hair of the Dog - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hair-of-the-dog-cd/385826.p?id=92925&skuId=385826&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=385826', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3858\\/385826_sa.jpg\"}', 'upc' => '075021322523', 'provider' => 'bestbuy'],\n ['name' => \"The Other Side of Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-other-side-of-life-cd/385862.p?id=92179&skuId=385862&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=385862', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3858\\/385862_sa.jpg\"}', 'upc' => '042282917928', 'provider' => 'bestbuy'],\n ['name' => \"Sur La Mer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sur-la-mer-cd/385880.p?id=2387815&skuId=385880&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=385880', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0385\\/0385880_sa.jpg\"}', 'upc' => '042283575622', 'provider' => 'bestbuy'],\n ['name' => \"Thru the Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thru-the-years-cd/385942.p?id=90893&skuId=385942&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=385942', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0385\\/0385942_sa.jpg\"}', 'upc' => '042284402828', 'provider' => 'bestbuy'],\n ['name' => \"L.A. Guns - CD - Remastered\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/l-a-guns-cd-remastered/385979.p?id=88486&skuId=385979&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=385979', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0385\\/0385979_sa.jpg\"}', 'upc' => '042283414426', 'provider' => 'bestbuy'],\n ['name' => \"Night and Day - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/night-and-day-cd/385988.p?id=86491&skuId=385988&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=385988', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3859\\/385988_sa.jpg\"}', 'upc' => '075021333420', 'provider' => 'bestbuy'],\n ['name' => \"20th Century Masters -... [Digipak] [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/20th-century-masters-digipak-remaster-cd/386004.p?id=1635723&skuId=386004&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386004', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386004_sa.jpg\"}', 'upc' => '075021333826', 'provider' => 'bestbuy'],\n ['name' => \"History Never Repeats: The Best of Split Enz - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/history-never-repeats-the-best-of-split-enz-cd/386022.p?id=99893&skuId=386022&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386022', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3860\\/386022_sa.jpg\"}', 'upc' => '075021328921', 'provider' => 'bestbuy'],\n ['name' => \"Shoot Out at the Fantasy Factory [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shoot-out-at-the-fantasy-factory-remaster-cd/386059.p?id=102130&skuId=386059&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386059', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386059_sa.jpg\"}', 'upc' => '042284278126', 'provider' => 'bestbuy'],\n ['name' => \"Flat as a Pancake - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/flat-as-a-pancake-cd/386095.p?id=85089&skuId=386095&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386095', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3860\\/386095.jpg\"}', 'upc' => '075021319622', 'provider' => 'bestbuy'],\n ['name' => \"Louder Than Love [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/louder-than-love-pa-cd/386175.p?id=99670&skuId=386175&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386175', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386175_sa.jpg\"}', 'upc' => '075021525221', 'provider' => 'bestbuy'],\n ['name' => \"Extreme - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/extreme-cd/386200.p?id=81837&skuId=386200&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386200', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3862\\/386200_sa.jpg\"}', 'upc' => '075021523821', 'provider' => 'bestbuy'],\n ['name' => \"Compact Jazz - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/compact-jazz-cd/386255.p?id=66286&skuId=386255&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386255', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3862\\/386255_sa.jpg\"}', 'upc' => '042283531321', 'provider' => 'bestbuy'],\n ['name' => \"On Through the Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/on-through-the-night-cd/386264.p?id=80091&skuId=386264&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386264', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386264_sa.jpg\"}', 'upc' => '042282253323', 'provider' => 'bestbuy'],\n ['name' => \"Strong Persuader - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/strong-persuader-cd/386273.p?id=79127&skuId=386273&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386273', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386273_sa.jpg\"}', 'upc' => '042283056824', 'provider' => 'bestbuy'],\n ['name' => \"Time Pieces, Vol. 2: Live in the '70s - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/time-pieces-vol-2-live-in-the-70s-cd/386291.p?id=77905&skuId=386291&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386291', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386291_sa.jpg\"}', 'upc' => '042281183522', 'provider' => 'bestbuy'],\n ['name' => \"Time Pieces: The Best of Eric Clapton - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/time-pieces-the-best-of-eric-clapton-cd/386326.p?id=77904&skuId=386326&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386326', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3863\\/386326.jpg\"}', 'upc' => '042280001421', 'provider' => 'bestbuy'],\n ['name' => \"Night Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/night-songs-cd/386344.p?id=77816&skuId=386344&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386344', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3863\\/386344.jpg\"}', 'upc' => '042283007628', 'provider' => 'bestbuy'],\n ['name' => \"Paradise Theater - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/paradise-theater-cd/386399.p?id=100687&skuId=386399&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386399', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3863\\/386399_sa.jpg\"}', 'upc' => '075021324022', 'provider' => 'bestbuy'],\n ['name' => \"Pieces of Eight - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pieces-of-eight-cd/386406.p?id=100688&skuId=386406&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386406', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386406_sa.jpg\"}', 'upc' => '075021322424', 'provider' => 'bestbuy'],\n ['name' => \"Equinox - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/equinox-cd/386424.p?id=100682&skuId=386424&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386424', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386424_sa.jpg\"}', 'upc' => '075021321724', 'provider' => 'bestbuy'],\n ['name' => \"Crystal Ball - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crystal-ball-cd/386433.p?id=100680&skuId=386433&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386433', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386433_sa.jpg\"}', 'upc' => '075021321823', 'provider' => 'bestbuy'],\n ['name' => \"The Grand Illusion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-grand-illusion-cd/386442.p?id=100690&skuId=386442&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386442', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386442_sa.jpg\"}', 'upc' => '075021322325', 'provider' => 'bestbuy'],\n ['name' => \"Bird: The Original Recordings of Charlie Parker - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bird-the-original-recordings-of-charlie-parker-cd/386647.p?id=69757&skuId=386647&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386647', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386647_sa.jpg\"}', 'upc' => '042283717626', 'provider' => 'bestbuy'],\n ['name' => \"Riptide - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/riptide-cd/386674.p?id=1431313&skuId=386674&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386674', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3866\\/386674_sa.jpg\"}', 'upc' => '042282646323', 'provider' => 'bestbuy'],\n ['name' => \"Best of the Velvet Underground: Words and... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-the-velvet-underground-words-and-cd/386683.p?id=103076&skuId=386683&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386683', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386683_sa.jpg\"}', 'upc' => '042284116428', 'provider' => 'bestbuy'],\n ['name' => \"The Sky's Gone Out - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-skys-gone-out-cd/386692.p?id=74092&skuId=386692&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386692', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386692_sa.jpg\"}', 'upc' => '075021332423', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/386718.p?id=76794&skuId=386718&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386718', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386718_sa.jpg\"}', 'upc' => '075021310520', 'provider' => 'bestbuy'],\n ['name' => \"Blind Faith - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blind-faith-cd/386736.p?id=2389705&skuId=386736&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386736', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3867\\/386736.jpg\"}', 'upc' => '042282509420', 'provider' => 'bestbuy'],\n ['name' => \"Good Times Are So Hard to Find - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/good-times-are-so-hard-to-find-cd/386754.p?id=75121&skuId=386754&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386754', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3867\\/386754.jpg\"}', 'upc' => '042283403024', 'provider' => 'bestbuy'],\n ['name' => \"Chuck Berry's Golden Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chuck-berrys-golden-hits-cd/386763.p?id=74517&skuId=386763&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386763', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386763_sa.jpg\"}', 'upc' => '042282625625', 'provider' => 'bestbuy'],\n ['name' => \"BTO's Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/btos-greatest-hits-cd/386898.p?id=1575983&skuId=386898&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386898', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3868\\/386898.jpg\"}', 'upc' => '042283003927', 'provider' => 'bestbuy'],\n ['name' => \"Not Fragile - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/not-fragile-cd/386905.p?id=73623&skuId=386905&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386905', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386905_sa.jpg\"}', 'upc' => '042283017825', 'provider' => 'bestbuy'],\n ['name' => \"Wild-Eyed Southern Boys - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wild-eyed-southern-boys-cd/386978.p?id=101629&skuId=386978&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386978', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0386\\/0386978_sa.jpg\"}', 'upc' => '075021329829', 'provider' => 'bestbuy'],\n ['name' => \"Special Forces - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/special-forces-cd/386987.p?id=101625&skuId=386987&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386987', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3869\\/386987_sa.jpg\"}', 'upc' => '075021329928', 'provider' => 'bestbuy'],\n ['name' => \"Tour de Force - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tour-de-force-cd/386996.p?id=101628&skuId=386996&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=386996', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3869\\/386996_sa.jpg\"}', 'upc' => '075021331020', 'provider' => 'bestbuy'],\n ['name' => \"Wide Awake in America [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wide-awake-in-america-ep-cd/387058.p?id=102701&skuId=387058&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=387058', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0387\\/0387058_sa.jpg\"}', 'upc' => '042284247924', 'provider' => 'bestbuy'],\n ['name' => \"Rain Dogs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rain-dogs-cd/387076.p?id=2281286&skuId=387076&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=387076', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/3870\\/387076_sa.jpg\"}', 'upc' => '042282638229', 'provider' => 'bestbuy'],\n ['name' => \"Bring the Family - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bring-the-family-cd/387156.p?id=85322&skuId=387156&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=387156', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3871\\/387156.jpg\"}', 'upc' => '075021515826', 'provider' => 'bestbuy'],\n ['name' => \"China - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/china-cd/387183.p?id=102974&skuId=387183&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=387183', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0387\\/0387183_sa.jpg\"}', 'upc' => '042281365324', 'provider' => 'bestbuy'],\n ['name' => \"Marching Out - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/marching-out-cd/387209.p?id=90281&skuId=387209&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=387209', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0387\\/0387209_sa.jpg\"}', 'upc' => '042282573322', 'provider' => 'bestbuy'],\n ['name' => \"Cuts Like a Knife - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cuts-like-a-knife-cd/387254.p?id=72464&skuId=387254&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=387254', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/3872\\/387254.jpg\"}', 'upc' => '075021328822', 'provider' => 'bestbuy'],\n ['name' => \"Chronicle, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chronicle-vol-2-cd/409445.p?id=79159&skuId=409445&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=409445', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0409\\/0409445_sa.jpg\"}', 'upc' => '025218000321', 'provider' => 'bestbuy'],\n ['name' => \"Serious Hits...Live! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/serious-hits-live-cd/409588.p?id=78364&skuId=409588&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=409588', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0409\\/0409588_sa.jpg\"}', 'upc' => '075678215728', 'provider' => 'bestbuy'],\n ['name' => \"Eagles Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/eagles-live-cd/409597.p?id=81202&skuId=409597&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=409597', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0409\\/0409597_sa.jpg\"}', 'upc' => '075596059121', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits on Earth - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-on-earth-cd/409677.p?id=82177&skuId=409677&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=409677', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4096\\/409677.jpg\"}', 'upc' => '078221833523', 'provider' => 'bestbuy'],\n ['name' => \"Welcome to the Real World - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/welcome-to-the-real-world-cd/409800.p?id=92544&skuId=409800&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=409800', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4098\\/409800_sa.jpg\"}', 'upc' => '078635804522', 'provider' => 'bestbuy'],\n ['name' => \"Why Not Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/why-not-me-cd/409953.p?id=3323839&skuId=409953&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=409953', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '078635531923', 'provider' => 'bestbuy'],\n ['name' => \"Mountain Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mountain-music-cd/410503.p?id=72643&skuId=410503&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=410503', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0410\\/0410503_sa.jpg\"}', 'upc' => '078635422924', 'provider' => 'bestbuy'],\n ['name' => \"Pillow Lips - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pillow-lips-cd/410816.p?id=91975&skuId=410816&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=410816', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4108\\/410816.jpg\"}', 'upc' => '016581281028', 'provider' => 'bestbuy'],\n ['name' => \"Nowhere - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nowhere-cd/411094.p?id=96650&skuId=411094&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411094', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411094_sa.jpg\"}', 'upc' => '075992646222', 'provider' => 'bestbuy'],\n ['name' => \"Dirty Mind [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dirty-mind-pa-cd/411101.p?id=95480&skuId=411101&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411101', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411101_sa.jpg\"}', 'upc' => '075992740821', 'provider' => 'bestbuy'],\n ['name' => \"The Ultimate Otis Redding - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/the-ultimate-otis-redding-cd/411110.p?id=96232&skuId=411110&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411110', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411110_sa.jpg\"}', 'upc' => '075992760829', 'provider' => 'bestbuy'],\n ['name' => \"Controversy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/controversy-cd/411129.p?id=95479&skuId=411129&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411129', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4111\\/411129_sa.jpg\"}', 'upc' => '075992360128', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Carly Simon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-carly-simon-cd/411138.p?id=98779&skuId=411138&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411138', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411138_sa.jpg\"}', 'upc' => '075596051521', 'provider' => 'bestbuy'],\n ['name' => \"Never Mind the Bollocks Here's the... [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/never-mind-the-bollocks-heres-the-pa-cd/411147.p?id=98416&skuId=411147&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411147', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4111\\/411147_sa.jpg\"}', 'upc' => '075992734721', 'provider' => 'bestbuy'],\n ['name' => \"Prime Prine: The Best of John Prine - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/prime-prine-the-best-of-john-prine-cd/411156.p?id=95519&skuId=411156&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411156', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4111\\/411156.jpg\"}', 'upc' => '075678150425', 'provider' => 'bestbuy'],\n ['name' => \"Pretenders - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pretenders-cd/411174.p?id=95404&skuId=411174&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411174', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4111\\/411174.jpg\"}', 'upc' => '075992743020', 'provider' => 'bestbuy'],\n ['name' => \"Straight to the Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/straight-to-the-heart-cd/411192.p?id=70592&skuId=411192&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411192', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4111\\/411192_sa.jpg\"}', 'upc' => '075992515023', 'provider' => 'bestbuy'],\n ['name' => \"A Change of Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-change-of-heart-cd/411218.p?id=70596&skuId=411218&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411218', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411218_sa.jpg\"}', 'upc' => '075992547925', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/411263.p?id=98183&skuId=411263&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411263', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411263_sa.jpg\"}', 'upc' => '075992733229', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => 3.99, 'url' => 'http://www.bestbuy.com/site/greatest-hits-vol-1-cd/411361.p?id=97284&skuId=411361&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411361', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4113\\/411361_sa.jpg\"}', 'upc' => '075596051224', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-vol-2-cd/411370.p?id=97285&skuId=411370&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411370', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411370_sa.jpg\"}', 'upc' => '075596056724', 'provider' => 'bestbuy'],\n ['name' => \"Roll with It - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/roll-with-it-cd/411389.p?id=104541&skuId=411389&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411389', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411389_sa.jpg\"}', 'upc' => '077778606925', 'provider' => 'bestbuy'],\n ['name' => \"Gorilla - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gorilla-cd/411405.p?id=101232&skuId=411405&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411405', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411405_sa.jpg\"}', 'upc' => '075992729321', 'provider' => 'bestbuy'],\n ['name' => \"Hope Chest: The Fredonia Recordings 1982-1983 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hope-chest-the-fredonia-recordings-1982-1983-cd/411414.p?id=101410&skuId=411414&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411414', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411414_sa.jpg\"}', 'upc' => '075596096225', 'provider' => 'bestbuy'],\n ['name' => \"The Wishing Chair - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-wishing-chair-cd/411423.p?id=101415&skuId=411423&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411423', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411423_sa.jpg\"}', 'upc' => '075596042826', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/411432.p?id=1486991&skuId=411432&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411432', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411432_sa.jpg\"}', 'upc' => '081227809423', 'provider' => 'bestbuy'],\n ['name' => \"Sweet Baby James - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sweet-baby-james-cd/411441.p?id=2466524&skuId=411441&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411441', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4114\\/411441_sa.jpg\"}', 'upc' => '075992718325', 'provider' => 'bestbuy'],\n ['name' => \"Out of Order - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/out-of-order-cd/411450.p?id=100412&skuId=411450&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411450', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411450_sa.jpg\"}', 'upc' => '075992568425', 'provider' => 'bestbuy'],\n ['name' => \"Take 6 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/take-6-cd/411478.p?id=101109&skuId=411478&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411478', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4114\\/411478.jpg\"}', 'upc' => '075992567022', 'provider' => 'bestbuy'],\n ['name' => \"A Quiet Normal Life: The Best of Warren Zevon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-quiet-normal-life-the-best-of-warren-zevon-cd/411502.p?id=105298&skuId=411502&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411502', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411502_sa.jpg\"}', 'upc' => '075596050326', 'provider' => 'bestbuy'],\n ['name' => \"Excitable Boy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/excitable-boy-cd/411511.p?id=105300&skuId=411511&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411511', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411511_sa.jpg\"}', 'upc' => '075596052122', 'provider' => 'bestbuy'],\n ['name' => \"Going for the One - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/going-for-the-one-cd/411520.p?id=104979&skuId=411520&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411520', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411520_sa.jpg\"}', 'upc' => '075678267024', 'provider' => 'bestbuy'],\n ['name' => \"Fragile (Remastered) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fragile-remastered-cd/411539.p?id=2229012&skuId=411539&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411539', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411539_sa.jpg\"}', 'upc' => '075678266720', 'provider' => 'bestbuy'],\n ['name' => \"The Yes Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-yes-album-cd/411548.p?id=1548545&skuId=411548&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411548', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411548_sa.jpg\"}', 'upc' => '075678266522', 'provider' => 'bestbuy'],\n ['name' => \"Close to the Edge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/close-to-the-edge-cd/411566.p?id=104974&skuId=411566&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411566', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411566_sa.jpg\"}', 'upc' => '075678266621', 'provider' => 'bestbuy'],\n ['name' => \"Relayer [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/relayer-remaster-cd/411575.p?id=104980&skuId=411575&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411575', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411575_sa.jpg\"}', 'upc' => '075678266423', 'provider' => 'bestbuy'],\n ['name' => \"The Dream Weaver - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-dream-weaver-cd/411593.p?id=104774&skuId=411593&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411593', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4115\\/411593_sa.jpg\"}', 'upc' => '075992729420', 'provider' => 'bestbuy'],\n ['name' => \"Big Game - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-game-cd/411637.p?id=103891&skuId=411637&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411637', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411637_sa.jpg\"}', 'upc' => '075678196928', 'provider' => 'bestbuy'],\n ['name' => \"Guitars, Cadillacs, Etc., Etc. - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/guitars-cadillacs-etc--etc-cd/411664.p?id=105022&skuId=411664&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411664', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411664_sa.jpg\"}', 'upc' => '075992537223', 'provider' => 'bestbuy'],\n ['name' => \"After the Gold Rush - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/after-the-gold-rush-cd/411673.p?id=105061&skuId=411673&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411673', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4116\\/411673_sa.jpg\"}', 'upc' => '075992724326', 'provider' => 'bestbuy'],\n ['name' => \"Harvest - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/harvest-cd/411682.p?id=105063&skuId=411682&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411682', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411682_sa.jpg\"}', 'upc' => '075992723923', 'provider' => 'bestbuy'],\n ['name' => \"Paranoid - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/paranoid-cd/411726.p?id=148631&skuId=411726&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411726', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411726_sa.jpg\"}', 'upc' => '075992732727', 'provider' => 'bestbuy'],\n ['name' => \"Crossroads - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crossroads-cd/411744.p?id=2305036&skuId=411744&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411744', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411744_sa.jpg\"}', 'upc' => '075596088824', 'provider' => 'bestbuy'],\n ['name' => \"Tracy Chapman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tracy-chapman-cd/411753.p?id=2224952&skuId=411753&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411753', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411753_sa.jpg\"}', 'upc' => '075596077422', 'provider' => 'bestbuy'],\n ['name' => \"Candy-O - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/candy-o-cd/411771.p?id=76968&skuId=411771&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411771', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4117\\/411771_sa.jpg\"}', 'upc' => '075596055925', 'provider' => 'bestbuy'],\n ['name' => \"The Cars - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-cars-cd/411780.p?id=76965&skuId=411780&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411780', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4117\\/411780_sa.jpg\"}', 'upc' => '075596052429', 'provider' => 'bestbuy'],\n ['name' => \"Retrospective: The Best of Buffalo Springfield - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/retrospective-the-best-of-buffalo-springfield-cd/411806.p?id=76253&skuId=411806&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411806', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411806_sa.jpg\"}', 'upc' => '075679041722', 'provider' => 'bestbuy'],\n ['name' => \"Jackson Browne - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jackson-browne-cd/411833.p?id=75930&skuId=411833&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411833', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4118\\/411833.jpg\"}', 'upc' => '075596062220', 'provider' => 'bestbuy'],\n ['name' => \"The Pretender - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => 5.99, 'url' => 'http://www.bestbuy.com/site/the-pretender-cd/411842.p?id=75937&skuId=411842&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411842', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411842_sa.jpg\"}', 'upc' => '075596051323', 'provider' => 'bestbuy'],\n ['name' => \"Running on Empty - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => 5.99, 'url' => 'http://www.bestbuy.com/site/running-on-empty-cd/411851.p?id=75936&skuId=411851&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411851', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411851_sa.jpg\"}', 'upc' => '075596051927', 'provider' => 'bestbuy'],\n ['name' => \"Breezin' [Bonus Tracks] [ECD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/breezin-bonus-tracks-ecd-cd/411913.p?id=198411&skuId=411913&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411913', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4119\\/411913_sa.jpg\"}', 'upc' => '075992733427', 'provider' => 'bestbuy'],\n ['name' => \"Run with the Pack - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/run-with-the-pack-cd/411931.p?id=73658&skuId=411931&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411931', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4119\\/411931_sa.jpg\"}', 'upc' => '075679243522', 'provider' => 'bestbuy'],\n ['name' => \"Bad Company - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bad-company-cd/411959.p?id=73650&skuId=411959&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411959', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411959_sa.jpg\"}', 'upc' => '075679244123', 'provider' => 'bestbuy'],\n ['name' => \"Dangerous Age - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dangerous-age-cd/411977.p?id=73652&skuId=411977&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=411977', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0411\\/0411977_sa.jpg\"}', 'upc' => '075678188428', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hit [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hit-pa-cd/412020.p?id=77325&skuId=412020&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412020', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4120\\/412020_sa.jpg\"}', 'upc' => '075992361422', 'provider' => 'bestbuy'],\n ['name' => \"Long Live the Kane - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/long-live-the-kane-cd/412048.p?id=87592&skuId=412048&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412048', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412048_sa.jpg\"}', 'upc' => '075992573122', 'provider' => 'bestbuy'],\n ['name' => \"Workingman's Dead - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/workingmans-dead-cd/412075.p?id=2484223&skuId=412075&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412075', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412075_sa.jpg\"}', 'upc' => '075992718424', 'provider' => 'bestbuy'],\n ['name' => \"Miami - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/miami-cd/412093.p?id=86671&skuId=412093&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412093', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4120\\/412093_sa.jpg\"}', 'upc' => '075678036521', 'provider' => 'bestbuy'],\n ['name' => \"Best Of Skeletons From The Closet: Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-skeletons-from-the-closet-greatest-hits-cd/412128.p?id=2434652&skuId=412128&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412128', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4121\\/412128.jpg\"}', 'upc' => '081227646622', 'provider' => 'bestbuy'],\n ['name' => \"Miki Howard - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/miki-howard-cd/412137.p?id=85851&skuId=412137&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412137', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4121\\/412137_sa.jpg\"}', 'upc' => '075678202421', 'provider' => 'bestbuy'],\n ['name' => \"Power - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/power-cd/412146.p?id=2389720&skuId=412146&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412146', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412146_sa.jpg\"}', 'upc' => '075992576529', 'provider' => 'bestbuy'],\n ['name' => \"American Beauty [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-beauty-remaster-cd/412155.p?id=2444119&skuId=412155&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412155', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412155_sa.jpg\"}', 'upc' => '075992719025', 'provider' => 'bestbuy'],\n ['name' => \"Jive Bunny: The Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jive-bunny-the-album-cd/412164.p?id=87021&skuId=412164&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412164', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412164_sa.jpg\"}', 'upc' => '075679132222', 'provider' => 'bestbuy'],\n ['name' => \"Blow My Fuse - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blow-my-fuse-cd/412173.p?id=88220&skuId=412173&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412173', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4121\\/412173_sa.jpg\"}', 'upc' => '075678187728', 'provider' => 'bestbuy'],\n ['name' => \"Supersonic - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/supersonic-cd/412217.p?id=81871&skuId=412217&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412217', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4122\\/412217.jpg\"}', 'upc' => '075679095923', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Emmylou Harris - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-emmylou-harris-cd/412262.p?id=84866&skuId=412262&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412262', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4122\\/412262_sa.jpg\"}', 'upc' => '075992737524', 'provider' => 'bestbuy'],\n ['name' => \"Pirates - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pirates-cd/412280.p?id=3454894&skuId=412280&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412280', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412280_sa.jpg\"}', 'upc' => '075992343220', 'provider' => 'bestbuy'],\n ['name' => \"Rickie Lee Jones - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rickie-lee-jones-cd/412299.p?id=87302&skuId=412299&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412299', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4122\\/412299_sa.jpg\"}', 'upc' => '075992738927', 'provider' => 'bestbuy'],\n ['name' => \"Alice's Restaurant - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/alices-restaurant-cd/412306.p?id=84446&skuId=412306&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412306', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412306_sa.jpg\"}', 'upc' => '075992743921', 'provider' => 'bestbuy'],\n ['name' => \"Best Of - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-cd/412351.p?id=2390384&skuId=412351&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412351', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4123\\/412351_sa.jpg\"}', 'upc' => '075992734028', 'provider' => 'bestbuy'],\n ['name' => \"Oh, Good Grief! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/oh-good-grief-cd/412360.p?id=67035&skuId=412360&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412360', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4123\\/412360_sa.jpg\"}', 'upc' => '075992717229', 'provider' => 'bestbuy'],\n ['name' => \"Music for the Masses [Bonus Tracks] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-for-the-masses-bonus-tracks-cd/412422.p?id=80227&skuId=412422&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412422', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412422_sa.jpg\"}', 'upc' => '075992561426', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/412440.p?id=1535072&skuId=412440&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412440', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4124\\/412440_sa.jpg\"}', 'upc' => '075992644921', 'provider' => 'bestbuy'],\n ['name' => \"Cocktail - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cocktail-cd-original-soundtrack/412468.p?id=78189&skuId=412468&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412468', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412468_sa.jpg\"}', 'upc' => '075596080620', 'provider' => 'bestbuy'],\n ['name' => \"Fleetwood Mac - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fleetwood-mac-cd/412477.p?id=1535086&skuId=412477&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412477', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412477_sa.jpg\"}', 'upc' => '075992724128', 'provider' => 'bestbuy'],\n ['name' => \"Mystery to Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mystery-to-me-cd/412486.p?id=82441&skuId=412486&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412486', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4124\\/412486_sa.jpg\"}', 'upc' => '075992598224', 'provider' => 'bestbuy'],\n ['name' => \"Tango in the Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tango-in-the-night-cd/412495.p?id=82444&skuId=412495&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412495', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412495_sa.jpg\"}', 'upc' => '075992547123', 'provider' => 'bestbuy'],\n ['name' => \"The Nightfly - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-nightfly-cd/412510.p?id=81878&skuId=412510&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412510', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4125\\/412510_sa.jpg\"}', 'upc' => '075992369626', 'provider' => 'bestbuy'],\n ['name' => \"Faster Pussycat - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/faster-pussycat-cd/412529.p?id=81989&skuId=412529&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412529', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412529_sa.jpg\"}', 'upc' => '075596073028', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Dave Edmunds [Swan Song] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-dave-edmunds-swan-song-cd/412556.p?id=81320&skuId=412556&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412556', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4125\\/412556_sa.jpg\"}', 'upc' => '075679033826', 'provider' => 'bestbuy'],\n ['name' => \"Jonathan Edwards - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jonathan-edwards-cd/412583.p?id=81337&skuId=412583&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412583', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412583_sa.jpg\"}', 'upc' => '075679031020', 'provider' => 'bestbuy'],\n ['name' => \"Holy Diver - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/holy-diver-cd/412609.p?id=80498&skuId=412609&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412609', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4126\\/412609_sa.jpg\"}', 'upc' => '075992383622', 'provider' => 'bestbuy'],\n ['name' => \"Deepest Purple: The Very Best of Deep Purple - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/deepest-purple-the-very-best-of-deep-purple-cd/412636.p?id=80052&skuId=412636&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412636', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412636_sa.jpg\"}', 'upc' => '075992348621', 'provider' => 'bestbuy'],\n ['name' => \"Crossroads - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crossroads-cd-original-soundtrack/412654.p?id=79288&skuId=412654&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412654', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4126\\/412654_sa.jpg\"}', 'upc' => '075992539920', 'provider' => 'bestbuy'],\n ['name' => \"Déjà Vu - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/deja-vu-cd/412663.p?id=79272&skuId=412663&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412663', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412663_sa.jpg\"}', 'upc' => '075678264924', 'provider' => 'bestbuy'],\n ['name' => \"On the Border - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/on-the-border-cd/412681.p?id=81203&skuId=412681&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412681', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412681_sa.jpg\"}', 'upc' => '075596059527', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-vol-2-cd/412707.p?id=81198&skuId=412707&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412707', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4127\\/412707_sa.jpg\"}', 'upc' => '075596020527', 'provider' => 'bestbuy'],\n ['name' => \"One of These Nights - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-of-these-nights-cd/412716.p?id=81205&skuId=412716&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412716', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4127\\/412716_sa.jpg\"}', 'upc' => '075596060127', 'provider' => 'bestbuy'],\n ['name' => \"Eagles - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/eagles-cd/412725.p?id=81207&skuId=412725&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412725', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412725_sa.jpg\"}', 'upc' => '075596062329', 'provider' => 'bestbuy'],\n ['name' => \"Desperado - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/desperado-cd/412734.p?id=81197&skuId=412734&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412734', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4127\\/412734_sa.jpg\"}', 'upc' => '075596062725', 'provider' => 'bestbuy'],\n ['name' => \"Their Greatest Hits 1971-1975 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/their-greatest-hits-1971-1975-cd/412743.p?id=81209&skuId=412743&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412743', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4127\\/412743_sa.jpg\"}', 'upc' => '075596051125', 'provider' => 'bestbuy'],\n ['name' => \"Long Run - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/long-run-cd/412752.p?id=2640520&skuId=412752&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412752', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4127\\/412752.jpg\"}', 'upc' => '075596056021', 'provider' => 'bestbuy'],\n ['name' => \"Hotel California - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hotel-california-cd/412761.p?id=3356021&skuId=412761&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412761', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4127\\/412761_sa.jpg\"}', 'upc' => '075596050920', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/412798.p?id=1543573&skuId=412798&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412798', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412798_sa.jpg\"}', 'upc' => '081227812928', 'provider' => 'bestbuy'],\n ['name' => \"Billion Dollar Babies - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/billion-dollar-babies-cd/412805.p?id=78643&skuId=412805&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412805', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412805_sa.jpg\"}', 'upc' => '075992726924', 'provider' => 'bestbuy'],\n ['name' => \"No Jacket Required - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/no-jacket-required-cd/412814.p?id=78363&skuId=412814&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412814', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412814_sa.jpg\"}', 'upc' => '075678124020', 'provider' => 'bestbuy'],\n ['name' => \"Foreigner - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/foreigner-cd/412850.p?id=3165208&skuId=412850&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412850', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4128\\/412850.jpg\"}', 'upc' => '075678151125', 'provider' => 'bestbuy'],\n ['name' => \"Dr. John's Gumbo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dr-johns-gumbo-cd/412949.p?id=80886&skuId=412949&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412949', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412949_sa.jpg\"}', 'upc' => '075678039829', 'provider' => 'bestbuy'],\n ['name' => \"The Best of John Coltrane [Atlantic] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-john-coltrane-atlantic-cd/412976.p?id=65129&skuId=412976&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412976', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412976_sa.jpg\"}', 'upc' => '075678136627', 'provider' => 'bestbuy'],\n ['name' => \"Nighthawks at the Diner - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nighthawks-at-the-diner-cd/412994.p?id=103324&skuId=412994&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=412994', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0412\\/0412994_sa.jpg\"}', 'upc' => '075596062022', 'provider' => 'bestbuy'],\n ['name' => \"Alannah Myles - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alannah-myles-cd/413001.p?id=92750&skuId=413001&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413001', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4130\\/413001_sa.jpg\"}', 'upc' => '075678195624', 'provider' => 'bestbuy'],\n ['name' => \"Bella Donna - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => 3.99, 'url' => 'http://www.bestbuy.com/site/bella-donna-cd/413029.p?id=93300&skuId=413029&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413029', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4130\\/413029_sa.jpg\"}', 'upc' => '075679042729', 'provider' => 'bestbuy'],\n ['name' => \"The Wild Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-wild-heart-cd/413038.p?id=93303&skuId=413038&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413038', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4130\\/413038_sa.jpg\"}', 'upc' => '075679008428', 'provider' => 'bestbuy'],\n ['name' => \"Mike & The Mechanics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mike-the-mechanics-cd/413074.p?id=91698&skuId=413074&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413074', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0413\\/0413074_sa.jpg\"}', 'upc' => '075678128721', 'provider' => 'bestbuy'],\n ['name' => \"The Land of Rape and Honey - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-land-of-rape-and-honey-cd/413083.p?id=91824&skuId=413083&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413083', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4130\\/413083.jpg\"}', 'upc' => '075992579926', 'provider' => 'bestbuy'],\n ['name' => \"The Living Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-living-years-cd/413092.p?id=91697&skuId=413092&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413092', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0413\\/0413092_sa.jpg\"}', 'upc' => '075678192326', 'provider' => 'bestbuy'],\n ['name' => \"Conscious Party - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/conscious-party-cd/413109.p?id=2443809&skuId=413109&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413109', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4131\\/413109_sa.jpg\"}', 'upc' => '077778603825', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Manhattan Transfer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-manhattan-transfer-cd/413118.p?id=90375&skuId=413118&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413118', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4131\\/413118.jpg\"}', 'upc' => '075678158223', 'provider' => 'bestbuy'],\n ['name' => \"Montrose - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/montrose-cd/413127.p?id=92150&skuId=413127&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413127', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0413\\/0413127_sa.jpg\"}', 'upc' => '075992732925', 'provider' => 'bestbuy'],\n ['name' => \"Court and Spark - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/court-and-spark-cd/413136.p?id=91919&skuId=413136&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413136', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4131\\/413136_sa.jpg\"}', 'upc' => '075596059329', 'provider' => 'bestbuy'],\n ['name' => \"Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/blue-cd/413145.p?id=91916&skuId=413145&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413145', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0413\\/0413145_sa.jpg\"}', 'upc' => '075992719926', 'provider' => 'bestbuy'],\n ['name' => \"Into the Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/into-the-music-cd/413172.p?id=92312&skuId=413172&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413172', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4131\\/413172_sa.jpg\"}', 'upc' => '075992624824', 'provider' => 'bestbuy'],\n ['name' => \"The Lost Boys [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-lost-boys-original-soundtrack-cd-original-soundtrack/413181.p?id=89771&skuId=413181&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413181', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4131\\/413181_sa.jpg\"}', 'upc' => '075678176722', 'provider' => 'bestbuy'],\n ['name' => \"Feats Don't Fail Me Now - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/feats-dont-fail-me-now-cd/413190.p?id=89357&skuId=413190&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413190', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0413\\/0413190_sa.jpg\"}', 'upc' => '075992728423', 'provider' => 'bestbuy'],\n ['name' => \"Shadowland - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shadowland-cd/413305.p?id=88638&skuId=413305&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413305', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4133\\/413305.jpg\"}', 'upc' => '075992572422', 'provider' => 'bestbuy'],\n ['name' => \"Let Love Rule - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/let-love-rule-cd/413323.p?id=88423&skuId=413323&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413323', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0413\\/0413323_sa.jpg\"}', 'upc' => '077778612827', 'provider' => 'bestbuy'],\n ['name' => \"Attitude - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/attitude-cd/413387.p?id=102320&skuId=413387&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413387', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4133\\/413387_sa.jpg\"}', 'upc' => '075678203527', 'provider' => 'bestbuy'],\n ['name' => \"Astral Weeks - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/astral-weeks-cd/413421.p?id=92303&skuId=413421&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413421', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4134\\/413421_sa.jpg\"}', 'upc' => '075992717625', 'provider' => 'bestbuy'],\n ['name' => \"Winelight - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => 5.99, 'url' => 'http://www.bestbuy.com/site/winelight-cd/413430.p?id=71901&skuId=413430&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413430', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4134\\/413430_sa.jpg\"}', 'upc' => '075596055529', 'provider' => 'bestbuy'],\n ['name' => \"As We Speak - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/as-we-speak-cd/413476.p?id=70585&skuId=413476&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413476', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4134\\/413476_sa.jpg\"}', 'upc' => '075992365024', 'provider' => 'bestbuy'],\n ['name' => \"Giant Steps - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/giant-steps-cd/413494.p?id=176552&skuId=413494&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413494', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0413\\/0413494_sa.jpg\"}', 'upc' => '075678133725', 'provider' => 'bestbuy'],\n ['name' => \"The London Howlin' Wolf Sessions [Bonus Tracks] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-london-howlin-wolf-sessions-bonus-tracks-cd/413840.p?id=85873&skuId=413840&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413840', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0413\\/0413840_sa.jpg\"}', 'upc' => '076732929728', 'provider' => 'bestbuy'],\n ['name' => \"Hot Water - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hot-water-cd/413993.p?id=76270&skuId=413993&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=413993', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0413\\/0413993_sa.jpg\"}', 'upc' => '076742209322', 'provider' => 'bestbuy'],\n ['name' => \"Ridin' High - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ridin-high-cd/414028.p?id=103363&skuId=414028&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414028', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4140\\/414028_sa.jpg\"}', 'upc' => '076732092026', 'provider' => 'bestbuy'],\n ['name' => \"Legend - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/legend-cd/414117.p?id=95087&skuId=414117&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414117', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0414\\/0414117_sa.jpg\"}', 'upc' => '076731101927', 'provider' => 'bestbuy'],\n ['name' => \"Southern Accents - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/southern-accents-cd/414126.p?id=94825&skuId=414126&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414126', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4141\\/414126_sa.jpg\"}', 'upc' => '076732548622', 'provider' => 'bestbuy'],\n ['name' => \"Let Me Up (I've Had Enough) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/let-me-up-ive-had-enough-cd/414135.p?id=94822&skuId=414135&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414135', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0414\\/0414135_sa.jpg\"}', 'upc' => '076732583623', 'provider' => 'bestbuy'],\n ['name' => \"Heart Break - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heart-break-cd/414162.p?id=93124&skuId=414162&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414162', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4141\\/414162_sa.jpg\"}', 'upc' => '076742220723', 'provider' => 'bestbuy'],\n ['name' => \"Whoever's in New England - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/whoevers-in-new-england-cd/414171.p?id=91161&skuId=414171&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414171', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4141\\/414171_sa.jpg\"}', 'upc' => '076743130427', 'provider' => 'bestbuy'],\n ['name' => \"Legend - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/legend-cd/414215.p?id=90002&skuId=414215&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414215', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0414\\/0414215_sa.jpg\"}', 'upc' => '076742208424', 'provider' => 'bestbuy'],\n ['name' => \"Sweet Caroline - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sweet-caroline-cd/414297.p?id=80360&skuId=414297&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414297', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0414\\/0414297_sa.jpg\"}', 'upc' => '076731105024', 'provider' => 'bestbuy'],\n ['name' => \"The Smoker You Drink, the Player You Get - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-smoker-you-drink-the-player-you-get-cd/414322.p?id=103427&skuId=414322&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414322', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0414\\/0414322_sa.jpg\"}', 'upc' => '076731112121', 'provider' => 'bestbuy'],\n ['name' => \"Argus - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/argus-cd/414386.p?id=257657&skuId=414386&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414386', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4143\\/414386.jpg\"}', 'upc' => '008811023423', 'provider' => 'bestbuy'],\n ['name' => \"The 20 Greatest Hits: Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-20-greatest-hits-live-cd/414563.p?id=82755&skuId=414563&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414563', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4145\\/414563.jpg\"}', 'upc' => '715187731929', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/414581.p?id=82115&skuId=414581&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414581', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4145\\/414581_sa.jpg\"}', 'upc' => '715187733824', 'provider' => 'bestbuy'],\n ['name' => \"Hits Digitally Enhanced - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hits-digitally-enhanced-cd/414590.p?id=82762&skuId=414590&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414590', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4145\\/414590.jpg\"}', 'upc' => '715187730427', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-cd/414616.p?id=81747&skuId=414616&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414616', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4146\\/414616.jpg\"}', 'upc' => '715187731127', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-songs-cd/414634.p?id=79813&skuId=414634&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414634', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4146\\/414634_sa.jpg\"}', 'upc' => '715187727229', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/414652.p?id=93424&skuId=414652&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414652', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0414\\/0414652_sa.jpg\"}', 'upc' => '715187735729', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-curb-cd/414661.p?id=246243&skuId=414661&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414661', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4146\\/414661.jpg\"}', 'upc' => '715187737228', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Country Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-country-hits-cd/414670.p?id=93258&skuId=414670&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414670', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4146\\/414670_sa.jpg\"}', 'upc' => '715187736726', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/414698.p?id=89499&skuId=414698&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414698', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4146\\/414698.jpg\"}', 'upc' => '715187730229', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Steve & Eydie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-steve-eydie-cd/414723.p?id=88824&skuId=414723&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414723', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4147\\/414723.jpg\"}', 'upc' => '715187731622', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-cd/414732.p?id=88958&skuId=414732&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414732', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4147\\/414732.jpg\"}', 'upc' => '715187737921', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Country Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-country-hits-cd/414778.p?id=97134&skuId=414778&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414778', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0414\\/0414778_sa.jpg\"}', 'upc' => '715187735828', 'provider' => 'bestbuy'],\n ['name' => \"City to City - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/city-to-city-cd/414787.p?id=95814&skuId=414787&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414787', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0414\\/0414787_sa.jpg\"}', 'upc' => '077774604925', 'provider' => 'bestbuy'],\n ['name' => \"Unchained Melody [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => 4.99, 'url' => 'http://www.bestbuy.com/site/unchained-melody-curb-cd/414796.p?id=96700&skuId=414796&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414796', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4147\\/414796_sa.jpg\"}', 'upc' => '715187738126', 'provider' => 'bestbuy'],\n ['name' => \"Blue Jungle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-jungle-cd/414812.p?id=84578&skuId=414812&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414812', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0414\\/0414812_sa.jpg\"}', 'upc' => '715187731325', 'provider' => 'bestbuy'],\n ['name' => \"Billboard Top Rock & Roll Hits: 1969 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/billboard-top-rock-roll-hits-1969-cd-various/414821.p?id=74684&skuId=414821&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414821', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4148\\/414821_sa.jpg\"}', 'upc' => '081227063023', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Canned Heat [EMI] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-canned-heat-emi-cd/414830.p?id=76732&skuId=414830&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=414830', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0414\\/0414830_sa.jpg\"}', 'upc' => '077774837729', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/415072.p?id=73019&skuId=415072&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=415072', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4150\\/415072.jpg\"}', 'upc' => '715187740020', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/415081.p?id=104191&skuId=415081&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=415081', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4150\\/415081.jpg\"}', 'upc' => '715187726727', 'provider' => 'bestbuy'],\n ['name' => \"Paul Butterfield's Better Days - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/paul-butterfields-better-days-cd/415134.p?id=3356012&skuId=415134&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=415134', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0415\\/0415134_sa.jpg\"}', 'upc' => '081227087722', 'provider' => 'bestbuy'],\n ['name' => \"Bad Animals - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bad-animals-cd/415152.p?id=85107&skuId=415152&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=415152', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4151\\/415152_sa.jpg\"}', 'upc' => '077774667623', 'provider' => 'bestbuy'],\n ['name' => \"Dreamboat Annie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dreamboat-annie-cd/415161.p?id=85112&skuId=415161&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=415161', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0415\\/0415161_sa.jpg\"}', 'upc' => '077774649124', 'provider' => 'bestbuy'],\n ['name' => \"Paul'S Boutique - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pauls-boutique-cd/415385.p?id=2444169&skuId=415385&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=415385', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0415\\/0415385_sa.jpg\"}', 'upc' => '077779174324', 'provider' => 'bestbuy'],\n ['name' => \"Vixen [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vixen-remaster-cd/415394.p?id=1392423&skuId=415394&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=415394', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0415\\/0415394_sa.jpg\"}', 'upc' => '077774699129', 'provider' => 'bestbuy'],\n ['name' => \"Desolation Boulevard - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/desolation-boulevard-cd/415429.p?id=100976&skuId=415429&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=415429', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4154\\/415429.jpg\"}', 'upc' => '077774845229', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits 1974-78 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-1974-78-cd/415483.p?id=91737&skuId=415483&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=415483', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4154\\/415483.jpg\"}', 'upc' => '077774610124', 'provider' => 'bestbuy'],\n ['name' => \"Fly Like an Eagle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fly-like-an-eagle-cd/415492.p?id=91735&skuId=415492&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=415492', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0415\\/0415492_sa.jpg\"}', 'upc' => '077774647526', 'provider' => 'bestbuy'],\n ['name' => \"Proud Mary: The Best of Ike & Tina Turner - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/proud-mary-the-best-of-ike-tina-turner-cd/415580.p?id=102514&skuId=415580&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=415580', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0415\\/0415580_sa.jpg\"}', 'upc' => '077779584628', 'provider' => 'bestbuy'],\n ['name' => \"State of Euphoria [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/state-of-euphoria-pa-cd/415642.p?id=73130&skuId=415642&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=415642', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4156\\/415642_sa.jpg\"}', 'upc' => '042284236324', 'provider' => 'bestbuy'],\n ['name' => \"The Tonight Show Band, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-tonight-show-band-vol-2-cd/415884.p?id=71473&skuId=415884&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=415884', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0415\\/0415884_sa.jpg\"}', 'upc' => '051617331223', 'provider' => 'bestbuy'],\n ['name' => \"Obsession - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/obsession-cd/416393.p?id=67818&skuId=416393&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416393', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4163\\/416393_sa.jpg\"}', 'upc' => '075992549523', 'provider' => 'bestbuy'],\n ['name' => \"Double Vision - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/double-vision-cd/416419.p?id=67825&skuId=416419&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416419', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4164\\/416419_sa.jpg\"}', 'upc' => '075992539326', 'provider' => 'bestbuy'],\n ['name' => \"Information Society - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/information-society-cd/416473.p?id=86193&skuId=416473&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416473', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4164\\/416473_sa.jpg\"}', 'upc' => '075992569125', 'provider' => 'bestbuy'],\n ['name' => \"Freedom Of Speech - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/freedom-of-speech-cd/416482.p?id=86042&skuId=416482&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416482', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4164\\/416482_sa.jpg\"}', 'upc' => '075992602822', 'provider' => 'bestbuy'],\n ['name' => \"Faith Hope Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/faith-hope-love-cd/416507.p?id=88065&skuId=416507&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416507', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0416\\/0416507_sa.jpg\"}', 'upc' => '075678214523', 'provider' => 'bestbuy'],\n ['name' => \"Bellybutton - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bellybutton-cd/416570.p?id=86862&skuId=416570&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416570', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0416\\/0416570_sa.jpg\"}', 'upc' => '077778618621', 'provider' => 'bestbuy'],\n ['name' => \"Nothing's Shocking [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nothings-shocking-pa-cd/416589.p?id=86714&skuId=416589&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416589', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0416\\/0416589_sa.jpg\"}', 'upc' => '075992572729', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits (1987-90) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-1987-90-cd/416598.p?id=85365&skuId=416598&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416598', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4165\\/416598_sa.jpg\"}', 'upc' => '075992625326', 'provider' => 'bestbuy'],\n ['name' => \"Shortstop - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shortstop-cd/416623.p?id=85337&skuId=416623&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416623', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0416\\/0416623_sa.jpg\"}', 'upc' => '075596096423', 'provider' => 'bestbuy'],\n ['name' => \"Duets - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/duets-cd/416641.p?id=84860&skuId=416641&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416641', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4166\\/416641_sa.jpg\"}', 'upc' => '075992579124', 'provider' => 'bestbuy'],\n ['name' => \"Lalah Hathaway - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lalah-hathaway-cd/416650.p?id=84962&skuId=416650&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416650', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0416\\/0416650_sa.jpg\"}', 'upc' => '077778617426', 'provider' => 'bestbuy'],\n ['name' => \"Brand New Dance - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brand-new-dance-cd/416669.p?id=2389914&skuId=416669&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416669', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4166\\/416669_sa.jpg\"}', 'upc' => '075992630924', 'provider' => 'bestbuy'],\n ['name' => \"88 Elmira St. - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/88-elmira-st-cd/416703.p?id=83368&skuId=416703&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416703', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0416\\/0416703_sa.jpg\"}', 'upc' => '075596103220', 'provider' => 'bestbuy'],\n ['name' => \"Goddess - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/goddess-cd/416721.p?id=99392&skuId=416721&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416721', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4167\\/416721_sa.jpg\"}', 'upc' => '075679158529', 'provider' => 'bestbuy'],\n ['name' => \"Texas Tornados - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/texas-tornados-cd/416810.p?id=101503&skuId=416810&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416810', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0416\\/0416810_sa.jpg\"}', 'upc' => '075992625128', 'provider' => 'bestbuy'],\n ['name' => \"Souls of Black - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/souls-of-black-cd/416829.p?id=101485&skuId=416829&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416829', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4168\\/416829_sa.jpg\"}', 'upc' => '075678214325', 'provider' => 'bestbuy'],\n ['name' => \"In My Tribe - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-my-tribe-cd/416838.p?id=101411&skuId=416838&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416838', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0416\\/0416838_sa.jpg\"}', 'upc' => '075596073820', 'provider' => 'bestbuy'],\n ['name' => \"Little Creatures - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/little-creatures-cd/416865.p?id=101130&skuId=416865&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416865', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0416\\/0416865_sa.jpg\"}', 'upc' => '075992530521', 'provider' => 'bestbuy'],\n ['name' => \"More Songs About Buildings and Food - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/more-songs-about-buildings-and-food-cd/416874.p?id=1509002&skuId=416874&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416874', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0416\\/0416874_sa.jpg\"}', 'upc' => '075992742528', 'provider' => 'bestbuy'],\n ['name' => \"Remain in Light - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/remain-in-light-cd/416892.p?id=101134&skuId=416892&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416892', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0416\\/0416892_sa.jpg\"}', 'upc' => '075992609524', 'provider' => 'bestbuy'],\n ['name' => \"Speaking in Tongues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/speaking-in-tongues-cd/416909.p?id=101135&skuId=416909&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416909', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4169\\/416909_sa.jpg\"}', 'upc' => '075992388320', 'provider' => 'bestbuy'],\n ['name' => \"Keep on Movin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/keep-on-movin-cd/416981.p?id=99524&skuId=416981&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416981', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4169\\/416981.jpg\"}', 'upc' => '077778612223', 'provider' => 'bestbuy'],\n ['name' => \"Skid Row - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => 3.99, 'url' => 'http://www.bestbuy.com/site/skid-row-cd/416990.p?id=99054&skuId=416990&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=416990', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4169\\/416990.jpg\"}', 'upc' => '075678193620', 'provider' => 'bestbuy'],\n ['name' => \"Vision Thing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vision-thing-cd/417016.p?id=98977&skuId=417016&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417016', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417016_sa.jpg\"}', 'upc' => '075596101721', 'provider' => 'bestbuy'],\n ['name' => \"I Fell in Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-fell-in-love-cd/417025.p?id=76978&skuId=417025&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417025', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417025_sa.jpg\"}', 'upc' => '075992613927', 'provider' => 'bestbuy'],\n ['name' => \"Outside Looking In - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/outside-looking-in-cd/417061.p?id=75380&skuId=417061&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417061', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417061_sa.jpg\"}', 'upc' => '075992562928', 'provider' => 'bestbuy'],\n ['name' => \"Cosmic Thing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cosmic-thing-cd/417098.p?id=73549&skuId=417098&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417098', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4170\\/417098.jpg\"}', 'upc' => '075992585422', 'provider' => 'bestbuy'],\n ['name' => \"Rapture - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rapture-cd/417132.p?id=73743&skuId=417132&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417132', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417132_sa.jpg\"}', 'upc' => '075596044424', 'provider' => 'bestbuy'],\n ['name' => \"After 7 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/after-7-cd/417150.p?id=72579&skuId=417150&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417150', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4171\\/417150_sa.jpg\"}', 'upc' => '077778610427', 'provider' => 'bestbuy'],\n ['name' => \"East Of The Sun West Of The Moon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/east-of-the-sun-west-of-the-moon-cd/417169.p?id=1441817&skuId=417169&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417169', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417169_sa.jpg\"}', 'upc' => '075992631426', 'provider' => 'bestbuy'],\n ['name' => \"Forever Your Girl - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/forever-your-girl-cd/417178.p?id=72325&skuId=417178&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417178', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417178_sa.jpg\"}', 'upc' => '077778606727', 'provider' => 'bestbuy'],\n ['name' => \"3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/3-cd/417187.p?id=103179&skuId=417187&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417187', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4171\\/417187_sa.jpg\"}', 'upc' => '075992581929', 'provider' => 'bestbuy'],\n ['name' => \"Spellbound - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spellbound-cd/417196.p?id=70577&skuId=417196&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417196', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417196_sa.jpg\"}', 'upc' => '075992578127', 'provider' => 'bestbuy'],\n ['name' => \"Trio - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/trio-cd/417203.p?id=94471&skuId=417203&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417203', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417203_sa.jpg\"}', 'upc' => '075992549127', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Atlantic] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-atlantic-cd/417276.p?id=97450&skuId=417276&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417276', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417276_sa.jpg\"}', 'upc' => '075678219924', 'provider' => 'bestbuy'],\n ['name' => \"Eat 'Em and Smile - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/eat-em-and-smile-cd/417294.p?id=2390280&skuId=417294&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417294', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417294_sa.jpg\"}', 'upc' => '075992547024', 'provider' => 'bestbuy'],\n ['name' => \"Rude Awakening - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rude-awakening-cd/417301.p?id=97495&skuId=417301&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417301', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417301_sa.jpg\"}', 'upc' => '075678212123', 'provider' => 'bestbuy'],\n ['name' => \"Something Inside So Strong - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/something-inside-so-strong-cd/417329.p?id=97140&skuId=417329&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417329', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4173\\/417329_sa.jpg\"}', 'upc' => '075992579223', 'provider' => 'bestbuy'],\n ['name' => \"Brick by Brick - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brick-by-brick-cd/417347.p?id=95181&skuId=417347&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417347', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417347_sa.jpg\"}', 'upc' => '077778617327', 'provider' => 'bestbuy'],\n ['name' => \"What's New - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => 5.99, 'url' => 'http://www.bestbuy.com/site/whats-new-cd/417365.p?id=97297&skuId=417365&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417365', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417365_sa.jpg\"}', 'upc' => '075596026024', 'provider' => 'bestbuy'],\n ['name' => \"The Rembrandts - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-rembrandts-cd/417392.p?id=96418&skuId=417392&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417392', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417392_sa.jpg\"}', 'upc' => '075679141224', 'provider' => 'bestbuy'],\n ['name' => \"Auberge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/auberge-cd/417409.p?id=96133&skuId=417409&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417409', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4174\\/417409.jpg\"}', 'upc' => '075679166227', 'provider' => 'bestbuy'],\n ['name' => \"New York - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-york-cd/417418.p?id=96292&skuId=417418&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417418', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417418_sa.jpg\"}', 'upc' => '075992582926', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits So Far - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-so-far-cd/417427.p?id=2305014&skuId=417427&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417427', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417427_sa.jpg\"}', 'upc' => '077778619628', 'provider' => 'bestbuy'],\n ['name' => \"Purple Rain - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/purple-rain-cd/417454.p?id=95497&skuId=417454&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417454', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417454_sa.jpg\"}', 'upc' => '075992511025', 'provider' => 'bestbuy'],\n ['name' => \"The Blind Leading the Naked - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-blind-leading-the-naked-cd/417481.p?id=103183&skuId=417481&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417481', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4174\\/417481_sa.jpg\"}', 'upc' => '075992534024', 'provider' => 'bestbuy'],\n ['name' => \"Wicked Sensation - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wicked-sensation-cd/417604.p?id=89955&skuId=417604&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417604', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4176\\/417604_sa.jpg\"}', 'upc' => '075596095426', 'provider' => 'bestbuy'],\n ['name' => \"Missing... Presumed Having a Good Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/missing-presumed-having-a-good-time-cd/417668.p?id=93522&skuId=417668&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417668', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4176\\/417668_sa.jpg\"}', 'upc' => '075992614726', 'provider' => 'bestbuy'],\n ['name' => \"Still Got the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/still-got-the-blues-cd/417686.p?id=92220&skuId=417686&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417686', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4176\\/417686_sa.jpg\"}', 'upc' => '077778616726', 'provider' => 'bestbuy'],\n ['name' => \"Cowboy Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => 8.99, 'url' => 'http://www.bestbuy.com/site/cowboy-songs-cd/417711.p?id=92636&skuId=417711&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417711', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4177\\/417711_sa.jpg\"}', 'upc' => '075992630825', 'provider' => 'bestbuy'],\n ['name' => \"Lean Into It - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lean-into-it-cd/417720.p?id=92534&skuId=417720&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417720', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417720_sa.jpg\"}', 'upc' => '075678220920', 'provider' => 'bestbuy'],\n ['name' => \"A Day in the Life: A Pokadelick Adventure [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-day-in-the-life-a-pokadelick-adventure-pa-cd/417739.p?id=88469&skuId=417739&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417739', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417739_sa.jpg\"}', 'upc' => '075678210020', 'provider' => 'bestbuy'],\n ['name' => \"Mind Is A Terrible Thing To Taste - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mind-is-a-terrible-thing-to-taste-cd/417748.p?id=2416870&skuId=417748&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417748', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4177\\/417748_sa.jpg\"}', 'upc' => '075992600422', 'provider' => 'bestbuy'],\n ['name' => \"Brickyard Road - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brickyard-road-cd/417766.p?id=102953&skuId=417766&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417766', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417766_sa.jpg\"}', 'upc' => '075678211027', 'provider' => 'bestbuy'],\n ['name' => \"Old 8x10 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/old-8x10-cd/417784.p?id=102193&skuId=417784&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417784', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417784_sa.jpg\"}', 'upc' => '075992573825', 'provider' => 'bestbuy'],\n ['name' => \"No Holdin' Back - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/no-holdin-back-cd/417793.p?id=102192&skuId=417793&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417793', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4177\\/417793_sa.jpg\"}', 'upc' => '075992598828', 'provider' => 'bestbuy'],\n ['name' => \"Best Of Doobies - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-doobies-cd/417837.p?id=1548425&skuId=417837&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417837', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417837_sa.jpg\"}', 'upc' => '081227809621', 'provider' => 'bestbuy'],\n ['name' => \"The Five Heartbeats - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-five-heartbeats-cd-original-soundtrack/417846.p?id=82317&skuId=417846&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417846', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4178\\/417846.jpg\"}', 'upc' => '077778620822', 'provider' => 'bestbuy'],\n ['name' => \"World Clique - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/world-clique-cd/417962.p?id=80046&skuId=417962&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417962', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4179\\/417962_sa.jpg\"}', 'upc' => '075596095723', 'provider' => 'bestbuy'],\n ['name' => \"Wake Me When It's Over - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wake-me-when-its-over-cd/417980.p?id=81990&skuId=417980&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417980', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417980_sa.jpg\"}', 'upc' => '075596088329', 'provider' => 'bestbuy'],\n ['name' => \"Real Thing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/real-thing-cd/417999.p?id=81909&skuId=417999&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=417999', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0417\\/0417999_sa.jpg\"}', 'upc' => '075992587822', 'provider' => 'bestbuy'],\n ['name' => \"Spartacus - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spartacus-cd/418006.p?id=81974&skuId=418006&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418006', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0418\\/0418006_sa.jpg\"}', 'upc' => '075992660020', 'provider' => 'bestbuy'],\n ['name' => \"Wild! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wild-cd/418033.p?id=81660&skuId=418033&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418033', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0418\\/0418033_sa.jpg\"}', 'upc' => '075992602624', 'provider' => 'bestbuy'],\n ['name' => \"Dollars & Sex - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dollars-sex-cd/418042.p?id=81678&skuId=418042&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418042', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4180\\/418042.jpg\"}', 'upc' => '075678219825', 'provider' => 'bestbuy'],\n ['name' => \"Damn Yankees - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/damn-yankees-cd/418088.p?id=79641&skuId=418088&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418088', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0418\\/0418088_sa.jpg\"}', 'upc' => '075992615921', 'provider' => 'bestbuy'],\n ['name' => \"Floating into the Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/floating-into-the-night-cd/418122.p?id=79344&skuId=418122&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418122', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4181\\/418122_sa.jpg\"}', 'upc' => '075992585927', 'provider' => 'bestbuy'],\n ['name' => \"Rumours [ECD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rumours-ecd-cd/418177.p?id=82443&skuId=418177&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418177', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4181\\/418177_sa.jpg\"}', 'upc' => '075992731324', 'provider' => 'bestbuy'],\n ['name' => \"A View from 3rd Street - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-view-from-3rd-street-cd/418195.p?id=78250&skuId=418195&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418195', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0418\\/0418195_sa.jpg\"}', 'upc' => '075992616423', 'provider' => 'bestbuy'],\n ['name' => \"Minute by Minute - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/minute-by-minute-cd/418220.p?id=2387698&skuId=418220&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418220', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4182\\/418220_sa.jpg\"}', 'upc' => '075992735421', 'provider' => 'bestbuy'],\n ['name' => \"Freedom - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/freedom-cd/418266.p?id=105074&skuId=418266&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418266', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0418\\/0418266_sa.jpg\"}', 'upc' => '075992589925', 'provider' => 'bestbuy'],\n ['name' => \"Tonight's the Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tonights-the-night-cd/418275.p?id=105064&skuId=418275&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418275', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4182\\/418275_sa.jpg\"}', 'upc' => '075992722124', 'provider' => 'bestbuy'],\n ['name' => \"Comes a Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/comes-a-time-cd/418284.p?id=3286551&skuId=418284&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418284', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0418\\/0418284_sa.jpg\"}', 'upc' => '075992723527', 'provider' => 'bestbuy'],\n ['name' => \"Rust Never Sleeps - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/rust-never-sleeps-cd/418319.p?id=105068&skuId=418319&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418319', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4183\\/418319_sa.jpg\"}', 'upc' => '075992724920', 'provider' => 'bestbuy'],\n ['name' => \"Return - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/return-cd/418337.p?id=104433&skuId=418337&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418337', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4183\\/418337.jpg\"}', 'upc' => '075992616126', 'provider' => 'bestbuy'],\n ['name' => \"Labour of Love II - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/labour-of-love-ii-cd/418444.p?id=102714&skuId=418444&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418444', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4184\\/418444.jpg\"}', 'upc' => '077778614623', 'provider' => 'bestbuy'],\n ['name' => \"Twin Peaks [Original TV Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/twin-peaks-original-tv-soundtrack-cd-original-soundtrack/418453.p?id=102577&skuId=418453&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418453', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4184\\/418453_sa.jpg\"}', 'upc' => '075992631624', 'provider' => 'bestbuy'],\n ['name' => \"Anthology of Bread - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/anthology-of-bread-cd/418532.p?id=2305361&skuId=418532&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418532', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0418\\/0418532_sa.jpg\"}', 'upc' => '075596041423', 'provider' => 'bestbuy'],\n ['name' => \"Just Say Mao: Volume III of Just Say Yes - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/just-say-mao-volume-iii-of-just-say-yes-various-cd/418676.p?id=87521&skuId=418676&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418676', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4186\\/418676.jpg\"}', 'upc' => '075992594721', 'provider' => 'bestbuy'],\n ['name' => \"12\\\" Anthology - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/12-anthology-cd/418952.p?id=262611&skuId=418952&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418952', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0418\\/0418952_sa.jpg\"}', 'upc' => '067003004121', 'provider' => 'bestbuy'],\n ['name' => \"Suicidal Tendencies - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/suicidal-tendencies-cd/418961.p?id=2434664&skuId=418961&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=418961', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4189\\/418961.jpg\"}', 'upc' => '018663101125', 'provider' => 'bestbuy'],\n ['name' => \"Crossroads [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 48.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crossroads-box-cd/419238.p?id=77901&skuId=419238&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=419238', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0419\\/0419238_sa.jpg\"}', 'upc' => '042283526129', 'provider' => 'bestbuy'],\n ['name' => \"Star Time [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 48.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/star-time-box-cd/419256.p?id=75968&skuId=419256&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=419256', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0419\\/0419256_sa.jpg\"}', 'upc' => '042284910828', 'provider' => 'bestbuy'],\n ['name' => \"If This Bass Could Only Talk - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/if-this-bass-could-only-talk-cd/419318.p?id=64994&skuId=419318&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=419318', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4193\\/419318_sa.jpg\"}', 'upc' => '074644092325', 'provider' => 'bestbuy'],\n ['name' => \"Harry Connick, Jr. - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/harry-connick-jr-cd/419434.p?id=65228&skuId=419434&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=419434', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0419\\/0419434_sa.jpg\"}', 'upc' => '074644070224', 'provider' => 'bestbuy'],\n ['name' => \"Truth and Soul - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/truth-and-soul-cd/419522.p?id=82290&skuId=419522&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=419522', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4195\\/419522_sa.jpg\"}', 'upc' => '074644089127', 'provider' => 'bestbuy'],\n ['name' => \"Antics in the Forbidden Zone - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/antics-in-the-forbidden-zone-cd/419586.p?id=73102&skuId=419586&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=419586', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4195\\/419586_sa.jpg\"}', 'upc' => '074644681925', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/419602.p?id=97879&skuId=419602&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=419602', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4196\\/419602_sa.jpg\"}', 'upc' => '074643305020', 'provider' => 'bestbuy'],\n ['name' => \"Midnight To Midnight - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/midnight-to-midnight-cd/419684.p?id=95618&skuId=419684&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=419684', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0419\\/0419684_sa.jpg\"}', 'upc' => '074644046625', 'provider' => 'bestbuy'],\n ['name' => \"Yo! Bum Rush the Show [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/yo-bum-rush-the-show-pa-cd/419693.p?id=95635&skuId=419693&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=419693', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0419\\/0419693_sa.jpg\"}', 'upc' => '731452735720', 'provider' => 'bestbuy'],\n ['name' => \"Welcome Home - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/welcome-home-cd/419942.p?id=101857&skuId=419942&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=419942', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4199\\/419942_sa.jpg\"}', 'upc' => '074644031423', 'provider' => 'bestbuy'],\n ['name' => \"Licensed to Ill - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/licensed-to-ill-cd/420084.p?id=74158&skuId=420084&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=420084', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4200\\/420084_sa.jpg\"}', 'upc' => '731452735126', 'provider' => 'bestbuy'],\n ['name' => \"Time and Tide - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/time-and-tide-cd/420093.p?id=74022&skuId=420093&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=420093', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0420\\/0420093_sa.jpg\"}', 'upc' => '074644076721', 'provider' => 'bestbuy'],\n ['name' => \"The Great Adventures of Slick Rick [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-great-adventures-of-slick-rick-pa-cd/420164.p?id=99139&skuId=420164&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=420164', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4201\\/420164_sa.jpg\"}', 'upc' => '731452735928', 'provider' => 'bestbuy'],\n ['name' => \"Any Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/any-love-cd/420734.p?id=102962&skuId=420734&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=420734', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4207\\/420734_sa.jpg\"}', 'upc' => '074644430820', 'provider' => 'bestbuy'],\n ['name' => \"Super Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/super-hits-cd/420770.p?id=1643135&skuId=420770&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=420770', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4207\\/420770_sa.jpg\"}', 'upc' => '886970528429', 'provider' => 'bestbuy'],\n ['name' => \"The Innocent Age - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-innocent-age-cd/420832.p?id=82546&skuId=420832&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=420832', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4208\\/420832_sa.jpg\"}', 'upc' => '074643739320', 'provider' => 'bestbuy'],\n ['name' => \"Social Distortion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/social-distortion-cd/420903.p?id=99370&skuId=420903&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=420903', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0420\\/0420903_sa.jpg\"}', 'upc' => '074644605525', 'provider' => 'bestbuy'],\n ['name' => \"Who's Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/whos-greatest-hits-cd/420985.p?id=104025&skuId=420985&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=420985', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0420\\/0420985_sa.jpg\"}', 'upc' => '076732149621', 'provider' => 'bestbuy'],\n ['name' => \"Night Ranger's Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/night-rangers-greatest-hits-cd/421010.p?id=93319&skuId=421010&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421010', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4210\\/421010.jpg\"}', 'upc' => '076742230722', 'provider' => 'bestbuy'],\n ['name' => \"Miami Vice [Original TV Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/miami-vice-original-tv-soundtrack-cd-original-soundtrack/421029.p?id=91575&skuId=421029&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421029', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421029_sa.jpg\"}', 'upc' => '076732615027', 'provider' => 'bestbuy'],\n ['name' => \"Reba McEntire's Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reba-mcentires-greatest-hits-cd/421038.p?id=91144&skuId=421038&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421038', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421038_sa.jpg\"}', 'upc' => '076732597927', 'provider' => 'bestbuy'],\n ['name' => \"Skynyrd's Innyrds: Their Greatest Hits [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/skynyrds-innyrds-their-greatest-hits-pa-cd/421047.p?id=90013&skuId=421047&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421047', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4210\\/421047_sa.jpg\"}', 'upc' => '076742229320', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-vol-1-cd/421065.p?id=93736&skuId=421065&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421065', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4210\\/421065.jpg\"}', 'upc' => '076732515020', 'provider' => 'bestbuy'],\n ['name' => \"Out of Africa [Original Motion Picture... - Original Soundtrack - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/out-of-africa-original-motion-picture-original-soundtrack-cd/421092.p?id=2069184&skuId=421092&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421092', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421092_sa.jpg\"}', 'upc' => '076732615829', 'provider' => 'bestbuy'],\n ['name' => \"The Continuing Story of Radar Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-continuing-story-of-radar-love-cd/421243.p?id=83787&skuId=421243&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421243', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421243_sa.jpg\"}', 'upc' => '076732635520', 'provider' => 'bestbuy'],\n ['name' => \"Guy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/guy-cd/421289.p?id=84494&skuId=421289&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421289', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4212\\/421289_sa.jpg\"}', 'upc' => '076742217624', 'provider' => 'bestbuy'],\n ['name' => \"Standing Hampton - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/standing-hampton-cd/421298.p?id=84556&skuId=421298&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421298', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421298_sa.jpg\"}', 'upc' => '720642200629', 'provider' => 'bestbuy'],\n ['name' => \"One Fair Summer Evening - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-fair-summer-evening-cd/421314.p?id=84276&skuId=421314&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421314', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421314_sa.jpg\"}', 'upc' => '076742225520', 'provider' => 'bestbuy'],\n ['name' => \"Storms - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/storms-cd/421323.p?id=84279&skuId=421323&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421323', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421323_sa.jpg\"}', 'upc' => '076732631928', 'provider' => 'bestbuy'],\n ['name' => \"Asia - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/asia-cd/421387.p?id=73329&skuId=421387&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421387', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421387_sa.jpg\"}', 'upc' => '720642200827', 'provider' => 'bestbuy'],\n ['name' => \"Don't Be Cruel - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dont-be-cruel-cd/421396.p?id=75878&skuId=421396&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421396', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4213\\/421396_sa.jpg\"}', 'upc' => '076742218522', 'provider' => 'bestbuy'],\n ['name' => \"Living and Dying in 3/4 Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/living-and-dying-in-3-4-time-cd/421412.p?id=76272&skuId=421412&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421412', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4214\\/421412_sa.jpg\"}', 'upc' => '076731105925', 'provider' => 'bestbuy'],\n ['name' => \"Changes in Latitudes, Changes in Attitudes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/changes-in-latitudes-changes-in-attitudes-cd/421458.p?id=76263&skuId=421458&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421458', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4214\\/421458_sa.jpg\"}', 'upc' => '076731107028', 'provider' => 'bestbuy'],\n ['name' => \"Son of a Son of a Sailor - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/son-of-a-son-of-a-sailor-cd/421467.p?id=76279&skuId=421467&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421467', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4214\\/421467_sa.jpg\"}', 'upc' => '076731109121', 'provider' => 'bestbuy'],\n ['name' => \"Songs You Know by Heart: Jimmy... [ECD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/songs-you-know-by-heart-jimmy-ecd-cd/421476.p?id=76280&skuId=421476&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421476', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4214\\/421476_sa.jpg\"}', 'upc' => '076732563328', 'provider' => 'bestbuy'],\n ['name' => \"A-1-A - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-1-a-cd/421485.p?id=76259&skuId=421485&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421485', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4214\\/421485_sa.jpg\"}', 'upc' => '076732159026', 'provider' => 'bestbuy'],\n ['name' => \"Third Stage - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/third-stage-cd/421519.p?id=75607&skuId=421519&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421519', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421519_sa.jpg\"}', 'upc' => '076732618820', 'provider' => 'bestbuy'],\n ['name' => \"One Thing Leads to Another: Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-thing-leads-to-another-greatest-hits-cd/421555.p?id=257430&skuId=421555&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421555', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4215\\/421555_sa.jpg\"}', 'upc' => '076742231620', 'provider' => 'bestbuy'],\n ['name' => \"Guitar Town - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/guitar-town-cd/421573.p?id=2168710&skuId=421573&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421573', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4215\\/421573_sa.jpg\"}', 'upc' => '076743130526', 'provider' => 'bestbuy'],\n ['name' => \"Slide It In - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/slide-it-in-cd/421671.p?id=103886&skuId=421671&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421671', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421671_sa.jpg\"}', 'upc' => '720642401828', 'provider' => 'bestbuy'],\n ['name' => \"To Live and Die in L.A. [Original Motion... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/to-live-and-die-in-l-a-original-motion-cd-original-soundtrack/421680.p?id=101928&skuId=421680&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421680', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4216\\/421680.jpg\"}', 'upc' => '720642408124', 'provider' => 'bestbuy'],\n ['name' => \"Ocean Front Property - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ocean-front-property-cd/421706.p?id=100547&skuId=421706&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421706', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4217\\/421706_sa.jpg\"}', 'upc' => '076732591321', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-vol-2-cd/421715.p?id=100541&skuId=421715&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421715', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421715_sa.jpg\"}', 'upc' => '076744203526', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/421724.p?id=100540&skuId=421724&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421724', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421724_sa.jpg\"}', 'upc' => '076732556726', 'provider' => 'bestbuy'],\n ['name' => \"Up to Here - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/up-to-here-cd/421779.p?id=257176&skuId=421779&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421779', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421779_sa.jpg\"}', 'upc' => '076732631027', 'provider' => 'bestbuy'],\n ['name' => \"Quarterflash: Limited - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/quarterflash-limited-cd/421788.p?id=95693&skuId=421788&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421788', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4217\\/421788.jpg\"}', 'upc' => '720642200322', 'provider' => 'bestbuy'],\n ['name' => \"Dead Man's Party - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dead-mans-party-cd/421804.p?id=93832&skuId=421804&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421804', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4218\\/421804_sa.jpg\"}', 'upc' => '076732566527', 'provider' => 'bestbuy'],\n ['name' => \"Color Rit - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/color-rit-cd/421886.p?id=70348&skuId=421886&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421886', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421886_sa.jpg\"}', 'upc' => '011105959421', 'provider' => 'bestbuy'],\n ['name' => \"Stolen Moments - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stolen-moments-cd/421895.p?id=70357&skuId=421895&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421895', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4218\\/421895_sa.jpg\"}', 'upc' => '011105961523', 'provider' => 'bestbuy'],\n ['name' => \"Moonlighting - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moonlighting-cd/421911.p?id=70341&skuId=421911&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421911', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4219\\/421911_sa.jpg\"}', 'upc' => '011105960526', 'provider' => 'bestbuy'],\n ['name' => \"Tourist in Paradise - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tourist-in-paradise-cd/421920.p?id=70342&skuId=421920&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421920', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421920_sa.jpg\"}', 'upc' => '011105958820', 'provider' => 'bestbuy'],\n ['name' => \"Road to Hell - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/road-to-hell-cd/421948.p?id=96137&skuId=421948&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421948', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0421\\/0421948_sa.jpg\"}', 'upc' => '075679173324', 'provider' => 'bestbuy'],\n ['name' => \"Pure Schuur - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pure-schuur-cd/421975.p?id=70691&skuId=421975&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=421975', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4219\\/421975.jpg\"}', 'upc' => '011105962827', 'provider' => 'bestbuy'],\n ['name' => \"After The Rain - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/after-the-rain-cd/422091.p?id=92981&skuId=422091&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422091', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422091_sa.jpg\"}', 'upc' => '720642429020', 'provider' => 'bestbuy'],\n ['name' => \"Live at the Apollo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-the-apollo-cd/422206.p?id=87926&skuId=422206&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422206', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4222\\/422206_sa.jpg\"}', 'upc' => '011105963725', 'provider' => 'bestbuy'],\n ['name' => \"Personal - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/personal-cd/422251.p?id=67627&skuId=422251&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422251', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422251_sa.jpg\"}', 'upc' => '076732633526', 'provider' => 'bestbuy'],\n ['name' => \"Migration - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/migration-cd/422279.p?id=67013&skuId=422279&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422279', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422279_sa.jpg\"}', 'upc' => '011105959223', 'provider' => 'bestbuy'],\n ['name' => \"The Future - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-future-cd/422288.p?id=84495&skuId=422288&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422288', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4222\\/422288_sa.jpg\"}', 'upc' => '008811011529', 'provider' => 'bestbuy'],\n ['name' => \"When I Call Your Name - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/when-i-call-your-name-cd/422359.p?id=83628&skuId=422359&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422359', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422359_sa.jpg\"}', 'upc' => '076742232122', 'provider' => 'bestbuy'],\n ['name' => \"Johnny Gill - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/johnny-gill-cd/422386.p?id=83618&skuId=422386&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422386', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4223\\/422386_sa.jpg\"}', 'upc' => '737463628327', 'provider' => 'bestbuy'],\n ['name' => \"Building the Perfect Beast - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/building-the-perfect-beast-cd/422411.p?id=85239&skuId=422411&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422411', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4224\\/422411.jpg\"}', 'upc' => '720642402627', 'provider' => 'bestbuy'],\n ['name' => \"Happy Anniversary, Charlie Brown! - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/happy-anniversary-charlie-brown-cd-various/422439.p?id=67177&skuId=422439&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422439', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422439_sa.jpg\"}', 'upc' => '011105959629', 'provider' => 'bestbuy'],\n ['name' => \"Heart of Stone - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heart-of-stone-cd/422448.p?id=77369&skuId=422448&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422448', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4224\\/422448_sa.jpg\"}', 'upc' => '720642423929', 'provider' => 'bestbuy'],\n ['name' => \"Ralph Tresvant - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ralph-tresvant-cd/422466.p?id=102223&skuId=422466&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422466', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422466_sa.jpg\"}', 'upc' => '008811011628', 'provider' => 'bestbuy'],\n ['name' => \"Cats [Selections from the Orig. Broadway] - CD - Original Broadway Cast\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cats-selections-from-the-orig-broadway-cd-original-broadway-cast/422475.p?id=2066571&skuId=422475&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422475', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422475_sa.jpg\"}', 'upc' => '731452146229', 'provider' => 'bestbuy'],\n ['name' => \"Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/collection-cd/422509.p?id=64821&skuId=422509&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422509', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4225\\/422509_sa.jpg\"}', 'upc' => '011105961127', 'provider' => 'bestbuy'],\n ['name' => \"Red Moon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/red-moon-cd/422527.p?id=257286&skuId=422527&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422527', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4225\\/422527.jpg\"}', 'upc' => '008811003326', 'provider' => 'bestbuy'],\n ['name' => \"Shooting Rubberbands at the Stars - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shooting-rubberbands-at-the-stars-cd/422545.p?id=75829&skuId=422545&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422545', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422545_sa.jpg\"}', 'upc' => '720642419229', 'provider' => 'bestbuy'],\n ['name' => \"Dance!...Ya Know It! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dance-ya-know-it-cd/422563.p?id=75877&skuId=422563&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422563', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422563_sa.jpg\"}', 'upc' => '076732634226', 'provider' => 'bestbuy'],\n ['name' => \"Then & Now - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/then-now-cd/422581.p?id=73332&skuId=422581&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422581', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4225\\/422581_sa.jpg\"}', 'upc' => '720642429822', 'provider' => 'bestbuy'],\n ['name' => \"Inner Motion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/inner-motion-cd/422634.p?id=64156&skuId=422634&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422634', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4226\\/422634_sa.jpg\"}', 'upc' => '011105962124', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Berlin 1979-1988 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-berlin-1979-1988-cd/422643.p?id=74482&skuId=422643&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422643', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422643_sa.jpg\"}', 'upc' => '720642418727', 'provider' => 'bestbuy'],\n ['name' => \"Livin' It Up - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/livin-it-up-cd/422723.p?id=100544&skuId=422723&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422723', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422723_sa.jpg\"}', 'upc' => '076732641521', 'provider' => 'bestbuy'],\n ['name' => \"Reading, Writing and Arithmetic - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reading-writing-and-arithmetic-cd/422750.p?id=100833&skuId=422750&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422750', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422750_sa.jpg\"}', 'upc' => '720642427729', 'provider' => 'bestbuy'],\n ['name' => \"Go West Young Man - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/go-west-young-man-cd/422796.p?id=99225&skuId=422796&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422796', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4227\\/422796_sa.jpg\"}', 'upc' => '012414920324', 'provider' => 'bestbuy'],\n ['name' => \"Mechanical Resonance - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mechanical-resonance-cd/422803.p?id=101476&skuId=422803&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422803', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422803_sa.jpg\"}', 'upc' => '720642412022', 'provider' => 'bestbuy'],\n ['name' => \"Edward Scissorhands [Original Motion Picture... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/edward-scissorhands-original-motion-picture-cd-original-soundtrack/422876.p?id=81341&skuId=422876&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422876', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422876_sa.jpg\"}', 'upc' => '008811013325', 'provider' => 'bestbuy'],\n ['name' => \"Let the Rhythm Hit 'Em - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/let-the-rhythm-hit-em-cd/422894.p?id=81665&skuId=422894&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422894', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4228\\/422894_sa.jpg\"}', 'upc' => '076732641620', 'provider' => 'bestbuy'],\n ['name' => \"The Hard Way - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-hard-way-cd/422910.p?id=1446310&skuId=422910&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422910', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4229\\/422910.jpg\"}', 'upc' => '076732643020', 'provider' => 'bestbuy'],\n ['name' => \"Ten - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ten-cd/422974.p?id=2231322&skuId=422974&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422974', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0422\\/0422974_sa.jpg\"}', 'upc' => '720642428320', 'provider' => 'bestbuy'],\n ['name' => \"Whitesnake - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/whitesnake-cd/422983.p?id=103889&skuId=422983&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=422983', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4229\\/422983_sa.jpg\"}', 'upc' => '720642409923', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Delaney & Bonnie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-delaney-bonnie-cd/423143.p?id=80138&skuId=423143&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423143', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4231\\/423143_sa.jpg\"}', 'upc' => '081227077723', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Foghat [1989] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/the-best-of-foghat-1989-cd/423170.p?id=82556&skuId=423170&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423170', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0423\\/0423170_sa.jpg\"}', 'upc' => '081227008826', 'provider' => 'bestbuy'],\n ['name' => \"Cadence Classics: Their 20 Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cadence-classics-their-20-greatest-hits-cd/423205.p?id=81750&skuId=423205&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423205', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4232\\/423205.jpg\"}', 'upc' => '081227525828', 'provider' => 'bestbuy'],\n ['name' => \"I Do Not Want What I Haven't Got - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-do-not-want-what-i-havent-got-cd/423358.p?id=93669&skuId=423358&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423358', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4233\\/423358_sa.jpg\"}', 'upc' => '094632175922', 'provider' => 'bestbuy'],\n ['name' => \"I'M With You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/im-with-you-cd/423367.p?id=91060&skuId=423367&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423367', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4233\\/423367_sa.jpg\"}', 'upc' => '715187725225', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Delbert McClinton - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-delbert-mcclinton-cd/423376.p?id=91056&skuId=423376&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423376', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4233\\/423376.jpg\"}', 'upc' => '715187741522', 'provider' => 'bestbuy'],\n ['name' => \"Ah Via Musicom - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ah-via-musicom-cd/423571.p?id=87110&skuId=423571&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423571', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0423\\/0423571_sa.jpg\"}', 'upc' => '077779051724', 'provider' => 'bestbuy'],\n ['name' => \"Freeze Frame - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/freeze-frame-cd/423697.p?id=83446&skuId=423697&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423697', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4236\\/423697.jpg\"}', 'upc' => '077774601429', 'provider' => 'bestbuy'],\n ['name' => \"More of the Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/more-of-the-night-cd/423704.p?id=103865&skuId=423704&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423704', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4237\\/423704_sa.jpg\"}', 'upc' => '077779295722', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/423731.p?id=158582&skuId=423731&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423731', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4237\\/423731.jpg\"}', 'upc' => '715187757820', 'provider' => 'bestbuy'],\n ['name' => \"Buick - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/buick-cd/423759.p?id=97975&skuId=423759&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423759', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4237\\/423759.jpg\"}', 'upc' => '715187757622', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Marie Osmond - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-marie-osmond-cd/423768.p?id=94136&skuId=423768&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423768', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4237\\/423768_sa.jpg\"}', 'upc' => '715187726321', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/423786.p?id=98176&skuId=423786&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423786', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4237\\/423786_sa.jpg\"}', 'upc' => '077779575725', 'provider' => 'bestbuy'],\n ['name' => \"Operation: Mindcrime - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/operation-mindcrime-cd/423820.p?id=243537&skuId=423820&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423820', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0423\\/0423820_sa.jpg\"}', 'upc' => '077774864022', 'provider' => 'bestbuy'],\n ['name' => \"The Boys Are Back - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-boys-are-back-cd/423848.p?id=97982&skuId=423848&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423848', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4238\\/423848_sa.jpg\"}', 'upc' => '715187757721', 'provider' => 'bestbuy'],\n ['name' => \"Right Down the Line: The Best of Gerry Rafferty - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 6.99, 'url' => 'http://www.bestbuy.com/site/right-down-the-line-the-best-of-gerry-rafferty-cd/423884.p?id=95816&skuId=423884&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423884', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4238\\/423884.jpg\"}', 'upc' => '077779326426', 'provider' => 'bestbuy'],\n ['name' => \"The Miracle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-miracle-cd/423893.p?id=95716&skuId=423893&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=423893', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4238\\/423893_sa.jpg\"}', 'upc' => '720616123428', 'provider' => 'bestbuy'],\n ['name' => \"Loud Plowed & Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/loud-plowed-live-cd/424035.p?id=74166&skuId=424035&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=424035', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4240\\/424035_sa.jpg\"}', 'upc' => '715187726529', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Badfinger, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-badfinger-vol-2-cd/424044.p?id=73681&skuId=424044&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=424044', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4240\\/424044.jpg\"}', 'upc' => '081227097820', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Rhino] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-rhino-cd/424106.p?id=101652&skuId=424106&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=424106', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0424\\/0424106_sa.jpg\"}', 'upc' => '081227075224', 'provider' => 'bestbuy'],\n ['name' => \"Born to Be Bad - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/born-to-be-bad-cd/424133.p?id=101742&skuId=424133&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=424133', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4241\\/424133_sa.jpg\"}', 'upc' => '077774697323', 'provider' => 'bestbuy'],\n ['name' => \"Natural History 1982-1988 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/natural-history-1982-1988-cd/424188.p?id=101124&skuId=424188&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=424188', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4241\\/424188.jpg\"}', 'upc' => '077779397624', 'provider' => 'bestbuy'],\n ['name' => \"Rumor and Sigh - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rumor-and-sigh-cd/424259.p?id=101697&skuId=424259&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=424259', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4242\\/424259.jpg\"}', 'upc' => '077779571321', 'provider' => 'bestbuy'],\n ['name' => \"Past The Point Of Rescue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/past-the-point-of-rescue-cd/424295.p?id=87783&skuId=424295&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=424295', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4242\\/424295.jpg\"}', 'upc' => '715187745025', 'provider' => 'bestbuy'],\n ['name' => \"Ain't No Shame in My Game - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aint-no-shame-in-my-game-cd/424375.p?id=76728&skuId=424375&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=424375', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4243\\/424375.jpg\"}', 'upc' => '074644694727', 'provider' => 'bestbuy'],\n ['name' => \"Barbra Streisand's Greatest Hits, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/barbra-streisands-greatest-hits-vol-2-cd/424623.p?id=100598&skuId=424623&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=424623', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4246\\/424623_sa.jpg\"}', 'upc' => '074643567923', 'provider' => 'bestbuy'],\n ['name' => \"State of the Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/state-of-the-heart-cd/424641.p?id=76910&skuId=424641&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=424641', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0424\\/0424641_sa.jpg\"}', 'upc' => '074644422825', 'provider' => 'bestbuy'],\n ['name' => \"Shooting Straight in the Dark - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shooting-straight-in-the-dark-cd/424650.p?id=76909&skuId=424650&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=424650', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4246\\/424650_sa.jpg\"}', 'upc' => '074644607727', 'provider' => 'bestbuy'],\n ['name' => \"The Disregard of Timekeeping - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-disregard-of-timekeeping-cd/424703.p?id=75484&skuId=424703&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=424703', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0424\\/0424703_sa.jpg\"}', 'upc' => '074644500929', 'provider' => 'bestbuy'],\n ['name' => \"Violin Sonatas (Comp) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/violin-sonatas-comp-cd/424758.p?id=1692293&skuId=424758&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=424758', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4247\\/424758.jpg\"}', 'upc' => '074644581928', 'provider' => 'bestbuy'],\n ['name' => \"It Takes a Nation of Millions to... [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/it-takes-a-nation-of-millions-to-pa-cd/424838.p?id=95633&skuId=424838&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=424838', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4248\\/424838.jpg\"}', 'upc' => '731452735829', 'provider' => 'bestbuy'],\n ['name' => \"12 Greatest Hits, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/12-greatest-hits-vol-2-cd/425203.p?id=80333&skuId=425203&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=425203', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4252\\/425203_sa.jpg\"}', 'upc' => '074643806824', 'provider' => 'bestbuy'],\n ['name' => \"Business as Usual [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/business-as-usual-pa-cd/425249.p?id=81644&skuId=425249&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=425249', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4252\\/425249_sa.jpg\"}', 'upc' => '731452351029', 'provider' => 'bestbuy'],\n ['name' => \"Steady On - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/steady-on-cd/425383.p?id=78412&skuId=425383&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=425383', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4253\\/425383_sa.jpg\"}', 'upc' => '074644520927', 'provider' => 'bestbuy'],\n ['name' => \"RVS III - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rvs-iii-cd/425436.p?id=102948&skuId=425436&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=425436', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4254\\/425436_sa.jpg\"}', 'upc' => '074644525021', 'provider' => 'bestbuy'],\n ['name' => \"Alive! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alive-cd/425542.p?id=263458&skuId=425542&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=425542', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4255\\/425542.jpg\"}', 'upc' => '042282278029', 'provider' => 'bestbuy'],\n ['name' => \"Oedipus Tex & Other Choral Calamities - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/oedipus-tex-other-choral-calamities-cd/427096.p?id=276534&skuId=427096&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427096', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0427\\/0427096_sa.jpg\"}', 'upc' => '089408023927', 'provider' => 'bestbuy'],\n ['name' => \"Legendary Oscar Peterson Trio Live at the... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/legendary-oscar-peterson-trio-live-at-the-cd/427112.p?id=69962&skuId=427112&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427112', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0427\\/0427112_sa.jpg\"}', 'upc' => '089408330421', 'provider' => 'bestbuy'],\n ['name' => \"Ringo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ringo-cd/427292.p?id=100130&skuId=427292&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427292', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4272\\/427292.jpg\"}', 'upc' => '077779563722', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Chet Baker Sings - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-chet-baker-sings-cd/427390.p?id=63887&skuId=427390&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427390', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4273\\/427390.jpg\"}', 'upc' => '077779293223', 'provider' => 'bestbuy'],\n ['name' => \"Steve Miller Band: Live! [Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/steve-miller-band-live-capitol-cd/427540.p?id=91742&skuId=427540&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427540', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0427\\/0427540_sa.jpg\"}', 'upc' => '077779131525', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Don McLean [EMI 1988] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-don-mclean-emi-1988-cd/427577.p?id=91239&skuId=427577&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427577', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4275\\/427577.jpg\"}', 'upc' => '077779147625', 'provider' => 'bestbuy'],\n ['name' => \"Picture This - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/picture-this-cd/427639.p?id=1367053&skuId=427639&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427639', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4276\\/427639_sa.jpg\"}', 'upc' => '094632134028', 'provider' => 'bestbuy'],\n ['name' => \"The Singles Collection\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-singles-collection/427657.p?id=99809&skuId=427657&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427657', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4276\\/427657_sa.jpg\"}', 'upc' => '094632182326', 'provider' => 'bestbuy'],\n ['name' => \"Distance - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/distance-cd/427764.p?id=98300&skuId=427764&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427764', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4277\\/427764_sa.jpg\"}', 'upc' => '077774600521', 'provider' => 'bestbuy'],\n ['name' => \"The Abbey Road EP - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-abbey-road-ep-cd/427782.p?id=96186&skuId=427782&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427782', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4277\\/427782_sa.jpg\"}', 'upc' => '077779086924', 'provider' => 'bestbuy'],\n ['name' => \"The Power Station - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-power-station-cd/427817.p?id=2444207&skuId=427817&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427817', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4278\\/427817.jpg\"}', 'upc' => '077774612722', 'provider' => 'bestbuy'],\n ['name' => \"Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heart-cd/427880.p?id=2393445&skuId=427880&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427880', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0427\\/0427880_sa.jpg\"}', 'upc' => '077774615723', 'provider' => 'bestbuy'],\n ['name' => \"Magic Touch - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/magic-touch-cd/427915.p?id=68114&skuId=427915&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427915', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4279\\/427915_sa.jpg\"}', 'upc' => '077774609227', 'provider' => 'bestbuy'],\n ['name' => \"The Capitol Collectors Series - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-capitol-collectors-series-cd/427951.p?id=88077&skuId=427951&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427951', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0427\\/0427951_sa.jpg\"}', 'upc' => '077779271023', 'provider' => 'bestbuy'],\n ['name' => \"Whiplash Smile (Holiday) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/whiplash-smile-holiday-cd/427960.p?id=3391602&skuId=427960&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=427960', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '762185116821', 'provider' => 'bestbuy'],\n ['name' => \"Original Masters - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/original-masters-cd/428004.p?id=86947&skuId=428004&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428004', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0428\\/0428004_sa.jpg\"}', 'upc' => '094632151520', 'provider' => 'bestbuy'],\n ['name' => \"Crowded House - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crowded-house-cd/428102.p?id=79318&skuId=428102&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428102', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4281\\/428102.jpg\"}', 'upc' => '077774669320', 'provider' => 'bestbuy'],\n ['name' => \"Cocker - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cocker-cd/428120.p?id=1993642&skuId=428120&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428120', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '077774626828', 'provider' => 'bestbuy'],\n ['name' => \"Go West - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/go-west-cd/428184.p?id=2393502&skuId=428184&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428184', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4281\\/428184_sa.jpg\"}', 'upc' => '094632149527', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Doug & Rusty Kershaw - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-doug-rusty-kershaw-cd/428200.p?id=87775&skuId=428200&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428200', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4282\\/428200_sa.jpg\"}', 'upc' => '715187745629', 'provider' => 'bestbuy'],\n ['name' => \"Pickin' on Nashville - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pickin-on-nashville-cd/428219.p?id=87763&skuId=428219&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428219', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4282\\/428219.jpg\"}', 'upc' => '042283874428', 'provider' => 'bestbuy'],\n ['name' => \"Control - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/control-cd/428228.p?id=86477&skuId=428228&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428228', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4282\\/428228_sa.jpg\"}', 'upc' => '075021390522', 'provider' => 'bestbuy'],\n ['name' => \"You Won't Forget Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/you-wont-forget-me-cd/428237.p?id=67605&skuId=428237&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428237', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0428\\/0428237_sa.jpg\"}', 'upc' => '042284748223', 'provider' => 'bestbuy'],\n ['name' => \"Grease [The Soundtrack from the... [ECD] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/grease-the-soundtrack-from-the-ecd-cd-original-soundtrack/428255.p?id=84120&skuId=428255&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428255', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0428\\/0428255_sa.jpg\"}', 'upc' => '042282509529', 'provider' => 'bestbuy'],\n ['name' => \"Sticking To My Guns - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sticking-to-my-guns-cd/428282.p?id=86636&skuId=428282&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428282', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0428\\/0428282_sa.jpg\"}', 'upc' => '042284292627', 'provider' => 'bestbuy'],\n ['name' => \"Mall - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mall-cd/428335.p?id=2631651&skuId=428335&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428335', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4283\\/428335.jpg\"}', 'upc' => '042284912426', 'provider' => 'bestbuy'],\n ['name' => \"Back in the High Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/back-in-the-high-life-cd/428344.p?id=104538&skuId=428344&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428344', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4283\\/428344_sa.jpg\"}', 'upc' => '042283014824', 'provider' => 'bestbuy'],\n ['name' => \"Temple of the Dog - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/temple-of-the-dog-cd/428406.p?id=101372&skuId=428406&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428406', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4284\\/428406_sa.jpg\"}', 'upc' => '075021535022', 'provider' => 'bestbuy'],\n ['name' => \"Classics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classics-cd/428433.p?id=100875&skuId=428433&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428433', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0428\\/0428433_sa.jpg\"}', 'upc' => '075021250727', 'provider' => 'bestbuy'],\n ['name' => \"The Dream of the Blue Turtles [ECD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-dream-of-the-blue-turtles-ecd-cd/428460.p?id=100470&skuId=428460&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428460', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0428\\/0428460_sa.jpg\"}', 'upc' => '075021375024', 'provider' => 'bestbuy'],\n ['name' => \"Stone Cold Rhymin' (Uk) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stone-cold-rhymin-uk-cd/428512.p?id=3188271&skuId=428512&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428512', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '042284237529', 'provider' => 'bestbuy'],\n ['name' => \"Arc of a Diver - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/arc-of-a-diver-cd/428521.p?id=104536&skuId=428521&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428521', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4285\\/428521_sa.jpg\"}', 'upc' => '042284236522', 'provider' => 'bestbuy'],\n ['name' => \"Best of '81 to '85 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-81-to-85-cd/428530.p?id=104862&skuId=428530&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428530', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0428\\/0428530_sa.jpg\"}', 'upc' => '075021530928', 'provider' => 'bestbuy'],\n ['name' => \"Willow In The Wind - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/willow-in-the-wind-cd/428727.p?id=2305080&skuId=428727&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428727', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4287\\/428727.jpg\"}', 'upc' => '042283695023', 'provider' => 'bestbuy'],\n ['name' => \"A Collection of Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-collection-of-hits-cd/428736.p?id=3565172&skuId=428736&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428736', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4287\\/428736.jpg\"}', 'upc' => '042284233026', 'provider' => 'bestbuy'],\n ['name' => \"Brother's Keeper - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brothers-keeper-cd/428772.p?id=93091&skuId=428772&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428772', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4287\\/428772_sa.jpg\"}', 'upc' => '075021531222', 'provider' => 'bestbuy'],\n ['name' => \"Move to This - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/move-to-this-cd/428861.p?id=80187&skuId=428861&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428861', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4288\\/428861_sa.jpg\"}', 'upc' => '042284726726', 'provider' => 'bestbuy'],\n ['name' => \"Blues Traveler - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-traveler-cd/428898.p?id=75196&skuId=428898&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428898', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0428\\/0428898_sa.jpg\"}', 'upc' => '075021530829', 'provider' => 'bestbuy'],\n ['name' => \"The Singles 1969-1973 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-singles-1969-1973-cd/428932.p?id=239887&skuId=428932&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428932', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4289\\/428932_sa.jpg\"}', 'upc' => '082839360128', 'provider' => 'bestbuy'],\n ['name' => \"Kilroy Was Here - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kilroy-was-here-cd/428996.p?id=100684&skuId=428996&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=428996', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0428\\/0428996_sa.jpg\"}', 'upc' => '075021373426', 'provider' => 'bestbuy'],\n ['name' => \"Serenity - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/serenity-cd/429012.p?id=66600&skuId=429012&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429012', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4290\\/429012_sa.jpg\"}', 'upc' => '042283877023', 'provider' => 'bestbuy'],\n ['name' => \"Peggy Suicide - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/peggy-suicide-cd/429067.p?id=78680&skuId=429067&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429067', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4290\\/429067.jpg\"}', 'upc' => '042284838825', 'provider' => 'bestbuy'],\n ['name' => \"Living in the Danger Zone - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/living-in-the-danger-zone-cd/429272.p?id=98187&skuId=429272&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429272', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4292\\/429272.jpg\"}', 'upc' => '014551479826', 'provider' => 'bestbuy'],\n ['name' => \"Live from Austin - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-from-austin-cd/429307.p?id=91063&skuId=429307&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429307', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4293\\/429307.jpg\"}', 'upc' => '014551477327', 'provider' => 'bestbuy'],\n ['name' => \"More Creedence Gold - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/more-creedence-gold-cd/429325.p?id=79173&skuId=429325&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429325', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0429\\/0429325_sa.jpg\"}', 'upc' => '025218943024', 'provider' => 'bestbuy'],\n ['name' => \"Creedence Gold - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/creedence-gold-cd/429334.p?id=79167&skuId=429334&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429334', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0429\\/0429334_sa.jpg\"}', 'upc' => '025218941822', 'provider' => 'bestbuy'],\n ['name' => \"The Big Easy - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-big-easy-cd-original-soundtrack/429343.p?id=74622&skuId=429343&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429343', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0429\\/0429343_sa.jpg\"}', 'upc' => '016253990920', 'provider' => 'bestbuy'],\n ['name' => \"Cold Snap - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cold-snap-cd/429352.p?id=78326&skuId=429352&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429352', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0429\\/0429352_sa.jpg\"}', 'upc' => '014551475224', 'provider' => 'bestbuy'],\n ['name' => \"Chronicle, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chronicle-vol-1-cd/429361.p?id=79158&skuId=429361&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429361', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0429\\/0429361_sa.jpg\"}', 'upc' => '025218000222', 'provider' => 'bestbuy'],\n ['name' => \"Music to Disappear In, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-to-disappear-in-vol-2-cd/429405.p?id=96033&skuId=429405&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429405', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4294\\/429405.jpg\"}', 'upc' => '025041102322', 'provider' => 'bestbuy'],\n ['name' => \"Nightsongs and Lullabies - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nightsongs-and-lullabies-cd/429423.p?id=77230&skuId=429423&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429423', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0429\\/0429423_sa.jpg\"}', 'upc' => '046286013525', 'provider' => 'bestbuy'],\n ['name' => \"Nouveau Flamenco - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nouveau-flamenco-cd/429432.p?id=89213&skuId=429432&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429432', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0429\\/0429432_sa.jpg\"}', 'upc' => '018317702623', 'provider' => 'bestbuy'],\n ['name' => \"Time After Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/time-after-time-cd/429441.p?id=101895&skuId=429441&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429441', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4294\\/429441.jpg\"}', 'upc' => '063961510322', 'provider' => 'bestbuy'],\n ['name' => \"Hearts of Space: Universe Sampler 90 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hearts-of-space-universe-sampler-90-cd-various/429469.p?id=102800&skuId=429469&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429469', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4294\\/429469_sa.jpg\"}', 'upc' => '025041120029', 'provider' => 'bestbuy'],\n ['name' => \"As Kosher as They Wanna Be - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/as-kosher-as-they-wanna-be-cd/429487.p?id=102646&skuId=429487&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429487', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4294\\/429487.jpg\"}', 'upc' => '053993332825', 'provider' => 'bestbuy'],\n ['name' => \"50 Years of Bluegrass Hits, Vol. 1 [1995] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/50-years-of-bluegrass-hits-vol-1-1995-cd-various/429557.p?id=75175&skuId=429557&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429557', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0429\\/0429557_sa.jpg\"}', 'upc' => '027297903326', 'provider' => 'bestbuy'],\n ['name' => \"World's Greatest Bluegrass Bands - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/worlds-greatest-bluegrass-bands-cd-various/429566.p?id=245448&skuId=429566&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429566', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4295\\/429566_sa.jpg\"}', 'upc' => '027297590021', 'provider' => 'bestbuy'],\n ['name' => \"World's Greatest Bluegrass Bands, Vol. 2 [CMH... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/worlds-greatest-bluegrass-bands-vol-2-cmh-cd-various/429575.p?id=287315&skuId=429575&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429575', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0429\\/0429575_sa.jpg\"}', 'upc' => '027297590120', 'provider' => 'bestbuy'],\n ['name' => \"Genuine Houserockin Blues 1 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/genuine-houserockin-blues-1-cd-various/429940.p?id=1416336&skuId=429940&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=429940', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4299\\/429940.jpg\"}', 'upc' => '014551010128', 'provider' => 'bestbuy'],\n ['name' => \"Concerto Royal Philharmonic - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/concerto-royal-philharmonic-cd/430064.p?id=273812&skuId=430064&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=430064', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0430\\/0430064_sa.jpg\"}', 'upc' => '074644473926', 'provider' => 'bestbuy'],\n ['name' => \"Life Is...Too Short [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/life-is-too-short-pa-cd/430199.p?id=101990&skuId=430199&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=430199', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4301\\/430199.jpg\"}', 'upc' => '012414114921', 'provider' => 'bestbuy'],\n ['name' => \"The Stone Roses - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-stone-roses-cd/430251.p?id=100494&skuId=430251&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=430251', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4302\\/430251.jpg\"}', 'upc' => '012414118424', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/430411.p?id=103941&skuId=430411&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=430411', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4304\\/430411_sa.jpg\"}', 'upc' => '078635227727', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [RCA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-rca-cd/430457.p?id=95117&skuId=430457&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=430457', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4304\\/430457_sa.jpg\"}', 'upc' => '078635981629', 'provider' => 'bestbuy'],\n ['name' => \"Love Can Build a Bridge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-can-build-a-bridge-cd/430670.p?id=3435029&skuId=430670&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=430670', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0430\\/0430670_sa.jpg\"}', 'upc' => '078635207026', 'provider' => 'bestbuy'],\n ['name' => \"Tales from Topographic Oceans [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tales-from-topographic-oceans-remaster-cd/431054.p?id=104981&skuId=431054&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=431054', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0431\\/0431054_sa.jpg\"}', 'upc' => '075678268328', 'provider' => 'bestbuy'],\n ['name' => \"Dionne Warwick Collection: Her All-Time... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dionne-warwick-collection-her-all-time-cd/431090.p?id=103528&skuId=431090&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=431090', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0431\\/0431090_sa.jpg\"}', 'upc' => '081227110024', 'provider' => 'bestbuy'],\n ['name' => \"My Dear Old Southern Home - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-dear-old-southern-home-cd/431232.p?id=103624&skuId=431232&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=431232', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0431\\/0431232_sa.jpg\"}', 'upc' => '015891379524', 'provider' => 'bestbuy'],\n ['name' => \"Sex Packets - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sex-packets-cd/431330.p?id=80452&skuId=431330&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=431330', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4313\\/431330_sa.jpg\"}', 'upc' => '016998102626', 'provider' => 'bestbuy'],\n ['name' => \"Best of Howlin' Wolf [JDC] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-howlin-wolf-jdc-cd/431697.p?id=3353622&skuId=431697&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=431697', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '051091350048', 'provider' => 'bestbuy'],\n ['name' => \"Unfinished Business - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/unfinished-business-cd/431811.p?id=3170335&skuId=431811&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=431811', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0431\\/0431811_sa.jpg\"}', 'upc' => '049925713626', 'provider' => 'bestbuy'],\n ['name' => \"This Is the Moody Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/this-is-the-moody-blues-cd/431937.p?id=92181&skuId=431937&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=431937', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4319\\/431937_sa.jpg\"}', 'upc' => '042282000729', 'provider' => 'bestbuy'],\n ['name' => \"Jane'S Addiction - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/janes-addiction-cd/432785.p?id=86713&skuId=432785&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=432785', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0432\\/0432785_sa.jpg\"}', 'upc' => '021075100426', 'provider' => 'bestbuy'],\n ['name' => \"Down in There - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/down-in-there-cd/433007.p?id=75920&skuId=433007&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=433007', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0433\\/0433007_sa.jpg\"}', 'upc' => '033651003526', 'provider' => 'bestbuy'],\n ['name' => \"Layla Sessions: 20th... [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 37.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/layla-sessions-20th-box-cd/438556.p?id=80242&skuId=438556&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=438556', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4385\\/438556_sa.jpg\"}', 'upc' => '042284708326', 'provider' => 'bestbuy'],\n ['name' => \"The Original Singles Collection...Plus [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 37.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-original-singles-collection-plus-box-cd/438565.p?id=104123&skuId=438565&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=438565', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4385\\/438565_sa.jpg\"}', 'upc' => '042284719421', 'provider' => 'bestbuy'],\n ['name' => \"The Young Big Bill Broonzy (1928-1935) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-young-big-bill-broonzy-1928-1935-cd/438592.p?id=76073&skuId=438592&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=438592', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4385\\/438592_sa.jpg\"}', 'upc' => '016351011121', 'provider' => 'bestbuy'],\n ['name' => \"Disney's Silly Songs: 20 Simply... [Blister] - CD - Various Blister\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/disneys-silly-songs-20-simply-blister-cd-various-blister/438798.p?id=149088&skuId=438798&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=438798', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0438\\/0438798_sa.jpg\"}', 'upc' => '050086081929', 'provider' => 'bestbuy'],\n ['name' => \"The Immaculate Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-immaculate-collection-cd/439582.p?id=2472927&skuId=439582&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=439582', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4395\\/439582_sa.jpg\"}', 'upc' => '075992644020', 'provider' => 'bestbuy'],\n ['name' => \"Yellowstone: The Music of Nature - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/yellowstone-the-music-of-nature-cd/439671.p?id=317147&skuId=439671&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=439671', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0439\\/0439671_sa.jpg\"}', 'upc' => '012805308922', 'provider' => 'bestbuy'],\n ['name' => \"Fresh Aire Interludes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fresh-aire-interludes-cd/439715.p?id=90446&skuId=439715&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=439715', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4397\\/439715.jpg\"}', 'upc' => '012805037327', 'provider' => 'bestbuy'],\n ['name' => \"Classical Gas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classical-gas-cd/439742.p?id=104305&skuId=439742&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=439742', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4397\\/439742_sa.jpg\"}', 'upc' => '012805080026', 'provider' => 'bestbuy'],\n ['name' => \"Miss Saigon [Original London Cast Recording] - CD - London Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/miss-saigon-original-london-cast-recording-cd-london-cast-recording/439886.p?id=91884&skuId=439886&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=439886', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4398\\/439886_sa.jpg\"}', 'upc' => '720642427125', 'provider' => 'bestbuy'],\n ['name' => \"Les Misérables [Original Broadway Cast Recording] - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 31.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/les-miserables-original-broadway-cast-recording-cd-original-cast-recording/439939.p?id=89062&skuId=439939&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=439939', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4399\\/439939.jpg\"}', 'upc' => '720642415122', 'provider' => 'bestbuy'],\n ['name' => \"Sharing The Night Together (EMI) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sharing-the-night-together-emi-cd/440525.p?id=309754&skuId=440525&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=440525', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4405\\/440525_sa.jpg\"}', 'upc' => '077775724226', 'provider' => 'bestbuy'],\n ['name' => \"All Time Greatest Hits (EMI) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-emi-cd/440552.p?id=245530&skuId=440552&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=440552', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0440\\/0440552_sa.jpg\"}', 'upc' => '077775736021', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/440561.p?id=83816&skuId=440561&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=440561', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4405\\/440561.jpg\"}', 'upc' => '077775740721', 'provider' => 'bestbuy'],\n ['name' => \"Play the Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/play-the-hits-cd/440614.p?id=103344&skuId=440614&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=440614', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0440\\/0440614_sa.jpg\"}', 'upc' => '077775725322', 'provider' => 'bestbuy'],\n ['name' => \"Anthology: SST Years 1985-1989 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/anthology-sst-years-1985-1989-cd/440641.p?id=98132&skuId=440641&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=440641', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4406\\/440641_sa.jpg\"}', 'upc' => '018861026022', 'provider' => 'bestbuy'],\n ['name' => \"On Flame with Rock and Roll - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/on-flame-with-rock-and-roll-cd/440721.p?id=75137&skuId=440721&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=440721', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4407\\/440721.jpg\"}', 'upc' => '079892156621', 'provider' => 'bestbuy'],\n ['name' => \"Listen Up! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/listen-up-cd/440909.p?id=154312&skuId=440909&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=440909', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4409\\/440909_sa.jpg\"}', 'upc' => '079892156126', 'provider' => 'bestbuy'],\n ['name' => \"Long Time Coming - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/long-time-coming-cd/440936.p?id=96139&skuId=440936&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=440936', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0440\\/0440936_sa.jpg\"}', 'upc' => '076732582923', 'provider' => 'bestbuy'],\n ['name' => \"Backlash - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/backlash-cd/440990.p?id=73661&skuId=440990&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=440990', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4409\\/440990_sa.jpg\"}', 'upc' => '074644693522', 'provider' => 'bestbuy'],\n ['name' => \"Super Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/super-hits-cd/441178.p?id=80876&skuId=441178&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=441178', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4411\\/441178_sa.jpg\"}', 'upc' => '077775739725', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/441285.p?id=86706&skuId=441285&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=441285', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4412\\/441285_sa.jpg\"}', 'upc' => '077775740820', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Cema] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cema-cd/441310.p?id=83419&skuId=441310&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=441310', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4413\\/441310.jpg\"}', 'upc' => '077775740523', 'provider' => 'bestbuy'],\n ['name' => \"Love Songs [Collectables] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-songs-collectables-cd/441338.p?id=92663&skuId=441338&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=441338', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4413\\/441338_sa.jpg\"}', 'upc' => '077775725629', 'provider' => 'bestbuy'],\n ['name' => \"Tom Dooley - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tom-dooley-cd/441347.p?id=88086&skuId=441347&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=441347', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0441\\/0441347_sa.jpg\"}', 'upc' => '077775724721', 'provider' => 'bestbuy'],\n ['name' => \"One Believer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-believer-cd/441506.p?id=76676&skuId=441506&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=441506', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0441\\/0441506_sa.jpg\"}', 'upc' => '075596108621', 'provider' => 'bestbuy'],\n ['name' => \"Capitol Sings Cole Porter: Anything Goes - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/capitol-sings-cole-porter-anything-goes-cd-various/441980.p?id=95208&skuId=441980&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=441980', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0441\\/0441980_sa.jpg\"}', 'upc' => '077779636129', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Johnny Cash [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-johnny-cash-curb-cd/442079.p?id=77022&skuId=442079&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=442079', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4420\\/442079_sa.jpg\"}', 'upc' => '715187749429', 'provider' => 'bestbuy'],\n ['name' => \"The Commitments - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-commitments-cd-original-soundtrack/442248.p?id=78442&skuId=442248&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=442248', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0442\\/0442248_sa.jpg\"}', 'upc' => '008811028626', 'provider' => 'bestbuy'],\n ['name' => \"We Can't Be Stopped [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/we-cant-be-stopped-pa-cd/443336.p?id=1534931&skuId=443336&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=443336', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0443\\/0443336_sa.jpg\"}', 'upc' => '034744199225', 'provider' => 'bestbuy'],\n ['name' => \"Anthology (1956-1980) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 21.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/anthology-1956-1980-cd/444264.p?id=88947&skuId=444264&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=444264', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4442\\/444264_sa.jpg\"}', 'upc' => '008811038427', 'provider' => 'bestbuy'],\n ['name' => \"Zucchero - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/zucchero-cd/444709.p?id=105332&skuId=444709&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=444709', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0444\\/0444709_sa.jpg\"}', 'upc' => '042284906326', 'provider' => 'bestbuy'],\n ['name' => \"Saturday Night at the Blue Note - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/saturday-night-at-the-blue-note-cd/444816.p?id=69970&skuId=444816&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=444816', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4448\\/444816_sa.jpg\"}', 'upc' => '089408330629', 'provider' => 'bestbuy'],\n ['name' => \"Fear - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fear-cd/445361.p?id=101931&skuId=445361&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=445361', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0445\\/0445361_sa.jpg\"}', 'upc' => '074644730920', 'provider' => 'bestbuy'],\n ['name' => \"Ten - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ten-cd/445441.p?id=94586&skuId=445441&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=445441', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4454\\/445441.jpg\"}', 'upc' => '074644785722', 'provider' => 'bestbuy'],\n ['name' => \"The Essential Ten Years After - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-essential-ten-years-after-cd/445691.p?id=101418&skuId=445691&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=445691', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4456\\/445691_sa.jpg\"}', 'upc' => '094632185723', 'provider' => 'bestbuy'],\n ['name' => \"The Complete Imperial Recordings: 1950-1954 [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-complete-imperial-recordings-1950-1954-box-cd/445879.p?id=103376&skuId=445879&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=445879', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4458\\/445879_sa.jpg\"}', 'upc' => '077779673728', 'provider' => 'bestbuy'],\n ['name' => \"In Your Face - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-your-face-cd/446208.p?id=82287&skuId=446208&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=446208', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0446\\/0446208_sa.jpg\"}', 'upc' => '074644033328', 'provider' => 'bestbuy'],\n ['name' => \"Psychotic Supper - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/psychotic-supper-cd/446413.p?id=101477&skuId=446413&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=446413', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4464\\/446413.jpg\"}', 'upc' => '720642442425', 'provider' => 'bestbuy'],\n ['name' => \"Use Your Illusion I - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/use-your-illusion-i-cd/446431.p?id=84440&skuId=446431&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=446431', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4464\\/446431.jpg\"}', 'upc' => '720642441527', 'provider' => 'bestbuy'],\n ['name' => \"Use Your Illusion II [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/use-your-illusion-ii-pa-cd/446459.p?id=84441&skuId=446459&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=446459', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0446\\/0446459_sa.jpg\"}', 'upc' => '720642442029', 'provider' => 'bestbuy'],\n ['name' => \"Ain't a Damn Thing Changed [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aint-a-damn-thing-changed-pa-cd/446556.p?id=93286&skuId=446556&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=446556', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0446\\/0446556_sa.jpg\"}', 'upc' => '731452347824', 'provider' => 'bestbuy'],\n ['name' => \"Only Love: The Best of Nana - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/only-love-the-best-of-nana-cd/446654.p?id=92487&skuId=446654&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=446654', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0446\\/0446654_sa.jpg\"}', 'upc' => '731451022920', 'provider' => 'bestbuy'],\n ['name' => \"Stranger in This Town - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stranger-in-this-town-cd/446707.p?id=97804&skuId=446707&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=446707', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0446\\/0446707_sa.jpg\"}', 'upc' => '042284889520', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-cd/446994.p?id=96806&skuId=446994&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=446994', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0446\\/0446994_sa.jpg\"}', 'upc' => '074643136129', 'provider' => 'bestbuy'],\n ['name' => \"Say No More - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/say-no-more-cd/447038.p?id=81018&skuId=447038&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=447038', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4470\\/447038.jpg\"}', 'upc' => '074643439725', 'provider' => 'bestbuy'],\n ['name' => \"Ratt & Roll 8191 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ratt-roll-8191-cd/447270.p?id=96085&skuId=447270&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=447270', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0447\\/0447270_sa.jpg\"}', 'upc' => '075678226021', 'provider' => 'bestbuy'],\n ['name' => \"Horrorscope - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/horrorscope-cd/447396.p?id=94196&skuId=447396&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=447396', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0447\\/0447396_sa.jpg\"}', 'upc' => '075678228322', 'provider' => 'bestbuy'],\n ['name' => \"Timespace: The Best of Stevie Nicks - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/timespace-the-best-of-stevie-nicks-cd/447412.p?id=93305&skuId=447412&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=447412', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0447\\/0447412_sa.jpg\"}', 'upc' => '075679171122', 'provider' => 'bestbuy'],\n ['name' => \"Pop Pop - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pop-pop-cd/447537.p?id=87301&skuId=447537&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=447537', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0447\\/0447537_sa.jpg\"}', 'upc' => '720642442623', 'provider' => 'bestbuy'],\n ['name' => \"Muddy & the Wolf - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/muddy-the-wolf-cd/447582.p?id=103582&skuId=447582&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=447582', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0447\\/0447582_sa.jpg\"}', 'upc' => '076732910023', 'provider' => 'bestbuy'],\n ['name' => \"Diamonds and Pearls - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/diamonds-and-pearls-cd/447760.p?id=3434957&skuId=447760&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=447760', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4477\\/447760_sa.jpg\"}', 'upc' => '075992537926', 'provider' => 'bestbuy'],\n ['name' => \"Zone of Our Own - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/zone-of-our-own-cd/448607.p?id=101505&skuId=448607&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=448607', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4486\\/448607_sa.jpg\"}', 'upc' => '075992668323', 'provider' => 'bestbuy'],\n ['name' => \"Cerulean - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cerulean-cd/448634.p?id=93781&skuId=448634&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=448634', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0448\\/0448634_sa.jpg\"}', 'upc' => '075992655026', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Best of Merle Haggard [Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-best-of-merle-haggard-capitol-cd/449358.p?id=84576&skuId=449358&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=449358', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4493\\/449358.jpg\"}', 'upc' => '077779125425', 'provider' => 'bestbuy'],\n ['name' => \"Waking Up the Neighbours - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/waking-up-the-neighbours-cd/449820.p?id=72467&skuId=449820&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=449820', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4498\\/449820.jpg\"}', 'upc' => '075021536722', 'provider' => 'bestbuy'],\n ['name' => \"Late Night Grande Hotel - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/late-night-grande-hotel-cd/450023.p?id=84272&skuId=450023&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=450023', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4500\\/450023.jpg\"}', 'upc' => '008811030629', 'provider' => 'bestbuy'],\n ['name' => \"Shut Up and Die Like an Aviator - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shut-up-and-die-like-an-aviator-cd/450069.p?id=81237&skuId=450069&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=450069', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4500\\/450069.jpg\"}', 'upc' => '008811031527', 'provider' => 'bestbuy'],\n ['name' => \"Best O' Boingo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-o-boingo-cd/450087.p?id=93829&skuId=450087&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=450087', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4500\\/450087_sa.jpg\"}', 'upc' => '008811042424', 'provider' => 'bestbuy'],\n ['name' => \"Endless Boogie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/endless-boogie-cd/450112.p?id=85604&skuId=450112&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=450112', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0450\\/0450112_sa.jpg\"}', 'upc' => '008811041328', 'provider' => 'bestbuy'],\n ['name' => \"Truckin' with Albert Collins - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/truckin-with-albert-collins-cd/450130.p?id=78335&skuId=450130&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=450130', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0450\\/0450130_sa.jpg\"}', 'upc' => '008811042325', 'provider' => 'bestbuy'],\n ['name' => \"Pärt: Miserere - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/part-miserere-cd/450390.p?id=2276172&skuId=450390&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=450390', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '781182143029', 'provider' => 'bestbuy'],\n ['name' => \"Set the Night to Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/set-the-night-to-music-cd/450489.p?id=82355&skuId=450489&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=450489', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4504\\/450489_sa.jpg\"}', 'upc' => '075678232121', 'provider' => 'bestbuy'],\n ['name' => \"Rechordings - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rechordings-cd/450568.p?id=82713&skuId=450568&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=450568', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0450\\/0450568_sa.jpg\"}', 'upc' => '075678229626', 'provider' => 'bestbuy'],\n ['name' => \"Act Like You Know [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/act-like-you-know-pa-cd/450666.p?id=90970&skuId=450666&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=450666', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0450\\/0450666_sa.jpg\"}', 'upc' => '075679173126', 'provider' => 'bestbuy'],\n ['name' => \"Lionel Hampton and the Golden Men of Jazz:... - Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lionel-hampton-and-the-golden-men-of-jazz-live-cd/451246.p?id=67141&skuId=451246&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=451246', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4512\\/451246_sa.jpg\"}', 'upc' => '089408330827', 'provider' => 'bestbuy'],\n ['name' => \"Blood Sugar Sex Magik [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blood-sugar-sex-magik-pa-cd/451317.p?id=96180&skuId=451317&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=451317', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0451\\/0451317_sa.jpg\"}', 'upc' => '075992668125', 'provider' => 'bestbuy'],\n ['name' => \"The Greatest Hits: The Power of Great Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-greatest-hits-the-power-of-great-music-cd/451415.p?id=86198&skuId=451415&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=451415', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0451\\/0451415_sa.jpg\"}', 'upc' => '075992670029', 'provider' => 'bestbuy'],\n ['name' => \"Tyranny of the Beat: Throbbing... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tyranny-of-the-beat-throbbing-cd/451629.p?id=3183468&skuId=451629&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=451629', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4516\\/451629.jpg\"}', 'upc' => '724596123720', 'provider' => 'bestbuy'],\n ['name' => \"The Missing Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-missing-years-cd/451914.p?id=95522&skuId=451914&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=451914', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4519\\/451914_sa.jpg\"}', 'upc' => '094012000929', 'provider' => 'bestbuy'],\n ['name' => \"Captured Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/captured-live-cd/451978.p?id=81008&skuId=451978&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=451978', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0451\\/0451978_sa.jpg\"}', 'upc' => '016351439024', 'provider' => 'bestbuy'],\n ['name' => \"Three Sides to My Story - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/three-sides-to-my-story-cd/452003.p?id=79444&skuId=452003&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=452003', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0452\\/0452003_sa.jpg\"}', 'upc' => '016351438829', 'provider' => 'bestbuy'],\n ['name' => \"Johnny Adams Sings Doc Pomus: The Real Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/johnny-adams-sings-doc-pomus-the-real-me-cd/452021.p?id=72476&skuId=452021&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=452021', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4520\\/452021.jpg\"}', 'upc' => '011661210929', 'provider' => 'bestbuy'],\n ['name' => \"The Touch - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-touch-cd/452101.p?id=85123&skuId=452101&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=452101', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0452\\/0452101_sa.jpg\"}', 'upc' => '014551480020', 'provider' => 'bestbuy'],\n ['name' => \"I Know It's Wrong, But I...Just Can't Do Right - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-know-its-wrong-but-i-just-cant-do-right-cd/452165.p?id=101250&skuId=452165&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=452165', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4521\\/452165_sa.jpg\"}', 'upc' => '048021746026', 'provider' => 'bestbuy'],\n ['name' => \"Ain't No Doubt About It - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aint-no-doubt-about-it-cd/452218.p?id=80643&skuId=452218&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=452218', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4522\\/452218_sa.jpg\"}', 'upc' => '021257940529', 'provider' => 'bestbuy'],\n ['name' => \"The Life and Times of Country Joe & the Fish - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-life-and-times-of-country-joe-the-fish-cd/452245.p?id=78821&skuId=452245&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=452245', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4522\\/452245.jpg\"}', 'upc' => '015707272827', 'provider' => 'bestbuy'],\n ['name' => \"Storyville - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/storyville-cd/452450.p?id=96838&skuId=452450&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=452450', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0452\\/0452450_sa.jpg\"}', 'upc' => '720642430323', 'provider' => 'bestbuy'],\n ['name' => \"The Very Big Carla Bley Band [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-very-big-carla-bley-band-digdownload-cd/452520.p?id=2393522&skuId=452520&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=452520', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4525\\/452520.jpg\"}', 'upc' => '042284794220', 'provider' => 'bestbuy'],\n ['name' => \"Shake Me Up - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shake-me-up-cd/452637.p?id=89365&skuId=452637&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=452637', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4526\\/452637_sa.jpg\"}', 'upc' => '729592000525', 'provider' => 'bestbuy'],\n ['name' => \"Badmotorfinger - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/badmotorfinger-cd/452806.p?id=99668&skuId=452806&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=452806', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0452\\/0452806_sa.jpg\"}', 'upc' => '075021537422', 'provider' => 'bestbuy'],\n ['name' => \"The Low End Theory - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-low-end-theory-cd/452904.p?id=102236&skuId=452904&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=452904', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0452\\/0452904_sa.jpg\"}', 'upc' => '012414141828', 'provider' => 'bestbuy'],\n ['name' => \"Curtis Stigers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/curtis-stigers-cd/452940.p?id=240736&skuId=452940&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=452940', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0452\\/0452940_sa.jpg\"}', 'upc' => '078221866026', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Righteous Brothers, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-righteous-brothers-vol-2-cd/453324.p?id=96699&skuId=453324&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=453324', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4533\\/453324.jpg\"}', 'upc' => '715187752221', 'provider' => 'bestbuy'],\n ['name' => \"Street Corner Talking - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/street-corner-talking-cd/453823.p?id=97969&skuId=453823&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=453823', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4538\\/453823.jpg\"}', 'upc' => '042284401821', 'provider' => 'bestbuy'],\n ['name' => \"Hellbound Train - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hellbound-train-cd/453832.p?id=97958&skuId=453832&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=453832', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0453\\/0453832_sa.jpg\"}', 'upc' => '042284401920', 'provider' => 'bestbuy'],\n ['name' => \"Burnin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/burnin-cd/453869.p?id=88553&skuId=453869&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=453869', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4538\\/453869_sa.jpg\"}', 'upc' => '008811043926', 'provider' => 'bestbuy'],\n ['name' => \"Shadows - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shadows-cd/454038.p?id=64159&skuId=454038&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=454038', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4540\\/454038_sa.jpg\"}', 'upc' => '011105965422', 'provider' => 'bestbuy'],\n ['name' => \"Stars - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stars-cd/454163.p?id=98822&skuId=454163&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=454163', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0454\\/0454163_sa.jpg\"}', 'upc' => '075679177322', 'provider' => 'bestbuy'],\n ['name' => \"Memorabilia: Singles - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/memorabilia-singles-cd/454519.p?id=99378&skuId=454519&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=454519', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4545\\/454519_sa.jpg\"}', 'upc' => '731451017827', 'provider' => 'bestbuy'],\n ['name' => \"Don't Go Near the Water - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dont-go-near-the-water-cd/454555.p?id=87779&skuId=454555&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=454555', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4545\\/454555.jpg\"}', 'upc' => '731451016127', 'provider' => 'bestbuy'],\n ['name' => \"Put Me In Your Mix - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/put-me-in-your-mix-cd/454706.p?id=1386497&skuId=454706&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=454706', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4547\\/454706_sa.jpg\"}', 'upc' => '075021537729', 'provider' => 'bestbuy'],\n ['name' => \"Apocalypse 91...The Enemy Strikes Black [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/apocalypse-91-the-enemy-strikes-black-pa-cd/454840.p?id=95630&skuId=454840&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=454840', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0454\\/0454840_sa.jpg\"}', 'upc' => '731452347923', 'provider' => 'bestbuy'],\n ['name' => \"Essence Of Billie Holiday - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/essence-of-billie-holiday-cd/454957.p?id=67525&skuId=454957&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=454957', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0454\\/0454957_sa.jpg\"}', 'upc' => '074644791723', 'provider' => 'bestbuy'],\n ['name' => \"24 Nights - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/24-nights-cd/455108.p?id=77886&skuId=455108&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=455108', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0455\\/0455108_sa.jpg\"}', 'upc' => '075992642026', 'provider' => 'bestbuy'],\n ['name' => \"Naughty By Nature - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/naughty-by-nature-cd/455661.p?id=92904&skuId=455661&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=455661', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4556\\/455661_sa.jpg\"}', 'upc' => '016998104422', 'provider' => 'bestbuy'],\n ['name' => \"Weld - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/weld-cd/455929.p?id=105078&skuId=455929&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=455929', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0455\\/0455929_sa.jpg\"}', 'upc' => '075992667128', 'provider' => 'bestbuy'],\n ['name' => \"Day Parts: Sunday Morning Coffee - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/day-parts-sunday-morning-coffee-cd-various/456492.p?id=79897&skuId=456492&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=456492', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0456\\/0456492_sa.jpg\"}', 'upc' => '012805010023', 'provider' => 'bestbuy'],\n ['name' => \"The Bells of Dublin - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-bells-of-dublin-cd/456722.p?id=77485&skuId=456722&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=456722', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0456\\/0456722_sa.jpg\"}', 'upc' => '090266082421', 'provider' => 'bestbuy'],\n ['name' => \"Streets: A Rock Opera - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/streets-a-rock-opera-cd/457552.p?id=97951&skuId=457552&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=457552', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0457\\/0457552_sa.jpg\"}', 'upc' => '075678232022', 'provider' => 'bestbuy'],\n ['name' => \"Private Line - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/private-line-cd/457598.p?id=89110&skuId=457598&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=457598', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4575\\/457598_sa.jpg\"}', 'upc' => '075679177728', 'provider' => 'bestbuy'],\n ['name' => \"The Earl Klugh Trio, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-earl-klugh-trio-vol-1-cd/457927.p?id=68300&skuId=457927&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=457927', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0457\\/0457927_sa.jpg\"}', 'upc' => '075992675024', 'provider' => 'bestbuy'],\n ['name' => \"Live Killers [ECD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-killers-ecd-cd/457954.p?id=95708&skuId=457954&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=457954', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0457\\/0457954_sa.jpg\"}', 'upc' => '720616106629', 'provider' => 'bestbuy'],\n ['name' => \"Singer/Songwriter - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/singer-songwriter-cd/458034.p?id=88438&skuId=458034&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=458034', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0458\\/0458034_sa.jpg\"}', 'upc' => '074644862126', 'provider' => 'bestbuy'],\n ['name' => \"Better Together: The Duet Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/better-together-the-duet-album-cd/458043.p?id=90788&skuId=458043&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=458043', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4580\\/458043.jpg\"}', 'upc' => '074644798227', 'provider' => 'bestbuy'],\n ['name' => \"Live Your Life Be Free - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-your-life-be-free-cd/458114.p?id=3454937&skuId=458114&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=458114', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '008811044626', 'provider' => 'bestbuy'],\n ['name' => \"And Along Came Jones - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/and-along-came-jones-cd/458187.p?id=87230&skuId=458187&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=458187', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4581\\/458187_sa.jpg\"}', 'upc' => '008811039820', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Missing Persons [1987] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-missing-persons-1987-cd/458374.p?id=91892&skuId=458374&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=458374', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0458\\/0458374_sa.jpg\"}', 'upc' => '077774662826', 'provider' => 'bestbuy'],\n ['name' => \"Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/collection-cd/458383.p?id=70571&skuId=458383&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=458383', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0458\\/0458383_sa.jpg\"}', 'upc' => '011105965828', 'provider' => 'bestbuy'],\n ['name' => \"Guitar Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/guitar-music-cd/458436.p?id=1366588&skuId=458436&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=458436', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0458\\/0458436_sa.jpg\"}', 'upc' => '762185114223', 'provider' => 'bestbuy'],\n ['name' => \"With My Lover Beside Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/with-my-lover-beside-me-cd/459890.p?id=72149&skuId=459890&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=459890', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0459\\/0459890_sa.jpg\"}', 'upc' => '074644866520', 'provider' => 'bestbuy'],\n ['name' => \"All Time Best Of - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-best-of-cd/459925.p?id=63750&skuId=459925&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=459925', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0459\\/0459925_sa.jpg\"}', 'upc' => '715187733923', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/459961.p?id=75568&skuId=459961&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=459961', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4599\\/459961.jpg\"}', 'upc' => '715187729827', 'provider' => 'bestbuy'],\n ['name' => \"Best of Sammy Davis, Jr. [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-sammy-davis-jr-curb-cd/459970.p?id=79809&skuId=459970&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=459970', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4599\\/459970.jpg\"}', 'upc' => '715187744424', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Exile [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-exile-curb-cd/459989.p?id=81803&skuId=459989&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=459989', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4599\\/459989.jpg\"}', 'upc' => '715187729629', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-cd/460003.p?id=83814&skuId=460003&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460003', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4600\\/460003.jpg\"}', 'upc' => '715187732728', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Robert Goulet [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-robert-goulet-curb-cd/460012.p?id=83998&skuId=460012&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460012', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4600\\/460012.jpg\"}', 'upc' => '715187725720', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/460021.p?id=85982&skuId=460021&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460021', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0460\\/0460021_sa.jpg\"}', 'upc' => '715187734128', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/460030.p?id=86398&skuId=460030&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460030', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0460\\/0460030_sa.jpg\"}', 'upc' => '715187733329', 'provider' => 'bestbuy'],\n ['name' => \"The Greatest Country Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-greatest-country-hits-cd/460049.p?id=87238&skuId=460049&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460049', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4600\\/460049_sa.jpg\"}', 'upc' => '715187736924', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/460101.p?id=87347&skuId=460101&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460101', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4601\\/460101.jpg\"}', 'upc' => '715187732421', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Country Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-country-hits-cd/460110.p?id=90360&skuId=460110&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460110', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4601\\/460110_sa.jpg\"}', 'upc' => '715187736320', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/460138.p?id=91186&skuId=460138&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460138', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0460\\/0460138_sa.jpg\"}', 'upc' => '715187733725', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Country - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-country-cd/460147.p?id=92634&skuId=460147&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460147', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4601\\/460147.jpg\"}', 'upc' => '715187733626', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-songs-cd/460156.p?id=93010&skuId=460156&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460156', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4601\\/460156.jpg\"}', 'upc' => '715187736627', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/460165.p?id=95410&skuId=460165&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460165', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4601\\/460165_sa.jpg\"}', 'upc' => '715187730526', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Country Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-country-hits-cd/460174.p?id=96095&skuId=460174&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460174', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4601\\/460174.jpg\"}', 'upc' => '715187736429', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/460192.p?id=98115&skuId=460192&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460192', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4601\\/460192.jpg\"}', 'upc' => '715187725522', 'provider' => 'bestbuy'],\n ['name' => \"Best of Dinah Shore [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-dinah-shore-curb-cd/460209.p?id=98639&skuId=460209&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460209', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4602\\/460209.jpg\"}', 'upc' => '715187745926', 'provider' => 'bestbuy'],\n ['name' => \"Music That You Can Dance To - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-that-you-can-dance-to-cd/460218.p?id=99791&skuId=460218&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460218', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4602\\/460218.jpg\"}', 'upc' => '715187733527', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/460227.p?id=101683&skuId=460227&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460227', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4602\\/460227_sa.jpg\"}', 'upc' => '715187732926', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/460236.p?id=102511&skuId=460236&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460236', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4602\\/460236.jpg\"}', 'upc' => '715187733220', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-cd/460245.p?id=105045&skuId=460245&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460245', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4602\\/460245.jpg\"}', 'upc' => '715187733428', 'provider' => 'bestbuy'],\n ['name' => \"Simply the Best - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/simply-the-best-cd/460414.p?id=102526&skuId=460414&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460414', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0460\\/0460414_sa.jpg\"}', 'upc' => '077779715220', 'provider' => 'bestbuy'],\n ['name' => \"Spontaneous Inventions - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spontaneous-inventions-cd/460487.p?id=68918&skuId=460487&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460487', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4604\\/460487_sa.jpg\"}', 'upc' => '077774629829', 'provider' => 'bestbuy'],\n ['name' => \"The Other Side of Round Midnight - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-other-side-of-round-midnight-cd/460496.p?id=66846&skuId=460496&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460496', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0460\\/0460496_sa.jpg\"}', 'upc' => '077774639729', 'provider' => 'bestbuy'],\n ['name' => \"Babes in the Wood - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/babes-in-the-wood-cd/460502.p?id=243677&skuId=460502&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460502', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0460\\/0460502_sa.jpg\"}', 'upc' => '739341000324', 'provider' => 'bestbuy'],\n ['name' => \"Home For Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/home-for-christmas-cd/460575.p?id=93692&skuId=460575&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460575', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4605\\/460575.jpg\"}', 'upc' => '077779642021', 'provider' => 'bestbuy'],\n ['name' => \"Can't Slow Down - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cant-slow-down-cd/460646.p?id=96629&skuId=460646&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460646', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0460\\/0460646_sa.jpg\"}', 'upc' => '737463605922', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Herbie Hancock: The Blue Note Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-herbie-hancock-the-blue-note-years-cd/460762.p?id=67144&skuId=460762&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460762', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4607\\/460762_sa.jpg\"}', 'upc' => '077779114221', 'provider' => 'bestbuy'],\n ['name' => \"Essential - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/essential-cd/460824.p?id=88390&skuId=460824&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=460824', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0460\\/0460824_sa.jpg\"}', 'upc' => '094632185228', 'provider' => 'bestbuy'],\n ['name' => \"Two Rooms: Celebrating the Songs of Elton... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-rooms-celebrating-the-songs-of-elton-cd-various/461057.p?id=87099&skuId=461057&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=461057', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0461\\/0461057_sa.jpg\"}', 'upc' => '042284575027', 'provider' => 'bestbuy'],\n ['name' => \"20 All-Time Greatest Hits! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/20-all-time-greatest-hits-cd/461093.p?id=75941&skuId=461093&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=461093', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4610\\/461093_sa.jpg\"}', 'upc' => '731451132629', 'provider' => 'bestbuy'],\n ['name' => \"A Decade of Hits 1969-1979 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-decade-of-hits-1969-1979-cd/461119.p?id=72771&skuId=461119&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=461119', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0461\\/0461119_sa.jpg\"}', 'upc' => '731451115622', 'provider' => 'bestbuy'],\n ['name' => \"Wolf In Sheep'S Clothing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wolf-in-sheeps-clothing-cd/461182.p?id=2387418&skuId=461182&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=461182', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0461\\/0461182_sa.jpg\"}', 'upc' => '042284836821', 'provider' => 'bestbuy'],\n ['name' => \"Lady in Autumn: The Best of the Verve Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lady-in-autumn-the-best-of-the-verve-years-cd/461315.p?id=2389788&skuId=461315&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=461315', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0461\\/0461315_sa.jpg\"}', 'upc' => '042284943420', 'provider' => 'bestbuy'],\n ['name' => \"The Very Best of the Platters [Mercury] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-very-best-of-the-platters-mercury-cd/461333.p?id=95057&skuId=461333&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=461333', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4613\\/461333.jpg\"}', 'upc' => '731451031724', 'provider' => 'bestbuy'],\n ['name' => \"Loveless - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/loveless-cd/461609.p?id=92723&skuId=461609&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=461609', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4616\\/461609_sa.jpg\"}', 'upc' => '075992675925', 'provider' => 'bestbuy'],\n ['name' => \"Dance, Dance, Dance: The Best of Chic - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dance-dance-dance-the-best-of-chic-cd/461725.p?id=77423&skuId=461725&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=461725', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0461\\/0461725_sa.jpg\"}', 'upc' => '075678233326', 'provider' => 'bestbuy'],\n ['name' => \"The Beat Goes On: The Best of Sonny & Cher - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-beat-goes-on-the-best-of-sonny-cher-cd/461734.p?id=99470&skuId=461734&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=461734', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0461\\/0461734_sa.jpg\"}', 'upc' => '075679179623', 'provider' => 'bestbuy'],\n ['name' => \"Heather Mullen - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heather-mullen-cd/461770.p?id=92587&skuId=461770&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=461770', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0461\\/0461770_sa.jpg\"}', 'upc' => '075679179128', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-me-cd/461841.p?id=95455&skuId=461841&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=461841', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0461\\/0461841_sa.jpg\"}', 'upc' => '077778625926', 'provider' => 'bestbuy'],\n ['name' => \"Stolen Moments - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stolen-moments-cd/461903.p?id=2416891&skuId=461903&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=461903', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0461\\/0461903_sa.jpg\"}', 'upc' => '077779715923', 'provider' => 'bestbuy'],\n ['name' => \"She Hangs Brightly - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/she-hangs-brightly-cd/461921.p?id=90950&skuId=461921&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=461921', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4619\\/461921_sa.jpg\"}', 'upc' => '077779650828', 'provider' => 'bestbuy'],\n ['name' => \"Discography: The Complete Singles Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/discography-the-complete-singles-collection-cd/462001.p?id=94764&skuId=462001&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462001', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0462\\/0462001_sa.jpg\"}', 'upc' => '077779709724', 'provider' => 'bestbuy'],\n ['name' => \"Hooker 'n Heat - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hooker-n-heat-cd/462065.p?id=85611&skuId=462065&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462065', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4620\\/462065_sa.jpg\"}', 'upc' => '077779789627', 'provider' => 'bestbuy'],\n ['name' => \"Songs of Rodeo Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/songs-of-rodeo-life-cd/462289.p?id=88920&skuId=462289&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462289', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4622\\/462289.jpg\"}', 'upc' => '077779687527', 'provider' => 'bestbuy'],\n ['name' => \"Dream Letter: Live in London 1968 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dream-letter-live-in-london-1968-cd/462476.p?id=76216&skuId=462476&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462476', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0462\\/0462476_sa.jpg\"}', 'upc' => '767004070322', 'provider' => 'bestbuy'],\n ['name' => \"Your Favorite Songs - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/your-favorite-songs-cd-various/462485.p?id=105122&skuId=462485&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462485', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4624\\/462485.jpg\"}', 'upc' => '715187753228', 'provider' => 'bestbuy'],\n ['name' => \"All Time Greatest Rock N Roll, Vol. 2 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-rock-n-roll-vol-2-cd-various/462500.p?id=96917&skuId=462500&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462500', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0462\\/0462500_sa.jpg\"}', 'upc' => '715187752528', 'provider' => 'bestbuy'],\n ['name' => \"Beguiled - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/beguiled-cd/462626.p?id=100531&skuId=462626&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462626', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4626\\/462626.jpg\"}', 'upc' => '025041102728', 'provider' => 'bestbuy'],\n ['name' => \"Gaudi - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gaudi-cd/462635.p?id=96612&skuId=462635&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462635', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0462\\/0462635_sa.jpg\"}', 'upc' => '025041102827', 'provider' => 'bestbuy'],\n ['name' => \"Dance of Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dance-of-love-cd/462715.p?id=85375&skuId=462715&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462715', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4627\\/462715.jpg\"}', 'upc' => '063961518120', 'provider' => 'bestbuy'],\n ['name' => \"Angel Baby - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/angel-baby-cd/462724.p?id=73037&skuId=462724&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462724', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4627\\/462724.jpg\"}', 'upc' => '063961518328', 'provider' => 'bestbuy'],\n ['name' => \"The Infidel - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-infidel-cd/462742.p?id=80820&skuId=462742&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462742', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4627\\/462742_sa.jpg\"}', 'upc' => '016581713628', 'provider' => 'bestbuy'],\n ['name' => \"Pablo Meets Mr. Bassie: Original Rockers, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pablo-meets-mr-bassie-original-rockers-vol-2-cd/462877.p?id=94251&skuId=462877&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462877', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4628\\/462877_sa.jpg\"}', 'upc' => '016351438522', 'provider' => 'bestbuy'],\n ['name' => \"The Roots Is There - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-roots-is-there-cd/462886.p?id=91668&skuId=462886&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462886', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4628\\/462886_sa.jpg\"}', 'upc' => '016351430922', 'provider' => 'bestbuy'],\n ['name' => \"Country Blues Bottleneck Guitar Classics:... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/country-blues-bottleneck-guitar-classics-cd-various/462902.p?id=180680&skuId=462902&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462902', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4629\\/462902_sa.jpg\"}', 'upc' => '016351012623', 'provider' => 'bestbuy'],\n ['name' => \"Signature - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/signature-cd/462920.p?id=2389930&skuId=462920&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=462920', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0462\\/0462920_sa.jpg\"}', 'upc' => '014551480129', 'provider' => 'bestbuy'],\n ['name' => \"Ramblin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ramblin-cd/463000.p?id=104182&skuId=463000&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=463000', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4630\\/463000_sa.jpg\"}', 'upc' => '093074004227', 'provider' => 'bestbuy'],\n ['name' => \"That Was Then-This Is Now! [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/that-was-then-this-is-now-pa-cd/463055.p?id=167509&skuId=463055&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=463055', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0463\\/0463055_sa.jpg\"}', 'upc' => '054291881626', 'provider' => 'bestbuy'],\n ['name' => \"A Charlie Brown Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-charlie-brown-christmas-cd/463064.p?id=67029&skuId=463064&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=463064', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0463\\/0463064_sa.jpg\"}', 'upc' => '025218843126', 'provider' => 'bestbuy'],\n ['name' => \"David Grisman's Acoustic Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/david-grismans-acoustic-christmas-cd/463108.p?id=84290&skuId=463108&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=463108', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0463\\/0463108_sa.jpg\"}', 'upc' => '011661019027', 'provider' => 'bestbuy'],\n ['name' => \"I Ain't Studdi' You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-aint-studdi-you-cd/463153.p?id=97572&skuId=463153&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=463153', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4631\\/463153.jpg\"}', 'upc' => '019011411729', 'provider' => 'bestbuy'],\n ['name' => \"Live from Chicago Mr. Superharp Himself - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-from-chicago-mr-superharp-himself-cd/463171.p?id=78790&skuId=463171&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=463171', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4631\\/463171_sa.jpg\"}', 'upc' => '014551474623', 'provider' => 'bestbuy'],\n ['name' => \"Third Degree - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/third-degree-cd/463180.p?id=104517&skuId=463180&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=463180', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4631\\/463180.jpg\"}', 'upc' => '014551474821', 'provider' => 'bestbuy'],\n ['name' => \"Genuine Houserockin Blues 2 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/genuine-houserockin-blues-2-cd-various/463199.p?id=1416337&skuId=463199&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=463199', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4631\\/463199.jpg\"}', 'upc' => '014551010227', 'provider' => 'bestbuy'],\n ['name' => \"Genuine Houserockin' Music, Vol. 3 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/genuine-houserockin-music-vol-3-cd-various/463206.p?id=75289&skuId=463206&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=463206', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4632\\/463206.jpg\"}', 'upc' => '014551010326', 'provider' => 'bestbuy'],\n ['name' => \"Genuine Houserockin' Music, Vol. 4 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/genuine-houserockin-music-vol-4-cd-various/463215.p?id=75290&skuId=463215&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=463215', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4632\\/463215.jpg\"}', 'upc' => '014551010425', 'provider' => 'bestbuy'],\n ['name' => \"While We Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/while-we-live-cd/463242.p?id=98035&skuId=463242&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=463242', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4632\\/463242_sa.jpg\"}', 'upc' => '033651004523', 'provider' => 'bestbuy'],\n ['name' => \"Pain in My Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pain-in-my-heart-cd/463849.p?id=96228&skuId=463849&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=463849', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4638\\/463849_sa.jpg\"}', 'upc' => '075678025327', 'provider' => 'bestbuy'],\n ['name' => \"Comfort Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/comfort-me-cd/463910.p?id=101709&skuId=463910&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=463910', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4639\\/463910.jpg\"}', 'upc' => '075678032929', 'provider' => 'bestbuy'],\n ['name' => \"Double Dynamite - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/double-dynamite-cd/463938.p?id=97788&skuId=463938&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=463938', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4639\\/463938.jpg\"}', 'upc' => '075678030529', 'provider' => 'bestbuy'],\n ['name' => \"Lynyrd Skynyrd [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 48.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lynyrd-skynyrd-box-cd/464928.p?id=90004&skuId=464928&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=464928', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4649\\/464928_sa.jpg\"}', 'upc' => '008811039028', 'provider' => 'bestbuy'],\n ['name' => \"Gold - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gold-cd/464982.p?id=100271&skuId=464982&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=464982', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4649\\/464982_sa.jpg\"}', 'upc' => '008811038724', 'provider' => 'bestbuy'],\n ['name' => \"Return to the Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/return-to-the-heart-cd/465053.p?id=88652&skuId=465053&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=465053', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4650\\/465053.jpg\"}', 'upc' => '083616400525', 'provider' => 'bestbuy'],\n ['name' => \"Walt Disney's Fantasia [Original Soundtrack] - CD - Remastered Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/walt-disneys-fantasia-original-soundtrack-cd-remastered-original-soundtrack/465240.p?id=3558067&skuId=465240&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=465240', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0465\\/0465240_sa.jpg\"}', 'upc' => '050086000777', 'provider' => 'bestbuy'],\n ['name' => \"Otello - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 31.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/otello-cd/466016.p?id=1682209&skuId=466016&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466016', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4660\\/466016.jpg\"}', 'upc' => '028943366922', 'provider' => 'bestbuy'],\n ['name' => \"Keep It Comin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/keep-it-comin-cd/466276.p?id=100962&skuId=466276&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466276', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0466\\/0466276_sa.jpg\"}', 'upc' => '075596121620', 'provider' => 'bestbuy'],\n ['name' => \"The Songstress - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-songstress-cd/466356.p?id=73745&skuId=466356&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466356', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4663\\/466356_sa.jpg\"}', 'upc' => '075596111621', 'provider' => 'bestbuy'],\n ['name' => \"The Works [Bonus Tracks] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-works-bonus-tracks-cd/466374.p?id=95718&skuId=466374&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466374', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4663\\/466374_sa.jpg\"}', 'upc' => '720616123329', 'provider' => 'bestbuy'],\n ['name' => \"Kick Out The Jams - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kick-out-the-jams-cd/466409.p?id=2116997&skuId=466409&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466409', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0466\\/0466409_sa.jpg\"}', 'upc' => '075596089425', 'provider' => 'bestbuy'],\n ['name' => \"Shepherd Moons - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shepherd-moons-cd/466454.p?id=81639&skuId=466454&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466454', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0466\\/0466454_sa.jpg\"}', 'upc' => '075992677523', 'provider' => 'bestbuy'],\n ['name' => \"Back Home Again - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/back-home-again-cd/466542.p?id=97123&skuId=466542&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466542', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0466\\/0466542_sa.jpg\"}', 'upc' => '075992674027', 'provider' => 'bestbuy'],\n ['name' => \"Arc - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/arc-cd/466622.p?id=105076&skuId=466622&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466622', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0466\\/0466622_sa.jpg\"}', 'upc' => '075992676922', 'provider' => 'bestbuy'],\n ['name' => \"Commitments (Original Artists Recordings of... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/commitments-original-artists-recordings-of-cd-various/466659.p?id=78444&skuId=466659&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466659', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4666\\/466659_sa.jpg\"}', 'upc' => '075679181329', 'provider' => 'bestbuy'],\n ['name' => \"Sticks and Stones - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sticks-and-stones-cd/466695.p?id=88827&skuId=466695&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466695', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4666\\/466695_sa.jpg\"}', 'upc' => '075678232626', 'provider' => 'bestbuy'],\n ['name' => \"Live at Birdland West - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-birdland-west-cd/466711.p?id=63587&skuId=466711&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466711', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0466\\/0466711_sa.jpg\"}', 'upc' => '075678233425', 'provider' => 'bestbuy'],\n ['name' => \"The Music of Andrew Lloyd Webber - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-music-of-andrew-lloyd-webber-cd/466748.p?id=79113&skuId=466748&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466748', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0466\\/0466748_sa.jpg\"}', 'upc' => '075678234729', 'provider' => 'bestbuy'],\n ['name' => \"Natural Selection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/natural-selection-cd/466766.p?id=92899&skuId=466766&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466766', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4667\\/466766.jpg\"}', 'upc' => '075679178725', 'provider' => 'bestbuy'],\n ['name' => \"2Pacalypse Now [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2pacalypse-now-pa-cd/466784.p?id=102648&skuId=466784&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466784', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0466\\/0466784_sa.jpg\"}', 'upc' => '012414163325', 'provider' => 'bestbuy'],\n ['name' => \"Once More...With Feeling! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/once-more-with-feeling-cd/466926.p?id=70775&skuId=466926&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=466926', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0466\\/0466926_sa.jpg\"}', 'upc' => '051617440529', 'provider' => 'bestbuy'],\n ['name' => \"The Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-collection-cd/467266.p?id=78309&skuId=467266&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=467266', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4672\\/467266_sa.jpg\"}', 'upc' => '077774661928', 'provider' => 'bestbuy'],\n ['name' => \"The Best of George Harrison - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-george-harrison-cd/467275.p?id=84873&skuId=467275&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=467275', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0467\\/0467275_sa.jpg\"}', 'upc' => '077774668224', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits Live [Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-live-capitol-cd/467300.p?id=73615&skuId=467300&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=467300', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4673\\/467300.jpg\"}', 'upc' => '715187732827', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits of Maze Featuring Frankie... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-of-maze-featuring-frankie-cd/467328.p?id=90927&skuId=467328&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=467328', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4673\\/467328_sa.jpg\"}', 'upc' => '077779281022', 'provider' => 'bestbuy'],\n ['name' => \"The Ultimate Collection (1948-1990) [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-ultimate-collection-1948-1990-box-cd/468023.p?id=85629&skuId=468023&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468023', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0468\\/0468023_sa.jpg\"}', 'upc' => '081227057220', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Bob Welch - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-bob-welch-cd/468069.p?id=103746&skuId=468069&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468069', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0468\\/0468069_sa.jpg\"}', 'upc' => '081227059729', 'provider' => 'bestbuy'],\n ['name' => \"Mardi Gras in Baton Rouge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mardi-gras-in-baton-rouge-cd/468078.p?id=95567&skuId=468078&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468078', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4680\\/468078_sa.jpg\"}', 'upc' => '081227073626', 'provider' => 'bestbuy'],\n ['name' => \"Bayou Lightning - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bayou-lightning-cd/468372.p?id=76040&skuId=468372&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468372', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4683\\/468372_sa.jpg\"}', 'upc' => '014551471424', 'provider' => 'bestbuy'],\n ['name' => \"Crawfish Fiesta - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crawfish-fiesta-cd/468381.p?id=95562&skuId=468381&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468381', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4683\\/468381.jpg\"}', 'upc' => '014551471820', 'provider' => 'bestbuy'],\n ['name' => \"Live in Japan - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-in-japan-cd/468390.p?id=78332&skuId=468390&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468390', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0468\\/0468390_sa.jpg\"}', 'upc' => '014551473329', 'provider' => 'bestbuy'],\n ['name' => \"High Compression - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/high-compression-cd/468425.p?id=3370629&skuId=468425&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468425', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4684\\/468425_sa.jpg\"}', 'upc' => '014551473725', 'provider' => 'bestbuy'],\n ['name' => \"Strike Like Lightning - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/strike-like-lightning-cd/468434.p?id=90072&skuId=468434&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468434', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4684\\/468434_sa.jpg\"}', 'upc' => '014551473923', 'provider' => 'bestbuy'],\n ['name' => \"When a Guitar Plays the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/when-a-guitar-plays-the-blues-cd/468443.p?id=76200&skuId=468443&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468443', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4684\\/468443.jpg\"}', 'upc' => '014551474128', 'provider' => 'bestbuy'],\n ['name' => \"Serious Business - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/serious-business-cd/468452.p?id=104512&skuId=468452&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468452', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4684\\/468452_sa.jpg\"}', 'upc' => '014551474227', 'provider' => 'bestbuy'],\n ['name' => \"Second Sight - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/second-sight-cd/468461.p?id=90071&skuId=468461&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468461', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4684\\/468461_sa.jpg\"}', 'upc' => '014551475026', 'provider' => 'bestbuy'],\n ['name' => \"Smiling Phases: Best Of 1967-1974 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/smiling-phases-best-of-1967-1974-cd/468559.p?id=1531713&skuId=468559&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468559', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4685\\/468559_sa.jpg\"}', 'upc' => '731451055324', 'provider' => 'bestbuy'],\n ['name' => \"Laughing Stock - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/laughing-stock-cd/468657.p?id=101123&skuId=468657&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468657', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0468\\/0468657_sa.jpg\"}', 'upc' => '042284771726', 'provider' => 'bestbuy'],\n ['name' => \"Frankie and Johnny - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/frankie-and-johnny-cd-original-soundtrack/468835.p?id=82889&skuId=468835&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468835', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0468\\/0468835_sa.jpg\"}', 'upc' => '715187753426', 'provider' => 'bestbuy'],\n ['name' => \"Por Fin Juntos - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/por-fin-juntos-cd/468871.p?id=80727&skuId=468871&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=468871', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4688\\/468871.jpg\"}', 'upc' => '077774262422', 'provider' => 'bestbuy'],\n ['name' => \"From Time to Time: The Singles Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/from-time-to-time-the-singles-collection-cd/469004.p?id=105084&skuId=469004&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=469004', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0469\\/0469004_sa.jpg\"}', 'upc' => '074644882926', 'provider' => 'bestbuy'],\n ['name' => \"Romance - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/romance-cd/469120.p?id=1373933&skuId=469120&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=469120', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0469\\/0469120_sa.jpg\"}', 'upc' => '090317580524', 'provider' => 'bestbuy'],\n ['name' => \"Monty Python Sings - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/monty-python-sings-cd/469246.p?id=92156&skuId=469246&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=469246', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4692\\/469246_sa.jpg\"}', 'upc' => '077778625322', 'provider' => 'bestbuy'],\n ['name' => \"Knocking at Your Back Door: The Best of Deep... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/knocking-at-your-back-door-the-best-of-deep-cd/469273.p?id=1811413&skuId=469273&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=469273', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0469\\/0469273_sa.jpg\"}', 'upc' => '731451143823', 'provider' => 'bestbuy'],\n ['name' => \"The Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-collection-cd/469308.p?id=90284&skuId=469308&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=469308', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4693\\/469308_sa.jpg\"}', 'upc' => '042284927123', 'provider' => 'bestbuy'],\n ['name' => \"Live from Chicago - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-from-chicago-cd/469362.p?id=3331231&skuId=469362&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=469362', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0469\\/0469362_sa.jpg\"}', 'upc' => '014551475422', 'provider' => 'bestbuy'],\n ['name' => \"Hot Wires - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hot-wires-cd/469399.p?id=76191&skuId=469399&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=469399', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4693\\/469399.jpg\"}', 'upc' => '014551475620', 'provider' => 'bestbuy'],\n ['name' => \"Edge of the City - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/edge-of-the-city-cd/469406.p?id=88152&skuId=469406&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=469406', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4694\\/469406.jpg\"}', 'upc' => '014551475828', 'provider' => 'bestbuy'],\n ['name' => \"Live from Chicago - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-from-chicago-cd/469415.p?id=76035&skuId=469415&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=469415', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0469\\/0469415_sa.jpg\"}', 'upc' => '014551475927', 'provider' => 'bestbuy'],\n ['name' => \"The Swamp Boogie Queen - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-swamp-boogie-queen-cd/469424.p?id=103716&skuId=469424&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=469424', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4694\\/469424.jpg\"}', 'upc' => '014551476627', 'provider' => 'bestbuy'],\n ['name' => \"Portrait of the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/portrait-of-the-blues-cd/470662.p?id=74996&skuId=470662&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=470662', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0470\\/0470662_sa.jpg\"}', 'upc' => '048021745821', 'provider' => 'bestbuy'],\n ['name' => \"The Best Part of the Fat Boys - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-part-of-the-fat-boys-cd/470797.p?id=1365886&skuId=470797&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=470797', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '019011411828', 'provider' => 'bestbuy'],\n ['name' => \"Stuck on You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stuck-on-you-cd/470877.p?id=2390062&skuId=470877&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=470877', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0470\\/0470877_sa.jpg\"}', 'upc' => '715776889321', 'provider' => 'bestbuy'],\n ['name' => \"Alone & Acoustic - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alone-acoustic-cd/470902.p?id=84490&skuId=470902&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=470902', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4709\\/470902.jpg\"}', 'upc' => '014551480228', 'provider' => 'bestbuy'],\n ['name' => \"No Foolin'! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/no-foolin-cd/470911.p?id=103715&skuId=470911&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=470911', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4709\\/470911.jpg\"}', 'upc' => '014551480327', 'provider' => 'bestbuy'],\n ['name' => \"Fine and Mellow - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fine-and-mellow-cd/470966.p?id=75983&skuId=470966&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=470966', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0470\\/0470966_sa.jpg\"}', 'upc' => '025218966320', 'provider' => 'bestbuy'],\n ['name' => \"This Is Big Audio Dynamite - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/this-is-big-audio-dynamite-cd/471000.p?id=74583&skuId=471000&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=471000', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0471\\/0471000_sa.jpg\"}', 'upc' => '074644022025', 'provider' => 'bestbuy'],\n ['name' => \"Bleach - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bleach-cd/471055.p?id=93414&skuId=471055&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=471055', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4710\\/471055_sa.jpg\"}', 'upc' => '098787003420', 'provider' => 'bestbuy'],\n ['name' => \"Original Dueling Banjos - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/original-dueling-banjos-cd/471233.p?id=287311&skuId=471233&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=471233', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0471\\/0471233_sa.jpg\"}', 'upc' => '027297490024', 'provider' => 'bestbuy'],\n ['name' => \"Boomtown - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/boomtown-cd/471590.p?id=79825&skuId=471590&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=471590', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0471\\/0471590_sa.jpg\"}', 'upc' => '075021513426', 'provider' => 'bestbuy'],\n ['name' => \"Seven Year Itch - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/seven-year-itch-cd/471616.p?id=86635&skuId=471616&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=471616', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4716\\/471616_sa.jpg\"}', 'upc' => '042284265522', 'provider' => 'bestbuy'],\n ['name' => \"A Very Special Christmas - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-very-special-christmas-cd-various/471947.p?id=77621&skuId=471947&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=471947', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4719\\/471947_sa.jpg\"}', 'upc' => '075021391123', 'provider' => 'bestbuy'],\n ['name' => \"Reckless - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reckless-cd/471965.p?id=72465&skuId=471965&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=471965', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4719\\/471965.jpg\"}', 'upc' => '075021501324', 'provider' => 'bestbuy'],\n ['name' => \"Chicken, Gravy and Biscuits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chicken-gravy-and-biscuits-cd/472401.p?id=89269&skuId=472401&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=472401', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0472\\/0472401_sa.jpg\"}', 'upc' => '014551477228', 'provider' => 'bestbuy'],\n ['name' => \"Capitol Collectors Series - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/capitol-collectors-series-cd/472731.p?id=73018&skuId=472731&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=472731', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4727\\/472731.jpg\"}', 'upc' => '077779407828', 'provider' => 'bestbuy'],\n ['name' => \"Capitol Collectors Series - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/capitol-collectors-series-cd/472768.p?id=82750&skuId=472768&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=472768', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4727\\/472768.jpg\"}', 'upc' => '077779319725', 'provider' => 'bestbuy'],\n ['name' => \"The Capitol Collectors Series - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-capitol-collectors-series-cd/472777.p?id=91444&skuId=472777&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=472777', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0472\\/0472777_sa.jpg\"}', 'upc' => '077779212521', 'provider' => 'bestbuy'],\n ['name' => \"The Capitol Collector's Series - CASSETTE\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-capitol-collectors-series-cassette/472802.p?id=286555&skuId=472802&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=472802', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0472\\/0472802_sa.jpg\"}', 'upc' => '762185181744', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/greatest-hits-vol-1-cd/472900.p?id=82760&skuId=472900&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=472900', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0472\\/0472900_sa.jpg\"}', 'upc' => '081227059422', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/greatest-hits-vol-2-cd/472928.p?id=82761&skuId=472928&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=472928', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4729\\/472928_sa.jpg\"}', 'upc' => '081227059521', 'provider' => 'bestbuy'],\n ['name' => \"The Hermit - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-hermit-cd/473222.p?id=323585&skuId=473222&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=473222', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4732\\/473222_sa.jpg\"}', 'upc' => '016351971425', 'provider' => 'bestbuy'],\n ['name' => \"Airs and Graces - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/airs-and-graces-cd/473277.p?id=101077&skuId=473277&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=473277', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4732\\/473277_sa.jpg\"}', 'upc' => '016351795526', 'provider' => 'bestbuy'],\n ['name' => \"Bandwagonesque - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bandwagonesque-cd/473295.p?id=101333&skuId=473295&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=473295', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4732\\/473295.jpg\"}', 'upc' => '720642446126', 'provider' => 'bestbuy'],\n ['name' => \"Ten Strait Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ten-strait-hits-cd/473339.p?id=1540124&skuId=473339&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=473339', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0473\\/0473339_sa.jpg\"}', 'upc' => '008811045029', 'provider' => 'bestbuy'],\n ['name' => \"Juice [PA] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/juice-pa-cd-original-soundtrack/473384.p?id=87489&skuId=473384&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=473384', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4733\\/473384.jpg\"}', 'upc' => '008811046224', 'provider' => 'bestbuy'],\n ['name' => \"Masters of the Delta Blues: The Friends of... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/masters-of-the-delta-blues-the-friends-of-cd-various/473400.p?id=94528&skuId=473400&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=473400', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4734\\/473400_sa.jpg\"}', 'upc' => '016351020222', 'provider' => 'bestbuy'],\n ['name' => \"Black Melodies on a Clear Afternoon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/black-melodies-on-a-clear-afternoon-cd/473419.p?id=84312&skuId=473419&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=473419', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4734\\/473419_sa.jpg\"}', 'upc' => '016351981127', 'provider' => 'bestbuy'],\n ['name' => \"Do That Guitar Rag (1928-1935) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/do-that-guitar-rag-1928-1935-cd/473455.p?id=156042&skuId=473455&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=473455', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0473\\/0473455_sa.jpg\"}', 'upc' => '016351013521', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/473464.p?id=91318&skuId=473464&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=473464', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0473\\/0473464_sa.jpg\"}', 'upc' => '016351431523', 'provider' => 'bestbuy'],\n ['name' => \"Fried Green Tomatoes [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fried-green-tomatoes-original-soundtrack-cd-original-soundtrack/473721.p?id=82986&skuId=473721&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=473721', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4737\\/473721_sa.jpg\"}', 'upc' => '008811046125', 'provider' => 'bestbuy'],\n ['name' => \"Copperhead Road - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/copperhead-road-cd/474132.p?id=81232&skuId=474132&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=474132', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0474\\/0474132_sa.jpg\"}', 'upc' => '039405000728', 'provider' => 'bestbuy'],\n ['name' => \"DJ Laz featuring Mami El Negro - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dj-laz-featuring-mami-el-negro-cd/474597.p?id=167515&skuId=474597&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=474597', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4745\\/474597.jpg\"}', 'upc' => '054291881725', 'provider' => 'bestbuy'],\n ['name' => \"Crosscut Saw: Albert King in San Francisco - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crosscut-saw-albert-king-in-san-francisco-cd/474631.p?id=87881&skuId=474631&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=474631', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0474\\/0474631_sa.jpg\"}', 'upc' => '025218857123', 'provider' => 'bestbuy'],\n ['name' => \"Dirt Road - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dirt-road-cd/474800.p?id=97983&skuId=474800&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=474800', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4748\\/474800.jpg\"}', 'upc' => '715187757523', 'provider' => 'bestbuy'],\n ['name' => \"Foxbase Alpha - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/foxbase-alpha-cd/475471.p?id=97737&skuId=475471&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=475471', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4754\\/475471_sa.jpg\"}', 'upc' => '075992679329', 'provider' => 'bestbuy'],\n ['name' => \"Magic & Loss - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/magic-loss-cd/475523.p?id=2390270&skuId=475523&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=475523', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4755\\/475523_sa.jpg\"}', 'upc' => '075992666220', 'provider' => 'bestbuy'],\n ['name' => \"At the Ryman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-the-ryman-cd/475569.p?id=84854&skuId=475569&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=475569', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0475\\/0475569_sa.jpg\"}', 'upc' => '075992666428', 'provider' => 'bestbuy'],\n ['name' => \"The Remix Hit Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-remix-hit-collection-cd/475916.p?id=81930&skuId=475916&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=475916', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4759\\/475916_sa.jpg\"}', 'upc' => '075992679626', 'provider' => 'bestbuy'],\n ['name' => \"N.W.A and the Posse [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/n-w-a-and-the-posse-pa-cd/476078.p?id=93611&skuId=476078&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=476078', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4760\\/476078_sa.jpg\"}', 'upc' => '049925711929', 'provider' => 'bestbuy'],\n ['name' => \"Here I Go Again - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/here-i-go-again-cd/476675.p?id=87270&skuId=476675&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=476675', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4766\\/476675_sa.jpg\"}', 'upc' => '075678235221', 'provider' => 'bestbuy'],\n ['name' => \"Spotlight on Lucille - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spotlight-on-lucille-cd/476719.p?id=87939&skuId=476719&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=476719', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0476\\/0476719_sa.jpg\"}', 'upc' => '077778623120', 'provider' => 'bestbuy'],\n ['name' => \"Shoot Out the Lights - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shoot-out-the-lights-cd/476791.p?id=101691&skuId=476791&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=476791', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0476\\/0476791_sa.jpg\"}', 'upc' => '031257130325', 'provider' => 'bestbuy'],\n ['name' => \"Havana Daydreamin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/havana-daydreamin-cd/476808.p?id=76269&skuId=476808&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=476808', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0476\\/0476808_sa.jpg\"}', 'upc' => '076731109329', 'provider' => 'bestbuy'],\n ['name' => \"The Major Works of John Coltrane - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 21.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-major-works-of-john-coltrane-cd/476951.p?id=65176&skuId=476951&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=476951', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0476\\/0476951_sa.jpg\"}', 'upc' => '011105011327', 'provider' => 'bestbuy'],\n ['name' => \"Father of the Bride [Music from the Motion... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/father-of-the-bride-music-from-the-motion-cd-original-soundtrack/476988.p?id=82020&skuId=476988&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=476988', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0476\\/0476988_sa.jpg\"}', 'upc' => '030206534825', 'provider' => 'bestbuy'],\n ['name' => \"Finally - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/finally-cd/477120.p?id=94636&skuId=477120&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=477120', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4771\\/477120_sa.jpg\"}', 'upc' => '075021538122', 'provider' => 'bestbuy'],\n ['name' => \"People Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/people-time-cd/477200.p?id=66629&skuId=477200&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=477200', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4772\\/477200_sa.jpg\"}', 'upc' => '731451082320', 'provider' => 'bestbuy'],\n ['name' => \"A Man Called E - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-man-called-e-cd/477282.p?id=81188&skuId=477282&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=477282', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4772\\/477282_sa.jpg\"}', 'upc' => '731451157028', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Con Funk Shun - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-con-funk-shun-cd/477308.p?id=78492&skuId=477308&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=477308', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0477\\/0477308_sa.jpg\"}', 'upc' => '731451027529', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Chet Baker Plays - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-chet-baker-plays-cd/477460.p?id=63888&skuId=477460&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=477460', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0477\\/0477460_sa.jpg\"}', 'upc' => '077779716128', 'provider' => 'bestbuy'],\n ['name' => \"No Looking Back - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/no-looking-back-cd/477488.p?id=75893&skuId=477488&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=477488', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4774\\/477488.jpg\"}', 'upc' => '014551480426', 'provider' => 'bestbuy'],\n ['name' => \"Every Good Boy Deserves Fudge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/every-good-boy-deserves-fudge-cd/477754.p?id=92572&skuId=477754&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=477754', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0477\\/0477754_sa.jpg\"}', 'upc' => '098787010527', 'provider' => 'bestbuy'],\n ['name' => \"Screaming Life/Fopp - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/screaming-life-fopp-cd/477772.p?id=99671&skuId=477772&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=477772', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0477\\/0477772_sa.jpg\"}', 'upc' => '098787001228', 'provider' => 'bestbuy'],\n ['name' => \"Smoke 'Em If You Got 'Em - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/smoke-em-if-you-got-em-cd/477834.p?id=85138&skuId=477834&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=477834', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4778\\/477834_sa.jpg\"}', 'upc' => '098787009620', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Radio Installation Dash Kit for Select Ford, Mazda and Mercury Vehicles (Pair) - Black\", 'description_short' => \"From our expanded online assortment; compatible with select Ford, Mazda and Mercury vehicles; allows the installation of an aftermarket radio into the factory dash location; high-grade ABS plastic material\", 'description_long' => \"From our expanded online assortment; compatible with select Ford, Mazda and Mercury vehicles; allows the installation of an aftermarket radio into the factory dash location; high-grade ABS plastic material\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-radio-installation-dash-kit-for-select-ford-mazda-and-mercury-vehicles-pair-black/478398.p?id=1185268614282&skuId=478398&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=478398', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4783\\/478398_rc.jpg\"}', 'upc' => '086429018871', 'provider' => 'bestbuy'],\n ['name' => \"Moods & Moment [Reissue] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moods-moment-reissue-cd/479039.p?id=93276&skuId=479039&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479039', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479039_sa.jpg\"}', 'upc' => '715187755628', 'provider' => 'bestbuy'],\n ['name' => \"Dark Horse - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dark-horse-cd/479084.p?id=84876&skuId=479084&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479084', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479084_sa.jpg\"}', 'upc' => '077779807925', 'provider' => 'bestbuy'],\n ['name' => \"Extra Texture - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/extra-texture-cd/479093.p?id=2451431&skuId=479093&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479093', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479093_sa.jpg\"}', 'upc' => '077779808021', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Lee Greenwood [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-lee-greenwood-curb-cd/479137.p?id=84207&skuId=479137&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479137', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4791\\/479137.jpg\"}', 'upc' => '715187755925', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Bob Wills, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-bob-wills-vol-1-cd/479173.p?id=104350&skuId=479173&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479173', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479173_sa.jpg\"}', 'upc' => '076732591727', 'provider' => 'bestbuy'],\n ['name' => \"20 Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/20-greatest-hits-cd/479235.p?id=104079&skuId=479235&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479235', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4792\\/479235_sa.jpg\"}', 'upc' => '076732594421', 'provider' => 'bestbuy'],\n ['name' => \"Live [MCA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-mca-cd/479262.p?id=100315&skuId=479262&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479262', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479262_sa.jpg\"}', 'upc' => '076732601327', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Liberace - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-liberace-cd/479306.p?id=89196&skuId=479306&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479306', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479306_sa.jpg\"}', 'upc' => '076732406021', 'provider' => 'bestbuy'],\n ['name' => \"Flying Cowboys - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/flying-cowboys-cd/479315.p?id=1365898&skuId=479315&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479315', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479315_sa.jpg\"}', 'upc' => '720642424629', 'provider' => 'bestbuy'],\n ['name' => \"Great Moments with B.B. King - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/great-moments-with-b-b-king-cd/479360.p?id=87920&skuId=479360&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479360', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479360_sa.jpg\"}', 'upc' => '076732412428', 'provider' => 'bestbuy'],\n ['name' => \"In The Spirit Of Things - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-the-spirit-of-things-cd/479379.p?id=87602&skuId=479379&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479379', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479379_sa.jpg\"}', 'upc' => '076732625422', 'provider' => 'bestbuy'],\n ['name' => \"Man from Snowy River [Original Motion Picture... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/man-from-snowy-river-original-motion-picture-cd-original-soundtrack/479422.p?id=90311&skuId=479422&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479422', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479422_sa.jpg\"}', 'upc' => '030206816723', 'provider' => 'bestbuy'],\n ['name' => \"Southern by the Grace of God: Lynyrd Skynyrd... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/southern-by-the-grace-of-god-lynyrd-skynyrd-cd/479468.p?id=90016&skuId=479468&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479468', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479468_sa.jpg\"}', 'upc' => '076732802724', 'provider' => 'bestbuy'],\n ['name' => \"20 Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/20-greatest-hits-cd/479495.p?id=102618&skuId=479495&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479495', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4794\\/479495_sa.jpg\"}', 'upc' => '076732597521', 'provider' => 'bestbuy'],\n ['name' => \"Up From the Ashes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/up-from-the-ashes-cd/479529.p?id=1543859&skuId=479529&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479529', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479529_sa.jpg\"}', 'upc' => '720642430125', 'provider' => 'bestbuy'],\n ['name' => \"Cry-Baby [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cry-baby-original-soundtrack-cd-original-soundtrack/479583.p?id=79380&skuId=479583&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479583', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479583_sa.jpg\"}', 'upc' => '076732803820', 'provider' => 'bestbuy'],\n ['name' => \"Will the Circle Be Unbroken, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/will-the-circle-be-unbroken-vol-2-cd/479645.p?id=93432&skuId=479645&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479645', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4796\\/479645_sa.jpg\"}', 'upc' => '076731250021', 'provider' => 'bestbuy'],\n ['name' => \"Les Incontournables de Salsa - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/les-incontournables-de-salsa-cd-original-soundtrack/479734.p?id=97770&skuId=479734&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479734', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4797\\/479734_sa.jpg\"}', 'upc' => '076732623220', 'provider' => 'bestbuy'],\n ['name' => \"Hairspray - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hairspray-cd-original-soundtrack/479841.p?id=84625&skuId=479841&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479841', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479841_sa.jpg\"}', 'upc' => '076732622827', 'provider' => 'bestbuy'],\n ['name' => \"Pack Up the Plantation: Live! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pack-up-the-plantation-live-cd/479869.p?id=94824&skuId=479869&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479869', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479869_sa.jpg\"}', 'upc' => '076732802120', 'provider' => 'bestbuy'],\n ['name' => \"In Square Circle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-square-circle-cd/479896.p?id=2293792&skuId=479896&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479896', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479896_sa.jpg\"}', 'upc' => '737463613422', 'provider' => 'bestbuy'],\n ['name' => \"Rev It Up - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rev-it-up-cd/479912.p?id=1392424&skuId=479912&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479912', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479912_sa.jpg\"}', 'upc' => '077779292325', 'provider' => 'bestbuy'],\n ['name' => \"Recorded Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/recorded-live-cd/479949.p?id=101421&skuId=479949&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479949', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0479\\/0479949_sa.jpg\"}', 'upc' => '094632104922', 'provider' => 'bestbuy'],\n ['name' => \"Yule Struttin' - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/yule-struttin-cd-various/479967.p?id=64977&skuId=479967&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479967', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4799\\/479967_sa.jpg\"}', 'upc' => '077779485727', 'provider' => 'bestbuy'],\n ['name' => \"Sunshine on Leith - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sunshine-on-leith-cd/479994.p?id=243729&skuId=479994&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=479994', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4799\\/479994_sa.jpg\"}', 'upc' => '094632166821', 'provider' => 'bestbuy'],\n ['name' => \"Anthology 1961-1968 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/anthology-1961-1968-cd/480009.p?id=95008&skuId=480009&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=480009', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0480\\/0480009_sa.jpg\"}', 'upc' => '081227589622', 'provider' => 'bestbuy'],\n ['name' => \"Live in New Orleans - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-in-new-orleans-cd/480036.p?id=90924&skuId=480036&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=480036', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4800\\/480036_sa.jpg\"}', 'upc' => '077774665926', 'provider' => 'bestbuy'],\n ['name' => \"Shaved Fish - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shaved-fish-cd/480107.p?id=89043&skuId=480107&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=480107', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0480\\/0480107_sa.jpg\"}', 'upc' => '077774664226', 'provider' => 'bestbuy'],\n ['name' => \"Walls & Bridges - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/walls-bridges-cd/480134.p?id=89041&skuId=480134&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=480134', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4801\\/480134_sa.jpg\"}', 'upc' => '077774676823', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Jon & Vangelis - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-jon-vangelis-cd/481286.p?id=87222&skuId=481286&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481286', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0481\\/0481286_sa.jpg\"}', 'upc' => '042282192929', 'provider' => 'bestbuy'],\n ['name' => \"The Köln Concert [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-koln-concert-digdownload-cd/481295.p?id=67875&skuId=481295&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481295', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4812\\/481295.jpg\"}', 'upc' => '042281006722', 'provider' => 'bestbuy'],\n ['name' => \"Eyes of the Heart [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/eyes-of-the-heart-digdownload-cd/481302.p?id=67877&skuId=481302&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481302', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4813\\/481302.jpg\"}', 'upc' => '042282547620', 'provider' => 'bestbuy'],\n ['name' => \"My Song - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-song-cd/481320.p?id=67878&skuId=481320&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481320', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0481\\/0481320_sa.jpg\"}', 'upc' => '042282140623', 'provider' => 'bestbuy'],\n ['name' => \"Jazzvisions: Rio Revisited - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazzvisions-rio-revisited-cd-various/481375.p?id=70337&skuId=481375&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481375', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4813\\/481375_sa.jpg\"}', 'upc' => '042284128629', 'provider' => 'bestbuy'],\n ['name' => \"Rockin' the Fillmore - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rockin-the-fillmore-cd/481400.p?id=85916&skuId=481400&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481400', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4814\\/481400_sa.jpg\"}', 'upc' => '075021600829', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/481419.p?id=1383366&skuId=481419&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481419', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4814\\/481419.jpg\"}', 'upc' => '042282036728', 'provider' => 'bestbuy'],\n ['name' => \"On the Road - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/on-the-road-cd/481525.p?id=2305096&skuId=481525&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481525', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4815\\/481525.jpg\"}', 'upc' => '042284289320', 'provider' => 'bestbuy'],\n ['name' => \"Stay Awake: Various Interpretations of Music... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stay-awake-various-interpretations-of-music-cd-various/481570.p?id=100214&skuId=481570&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481570', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4815\\/481570_sa.jpg\"}', 'upc' => '075021391826', 'provider' => 'bestbuy'],\n ['name' => \"Oscar Peterson Plays the Cole Porter Song Book - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/oscar-peterson-plays-the-cole-porter-song-book-cd/481650.p?id=69946&skuId=481650&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481650', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4816\\/481650_sa.jpg\"}', 'upc' => '042282198723', 'provider' => 'bestbuy'],\n ['name' => \"Mantovani's Golden Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mantovanis-golden-hits-cd/481785.p?id=90465&skuId=481785&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481785', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0481\\/0481785_sa.jpg\"}', 'upc' => '042280008529', 'provider' => 'bestbuy'],\n ['name' => \"A Hard Road - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-hard-road-cd/481829.p?id=2276476&skuId=481829&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481829', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0481\\/0481829_sa.jpg\"}', 'upc' => '042282047427', 'provider' => 'bestbuy'],\n ['name' => \"Carved in Sand - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/carved-in-sand-cd/481927.p?id=91905&skuId=481927&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481927', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4819\\/481927_sa.jpg\"}', 'upc' => '042284225120', 'provider' => 'bestbuy'],\n ['name' => \"Pat Metheny Group [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pat-metheny-group-digdownload-cd/481972.p?id=69075&skuId=481972&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481972', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4819\\/481972.jpg\"}', 'upc' => '042282559326', 'provider' => 'bestbuy'],\n ['name' => \"Bright Size Life [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bright-size-life-digdownload-cd/481981.p?id=2434344&skuId=481981&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=481981', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4819\\/481981.jpg\"}', 'upc' => '042282713322', 'provider' => 'bestbuy'],\n ['name' => \"Watercolors [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/watercolors-digdownload-cd/482007.p?id=2411925&skuId=482007&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482007', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4820\\/482007.jpg\"}', 'upc' => '042282740922', 'provider' => 'bestbuy'],\n ['name' => \"As Falls Wichita, So... [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/as-falls-wichita-so-digdownload-cd/482016.p?id=69080&skuId=482016&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482016', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4820\\/482016.jpg\"}', 'upc' => '042282141620', 'provider' => 'bestbuy'],\n ['name' => \"Odyssey - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/odyssey-cd/482123.p?id=90282&skuId=482123&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482123', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0482\\/0482123_sa.jpg\"}', 'upc' => '042283545120', 'provider' => 'bestbuy'],\n ['name' => \"Ella in Rome: The Birthday Concert - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ella-in-rome-the-birthday-concert-cd/482221.p?id=66296&skuId=482221&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482221', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4822\\/482221_sa.jpg\"}', 'upc' => '042283545427', 'provider' => 'bestbuy'],\n ['name' => \"Porgy & Bess - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/porgy-bess-cd/482230.p?id=3382805&skuId=482230&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482230', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4822\\/482230_sa.jpg\"}', 'upc' => '042282747525', 'provider' => 'bestbuy'],\n ['name' => \"These Are the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/these-are-the-blues-cd/482249.p?id=66351&skuId=482249&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482249', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4822\\/482249_sa.jpg\"}', 'upc' => '042282953629', 'provider' => 'bestbuy'],\n ['name' => \"Ella Fitzgerald Sings the Cole Porter... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ella-fitzgerald-sings-the-cole-porter-cd/482276.p?id=66282&skuId=482276&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482276', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4822\\/482276_sa.jpg\"}', 'upc' => '042282198921', 'provider' => 'bestbuy'],\n ['name' => \"Nobody's Perfect [1-CD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nobodys-perfect-1-cd-cd/482374.p?id=172481&skuId=482374&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482374', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0482\\/0482374_sa.jpg\"}', 'upc' => '042283589728', 'provider' => 'bestbuy'],\n ['name' => \"Alone - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alone-cd/482409.p?id=263833&skuId=482409&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482409', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0482\\/0482409_sa.jpg\"}', 'upc' => '042283380127', 'provider' => 'bestbuy'],\n ['name' => \"Empathy/A Simple Matter of Conviction - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/empathy-a-simple-matter-of-conviction-cd/482418.p?id=66100&skuId=482418&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482418', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0482\\/0482418_sa.jpg\"}', 'upc' => '042283775725', 'provider' => 'bestbuy'],\n ['name' => \"Liege & Lief - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/liege-lief-cd/482436.p?id=81904&skuId=482436&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482436', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0482\\/0482436_sa.jpg\"}', 'upc' => '075021425729', 'provider' => 'bestbuy'],\n ['name' => \"Blazing Away: Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blazing-away-live-cd/482445.p?id=1531709&skuId=482445&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482445', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4824\\/482445.jpg\"}', 'upc' => '042284279420', 'provider' => 'bestbuy'],\n ['name' => \"Marianne Faithfull's Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/marianne-faithfulls-greatest-hits-cd/482463.p?id=81914&skuId=482463&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482463', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4824\\/482463_sa.jpg\"}', 'upc' => '018771754725', 'provider' => 'bestbuy'],\n ['name' => \"The Hot Spot [Original Soundtrack] - Original Soundtrack - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-hot-spot-original-soundtrack-original-soundtrack-cd/482757.p?id=85773&skuId=482757&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482757', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0482\\/0482757_sa.jpg\"}', 'upc' => '042284681322', 'provider' => 'bestbuy'],\n ['name' => \"Stan Getz & Bill Evans - CD - Germany\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stan-getz-bill-evans-cd-germany/482793.p?id=66621&skuId=482793&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482793', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0482\\/0482793_sa.jpg\"}', 'upc' => '042283380226', 'provider' => 'bestbuy'],\n ['name' => \"The Silver Collection: The Astrud Gilberto Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-silver-collection-the-astrud-gilberto-album-cd/482819.p?id=66654&skuId=482819&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482819', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4828\\/482819_sa.jpg\"}', 'upc' => '042282345127', 'provider' => 'bestbuy'],\n ['name' => \"Anniversary - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/anniversary-cd/482828.p?id=66582&skuId=482828&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482828', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0482\\/0482828_sa.jpg\"}', 'upc' => '042283876927', 'provider' => 'bestbuy'],\n ['name' => \"Return to Forever - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/return-to-forever-cd/482953.p?id=65270&skuId=482953&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=482953', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0482\\/0482953_sa.jpg\"}', 'upc' => '042281197826', 'provider' => 'bestbuy'],\n ['name' => \"Sextet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sextet-cd/483051.p?id=64385&skuId=483051&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=483051', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4830\\/483051.jpg\"}', 'upc' => '042283169722', 'provider' => 'bestbuy'],\n ['name' => \"Dinner Music [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dinner-music-digdownload-cd/483088.p?id=64378&skuId=483088&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=483088', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4830\\/483088.jpg\"}', 'upc' => '042282581525', 'provider' => 'bestbuy'],\n ['name' => \"Grease - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/grease-cd-original-cast-recording/483195.p?id=2186762&skuId=483195&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=483195', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4831\\/483195_sa.jpg\"}', 'upc' => '042282754820', 'provider' => 'bestbuy'],\n ['name' => \"On the Radio: Greatest Hits, Vols. 1-2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/on-the-radio-greatest-hits-vols-1-2-cd/483239.p?id=2169944&skuId=483239&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=483239', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4832\\/483239_sa.jpg\"}', 'upc' => '042282255822', 'provider' => 'bestbuy'],\n ['name' => \"Offramp - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/offramp-cd/483293.p?id=2434345&skuId=483293&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=483293', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4832\\/483293_sa.jpg\"}', 'upc' => '042281713828', 'provider' => 'bestbuy'],\n ['name' => \"Dressed to Kill - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dressed-to-kill-cd/483337.p?id=263501&skuId=483337&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=483337', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4833\\/483337.jpg\"}', 'upc' => '042282414823', 'provider' => 'bestbuy'],\n ['name' => \"The Very Best of the Boston Pops - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-very-best-of-the-boston-pops-cd/483462.p?id=1675387&skuId=483462&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=483462', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4834\\/483462.jpg\"}', 'upc' => '028943280228', 'provider' => 'bestbuy'],\n ['name' => \"Favorite Tenor Arias - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/favorite-tenor-arias-cd/484050.p?id=1676832&skuId=484050&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=484050', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0484\\/0484050_sa.jpg\"}', 'upc' => '028940005329', 'provider' => 'bestbuy'],\n ['name' => \"Spanking Machine - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spanking-machine-cd/486192.p?id=73571&skuId=486192&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=486192', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0486\\/0486192_sa.jpg\"}', 'upc' => '035058918328', 'provider' => 'bestbuy'],\n ['name' => \"Zen Arcade - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/zen-arcade-cd/486343.p?id=85980&skuId=486343&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=486343', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0486\\/0486343_sa.jpg\"}', 'upc' => '018861002729', 'provider' => 'bestbuy'],\n ['name' => \"Show No Mercy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/show-no-mercy-cd/486352.p?id=1365918&skuId=486352&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=486352', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0486\\/0486352_sa.jpg\"}', 'upc' => '018777103428', 'provider' => 'bestbuy'],\n ['name' => \"Wednesday Night in San Francisco - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wednesday-night-in-san-francisco-cd/486487.p?id=87903&skuId=486487&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=486487', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4864\\/486487.jpg\"}', 'upc' => '025218855624', 'provider' => 'bestbuy'],\n ['name' => \"Thursday Night in San Francisco - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thursday-night-in-san-francisco-cd/486496.p?id=87901&skuId=486496&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=486496', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4864\\/486496_sa.jpg\"}', 'upc' => '025218855723', 'provider' => 'bestbuy'],\n ['name' => \"Attack of the Killer V: Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/attack-of-the-killer-v-live-cd/486557.p?id=90069&skuId=486557&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=486557', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4865\\/486557.jpg\"}', 'upc' => '014551478621', 'provider' => 'bestbuy'],\n ['name' => \"Heart Attack - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heart-attack-cd/486566.p?id=89434&skuId=486566&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=486566', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4865\\/486566.jpg\"}', 'upc' => '019148399020', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Malaco] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-malaco-cd/486637.p?id=85388&skuId=486637&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=486637', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0486\\/0486637_sa.jpg\"}', 'upc' => '048021743728', 'provider' => 'bestbuy'],\n ['name' => \"The Last of the True Believers [ECD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-last-of-the-true-believers-ecd-cd/486646.p?id=84271&skuId=486646&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=486646', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0486\\/0486646_sa.jpg\"}', 'upc' => '011671110929', 'provider' => 'bestbuy'],\n ['name' => \"Juju Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/juju-music-cd/486735.p?id=72498&skuId=486735&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=486735', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0486\\/0486735_sa.jpg\"}', 'upc' => '016253971226', 'provider' => 'bestbuy'],\n ['name' => \"Have I Got a Deal for You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/have-i-got-a-deal-for-you-cd/486860.p?id=91146&skuId=486860&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=486860', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4868\\/486860.jpg\"}', 'upc' => '076743110924', 'provider' => 'bestbuy'],\n ['name' => \"Love Warriors - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-warriors-cd/487191.p?id=71550&skuId=487191&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=487191', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4871\\/487191_sa.jpg\"}', 'upc' => '019341011620', 'provider' => 'bestbuy'],\n ['name' => \"Mendelssohn: Complete String Symphonies Vol 1 / Boughton - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mendelssohn-complete-string-symphonies-vol-1-boughton-cd/487379.p?id=1879959&skuId=487379&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=487379', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4873\\/487379.jpg\"}', 'upc' => '710357514128', 'provider' => 'bestbuy'],\n ['name' => \"Nothin' But the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nothin-but-the-blues-cd/487672.p?id=72100&skuId=487672&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=487672', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4876\\/487672.jpg\"}', 'upc' => '013491400129', 'provider' => 'bestbuy'],\n ['name' => \"Field of Dreams - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/field-of-dreams-cd-original-soundtrack/487743.p?id=82166&skuId=487743&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=487743', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4877\\/487743.jpg\"}', 'upc' => '012416306027', 'provider' => 'bestbuy'],\n ['name' => \"Whispers and Promises - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/whispers-and-promises-cd/488190.p?id=68298&skuId=488190&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488190', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4881\\/488190.jpg\"}', 'upc' => '075992590228', 'provider' => 'bestbuy'],\n ['name' => \"Warehouse: Songs and Stories - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/warehouse-songs-and-stories-cd/488225.p?id=85979&skuId=488225&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488225', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4882\\/488225_sa.jpg\"}', 'upc' => '075992554428', 'provider' => 'bestbuy'],\n ['name' => \"Life Is a Dance (The Remix Project) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/life-is-a-dance-the-remix-project-cd/488234.p?id=87797&skuId=488234&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488234', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4882\\/488234_sa.jpg\"}', 'upc' => '075992594622', 'provider' => 'bestbuy'],\n ['name' => \"There But for Fortune - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/there-but-for-fortune-cd/488323.p?id=93790&skuId=488323&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488323', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4883\\/488323_sa.jpg\"}', 'upc' => '075596083225', 'provider' => 'bestbuy'],\n ['name' => \"G.P./Grievous Angel - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/g-p-grievous-angel-cd/488350.p?id=94437&skuId=488350&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488350', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4883\\/488350_sa.jpg\"}', 'upc' => '075992610827', 'provider' => 'bestbuy'],\n ['name' => \"Land of Dreams - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/land-of-dreams-cd/488369.p?id=93245&skuId=488369&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488369', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488369_sa.jpg\"}', 'upc' => '075992577328', 'provider' => 'bestbuy'],\n ['name' => \"The Years of Decay - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-years-of-decay-cd/488378.p?id=94199&skuId=488378&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488378', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488378_sa.jpg\"}', 'upc' => '075678204524', 'provider' => 'bestbuy'],\n ['name' => \"Brotherhood - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brotherhood-cd/488412.p?id=93165&skuId=488412&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488412', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488412_sa.jpg\"}', 'upc' => '075992551120', 'provider' => 'bestbuy'],\n ['name' => \"Technique - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/technique-cd/488421.p?id=93172&skuId=488421&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488421', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4884\\/488421_sa.jpg\"}', 'upc' => '075992584524', 'provider' => 'bestbuy'],\n ['name' => \"Naked City - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/naked-city-cd/488449.p?id=72284&skuId=488449&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488449', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488449_sa.jpg\"}', 'upc' => '075597923827', 'provider' => 'bestbuy'],\n ['name' => \"Steve Reich: Electric Counterpoint; Different... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/steve-reich-electric-counterpoint-different-cd/488537.p?id=1675630&skuId=488537&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488537', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488537_sa.jpg\"}', 'upc' => '075597917628', 'provider' => 'bestbuy'],\n ['name' => \"Hoy-Hoy! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hoy-hoy-cd/488591.p?id=89362&skuId=488591&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488591', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488591_sa.jpg\"}', 'upc' => '075992741323', 'provider' => 'bestbuy'],\n ['name' => \"La Pistola y el Corazón - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/la-pistola-y-el-corazon-cd/488608.p?id=89693&skuId=488608&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488608', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488608_sa.jpg\"}', 'upc' => '075992579025', 'provider' => 'bestbuy'],\n ['name' => \"For Ellington - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-ellington-cd/488617.p?id=69238&skuId=488617&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488617', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4886\\/488617.jpg\"}', 'upc' => '075679092625', 'provider' => 'bestbuy'],\n ['name' => \"Shadows and Light - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shadows-and-light-cd/488626.p?id=91930&skuId=488626&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488626', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488626_sa.jpg\"}', 'upc' => '075596059022', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Stories Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-stories-live-cd/488644.p?id=77195&skuId=488644&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488644', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488644_sa.jpg\"}', 'upc' => '075596063029', 'provider' => 'bestbuy'],\n ['name' => \"One More Story - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-more-story-cd/488662.p?id=77135&skuId=488662&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488662', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488662_sa.jpg\"}', 'upc' => '075992570428', 'provider' => 'bestbuy'],\n ['name' => \"Ellington Masterpieces - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ellington-masterpieces-cd/488680.p?id=63666&skuId=488680&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488680', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4886\\/488680.jpg\"}', 'upc' => '075679142320', 'provider' => 'bestbuy'],\n ['name' => \"The New Order - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-new-order-cd/488715.p?id=101487&skuId=488715&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488715', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488715_sa.jpg\"}', 'upc' => '075678184925', 'provider' => 'bestbuy'],\n ['name' => \"Live and Dangerous - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-and-dangerous-cd/488733.p?id=101588&skuId=488733&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488733', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488733_sa.jpg\"}', 'upc' => '075992735827', 'provider' => 'bestbuy'],\n ['name' => \"Superman: The Movie - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/superman-the-movie-cd-original-soundtrack/488760.p?id=1604237&skuId=488760&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488760', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4887\\/488760_sa.jpg\"}', 'upc' => '075992737425', 'provider' => 'bestbuy'],\n ['name' => \"Absolutely Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/absolutely-live-cd/488779.p?id=100399&skuId=488779&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488779', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488779_sa.jpg\"}', 'upc' => '075992374323', 'provider' => 'bestbuy'],\n ['name' => \"Made in Japan - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => 3.99, 'url' => 'http://www.bestbuy.com/site/made-in-japan-cd/488868.p?id=80059&skuId=488868&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488868', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488868_sa.jpg\"}', 'upc' => '075992727327', 'provider' => 'bestbuy'],\n ['name' => \"Amandla - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/amandla-cd/488939.p?id=65514&skuId=488939&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488939', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4889\\/488939_sa.jpg\"}', 'upc' => '075992587327', 'provider' => 'bestbuy'],\n ['name' => \"CSN - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => 5.99, 'url' => 'http://www.bestbuy.com/site/csn-cd/488948.p?id=79264&skuId=488948&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488948', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488948_sa.jpg\"}', 'upc' => '075678265020', 'provider' => 'bestbuy'],\n ['name' => \"American Dream - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dream-cd/488957.p?id=79271&skuId=488957&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488957', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4889\\/488957_sa.jpg\"}', 'upc' => '075678188824', 'provider' => 'bestbuy'],\n ['name' => \"The Gospel at Colonus [Original Cast] - CD - Original Broadway Cast\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-gospel-at-colonus-original-cast-cd-original-broadway-cast/488993.p?id=83925&skuId=488993&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=488993', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0488\\/0488993_sa.jpg\"}', 'upc' => '075597919127', 'provider' => 'bestbuy'],\n ['name' => \"Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-cd/489055.p?id=279713&skuId=489055&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=489055', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4890\\/489055_sa.jpg\"}', 'upc' => '075992718127', 'provider' => 'bestbuy'],\n ['name' => \"A Donny Hathaway Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/a-donny-hathaway-collection-cd/489082.p?id=84955&skuId=489082&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=489082', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0489\\/0489082_sa.jpg\"}', 'upc' => '075678209222', 'provider' => 'bestbuy'],\n ['name' => \"We Sold Our Soul for Rock N Roll - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/we-sold-our-soul-for-rock-n-roll-cd/489162.p?id=74838&skuId=489162&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=489162', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0489\\/0489162_sa.jpg\"}', 'upc' => '075992730228', 'provider' => 'bestbuy'],\n ['name' => \"Livin' Inside Your Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/livin-inside-your-love-cd/489199.p?id=64182&skuId=489199&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=489199', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4891\\/489199.jpg\"}', 'upc' => '075992738521', 'provider' => 'bestbuy'],\n ['name' => \"Weekend in L.A. - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/weekend-in-l-a-cd/489224.p?id=64193&skuId=489224&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=489224', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0489\\/0489224_sa.jpg\"}', 'upc' => '075992734325', 'provider' => 'bestbuy'],\n ['name' => \"Miles of Aisles - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/miles-of-aisles-cd/489288.p?id=91935&skuId=489288&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=489288', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4892\\/489288_sa.jpg\"}', 'upc' => '075596053921', 'provider' => 'bestbuy'],\n ['name' => \"Mission - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mission-cd-original-soundtrack/489297.p?id=2067083&skuId=489297&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=489297', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4892\\/489297_sa.jpg\"}', 'upc' => '077778600121', 'provider' => 'bestbuy'],\n ['name' => \"He Is Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/he-is-christmas-cd/489331.p?id=101107&skuId=489331&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=489331', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0489\\/0489331_sa.jpg\"}', 'upc' => '075992666527', 'provider' => 'bestbuy'],\n ['name' => \"The Final Rip Off - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-final-rip-off-cd/489368.p?id=92157&skuId=489368&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=489368', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0489\\/0489368_sa.jpg\"}', 'upc' => '077778603320', 'provider' => 'bestbuy'],\n ['name' => \"What a Long Strange Trip It's Been: The Best... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/what-a-long-strange-trip-its-been-the-best-cd/489395.p?id=84095&skuId=489395&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=489395', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0489\\/0489395_sa.jpg\"}', 'upc' => '075992732222', 'provider' => 'bestbuy'],\n ['name' => \"The Kink Kronikles - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-kink-kronikles-cd/489411.p?id=88134&skuId=489411&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=489411', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4894\\/489411_sa.jpg\"}', 'upc' => '075992745727', 'provider' => 'bestbuy'],\n ['name' => \"30 Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/30-greatest-hits-cd/489457.p?id=82829&skuId=489457&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=489457', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4894\\/489457_sa.jpg\"}', 'upc' => '075678166822', 'provider' => 'bestbuy'],\n ['name' => \"Sign 'O' the Times - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sign-o-the-times-cd/489536.p?id=95486&skuId=489536&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=489536', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0489\\/0489536_sa.jpg\"}', 'upc' => '075992557726', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Albert King, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-albert-king-vol-1-cd/489974.p?id=87894&skuId=489974&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=489974', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0489\\/0489974_sa.jpg\"}', 'upc' => '025218300520', 'provider' => 'bestbuy'],\n ['name' => \"Live at Carnegie Hall - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-carnegie-hall-cd/490007.p?id=100988&skuId=490007&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=490007', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4900\\/490007_sa.jpg\"}', 'upc' => '018964010621', 'provider' => 'bestbuy'],\n ['name' => \"Live in Europe - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-in-europe-cd/490070.p?id=79171&skuId=490070&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=490070', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0490\\/0490070_sa.jpg\"}', 'upc' => '025218452625', 'provider' => 'bestbuy'],\n ['name' => \"Havin' a Party with Southside Johnny - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/havin-a-party-with-southside-johnny-cd/490604.p?id=99702&skuId=490604&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=490604', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0490\\/0490604_sa.jpg\"}', 'upc' => '074643624626', 'provider' => 'bestbuy'],\n ['name' => \"Marathon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/marathon-cd/490757.p?id=97883&skuId=490757&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=490757', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4907\\/490757_sa.jpg\"}', 'upc' => '074643615426', 'provider' => 'bestbuy'],\n ['name' => \"Peter Nero's Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/peter-neros-greatest-hits-cd/491006.p?id=93061&skuId=491006&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=491006', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0491\\/0491006_sa.jpg\"}', 'upc' => '074643313629', 'provider' => 'bestbuy'],\n ['name' => \"Ray Price's Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ray-prices-greatest-hits-cd/491131.p?id=95425&skuId=491131&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=491131', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4911\\/491131.jpg\"}', 'upc' => '074640886621', 'provider' => 'bestbuy'],\n ['name' => \"Crescent City Christmas Card - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crescent-city-christmas-card-cd/491710.p?id=68822&skuId=491710&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=491710', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0491\\/0491710_sa.jpg\"}', 'upc' => '074644528725', 'provider' => 'bestbuy'],\n ['name' => \"Native Sons - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/native-sons-cd/491854.p?id=89534&skuId=491854&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=491854', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4918\\/491854_sa.jpg\"}', 'upc' => '074643357821', 'provider' => 'bestbuy'],\n ['name' => \"Mountain Music of Peru, Vol. 1 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mountain-music-of-peru-vol-1-cd-various/491863.p?id=94753&skuId=491863&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=491863', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4918\\/491863.jpg\"}', 'upc' => '093074002025', 'provider' => 'bestbuy'],\n ['name' => \"High Adventure - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/high-adventure-cd/491881.p?id=89524&skuId=491881&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=491881', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4918\\/491881.jpg\"}', 'upc' => '074643812726', 'provider' => 'bestbuy'],\n ['name' => \"Rock On - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rock-on-cd/492247.p?id=81688&skuId=492247&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=492247', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0492\\/0492247_sa.jpg\"}', 'upc' => '074643256025', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/492602.p?id=79806&skuId=492602&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=492602', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4926\\/492602.jpg\"}', 'upc' => '074643631723', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/492862.p?id=77161&skuId=492862&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=492862', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0492\\/0492862_sa.jpg\"}', 'upc' => '074643087124', 'provider' => 'bestbuy'],\n ['name' => \"Appalachian Spring Suite - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/appalachian-spring-suite-cd/493013.p?id=1676750&skuId=493013&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=493013', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4930\\/493013.jpg\"}', 'upc' => '074643725729', 'provider' => 'bestbuy'],\n ['name' => \"Hometown Girl - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hometown-girl-cd/493175.p?id=76908&skuId=493175&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=493175', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0493\\/0493175_sa.jpg\"}', 'upc' => '074644075823', 'provider' => 'bestbuy'],\n ['name' => \"Out of the Blues: Best of David Bromberg - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/out-of-the-blues-best-of-david-bromberg-cd/493282.p?id=76024&skuId=493282&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=493282', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0493\\/0493282_sa.jpg\"}', 'upc' => '074643446723', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Patti LaBelle [Epic] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-patti-labelle-epic-cd/493674.p?id=88552&skuId=493674&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=493674', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4936\\/493674_sa.jpg\"}', 'upc' => '074643699723', 'provider' => 'bestbuy'],\n ['name' => \"Ricky Van Shelton Sings Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ricky-van-shelton-sings-christmas-cd/493736.p?id=319418&skuId=493736&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=493736', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4937\\/493736.jpg\"}', 'upc' => '074644526929', 'provider' => 'bestbuy'],\n ['name' => \"The Revölution by Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-revolution-by-night-cd/494129.p?id=75142&skuId=494129&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=494129', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4941\\/494129_sa.jpg\"}', 'upc' => '074643894722', 'provider' => 'bestbuy'],\n ['name' => \"Argent Anthology: A Collection of Greatest... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/argent-anthology-a-collection-of-greatest-cd/494281.p?id=73210&skuId=494281&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=494281', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0494\\/0494281_sa.jpg\"}', 'upc' => '074643395526', 'provider' => 'bestbuy'],\n ['name' => \"Russian Roulette - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/russian-roulette-cd/494361.p?id=72385&skuId=494361&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=494361', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0494\\/0494361_sa.jpg\"}', 'upc' => '074644035421', 'provider' => 'bestbuy'],\n ['name' => \"Chasing Rainbows - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chasing-rainbows-cd/494520.p?id=93907&skuId=494520&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=494520', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4945\\/494520_sa.jpg\"}', 'upc' => '074643491723', 'provider' => 'bestbuy'],\n ['name' => \"Two Wheels Good - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-wheels-good-cd/494548.p?id=95294&skuId=494548&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=494548', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4945\\/494548_sa.jpg\"}', 'upc' => '074644010022', 'provider' => 'bestbuy'],\n ['name' => \"99 Luftballons - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/99-luftballons-cd/494575.p?id=93058&skuId=494575&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=494575', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0494\\/0494575_sa.jpg\"}', 'upc' => '074643929424', 'provider' => 'bestbuy'],\n ['name' => \"I'm in Love Again - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/im-in-love-again-cd/494593.p?id=3245439&skuId=494593&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=494593', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '074643853927', 'provider' => 'bestbuy'],\n ['name' => \"Alf - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alf-cd/494673.p?id=92528&skuId=494673&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=494673', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4946\\/494673_sa.jpg\"}', 'upc' => '074643995627', 'provider' => 'bestbuy'],\n ['name' => \"Windows & Walls - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/windows-walls-cd/494744.p?id=82548&skuId=494744&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=494744', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0494\\/0494744_sa.jpg\"}', 'upc' => '074643900423', 'provider' => 'bestbuy'],\n ['name' => \"City Of Angels - CD - Original Broadway Cast\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/city-of-angels-cd-original-broadway-cast/495315.p?id=2069535&skuId=495315&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=495315', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4953\\/495315.jpg\"}', 'upc' => '074644606720', 'provider' => 'bestbuy'],\n ['name' => \"Ben & Sweets - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ben-sweets-cd/495333.p?id=71991&skuId=495333&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=495333', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0495\\/0495333_sa.jpg\"}', 'upc' => '074644085327', 'provider' => 'bestbuy'],\n ['name' => \"One Voice - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-voice-cd/495413.p?id=100608&skuId=495413&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=495413', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0495\\/0495413_sa.jpg\"}', 'upc' => '074644078824', 'provider' => 'bestbuy'],\n ['name' => \"Out of This World - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/out-of-this-world-cd/495431.p?id=81721&skuId=495431&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=495431', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4954\\/495431_sa.jpg\"}', 'upc' => '074644418521', 'provider' => 'bestbuy'],\n ['name' => \"Music from West Side Story - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-from-west-side-story-cd/495636.p?id=64627&skuId=495636&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=495636', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4956\\/495636.jpg\"}', 'upc' => '074644045529', 'provider' => 'bestbuy'],\n ['name' => \"Pangaea - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pangaea-cd/495725.p?id=65560&skuId=495725&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=495725', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0495\\/0495725_sa.jpg\"}', 'upc' => '074644611526', 'provider' => 'bestbuy'],\n ['name' => \"Decade of Rock & Roll '70-'80 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/decade-of-rock-roll-70-80-cd/495770.p?id=96461&skuId=495770&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=495770', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0495\\/0495770_sa.jpg\"}', 'upc' => '074643644426', 'provider' => 'bestbuy'],\n ['name' => \"Opera Sauvage - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/opera-sauvage-cd/495930.p?id=102978&skuId=495930&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=495930', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0495\\/0495930_sa.jpg\"}', 'upc' => '042282966322', 'provider' => 'bestbuy'],\n ['name' => \"The Gist of the Gemini - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-gist-of-the-gemini-cd/495949.p?id=3293641&skuId=495949&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=495949', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4959\\/495949.jpg\"}', 'upc' => '075021311220', 'provider' => 'bestbuy'],\n ['name' => \"Powerful People - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/powerful-people-cd/495967.p?id=2444182&skuId=495967&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=495967', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4959\\/495967.jpg\"}', 'upc' => '075021312029', 'provider' => 'bestbuy'],\n ['name' => \"Brother to Brother - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brother-to-brother-cd/495985.p?id=103002&skuId=495985&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=495985', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0495\\/0495985_sa.jpg\"}', 'upc' => '075021317024', 'provider' => 'bestbuy'],\n ['name' => \"Cornerstone - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cornerstone-cd/496001.p?id=100679&skuId=496001&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496001', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4960\\/496001_sa.jpg\"}', 'upc' => '075021323926', 'provider' => 'bestbuy'],\n ['name' => \"1969: Velvet Underground Live with Lou Reed,... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1969-velvet-underground-live-with-lou-reed-cd/496010.p?id=103073&skuId=496010&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496010', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0496\\/0496010_sa.jpg\"}', 'upc' => '042283482326', 'provider' => 'bestbuy'],\n ['name' => \"V.U. - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/v-u-cd/496029.p?id=2387779&skuId=496029&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496029', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0496\\/0496029_sa.jpg\"}', 'upc' => '042282372123', 'provider' => 'bestbuy'],\n ['name' => \"It's Better to Travel - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/its-better-to-travel-cd/496092.p?id=101016&skuId=496092&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496092', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0496\\/0496092_sa.jpg\"}', 'upc' => '042283221321', 'provider' => 'bestbuy'],\n ['name' => \"Sonny & Brownie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sonny-brownie-cd/496163.p?id=101465&skuId=496163&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496163', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4961\\/496163_sa.jpg\"}', 'upc' => '075021082922', 'provider' => 'bestbuy'],\n ['name' => \"Strength in Numbers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/strength-in-numbers-cd/496172.p?id=2305155&skuId=496172&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496172', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4961\\/496172.jpg\"}', 'upc' => '075021511521', 'provider' => 'bestbuy'],\n ['name' => \"Johnny the Fox - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/johnny-the-fox-cd/496181.p?id=101586&skuId=496181&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496181', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0496\\/0496181_sa.jpg\"}', 'upc' => '042282268723', 'provider' => 'bestbuy'],\n ['name' => \"Jailbreak - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jailbreak-cd/496190.p?id=101585&skuId=496190&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496190', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4961\\/496190_sa.jpg\"}', 'upc' => '042282278524', 'provider' => 'bestbuy'],\n ['name' => \"Alvin Lee & Company - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alvin-lee-company-cd/496234.p?id=1434438&skuId=496234&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496234', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0496\\/0496234_sa.jpg\"}', 'upc' => '042282056627', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Waitresses - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-waitresses-cd/496396.p?id=103315&skuId=496396&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496396', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4963\\/496396_sa.jpg\"}', 'upc' => '042284724920', 'provider' => 'bestbuy'],\n ['name' => \"Franks Wild Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/franks-wild-years-cd/496403.p?id=103322&skuId=496403&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496403', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4964\\/496403.jpg\"}', 'upc' => '042284235723', 'provider' => 'bestbuy'],\n ['name' => \"Swordfishtrombones - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/swordfishtrombones-cd/496412.p?id=103327&skuId=496412&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496412', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4964\\/496412_sa.jpg\"}', 'upc' => '042284246927', 'provider' => 'bestbuy'],\n ['name' => \"Pardners In Rhyme - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pardners-in-rhyme-cd/496421.p?id=2387957&skuId=496421&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496421', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4964\\/496421.jpg\"}', 'upc' => '042282442024', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Statler Brothers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-statler-brothers-cd/496458.p?id=100160&skuId=496458&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496458', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4964\\/496458_sa.jpg\"}', 'upc' => '042282252425', 'provider' => 'bestbuy'],\n ['name' => \"Statler Brothers Live :Sold Out - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/statler-brothers-live-sold-out-cd/496476.p?id=100176&skuId=496476&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496476', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0496\\/0496476_sa.jpg\"}', 'upc' => '042283823129', 'provider' => 'bestbuy'],\n ['name' => \"Blah-Blah-Blah - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blah-blah-blah-cd/496494.p?id=95180&skuId=496494&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496494', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4964\\/496494_sa.jpg\"}', 'upc' => '075021514522', 'provider' => 'bestbuy'],\n ['name' => \"Skin Tight - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/skin-tight-cd/496537.p?id=93825&skuId=496537&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496537', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4965\\/496537_sa.jpg\"}', 'upc' => '042284834520', 'provider' => 'bestbuy'],\n ['name' => \"Fire - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fire-cd/496564.p?id=93820&skuId=496564&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496564', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0496\\/0496564_sa.jpg\"}', 'upc' => '042284834629', 'provider' => 'bestbuy'],\n ['name' => \"Gloryhallastoopid - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gloryhallastoopid-cd/496573.p?id=2389915&skuId=496573&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496573', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0496\\/0496573_sa.jpg\"}', 'upc' => '042284262224', 'provider' => 'bestbuy'],\n ['name' => \"Tales of Mystery and Imagination: Edgar Allan Poe - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tales-of-mystery-and-imagination-edgar-allan-poe-cd/496582.p?id=94448&skuId=496582&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496582', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0496\\/0496582_sa.jpg\"}', 'upc' => '042283282025', 'provider' => 'bestbuy'],\n ['name' => \"Honey - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/honey-cd/496591.p?id=93822&skuId=496591&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496591', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0496\\/0496591_sa.jpg\"}', 'upc' => '042284834728', 'provider' => 'bestbuy'],\n ['name' => \"Only a Lad - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/only-a-lad-cd/496608.p?id=93835&skuId=496608&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496608', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4966\\/496608_sa.jpg\"}', 'upc' => '075021325029', 'provider' => 'bestbuy'],\n ['name' => \"At Yankee Stadium - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-yankee-stadium-cd/496617.p?id=93532&skuId=496617&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496617', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0496\\/0496617_sa.jpg\"}', 'upc' => '042282446220', 'provider' => 'bestbuy'],\n ['name' => \"Sneakin' Sally Through the Alley - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sneakin-sally-through-the-alley-cd/496715.p?id=94316&skuId=496715&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496715', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0496\\/0496715_sa.jpg\"}', 'upc' => '042284260725', 'provider' => 'bestbuy'],\n ['name' => \"Good Morning Vietnam [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/good-morning-vietnam-original-soundtrack-cd-original-soundtrack/496886.p?id=83856&skuId=496886&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496886', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4968\\/496886_sa.jpg\"}', 'upc' => '075021334021', 'provider' => 'bestbuy'],\n ['name' => \"All the Rage - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-the-rage-cd/496939.p?id=83465&skuId=496939&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496939', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0496\\/0496939_sa.jpg\"}', 'upc' => '044797504624', 'provider' => 'bestbuy'],\n ['name' => \"Blue Jays - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-jays-cd/496957.p?id=85080&skuId=496957&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=496957', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0496\\/0496957_sa.jpg\"}', 'upc' => '042282049124', 'provider' => 'bestbuy'],\n ['name' => \"Stan Getz Plays - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stan-getz-plays-cd/497000.p?id=66602&skuId=497000&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497000', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4970\\/497000.jpg\"}', 'upc' => '042283353527', 'provider' => 'bestbuy'],\n ['name' => \"The Original Misty - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-original-misty-cd/497028.p?id=66551&skuId=497028&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497028', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4970\\/497028_sa.jpg\"}', 'upc' => '042283491021', 'provider' => 'bestbuy'],\n ['name' => \"Present - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/present-cd/497073.p?id=2542483&skuId=497073&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497073', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4970\\/497073_sa.jpg\"}', 'upc' => '042281011924', 'provider' => 'bestbuy'],\n ['name' => \"A Day in the Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-day-in-the-life-cd/497171.p?id=69319&skuId=497171&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497171', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0497\\/0497171_sa.jpg\"}', 'upc' => '075021081628', 'provider' => 'bestbuy'],\n ['name' => \"Road Song - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/road-song-cd/497180.p?id=69339&skuId=497180&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497180', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0497\\/0497180_sa.jpg\"}', 'upc' => '075021082229', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/497224.p?id=91431&skuId=497224&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497224', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0497\\/0497224_sa.jpg\"}', 'upc' => '075021325821', 'provider' => 'bestbuy'],\n ['name' => \"Crusade - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crusade-cd/497260.p?id=90882&skuId=497260&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497260', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0497\\/0497260_sa.jpg\"}', 'upc' => '042282053725', 'provider' => 'bestbuy'],\n ['name' => \"Looking Back - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/looking-back-cd/497288.p?id=90884&skuId=497288&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497288', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4972\\/497288_sa.jpg\"}', 'upc' => '042282033123', 'provider' => 'bestbuy'],\n ['name' => \"Land of Make Believe - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/land-of-make-believe-cd/497377.p?id=68718&skuId=497377&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497377', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0497\\/0497377_sa.jpg\"}', 'upc' => '042282253927', 'provider' => 'bestbuy'],\n ['name' => \"Feels So Good - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/feels-so-good-cd/497386.p?id=68715&skuId=497386&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497386', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4973\\/497386_sa.jpg\"}', 'upc' => '075021321922', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Chuck Mangione [A&M] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-chuck-mangione-a-m-cd/497395.p?id=68708&skuId=497395&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497395', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4973\\/497395_sa.jpg\"}', 'upc' => '075021328228', 'provider' => 'bestbuy'],\n ['name' => \"Trilogy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/trilogy-cd/497411.p?id=90286&skuId=497411&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497411', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0497\\/0497411_sa.jpg\"}', 'upc' => '042283107328', 'provider' => 'bestbuy'],\n ['name' => \"Trial by Fire: Live in Leningrad - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/trial-by-fire-live-in-leningrad-cd/497420.p?id=90285&skuId=497420&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497420', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4974\\/497420.jpg\"}', 'upc' => '042283972629', 'provider' => 'bestbuy'],\n ['name' => \"Wave - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wave-cd/497527.p?id=68003&skuId=497527&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497527', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0497\\/0497527_sa.jpg\"}', 'upc' => '075021081222', 'provider' => 'bestbuy'],\n ['name' => \"Miles - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/miles-cd/497554.p?id=86803&skuId=497554&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497554', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4975\\/497554.jpg\"}', 'upc' => '042284281621', 'provider' => 'bestbuy'],\n ['name' => \"Koyaanisqatsi: Life Out of Balance - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/koyaanisqatsi-life-out-of-balance-cd-original-soundtrack/497563.p?id=2066138&skuId=497563&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497563', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0497\\/0497563_sa.jpg\"}', 'upc' => '042281404221', 'provider' => 'bestbuy'],\n ['name' => \"The Dude - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-dude-cd/497643.p?id=68076&skuId=497643&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497643', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4976\\/497643_sa.jpg\"}', 'upc' => '075021324824', 'provider' => 'bestbuy'],\n ['name' => \"Portfolio (Reissue) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/portfolio-reissue-cd/497689.p?id=2229003&skuId=497689&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497689', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4976\\/497689.jpg\"}', 'upc' => '042284261425', 'provider' => 'bestbuy'],\n ['name' => \"Kingdom Come - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kingdom-come-cd/497698.p?id=1486785&skuId=497698&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497698', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0497\\/0497698_sa.jpg\"}', 'upc' => '042283536821', 'provider' => 'bestbuy'],\n ['name' => \"In Your Face - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-your-face-cd/497705.p?id=1457936&skuId=497705&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497705', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0497\\/0497705_sa.jpg\"}', 'upc' => '042283919228', 'provider' => 'bestbuy'],\n ['name' => \"Raw Sienna - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/raw-sienna-cd/497876.p?id=97965&skuId=497876&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497876', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0497\\/0497876_sa.jpg\"}', 'upc' => '042284401623', 'provider' => 'bestbuy'],\n ['name' => \"Looking In - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/looking-in-cd/497885.p?id=97963&skuId=497885&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=497885', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4978\\/497885.jpg\"}', 'upc' => '042284401722', 'provider' => 'bestbuy'],\n ['name' => \"Broken English - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/broken-english-cd/498045.p?id=2387961&skuId=498045&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498045', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4980\\/498045_sa.jpg\"}', 'upc' => '042284235525', 'provider' => 'bestbuy'],\n ['name' => \"Light as a Feather - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/light-as-a-feather-cd/498189.p?id=172358&skuId=498189&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498189', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0498\\/0498189_sa.jpg\"}', 'upc' => '042282714824', 'provider' => 'bestbuy'],\n ['name' => \"Old and New Dreams [1979] [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/old-and-new-dreams-1979-digdownload-cd/498223.p?id=69685&skuId=498223&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498223', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4982\\/498223.jpg\"}', 'upc' => '042282937926', 'provider' => 'bestbuy'],\n ['name' => \"Naturally - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/naturally-cd/498287.p?id=76584&skuId=498287&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498287', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0498\\/0498287_sa.jpg\"}', 'upc' => '042283004221', 'provider' => 'bestbuy'],\n ['name' => \"Word Up - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/word-up-cd/498296.p?id=76649&skuId=498296&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498296', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0498\\/0498296_sa.jpg\"}', 'upc' => '042283026520', 'provider' => 'bestbuy'],\n ['name' => \"8 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/8-cd/498303.p?id=76586&skuId=498303&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498303', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0498\\/0498303_sa.jpg\"}', 'upc' => '042281115226', 'provider' => 'bestbuy'],\n ['name' => \"Shades - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shades-cd/498312.p?id=76589&skuId=498312&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498312', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4983\\/498312_sa.jpg\"}', 'upc' => '042280010522', 'provider' => 'bestbuy'],\n ['name' => \"Butch Cassidy and the Sundance Kid [Original... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/butch-cassidy-and-the-sundance-kid-original-cd-original-soundtrack/498321.p?id=76402&skuId=498321&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498321', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0498\\/0498321_sa.jpg\"}', 'upc' => '075021315921', 'provider' => 'bestbuy'],\n ['name' => \"The Breakfast Club [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-breakfast-club-original-soundtrack-cd-original-soundtrack/498394.p?id=75800&skuId=498394&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498394', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4983\\/498394_sa.jpg\"}', 'upc' => '075021329423', 'provider' => 'bestbuy'],\n ['name' => \"Dead City Radio - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dead-city-radio-cd/498438.p?id=76380&skuId=498438&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498438', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4984\\/498438_sa.jpg\"}', 'upc' => '042284626422', 'provider' => 'bestbuy'],\n ['name' => \"Diamonds & Rust - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/diamonds-rust-cd/498713.p?id=73697&skuId=498713&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498713', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0498\\/0498713_sa.jpg\"}', 'upc' => '075021323322', 'provider' => 'bestbuy'],\n ['name' => \"Bill & Ted's Excellent Adventure - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bill-teds-excellent-adventure-cd-original-soundtrack/498777.p?id=74661&skuId=498777&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498777', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0498\\/0498777_sa.jpg\"}', 'upc' => '075021391529', 'provider' => 'bestbuy'],\n ['name' => \"Blues in the Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-in-the-night-cd/498811.p?id=3522199&skuId=498811&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498811', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4988\\/498811.jpg\"}', 'upc' => '042283329324', 'provider' => 'bestbuy'],\n ['name' => \"Into The Fire - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/into-the-fire-cd/498839.p?id=2293973&skuId=498839&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498839', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4988\\/498839.jpg\"}', 'upc' => '075021331327', 'provider' => 'bestbuy'],\n ['name' => \"Rockin' into the Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rockin-into-the-night-cd/498928.p?id=101623&skuId=498928&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498928', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4989\\/498928.jpg\"}', 'upc' => '075021321625', 'provider' => 'bestbuy'],\n ['name' => \"Laid Back [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/laid-back-remaster-cd/498991.p?id=72795&skuId=498991&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=498991', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0498\\/0498991_sa.jpg\"}', 'upc' => '042283194120', 'provider' => 'bestbuy'],\n ['name' => \"Barry White's Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/barry-whites-greatest-hits-cd/499053.p?id=103874&skuId=499053&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=499053', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/4990\\/499053_sa.jpg\"}', 'upc' => '042282278227', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Nina Simone [PolyGram] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-nina-simone-polygram-cd/499106.p?id=70950&skuId=499106&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=499106', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0499\\/0499106_sa.jpg\"}', 'upc' => '042282284624', 'provider' => 'bestbuy'],\n ['name' => \"Nothing to Fear - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nothing-to-fear-cd/499268.p?id=93834&skuId=499268&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=499268', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0499\\/0499268_sa.jpg\"}', 'upc' => '075021325128', 'provider' => 'bestbuy'],\n ['name' => \"Rising Force - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rising-force-cd/499286.p?id=90283&skuId=499286&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=499286', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0499\\/0499286_sa.jpg\"}', 'upc' => '042282532428', 'provider' => 'bestbuy'],\n ['name' => \"Nightclubbing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nightclubbing-cd/499339.p?id=2484338&skuId=499339&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=499339', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0499\\/0499339_sa.jpg\"}', 'upc' => '042284236829', 'provider' => 'bestbuy'],\n ['name' => \"Island Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/island-life-cd/499348.p?id=87273&skuId=499348&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=499348', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0499\\/0499348_sa.jpg\"}', 'upc' => '042284245326', 'provider' => 'bestbuy'],\n ['name' => \"Warm Leatherette - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/warm-leatherette-cd/499357.p?id=87278&skuId=499357&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=499357', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0499\\/0499357_sa.jpg\"}', 'upc' => '042284261128', 'provider' => 'bestbuy'],\n ['name' => \"Dynasty - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dynasty-cd/499384.p?id=281460&skuId=499384&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=499384', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/4993\\/499384.jpg\"}', 'upc' => '042281277023', 'provider' => 'bestbuy'],\n ['name' => \"Walkman Jazz: Astrud Gilberto - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/walkman-jazz-astrud-gilberto-cd/499393.p?id=66650&skuId=499393&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=499393', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0499\\/0499393_sa.jpg\"}', 'upc' => '042283136922', 'provider' => 'bestbuy'],\n ['name' => \"Very Best Of Connie Francis - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/very-best-of-connie-francis-cd/499437.p?id=82812&skuId=499437&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=499437', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0499\\/0499437_sa.jpg\"}', 'upc' => '042282756923', 'provider' => 'bestbuy'],\n ['name' => \"There's No Stopping Your Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/theres-no-stopping-your-heart-cd/500817.p?id=94138&skuId=500817&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=500817', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5008\\/500817_sa.jpg\"}', 'upc' => '715187743427', 'provider' => 'bestbuy'],\n ['name' => \"Back Together Again (Arg) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/back-together-again-arg-cd/501905.p?id=3186964&skuId=501905&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=501905', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0501\\/0501905_sa.jpg\"}', 'upc' => '081227960049', 'provider' => 'bestbuy'],\n ['name' => \"The Legacy [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-legacy-pa-cd/510272.p?id=101486&skuId=510272&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=510272', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0510\\/0510272_sa.jpg\"}', 'upc' => '075678174124', 'provider' => 'bestbuy'],\n ['name' => \"Chicken Skin Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chicken-skin-music-cd/512289.p?id=78602&skuId=512289&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=512289', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5122\\/512289_sa.jpg\"}', 'upc' => '075992723121', 'provider' => 'bestbuy'],\n ['name' => \"The Patsy Cline Story - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-patsy-cline-story-cd/517596.p?id=78071&skuId=517596&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=517596', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0517\\/0517596_sa.jpg\"}', 'upc' => '076732403822', 'provider' => 'bestbuy'],\n ['name' => \"Dance My Children, Dance - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dance-my-children-dance-cd/518096.p?id=97812&skuId=518096&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=518096', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0518\\/0518096_sa.jpg\"}', 'upc' => '016351650320', 'provider' => 'bestbuy'],\n ['name' => \"No More to the Dance - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/no-more-to-the-dance-cd/518112.p?id=98733&skuId=518112&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=518112', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5181\\/518112_sa.jpg\"}', 'upc' => '016351796929', 'provider' => 'bestbuy'],\n ['name' => \"Nobody Move Nobody Get Hurt - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nobody-move-nobody-get-hurt-cd/518121.p?id=104953&skuId=518121&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=518121', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5181\\/518121.jpg\"}', 'upc' => '016351481528', 'provider' => 'bestbuy'],\n ['name' => \"Black Woman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/black-woman-cd/518149.p?id=92519&skuId=518149&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=518149', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5181\\/518149_sa.jpg\"}', 'upc' => '016351431127', 'provider' => 'bestbuy'],\n ['name' => \"Reggae Street - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reggae-street-cd/518158.p?id=91666&skuId=518158&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=518158', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5181\\/518158_sa.jpg\"}', 'upc' => '016351430427', 'provider' => 'bestbuy'],\n ['name' => \"Big Ship - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-ship-cd/518176.p?id=91192&skuId=518176&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=518176', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5181\\/518176_sa.jpg\"}', 'upc' => '016351480828', 'provider' => 'bestbuy'],\n ['name' => \"Yemenite Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/yemenite-songs-cd/518201.p?id=85083&skuId=518201&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=518201', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0518\\/0518201_sa.jpg\"}', 'upc' => '016351640222', 'provider' => 'bestbuy'],\n ['name' => \"The Indestructible Beat of Soweto, Vol. 1 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-indestructible-beat-of-soweto-vol-1-cd-various/518247.p?id=99746&skuId=518247&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=518247', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0518\\/0518247_sa.jpg\"}', 'upc' => '016351433329', 'provider' => 'bestbuy'],\n ['name' => \"Two Sevens Clash - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-sevens-clash-cd/518309.p?id=79447&skuId=518309&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=518309', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0518\\/0518309_sa.jpg\"}', 'upc' => '016351440129', 'provider' => 'bestbuy'],\n ['name' => \"God, Time & Casuality - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/god-time-casuality-cd/518318.p?id=81883&skuId=518318&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=518318', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5183\\/518318_sa.jpg\"}', 'upc' => '016351970626', 'provider' => 'bestbuy'],\n ['name' => \"Prisoner - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/prisoner-cd/518336.p?id=81010&skuId=518336&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=518336', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5183\\/518336_sa.jpg\"}', 'upc' => '016351437327', 'provider' => 'bestbuy'],\n ['name' => \"Culture at Work - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/culture-at-work-cd/518345.p?id=79436&skuId=518345&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=518345', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5183\\/518345_sa.jpg\"}', 'upc' => '016351434722', 'provider' => 'bestbuy'],\n ['name' => \"Clannad in Concert - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/clannad-in-concert-cd/518559.p?id=77876&skuId=518559&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=518559', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5185\\/518559_sa.jpg\"}', 'upc' => '016351793027', 'provider' => 'bestbuy'],\n ['name' => \"Dr. Buzzard's Original Savannah Band - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dr-buzzards-original-savannah-band-cd/519674.p?id=80859&skuId=519674&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=519674', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0519\\/0519674_sa.jpg\"}', 'upc' => '078635150421', 'provider' => 'bestbuy'],\n ['name' => \"The Legendary Italian Westerns - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-legendary-italian-westerns-cd-original-soundtrack/520010.p?id=92287&skuId=520010&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=520010', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0520\\/0520010_sa.jpg\"}', 'upc' => '078635997422', 'provider' => 'bestbuy'],\n ['name' => \"The Instant Monty Python CD Collection, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-instant-monty-python-cd-collection-vol-2-cd/520065.p?id=92159&skuId=520065&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=520065', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5200\\/520065_sa.jpg\"}', 'upc' => '078221829625', 'provider' => 'bestbuy'],\n ['name' => \"Gone With The Wind: Classic Film Score - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gone-with-the-wind-classic-film-score-cd/520314.p?id=2066501&skuId=520314&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=520314', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0520\\/0520314_sa.jpg\"}', 'upc' => '078635045222', 'provider' => 'bestbuy'],\n ['name' => \"All Time Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-cd/520626.p?id=98233&skuId=520626&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=520626', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0520\\/0520626_sa.jpg\"}', 'upc' => '078635687620', 'provider' => 'bestbuy'],\n ['name' => \"Steelbands of Trinidad & Tobago [Delos 4011] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/steelbands-of-trinidad-tobago-delos-4011-cd-various/521527.p?id=100289&skuId=521527&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=521527', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5215\\/521527.jpg\"}', 'upc' => '013491401126', 'provider' => 'bestbuy'],\n ['name' => \"Winds of Change - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/winds-of-change-cd/521732.p?id=86852&skuId=521732&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=521732', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5217\\/521732.jpg\"}', 'upc' => '078635437225', 'provider' => 'bestbuy'],\n ['name' => \"Friends - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/friends-cd/521750.p?id=103522&skuId=521750&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=521750', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5217\\/521750_sa.jpg\"}', 'upc' => '078221839822', 'provider' => 'bestbuy'],\n ['name' => \"Clam Dip & Other Delights [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/clam-dip-other-delights-ep-cd/521867.p?id=99514&skuId=521867&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=521867', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5218\\/521867_sa.jpg\"}', 'upc' => '035058814422', 'provider' => 'bestbuy'],\n ['name' => \"Klez! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/klez-cd/522599.p?id=88235&skuId=522599&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522599', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5225\\/522599.jpg\"}', 'upc' => '015707944922', 'provider' => 'bestbuy'],\n ['name' => \"Wild Wild West - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wild-wild-west-cd/522740.p?id=81679&skuId=522740&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522740', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0522\\/0522740_sa.jpg\"}', 'upc' => '075678187124', 'provider' => 'bestbuy'],\n ['name' => \"The Best of England Dan & John Ford Coley - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-england-dan-john-ford-coley-cd/522768.p?id=81569&skuId=522768&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522768', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5227\\/522768.jpg\"}', 'upc' => '075679044129', 'provider' => 'bestbuy'],\n ['name' => \"What Were Once Vices Are Now Habits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/what-were-once-vices-are-now-habits-cd/522777.p?id=80776&skuId=522777&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522777', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0522\\/0522777_sa.jpg\"}', 'upc' => '075992728027', 'provider' => 'bestbuy'],\n ['name' => \"Mean Business - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mean-business-cd/522795.p?id=82269&skuId=522795&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522795', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0522\\/0522795_sa.jpg\"}', 'upc' => '075678162824', 'provider' => 'bestbuy'],\n ['name' => \"In the Right Place - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-the-right-place-cd/522802.p?id=80889&skuId=522802&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522802', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5228\\/522802_sa.jpg\"}', 'upc' => '075678036026', 'provider' => 'bestbuy'],\n ['name' => \"Stampede - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stampede-cd/522875.p?id=80772&skuId=522875&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522875', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5228\\/522875_sa.jpg\"}', 'upc' => '075992728928', 'provider' => 'bestbuy'],\n ['name' => \"Livin' on the Fault Line - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/livin-on-the-fault-line-cd/522884.p?id=80769&skuId=522884&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522884', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5228\\/522884_sa.jpg\"}', 'upc' => '075992731522', 'provider' => 'bestbuy'],\n ['name' => \"Penguin - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/penguin-cd/522919.p?id=82442&skuId=522919&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522919', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5229\\/522919_sa.jpg\"}', 'upc' => '075992617826', 'provider' => 'bestbuy'],\n ['name' => \"Mirage - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mirage-cd/522928.p?id=82440&skuId=522928&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522928', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5229\\/522928_sa.jpg\"}', 'upc' => '075992360722', 'provider' => 'bestbuy'],\n ['name' => \"Heroes Are Hard to Find - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heroes-are-hard-to-find-cd/522937.p?id=82437&skuId=522937&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522937', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5229\\/522937_sa.jpg\"}', 'upc' => '075992721622', 'provider' => 'bestbuy'],\n ['name' => \"Bare Trees - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bare-trees-cd/522946.p?id=82428&skuId=522946&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522946', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5229\\/522946_sa.jpg\"}', 'upc' => '075992724029', 'provider' => 'bestbuy'],\n ['name' => \"Best Of [Import] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-import-cd/522955.p?id=1391314&skuId=522955&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522955', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5229\\/522955.jpg\"}', 'upc' => '075678158124', 'provider' => 'bestbuy'],\n ['name' => \"Then Play On - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/then-play-on-cd/522982.p?id=2750275&skuId=522982&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522982', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0522\\/0522982_sa.jpg\"}', 'upc' => '075992744829', 'provider' => 'bestbuy'],\n ['name' => \"Kiln House - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kiln-house-cd/522991.p?id=82439&skuId=522991&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=522991', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0522\\/0522991_sa.jpg\"}', 'upc' => '075992745321', 'provider' => 'bestbuy'],\n ['name' => \"Future Games - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/future-games-cd/523008.p?id=82435&skuId=523008&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523008', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5230\\/523008_sa.jpg\"}', 'upc' => '075992745826', 'provider' => 'bestbuy'],\n ['name' => \"Cool from the Wire - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cool-from-the-wire-cd/523017.p?id=80538&skuId=523017&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523017', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523017_sa.jpg\"}', 'upc' => '075678183621', 'provider' => 'bestbuy'],\n ['name' => \"Freedom of Choice - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/freedom-of-choice-cd/523044.p?id=80298&skuId=523044&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523044', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5230\\/523044.jpg\"}', 'upc' => '075992343527', 'provider' => 'bestbuy'],\n ['name' => \"Q: Are We Not Men? A: We Are Devo! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/q-are-we-not-men-a-we-are-devo-cd/523062.p?id=80304&skuId=523062&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523062', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5230\\/523062.jpg\"}', 'upc' => '075992736428', 'provider' => 'bestbuy'],\n ['name' => \"The Drifters' Golden Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-drifters-golden-hits-cd/523080.p?id=80969&skuId=523080&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523080', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5230\\/523080_sa.jpg\"}', 'upc' => '075678144028', 'provider' => 'bestbuy'],\n ['name' => \"Dueling Banjos - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dueling-banjos-cd-original-soundtrack/523115.p?id=80152&skuId=523115&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523115', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5231\\/523115_sa.jpg\"}', 'upc' => '075992726825', 'provider' => 'bestbuy'],\n ['name' => \"On Tour with Eric Clapton - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/on-tour-with-eric-clapton-cd/523124.p?id=2292053&skuId=523124&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523124', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5231\\/523124_sa.jpg\"}', 'upc' => '075679039729', 'provider' => 'bestbuy'],\n ['name' => \"Affinity - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/affinity-cd/523213.p?id=66090&skuId=523213&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523213', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523213_sa.jpg\"}', 'upc' => '075992738729', 'provider' => 'bestbuy'],\n ['name' => \"The Golden Hits of the Everly Brothers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-golden-hits-of-the-everly-brothers-cd/523222.p?id=81752&skuId=523222&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523222', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523222_sa.jpg\"}', 'upc' => '075992715928', 'provider' => 'bestbuy'],\n ['name' => \"The Very Best of the Everly Brothers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-very-best-of-the-everly-brothers-cd/523231.p?id=81761&skuId=523231&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523231', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5232\\/523231_sa.jpg\"}', 'upc' => '075992716123', 'provider' => 'bestbuy'],\n ['name' => \"Broadcast - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/broadcast-cd/523295.p?id=79499&skuId=523295&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523295', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5232\\/523295_sa.jpg\"}', 'upc' => '077778600220', 'provider' => 'bestbuy'],\n ['name' => \"Christopher Cross - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christopher-cross-cd/523357.p?id=79280&skuId=523357&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523357', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5233\\/523357_sa.jpg\"}', 'upc' => '075992338325', 'provider' => 'bestbuy'],\n ['name' => \"The Rodney Crowell Collection [Slipcase] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-rodney-crowell-collection-slipcase-cd/523428.p?id=79335&skuId=523428&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523428', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523428_sa.jpg\"}', 'upc' => '075992596527', 'provider' => 'bestbuy'],\n ['name' => \"The Ultimate Collection: When a Man Loves a Woman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-ultimate-collection-when-a-man-loves-a-woman-cd/523464.p?id=99127&skuId=523464&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523464', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5234\\/523464_sa.jpg\"}', 'upc' => '075678021220', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Percy Sledge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-percy-sledge-cd/523473.p?id=99124&skuId=523473&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523473', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5234\\/523473_sa.jpg\"}', 'upc' => '075678144325', 'provider' => 'bestbuy'],\n ['name' => \"Boz Scaggs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/boz-scaggs-cd/523482.p?id=97994&skuId=523482&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523482', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523482_sa.jpg\"}', 'upc' => '075678154522', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Spinners [Atlantic] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-spinners-atlantic-cd/523516.p?id=99857&skuId=523516&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523516', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523516_sa.jpg\"}', 'upc' => '075678154720', 'provider' => 'bestbuy'],\n ['name' => \"No Secrets - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/no-secrets-cd/523543.p?id=98776&skuId=523543&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523543', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523543_sa.jpg\"}', 'upc' => '075596068420', 'provider' => 'bestbuy'],\n ['name' => \"Carly Simon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/carly-simon-cd/523552.p?id=98769&skuId=523552&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523552', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5235\\/523552_sa.jpg\"}', 'upc' => '075596067225', 'provider' => 'bestbuy'],\n ['name' => \"Hotcakes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hotcakes-cd/523561.p?id=98774&skuId=523561&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523561', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523561_sa.jpg\"}', 'upc' => '075596059428', 'provider' => 'bestbuy'],\n ['name' => \"Hall of the Mountain King - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hall-of-the-mountain-king-cd/523614.p?id=97948&skuId=523614&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523614', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523614_sa.jpg\"}', 'upc' => '075678177521', 'provider' => 'bestbuy'],\n ['name' => \"Gutter Ballet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gutter-ballet-cd/523623.p?id=97947&skuId=523623&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523623', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5236\\/523623.jpg\"}', 'upc' => '075678200823', 'provider' => 'bestbuy'],\n ['name' => \"Power of the Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/power-of-the-night-cd/523632.p?id=97949&skuId=523632&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523632', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523632_sa.jpg\"}', 'upc' => '075678124723', 'provider' => 'bestbuy'],\n ['name' => \"Hasten Down the Wind - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hasten-down-the-wind-cd/523776.p?id=97287&skuId=523776&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523776', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523776_sa.jpg\"}', 'upc' => '075596061025', 'provider' => 'bestbuy'],\n ['name' => \"Simple Dreams - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/simple-dreams-cd/523785.p?id=97295&skuId=523785&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523785', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523785_sa.jpg\"}', 'upc' => '075596051026', 'provider' => 'bestbuy'],\n ['name' => \"Talk Is Cheap - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/talk-is-cheap-cd/523801.p?id=96618&skuId=523801&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523801', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523801_sa.jpg\"}', 'upc' => '077778607922', 'provider' => 'bestbuy'],\n ['name' => \"Romance 1600 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/romance-1600-cd/523829.p?id=1441882&skuId=523829&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523829', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5238\\/523829_sa.jpg\"}', 'upc' => '075992531726', 'provider' => 'bestbuy'],\n ['name' => \"Nurds - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nurds-cd/523847.p?id=96901&skuId=523847&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523847', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5238\\/523847_sa.jpg\"}', 'upc' => '075992347525', 'provider' => 'bestbuy'],\n ['name' => \"Floodland - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/floodland-cd/523856.p?id=98975&skuId=523856&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523856', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523856_sa.jpg\"}', 'upc' => '075596076227', 'provider' => 'bestbuy'],\n ['name' => \"Double Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/double-time-cd/523883.p?id=96207&skuId=523883&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523883', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523883_sa.jpg\"}', 'upc' => '075992730624', 'provider' => 'bestbuy'],\n ['name' => \"In Harmony - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-harmony-cd/523892.p?id=98355&skuId=523892&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523892', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0523\\/0523892_sa.jpg\"}', 'upc' => '075992348126', 'provider' => 'bestbuy'],\n ['name' => \"Cupid & Psyche 85 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cupid-psyche-85-cd/523936.p?id=98159&skuId=523936&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523936', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5239\\/523936_sa.jpg\"}', 'upc' => '075992530224', 'provider' => 'bestbuy'],\n ['name' => \"Rock a Little - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rock-a-little-cd/523972.p?id=93301&skuId=523972&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=523972', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5239\\/523972_sa.jpg\"}', 'upc' => '075679047922', 'provider' => 'bestbuy'],\n ['name' => \"The Other Side of the Mirror - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-other-side-of-the-mirror-cd/524007.p?id=93304&skuId=524007&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524007', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5240\\/524007_sa.jpg\"}', 'upc' => '075679124524', 'provider' => 'bestbuy'],\n ['name' => \"On the Track - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => 8.99, 'url' => 'http://www.bestbuy.com/site/on-the-track-cd/524016.p?id=96210&skuId=524016&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524016', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524016_sa.jpg\"}', 'upc' => '075992729727', 'provider' => 'bestbuy'],\n ['name' => \"Can't Look Away - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cant-look-away-cd/524025.p?id=95788&skuId=524025&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524025', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524025_sa.jpg\"}', 'upc' => '075596078122', 'provider' => 'bestbuy'],\n ['name' => \"John Prine - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/john-prine-cd/524034.p?id=95516&skuId=524034&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524034', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5240\\/524034_sa.jpg\"}', 'upc' => '075678154126', 'provider' => 'bestbuy'],\n ['name' => \"Lovesexy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lovesexy-cd/524043.p?id=2387866&skuId=524043&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524043', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5240\\/524043_sa.jpg\"}', 'upc' => '075992572026', 'provider' => 'bestbuy'],\n ['name' => \"Around the World in a Day - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/around-the-world-in-a-day-cd/524052.p?id=95495&skuId=524052&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524052', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5240\\/524052_sa.jpg\"}', 'upc' => '075992528627', 'provider' => 'bestbuy'],\n ['name' => \"Parade - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/parade-cd/524061.p?id=95496&skuId=524061&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524061', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5240\\/524061_sa.jpg\"}', 'upc' => '075992539524', 'provider' => 'bestbuy'],\n ['name' => \"Sweet Revenge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sweet-revenge-cd/524070.p?id=95521&skuId=524070&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524070', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5240\\/524070_sa.jpg\"}', 'upc' => '075678143021', 'provider' => 'bestbuy'],\n ['name' => \"Common Sense - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/common-sense-cd/524089.p?id=95512&skuId=524089&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524089', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5240\\/524089_sa.jpg\"}', 'upc' => '075678149122', 'provider' => 'bestbuy'],\n ['name' => \"Prince - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/prince-cd/524098.p?id=95485&skuId=524098&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524098', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524098_sa.jpg\"}', 'upc' => '075992740227', 'provider' => 'bestbuy'],\n ['name' => \"Maxi Priest - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/maxi-priest-cd/524105.p?id=95459&skuId=524105&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524105', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524105_sa.jpg\"}', 'upc' => '077778607526', 'provider' => 'bestbuy'],\n ['name' => \"The Idiot - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-idiot-cd/524132.p?id=95185&skuId=524132&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524132', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5241\\/524132_sa.jpg\"}', 'upc' => '077778615224', 'provider' => 'bestbuy'],\n ['name' => \"Lust for Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lust-for-life-cd/524141.p?id=95184&skuId=524141&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524141', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524141_sa.jpg\"}', 'upc' => '077778615323', 'provider' => 'bestbuy'],\n ['name' => \"Imaginary Voyage - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/imaginary-voyage-cd/524276.p?id=70094&skuId=524276&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524276', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524276_sa.jpg\"}', 'upc' => '075678153525', 'provider' => 'bestbuy'],\n ['name' => \"Enigmatic Ocean - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/enigmatic-ocean-cd/524285.p?id=70092&skuId=524285&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524285', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524285_sa.jpg\"}', 'upc' => '075678151224', 'provider' => 'bestbuy'],\n ['name' => \"Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/album-cd/524329.p?id=95636&skuId=524329&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524329', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524329_sa.jpg\"}', 'upc' => '075596043823', 'provider' => 'bestbuy'],\n ['name' => \"The Flowers of Romance - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-flowers-of-romance-cd/524356.p?id=95640&skuId=524356&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524356', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5243\\/524356_sa.jpg\"}', 'upc' => '075992353625', 'provider' => 'bestbuy'],\n ['name' => \"Taking Over [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/taking-over-pa-cd/524365.p?id=94198&skuId=524365&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524365', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524365_sa.jpg\"}', 'upc' => '075678173523', 'provider' => 'bestbuy'],\n ['name' => \"The Ultimate Rascals - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-ultimate-rascals-cd/524427.p?id=96064&skuId=524427&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524427', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524427_sa.jpg\"}', 'upc' => '075992760522', 'provider' => 'bestbuy'],\n ['name' => \"Reach for the Sky - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reach-for-the-sky-cd/524436.p?id=96086&skuId=524436&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524436', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524436_sa.jpg\"}', 'upc' => '075678192920', 'provider' => 'bestbuy'],\n ['name' => \"Dancing Undercover - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dancing-undercover-cd/524454.p?id=96080&skuId=524454&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524454', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524454_sa.jpg\"}', 'upc' => '075678168321', 'provider' => 'bestbuy'],\n ['name' => \"Sail Away - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sail-away-cd/524472.p?id=279593&skuId=524472&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524472', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524472_sa.jpg\"}', 'upc' => '075992720328', 'provider' => 'bestbuy'],\n ['name' => \"Little Criminals - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/little-criminals-cd/524490.p?id=93246&skuId=524490&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524490', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524490_sa.jpg\"}', 'upc' => '075992732123', 'provider' => 'bestbuy'],\n ['name' => \"Beautiful Vision - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => 5.99, 'url' => 'http://www.bestbuy.com/site/beautiful-vision-cd/524560.p?id=92305&skuId=524560&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524560', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524560_sa.jpg\"}', 'upc' => '075992365222', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-vol-2-cd/524588.p?id=92290&skuId=524588&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524588', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524588_sa.jpg\"}', 'upc' => '075992630528', 'provider' => 'bestbuy'],\n ['name' => \"A Woman's Point of View - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-womans-point-of-view-cd/524711.p?id=92617&skuId=524711&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524711', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524711_sa.jpg\"}', 'upc' => '075596079129', 'provider' => 'bestbuy'],\n ['name' => \"Lonely Woman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lonely-woman-cd/524739.p?id=69239&skuId=524739&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524739', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5247\\/524739.jpg\"}', 'upc' => '075679066527', 'provider' => 'bestbuy'],\n ['name' => \"Song to a Seagull - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/song-to-a-seagull-cd/524775.p?id=91931&skuId=524775&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524775', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524775_sa.jpg\"}', 'upc' => '075992744126', 'provider' => 'bestbuy'],\n ['name' => \"Clouds - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/clouds-cd/524784.p?id=91918&skuId=524784&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524784', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5247\\/524784_sa.jpg\"}', 'upc' => '075992744621', 'provider' => 'bestbuy'],\n ['name' => \"Ladies of the Canyon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ladies-of-the-canyon-cd/524793.p?id=91926&skuId=524793&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524793', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524793_sa.jpg\"}', 'upc' => '075992745024', 'provider' => 'bestbuy'],\n ['name' => \"The Voice - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-voice-cd/524828.p?id=68919&skuId=524828&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524828', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524828_sa.jpg\"}', 'upc' => '075596036627', 'provider' => 'bestbuy'],\n ['name' => \"Metal Church - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => 6.99, 'url' => 'http://www.bestbuy.com/site/metal-church-cd/524846.p?id=91498&skuId=524846&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524846', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5248\\/524846_sa.jpg\"}', 'upc' => '075596047128', 'provider' => 'bestbuy'],\n ['name' => \"Blessing in Disguise - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blessing-in-disguise-cd/524855.p?id=91496&skuId=524855&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524855', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5248\\/524855_sa.jpg\"}', 'upc' => '075596081726', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Herbie Mann - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-herbie-mann-cd/524917.p?id=68731&skuId=524917&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524917', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524917_sa.jpg\"}', 'upc' => '075678136924', 'provider' => 'bestbuy'],\n ['name' => \"Vocalese - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vocalese-cd/524926.p?id=90389&skuId=524926&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524926', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5249\\/524926_sa.jpg\"}', 'upc' => '075678126628', 'provider' => 'bestbuy'],\n ['name' => \"Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-cd/524935.p?id=2389761&skuId=524935&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524935', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524935_sa.jpg\"}', 'upc' => '075678172328', 'provider' => 'bestbuy'],\n ['name' => \"The Manhattan Transfer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-manhattan-transfer-cd/524953.p?id=90383&skuId=524953&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524953', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0524\\/0524953_sa.jpg\"}', 'upc' => '075678149320', 'provider' => 'bestbuy'],\n ['name' => \"Forever Changes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/forever-changes-cd/524980.p?id=216471&skuId=524980&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=524980', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5249\\/524980_sa.jpg\"}', 'upc' => '075596065627', 'provider' => 'bestbuy'],\n ['name' => \"Dixie Chicken - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dixie-chicken-cd/525015.p?id=3454890&skuId=525015&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525015', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5250\\/525015_sa.jpg\"}', 'upc' => '075992727020', 'provider' => 'bestbuy'],\n ['name' => \"Last Record Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/last-record-album-cd/525024.p?id=89358&skuId=525024&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525024', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5250\\/525024_sa.jpg\"}', 'upc' => '075992729628', 'provider' => 'bestbuy'],\n ['name' => \"Sailin' Shoes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sailin-shoes-cd/525042.p?id=89355&skuId=525042&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525042', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0525\\/0525042_sa.jpg\"}', 'upc' => '075992725828', 'provider' => 'bestbuy'],\n ['name' => \"Paradise and Lunch - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/paradise-and-lunch-cd/525051.p?id=78606&skuId=525051&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525051', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5250\\/525051_sa.jpg\"}', 'upc' => '075992721226', 'provider' => 'bestbuy'],\n ['name' => \"Midnite Dynamite - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/midnite-dynamite-cd/525060.p?id=88225&skuId=525060&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525060', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0525\\/0525060_sa.jpg\"}', 'upc' => '075678126727', 'provider' => 'bestbuy'],\n ['name' => \"Kwamé the Boy Genius: Featuring a New Beginning - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kwame-the-boy-genius-featuring-a-new-beginning-cd/525079.p?id=88468&skuId=525079&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525079', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5250\\/525079.jpg\"}', 'upc' => '075678194122', 'provider' => 'bestbuy'],\n ['name' => \"The Big Throwdown - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-big-throwdown-cd/525140.p?id=89115&skuId=525140&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525140', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5251\\/525140_sa.jpg\"}', 'upc' => '075678177323', 'provider' => 'bestbuy'],\n ['name' => \"El Rayo-X - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/el-rayo-x-cd/525159.p?id=89300&skuId=525159&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525159', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5251\\/525159_sa.jpg\"}', 'upc' => '075596057325', 'provider' => 'bestbuy'],\n ['name' => \"If You Could Read My Mind - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/if-you-could-read-my-mind-cd/525186.p?id=89253&skuId=525186&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525186', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5251\\/525186_sa.jpg\"}', 'upc' => '075992745123', 'provider' => 'bestbuy'],\n ['name' => \"The Wonderful World of Jazz - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-wonderful-world-of-jazz-cd/525202.p?id=68540&skuId=525202&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525202', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5252\\/525202_sa.jpg\"}', 'upc' => '075679097927', 'provider' => 'bestbuy'],\n ['name' => \"Lola Versus the Powerman and the... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lola-versus-the-powerman-and-the-cd/525211.p?id=88121&skuId=525211&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525211', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0525\\/0525211_sa.jpg\"}', 'upc' => '075992745529', 'provider' => 'bestbuy'],\n ['name' => \"2 Hype - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2-hype-cd/525220.p?id=274639&skuId=525220&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525220', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5252\\/525220.jpg\"}', 'upc' => '010912162826', 'provider' => 'bestbuy'],\n ['name' => \"In-A-Gadda-Da-Vida - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => 3.99, 'url' => 'http://www.bestbuy.com/site/in-a-gadda-da-vida-cd/525284.p?id=86321&skuId=525284&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525284', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0525\\/0525284_sa.jpg\"}', 'upc' => '075679039224', 'provider' => 'bestbuy'],\n ['name' => \"Candy Apple Grey - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/candy-apple-grey-cd/525346.p?id=85971&skuId=525346&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525346', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5253\\/525346_sa.jpg\"}', 'upc' => '075992538527', 'provider' => 'bestbuy'],\n ['name' => \"Cross That Line - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cross-that-line-cd/525408.p?id=87280&skuId=525408&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525408', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5254\\/525408_sa.jpg\"}', 'upc' => '075596079426', 'provider' => 'bestbuy'],\n ['name' => \"Human's Lib - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/humans-lib-cd/525417.p?id=87282&skuId=525417&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525417', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5254\\/525417_sa.jpg\"}', 'upc' => '075596034623', 'provider' => 'bestbuy'],\n ['name' => \"Dream into Action - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dream-into-action-cd/525426.p?id=87281&skuId=525426&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525426', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5254\\/525426_sa.jpg\"}', 'upc' => '075596039024', 'provider' => 'bestbuy'],\n ['name' => \"The Heart of Saturday Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-heart-of-saturday-night-cd/525462.p?id=2389889&skuId=525462&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525462', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0525\\/0525462_sa.jpg\"}', 'upc' => '075596059725', 'provider' => 'bestbuy'],\n ['name' => \"Small Change - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/small-change-cd/525471.p?id=103326&skuId=525471&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525471', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0525\\/0525471_sa.jpg\"}', 'upc' => '075596061223', 'provider' => 'bestbuy'],\n ['name' => \"Vanilla Fudge [1967] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vanilla-fudge-1967-cd/525505.p?id=102989&skuId=525505&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525505', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0525\\/0525505_sa.jpg\"}', 'upc' => '075679039026', 'provider' => 'bestbuy'],\n ['name' => \"Stay Hungry - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stay-hungry-cd/525569.p?id=1997513&skuId=525569&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525569', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0525\\/0525569_sa.jpg\"}', 'upc' => '075678015625', 'provider' => 'bestbuy'],\n ['name' => \"Tom Tom Club - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tom-tom-club-cd/525612.p?id=2277152&skuId=525612&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525612', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0525\\/0525612_sa.jpg\"}', 'upc' => '075992362825', 'provider' => 'bestbuy'],\n ['name' => \"What Time Is It? - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/what-time-is-it-cd/525621.p?id=101887&skuId=525621&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525621', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0525\\/0525621_sa.jpg\"}', 'upc' => '075992370127', 'provider' => 'bestbuy'],\n ['name' => \"Marquee Moon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/marquee-moon-cd/525630.p?id=1534841&skuId=525630&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525630', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5256\\/525630_sa.jpg\"}', 'upc' => '075596061629', 'provider' => 'bestbuy'],\n ['name' => \"Mud Slide Slim and the Blue Horizon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mud-slide-slim-and-the-blue-horizon-cd/525685.p?id=101238&skuId=525685&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525685', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0525\\/0525685_sa.jpg\"}', 'upc' => '075992725224', 'provider' => 'bestbuy'],\n ['name' => \"Here Today, Tomorrow Next Week! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/here-today-tomorrow-next-week-cd/525756.p?id=100732&skuId=525756&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525756', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0525\\/0525756_sa.jpg\"}', 'upc' => '075596086028', 'provider' => 'bestbuy'],\n ['name' => \"Tower of Power - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tower-of-power-cd/525783.p?id=102095&skuId=525783&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525783', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5257\\/525783_sa.jpg\"}', 'upc' => '075992726726', 'provider' => 'bestbuy'],\n ['name' => \"Back to Oakland - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/back-to-oakland-cd/525792.p?id=102085&skuId=525792&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525792', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5257\\/525792_sa.jpg\"}', 'upc' => '075992727921', 'provider' => 'bestbuy'],\n ['name' => \"The Stooges - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-stooges-cd/525827.p?id=100501&skuId=525827&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525827', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5258\\/525827_sa.jpg\"}', 'upc' => '075596066723', 'provider' => 'bestbuy'],\n ['name' => \"Funhouse [Limited] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/funhouse-limited-cd/525836.p?id=100500&skuId=525836&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525836', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5258\\/525836_sa.jpg\"}', 'upc' => '075596066921', 'provider' => 'bestbuy'],\n ['name' => \"Profile, Vol. 2: The Best of Emmylou Harris - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/profile-vol-2-the-best-of-emmylou-harris-cd/525952.p?id=84865&skuId=525952&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=525952', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5259\\/525952_sa.jpg\"}', 'upc' => '075992516129', 'provider' => 'bestbuy'],\n ['name' => \"The Art of Tea - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-art-of-tea-cd/526014.p?id=82885&skuId=526014&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526014', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5260\\/526014_sa.jpg\"}', 'upc' => '075992722421', 'provider' => 'bestbuy'],\n ['name' => \"Highway 101 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/highway-101-cd/526041.p?id=85366&skuId=526041&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526041', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526041_sa.jpg\"}', 'upc' => '075992560825', 'provider' => 'bestbuy'],\n ['name' => \"Skin Dive - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/skin-dive-cd/526069.p?id=82883&skuId=526069&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526069', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526069_sa.jpg\"}', 'upc' => '075992527521', 'provider' => 'bestbuy'],\n ['name' => \"Blow Your Cool! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blow-your-cool-cd/526078.p?id=85583&skuId=526078&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526078', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5260\\/526078_sa.jpg\"}', 'upc' => '075596072823', 'provider' => 'bestbuy'],\n ['name' => \"Grateful Dead - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/grateful-dead-cd/526130.p?id=2065746&skuId=526130&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526130', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5261\\/526130_sa.jpg\"}', 'upc' => '075992716727', 'provider' => 'bestbuy'],\n ['name' => \"Anthem of the Sun - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/anthem-of-the-sun-cd/526149.p?id=2305152&skuId=526149&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526149', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526149_sa.jpg\"}', 'upc' => '075992717328', 'provider' => 'bestbuy'],\n ['name' => \"Aoxomoxoa - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aoxomoxoa-cd/526158.p?id=279543&skuId=526158&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526158', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5261\\/526158_sa.jpg\"}', 'upc' => '075992717823', 'provider' => 'bestbuy'],\n ['name' => \"Burchfield Nines - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/burchfield-nines-cd/526167.p?id=82888&skuId=526167&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526167', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526167_sa.jpg\"}', 'upc' => '075992735124', 'provider' => 'bestbuy'],\n ['name' => \"Best of the J. Geils Band [Atlantic] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-the-j-geils-band-atlantic-cd/526247.p?id=83442&skuId=526247&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526247', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526247_sa.jpg\"}', 'upc' => '075678155727', 'provider' => 'bestbuy'],\n ['name' => \"Objects of Desire - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/objects-of-desire-cd/526283.p?id=82879&skuId=526283&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526283', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5262\\/526283_sa.jpg\"}', 'upc' => '075992364829', 'provider' => 'bestbuy'],\n ['name' => \"Blank Generation - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blank-generation-cd/526345.p?id=85178&skuId=526345&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526345', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526345_sa.jpg\"}', 'upc' => '075992613729', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/526381.p?id=85453&skuId=526381&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526381', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5263\\/526381_sa.jpg\"}', 'upc' => '075992744720', 'provider' => 'bestbuy'],\n ['name' => \"Ready or Not - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ready-or-not-cd/526425.p?id=84014&skuId=526425&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526425', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5264\\/526425.jpg\"}', 'upc' => '075678172823', 'provider' => 'bestbuy'],\n ['name' => \"Talk to Your Daughter - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/talk-to-your-daughter-cd/526434.p?id=82652&skuId=526434&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526434', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526434_sa.jpg\"}', 'upc' => '075992564724', 'provider' => 'bestbuy'],\n ['name' => \"The Golden Age of Black Music: 1960-1970 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-golden-age-of-black-music-1960-1970-cd-various/526443.p?id=74937&skuId=526443&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526443', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5264\\/526443.jpg\"}', 'upc' => '075678191121', 'provider' => 'bestbuy'],\n ['name' => \"Out of the Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/out-of-the-blue-cd/526470.p?id=83584&skuId=526470&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526470', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5264\\/526470_sa.jpg\"}', 'upc' => '075678178023', 'provider' => 'bestbuy'],\n ['name' => \"Live [ECD] [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-ecd-remaster-cd/526522.p?id=83476&skuId=526522&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526522', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526522_sa.jpg\"}', 'upc' => '075678267628', 'provider' => 'bestbuy'],\n ['name' => \"Aretha's Jazz - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/arethas-jazz-cd/526540.p?id=82834&skuId=526540&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526540', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526540_sa.jpg\"}', 'upc' => '075678123023', 'provider' => 'bestbuy'],\n ['name' => \"Frehley's Comet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/frehleys-comet-cd/526577.p?id=82956&skuId=526577&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526577', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526577_sa.jpg\"}', 'upc' => '075678174926', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Aretha Franklin - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-aretha-franklin-cd/526586.p?id=82856&skuId=526586&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526586', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526586_sa.jpg\"}', 'upc' => '075678128028', 'provider' => 'bestbuy'],\n ['name' => \"School's Out - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/schools-out-cd/526602.p?id=78658&skuId=526602&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526602', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526602_sa.jpg\"}', 'upc' => '075992726023', 'provider' => 'bestbuy'],\n ['name' => \"Love It to Death - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-it-to-death-cd/526611.p?id=78653&skuId=526611&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526611', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526611_sa.jpg\"}', 'upc' => '075992718721', 'provider' => 'bestbuy'],\n ['name' => \"Borderline - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/borderline-cd/526620.p?id=78601&skuId=526620&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526620', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5266\\/526620_sa.jpg\"}', 'upc' => '075992348928', 'provider' => 'bestbuy'],\n ['name' => \"The Slide Area - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-slide-area-cd/526639.p?id=78607&skuId=526639&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526639', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5266\\/526639_sa.jpg\"}', 'upc' => '075992365123', 'provider' => 'bestbuy'],\n ['name' => \"Get Rhythm - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/get-rhythm-cd/526648.p?id=78603&skuId=526648&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526648', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526648_sa.jpg\"}', 'upc' => '075992563925', 'provider' => 'bestbuy'],\n ['name' => \"Jazz - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazz-cd/526657.p?id=78605&skuId=526657&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526657', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526657_sa.jpg\"}', 'upc' => '075992735520', 'provider' => 'bestbuy'],\n ['name' => \"Into the Purple Valley - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/into-the-purple-valley-cd/526666.p?id=78604&skuId=526666&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526666', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5266\\/526666_sa.jpg\"}', 'upc' => '075992720021', 'provider' => 'bestbuy'],\n ['name' => \"The Ultimate Coasters - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-ultimate-coasters-cd/526862.p?id=78140&skuId=526862&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526862', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5268\\/526862_sa.jpg\"}', 'upc' => '075992760423', 'provider' => 'bestbuy'],\n ['name' => \"Life, Love & Pain - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/life-love-pain-cd/526871.p?id=78122&skuId=526871&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526871', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5268\\/526871_sa.jpg\"}', 'upc' => '075992553124', 'provider' => 'bestbuy'],\n ['name' => \"Shake It Up - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shake-it-up-cd/526906.p?id=76970&skuId=526906&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526906', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526906_sa.jpg\"}', 'upc' => '075596058520', 'provider' => 'bestbuy'],\n ['name' => \"Key Lime Pie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/key-lime-pie-cd/526924.p?id=76686&skuId=526924&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526924', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5269\\/526924.jpg\"}', 'upc' => '077778612728', 'provider' => 'bestbuy'],\n ['name' => \"Our Beloved Revolutionary Sweetheart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/our-beloved-revolutionary-sweetheart-cd/526933.p?id=76687&skuId=526933&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526933', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526933_sa.jpg\"}', 'upc' => '077778605522', 'provider' => 'bestbuy'],\n ['name' => \"Reconciled - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reconciled-cd/526951.p?id=76616&skuId=526951&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526951', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526951_sa.jpg\"}', 'upc' => '075596044028', 'provider' => 'bestbuy'],\n ['name' => \"Methods of Silence - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/methods-of-silence-cd/526960.p?id=76651&skuId=526960&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526960', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5269\\/526960.jpg\"}', 'upc' => '075678200229', 'provider' => 'bestbuy'],\n ['name' => \"Camelot - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/camelot-cd-original-soundtrack/526979.p?id=2224947&skuId=526979&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526979', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5269\\/526979_sa.jpg\"}', 'upc' => '075992732529', 'provider' => 'bestbuy'],\n ['name' => \"The Catherine Wheel - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-catherine-wheel-cd/526997.p?id=76476&skuId=526997&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=526997', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0526\\/0526997_sa.jpg\"}', 'upc' => '075992741828', 'provider' => 'bestbuy'],\n ['name' => \"The Paul Butterfield Blues Band - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-paul-butterfield-blues-band-cd/527013.p?id=76426&skuId=527013&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527013', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527013_sa.jpg\"}', 'upc' => '075596064729', 'provider' => 'bestbuy'],\n ['name' => \"Buffalo Springfield - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/buffalo-springfield-cd/527031.p?id=176927&skuId=527031&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527031', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5270\\/527031_sa.jpg\"}', 'upc' => '075679038920', 'provider' => 'bestbuy'],\n ['name' => \"Lives in the Balance - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lives-in-the-balance-cd/527040.p?id=75935&skuId=527040&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527040', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527040_sa.jpg\"}', 'upc' => '075596045728', 'provider' => 'bestbuy'],\n ['name' => \"Self Control - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/self-control-cd/527095.p?id=75740&skuId=527095&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527095', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5270\\/527095_sa.jpg\"}', 'upc' => '075678014727', 'provider' => 'bestbuy'],\n ['name' => \"Lawyers in Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lawyers-in-love-cd/527120.p?id=75934&skuId=527120&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527120', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527120_sa.jpg\"}', 'upc' => '075596026826', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits (Rpkg) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/greatest-hits-rpkg-cd/527184.p?id=1378360&skuId=527184&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527184', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5271\\/527184.jpg\"}', 'upc' => '081227646929', 'provider' => 'bestbuy'],\n ['name' => \"Mr. Music Head - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mr-music-head-cd/527200.p?id=74356&skuId=527200&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527200', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527200_sa.jpg\"}', 'upc' => '075678195921', 'provider' => 'bestbuy'],\n ['name' => \"Just Between Us - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/just-between-us-cd/527228.p?id=63586&skuId=527228&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527228', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5272\\/527228.jpg\"}', 'upc' => '075678181320', 'provider' => 'bestbuy'],\n ['name' => \"Let Them Eat Bingo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/let-them-eat-bingo-cd/527237.p?id=74230&skuId=527237&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527237', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5272\\/527237.jpg\"}', 'upc' => '075596092128', 'provider' => 'bestbuy'],\n ['name' => \"Strikes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => 3.99, 'url' => 'http://www.bestbuy.com/site/strikes-cd/527264.p?id=74865&skuId=527264&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527264', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527264_sa.jpg\"}', 'upc' => '075679041920', 'provider' => 'bestbuy'],\n ['name' => \"Escenas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/escenas-cd/527282.p?id=74945&skuId=527282&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527282', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5272\\/527282_sa.jpg\"}', 'upc' => '075596043229', 'provider' => 'bestbuy'],\n ['name' => \"Agua de Luna - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/agua-de-luna-cd/527291.p?id=74941&skuId=527291&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527291', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5272\\/527291_sa.jpg\"}', 'upc' => '075596072120', 'provider' => 'bestbuy'],\n ['name' => \"Marauder - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/marauder-cd/527308.p?id=74863&skuId=527308&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527308', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5273\\/527308.jpg\"}', 'upc' => '075679038524', 'provider' => 'bestbuy'],\n ['name' => \"Rough Diamonds - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rough-diamonds-cd/527335.p?id=73657&skuId=527335&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527335', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527335_sa.jpg\"}', 'upc' => '075679245229', 'provider' => 'bestbuy'],\n ['name' => \"Technical Ecstasy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/technical-ecstasy-cd/527344.p?id=74834&skuId=527344&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527344', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5273\\/527344_sa.jpg\"}', 'upc' => '075992730525', 'provider' => 'bestbuy'],\n ['name' => \"Never Say Die! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/never-say-die-cd/527353.p?id=74830&skuId=527353&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527353', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5273\\/527353_sa.jpg\"}', 'upc' => '075992735223', 'provider' => 'bestbuy'],\n ['name' => \"Heaven and Hell - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heaven-and-hell-cd/527362.p?id=74826&skuId=527362&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527362', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527362_sa.jpg\"}', 'upc' => '075992337229', 'provider' => 'bestbuy'],\n ['name' => \"Master of Reality - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/master-of-reality-cd/527371.p?id=74828&skuId=527371&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527371', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527371_sa.jpg\"}', 'upc' => '075992725323', 'provider' => 'bestbuy'],\n ['name' => \"Vol. 4 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => 3.99, 'url' => 'http://www.bestbuy.com/site/vol-4-cd/527380.p?id=74837&skuId=527380&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527380', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5273\\/527380_sa.jpg\"}', 'upc' => '075992725927', 'provider' => 'bestbuy'],\n ['name' => \"Sabbath Bloody Sabbath - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/sabbath-bloody-sabbath-cd/527399.p?id=74832&skuId=527399&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527399', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5273\\/527399_sa.jpg\"}', 'upc' => '075992727228', 'provider' => 'bestbuy'],\n ['name' => \"Sabotage - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sabotage-cd/527406.p?id=74833&skuId=527406&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527406', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527406_sa.jpg\"}', 'upc' => '075992728720', 'provider' => 'bestbuy'],\n ['name' => \"Black Sabbath - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/black-sabbath-cd/527415.p?id=74822&skuId=527415&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527415', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527415_sa.jpg\"}', 'upc' => '075992718523', 'provider' => 'bestbuy'],\n ['name' => \"Straight Shooter - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/straight-shooter-cd/527433.p?id=73659&skuId=527433&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527433', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527433_sa.jpg\"}', 'upc' => '075679243621', 'provider' => 'bestbuy'],\n ['name' => \"The Singles Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-singles-collection-cd/527479.p?id=72831&skuId=527479&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527479', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5274\\/527479_sa.jpg\"}', 'upc' => '075678190421', 'provider' => 'bestbuy'],\n ['name' => \"In Flight - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-flight-cd/527558.p?id=2389691&skuId=527558&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527558', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5275\\/527558_sa.jpg\"}', 'upc' => '075992730822', 'provider' => 'bestbuy'],\n ['name' => \"Happiness - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/happiness-cd/527567.p?id=74402&skuId=527567&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527567', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527567_sa.jpg\"}', 'upc' => '075678204722', 'provider' => 'bestbuy'],\n ['name' => \"Give Me the Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/give-me-the-night-cd/527594.p?id=3356025&skuId=527594&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527594', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527594_sa.jpg\"}', 'upc' => '075992740623', 'provider' => 'bestbuy'],\n ['name' => \"Zebra - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/zebra-cd/527718.p?id=105283&skuId=527718&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527718', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527718_sa.jpg\"}', 'upc' => '075678005428', 'provider' => 'bestbuy'],\n ['name' => \"Let My People Go - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/let-my-people-go-cd/527754.p?id=104431&skuId=527754&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527754', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527754_sa.jpg\"}', 'upc' => '075992534420', 'provider' => 'bestbuy'],\n ['name' => \"Zapp II - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/zapp-ii-cd/527790.p?id=105189&skuId=527790&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527790', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527790_sa.jpg\"}', 'upc' => '075992358323', 'provider' => 'bestbuy'],\n ['name' => \"Everybody Knows This Is Nowhere - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/everybody-knows-this-is-nowhere-cd/527898.p?id=2403069&skuId=527898&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527898', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5278\\/527898_sa.jpg\"}', 'upc' => '075992724227', 'provider' => 'bestbuy'],\n ['name' => \"Neil Young - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/neil-young-cd/527905.p?id=105059&skuId=527905&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527905', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5279\\/527905.jpg\"}', 'upc' => '075992744423', 'provider' => 'bestbuy'],\n ['name' => \"Yesterdays [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/yesterdays-remaster-cd/527941.p?id=104992&skuId=527941&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527941', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5279\\/527941_sa.jpg\"}', 'upc' => '075678268427', 'provider' => 'bestbuy'],\n ['name' => \"Time & A Word (Remastered) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/time-a-word-remastered-cd/527969.p?id=2434599&skuId=527969&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527969', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0527\\/0527969_sa.jpg\"}', 'upc' => '075678268120', 'provider' => 'bestbuy'],\n ['name' => \"Yes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/yes-cd/527978.p?id=104988&skuId=527978&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=527978', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5279\\/527978_sa.jpg\"}', 'upc' => '075678268021', 'provider' => 'bestbuy'],\n ['name' => \"The Best Is Yet to Come - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-is-yet-to-come-cd/528058.p?id=71898&skuId=528058&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528058', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528058_sa.jpg\"}', 'upc' => '075596021524', 'provider' => 'bestbuy'],\n ['name' => \"Camouflage - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/camouflage-cd/528129.p?id=100404&skuId=528129&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528129', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528129_sa.jpg\"}', 'upc' => '075992509527', 'provider' => 'bestbuy'],\n ['name' => \"Loaded - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/loaded-cd/528147.p?id=103082&skuId=528147&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528147', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5281\\/528147_sa.jpg\"}', 'upc' => '075992761321', 'provider' => 'bestbuy'],\n ['name' => \"The Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-time-cd/528165.p?id=101886&skuId=528165&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528165', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5281\\/528165_sa.jpg\"}', 'upc' => '075992359825', 'provider' => 'bestbuy'],\n ['name' => \"Stand By Me - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stand-by-me-cd-original-soundtrack/528209.p?id=100021&skuId=528209&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528209', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528209_sa.jpg\"}', 'upc' => '075678167720', 'provider' => 'bestbuy'],\n ['name' => \"Poolside - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/poolside-cd/528245.p?id=93550&skuId=528245&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528245', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5282\\/528245.jpg\"}', 'upc' => '075678164729', 'provider' => 'bestbuy'],\n ['name' => \"Cosmic Messenger - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cosmic-messenger-cd/528281.p?id=70091&skuId=528281&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528281', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528281_sa.jpg\"}', 'upc' => '075678155024', 'provider' => 'bestbuy'],\n ['name' => \"Trouble in Paradise - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/trouble-in-paradise-cd/528290.p?id=93249&skuId=528290&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528290', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528290_sa.jpg\"}', 'upc' => '075992375528', 'provider' => 'bestbuy'],\n ['name' => \"London 0 Hull 4 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/london-0-hull-4-cd/528307.p?id=85799&skuId=528307&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528307', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5283\\/528307_sa.jpg\"}', 'upc' => '075596050128', 'provider' => 'bestbuy'],\n ['name' => \"Computer World - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/computer-world-cd/528316.p?id=88405&skuId=528316&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528316', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5283\\/528316.jpg\"}', 'upc' => '075596078924', 'provider' => 'bestbuy'],\n ['name' => \"Life Stories - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/life-stories-cd/528334.p?id=68290&skuId=528334&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528334', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5283\\/528334_sa.jpg\"}', 'upc' => '075992547826', 'provider' => 'bestbuy'],\n ['name' => \"The Magazine - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-magazine-cd/528343.p?id=87304&skuId=528343&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528343', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5283\\/528343_sa.jpg\"}', 'upc' => '075992511728', 'provider' => 'bestbuy'],\n ['name' => \"Sundown - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sundown-cd/528352.p?id=89256&skuId=528352&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528352', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528352_sa.jpg\"}', 'upc' => '075992721127', 'provider' => 'bestbuy'],\n ['name' => \"Summertime Dream - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/summertime-dream-cd/528361.p?id=2599482&skuId=528361&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528361', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528361_sa.jpg\"}', 'upc' => '075992722827', 'provider' => 'bestbuy'],\n ['name' => \"Angel Band - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/angel-band-cd/528414.p?id=84853&skuId=528414&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528414', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528414_sa.jpg\"}', 'upc' => '075992558525', 'provider' => 'bestbuy'],\n ['name' => \"Another Page - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/another-page-cd/528432.p?id=79279&skuId=528432&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528432', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528432_sa.jpg\"}', 'upc' => '075992375726', 'provider' => 'bestbuy'],\n ['name' => \"The Firm - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-firm-cd/528450.p?id=82270&skuId=528450&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528450', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528450_sa.jpg\"}', 'upc' => '075678123924', 'provider' => 'bestbuy'],\n ['name' => \"The Last in Line - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-last-in-line-cd/528478.p?id=80500&skuId=528478&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528478', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528478_sa.jpg\"}', 'upc' => '075992510028', 'provider' => 'bestbuy'],\n ['name' => \"A Broken Frame - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-broken-frame-cd/528487.p?id=80223&skuId=528487&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528487', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528487_sa.jpg\"}', 'upc' => '075992375122', 'provider' => 'bestbuy'],\n ['name' => \"The Ultimate Bobby Darin - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-ultimate-bobby-darin-cd/528502.p?id=79765&skuId=528502&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528502', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5285\\/528502_sa.jpg\"}', 'upc' => '075992760621', 'provider' => 'bestbuy'],\n ['name' => \"The Circus - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-circus-cd/528511.p?id=81654&skuId=528511&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528511', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528511_sa.jpg\"}', 'upc' => '075992555425', 'provider' => 'bestbuy'],\n ['name' => \"My Favorite Things - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-favorite-things-cd/528539.p?id=176554&skuId=528539&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528539', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528539_sa.jpg\"}', 'upc' => '075678134623', 'provider' => 'bestbuy'],\n ['name' => \"The Dark - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-dark-cd/528548.p?id=91499&skuId=528548&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528548', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5285\\/528548_sa.jpg\"}', 'upc' => '075596049320', 'provider' => 'bestbuy'],\n ['name' => \"Mingus - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mingus-cd/528584.p?id=91927&skuId=528584&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528584', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5285\\/528584_sa.jpg\"}', 'upc' => '075596055727', 'provider' => 'bestbuy'],\n ['name' => \"The Hissing of Summer Lawns - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-hissing-of-summer-lawns-cd/528593.p?id=91932&skuId=528593&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528593', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528593_sa.jpg\"}', 'upc' => '075596060622', 'provider' => 'bestbuy'],\n ['name' => \"Hejira - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hejira-cd/528600.p?id=91925&skuId=528600&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528600', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528600_sa.jpg\"}', 'upc' => '075596061421', 'provider' => 'bestbuy'],\n ['name' => \"We're All Together Again (For the First Time) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/were-all-together-again-for-the-first-time-cd/528673.p?id=64638&skuId=528673&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528673', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5286\\/528673_sa.jpg\"}', 'upc' => '075678139024', 'provider' => 'bestbuy'],\n ['name' => \"Branigan 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/branigan-2-cd/528708.p?id=75737&skuId=528708&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528708', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0528\\/0528708_sa.jpg\"}', 'upc' => '075678005220', 'provider' => 'bestbuy'],\n ['name' => \"The Shape of Jazz to Come - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-shape-of-jazz-to-come-cd/528717.p?id=65097&skuId=528717&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528717', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5287\\/528717_sa.jpg\"}', 'upc' => '075678133923', 'provider' => 'bestbuy'],\n ['name' => \"Liza Minnelli at Carnegie Hall (The Complete... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 21.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/liza-minnelli-at-carnegie-hall-the-complete-cd/528726.p?id=91830&skuId=528726&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528726', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5287\\/528726_sa.jpg\"}', 'upc' => '089408550225', 'provider' => 'bestbuy'],\n ['name' => \"22 Great Waltzes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/22-great-waltzes-cd/528771.p?id=103753&skuId=528771&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=528771', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5287\\/528771_sa.jpg\"}', 'upc' => '014921700420', 'provider' => 'bestbuy'],\n ['name' => \"Alone Together - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alone-together-cd/529048.p?id=90736&skuId=529048&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529048', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5290\\/529048.jpg\"}', 'upc' => '076731117027', 'provider' => 'bestbuy'],\n ['name' => \"Deliver - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/deliver-cd/529084.p?id=90299&skuId=529084&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529084', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5290\\/529084.jpg\"}', 'upc' => '076731104423', 'provider' => 'bestbuy'],\n ['name' => \"Moonlighting - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moonlighting-cd-original-soundtrack/529100.p?id=92195&skuId=529100&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529100', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0529\\/0529100_sa.jpg\"}', 'upc' => '076732621424', 'provider' => 'bestbuy'],\n ['name' => \"Sweet Sixteen - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sweet-sixteen-cd/529182.p?id=223883&skuId=529182&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529182', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0529\\/0529182_sa.jpg\"}', 'upc' => '076732629420', 'provider' => 'bestbuy'],\n ['name' => \"Honky Tonk Angel - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/honky-tonk-angel-cd/529208.p?id=89845&skuId=529208&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529208', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0529\\/0529208_sa.jpg\"}', 'upc' => '076742222321', 'provider' => 'bestbuy'],\n ['name' => \"Midnight Madness - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/midnight-madness-cd/529253.p?id=93321&skuId=529253&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529253', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5292\\/529253_sa.jpg\"}', 'upc' => '076731116020', 'provider' => 'bestbuy'],\n ['name' => \"Dawn Patrol - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dawn-patrol-cd/529280.p?id=93318&skuId=529280&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529280', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5292\\/529280_sa.jpg\"}', 'upc' => '076731103129', 'provider' => 'bestbuy'],\n ['name' => \"New Edition - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-edition-cd/529379.p?id=93125&skuId=529379&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529379', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0529\\/0529379_sa.jpg\"}', 'upc' => '076731102825', 'provider' => 'bestbuy'],\n ['name' => \"All for Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-for-love-cd/529397.p?id=93120&skuId=529397&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529397', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0529\\/0529397_sa.jpg\"}', 'upc' => '076732567920', 'provider' => 'bestbuy'],\n ['name' => \"Jesus Christ Superstar - CD - Holiday Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jesus-christ-superstar-cd-holiday-original-soundtrack/529422.p?id=3166045&skuId=529422&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529422', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5294\\/529422.jpg\"}', 'upc' => '076731100029', 'provider' => 'bestbuy'],\n ['name' => \"Meeting in the Ladies Room - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/meeting-in-the-ladies-room-cd/529486.p?id=88254&skuId=529486&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529486', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5294\\/529486_sa.jpg\"}', 'upc' => '076731106427', 'provider' => 'bestbuy'],\n ['name' => \"King of Blues: 1989 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/king-of-blues-1989-cd/529510.p?id=87924&skuId=529510&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529510', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0529\\/0529510_sa.jpg\"}', 'upc' => '076742218324', 'provider' => 'bestbuy'],\n ['name' => \"Six Silver Strings - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/six-silver-strings-cd/529529.p?id=87938&skuId=529529&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529529', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0529\\/0529529_sa.jpg\"}', 'upc' => '076732561621', 'provider' => 'bestbuy'],\n ['name' => \"The Complete Thom Bell Sessions - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-complete-thom-bell-sessions-cd/529583.p?id=87082&skuId=529583&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529583', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0529\\/0529583_sa.jpg\"}', 'upc' => '076741911523', 'provider' => 'bestbuy'],\n ['name' => \"Power - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/power-cd/529654.p?id=87609&skuId=529654&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529654', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0529\\/0529654_sa.jpg\"}', 'upc' => '076732583821', 'provider' => 'bestbuy'],\n ['name' => \"Hail! Hail! Rock 'N' Roll - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hail-hail-rock-n-roll-cd-original-soundtrack/529770.p?id=84619&skuId=529770&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529770', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5297\\/529770_sa.jpg\"}', 'upc' => '076732621721', 'provider' => 'bestbuy'],\n ['name' => \"Striking It Rich - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/striking-it-rich-cd/529903.p?id=85342&skuId=529903&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529903', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0529\\/0529903_sa.jpg\"}', 'upc' => '076731118727', 'provider' => 'bestbuy'],\n ['name' => \"Last Train to Hicksville: The Home of Happy Feet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/last-train-to-hicksville-the-home-of-happy-feet-cd/529912.p?id=85341&skuId=529912&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529912', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5299\\/529912_sa.jpg\"}', 'upc' => '076731118826', 'provider' => 'bestbuy'],\n ['name' => \"Where's the Money? - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wheres-the-money-cd/529921.p?id=85343&skuId=529921&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=529921', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0529\\/0529921_sa.jpg\"}', 'upc' => '076743133725', 'provider' => 'bestbuy'],\n ['name' => \"Who's Missing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/whos-missing-cd/530045.p?id=1481163&skuId=530045&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530045', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5300\\/530045.jpg\"}', 'upc' => '076731122120', 'provider' => 'bestbuy'],\n ['name' => \"My Generation - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-generation-cd/530063.p?id=2276460&skuId=530063&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530063', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0530\\/0530063_sa.jpg\"}', 'upc' => '076731133027', 'provider' => 'bestbuy'],\n ['name' => \"Magic Bus - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/magic-bus-cd/530090.p?id=1548541&skuId=530090&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530090', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5300\\/530090.jpg\"}', 'upc' => '076743133329', 'provider' => 'bestbuy'],\n ['name' => \"You Can't Argue with a Sick Mind - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/you-cant-argue-with-a-sick-mind-cd/530170.p?id=160277&skuId=530170&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530170', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0530\\/0530170_sa.jpg\"}', 'upc' => '076731112022', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [MCA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-mca-cd/530250.p?id=103483&skuId=530250&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530250', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0530\\/0530250_sa.jpg\"}', 'upc' => '076744203229', 'provider' => 'bestbuy'],\n ['name' => \"Harmony (Universal) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/harmony-universal-cd/530508.p?id=101789&skuId=530508&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530508', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5305\\/530508_sa.jpg\"}', 'upc' => '076743132926', 'provider' => 'bestbuy'],\n ['name' => \"Does Fort Worth Ever Cross Your Mind - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/does-fort-worth-ever-cross-your-mind-cd/530544.p?id=100538&skuId=530544&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530544', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0530\\/0530544_sa.jpg\"}', 'upc' => '076743103223', 'provider' => 'bestbuy'],\n ['name' => \"Right Or Wrong - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/right-or-wrong-cd/530553.p?id=1535067&skuId=530553&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530553', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0530\\/0530553_sa.jpg\"}', 'upc' => '076743106828', 'provider' => 'bestbuy'],\n ['name' => \"Strait Country - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/strait-country-cd/530562.p?id=100551&skuId=530562&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530562', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5305\\/530562_sa.jpg\"}', 'upc' => '076743108723', 'provider' => 'bestbuy'],\n ['name' => \"At Your Birthday Party - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-your-birthday-party-cd/530599.p?id=100311&skuId=530599&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530599', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5305\\/530599.jpg\"}', 'upc' => '076732166826', 'provider' => 'bestbuy'],\n ['name' => \"Monster - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/monster-cd/530642.p?id=100317&skuId=530642&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530642', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5306\\/530642_sa.jpg\"}', 'upc' => '076743132827', 'provider' => 'bestbuy'],\n ['name' => \"For Once in My Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-once-in-my-life-cd/530704.p?id=2416993&skuId=530704&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530704', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5307\\/530704_sa.jpg\"}', 'upc' => '737463523424', 'provider' => 'bestbuy'],\n ['name' => \"John Schneider's Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/john-schneiders-greatest-hits-cd/530759.p?id=98040&skuId=530759&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530759', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0530\\/0530759_sa.jpg\"}', 'upc' => '076744203328', 'provider' => 'bestbuy'],\n ['name' => \"Honky Tonk Masquerade - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/honky-tonk-masquerade-cd/530937.p?id=81496&skuId=530937&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530937', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5309\\/530937.jpg\"}', 'upc' => '008811022020', 'provider' => 'bestbuy'],\n ['name' => \"Stones - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stones-cd/530973.p?id=80358&skuId=530973&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=530973', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0530\\/0530973_sa.jpg\"}', 'upc' => '076731104928', 'provider' => 'bestbuy'],\n ['name' => \"Moods - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moods-cd/531008.p?id=1535057&skuId=531008&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531008', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5310\\/531008_sa.jpg\"}', 'upc' => '076731106120', 'provider' => 'bestbuy'],\n ['name' => \"Tap Root Manuscript - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tap-root-manuscript-cd/531017.p?id=80362&skuId=531017&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531017', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531017_sa.jpg\"}', 'upc' => '076731107127', 'provider' => 'bestbuy'],\n ['name' => \"Raise Your Fist and Yell - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/raise-your-fist-and-yell-cd/531080.p?id=78657&skuId=531080&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531080', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531080_sa.jpg\"}', 'upc' => '076742209124', 'provider' => 'bestbuy'],\n ['name' => \"Lost in the Ozone - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lost-in-the-ozone-cd/531099.p?id=78430&skuId=531099&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531099', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5310\\/531099_sa.jpg\"}', 'upc' => '076731118529', 'provider' => 'bestbuy'],\n ['name' => \"Mama's Big Ones: The Best of Mama Cass - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mamas-big-ones-the-best-of-mama-cass-cd/531133.p?id=81461&skuId=531133&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531133', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531133_sa.jpg\"}', 'upc' => '076731114729', 'provider' => 'bestbuy'],\n ['name' => \"Volcano - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/volcano-cd/531142.p?id=76281&skuId=531142&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531142', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531142_sa.jpg\"}', 'upc' => '076732165720', 'provider' => 'bestbuy'],\n ['name' => \"A White Sport Coat and a Pink Crustacean - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-white-sport-coat-and-a-pink-crustacean-cd/531151.p?id=76257&skuId=531151&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531151', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531151_sa.jpg\"}', 'upc' => '076731109022', 'provider' => 'bestbuy'],\n ['name' => \"Coconut Telegraph - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/coconut-telegraph-cd/531160.p?id=76265&skuId=531160&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531160', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531160_sa.jpg\"}', 'upc' => '076731109220', 'provider' => 'bestbuy'],\n ['name' => \"One Particular Harbour - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-particular-harbour-cd/531188.p?id=76275&skuId=531188&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531188', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5311\\/531188_sa.jpg\"}', 'upc' => '076731109428', 'provider' => 'bestbuy'],\n ['name' => \"Last Mango in Paris - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/last-mango-in-paris-cd/531197.p?id=76271&skuId=531197&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531197', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531197_sa.jpg\"}', 'upc' => '076731115726', 'provider' => 'bestbuy'],\n ['name' => \"Off to See the Lizard - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/off-to-see-the-lizard-cd/531204.p?id=76274&skuId=531204&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531204', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531204_sa.jpg\"}', 'upc' => '076732631423', 'provider' => 'bestbuy'],\n ['name' => \"Floridays - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/floridays-cd/531213.p?id=76267&skuId=531213&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531213', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531213_sa.jpg\"}', 'upc' => '076732573020', 'provider' => 'bestbuy'],\n ['name' => \"Live at the Opry - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-the-opry-cd/531268.p?id=78061&skuId=531268&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531268', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5312\\/531268.jpg\"}', 'upc' => '076742214227', 'provider' => 'bestbuy'],\n ['name' => \"Those Southern Knights - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/those-southern-knights-cd/531320.p?id=65402&skuId=531320&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531320', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531320_sa.jpg\"}', 'upc' => '076732164921', 'provider' => 'bestbuy'],\n ['name' => \"Hot Tamale Baby - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hot-tamale-baby-cd/531491.p?id=2412359&skuId=531491&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531491', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5314\\/531491.jpg\"}', 'upc' => '011661309524', 'provider' => 'bestbuy'],\n ['name' => \"Me Oh My, How the Time Does Fly: A John... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/me-oh-my-how-the-time-does-fly-a-john-cd/531516.p?id=84932&skuId=531516&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531516', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5315\\/531516_sa.jpg\"}', 'upc' => '018964044022', 'provider' => 'bestbuy'],\n ['name' => \"Columbia River Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/columbia-river-collection-cd/531543.p?id=2389679&skuId=531543&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531543', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531543_sa.jpg\"}', 'upc' => '011661103627', 'provider' => 'bestbuy'],\n ['name' => \"Blake & Rice - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blake-rice-cd/531589.p?id=74972&skuId=531589&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531589', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531589_sa.jpg\"}', 'upc' => '011661023321', 'provider' => 'bestbuy'],\n ['name' => \"Best Blues & Originals - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-blues-originals-cd/531614.p?id=75043&skuId=531614&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531614', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531614_sa.jpg\"}', 'upc' => '011661152526', 'provider' => 'bestbuy'],\n ['name' => \"American Finger Style Guitar - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-finger-style-guitar-cd/531678.p?id=102912&skuId=531678&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531678', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5316\\/531678_sa.jpg\"}', 'upc' => '011661153325', 'provider' => 'bestbuy'],\n ['name' => \"Brand New - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brand-new-cd/531703.p?id=100432&skuId=531703&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531703', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5317\\/531703_sa.jpg\"}', 'upc' => '012928801423', 'provider' => 'bestbuy'],\n ['name' => \"The Bluegrass Compact Disc - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-bluegrass-compact-disc-cd-various/531712.p?id=75158&skuId=531712&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531712', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531712_sa.jpg\"}', 'upc' => '011661150225', 'provider' => 'bestbuy'],\n ['name' => \"Right Place, Wrong Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/right-place-wrong-time-cd/531721.p?id=97582&skuId=531721&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531721', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5317\\/531721_sa.jpg\"}', 'upc' => '012928800723', 'provider' => 'bestbuy'],\n ['name' => \"Rockin' Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rockin-blues-cd/531749.p?id=96855&skuId=531749&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531749', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5317\\/531749_sa.jpg\"}', 'upc' => '011661154827', 'provider' => 'bestbuy'],\n ['name' => \"Dressed Up to Get Messed Up - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dressed-up-to-get-messed-up-cd/531758.p?id=97302&skuId=531758&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531758', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531758_sa.jpg\"}', 'upc' => '011671001821', 'provider' => 'bestbuy'],\n ['name' => \"Make Me Sweat - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/make-me-sweat-cd/531776.p?id=97964&skuId=531776&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531776', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531776_sa.jpg\"}', 'upc' => '052824219328', 'provider' => 'bestbuy'],\n ['name' => \"Modern Lovers '88 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/modern-lovers-88-cd/531794.p?id=96640&skuId=531794&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531794', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531794_sa.jpg\"}', 'upc' => '011661901421', 'provider' => 'bestbuy'],\n ['name' => \"Manzanita - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/manzanita-cd/531810.p?id=96598&skuId=531810&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531810', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5318\\/531810.jpg\"}', 'upc' => '011661009226', 'provider' => 'bestbuy'],\n ['name' => \"Cold on the Shoulder - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cold-on-the-shoulder-cd/531829.p?id=96590&skuId=531829&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531829', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5318\\/531829_sa.jpg\"}', 'upc' => '011661018327', 'provider' => 'bestbuy'],\n ['name' => \"Caught in the Act - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/caught-in-the-act-cd/531892.p?id=95722&skuId=531892&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531892', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5318\\/531892_sa.jpg\"}', 'upc' => '052824218123', 'provider' => 'bestbuy'],\n ['name' => \"House Party New Orleans Style - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/house-party-new-orleans-style-cd/531918.p?id=95565&skuId=531918&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531918', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531918_sa.jpg\"}', 'upc' => '011661205727', 'provider' => 'bestbuy'],\n ['name' => \"Retrospective - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/retrospective-cd/531927.p?id=2387154&skuId=531927&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531927', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531927_sa.jpg\"}', 'upc' => '011661150720', 'provider' => 'bestbuy'],\n ['name' => \"Beau Woes and Other Problems of Modern Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/beau-woes-and-other-problems-of-modern-life-cd/531963.p?id=88801&skuId=531963&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531963', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0531\\/0531963_sa.jpg\"}', 'upc' => '011671110721', 'provider' => 'bestbuy'],\n ['name' => \"My Number One - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-number-one-cd/531990.p?id=86365&skuId=531990&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=531990', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5319\\/531990.jpg\"}', 'upc' => '011661756120', 'provider' => 'bestbuy'],\n ['name' => \"Bayou Boogie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bayou-boogie-cd/532007.p?id=74239&skuId=532007&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532007', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0532\\/0532007_sa.jpg\"}', 'upc' => '011661601529', 'provider' => 'bestbuy'],\n ['name' => \"Lion Rock - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lion-rock-cd/532061.p?id=79442&skuId=532061&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532061', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0532\\/0532061_sa.jpg\"}', 'upc' => '011661751224', 'provider' => 'bestbuy'],\n ['name' => \"Lord of the Highway - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lord-of-the-highway-cd/532098.p?id=81500&skuId=532098&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532098', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5320\\/532098.jpg\"}', 'upc' => '012928800822', 'provider' => 'bestbuy'],\n ['name' => \"Daybreak - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/daybreak-cd/532114.p?id=82416&skuId=532114&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532114', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5321\\/532114_sa.jpg\"}', 'upc' => '011661151826', 'provider' => 'bestbuy'],\n ['name' => \"J.D. Crowe & the New South - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/j-d-crowe-the-new-south-cd/532178.p?id=79323&skuId=532178&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532178', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5321\\/532178_sa.jpg\"}', 'upc' => '011661004429', 'provider' => 'bestbuy'],\n ['name' => \"Room with a View of the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/room-with-a-view-of-the-blues-cd/532187.p?id=72475&skuId=532187&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532187', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5321\\/532187_sa.jpg\"}', 'upc' => '011661205925', 'provider' => 'bestbuy'],\n ['name' => \"Texas Swing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/texas-swing-cd/532196.p?id=75898&skuId=532196&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532196', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0532\\/0532196_sa.jpg\"}', 'upc' => '011661152724', 'provider' => 'bestbuy'],\n ['name' => \"False Accusations - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/false-accusations-cd/532249.p?id=79132&skuId=532249&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532249', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5322\\/532249.jpg\"}', 'upc' => '012928800525', 'provider' => 'bestbuy'],\n ['name' => \"60 Minutes with the King of Zydeco - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/60-minutes-with-the-king-of-zydeco-cd/532285.p?id=77340&skuId=532285&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532285', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0532\\/0532285_sa.jpg\"}', 'upc' => '096297030127', 'provider' => 'bestbuy'],\n ['name' => \"Live at St. Mark's - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-st-marks-cd/532294.p?id=77351&skuId=532294&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532294', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5322\\/532294.jpg\"}', 'upc' => '096297031322', 'provider' => 'bestbuy'],\n ['name' => \"Mel Tormé, Rob McConnell and the Boss Brass - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mel-torme-rob-mcconnell-and-the-boss-brass-cd/532356.p?id=71508&skuId=532356&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532356', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5323\\/532356_sa.jpg\"}', 'upc' => '013431430629', 'provider' => 'bestbuy'],\n ['name' => \"Rosemary Clooney Sings Ballads - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rosemary-clooney-sings-ballads-cd/532383.p?id=65031&skuId=532383&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532383', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5323\\/532383_sa.jpg\"}', 'upc' => '013431428220', 'provider' => 'bestbuy'],\n ['name' => \"Rosemary Clooney Sings the Lyrics of Johnny... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rosemary-clooney-sings-the-lyrics-of-johnny-cd/532409.p?id=65034&skuId=532409&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532409', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0532\\/0532409_sa.jpg\"}', 'upc' => '013431433323', 'provider' => 'bestbuy'],\n ['name' => \"Moscow Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moscow-night-cd/532427.p?id=64626&skuId=532427&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532427', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0532\\/0532427_sa.jpg\"}', 'upc' => '013431435327', 'provider' => 'bestbuy'],\n ['name' => \"Brazilian Soul - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brazilian-soul-cd/532436.p?id=63647&skuId=532436&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532436', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5324\\/532436_sa.jpg\"}', 'upc' => '013431415022', 'provider' => 'bestbuy'],\n ['name' => \"I'm Wanted - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/im-wanted-cd/532472.p?id=2484108&skuId=532472&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532472', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5324\\/532472_sa.jpg\"}', 'upc' => '011661304529', 'provider' => 'bestbuy'],\n ['name' => \"His All-Time Greatest Comic Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/his-all-time-greatest-comic-hits-cd/532481.p?id=100351&skuId=532481&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532481', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5324\\/532481.jpg\"}', 'upc' => '715187731226', 'provider' => 'bestbuy'],\n ['name' => \"Juice Newton's Greatest Hits (And More) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/juice-newtons-greatest-hits-and-more-cd/532613.p?id=93257&skuId=532613&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532613', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5326\\/532613_sa.jpg\"}', 'upc' => '077774648929', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/532631.p?id=93082&skuId=532631&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532631', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5326\\/532631_sa.jpg\"}', 'upc' => '715187730328', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/532677.p?id=83502&skuId=532677&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532677', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0532\\/0532677_sa.jpg\"}', 'upc' => '715187738720', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-cd/532720.p?id=83412&skuId=532720&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532720', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5327\\/532720_sa.jpg\"}', 'upc' => '715187736023', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Woody Herman [Curb/Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-woody-herman-curb-capitol-cd/532766.p?id=67389&skuId=532766&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532766', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0532\\/0532766_sa.jpg\"}', 'upc' => '715187739420', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Benny Goodman [Curb/Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-benny-goodman-curb-capitol-cd/532775.p?id=66809&skuId=532775&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532775', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5327\\/532775_sa.jpg\"}', 'upc' => '715187738621', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hymns - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hymns-cd/532873.p?id=82657&skuId=532873&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532873', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5328\\/532873_sa.jpg\"}', 'upc' => '715187732629', 'provider' => 'bestbuy'],\n ['name' => \"Come Fly with Me [Mono] [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/come-fly-with-me-mono-remaster-cd/532917.p?id=3232185&skuId=532917&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532917', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0532\\/0532917_sa.jpg\"}', 'upc' => '762185150627', 'provider' => 'bestbuy'],\n ['name' => \"Somewhere in the Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/somewhere-in-the-night-cd/532944.p?id=97981&skuId=532944&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532944', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0532\\/0532944_sa.jpg\"}', 'upc' => '715187758421', 'provider' => 'bestbuy'],\n ['name' => \"Out Goin' Cattin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/out-goin-cattin-cd/532953.p?id=97977&skuId=532953&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532953', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5329\\/532953.jpg\"}', 'upc' => '715187757929', 'provider' => 'bestbuy'],\n ['name' => \"Shakin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shakin-cd/532962.p?id=97980&skuId=532962&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=532962', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5329\\/532962_sa.jpg\"}', 'upc' => '715187758322', 'provider' => 'bestbuy'],\n ['name' => \"Best of the Spencer Davis Group [EMI 1987] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-the-spencer-davis-group-emi-1987-cd/533079.p?id=79822&skuId=533079&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533079', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0533\\/0533079_sa.jpg\"}', 'upc' => '077774659826', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/533088.p?id=79758&skuId=533088&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533088', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5330\\/533088.jpg\"}', 'upc' => '715187732520', 'provider' => 'bestbuy'],\n ['name' => \"Piano Reflections - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/piano-reflections-cd/533104.p?id=65958&skuId=533104&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533104', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5331\\/533104_sa.jpg\"}', 'upc' => '077779286324', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/533140.p?id=91113&skuId=533140&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533140', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5331\\/533140.jpg\"}', 'upc' => '077774686723', 'provider' => 'bestbuy'],\n ['name' => \"The Music Man [Original Broadway Cast] - CD - Original Broadway Cast\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-music-man-original-broadway-cast-cd-original-broadway-cast/533168.p?id=92681&skuId=533168&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533168', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5331\\/533168_sa.jpg\"}', 'upc' => '077774663328', 'provider' => 'bestbuy'],\n ['name' => \"Transitions - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/transitions-cd/533195.p?id=1441867&skuId=533195&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533195', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5331\\/533195.jpg\"}', 'upc' => '077774646123', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Guy Lombardo [Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-guy-lombardo-capitol-cd/533275.p?id=89548&skuId=533275&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533275', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0533\\/0533275_sa.jpg\"}', 'upc' => '715187739024', 'provider' => 'bestbuy'],\n ['name' => \"Billboard Top R&B Hits: 1961 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/billboard-top-r-b-hits-1961-cd/533382.p?id=74699&skuId=533382&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533382', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5333\\/533382.jpg\"}', 'upc' => '081227064723', 'provider' => 'bestbuy'],\n ['name' => \"Finger Paintings - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/finger-paintings-cd/533587.p?id=68285&skuId=533587&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533587', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5335\\/533587_sa.jpg\"}', 'upc' => '077774838627', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Gordon Lightfoot - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-gordon-lightfoot-cd/533612.p?id=89248&skuId=533612&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533612', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5336\\/533612_sa.jpg\"}', 'upc' => '715187742826', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Harry James [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-harry-james-curb-cd/533685.p?id=67846&skuId=533685&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533685', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0533\\/0533685_sa.jpg\"}', 'upc' => '715187739123', 'provider' => 'bestbuy'],\n ['name' => \"Live in Branson Mo. Usa - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-in-branson-mo-usa-cd/533729.p?id=1365883&skuId=533729&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533729', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0533\\/0533729_sa.jpg\"}', 'upc' => '715187739529', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Country Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-country-hits-cd/533747.p?id=76667&skuId=533747&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533747', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5337\\/533747_sa.jpg\"}', 'upc' => '715187736221', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/533818.p?id=78152&skuId=533818&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533818', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5338\\/533818.jpg\"}', 'upc' => '715187737129', 'provider' => 'bestbuy'],\n ['name' => \"A Space in Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => 6.99, 'url' => 'http://www.bestbuy.com/site/a-space-in-time-cd/533998.p?id=101416&skuId=533998&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=533998', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5339\\/533998_sa.jpg\"}', 'upc' => '094632100122', 'provider' => 'bestbuy'],\n ['name' => \"Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-cd/534078.p?id=70011&skuId=534078&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=534078', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0534\\/0534078_sa.jpg\"}', 'upc' => '077779256327', 'provider' => 'bestbuy'],\n ['name' => \"This Is the Sea - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/this-is-the-sea-cd/534274.p?id=1412616&skuId=534274&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=534274', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0534\\/0534274_sa.jpg\"}', 'upc' => '094632154323', 'provider' => 'bestbuy'],\n ['name' => \"Moonstruck - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moonstruck-cd-original-soundtrack/534345.p?id=92199&skuId=534345&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=534345', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5343\\/534345.jpg\"}', 'upc' => '077779023127', 'provider' => 'bestbuy'],\n ['name' => \"Book of Dreams - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/book-of-dreams-cd/534363.p?id=91729&skuId=534363&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=534363', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5343\\/534363.jpg\"}', 'upc' => '077774647625', 'provider' => 'bestbuy'],\n ['name' => \"At Budokan - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-budokan-cd/535521.p?id=81156&skuId=535521&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=535521', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5355\\/535521_sa.jpg\"}', 'upc' => '074643606721', 'provider' => 'bestbuy'],\n ['name' => \"The Princess Bride - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-princess-bride-cd-original-soundtrack/536833.p?id=2752958&skuId=536833&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=536833', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0536\\/0536833_sa.jpg\"}', 'upc' => '075992561020', 'provider' => 'bestbuy'],\n ['name' => \"Peter, Paul and Mary - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/peter-paul-and-mary-cd/536888.p?id=94798&skuId=536888&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=536888', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5368\\/536888_sa.jpg\"}', 'upc' => '075992715720', 'provider' => 'bestbuy'],\n ['name' => \"The Ocean Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-ocean-blue-cd/536986.p?id=93782&skuId=536986&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=536986', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0536\\/0536986_sa.jpg\"}', 'upc' => '075992590624', 'provider' => 'bestbuy'],\n ['name' => \"Halfway to Sanity - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/halfway-to-sanity-cd/537066.p?id=95915&skuId=537066&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=537066', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0537\\/0537066_sa.jpg\"}', 'upc' => '075992564120', 'provider' => 'bestbuy'],\n ['name' => \"Christmas in America - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-in-america-cd/537574.p?id=97126&skuId=537574&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=537574', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0537\\/0537574_sa.jpg\"}', 'upc' => '075992597326', 'provider' => 'bestbuy'],\n ['name' => \"Strangeways, Here We Come - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/strangeways-here-we-come-cd/537618.p?id=99247&skuId=537618&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=537618', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5376\\/537618_sa.jpg\"}', 'upc' => '075992564922', 'provider' => 'bestbuy'],\n ['name' => \"In Dub - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-dub-cd/537636.p?id=96448&skuId=537636&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=537636', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5376\\/537636.jpg\"}', 'upc' => '075596100625', 'provider' => 'bestbuy'],\n ['name' => \"Ray Charles Live [Atlantic] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ray-charles-live-atlantic-cd/537663.p?id=77256&skuId=537663&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=537663', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5376\\/537663_sa.jpg\"}', 'upc' => '075678173226', 'provider' => 'bestbuy'],\n ['name' => \"Land of Enchantment - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/land-of-enchantment-cd/537690.p?id=92639&skuId=537690&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=537690', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5376\\/537690_sa.jpg\"}', 'upc' => '075992589420', 'provider' => 'bestbuy'],\n ['name' => \"20 Anos - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/20-anos-cd/537789.p?id=1373930&skuId=537789&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=537789', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5377\\/537789_sa.jpg\"}', 'upc' => '090317153520', 'provider' => 'bestbuy'],\n ['name' => \"Eyes on This - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/eyes-on-this-cd/537869.p?id=90974&skuId=537869&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=537869', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0537\\/0537869_sa.jpg\"}', 'upc' => '075679130426', 'provider' => 'bestbuy'],\n ['name' => \"You Can Dance - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/you-can-dance-cd/537887.p?id=3338784&skuId=537887&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=537887', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0537\\/0537887_sa.jpg\"}', 'upc' => '075992553520', 'provider' => 'bestbuy'],\n ['name' => \"How Will the Wolf Survive? - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/how-will-the-wolf-survive-cd/537949.p?id=89690&skuId=537949&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=537949', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0537\\/0537949_sa.jpg\"}', 'upc' => '075992517720', 'provider' => 'bestbuy'],\n ['name' => \"By the Light of the Moon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/by-the-light-of-the-moon-cd/537958.p?id=89689&skuId=537958&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=537958', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0537\\/0537958_sa.jpg\"}', 'upc' => '075992552325', 'provider' => 'bestbuy'],\n ['name' => \"La Bamba - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/la-bamba-cd-original-soundtrack/538038.p?id=88495&skuId=538038&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538038', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0538\\/0538038_sa.jpg\"}', 'upc' => '075992560528', 'provider' => 'bestbuy'],\n ['name' => \"Just Coolin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/just-coolin-cd/538074.p?id=89113&skuId=538074&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538074', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5380\\/538074_sa.jpg\"}', 'upc' => '075678192623', 'provider' => 'bestbuy'],\n ['name' => \"Gretchen Goes to Nebraska - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gretchen-goes-to-nebraska-cd/538145.p?id=88066&skuId=538145&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538145', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0538\\/0538145_sa.jpg\"}', 'upc' => '075678199721', 'provider' => 'bestbuy'],\n ['name' => \"Ultimate Collection: Stand by Me/Best of Ben... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ultimate-collection-stand-by-me-best-of-ben-cd/538163.p?id=87948&skuId=538163&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538163', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5381\\/538163_sa.jpg\"}', 'upc' => '075678021329', 'provider' => 'bestbuy'],\n ['name' => \"Out of the Silent Planet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/out-of-the-silent-planet-cd/538172.p?id=88068&skuId=538172&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538172', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0538\\/0538172_sa.jpg\"}', 'upc' => '075678182525', 'provider' => 'bestbuy'],\n ['name' => \"Move to Move - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/move-to-move-cd/538225.p?id=88333&skuId=538225&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538225', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0538\\/0538225_sa.jpg\"}', 'upc' => '075678198427', 'provider' => 'bestbuy'],\n ['name' => \"Breakin Away - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => 8.99, 'url' => 'http://www.bestbuy.com/site/breakin-away-cd/538270.p?id=86749&skuId=538270&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538270', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5382\\/538270_sa.jpg\"}', 'upc' => '075992357623', 'provider' => 'bestbuy'],\n ['name' => \"This Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/this-time-cd/538323.p?id=86759&skuId=538323&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538323', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0538\\/0538323_sa.jpg\"}', 'upc' => '075992343428', 'provider' => 'bestbuy'],\n ['name' => \"Paw Paw Patch - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/paw-paw-patch-cd/538467.p?id=1967964&skuId=538467&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538467', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '075679134028', 'provider' => 'bestbuy'],\n ['name' => \"Gipsy Kings - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gipsy-kings-cd/538546.p?id=83668&skuId=538546&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538546', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0538\\/0538546_sa.jpg\"}', 'upc' => '075596084529', 'provider' => 'bestbuy'],\n ['name' => \"River of Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/river-of-love-cd/538617.p?id=82714&skuId=538617&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538617', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0538\\/0538617_sa.jpg\"}', 'upc' => '075678216121', 'provider' => 'bestbuy'],\n ['name' => \"Bluebird - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bluebird-cd/538644.p?id=84855&skuId=538644&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538644', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0538\\/0538644_sa.jpg\"}', 'upc' => '075992577625', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/538742.p?id=82689&skuId=538742&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538742', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5387\\/538742_sa.jpg\"}', 'upc' => '075992589727', 'provider' => 'bestbuy'],\n ['name' => \"An Old Time Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/an-old-time-christmas-cd/538831.p?id=102187&skuId=538831&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538831', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0538\\/0538831_sa.jpg\"}', 'upc' => '075992597227', 'provider' => 'bestbuy'],\n ['name' => \"Ancient Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ancient-heart-cd/538877.p?id=101851&skuId=538877&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538877', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5388\\/538877_sa.jpg\"}', 'upc' => '075992583923', 'provider' => 'bestbuy'],\n ['name' => \"Hunkpapa - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hunkpapa-cd/538886.p?id=101816&skuId=538886&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538886', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5388\\/538886_sa.jpg\"}', 'upc' => '075992585521', 'provider' => 'bestbuy'],\n ['name' => \"Practice What You Preach - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/practice-what-you-preach-cd/538911.p?id=101483&skuId=538911&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538911', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0538\\/0538911_sa.jpg\"}', 'upc' => '075678200922', 'provider' => 'bestbuy'],\n ['name' => \"Talking Heads 77 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/talking-heads-77-cd/538957.p?id=101137&skuId=538957&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538957', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0538\\/0538957_sa.jpg\"}', 'upc' => '075992742320', 'provider' => 'bestbuy'],\n ['name' => \"Long May You Run - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/long-may-you-run-cd/538993.p?id=100456&skuId=538993&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=538993', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0538\\/0538993_sa.jpg\"}', 'upc' => '075992723022', 'provider' => 'bestbuy'],\n ['name' => \"Fear of Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fear-of-music-cd/539000.p?id=101129&skuId=539000&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539000', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5390\\/539000_sa.jpg\"}', 'upc' => '075992742825', 'provider' => 'bestbuy'],\n ['name' => \"True Stories - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/true-stories-cd/539037.p?id=101140&skuId=539037&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539037', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5390\\/539037_sa.jpg\"}', 'upc' => '075992551229', 'provider' => 'bestbuy'],\n ['name' => \"Rich & Poor - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rich-poor-cd/539082.p?id=79118&skuId=539082&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539082', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0539\\/0539082_sa.jpg\"}', 'upc' => '075992600224', 'provider' => 'bestbuy'],\n ['name' => \"Back for the Attack - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/back-for-the-attack-cd/539108.p?id=80694&skuId=539108&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539108', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0539\\/0539108_sa.jpg\"}', 'upc' => '075596073523', 'provider' => 'bestbuy'],\n ['name' => \"All Nite - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-nite-cd/539279.p?id=81611&skuId=539279&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539279', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0539\\/0539279_sa.jpg\"}', 'upc' => '075596085823', 'provider' => 'bestbuy'],\n ['name' => \"No One Can Do It Better [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/no-one-can-do-it-better-pa-cd/539411.p?id=79575&skuId=539411&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539411', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0539\\/0539411_sa.jpg\"}', 'upc' => '075679127525', 'provider' => 'bestbuy'],\n ['name' => \"No Fuel Left For Pilgrims - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 17.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/no-fuel-left-for-pilgrims-cd/539420.p?id=2310042&skuId=539420&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539420', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0539\\/0539420_sa.jpg\"}', 'upc' => '075992599924', 'provider' => 'bestbuy'],\n ['name' => \"The Captain and Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-captain-and-me-cd/539484.p?id=80774&skuId=539484&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539484', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5394\\/539484_sa.jpg\"}', 'upc' => '075992727129', 'provider' => 'bestbuy'],\n ['name' => \"Tutu - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tutu-cd/539545.p?id=65578&skuId=539545&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539545', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0539\\/0539545_sa.jpg\"}', 'upc' => '075992549028', 'provider' => 'bestbuy'],\n ['name' => \"Best Of - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-cd/539796.p?id=2412253&skuId=539796&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539796', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5397\\/539796.jpg\"}', 'upc' => '075678128127', 'provider' => 'bestbuy'],\n ['name' => \"Blade Runner - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blade-runner-cd-original-soundtrack/539830.p?id=74940&skuId=539830&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539830', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0539\\/0539830_sa.jpg\"}', 'upc' => '075992374828', 'provider' => 'bestbuy'],\n ['name' => \"Antecedente - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/antecedente-cd/539858.p?id=74942&skuId=539858&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539858', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5398\\/539858_sa.jpg\"}', 'upc' => '075596079525', 'provider' => 'bestbuy'],\n ['name' => \"It's a Big Daddy Thing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/its-a-big-daddy-thing-cd/539876.p?id=87591&skuId=539876&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539876', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5398\\/539876_sa.jpg\"}', 'upc' => '075992594127', 'provider' => 'bestbuy'],\n ['name' => \"Home - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/home-cd/539885.p?id=75378&skuId=539885&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539885', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5398\\/539885_sa.jpg\"}', 'upc' => '075992587624', 'provider' => 'bestbuy'],\n ['name' => \"Collaboration - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/collaboration-cd/539910.p?id=64197&skuId=539910&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=539910', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5399\\/539910_sa.jpg\"}', 'upc' => '075992558020', 'provider' => 'bestbuy'],\n ['name' => \"Bermuda Nights - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bermuda-nights-cd/540034.p?id=63584&skuId=540034&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=540034', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5400\\/540034.jpg\"}', 'upc' => '075678191923', 'provider' => 'bestbuy'],\n ['name' => \"Zuma - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/zuma-cd/540098.p?id=105065&skuId=540098&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=540098', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0540\\/0540098_sa.jpg\"}', 'upc' => '075992722629', 'provider' => 'bestbuy'],\n ['name' => \"This Note's for You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/this-notes-for-you-cd/540132.p?id=105073&skuId=540132&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=540132', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0540\\/0540132_sa.jpg\"}', 'upc' => '075992571920', 'provider' => 'bestbuy'],\n ['name' => \"Pure Gershwin - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pure-gershwin-cd/540267.p?id=82048&skuId=540267&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=540267', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5402\\/540267_sa.jpg\"}', 'upc' => '075596074223', 'provider' => 'bestbuy'],\n ['name' => \"Live at the Algonquin - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-the-algonquin-cd/540285.p?id=82047&skuId=540285&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=540285', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5402\\/540285_sa.jpg\"}', 'upc' => '075596074322', 'provider' => 'bestbuy'],\n ['name' => \"Remember: Michael Feinstein Sings Irving Berlin - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/remember-michael-feinstein-sings-irving-berlin-cd/540294.p?id=82050&skuId=540294&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=540294', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0540\\/0540294_sa.jpg\"}', 'upc' => '075596074421', 'provider' => 'bestbuy'],\n ['name' => \"Wilson Pickett's Greatest Hits [1985] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wilson-picketts-greatest-hits-1985-cd/540310.p?id=94930&skuId=540310&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=540310', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5403\\/540310_sa.jpg\"}', 'upc' => '075678173721', 'provider' => 'bestbuy'],\n ['name' => \"Hold On - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hold-on-cd/540329.p?id=93425&skuId=540329&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=540329', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0540\\/0540329_sa.jpg\"}', 'upc' => '075992557320', 'provider' => 'bestbuy'],\n ['name' => \"The Drill - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-drill-cd/540409.p?id=247899&skuId=540409&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=540409', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5404\\/540409_sa.jpg\"}', 'upc' => '024596110325', 'provider' => 'bestbuy'],\n ['name' => \"Cowboy Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cowboy-christmas-cd/540436.p?id=92637&skuId=540436&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=540436', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5404\\/540436_sa.jpg\"}', 'upc' => '075992664721', 'provider' => 'bestbuy'],\n ['name' => \"A Brenda Lee Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-brenda-lee-christmas-cd/540445.p?id=88946&skuId=540445&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=540445', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0540\\/0540445_sa.jpg\"}', 'upc' => '075992666022', 'provider' => 'bestbuy'],\n ['name' => \"Portrait - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/portrait-cd/540463.p?id=103628&skuId=540463&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=540463', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0540\\/0540463_sa.jpg\"}', 'upc' => '015891375922', 'provider' => 'bestbuy'],\n ['name' => \"In Concert: The Best of Jimmy Cliff - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-concert-the-best-of-jimmy-cliff-cd/541934.p?id=78027&skuId=541934&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=541934', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5419\\/541934.jpg\"}', 'upc' => '075992723220', 'provider' => 'bestbuy'],\n ['name' => \"The Art of the Improvisers [Bonus Tracks] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-art-of-the-improvisers-bonus-tracks-cd/541952.p?id=65096&skuId=541952&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=541952', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0541\\/0541952_sa.jpg\"}', 'upc' => '075679097828', 'provider' => 'bestbuy'],\n ['name' => \"Something/Anything? [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/something-anything-pa-cd/542023.p?id=97552&skuId=542023&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=542023', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5420\\/542023_sa.jpg\"}', 'upc' => '081227110727', 'provider' => 'bestbuy'],\n ['name' => \"Prime Evil - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/prime-evil-cd/542103.p?id=247076&skuId=542103&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=542103', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5421\\/542103.jpg\"}', 'upc' => '032751106427', 'provider' => 'bestbuy'],\n ['name' => \"Hell Awaits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hell-awaits-cd/542167.p?id=268932&skuId=542167&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=542167', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '018777229722', 'provider' => 'bestbuy'],\n ['name' => \"Too Far Gone - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/too-far-gone-cd/542201.p?id=1981704&skuId=542201&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=542201', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '026245104822', 'provider' => 'bestbuy'],\n ['name' => \"Project: Driver - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/project-driver-cd/542210.p?id=80980&skuId=542210&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=542210', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5422\\/542210_sa.jpg\"}', 'upc' => '026245102828', 'provider' => 'bestbuy'],\n ['name' => \"Dragon's Kiss - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dragons-kiss-cd/542274.p?id=82984&skuId=542274&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=542274', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5422\\/542274.jpg\"}', 'upc' => '026245103528', 'provider' => 'bestbuy'],\n ['name' => \"Michael Lee Firkins - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/michael-lee-firkins-cd/542309.p?id=82267&skuId=542309&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=542309', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5423\\/542309_sa.jpg\"}', 'upc' => '026245104525', 'provider' => 'bestbuy'],\n ['name' => \"Go Off! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/go-off-cd/542363.p?id=76503&skuId=542363&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=542363', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0542\\/0542363_sa.jpg\"}', 'upc' => '026245104020', 'provider' => 'bestbuy'],\n ['name' => \"Speed Metal Symphony - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/speed-metal-symphony-cd/542372.p?id=76504&skuId=542372&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=542372', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0542\\/0542372_sa.jpg\"}', 'upc' => '026245103122', 'provider' => 'bestbuy'],\n ['name' => \"QR III - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/qr-iii-cd/542880.p?id=95753&skuId=542880&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=542880', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5428\\/542880_sa.jpg\"}', 'upc' => '074644032123', 'provider' => 'bestbuy'],\n ['name' => \"Earthquake Weather - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/earthquake-weather-cd/543095.p?id=100631&skuId=543095&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=543095', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5430\\/543095.jpg\"}', 'upc' => '074644537222', 'provider' => 'bestbuy'],\n ['name' => \"2nd Wave - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2nd-wave-cd/543102.p?id=100908&skuId=543102&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=543102', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0543\\/0543102_sa.jpg\"}', 'upc' => '074644428421', 'provider' => 'bestbuy'],\n ['name' => \"Another Place - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/another-place-cd/543193.p?id=67458&skuId=543193&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=543193', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5431\\/543193_sa.jpg\"}', 'upc' => '074643993821', 'provider' => 'bestbuy'],\n ['name' => \"Warrior - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/warrior-cd/543273.p?id=98006&skuId=543273&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=543273', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0543\\/0543273_sa.jpg\"}', 'upc' => '074643917322', 'provider' => 'bestbuy'],\n ['name' => \"Hollywood Musicals - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hollywood-musicals-cd/543497.p?id=90822&skuId=543497&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=543497', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0543\\/0543497_sa.jpg\"}', 'upc' => '074644037227', 'provider' => 'bestbuy'],\n ['name' => \"Walking with a Panther [Clean] [Edited] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/walking-with-a-panther-clean-edited-cd/543594.p?id=89493&skuId=543594&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=543594', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5435\\/543594_sa.jpg\"}', 'upc' => '731452735522', 'provider' => 'bestbuy'],\n ['name' => \"Jingle Bell Jazz - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jingle-bell-jazz-cd-various/543692.p?id=67987&skuId=543692&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=543692', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5436\\/543692_sa.jpg\"}', 'upc' => '074644016628', 'provider' => 'bestbuy'],\n ['name' => \"Best of the Big Bands - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-the-big-bands-cd/543941.p?id=64788&skuId=543941&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=543941', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5439\\/543941_sa.jpg\"}', 'upc' => '074644533620', 'provider' => 'bestbuy'],\n ['name' => \"She Was Too Good to Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/she-was-too-good-to-me-cd/544405.p?id=63912&skuId=544405&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=544405', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5444\\/544405_sa.jpg\"}', 'upc' => '074644080421', 'provider' => 'bestbuy'],\n ['name' => \"Shake You Down - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shake-you-down-cd/544432.p?id=72316&skuId=544432&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=544432', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0544\\/0544432_sa.jpg\"}', 'upc' => '074644043723', 'provider' => 'bestbuy'],\n ['name' => \"Radio - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/radio-cd/544655.p?id=89489&skuId=544655&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=544655', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5446\\/544655.jpg\"}', 'upc' => '731452735225', 'provider' => 'bestbuy'],\n ['name' => \"Lisa Lisa & Cult Jam with Full Force - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lisa-lisa-cult-jam-with-full-force-cd/544682.p?id=89332&skuId=544682&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=544682', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5446\\/544682_sa.jpg\"}', 'upc' => '074644013528', 'provider' => 'bestbuy'],\n ['name' => \"Rip It Up - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rip-it-up-cd/545164.p?id=79971&skuId=545164&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=545164', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0545\\/0545164_sa.jpg\"}', 'upc' => '074644425529', 'provider' => 'bestbuy'],\n ['name' => \"Beverly Hills Cop [Original Motion Picture... - Original Soundtrack - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/beverly-hills-cop-original-motion-picture-original-soundtrack-cd/545360.p?id=74556&skuId=545360&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=545360', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0545\\/0545360_sa.jpg\"}', 'upc' => '076732555323', 'provider' => 'bestbuy'],\n ['name' => \"Alpha - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alpha-cd/545397.p?id=73330&skuId=545397&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=545397', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5453\\/545397_sa.jpg\"}', 'upc' => '720642400821', 'provider' => 'bestbuy'],\n ['name' => \"Love Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-life-cd/545413.p?id=74483&skuId=545413&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=545413', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5454\\/545413.jpg\"}', 'upc' => '720642402528', 'provider' => 'bestbuy'],\n ['name' => \"Pleasure Victim - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pleasure-victim-cd/545422.p?id=74484&skuId=545422&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=545422', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5454\\/545422.jpg\"}', 'upc' => '720642203620', 'provider' => 'bestbuy'],\n ['name' => \"Done with Mirrors - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/done-with-mirrors-cd/545431.p?id=72533&skuId=545431&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=545431', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0545\\/0545431_sa.jpg\"}', 'upc' => '720642409121', 'provider' => 'bestbuy'],\n ['name' => \"Contagious - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/contagious-cd/545440.p?id=104864&skuId=545440&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=545440', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5454\\/545440_sa.jpg\"}', 'upc' => '720642414224', 'provider' => 'bestbuy'],\n ['name' => \"Somewhere in Time [Original Motion Picture... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/somewhere-in-time-original-motion-picture-cd-original-soundtrack/545477.p?id=99423&skuId=545477&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=545477', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0545\\/0545477_sa.jpg\"}', 'upc' => '076731116426', 'provider' => 'bestbuy'],\n ['name' => \"Snakebite - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/snakebite-cd/545645.p?id=103888&skuId=545645&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=545645', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0545\\/0545645_sa.jpg\"}', 'upc' => '075992417426', 'provider' => 'bestbuy'],\n ['name' => \"Viva Terlingua - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/viva-terlingua-cd/545681.p?id=103364&skuId=545681&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=545681', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5456\\/545681_sa.jpg\"}', 'upc' => '076732091920', 'provider' => 'bestbuy'],\n ['name' => \"#7 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/7-cd/545734.p?id=100546&skuId=545734&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=545734', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5457\\/545734_sa.jpg\"}', 'upc' => '076732575024', 'provider' => 'bestbuy'],\n ['name' => \"Something Special - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/something-special-cd/545743.p?id=100549&skuId=545743&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=545743', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0545\\/0545743_sa.jpg\"}', 'upc' => '076732560525', 'provider' => 'bestbuy'],\n ['name' => \"Touch - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/touch-cd/545958.p?id=68275&skuId=545958&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=545958', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0545\\/0545958_sa.jpg\"}', 'upc' => '076741715220', 'provider' => 'bestbuy'],\n ['name' => \"Riding with the King - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/riding-with-the-king-cd/546010.p?id=85326&skuId=546010&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546010', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5460\\/546010_sa.jpg\"}', 'upc' => '720642401729', 'provider' => 'bestbuy'],\n ['name' => \"Little Love Affairs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/little-love-affairs-cd/546065.p?id=84273&skuId=546065&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546065', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5460\\/546065_sa.jpg\"}', 'upc' => '076742210229', 'provider' => 'bestbuy'],\n ['name' => \"Michael Brecker - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/michael-brecker-cd/546109.p?id=64504&skuId=546109&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546109', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5461\\/546109_sa.jpg\"}', 'upc' => '076732508022', 'provider' => 'bestbuy'],\n ['name' => \"Follow the Leader - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/follow-the-leader-cd/546136.p?id=81664&skuId=546136&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546136', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5461\\/546136_sa.jpg\"}', 'upc' => '039405000322', 'provider' => 'bestbuy'],\n ['name' => \"Exit 0 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/exit-0-cd/546163.p?id=81236&skuId=546163&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546163', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0546\\/0546163_sa.jpg\"}', 'upc' => '076732599822', 'provider' => 'bestbuy'],\n ['name' => \"Live from Deep in the Heart of Texas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-from-deep-in-the-heart-of-texas-cd/546216.p?id=78429&skuId=546216&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546216', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5462\\/546216_sa.jpg\"}', 'upc' => '076732065921', 'provider' => 'bestbuy'],\n ['name' => \"Vision Quest [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vision-quest-original-soundtrack-cd-original-soundtrack/546261.p?id=103199&skuId=546261&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546261', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5462\\/546261.jpg\"}', 'upc' => '720642406328', 'provider' => 'bestbuy'],\n ['name' => \"Lone Justice - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lone-justice-cd/546289.p?id=89572&skuId=546289&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546289', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0546\\/0546289_sa.jpg\"}', 'upc' => '720642406021', 'provider' => 'bestbuy'],\n ['name' => \"Points on the Curve - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/points-on-the-curve-cd/546298.p?id=103445&skuId=546298&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546298', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5462\\/546298_sa.jpg\"}', 'upc' => '720642400425', 'provider' => 'bestbuy'],\n ['name' => \"L'Apocalypse Des Animaux - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lapocalypse-des-animaux-cd/546350.p?id=88479&skuId=546350&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546350', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5463\\/546350.jpg\"}', 'upc' => '042283150324', 'provider' => 'bestbuy'],\n ['name' => \"1969: Velvet Underground Live with Lou Reed,... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1969-velvet-underground-live-with-lou-reed-cd/546369.p?id=103074&skuId=546369&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546369', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5463\\/546369_sa.jpg\"}', 'upc' => '042283482425', 'provider' => 'bestbuy'],\n ['name' => \"Soil Festivities - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/soil-festivities-cd/546378.p?id=102979&skuId=546378&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546378', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5463\\/546378.jpg\"}', 'upc' => '042282339621', 'provider' => 'bestbuy'],\n ['name' => \"Antarctica [Original soundtrack] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/antarctica-original-soundtrack-cd/546387.p?id=73107&skuId=546387&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546387', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5463\\/546387_sa.jpg\"}', 'upc' => '042281573224', 'provider' => 'bestbuy'],\n ['name' => \"Second Contribution - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/second-contribution-cd/546485.p?id=94870&skuId=546485&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546485', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0546\\/0546485_sa.jpg\"}', 'upc' => '075021312821', 'provider' => 'bestbuy'],\n ['name' => \"Pressure Drop - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pressure-drop-cd/546519.p?id=2424821&skuId=546519&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546519', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5465\\/546519_sa.jpg\"}', 'upc' => '042284259422', 'provider' => 'bestbuy'],\n ['name' => \"New York Dolls - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-york-dolls-cd/546537.p?id=93213&skuId=546537&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546537', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5465\\/546537_sa.jpg\"}', 'upc' => '042283275225', 'provider' => 'bestbuy'],\n ['name' => \"Show Some Emotion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/show-some-emotion-cd/546546.p?id=73235&skuId=546546&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546546', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0546\\/0546546_sa.jpg\"}', 'upc' => '075021327320', 'provider' => 'bestbuy'],\n ['name' => \"Midnight Express [Original Soundtrack] - CD - Original Soundtrack Germany\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/midnight-express-original-soundtrack-cd-original-soundtrack-germany/546582.p?id=91637&skuId=546582&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546582', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0546\\/0546582_sa.jpg\"}', 'upc' => '042282420626', 'provider' => 'bestbuy'],\n ['name' => \"Smokin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/smokin-cd/546617.p?id=85917&skuId=546617&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546617', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5466\\/546617_sa.jpg\"}', 'upc' => '075021313224', 'provider' => 'bestbuy'],\n ['name' => \"Emerson, Lake & Powell - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/emerson-lake-powell-cd/546706.p?id=81513&skuId=546706&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546706', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5467\\/546706_sa.jpg\"}', 'upc' => '042282929723', 'provider' => 'bestbuy'],\n ['name' => \"Fire and Water - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fire-and-water-cd/546742.p?id=82930&skuId=546742&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546742', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5467\\/546742_sa.jpg\"}', 'upc' => '075021312623', 'provider' => 'bestbuy'],\n ['name' => \"Beauty & The Beat - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/beauty-the-beat-cd/546751.p?id=2229007&skuId=546751&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546751', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0546\\/0546751_sa.jpg\"}', 'upc' => '044797502125', 'provider' => 'bestbuy'],\n ['name' => \"Grasshopper - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/grasshopper-cd/546779.p?id=76583&skuId=546779&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546779', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0546\\/0546779_sa.jpg\"}', 'upc' => '042280003821', 'provider' => 'bestbuy'],\n ['name' => \"5 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-cd/546840.p?id=76582&skuId=546840&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546840', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0546\\/0546840_sa.jpg\"}', 'upc' => '042281031328', 'provider' => 'bestbuy'],\n ['name' => \"Roy Buchanan - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/roy-buchanan-cd/546886.p?id=76196&skuId=546886&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546886', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5468\\/546886_sa.jpg\"}', 'upc' => '042283141322', 'provider' => 'bestbuy'],\n ['name' => \"Best of Doug Sahm & the Sir Douglas Quintet... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-doug-sahm-the-sir-douglas-quintet-cd/546984.p?id=97720&skuId=546984&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=546984', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5469\\/546984.jpg\"}', 'upc' => '042284658621', 'provider' => 'bestbuy'],\n ['name' => \"Joan Armatrading - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/joan-armatrading-cd/547064.p?id=73232&skuId=547064&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=547064', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0547\\/0547064_sa.jpg\"}', 'upc' => '075021322820', 'provider' => 'bestbuy'],\n ['name' => \"The Six Wives of Henry VIII - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-six-wives-of-henry-viii-cd/547082.p?id=103339&skuId=547082&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=547082', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0547\\/0547082_sa.jpg\"}', 'upc' => '075021322929', 'provider' => 'bestbuy'],\n ['name' => \"Big Tyme - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-tyme-cd/547206.p?id=85155&skuId=547206&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=547206', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5472\\/547206_sa.jpg\"}', 'upc' => '076742230227', 'provider' => 'bestbuy'],\n ['name' => \"Mountain Dance - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mountain-dance-cd/547224.p?id=67014&skuId=547224&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=547224', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0547\\/0547224_sa.jpg\"}', 'upc' => '011105950725', 'provider' => 'bestbuy'],\n ['name' => \"Caught in the Act - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 21.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/caught-in-the-act-cd/547297.p?id=67366&skuId=547297&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=547297', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5472\\/547297.jpg\"}', 'upc' => '011105960021', 'provider' => 'bestbuy'],\n ['name' => \"Outrider - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/outrider-cd/547448.p?id=94268&skuId=547448&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=547448', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0547\\/0547448_sa.jpg\"}', 'upc' => '720642418826', 'provider' => 'bestbuy'],\n ['name' => \"Introducing ... David Peaston - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/introducing-david-peaston-cd/547509.p?id=94589&skuId=547509&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=547509', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0547\\/0547509_sa.jpg\"}', 'upc' => '720642422823', 'provider' => 'bestbuy'],\n ['name' => \"Junkyard - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/junkyard-cd/547885.p?id=87509&skuId=547885&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=547885', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0547\\/0547885_sa.jpg\"}', 'upc' => '720642422724', 'provider' => 'bestbuy'],\n ['name' => \"Peepshow - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/peepshow-cd/548198.p?id=98940&skuId=548198&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=548198', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0548\\/0548198_sa.jpg\"}', 'upc' => '720642420522', 'provider' => 'bestbuy'],\n ['name' => \"Goo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/goo-cd/548312.p?id=99453&skuId=548312&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=548312', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0548\\/0548312_sa.jpg\"}', 'upc' => '720642429723', 'provider' => 'bestbuy'],\n ['name' => \"Robbie Robertson - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/robbie-robertson-cd/548438.p?id=251978&skuId=548438&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=548438', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5484\\/548438_sa.jpg\"}', 'upc' => '720642416020', 'provider' => 'bestbuy'],\n ['name' => \"Portrait - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/portrait-cd/548447.p?id=70353&skuId=548447&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=548447', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0548\\/0548447_sa.jpg\"}', 'upc' => '011105955324', 'provider' => 'bestbuy'],\n ['name' => \"Chick Corea Akoustic Band - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chick-corea-akoustic-band-cd/548526.p?id=65281&skuId=548526&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=548526', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5485\\/548526_sa.jpg\"}', 'upc' => '011105958226', 'provider' => 'bestbuy'],\n ['name' => \"Larry Carlton - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/larry-carlton-cd/548599.p?id=64825&skuId=548599&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=548599', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5485\\/548599_sa.jpg\"}', 'upc' => '076742224523', 'provider' => 'bestbuy'],\n ['name' => \"Discovery - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/discovery-cd/548633.p?id=64822&skuId=548633&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=548633', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0548\\/0548633_sa.jpg\"}', 'upc' => '076742200329', 'provider' => 'bestbuy'],\n ['name' => \"Reunion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reunion-cd/548679.p?id=64732&skuId=548679&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=548679', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5486\\/548679.jpg\"}', 'upc' => '011105959827', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits, Vol. 3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-vol-3-cd/548768.p?id=102598&skuId=548768&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=548768', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0548\\/0548768_sa.jpg\"}', 'upc' => '076732639122', 'provider' => 'bestbuy'],\n ['name' => \"Home - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/home-cd/548928.p?id=91772&skuId=548928&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=548928', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5489\\/548928_sa.jpg\"}', 'upc' => '076732631225', 'provider' => 'bestbuy'],\n ['name' => \"Stones - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stones-cd/549160.p?id=3340747&skuId=549160&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=549160', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '076743600524', 'provider' => 'bestbuy'],\n ['name' => \"Dog Eat Dog - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dog-eat-dog-cd/549188.p?id=91921&skuId=549188&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=549188', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0549\\/0549188_sa.jpg\"}', 'upc' => '720642407424', 'provider' => 'bestbuy'],\n ['name' => \"Wild Things Run Fast - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wild-things-run-fast-cd/549204.p?id=91933&skuId=549204&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=549204', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0549\\/0549204_sa.jpg\"}', 'upc' => '720642201923', 'provider' => 'bestbuy'],\n ['name' => \"Act III - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/act-iii-cd/549393.p?id=1367279&skuId=549393&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=549393', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0549\\/0549393_sa.jpg\"}', 'upc' => '075992428026', 'provider' => 'bestbuy'],\n ['name' => \"Urban Daydreams - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/urban-daydreams-cd/549446.p?id=64161&skuId=549446&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=549446', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0549\\/0549446_sa.jpg\"}', 'upc' => '011105958721', 'provider' => 'bestbuy'],\n ['name' => \"Beetlejuice [Original Motion Picture Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/beetlejuice-original-motion-picture-soundtrack-cd-original-soundtrack/549455.p?id=2390251&skuId=549455&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=549455', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5494\\/549455.jpg\"}', 'upc' => '720642420225', 'provider' => 'bestbuy'],\n ['name' => \"Blue Murder - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-murder-cd/549482.p?id=75128&skuId=549482&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=549482', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5494\\/549482_sa.jpg\"}', 'upc' => '720642421222', 'provider' => 'bestbuy'],\n ['name' => \"Country Music Hall of Fame Series - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/country-music-hall-of-fame-series-cd/549650.p?id=103787&skuId=549650&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=549650', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5496\\/549650_sa.jpg\"}', 'upc' => '008811008123', 'provider' => 'bestbuy'],\n ['name' => \"Characters - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/characters-cd/549758.p?id=2389718&skuId=549758&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=549758', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0549\\/0549758_sa.jpg\"}', 'upc' => '737463624824', 'provider' => 'bestbuy'],\n ['name' => \"Through the Looking Glass - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/through-the-looking-glass-cd/549794.p?id=98944&skuId=549794&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=549794', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0549\\/0549794_sa.jpg\"}', 'upc' => '720642413425', 'provider' => 'bestbuy'],\n ['name' => \"Little Shop Of Horrors - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/little-shop-of-horrors-cd-original-soundtrack/549838.p?id=2068446&skuId=549838&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=549838', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0549\\/0549838_sa.jpg\"}', 'upc' => '720642412527', 'provider' => 'bestbuy'],\n ['name' => \"Christmas [RCA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-rca-cd/549883.p?id=99224&skuId=549883&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=549883', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0549\\/0549883_sa.jpg\"}', 'upc' => '012414920829', 'provider' => 'bestbuy'],\n ['name' => \"Evita [Original Broadway Cast] - CD - Original Broadway Cast\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 31.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/evita-original-broadway-cast-cd-original-broadway-cast/549972.p?id=2182677&skuId=549972&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=549972', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5499\\/549972_sa.jpg\"}', 'upc' => '076731010724', 'provider' => 'bestbuy'],\n ['name' => \"You Had to Be There: Recorded Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/you-had-to-be-there-recorded-live-cd/550059.p?id=76282&skuId=550059&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=550059', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5500\\/550059_sa.jpg\"}', 'upc' => '076732600528', 'provider' => 'bestbuy'],\n ['name' => \"All in Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-in-love-cd/550102.p?id=94135&skuId=550102&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=550102', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5501\\/550102.jpg\"}', 'upc' => '715187743120', 'provider' => 'bestbuy'],\n ['name' => \"Runt - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/runt-cd/550184.p?id=97550&skuId=550184&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=550184', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5501\\/550184_sa.jpg\"}', 'upc' => '081227086220', 'provider' => 'bestbuy'],\n ['name' => \"Hermit of Mink Hollow - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hermit-of-mink-hollow-cd/550193.p?id=97544&skuId=550193&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=550193', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5501\\/550193_sa.jpg\"}', 'upc' => '081227087128', 'provider' => 'bestbuy'],\n ['name' => \"Faithful - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/faithful-cd/550219.p?id=97542&skuId=550219&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=550219', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0550\\/0550219_sa.jpg\"}', 'upc' => '081227086824', 'provider' => 'bestbuy'],\n ['name' => \"A Wizard, A True Star [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-wizard-a-true-star-pa-cd/550237.p?id=97539&skuId=550237&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=550237', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5502\\/550237_sa.jpg\"}', 'upc' => '081227086428', 'provider' => 'bestbuy'],\n ['name' => \"Time on My Hands - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/time-on-my-hands-cd/550308.p?id=70717&skuId=550308&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=550308', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0550\\/0550308_sa.jpg\"}', 'upc' => '077779289424', 'provider' => 'bestbuy'],\n ['name' => \"Songs That Got Us Through WW2 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/songs-that-got-us-through-ww2-cd-various/550380.p?id=104726&skuId=550380&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=550380', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5503\\/550380_sa.jpg\"}', 'upc' => '081227096021', 'provider' => 'bestbuy'],\n ['name' => \"U-Krew - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/u-krew-cd/550781.p?id=1981186&skuId=550781&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=550781', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5507\\/550781.jpg\"}', 'upc' => '018777352420', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Wayne Newton Now - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-wayne-newton-now-cd/550825.p?id=93272&skuId=550825&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=550825', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5508\\/550825.jpg\"}', 'upc' => '715187727021', 'provider' => 'bestbuy'],\n ['name' => \"Lifetime - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lifetime-cd/550834.p?id=96152&skuId=550834&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=550834', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5508\\/550834.jpg\"}', 'upc' => '715187727120', 'provider' => 'bestbuy'],\n ['name' => \"Disco - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/disco-cd/550905.p?id=94763&skuId=550905&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=550905', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0550\\/0550905_sa.jpg\"}', 'upc' => '077774645027', 'provider' => 'bestbuy'],\n ['name' => \"Love Junk [Bonus Track] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-junk-bonus-track-cd/551058.p?id=243478&skuId=551058&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=551058', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0551\\/0551058_sa.jpg\"}', 'upc' => '094632167521', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Melanie [Rhino] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-melanie-rhino-cd/551174.p?id=91352&skuId=551174&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=551174', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0551\\/0551174_sa.jpg\"}', 'upc' => '081227099121', 'provider' => 'bestbuy'],\n ['name' => \"Best Of - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-cd/551209.p?id=91135&skuId=551209&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=551209', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5512\\/551209.jpg\"}', 'upc' => '715187725423', 'provider' => 'bestbuy'],\n ['name' => \"Day by Day - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/day-by-day-cd/551281.p?id=69521&skuId=551281&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=551281', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5512\\/551281.jpg\"}', 'upc' => '077779009626', 'provider' => 'bestbuy'],\n ['name' => \"Hipsters' Holiday: Vocal Jazz & R&B Classics - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hipsters-holiday-vocal-jazz-r-b-classics-cd-various/551423.p?id=64974&skuId=551423&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=551423', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5514\\/551423_sa.jpg\"}', 'upc' => '081227091026', 'provider' => 'bestbuy'],\n ['name' => \"A Change in the Weather - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-change-in-the-weather-cd/551432.p?id=84248&skuId=551432&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=551432', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0551\\/0551432_sa.jpg\"}', 'upc' => '081227091422', 'provider' => 'bestbuy'],\n ['name' => \"All Night Long - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-night-long-cd/551487.p?id=84570&skuId=551487&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=551487', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5514\\/551487.jpg\"}', 'upc' => '715187741027', 'provider' => 'bestbuy'],\n ['name' => \"Step in the Arena - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/step-in-the-arena-cd/551575.p?id=83237&skuId=551575&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=551575', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0551\\/0551575_sa.jpg\"}', 'upc' => '094632179821', 'provider' => 'bestbuy'],\n ['name' => \"Foghat - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/foghat-cd/551753.p?id=82558&skuId=551753&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=551753', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5517\\/551753_sa.jpg\"}', 'upc' => '081227088729', 'provider' => 'bestbuy'],\n ['name' => \"Eliane Elias Plays Jobim - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/eliane-elias-plays-jobim-cd/551842.p?id=2443831&skuId=551842&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=551842', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0551\\/0551842_sa.jpg\"}', 'upc' => '077779308927', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Dance Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-dance-hits-cd/552397.p?id=87550&skuId=552397&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=552397', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0552\\/0552397_sa.jpg\"}', 'upc' => '715187726024', 'provider' => 'bestbuy'],\n ['name' => \"The Whole Story - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-whole-story-cd/552734.p?id=76391&skuId=552734&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=552734', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0552\\/0552734_sa.jpg\"}', 'upc' => '077774641425', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Jesse Winchester - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-jesse-winchester-cd/552841.p?id=104444&skuId=552841&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=552841', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5528\\/552841_sa.jpg\"}', 'upc' => '081227008529', 'provider' => 'bestbuy'],\n ['name' => \"Best of the Beau Brummels: Golden Archive... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-the-beau-brummels-golden-archive-cd/553056.p?id=74236&skuId=553056&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=553056', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0553\\/0553056_sa.jpg\"}', 'upc' => '081227577926', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/553065.p?id=73877&skuId=553065&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=553065', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5530\\/553065.jpg\"}', 'upc' => '715187725928', 'provider' => 'bestbuy'],\n ['name' => \"No Frontiers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/no-frontiers-cd/553172.p?id=243614&skuId=553172&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=553172', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0553\\/0553172_sa.jpg\"}', 'upc' => '739341000225', 'provider' => 'bestbuy'],\n ['name' => \"Mission Earth - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mission-earth-cd/553270.p?id=2023283&skuId=553270&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=553270', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5532\\/553270.jpg\"}', 'upc' => '081227070922', 'provider' => 'bestbuy'],\n ['name' => \"Staying a Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/staying-a-life-cd/554698.p?id=72386&skuId=554698&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=554698', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5546\\/554698_sa.jpg\"}', 'upc' => '074644694420', 'provider' => 'bestbuy'],\n ['name' => \"Hot House Flowers [ECD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hot-house-flowers-ecd-cd/554796.p?id=68824&skuId=554796&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=554796', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0554\\/0554796_sa.jpg\"}', 'upc' => '074643953023', 'provider' => 'bestbuy'],\n ['name' => \"Martika - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/martika-cd/554821.p?id=90695&skuId=554821&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=554821', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0554\\/0554821_sa.jpg\"}', 'upc' => '074644429022', 'provider' => 'bestbuy'],\n ['name' => \"Into the Mirror Black - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/into-the-mirror-black-cd/555027.p?id=97844&skuId=555027&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=555027', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5550\\/555027_sa.jpg\"}', 'upc' => '074644508529', 'provider' => 'bestbuy'],\n ['name' => \"Thundering Herds 1945-1947 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thundering-herds-1945-1947-cd/555205.p?id=67383&skuId=555205&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=555205', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5552\\/555205_sa.jpg\"}', 'upc' => '074644410822', 'provider' => 'bestbuy'],\n ['name' => \"Guilty - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/guilty-cd/555385.p?id=100599&skuId=555385&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=555385', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5553\\/555385_sa.jpg\"}', 'upc' => '074643675024', 'provider' => 'bestbuy'],\n ['name' => \"Dirty Weapons - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dirty-weapons-cd/555492.p?id=271778&skuId=555492&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=555492', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '074644513929', 'provider' => 'bestbuy'],\n ['name' => \"40 Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/40-greatest-hits-cd/555786.p?id=104102&skuId=555786&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=555786', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0555\\/0555786_sa.jpg\"}', 'upc' => '042282123329', 'provider' => 'bestbuy'],\n ['name' => \"An Anthology - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/an-anthology-cd/555839.p?id=72790&skuId=555839&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=555839', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5558\\/555839_sa.jpg\"}', 'upc' => '042283144422', 'provider' => 'bestbuy'],\n ['name' => \"Live at Ludlow Garage 1970 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-ludlow-garage-1970-cd/555900.p?id=72781&skuId=555900&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=555900', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5559\\/555900_sa.jpg\"}', 'upc' => '042284326025', 'provider' => 'bestbuy'],\n ['name' => \"An Anthology, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/an-anthology-vol-2-cd/555919.p?id=72791&skuId=555919&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=555919', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5559\\/555919.jpg\"}', 'upc' => '042283144521', 'provider' => 'bestbuy'],\n ['name' => \"Just Say Yo: Vol. 2 of Just Say Yes - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/just-say-yo-vol-2-of-just-say-yes-various-cd/557873.p?id=87520&skuId=557873&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=557873', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5578\\/557873.jpg\"}', 'upc' => '075992574525', 'provider' => 'bestbuy'],\n ['name' => \"Tain't Nobody's Biz-ness If I Do - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/taint-nobodys-biz-ness-if-i-do-cd/557908.p?id=67666&skuId=557908&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=557908', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0557\\/0557908_sa.jpg\"}', 'upc' => '025218645324', 'provider' => 'bestbuy'],\n ['name' => \"The New Boss Guitar of George Benson - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-new-boss-guitar-of-george-benson-cd/557926.p?id=2551770&skuId=557926&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=557926', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5579\\/557926.jpg\"}', 'upc' => '025218646123', 'provider' => 'bestbuy'],\n ['name' => \"Music of Espionage - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-of-espionage-cd/558104.p?id=71090&skuId=558104&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=558104', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0558\\/0558104_sa.jpg\"}', 'upc' => '089408550324', 'provider' => 'bestbuy'],\n ['name' => \"1712 Overture & Other Musical Assaults - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1712-overture-other-musical-assaults-cd/558177.p?id=287746&skuId=558177&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=558177', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5581\\/558177.jpg\"}', 'upc' => '089408021022', 'provider' => 'bestbuy'],\n ['name' => \"Uptown - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/uptown-cd/558541.p?id=70148&skuId=558541&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=558541', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0558\\/0558541_sa.jpg\"}', 'upc' => '089408330322', 'provider' => 'bestbuy'],\n ['name' => \"Highlights from the Carnegie Hall Concerts - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/highlights-from-the-carnegie-hall-concerts-cd/558676.p?id=91832&skuId=558676&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=558676', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0558\\/0558676_sa.jpg\"}', 'upc' => '089408550522', 'provider' => 'bestbuy'],\n ['name' => \"Piano Sonatas 3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/piano-sonatas-3-cd/558756.p?id=1693296&skuId=558756&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=558756', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5587\\/558756_sa.jpg\"}', 'upc' => '089408018527', 'provider' => 'bestbuy'],\n ['name' => \"Big Band Hit Parade - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-band-hit-parade-cd/558765.p?id=88461&skuId=558765&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=558765', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5587\\/558765_sa.jpg\"}', 'upc' => '089408017728', 'provider' => 'bestbuy'],\n ['name' => \"Bebe & Cece Winans - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bebe-cece-winans-cd/559675.p?id=2295468&skuId=559675&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=559675', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5596\\/559675_sa.jpg\"}', 'upc' => '077774688321', 'provider' => 'bestbuy'],\n ['name' => \"Fisherman's Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fishermans-blues-cd/559693.p?id=103591&skuId=559693&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=559693', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5596\\/559693.jpg\"}', 'upc' => '094632158925', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Art Blakey [Blue Note/Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-art-blakey-blue-note-capitol-cd/559782.p?id=64322&skuId=559782&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=559782', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5597\\/559782_sa.jpg\"}', 'upc' => '077779320523', 'provider' => 'bestbuy'],\n ['name' => \"The Capitol Collector's Series - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-capitol-collectors-series-cd/560048.p?id=90678&skuId=560048&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=560048', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0560\\/0560048_sa.jpg\"}', 'upc' => '077779163328', 'provider' => 'bestbuy'],\n ['name' => \"Born 2B Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/born-2b-blue-cd/560057.p?id=91731&skuId=560057&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=560057', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5600\\/560057.jpg\"}', 'upc' => '077774830324', 'provider' => 'bestbuy'],\n ['name' => \"Sailor - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sailor-cd/560066.p?id=91741&skuId=560066&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=560066', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5600\\/560066.jpg\"}', 'upc' => '077779444922', 'provider' => 'bestbuy'],\n ['name' => \"Abracadabra - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/abracadabra-cd/560075.p?id=2277110&skuId=560075&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=560075', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5600\\/560075_sa.jpg\"}', 'upc' => '077774610223', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Stanley Turrentine [Blue Note] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-stanley-turrentine-blue-note-cd/560244.p?id=71557&skuId=560244&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=560244', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5602\\/560244_sa.jpg\"}', 'upc' => '077779320127', 'provider' => 'bestbuy'],\n ['name' => \"Break Every Rule - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/break-every-rule-cd/560262.p?id=3443232&skuId=560262&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=560262', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5602\\/560262.jpg\"}', 'upc' => '077774632324', 'provider' => 'bestbuy'],\n ['name' => \"Love Stinks - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-stinks-cd/560413.p?id=83450&skuId=560413&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=560413', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5604\\/560413.jpg\"}', 'upc' => '077779270323', 'provider' => 'bestbuy'],\n ['name' => \"Singles Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/singles-collection-cd/560495.p?id=2281113&skuId=560495&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=560495', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0560\\/0560495_sa.jpg\"}', 'upc' => '094632149824', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Jimmy Smith: The Blue Note Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-jimmy-smith-the-blue-note-years-cd/560538.p?id=71020&skuId=560538&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=560538', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0560\\/0560538_sa.jpg\"}', 'upc' => '077779114023', 'provider' => 'bestbuy'],\n ['name' => \"Sheriff - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sheriff-cd/560565.p?id=1432797&skuId=560565&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=560565', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5605\\/560565.jpg\"}', 'upc' => '077779121625', 'provider' => 'bestbuy'],\n ['name' => \"Wide Open - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wide-open-cd/560583.p?id=97984&skuId=560583&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=560583', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5605\\/560583.jpg\"}', 'upc' => '715187758520', 'provider' => 'bestbuy'],\n ['name' => \"Stormy Monday - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stormy-monday-cd/560734.p?id=96116&skuId=560734&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=560734', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5607\\/560734_sa.jpg\"}', 'upc' => '077779144129', 'provider' => 'bestbuy'],\n ['name' => \"New York, New York [Original Soundtrack] - CD - Original Soundtrack Italy\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-york-new-york-original-soundtrack-cd-original-soundtrack-italy/560823.p?id=93222&skuId=560823&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=560823', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5608\\/560823.jpg\"}', 'upc' => '077774609029', 'provider' => 'bestbuy'],\n ['name' => \"The Golden Age of Wireless - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-golden-age-of-wireless-cd/561038.p?id=80701&skuId=561038&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=561038', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5610\\/561038_sa.jpg\"}', 'upc' => '077774600927', 'provider' => 'bestbuy'],\n ['name' => \"Live in New York City - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-in-new-york-city-cd/561323.p?id=89034&skuId=561323&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=561323', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0561\\/0561323_sa.jpg\"}', 'upc' => '077774619622', 'provider' => 'bestbuy'],\n ['name' => \"The Kick Inside - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => 6.99, 'url' => 'http://www.bestbuy.com/site/the-kick-inside-cd/561412.p?id=76390&skuId=561412&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=561412', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0561\\/0561412_sa.jpg\"}', 'upc' => '077774601221', 'provider' => 'bestbuy'],\n ['name' => \"Unchain My Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/unchain-my-heart-cd/561467.p?id=2071601&skuId=561467&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=561467', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5614\\/561467_sa.jpg\"}', 'upc' => '077774828529', 'provider' => 'bestbuy'],\n ['name' => \"House Of Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/house-of-love-cd/561626.p?id=85798&skuId=561626&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=561626', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0561\\/0561626_sa.jpg\"}', 'upc' => '042284229326', 'provider' => 'bestbuy'],\n ['name' => \"Changeless [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/changeless-digdownload-cd/561751.p?id=67882&skuId=561751&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=561751', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5617\\/561751.jpg\"}', 'upc' => '042283961821', 'provider' => 'bestbuy'],\n ['name' => \"Vesta 4 U - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vesta-4-u-cd/562037.p?id=104219&skuId=562037&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=562037', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5620\\/562037_sa.jpg\"}', 'upc' => '075021522329', 'provider' => 'bestbuy'],\n ['name' => \"Suzanne Vega - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/suzanne-vega-cd/562073.p?id=103054&skuId=562073&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=562073', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0562\\/0562073_sa.jpg\"}', 'upc' => '075021507227', 'provider' => 'bestbuy'],\n ['name' => \"Solitude Standing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/solitude-standing-cd/562082.p?id=103053&skuId=562082&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=562082', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5620\\/562082_sa.jpg\"}', 'upc' => '075021513624', 'provider' => 'bestbuy'],\n ['name' => \"Southside - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/southside-cd/562153.p?id=101499&skuId=562153&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=562153', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0562\\/0562153_sa.jpg\"}', 'upc' => '042283817128', 'provider' => 'bestbuy'],\n ['name' => \"Best of Oingo Boingo: Skeletons in the Closet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-oingo-boingo-skeletons-in-the-closet-cd/562484.p?id=93836&skuId=562484&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=562484', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5624\\/562484_sa.jpg\"}', 'upc' => '075021521728', 'provider' => 'bestbuy'],\n ['name' => \"Christmas Portrait - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-portrait-cd/562527.p?id=76915&skuId=562527&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=562527', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5625\\/562527.jpg\"}', 'upc' => '075021517325', 'provider' => 'bestbuy'],\n ['name' => \"I 2 (Eye) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-2-eye-cd/562607.p?id=99226&skuId=562607&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=562607', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0562\\/0562607_sa.jpg\"}', 'upc' => '012414920621', 'provider' => 'bestbuy'],\n ['name' => \"2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2-cd/562616.p?id=99229&skuId=562616&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=562616', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0562\\/0562616_sa.jpg\"}', 'upc' => '012414920423', 'provider' => 'bestbuy'],\n ['name' => \"Michael W. Smith Project - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/michael-w-smith-project-cd/562625.p?id=99228&skuId=562625&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=562625', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5626\\/562625_sa.jpg\"}', 'upc' => '012414920928', 'provider' => 'bestbuy'],\n ['name' => \"Bebe's Kids - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bebes-kids-cd/562787.p?id=84905&skuId=562787&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=562787', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5627\\/562787.jpg\"}', 'upc' => '042284196024', 'provider' => 'bestbuy'],\n ['name' => \"Doro - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/doro-cd/562910.p?id=1433175&skuId=562910&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=562910', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5629\\/562910.jpg\"}', 'upc' => '042284619424', 'provider' => 'bestbuy'],\n ['name' => \"Flying Colours - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/flying-colours-cd/562929.p?id=79919&skuId=562929&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=562929', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0562\\/0562929_sa.jpg\"}', 'upc' => '075021522428', 'provider' => 'bestbuy'],\n ['name' => \"Classics, Vol. 18 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classics-vol-18-cd/563090.p?id=91428&skuId=563090&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=563090', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5630\\/563090_sa.jpg\"}', 'upc' => '075021251625', 'provider' => 'bestbuy'],\n ['name' => \"Classic 50's Hits, Vol. 1 [Intercontinental] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classic-50s-hits-vol-1-intercontinental-cd-various/563508.p?id=129277&skuId=563508&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=563508', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0563\\/0563508_sa.jpg\"}', 'upc' => '024266104425', 'provider' => 'bestbuy'],\n ['name' => \"Fish Out of Water - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fish-out-of-water-cd/563688.p?id=102067&skuId=563688&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=563688', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5636\\/563688.jpg\"}', 'upc' => '042284828925', 'provider' => 'bestbuy'],\n ['name' => \"Breaths - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/breaths-cd/563866.p?id=100983&skuId=563866&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=563866', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5638\\/563866_sa.jpg\"}', 'upc' => '018964010522', 'provider' => 'bestbuy'],\n ['name' => \"Gathering Place - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gathering-place-cd/563875.p?id=96412&skuId=563875&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=563875', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5638\\/563875_sa.jpg\"}', 'upc' => '048248107624', 'provider' => 'bestbuy'],\n ['name' => \"Bad Axe - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bad-axe-cd/563900.p?id=98184&skuId=563900&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=563900', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5639\\/563900.jpg\"}', 'upc' => '014551473824', 'provider' => 'bestbuy'],\n ['name' => \"Live at Keystone, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-keystone-vol-1-cd/563991.p?id=83270&skuId=563991&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=563991', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0563\\/0563991_sa.jpg\"}', 'upc' => '025218770125', 'provider' => 'bestbuy'],\n ['name' => \"Live at Keystone, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-keystone-vol-2-cd/564008.p?id=83271&skuId=564008&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564008', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5640\\/564008_sa.jpg\"}', 'upc' => '025218770224', 'provider' => 'bestbuy'],\n ['name' => \"Keystone Encores, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/keystone-encores-vol-1-cd/564017.p?id=83267&skuId=564017&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564017', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5640\\/564017.jpg\"}', 'upc' => '025218770323', 'provider' => 'bestbuy'],\n ['name' => \"Thelonious Monk with John Coltrane - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thelonious-monk-with-john-coltrane-cd/564026.p?id=69306&skuId=564026&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564026', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5640\\/564026_sa.jpg\"}', 'upc' => '025218603928', 'provider' => 'bestbuy'],\n ['name' => \"Humour Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/humour-me-cd/564240.p?id=104445&skuId=564240&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564240', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564240_sa.jpg\"}', 'upc' => '015891102320', 'provider' => 'bestbuy'],\n ['name' => \"On Praying Ground - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/on-praying-ground-cd/564259.p?id=103626&skuId=564259&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564259', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5642\\/564259_sa.jpg\"}', 'upc' => '015891377926', 'provider' => 'bestbuy'],\n ['name' => \"Blue Ridge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-ridge-cd/564268.p?id=156036&skuId=564268&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564268', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564268_sa.jpg\"}', 'upc' => '015891374727', 'provider' => 'bestbuy'],\n ['name' => \"Change of Scenery - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/change-of-scenery-cd/564277.p?id=98307&skuId=564277&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564277', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564277_sa.jpg\"}', 'upc' => '015891376325', 'provider' => 'bestbuy'],\n ['name' => \"New Moon Rising - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-moon-rising-cd/564295.p?id=97425&skuId=564295&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564295', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5642\\/564295_sa.jpg\"}', 'upc' => '015891376226', 'provider' => 'bestbuy'],\n ['name' => \"Bayou Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bayou-blues-cd/564320.p?id=77343&skuId=564320&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564320', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564320_sa.jpg\"}', 'upc' => '022211213925', 'provider' => 'bestbuy'],\n ['name' => \"Sweet and Sexy: The Ultimate Collection of... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sweet-and-sexy-the-ultimate-collection-of-cd/564366.p?id=103600&skuId=564366&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564366', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5643\\/564366.jpg\"}', 'upc' => '026656271328', 'provider' => 'bestbuy'],\n ['name' => \"Back to Wreck the Shop - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/back-to-wreck-the-shop-cd/564393.p?id=102460&skuId=564393&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564393', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5643\\/564393.jpg\"}', 'upc' => '026656271229', 'provider' => 'bestbuy'],\n ['name' => \"The Wild Tchoupitoulas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-wild-tchoupitoulas-cd/564419.p?id=104237&skuId=564419&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564419', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5644\\/564419.jpg\"}', 'upc' => '016253990821', 'provider' => 'bestbuy'],\n ['name' => \"Solid Gold Cadillac - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/solid-gold-cadillac-cd/564446.p?id=104705&skuId=564446&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564446', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564446_sa.jpg\"}', 'upc' => '019148419124', 'provider' => 'bestbuy'],\n ['name' => \"Mellow Down Easy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mellow-down-easy-cd/564516.p?id=74367&skuId=564516&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564516', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5645\\/564516.jpg\"}', 'upc' => '019148429123', 'provider' => 'bestbuy'],\n ['name' => \"Dreams Come True - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dreams-come-true-cd/564534.p?id=101782&skuId=564534&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564534', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5645\\/564534_sa.jpg\"}', 'upc' => '049891001420', 'provider' => 'bestbuy'],\n ['name' => \"Bass Is the Name of the Game - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bass-is-the-name-of-the-game-cd/564561.p?id=90159&skuId=564561&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564561', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5645\\/564561.jpg\"}', 'upc' => '021257940321', 'provider' => 'bestbuy'],\n ['name' => \"Falling in Love with Jazz - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/falling-in-love-with-jazz-cd/564605.p?id=70433&skuId=564605&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564605', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5646\\/564605_sa.jpg\"}', 'upc' => '025218917926', 'provider' => 'bestbuy'],\n ['name' => \"Too Much Pain - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/too-much-pain-cd/564632.p?id=155049&skuId=564632&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564632', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564632_sa.jpg\"}', 'upc' => '048021745326', 'provider' => 'bestbuy'],\n ['name' => \"Raw Magic - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/raw-magic-cd/564641.p?id=90165&skuId=564641&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564641', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5646\\/564641_sa.jpg\"}', 'upc' => '014551472827', 'provider' => 'bestbuy'],\n ['name' => \"Disturbing the Peace - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/disturbing-the-peace-cd/564650.p?id=89351&skuId=564650&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564650', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564650_sa.jpg\"}', 'upc' => '014551476122', 'provider' => 'bestbuy'],\n ['name' => \"The Mississippi Mass Choir - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-mississippi-mass-choir-cd/564669.p?id=91899&skuId=564669&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564669', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564669_sa.jpg\"}', 'upc' => '048021600328', 'provider' => 'bestbuy'],\n ['name' => \"Captured Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/captured-live-cd/564678.p?id=89350&skuId=564678&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564678', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5646\\/564678.jpg\"}', 'upc' => '014551479420', 'provider' => 'bestbuy'],\n ['name' => \"All the Way Crazy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-the-way-crazy-cd/564696.p?id=89349&skuId=564696&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564696', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5646\\/564696_sa.jpg\"}', 'upc' => '014551475323', 'provider' => 'bestbuy'],\n ['name' => \"Big Fun - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-fun-cd/564703.p?id=2389831&skuId=564703&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564703', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5647\\/564703_sa.jpg\"}', 'upc' => '014551476726', 'provider' => 'bestbuy'],\n ['name' => \"2 Low Life Muthas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2-low-life-muthas-cd/564721.p?id=95129&skuId=564721&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564721', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5647\\/564721.jpg\"}', 'upc' => '022471300120', 'provider' => 'bestbuy'],\n ['name' => \"Triple Play - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/triple-play-cd/564758.p?id=94778&skuId=564758&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564758', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564758_sa.jpg\"}', 'upc' => '014551478928', 'provider' => 'bestbuy'],\n ['name' => \"Midnight Run - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/midnight-run-cd/564794.p?id=74995&skuId=564794&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564794', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5647\\/564794_sa.jpg\"}', 'upc' => '048021745029', 'provider' => 'bestbuy'],\n ['name' => \"Bayou Cadillac - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bayou-cadillac-cd/564801.p?id=2416691&skuId=564801&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564801', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564801_sa.jpg\"}', 'upc' => '011661602526', 'provider' => 'bestbuy'],\n ['name' => \"Whoopin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/whoopin-cd/564874.p?id=101458&skuId=564874&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564874', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564874_sa.jpg\"}', 'upc' => '014551473428', 'provider' => 'bestbuy'],\n ['name' => \"Jump for Joy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jump-for-joy-cd/564883.p?id=101265&skuId=564883&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564883', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564883_sa.jpg\"}', 'upc' => '014551478423', 'provider' => 'bestbuy'],\n ['name' => \"Simply The Best Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/simply-the-best-live-cd/564892.p?id=2443636&skuId=564892&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564892', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564892_sa.jpg\"}', 'upc' => '011661211025', 'provider' => 'bestbuy'],\n ['name' => \"Harp Attack! - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/harp-attack-cd-various/564909.p?id=78795&skuId=564909&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564909', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564909_sa.jpg\"}', 'upc' => '014551479024', 'provider' => 'bestbuy'],\n ['name' => \"Frozen Alive! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/frozen-alive-cd/564927.p?id=78330&skuId=564927&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564927', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5649\\/564927_sa.jpg\"}', 'upc' => '014551472520', 'provider' => 'bestbuy'],\n ['name' => \"Don't Lose Your Cool - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dont-lose-your-cool-cd/564936.p?id=78328&skuId=564936&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564936', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0564\\/0564936_sa.jpg\"}', 'upc' => '014551473022', 'provider' => 'bestbuy'],\n ['name' => \"Frostbite - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/frostbite-cd/564945.p?id=78329&skuId=564945&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564945', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5649\\/564945_sa.jpg\"}', 'upc' => '014551471929', 'provider' => 'bestbuy'],\n ['name' => \"Dancing on the Edge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dancing-on-the-edge-cd/564954.p?id=76189&skuId=564954&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564954', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5649\\/564954.jpg\"}', 'upc' => '014551474722', 'provider' => 'bestbuy'],\n ['name' => \"All My Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-my-life-cd/564963.p?id=75881&skuId=564963&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564963', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5649\\/564963.jpg\"}', 'upc' => '011661950122', 'provider' => 'bestbuy'],\n ['name' => \"Ice Pickin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ice-pickin-cd/564981.p?id=78331&skuId=564981&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564981', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5649\\/564981_sa.jpg\"}', 'upc' => '014551471325', 'provider' => 'bestbuy'],\n ['name' => \"Queen of the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/queen-of-the-blues-cd/564990.p?id=101268&skuId=564990&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=564990', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5649\\/564990.jpg\"}', 'upc' => '014551474029', 'provider' => 'bestbuy'],\n ['name' => \"Lovejoy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lovejoy-cd/565043.p?id=87890&skuId=565043&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=565043', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5650\\/565043_sa.jpg\"}', 'upc' => '025218851725', 'provider' => 'bestbuy'],\n ['name' => \"Charge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/charge-cd/565132.p?id=84526&skuId=565132&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=565132', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0565\\/0565132_sa.jpg\"}', 'upc' => '018861025629', 'provider' => 'bestbuy'],\n ['name' => \"Mahogany Nights - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mahogany-nights-cd/565141.p?id=87790&skuId=565141&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=565141', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5651\\/565141_sa.jpg\"}', 'upc' => '025041102025', 'provider' => 'bestbuy'],\n ['name' => \"Set Free - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/set-free-cd/565178.p?id=80170&skuId=565178&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=565178', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5651\\/565178.jpg\"}', 'upc' => '025041101622', 'provider' => 'bestbuy'],\n ['name' => \"Music to Disappear In - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-to-disappear-in-cd/565196.p?id=96034&skuId=565196&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=565196', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5651\\/565196_sa.jpg\"}', 'upc' => '025041100526', 'provider' => 'bestbuy'],\n ['name' => \"Starflight 1 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/starflight-1-cd-various/565258.p?id=100104&skuId=565258&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=565258', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5652\\/565258_sa.jpg\"}', 'upc' => '025041110020', 'provider' => 'bestbuy'],\n ['name' => \"Rainforest - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rainforest-cd/565267.p?id=96614&skuId=565267&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=565267', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5652\\/565267_sa.jpg\"}', 'upc' => '025041101424', 'provider' => 'bestbuy'],\n ['name' => \"Strata - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/strata-cd/565276.p?id=96790&skuId=565276&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=565276', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5652\\/565276.jpg\"}', 'upc' => '025041101929', 'provider' => 'bestbuy'],\n ['name' => \"Spinfield - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spinfield-cd/565294.p?id=90063&skuId=565294&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=565294', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0565\\/0565294_sa.jpg\"}', 'upc' => '025041101226', 'provider' => 'bestbuy'],\n ['name' => \"Ballot Result [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ballot-result-pa-cd/565310.p?id=91854&skuId=565310&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=565310', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5653\\/565310_sa.jpg\"}', 'upc' => '018861006826', 'provider' => 'bestbuy'],\n ['name' => \"Hearts of Space: Cruisers 1.0 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hearts-of-space-cruisers-1-0-cd-various/565365.p?id=79359&skuId=565365&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=565365', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0565\\/0565365_sa.jpg\"}', 'upc' => '025041110228', 'provider' => 'bestbuy'],\n ['name' => \"I Against I - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-against-i-cd/565454.p?id=73641&skuId=565454&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=565454', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0565\\/0565454_sa.jpg\"}', 'upc' => '018861006529', 'provider' => 'bestbuy'],\n ['name' => \"Wasted Again - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wasted-again-cd/565515.p?id=74819&skuId=565515&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=565515', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0565\\/0565515_sa.jpg\"}', 'upc' => '018861016627', 'provider' => 'bestbuy'],\n ['name' => \"Rockin' the Boat - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rockin-the-boat-cd/565748.p?id=71052&skuId=565748&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=565748', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5657\\/565748.jpg\"}', 'upc' => '028568802324', 'provider' => 'bestbuy'],\n ['name' => \"Down South - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/down-south-cd/566104.p?id=103617&skuId=566104&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=566104', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0566\\/0566104_sa.jpg\"}', 'upc' => '015891374222', 'provider' => 'bestbuy'],\n ['name' => \"The Chess Box [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 37.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-chess-box-box-cd/566694.p?id=74523&skuId=566694&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=566694', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5666\\/566694.jpg\"}', 'upc' => '076741080120', 'provider' => 'bestbuy'],\n ['name' => \"The Chess Box [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 37.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-chess-box-box-cd/566701.p?id=2416840&skuId=566701&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=566701', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5667\\/566701_sa.jpg\"}', 'upc' => '076741080229', 'provider' => 'bestbuy'],\n ['name' => \"Oldies But Goodies: 21 #1 Hits - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/oldies-but-goodies-21-1-hits-cd-various/566738.p?id=93883&skuId=566738&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=566738', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0566\\/0566738_sa.jpg\"}', 'upc' => '081658881524', 'provider' => 'bestbuy'],\n ['name' => \"Forever Yours - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/forever-yours-cd/567835.p?id=102248&skuId=567835&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=567835', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5678\\/567835_sa.jpg\"}', 'upc' => '054291881220', 'provider' => 'bestbuy'],\n ['name' => \"Ace of Harps - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ace-of-harps-cd/567871.p?id=92695&skuId=567871&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=567871', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5678\\/567871_sa.jpg\"}', 'upc' => '014551478126', 'provider' => 'bestbuy'],\n ['name' => \"Mandy Patinkin - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mandy-patinkin-cd/567988.p?id=94503&skuId=567988&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=567988', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5679\\/567988_sa.jpg\"}', 'upc' => '074644494327', 'provider' => 'bestbuy'],\n ['name' => \"Baroque Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/baroque-music-cd/568852.p?id=1764438&skuId=568852&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=568852', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5688\\/568852.jpg\"}', 'upc' => '074643906128', 'provider' => 'bestbuy'],\n ['name' => \"Short Dog's in the House [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/short-dogs-in-the-house-pa-cd/569129.p?id=101993&skuId=569129&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=569129', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0569\\/0569129_sa.jpg\"}', 'upc' => '012414134820', 'provider' => 'bestbuy'],\n ['name' => \"Heartbeats Accelerating - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heartbeats-accelerating-cd/569691.p?id=91170&skuId=569691&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=569691', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5696\\/569691.jpg\"}', 'upc' => '010058207023', 'provider' => 'bestbuy'],\n ['name' => \"Rockin' with the Rhythm - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rockin-with-the-rhythm-cd/569940.p?id=3323825&skuId=569940&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=569940', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '078635704228', 'provider' => 'bestbuy'],\n ['name' => \"Breakfast In The Field - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/breakfast-in-the-field-cd/570073.p?id=85163&skuId=570073&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=570073', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0570\\/0570073_sa.jpg\"}', 'upc' => '019341101727', 'provider' => 'bestbuy'],\n ['name' => \"Playa Del Rock - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/playa-del-rock-cd/570340.p?id=79549&skuId=570340&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=570340', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5703\\/570340.jpg\"}', 'upc' => '036124483320', 'provider' => 'bestbuy'],\n ['name' => \"Untitled - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/untitled-cd/570386.p?id=2407988&skuId=570386&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=570386', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5703\\/570386.jpg\"}', 'upc' => '019341009429', 'provider' => 'bestbuy'],\n ['name' => \"The Trinity Session - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-trinity-session-cd/570518.p?id=79034&skuId=570518&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=570518', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5705\\/570518_sa.jpg\"}', 'upc' => '078635856828', 'provider' => 'bestbuy'],\n ['name' => \"Deep In the Shed - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/deep-in-the-shed-cd/570812.p?id=70390&skuId=570812&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=570812', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0570\\/0570812_sa.jpg\"}', 'upc' => '012416307826', 'provider' => 'bestbuy'],\n ['name' => \"In Concert - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 21.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-concert-cd/571125.p?id=94793&skuId=571125&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=571125', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5711\\/571125_sa.jpg\"}', 'upc' => '075992716222', 'provider' => 'bestbuy'],\n ['name' => \"Fleetwood Mac Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fleetwood-mac-live-cd/571152.p?id=82433&skuId=571152&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=571152', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5711\\/571152_sa.jpg\"}', 'upc' => '075992741026', 'provider' => 'bestbuy'],\n ['name' => \"Dr. Demento 20th Anniversary Collection: The... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dr-demento-20th-anniversary-collection-the-cd-various/571269.p?id=80860&skuId=571269&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=571269', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5712\\/571269.jpg\"}', 'upc' => '081227074326', 'provider' => 'bestbuy'],\n ['name' => \"This Is Bass - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/this-is-bass-cd-various/571401.p?id=101643&skuId=571401&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=571401', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0571\\/0571401_sa.jpg\"}', 'upc' => '053993331224', 'provider' => 'bestbuy'],\n ['name' => \"Mr Magic'S Rap Attack 5 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mr-magics-rap-attack-5-cd-various/571447.p?id=92549&skuId=571447&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=571447', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5714\\/571447.jpg\"}', 'upc' => '015151128725', 'provider' => 'bestbuy'],\n ['name' => \"Mr. Magic's Rap Attack, Vol. 4 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mr-magics-rap-attack-vol-4-cd-various/571456.p?id=92548&skuId=571456&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=571456', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5714\\/571456.jpg\"}', 'upc' => '015151126820', 'provider' => 'bestbuy'],\n ['name' => \"Little Dreamer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/little-dreamer-cd/571544.p?id=128229&skuId=571544&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=571544', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0571\\/0571544_sa.jpg\"}', 'upc' => '033651003724', 'provider' => 'bestbuy'],\n ['name' => \"Heart of Mine - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heart-of-mine-cd/571624.p?id=76578&skuId=571624&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=571624', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0571\\/0571624_sa.jpg\"}', 'upc' => '715776888829', 'provider' => 'bestbuy'],\n ['name' => \"Hand of Kindness - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hand-of-kindness-cd/571991.p?id=101694&skuId=571991&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=571991', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0571\\/0571991_sa.jpg\"}', 'upc' => '031257131322', 'provider' => 'bestbuy'],\n ['name' => \"Pink Cadillac - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pink-cadillac-cd/572044.p?id=2294065&skuId=572044&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=572044', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5720\\/572044_sa.jpg\"}', 'upc' => '094012000721', 'provider' => 'bestbuy'],\n ['name' => \"Aimless Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aimless-love-cd/572062.p?id=95509&skuId=572062&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=572062', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5720\\/572062_sa.jpg\"}', 'upc' => '094012000226', 'provider' => 'bestbuy'],\n ['name' => \"German Afternoons - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/german-afternoons-cd/572071.p?id=95514&skuId=572071&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=572071', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5720\\/572071_sa.jpg\"}', 'upc' => '094012000325', 'provider' => 'bestbuy'],\n ['name' => \"Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-cd/572080.p?id=95517&skuId=572080&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=572080', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5720\\/572080_sa.jpg\"}', 'upc' => '094012000523', 'provider' => 'bestbuy'],\n ['name' => \"Santa Ana Winds - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/santa-ana-winds-cd/572115.p?id=109732&skuId=572115&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=572115', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5721\\/572115.jpg\"}', 'upc' => '092941100321', 'provider' => 'bestbuy'],\n ['name' => \"Artistic Hair - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/artistic-hair-cd/572133.p?id=109728&skuId=572133&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=572133', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5721\\/572133.jpg\"}', 'upc' => '092941100123', 'provider' => 'bestbuy'],\n ['name' => \"I Know - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-know-cd/572142.p?id=83903&skuId=572142&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=572142', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5721\\/572142_sa.jpg\"}', 'upc' => '033651001829', 'provider' => 'bestbuy'],\n ['name' => \"One Big Town - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-big-town-cd/572151.p?id=75925&skuId=572151&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=572151', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0572\\/0572151_sa.jpg\"}', 'upc' => '033651002826', 'provider' => 'bestbuy'],\n ['name' => \"Fiddling with Tradition - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fiddling-with-tradition-cd/572909.p?id=155261&skuId=572909&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=572909', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5729\\/572909.jpg\"}', 'upc' => '053993333921', 'provider' => 'bestbuy'],\n ['name' => \"R'Eveillez-Vous - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reveillez-vous-cd/573089.p?id=72046&skuId=573089&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=573089', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5730\\/573089.jpg\"}', 'upc' => '028568802720', 'provider' => 'bestbuy'],\n ['name' => \"Star Trek: Next Generation 1 - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/star-trek-next-generation-1-cd-original-soundtrack/573114.p?id=2416685&skuId=573114&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=573114', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0573\\/0573114_sa.jpg\"}', 'upc' => '052824801226', 'provider' => 'bestbuy'],\n ['name' => \"Where the Fast Lane Ends - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/where-the-fast-lane-ends-cd/573169.p?id=1576720&skuId=573169&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=573169', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0573\\/0573169_sa.jpg\"}', 'upc' => '021661011228', 'provider' => 'bestbuy'],\n ['name' => \"Flex-Able - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/flex-able-cd/573613.p?id=102878&skuId=573613&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=573613', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5736\\/573613_sa.jpg\"}', 'upc' => '074646803325', 'provider' => 'bestbuy'],\n ['name' => \"Tribal Tech - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tribal-tech-cd/573631.p?id=67357&skuId=573631&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=573631', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5736\\/573631_sa.jpg\"}', 'upc' => '088561104924', 'provider' => 'bestbuy'],\n ['name' => \"Big Lizard in My Backyard - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-lizard-in-my-backyard-cd/573793.p?id=79962&skuId=573793&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=573793', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0573\\/0573793_sa.jpg\"}', 'upc' => '018777205429', 'provider' => 'bestbuy'],\n ['name' => \"The Chenille Sisters - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-chenille-sisters-cd/573926.p?id=128647&skuId=573926&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=573926', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5739\\/573926_sa.jpg\"}', 'upc' => '033651002925', 'provider' => 'bestbuy'],\n ['name' => \"Rock for Light - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rock-for-light-cd/578119.p?id=73645&skuId=578119&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=578119', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0578\\/0578119_sa.jpg\"}', 'upc' => '017046161329', 'provider' => 'bestbuy'],\n ['name' => \"Quickness - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/quickness-cd/578137.p?id=73643&skuId=578137&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=578137', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5781\\/578137_sa.jpg\"}', 'upc' => '017046137522', 'provider' => 'bestbuy'],\n ['name' => \"Join the Army - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/join-the-army-cd/578217.p?id=100744&skuId=578217&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=578217', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0578\\/0578217_sa.jpg\"}', 'upc' => '017046133623', 'provider' => 'bestbuy'],\n ['name' => \"Misfits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/misfits-cd/578306.p?id=91880&skuId=578306&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=578306', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0578\\/0578306_sa.jpg\"}', 'upc' => '017046190121', 'provider' => 'bestbuy'],\n ['name' => \"Black Bottom - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/black-bottom-cd/578360.p?id=180708&skuId=578360&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=578360', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0578\\/0578360_sa.jpg\"}', 'upc' => '016351017123', 'provider' => 'bestbuy'],\n ['name' => \"Blackman Know Yourself - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blackman-know-yourself-cd/578422.p?id=85351&skuId=578422&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=578422', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5784\\/578422.jpg\"}', 'upc' => '016351437723', 'provider' => 'bestbuy'],\n ['name' => \"Yazoo Basin Boogie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/yazoo-basin-boogie-cd/578440.p?id=84316&skuId=578440&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=578440', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5784\\/578440_sa.jpg\"}', 'upc' => '016351971326', 'provider' => 'bestbuy'],\n ['name' => \"Sweeter as the Years Go By - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sweeter-as-the-years-go-by-cd/578468.p?id=87158&skuId=578468&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=578468', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5784\\/578468.jpg\"}', 'upc' => '016351017826', 'provider' => 'bestbuy'],\n ['name' => \"In His Prime - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-his-prime-cd/578486.p?id=2387822&skuId=578486&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=578486', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0578\\/0578486_sa.jpg\"}', 'upc' => '016351015020', 'provider' => 'bestbuy'],\n ['name' => \"1928 Sessions - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1928-sessions-cd/578495.p?id=85963&skuId=578495&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=578495', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0578\\/0578495_sa.jpg\"}', 'upc' => '016351016522', 'provider' => 'bestbuy'],\n ['name' => \"25th Anniversary - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 21.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/25th-anniversary-cd/578565.p?id=104625&skuId=578565&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=578565', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0578\\/0578565_sa.jpg\"}', 'upc' => '016351522429', 'provider' => 'bestbuy'],\n ['name' => \"Oldies But Goodies, Vol. 15 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/oldies-but-goodies-vol-15-cd-various/578725.p?id=93882&skuId=578725&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=578725', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5787\\/578725_sa.jpg\"}', 'upc' => '081658865524', 'provider' => 'bestbuy'],\n ['name' => \"Oldies But Goodies, Vol. 10 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/oldies-but-goodies-vol-10-cd-various/578798.p?id=93878&skuId=578798&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=578798', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0578\\/0578798_sa.jpg\"}', 'upc' => '081658860529', 'provider' => 'bestbuy'],\n ['name' => \"Oldies But Goodies, Vol. 1 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/oldies-but-goodies-vol-1-cd-various/578832.p?id=93869&skuId=578832&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=578832', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5788\\/578832_sa.jpg\"}', 'upc' => '081658850520', 'provider' => 'bestbuy'],\n ['name' => \"Christmas 1984 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-1984-cd/579500.p?id=90438&skuId=579500&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=579500', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5795\\/579500.jpg\"}', 'upc' => '012805198424', 'provider' => 'bestbuy'],\n ['name' => \"Fresh Aire Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fresh-aire-christmas-cd/579519.p?id=90437&skuId=579519&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=579519', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0579\\/0579519_sa.jpg\"}', 'upc' => '012805198820', 'provider' => 'bestbuy'],\n ['name' => \"State of Mind - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/state-of-mind-cd/579751.p?id=137046&skuId=579751&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=579751', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5797\\/579751.jpg\"}', 'upc' => '012414304223', 'provider' => 'bestbuy'],\n ['name' => \"Collectors' Items - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/collectors-items-cd/579877.p?id=93686&skuId=579877&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=579877', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0579\\/0579877_sa.jpg\"}', 'upc' => '074643502429', 'provider' => 'bestbuy'],\n ['name' => \"16 Most Requested Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/16-most-requested-songs-cd/579966.p?id=90784&skuId=579966&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=579966', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5799\\/579966_sa.jpg\"}', 'upc' => '074644021721', 'provider' => 'bestbuy'],\n ['name' => \"Anniversary: 20 Years of Hits [20 Tracks] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/anniversary-20-years-of-hits-20-tracks-cd/580151.p?id=104798&skuId=580151&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=580151', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0580\\/0580151_sa.jpg\"}', 'upc' => '074644062526', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/580240.p?id=77960&skuId=580240&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=580240', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0580\\/0580240_sa.jpg\"}', 'upc' => '077775740226', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-capitol-cd/580268.p?id=245574&skuId=580268&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=580268', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0580\\/0580268_sa.jpg\"}', 'upc' => '077775741025', 'provider' => 'bestbuy'],\n ['name' => \"The Eternal Idol - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-eternal-idol-cd/581310.p?id=74835&skuId=581310&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=581310', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0581\\/0581310_sa.jpg\"}', 'upc' => '075992554824', 'provider' => 'bestbuy'],\n ['name' => \"The Gold Medal Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-gold-medal-collection-cd/581338.p?id=77205&skuId=581338&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=581338', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5813\\/581338_sa.jpg\"}', 'upc' => '075596077323', 'provider' => 'bestbuy'],\n ['name' => \"Iron Butterfly Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/iron-butterfly-live-cd/581481.p?id=86323&skuId=581481&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=581481', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0581\\/0581481_sa.jpg\"}', 'upc' => '075679039620', 'provider' => 'bestbuy'],\n ['name' => \"Kix - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kix-cd/581515.p?id=88223&skuId=581515&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=581515', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5815\\/581515.jpg\"}', 'upc' => '075678157721', 'provider' => 'bestbuy'],\n ['name' => \"Flash Gordon [Bonus Track] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/flash-gordon-bonus-track-cd/581524.p?id=95702&skuId=581524&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=581524', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0581\\/0581524_sa.jpg\"}', 'upc' => '720616120328', 'provider' => 'bestbuy'],\n ['name' => \"Hot Space [Bonus Track] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hot-space-bonus-track-cd/581533.p?id=95704&skuId=581533&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=581533', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5815\\/581533.jpg\"}', 'upc' => '720616103826', 'provider' => 'bestbuy'],\n ['name' => \"Adventure - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/adventure-cd/581613.p?id=2466424&skuId=581613&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=581613', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0581\\/0581613_sa.jpg\"}', 'upc' => '075596052320', 'provider' => 'bestbuy'],\n ['name' => \"Seminole Wind - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/seminole-wind-cd/581622.p?id=72960&skuId=581622&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=581622', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0581\\/0581622_sa.jpg\"}', 'upc' => '078636102924', 'provider' => 'bestbuy'],\n ['name' => \"New Orleans Party Classics - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-orleans-party-classics-cd-various/582104.p?id=93183&skuId=582104&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=582104', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0582\\/0582104_sa.jpg\"}', 'upc' => '081227058722', 'provider' => 'bestbuy'],\n ['name' => \"Stick Around for Joy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stick-around-for-joy-cd/583023.p?id=100735&skuId=583023&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=583023', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0583\\/0583023_sa.jpg\"}', 'upc' => '075596112321', 'provider' => 'bestbuy'],\n ['name' => \"South Central Madness [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/south-central-madness-pa-cd/583087.p?id=99718&skuId=583087&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=583087', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5830\\/583087.jpg\"}', 'upc' => '063961518922', 'provider' => 'bestbuy'],\n ['name' => \"Fire & Ice (Germany) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fire-ice-germany-cd/583381.p?id=2305249&skuId=583381&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=583381', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5833\\/583381.jpg\"}', 'upc' => '075596113724', 'provider' => 'bestbuy'],\n ['name' => \"Little Earthquakes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/little-earthquakes-cd/583531.p?id=2479233&skuId=583531&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=583531', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0583\\/0583531_sa.jpg\"}', 'upc' => '075678235825', 'provider' => 'bestbuy'],\n ['name' => \"Spectrum - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spectrum-cd/583568.p?id=65057&skuId=583568&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=583568', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0583\\/0583568_sa.jpg\"}', 'upc' => '075678142826', 'provider' => 'bestbuy'],\n ['name' => \"Vulgar Display of Power [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vulgar-display-of-power-pa-cd/583586.p?id=94340&skuId=583586&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=583586', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0583\\/0583586_sa.jpg\"}', 'upc' => '075679175823', 'provider' => 'bestbuy'],\n ['name' => \"King of Hearts - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/king-of-hearts-cd/583684.p?id=103204&skuId=583684&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=583684', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5836\\/583684.jpg\"}', 'upc' => '075679178923', 'provider' => 'bestbuy'],\n ['name' => \"Mad Mad World - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mad-mad-world-cd/584264.p?id=78153&skuId=584264&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=584264', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5842\\/584264.jpg\"}', 'upc' => '077779772322', 'provider' => 'bestbuy'],\n ['name' => \"Best Of Hank & Hank - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-hank-hank-cd/584317.p?id=104127&skuId=584317&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=584317', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5843\\/584317.jpg\"}', 'upc' => '715187755222', 'provider' => 'bestbuy'],\n ['name' => \"Best of the Nat King Cole Trio: The... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-the-nat-king-cole-trio-the-cd/584460.p?id=78259&skuId=584460&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=584460', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5844\\/584460.jpg\"}', 'upc' => '077779828821', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Ronnie Laws - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-ronnie-laws-cd/584479.p?id=68469&skuId=584479&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=584479', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5844\\/584479.jpg\"}', 'upc' => '077779828920', 'provider' => 'bestbuy'],\n ['name' => \"Best of Miles Davis: The Capitol/Blue Note... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-miles-davis-the-capitol-blue-note-cd/584488.p?id=2472918&skuId=584488&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=584488', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5844\\/584488.jpg\"}', 'upc' => '077779828722', 'provider' => 'bestbuy'],\n ['name' => \"Moonlight Serenade [Avid] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moonlight-serenade-avid-cd/585236.p?id=69107&skuId=585236&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=585236', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0585\\/0585236_sa.jpg\"}', 'upc' => '078636107226', 'provider' => 'bestbuy'],\n ['name' => \"Pure Attraction - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pure-attraction-cd/586093.p?id=1418615&skuId=586093&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=586093', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5860\\/586093.jpg\"}', 'upc' => '012414922526', 'provider' => 'bestbuy'],\n ['name' => \"Old Friends - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/old-friends-cd/586146.p?id=70153&skuId=586146&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=586146', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0586\\/0586146_sa.jpg\"}', 'upc' => '089408330926', 'provider' => 'bestbuy'],\n ['name' => \"...From the \\\"Hungry I\\\" - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/-from-the-hungry-i-cd/586299.p?id=214573&skuId=586299&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=586299', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5862\\/586299.jpg\"}', 'upc' => '077779674824', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/586306.p?id=87149&skuId=586306&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=586306', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0586\\/0586306_sa.jpg\"}', 'upc' => '715187754324', 'provider' => 'bestbuy'],\n ['name' => \"Somewhere Between Heaven and Hell - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/somewhere-between-heaven-and-hell-cd/586556.p?id=99371&skuId=586556&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=586556', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0586\\/0586556_sa.jpg\"}', 'upc' => '074644797824', 'provider' => 'bestbuy'],\n ['name' => \"Pretty in Pink [Original Soundtrack] - Original Soundtrack - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pretty-in-pink-original-soundtrack-original-soundtrack-cd/587065.p?id=95406&skuId=587065&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=587065', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0587\\/0587065_sa.jpg\"}', 'upc' => '075021329324', 'provider' => 'bestbuy'],\n ['name' => \"The End of Silence - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-end-of-silence-cd/587519.p?id=97201&skuId=587519&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=587519', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5875\\/587519.jpg\"}', 'upc' => '727872100620', 'provider' => 'bestbuy'],\n ['name' => \"House of Exile - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/house-of-exile-cd/587779.p?id=81009&skuId=587779&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=587779', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0587\\/0587779_sa.jpg\"}', 'upc' => '016351439420', 'provider' => 'bestbuy'],\n ['name' => \"Just Gimme Somethin' I'm Used To - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/just-gimme-somethin-im-used-to-cd/587822.p?id=74959&skuId=587822&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=587822', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0587\\/0587822_sa.jpg\"}', 'upc' => '016351600127', 'provider' => 'bestbuy'],\n ['name' => \"A Touch of Tranquility - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-touch-of-tranquility-cd/587831.p?id=78797&skuId=587831&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=587831', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5878\\/587831_sa.jpg\"}', 'upc' => '016351531025', 'provider' => 'bestbuy'],\n ['name' => \"Up - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/up-cd/588082.p?id=96695&skuId=588082&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=588082', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5880\\/588082_sa.jpg\"}', 'upc' => '077778627722', 'provider' => 'bestbuy'],\n ['name' => \"In the Running - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-the-running-cd/588215.p?id=87283&skuId=588215&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=588215', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5882\\/588215_sa.jpg\"}', 'upc' => '075596113526', 'provider' => 'bestbuy'],\n ['name' => \"The Singer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-singer-cd/588233.p?id=83189&skuId=588233&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=588233', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0588\\/0588233_sa.jpg\"}', 'upc' => '724596127827', 'provider' => 'bestbuy'],\n ['name' => \"Apollo 18 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/apollo-18-cd/588242.p?id=101566&skuId=588242&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=588242', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5882\\/588242_sa.jpg\"}', 'upc' => '075596125727', 'provider' => 'bestbuy'],\n ['name' => \"Present Arms In Dub - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/present-arms-in-dub-cd/588395.p?id=2387416&skuId=588395&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=588395', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0588\\/0588395_sa.jpg\"}', 'upc' => '077778627128', 'provider' => 'bestbuy'],\n ['name' => \"Big Hits and Nasty Cuts: The Best of... [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-hits-and-nasty-cuts-the-best-of-pa-cd/588457.p?id=2472914&skuId=588457&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=588457', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0588\\/0588457_sa.jpg\"}', 'upc' => '075678238024', 'provider' => 'bestbuy'],\n ['name' => \"Bitch Betta Have My Money - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bitch-betta-have-my-money-cd/589964.p?id=274623&skuId=589964&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=589964', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5899\\/589964.jpg\"}', 'upc' => '010912164226', 'provider' => 'bestbuy'],\n ['name' => \"Excursion on the Version - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/excursion-on-the-version-cd/590042.p?id=74229&skuId=590042&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=590042', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5900\\/590042.jpg\"}', 'upc' => '042282830623', 'provider' => 'bestbuy'],\n ['name' => \"Tears Roll Down: Greatest Hits 1982-1992 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tears-roll-down-greatest-hits-1982-1992-cd/590079.p?id=101303&skuId=590079&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=590079', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5900\\/590079.jpg\"}', 'upc' => '731451093920', 'provider' => 'bestbuy'],\n ['name' => \"Never Enough - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/never-enough-cd/590097.p?id=81709&skuId=590097&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=590097', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0590\\/0590097_sa.jpg\"}', 'upc' => '731451212024', 'provider' => 'bestbuy'],\n ['name' => \"Capitol Collector Series - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/capitol-collector-series-cd/590845.p?id=2280463&skuId=590845&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=590845', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5908\\/590845.jpg\"}', 'upc' => '077779643028', 'provider' => 'bestbuy'],\n ['name' => \"Ask Rufus - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ask-rufus-cd/590881.p?id=97501&skuId=590881&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=590881', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0590\\/0590881_sa.jpg\"}', 'upc' => '008811044923', 'provider' => 'bestbuy'],\n ['name' => \"La Sexorcisto: Devil Music, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/la-sexorcisto-devil-music-vol-1-cd/591229.p?id=103927&skuId=591229&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=591229', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0591\\/0591229_sa.jpg\"}', 'upc' => '720642446027', 'provider' => 'bestbuy'],\n ['name' => \"Remember Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/remember-me-cd/592166.p?id=96229&skuId=592166&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=592166', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0592\\/0592166_sa.jpg\"}', 'upc' => '025218857222', 'provider' => 'bestbuy'],\n ['name' => \"Inside Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/inside-life-cd/592601.p?id=67714&skuId=592601&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=592601', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5926\\/592601.jpg\"}', 'upc' => '731451208720', 'provider' => 'bestbuy'],\n ['name' => \"Tear It Up: Video - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tear-it-up-video-cd/593138.p?id=74859&skuId=593138&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=593138', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0593\\/0593138_sa.jpg\"}', 'upc' => '016253969629', 'provider' => 'bestbuy'],\n ['name' => \"The Complete Decca Recordings [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 31.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-complete-decca-recordings-box-cd/593771.p?id=64037&skuId=593771&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=593771', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5937\\/593771_sa.jpg\"}', 'upc' => '011105061124', 'provider' => 'bestbuy'],\n ['name' => \"The Best of John Lee Hooker 1965 to 1974 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-john-lee-hooker-1965-to-1974-cd/593824.p?id=85625&skuId=593824&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=593824', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0593\\/0593824_sa.jpg\"}', 'upc' => '008811053925', 'provider' => 'bestbuy'],\n ['name' => \"Artistry of Stan Getz: The Best of the Verve... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/artistry-of-stan-getz-the-best-of-the-verve-cd/593879.p?id=66609&skuId=593879&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=593879', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0593\\/0593879_sa.jpg\"}', 'upc' => '731451146824', 'provider' => 'bestbuy'],\n ['name' => \"Haunting the Chapel [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/haunting-the-chapel-ep-cd/594654.p?id=99116&skuId=594654&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=594654', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5946\\/594654_sa.jpg\"}', 'upc' => '039841403428', 'provider' => 'bestbuy'],\n ['name' => \"Live Undead - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-undead-cd/594663.p?id=255466&skuId=594663&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=594663', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '018777221726', 'provider' => 'bestbuy'],\n ['name' => \"Ingénue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ingenue-cd/594912.p?id=88637&skuId=594912&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=594912', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/5949\\/594912_sa.jpg\"}', 'upc' => '075992684026', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Jive] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-jive-cd/597296.p?id=93772&skuId=597296&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=597296', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0597\\/0597296_sa.jpg\"}', 'upc' => '012414127129', 'provider' => 'bestbuy'],\n ['name' => \"Late Night at the Cafe Carlyle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/late-night-at-the-cafe-carlyle-cd/597571.p?id=98648&skuId=597571&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=597571', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5975\\/597571.jpg\"}', 'upc' => '089408331121', 'provider' => 'bestbuy'],\n ['name' => \"Dream Come True - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dream-come-true-cd/597919.p?id=63585&skuId=597919&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=597919', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0597\\/0597919_sa.jpg\"}', 'upc' => '075678208720', 'provider' => 'bestbuy'],\n ['name' => \"Totally Krossed Out - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/totally-krossed-out-cd/598026.p?id=88430&skuId=598026&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=598026', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0598\\/0598026_sa.jpg\"}', 'upc' => '886972572321', 'provider' => 'bestbuy'],\n ['name' => \"I Am the Cosmos - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-am-the-cosmos-cd/598455.p?id=74368&skuId=598455&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=598455', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0598\\/0598455_sa.jpg\"}', 'upc' => '014431022227', 'provider' => 'bestbuy'],\n ['name' => \"Big Star Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-star-live-cd/598464.p?id=74642&skuId=598464&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=598464', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5984\\/598464_sa.jpg\"}', 'upc' => '014431022128', 'provider' => 'bestbuy'],\n ['name' => \"Third/Sister Lovers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/third-sister-lovers-cd/598473.p?id=74644&skuId=598473&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=598473', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5984\\/598473.jpg\"}', 'upc' => '014431022029', 'provider' => 'bestbuy'],\n ['name' => \"Classic Tracks - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classic-tracks-cd/599016.p?id=88578&skuId=599016&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=599016', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0599\\/0599016_sa.jpg\"}', 'upc' => '016351437426', 'provider' => 'bestbuy'],\n ['name' => \"Makem & Clancy Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/makem-clancy-collection-cd/599025.p?id=90239&skuId=599025&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=599025', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5990\\/599025.jpg\"}', 'upc' => '016351520128', 'provider' => 'bestbuy'],\n ['name' => \"Adrenalize - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/adrenalize-cd/599999.p?id=80097&skuId=599999&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=599999', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/5999\\/599999.jpg\"}', 'upc' => '731451218521', 'provider' => 'bestbuy'],\n ['name' => \"Cruisin' 1955 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cruisin-1955-cd-various/600068.p?id=79350&skuId=600068&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600068', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6000\\/600068.jpg\"}', 'upc' => '015668195524', 'provider' => 'bestbuy'],\n ['name' => \"Cruisin' 1956 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cruisin-1956-cd-various/600077.p?id=79351&skuId=600077&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600077', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0600\\/0600077_sa.jpg\"}', 'upc' => '015668195623', 'provider' => 'bestbuy'],\n ['name' => \"Cruisin' 1957 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cruisin-1957-cd-various/600086.p?id=79352&skuId=600086&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600086', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6000\\/600086.jpg\"}', 'upc' => '015668195722', 'provider' => 'bestbuy'],\n ['name' => \"Cruisin' 1958 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cruisin-1958-cd-various/600095.p?id=79353&skuId=600095&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600095', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6000\\/600095.jpg\"}', 'upc' => '015668195821', 'provider' => 'bestbuy'],\n ['name' => \"Cruisin' 1959 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cruisin-1959-cd-various/600111.p?id=79354&skuId=600111&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600111', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6001\\/600111.jpg\"}', 'upc' => '015668195920', 'provider' => 'bestbuy'],\n ['name' => \"The Cruisin' Story 1960 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-cruisin-story-1960-cd-various/600120.p?id=79355&skuId=600120&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600120', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0600\\/0600120_sa.jpg\"}', 'upc' => '015668196026', 'provider' => 'bestbuy'],\n ['name' => \"Cruisin' 1961 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cruisin-1961-cd-various/600139.p?id=79356&skuId=600139&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600139', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6001\\/600139_sa.jpg\"}', 'upc' => '015668196125', 'provider' => 'bestbuy'],\n ['name' => \"Cruisin' 1962 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cruisin-1962-cd-various/600148.p?id=79360&skuId=600148&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600148', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0600\\/0600148_sa.jpg\"}', 'upc' => '015668196224', 'provider' => 'bestbuy'],\n ['name' => \"Cruisin' 1963 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cruisin-1963-cd-various/600157.p?id=79361&skuId=600157&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600157', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6001\\/600157.jpg\"}', 'upc' => '015668196323', 'provider' => 'bestbuy'],\n ['name' => \"Cruisin' 1964 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cruisin-1964-cd-various/600166.p?id=79346&skuId=600166&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600166', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0600\\/0600166_sa.jpg\"}', 'upc' => '015668196422', 'provider' => 'bestbuy'],\n ['name' => \"Cruisin' 1965 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cruisin-1965-cd-various/600175.p?id=79347&skuId=600175&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600175', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6001\\/600175.jpg\"}', 'upc' => '015668196521', 'provider' => 'bestbuy'],\n ['name' => \"Cruisin' 1966 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cruisin-1966-cd-various/600184.p?id=79348&skuId=600184&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600184', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0600\\/0600184_sa.jpg\"}', 'upc' => '015668196620', 'provider' => 'bestbuy'],\n ['name' => \"Cruisin' 1967 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cruisin-1967-cd-various/600193.p?id=79349&skuId=600193&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600193', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6001\\/600193.jpg\"}', 'upc' => '015668196729', 'provider' => 'bestbuy'],\n ['name' => \"Cruisin' 1968 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cruisin-1968-cd-various/600200.p?id=79357&skuId=600200&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600200', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6002\\/600200.jpg\"}', 'upc' => '015668196828', 'provider' => 'bestbuy'],\n ['name' => \"Cruisin' 1969 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cruisin-1969-cd-various/600219.p?id=79362&skuId=600219&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600219', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6002\\/600219_sa.jpg\"}', 'upc' => '015668196927', 'provider' => 'bestbuy'],\n ['name' => \"Making Trouble - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/making-trouble-cd/600228.p?id=1410499&skuId=600228&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600228', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6002\\/600228.jpg\"}', 'upc' => '034744198921', 'provider' => 'bestbuy'],\n ['name' => \"Longnecks & Short Stories - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/longnecks-short-stories-cd/600745.p?id=77383&skuId=600745&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600745', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0600\\/0600745_sa.jpg\"}', 'upc' => '008811053024', 'provider' => 'bestbuy'],\n ['name' => \"Racine - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/racine-cd/600914.p?id=2390463&skuId=600914&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=600914', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0600\\/0600914_sa.jpg\"}', 'upc' => '008811052423', 'provider' => 'bestbuy'],\n ['name' => \"Trouble Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/trouble-time-cd/601058.p?id=81474&skuId=601058&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=601058', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6010\\/601058.jpg\"}', 'upc' => '014551480525', 'provider' => 'bestbuy'],\n ['name' => \"Amie & Other Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/amie-other-hits-cd/601281.p?id=95666&skuId=601281&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=601281', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0601\\/0601281_sa.jpg\"}', 'upc' => '078635216325', 'provider' => 'bestbuy'],\n ['name' => \"3 Years 5 Months & 2 Days In The Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/3-years-5-months-2-days-in-the-life-cd/601673.p?id=2370346&skuId=601673&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=601673', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6016\\/601673.jpg\"}', 'upc' => '094632192929', 'provider' => 'bestbuy'],\n ['name' => \"No Doubt - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/no-doubt-cd/602011.p?id=1535060&skuId=602011&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=602011', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6020\\/602011_sa.jpg\"}', 'upc' => '606949210922', 'provider' => 'bestbuy'],\n ['name' => \"Killer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/killer-cd/602725.p?id=78650&skuId=602725&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=602725', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0602\\/0602725_sa.jpg\"}', 'upc' => '075992725521', 'provider' => 'bestbuy'],\n ['name' => \"Closing Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/closing-time-cd/602743.p?id=103320&skuId=602743&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=602743', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0602\\/0602743_sa.jpg\"}', 'upc' => '075596083621', 'provider' => 'bestbuy'],\n ['name' => \"All for Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-for-love-cd/603305.p?id=101894&skuId=603305&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=603305', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6033\\/603305.jpg\"}', 'upc' => '063961519127', 'provider' => 'bestbuy'],\n ['name' => \"Migration - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/migration-cd/603323.p?id=125512&skuId=603323&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=603323', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6033\\/603323.jpg\"}', 'upc' => '021585070424', 'provider' => 'bestbuy'],\n ['name' => \"Somewhere Over China - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/somewhere-over-china-cd/603779.p?id=76277&skuId=603779&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=603779', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6037\\/603779_sa.jpg\"}', 'upc' => '076731116822', 'provider' => 'bestbuy'],\n ['name' => \"Que Alegria - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/que-alegria-cd/603840.p?id=68969&skuId=603840&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=603840', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6038\\/603840.jpg\"}', 'upc' => '042283728028', 'provider' => 'bestbuy'],\n ['name' => \"Poisonous Mentality - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/poisonous-mentality-cd/603966.p?id=95130&skuId=603966&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=603966', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6039\\/603966.jpg\"}', 'upc' => '022471300625', 'provider' => 'bestbuy'],\n ['name' => \"Live in Concert [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-in-concert-pa-cd/604000.p?id=102640&skuId=604000&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=604000', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0604\\/0604000_sa.jpg\"}', 'upc' => '022471300328', 'provider' => 'bestbuy'],\n ['name' => \"A Quiet Storm - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-quiet-storm-cd/604322.p?id=96872&skuId=604322&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=604322', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0604\\/0604322_sa.jpg\"}', 'upc' => '737463519724', 'provider' => 'bestbuy'],\n ['name' => \"Raised by Humans - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/raised-by-humans-cd/604439.p?id=88314&skuId=604439&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=604439', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0604\\/0604439_sa.jpg\"}', 'upc' => '033651004424', 'provider' => 'bestbuy'],\n ['name' => \"Dream Cafe - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dream-cafe-cd/604457.p?id=75921&skuId=604457&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=604457', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6044\\/604457_sa.jpg\"}', 'upc' => '033651004721', 'provider' => 'bestbuy'],\n ['name' => \"Duo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/duo-cd/604466.p?id=94147&skuId=604466&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=604466', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0604\\/0604466_sa.jpg\"}', 'upc' => '033651004028', 'provider' => 'bestbuy'],\n ['name' => \"Hit to Death in the Future Head - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hit-to-death-in-the-future-head-cd/604698.p?id=82372&skuId=604698&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=604698', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6046\\/604698_sa.jpg\"}', 'upc' => '075992683821', 'provider' => 'bestbuy'],\n ['name' => \"Young Girl Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/young-girl-blues-cd/605688.p?id=82573&skuId=605688&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=605688', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6056\\/605688_sa.jpg\"}', 'upc' => '049891001925', 'provider' => 'bestbuy'],\n ['name' => \"Pretty on the Inside - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pretty-on-the-inside-cd/605900.p?id=85479&skuId=605900&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=605900', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0605\\/0605900_sa.jpg\"}', 'upc' => '017046171021', 'provider' => 'bestbuy'],\n ['name' => \"Smell the Magic - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/smell-the-magic-cd/605964.p?id=88494&skuId=605964&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=605964', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0605\\/0605964_sa.jpg\"}', 'upc' => '098787007923', 'provider' => 'bestbuy'],\n ['name' => \"Mudhoney - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mudhoney-cd/605982.p?id=92574&skuId=605982&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=605982', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0605\\/0605982_sa.jpg\"}', 'upc' => '098787004427', 'provider' => 'bestbuy'],\n ['name' => \"Sub Pop 200 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sub-pop-200-cd-various/606035.p?id=100696&skuId=606035&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=606035', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0606\\/0606035_sa.jpg\"}', 'upc' => '098787002522', 'provider' => 'bestbuy'],\n ['name' => \"Congregation - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/congregation-cd/606124.p?id=72543&skuId=606124&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=606124', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6061\\/606124.jpg\"}', 'upc' => '098787013023', 'provider' => 'bestbuy'],\n ['name' => \"Lone Ranger - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lone-ranger-cd/606240.p?id=103653&skuId=606240&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=606240', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6062\\/606240.jpg\"}', 'upc' => '026245105522', 'provider' => 'bestbuy'],\n ['name' => \"Only the Strong Survive - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/only-the-strong-survive-cd/606446.p?id=96645&skuId=606446&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=606446', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6064\\/606446_sa.jpg\"}', 'upc' => '052824220720', 'provider' => 'bestbuy'],\n ['name' => \"True Love & Other Short Stories - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/true-love-other-short-stories-cd/606605.p?id=72686&skuId=606605&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=606605', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6066\\/606605.jpg\"}', 'upc' => '015891102924', 'provider' => 'bestbuy'],\n ['name' => \"Dead Serious - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dead-serious-cd/606641.p?id=79795&skuId=606641&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=606641', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6066\\/606641_sa.jpg\"}', 'upc' => '075679182722', 'provider' => 'bestbuy'],\n ['name' => \"Arc Angels - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/arc-angels-cd/607043.p?id=73193&skuId=607043&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=607043', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0607\\/0607043_sa.jpg\"}', 'upc' => '720642446522', 'provider' => 'bestbuy'],\n ['name' => \"Mecca and the Soul Brother - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mecca-and-the-soul-brother-cd/607221.p?id=96909&skuId=607221&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=607221', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0607\\/0607221_sa.jpg\"}', 'upc' => '075596094825', 'provider' => 'bestbuy'],\n ['name' => \"Tongues and Tails - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tongues-and-tails-cd/607356.p?id=85029&skuId=607356&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=607356', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6073\\/607356_sa.jpg\"}', 'upc' => '074644679724', 'provider' => 'bestbuy'],\n ['name' => \"Cecilio & Kapono - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cecilio-kapono-cd/607613.p?id=77106&skuId=607613&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=607613', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0607\\/0607613_sa.jpg\"}', 'upc' => '074643292825', 'provider' => 'bestbuy'],\n ['name' => \"Barabajagal - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/barabajagal-cd/607739.p?id=80740&skuId=607739&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=607739', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6077\\/607739_sa.jpg\"}', 'upc' => '074642648128', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/607891.p?id=104584&skuId=607891&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=607891', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6078\\/607891_sa.jpg\"}', 'upc' => '074643719926', 'provider' => 'bestbuy'],\n ['name' => \"Third World Child - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/third-world-child-cd/608140.p?id=1366582&skuId=608140&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=608140', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0608\\/0608140_sa.jpg\"}', 'upc' => '762185147429', 'provider' => 'bestbuy'],\n ['name' => \"Un-Led-Ed - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/un-led-ed-cd/608168.p?id=80935&skuId=608168&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=608168', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0608\\/0608168_sa.jpg\"}', 'upc' => '022071304825', 'provider' => 'bestbuy'],\n ['name' => \"Some Time in New York City - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/some-time-in-new-york-city-cd/608462.p?id=89039&skuId=608462&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=608462', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0608\\/0608462_sa.jpg\"}', 'upc' => '077779385027', 'provider' => 'bestbuy'],\n ['name' => \"Legendary Masters Series - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/legendary-masters-series-cd/608471.p?id=89134&skuId=608471&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=608471', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6084\\/608471.jpg\"}', 'upc' => '077779344925', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Earl Klugh, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-earl-klugh-vol-1-cd/609014.p?id=68297&skuId=609014&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=609014', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6090\\/609014.jpg\"}', 'upc' => '077774662529', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Lee Morgan - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-lee-morgan-cd/609023.p?id=69384&skuId=609023&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=609023', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0609\\/0609023_sa.jpg\"}', 'upc' => '077779113828', 'provider' => 'bestbuy'],\n ['name' => \"Percolater - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/percolater-cd/609041.p?id=72718&skuId=609041&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=609041', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6090\\/609041.jpg\"}', 'upc' => '031895002220', 'provider' => 'bestbuy'],\n ['name' => \"Best of Cannonball Adderley: The Capitol... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-cannonball-adderley-the-capitol-cd/609185.p?id=63533&skuId=609185&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=609185', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0609\\/0609185_sa.jpg\"}', 'upc' => '077779548224', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Blue Note Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-blue-note-years-cd/609247.p?id=2416858&skuId=609247&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=609247', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6092\\/609247.jpg\"}', 'upc' => '077779563623', 'provider' => 'bestbuy'],\n ['name' => \"Best of Gerry Mulligan Quartet with Chet... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-gerry-mulligan-quartet-with-chet-cd/609434.p?id=69451&skuId=609434&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=609434', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6094\\/609434_sa.jpg\"}', 'upc' => '077779548125', 'provider' => 'bestbuy'],\n ['name' => \"Ballads - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ballads-cd/609461.p?id=2443694&skuId=609461&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=609461', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0609\\/0609461_sa.jpg\"}', 'upc' => '077779657926', 'provider' => 'bestbuy'],\n ['name' => \"Pure Imagination - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pure-imagination-cd/609540.p?id=3522148&skuId=609540&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=609540', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0609\\/0609540_sa.jpg\"}', 'upc' => '075596104623', 'provider' => 'bestbuy'],\n ['name' => \"Grace Under Pressure - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/grace-under-pressure-cd/609915.p?id=2434397&skuId=609915&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=609915', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0609\\/0609915_sa.jpg\"}', 'upc' => '077779816729', 'provider' => 'bestbuy'],\n ['name' => \"Too Blind to See It - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/too-blind-to-see-it-cd/610262.p?id=98830&skuId=610262&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=610262', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6102\\/610262.jpg\"}', 'upc' => '075679210425', 'provider' => 'bestbuy'],\n ['name' => \"Here's to Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heres-to-life-cd/610333.p?id=67599&skuId=610333&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=610333', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0610\\/0610333_sa.jpg\"}', 'upc' => '731451187926', 'provider' => 'bestbuy'],\n ['name' => \"Breezy Stories - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/breezy-stories-cd/610413.p?id=93703&skuId=610413&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=610413', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6104\\/610413_sa.jpg\"}', 'upc' => '075678142727', 'provider' => 'bestbuy'],\n ['name' => \"Atlantic Blues: Guitar - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/atlantic-blues-guitar-cd-various/610501.p?id=73431&skuId=610501&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=610501', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6105\\/610501.jpg\"}', 'upc' => '075678169526', 'provider' => 'bestbuy'],\n ['name' => \"For Everyman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-everyman-cd/610645.p?id=75927&skuId=610645&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=610645', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6106\\/610645_sa.jpg\"}', 'upc' => '075596062626', 'provider' => 'bestbuy'],\n ['name' => \"Law and Order - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/law-and-order-cd/610707.p?id=76208&skuId=610707&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=610707', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6107\\/610707_sa.jpg\"}', 'upc' => '075992747820', 'provider' => 'bestbuy'],\n ['name' => \"Goodbye and Hello - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/goodbye-and-hello-cd/610725.p?id=76217&skuId=610725&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=610725', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6107\\/610725_sa.jpg\"}', 'upc' => '075596089623', 'provider' => 'bestbuy'],\n ['name' => \"Buffalo Springfield Again [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/buffalo-springfield-again-remaster-cd/610752.p?id=76250&skuId=610752&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=610752', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0610\\/0610752_sa.jpg\"}', 'upc' => '075679039125', 'provider' => 'bestbuy'],\n ['name' => \"East-West - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/east-west-cd/610770.p?id=76421&skuId=610770&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=610770', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6107\\/610770.jpg\"}', 'upc' => '075596075121', 'provider' => 'bestbuy'],\n ['name' => \"The Resurrection of Pigboy Crabshaw - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-resurrection-of-pigboy-crabshaw-cd/610789.p?id=76425&skuId=610789&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=610789', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0610\\/0610789_sa.jpg\"}', 'upc' => '075596091121', 'provider' => 'bestbuy'],\n ['name' => \"Big Bambu - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-bambu-cd/610850.p?id=77322&skuId=610850&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=610850', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0610\\/0610850_sa.jpg\"}', 'upc' => '075992736923', 'provider' => 'bestbuy'],\n ['name' => \"Cheech & Chong [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cheech-chong-pa-cd/610869.p?id=77323&skuId=610869&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=610869', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6108\\/610869_sa.jpg\"}', 'upc' => '075992736824', 'provider' => 'bestbuy'],\n ['name' => \"Marshall Crenshaw [1982] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/marshall-crenshaw-1982-cd/611074.p?id=214808&skuId=611074&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=611074', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6110\\/611074_sa.jpg\"}', 'upc' => '075992367325', 'provider' => 'bestbuy'],\n ['name' => \"Repeat When Necessary - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/repeat-when-necessary-cd/611305.p?id=81326&skuId=611305&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=611305', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0611\\/0611305_sa.jpg\"}', 'upc' => '075679033727', 'provider' => 'bestbuy'],\n ['name' => \"Stone Crazy! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stone-crazy-cd/611323.p?id=84486&skuId=611323&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=611323', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6113\\/611323.jpg\"}', 'upc' => '014551472322', 'provider' => 'bestbuy'],\n ['name' => \"Gord'S Gold 2 (Rpkg) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gords-gold-2-rpkg-cd/611733.p?id=1378357&skuId=611733&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=611733', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0611\\/0611733_sa.jpg\"}', 'upc' => '081227646523', 'provider' => 'bestbuy'],\n ['name' => \"Common One - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/common-one-cd/611868.p?id=92306&skuId=611868&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=611868', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0611\\/0611868_sa.jpg\"}', 'upc' => '075992639927', 'provider' => 'bestbuy'],\n ['name' => \"Inarticulate Speech Of The Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/inarticulate-speech-of-the-heart-cd/611886.p?id=92311&skuId=611886&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=611886', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6118\\/611886_sa.jpg\"}', 'upc' => '075992380225', 'provider' => 'bestbuy'],\n ['name' => \"Glider - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/glider-cd/611902.p?id=92721&skuId=611902&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=611902', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6119\\/611902.jpg\"}', 'upc' => '075992631327', 'provider' => 'bestbuy'],\n ['name' => \"Cowboys from Hell - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => 5.99, 'url' => 'http://www.bestbuy.com/site/cowboys-from-hell-cd/612091.p?id=94338&skuId=612091&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=612091', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6120\\/612091_sa.jpg\"}', 'upc' => '075679137227', 'provider' => 'bestbuy'],\n ['name' => \"Confessin' the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/confessin-the-blues-cd/612108.p?id=94852&skuId=612108&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=612108', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0612\\/0612108_sa.jpg\"}', 'upc' => '075679067029', 'provider' => 'bestbuy'],\n ['name' => \"Smile [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/smile-ep-cd/612199.p?id=96651&skuId=612199&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=612199', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0612\\/0612199_sa.jpg\"}', 'upc' => '075992639026', 'provider' => 'bestbuy'],\n ['name' => \"One Man Dog - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-man-dog-cd/612402.p?id=101241&skuId=612402&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=612402', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0612\\/0612402_sa.jpg\"}', 'upc' => '075992593328', 'provider' => 'bestbuy'],\n ['name' => \"Big Joe Turner's Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-joe-turners-greatest-hits-cd/612420.p?id=102484&skuId=612420&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=612420', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6124\\/612420_sa.jpg\"}', 'upc' => '075678175220', 'provider' => 'bestbuy'],\n ['name' => \"Caetano Veloso [Trilhos Urbanos] - CD - Reissue\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/caetano-veloso-trilhos-urbanos-cd-reissue/612475.p?id=103059&skuId=612475&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=612475', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0612\\/0612475_sa.jpg\"}', 'upc' => '075597912722', 'provider' => 'bestbuy'],\n ['name' => \"Foreign Affairs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/foreign-affairs-cd/612484.p?id=103321&skuId=612484&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=612484', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0612\\/0612484_sa.jpg\"}', 'upc' => '075596061827', 'provider' => 'bestbuy'],\n ['name' => \"Heartattack and Vine - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heartattack-and-vine-cd/612493.p?id=103323&skuId=612493&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=612493', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6124\\/612493_sa.jpg\"}', 'upc' => '075596054720', 'provider' => 'bestbuy'],\n ['name' => \"Concert: The Cure Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/concert-the-cure-live-cd/612581.p?id=1443020&skuId=612581&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=612581', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0612\\/0612581_sa.jpg\"}', 'upc' => '759091024029', 'provider' => 'bestbuy'],\n ['name' => \"Metra - 1/4\\\" DIN Trim Ring for Most Vehicles\", 'description_short' => \"Compatible with most vehicles; designed for the installation of an aftermarket radio\", 'description_long' => \"Compatible with most vehicles; designed for the installation of an aftermarket radio\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-1-4-din-trim-ring-for-most-vehicles/612732.p?id=1179531744934&skuId=612732&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=612732', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6127\\/612732_sa.jpg\"}', 'upc' => '086429005536', 'provider' => 'bestbuy'],\n ['name' => \"For the Roses [Limited] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-the-roses-limited-cd/612769.p?id=91923&skuId=612769&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=612769', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6127\\/612769_sa.jpg\"}', 'upc' => '075596062428', 'provider' => 'bestbuy'],\n ['name' => \"Group Sex - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/group-sex-cd/612867.p?id=2730478&skuId=612867&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=612867', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0612\\/0612867_sa.jpg\"}', 'upc' => '018663100227', 'provider' => 'bestbuy'],\n ['name' => \"Tibetan Tantric Choir - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tibetan-tantric-choir-cd/613081.p?id=84524&skuId=613081&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=613081', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6130\\/613081.jpg\"}', 'upc' => '019341200123', 'provider' => 'bestbuy'],\n ['name' => \"Born to Mack [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/born-to-mack-pa-cd/614008.p?id=101986&skuId=614008&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=614008', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6140\\/614008_sa.jpg\"}', 'upc' => '012414110022', 'provider' => 'bestbuy'],\n ['name' => \"Together for the First Time...Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/together-for-the-first-time-live-cd/614213.p?id=75000&skuId=614213&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=614213', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0614\\/0614213_sa.jpg\"}', 'upc' => '076732416020', 'provider' => 'bestbuy'],\n ['name' => \"Together Again...Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/together-again-live-cd/614231.p?id=75001&skuId=614231&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=614231', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6142\\/614231_sa.jpg\"}', 'upc' => '076742701222', 'provider' => 'bestbuy'],\n ['name' => \"Riddles in the Sand - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/riddles-in-the-sand-cd/614295.p?id=76276&skuId=614295&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=614295', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6142\\/614295_sa.jpg\"}', 'upc' => '076731109527', 'provider' => 'bestbuy'],\n ['name' => \"The Chess Box [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 21.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-chess-box-box-cd/614428.p?id=80621&skuId=614428&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=614428', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6144\\/614428_sa.jpg\"}', 'upc' => '076731650029', 'provider' => 'bestbuy'],\n ['name' => \"Jon Secada - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jon-secada-cd/614437.p?id=98222&skuId=614437&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=614437', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0614\\/0614437_sa.jpg\"}', 'upc' => '077779884520', 'provider' => 'bestbuy'],\n ['name' => \"Plays & Sings The Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/plays-sings-the-blues-cd/614650.p?id=2472982&skuId=614650&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=614650', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0614\\/0614650_sa.jpg\"}', 'upc' => '076732919927', 'provider' => 'bestbuy'],\n ['name' => \"Midnight Believer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/midnight-believer-cd/614794.p?id=87934&skuId=614794&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=614794', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6147\\/614794.jpg\"}', 'upc' => '076742701123', 'provider' => 'bestbuy'],\n ['name' => \"Indianola Mississippi Seeds - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/indianola-mississippi-seeds-cd/614838.p?id=87922&skuId=614838&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=614838', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6148\\/614838_sa.jpg\"}', 'upc' => '076743134326', 'provider' => 'bestbuy'],\n ['name' => \"That Total Age - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/that-total-age-cd/614972.p?id=1365907&skuId=614972&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=614972', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '075992415521', 'provider' => 'bestbuy'],\n ['name' => \"Rufus - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rufus-cd/615203.p?id=97504&skuId=615203&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=615203', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0615\\/0615203_sa.jpg\"}', 'upc' => '076743137327', 'provider' => 'bestbuy'],\n ['name' => \"Hyaena - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hyaena-cd/615230.p?id=98934&skuId=615230&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=615230', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6152\\/615230_sa.jpg\"}', 'upc' => '720642403020', 'provider' => 'bestbuy'],\n ['name' => \"The London Muddy Waters Sessions - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-london-muddy-waters-sessions-cd/615748.p?id=103577&skuId=615748&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=615748', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6157\\/615748.jpg\"}', 'upc' => '076732929827', 'provider' => 'bestbuy'],\n ['name' => \"Power of Three - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/power-of-three-cd/615793.p?id=70016&skuId=615793&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=615793', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6157\\/615793.jpg\"}', 'upc' => '077774642729', 'provider' => 'bestbuy'],\n ['name' => \"The Statlers Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-statlers-greatest-hits-cd/615873.p?id=100169&skuId=615873&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=615873', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0615\\/0615873_sa.jpg\"}', 'upc' => '042283462625', 'provider' => 'bestbuy'],\n ['name' => \"All Time Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-cd/616097.p?id=95776&skuId=616097&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=616097', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0616\\/0616097_sa.jpg\"}', 'upc' => '075992646727', 'provider' => 'bestbuy'],\n ['name' => \"Bloodline - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bloodline-cd/616444.p?id=96167&skuId=616444&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=616444', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0616\\/0616444_sa.jpg\"}', 'upc' => '075992685023', 'provider' => 'bestbuy'],\n ['name' => \"Check Your Head [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/check-your-head-pa-cd/616809.p?id=74157&skuId=616809&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=616809', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6168\\/616809_sa.jpg\"}', 'upc' => '077779893829', 'provider' => 'bestbuy'],\n ['name' => \"Geography - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/geography-cd/618825.p?id=83028&skuId=618825&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=618825', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0618\\/0618825_sa.jpg\"}', 'upc' => '074645240824', 'provider' => 'bestbuy'],\n ['name' => \"East Side Story - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/east-side-story-cd/619236.p?id=87823&skuId=619236&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=619236', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6192\\/619236.jpg\"}', 'upc' => '077778627524', 'provider' => 'bestbuy'],\n ['name' => \"Water to the Soul - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/water-to-the-soul-cd/619806.p?id=78398&skuId=619806&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=619806', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6198\\/619806.jpg\"}', 'upc' => '075679212320', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Charley Pride [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-charley-pride-curb-cd/619913.p?id=95446&skuId=619913&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=619913', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6199\\/619913_sa.jpg\"}', 'upc' => '715187747128', 'provider' => 'bestbuy'],\n ['name' => \"Charles Ivesedward Macdowellcharles Griffeslieder - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/charles-ivesedward-macdowellcharles-griffeslieder-cd/619995.p?id=3165199&skuId=619995&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=619995', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '090317248622', 'provider' => 'bestbuy'],\n ['name' => \"Wynonna & Naomi - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wynonna-naomi-cd/620402.p?id=2282370&skuId=620402&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=620402', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6204\\/620402_sa.jpg\"}', 'upc' => '078635840223', 'provider' => 'bestbuy'],\n ['name' => \"Bachman-Turner Overdrive II - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bachman-turner-overdrive-ii-cd/620849.p?id=73617&skuId=620849&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=620849', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6208\\/620849.jpg\"}', 'upc' => '042282250421', 'provider' => 'bestbuy'],\n ['name' => \"Four Wheel Drive - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/four-wheel-drive-cd/620858.p?id=73620&skuId=620858&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=620858', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0620\\/0620858_sa.jpg\"}', 'upc' => '042283097025', 'provider' => 'bestbuy'],\n ['name' => \"Orange Blossom Special: 16 Instumentals - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/orange-blossom-special-16-instumentals-cd-various/621072.p?id=287317&skuId=621072&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=621072', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0621\\/0621072_sa.jpg\"}', 'upc' => '027297490321', 'provider' => 'bestbuy'],\n ['name' => \"Foggy Mountain Breakdown - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/foggy-mountain-breakdown-cd-various/621090.p?id=245449&skuId=621090&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=621090', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6210\\/621090_sa.jpg\"}', 'upc' => '027297490222', 'provider' => 'bestbuy'],\n ['name' => \"Crazy World Of Arthur Brown (Germany) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crazy-world-of-arthur-brown-germany-cd/621269.p?id=2305071&skuId=621269&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=621269', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0621\\/0621269_sa.jpg\"}', 'upc' => '042283373624', 'provider' => 'bestbuy'],\n ['name' => \"Live Stock - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-stock-cd/621303.p?id=76193&skuId=621303&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=621303', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0621\\/0621303_sa.jpg\"}', 'upc' => '042283141421', 'provider' => 'bestbuy'],\n ['name' => \"Okie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/okie-cd/621367.p?id=76587&skuId=621367&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=621367', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0621\\/0621367_sa.jpg\"}', 'upc' => '042284210225', 'provider' => 'bestbuy'],\n ['name' => \"Troubadour - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/troubadour-cd/621385.p?id=76592&skuId=621385&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=621385', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0621\\/0621385_sa.jpg\"}', 'upc' => '042281000126', 'provider' => 'bestbuy'],\n ['name' => \"Bad Music for Bad People - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bad-music-for-bad-people-cd/621474.p?id=79082&skuId=621474&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=621474', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6214\\/621474_sa.jpg\"}', 'upc' => '044797004223', 'provider' => 'bestbuy'],\n ['name' => \"Gravest Hits & Psychedelic Jungle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gravest-hits-psychedelic-jungle-cd/621492.p?id=2387429&skuId=621492&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=621492', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0621\\/0621492_sa.jpg\"}', 'upc' => '044797005824', 'provider' => 'bestbuy'],\n ['name' => \"Carousel - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/carousel-cd/621704.p?id=84266&skuId=621704&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=621704', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6217\\/621704_sa.jpg\"}', 'upc' => '042284233422', 'provider' => 'bestbuy'],\n ['name' => \"Mixed Bag - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mixed-bag-cd/621722.p?id=84999&skuId=621722&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=621722', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6217\\/621722_sa.jpg\"}', 'upc' => '042283521025', 'provider' => 'bestbuy'],\n ['name' => \"The Cure [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-cure-digdownload-cd/621820.p?id=67888&skuId=621820&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=621820', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6218\\/621820.jpg\"}', 'upc' => '042284965026', 'provider' => 'bestbuy'],\n ['name' => \"Second Generation - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/second-generation-cd/621946.p?id=94141&skuId=621946&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=621946', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6219\\/621946_sa.jpg\"}', 'upc' => '715187756328', 'provider' => 'bestbuy'],\n ['name' => \"Serious Intentions - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/serious-intentions-cd/621973.p?id=77945&skuId=621973&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=621973', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6219\\/621973_sa.jpg\"}', 'upc' => '014551480624', 'provider' => 'bestbuy'],\n ['name' => \"Two of a Kind - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-of-a-kind-cd/622017.p?id=2434628&skuId=622017&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=622017', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6220\\/622017.jpg\"}', 'upc' => '730182201727', 'provider' => 'bestbuy'],\n ['name' => \"Slave to the Rhythm - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/slave-to-the-rhythm-cd/622142.p?id=87277&skuId=622142&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=622142', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6221\\/622142.jpg\"}', 'upc' => '042284261227', 'provider' => 'bestbuy'],\n ['name' => \"Bare Wires - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bare-wires-cd/622534.p?id=1524720&skuId=622534&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=622534', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0622\\/0622534_sa.jpg\"}', 'upc' => '042282053824', 'provider' => 'bestbuy'],\n ['name' => \"Chelsea Girl - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chelsea-girl-cd/622847.p?id=93306&skuId=622847&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=622847', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6228\\/622847_sa.jpg\"}', 'upc' => '042283520929', 'provider' => 'bestbuy'],\n ['name' => \"Dance Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dance-collection-cd/623070.p?id=2434357&skuId=623070&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=623070', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6230\\/623070_sa.jpg\"}', 'upc' => '042283053427', 'provider' => 'bestbuy'],\n ['name' => \"Big Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-time-cd/623365.p?id=103317&skuId=623365&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=623365', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0623\\/0623365_sa.jpg\"}', 'upc' => '042284247023', 'provider' => 'bestbuy'],\n ['name' => \"Call of the West - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/call-of-the-west-cd/623374.p?id=103406&skuId=623374&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=623374', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6233\\/623374_sa.jpg\"}', 'upc' => '044797002625', 'provider' => 'bestbuy'],\n ['name' => \"The Woman in Red [Original Soundtrack] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-woman-in-red-original-soundtrack-cd/623409.p?id=2358864&skuId=623409&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=623409', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6234\\/623409_sa.jpg\"}', 'upc' => '737463610827', 'provider' => 'bestbuy'],\n ['name' => \"After the Rain - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/after-the-rain-cd/623454.p?id=87289&skuId=623454&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=623454', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6234\\/623454_sa.jpg\"}', 'upc' => '076742602024', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [MCA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-mca-cd/623506.p?id=68558&skuId=623506&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=623506', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0623\\/0623506_sa.jpg\"}', 'upc' => '076732602126', 'provider' => 'bestbuy'],\n ['name' => \"The Lonely Shepherd - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-lonely-shepherd-cd/623622.p?id=105164&skuId=623622&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=623622', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6236\\/623622_sa.jpg\"}', 'upc' => '042282278722', 'provider' => 'bestbuy'],\n ['name' => \"Without a Song - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/without-a-song-cd/624140.p?id=93038&skuId=624140&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=624140', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6241\\/624140_sa.jpg\"}', 'upc' => '074643911023', 'provider' => 'bestbuy'],\n ['name' => \"Ella Fitzgerald Sings the Cole Porter... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ella-fitzgerald-sings-the-cole-porter-cd/624364.p?id=66283&skuId=624364&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=624364', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0624\\/0624364_sa.jpg\"}', 'upc' => '042282199027', 'provider' => 'bestbuy'],\n ['name' => \"Stan Getz and the Oscar Peterson Trio - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stan-getz-and-the-oscar-peterson-trio-cd/624435.p?id=66581&skuId=624435&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=624435', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0624\\/0624435_sa.jpg\"}', 'upc' => '042282782625', 'provider' => 'bestbuy'],\n ['name' => \"Close Enough for Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/close-enough-for-love-cd/624532.p?id=67598&skuId=624532&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=624532', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6245\\/624532.jpg\"}', 'upc' => '042283793323', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Donald Byrd - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-donald-byrd-cd/624649.p?id=64764&skuId=624649&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=624649', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6246\\/624649.jpg\"}', 'upc' => '077779863822', 'provider' => 'bestbuy'],\n ['name' => \"Night and Day: The Cole Porter Songbook - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/night-and-day-the-cole-porter-songbook-cd-various/624667.p?id=95217&skuId=624667&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=624667', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0624\\/0624667_sa.jpg\"}', 'upc' => '042284720229', 'provider' => 'bestbuy'],\n ['name' => \"Golden Hits - Sarah Vaughan - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/golden-hits-sarah-vaughan-cd/624676.p?id=71680&skuId=624676&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=624676', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6246\\/624676_sa.jpg\"}', 'upc' => '042282489128', 'provider' => 'bestbuy'],\n ['name' => \"Last Time Around [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/last-time-around-remaster-cd/625853.p?id=76252&skuId=625853&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=625853', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0625\\/0625853_sa.jpg\"}', 'upc' => '075679039323', 'provider' => 'bestbuy'],\n ['name' => \"Double Eclipse - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/double-eclipse-cd/626219.p?id=84815&skuId=626219&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=626219', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6262\\/626219.jpg\"}', 'upc' => '008811058623', 'provider' => 'bestbuy'],\n ['name' => \"Porgy & Bess - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/porgy-bess-cd-original-cast-recording/626282.p?id=2304925&skuId=626282&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=626282', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0626\\/0626282_sa.jpg\"}', 'upc' => '008811052027', 'provider' => 'bestbuy'],\n ['name' => \"Stephen Stills 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stephen-stills-2-cd/627058.p?id=100452&skuId=627058&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=627058', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0627\\/0627058_sa.jpg\"}', 'upc' => '075678238925', 'provider' => 'bestbuy'],\n ['name' => \"The Very Best of Buddy Guy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-very-best-of-buddy-guy-cd/627174.p?id=84488&skuId=627174&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=627174', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0627\\/0627174_sa.jpg\"}', 'upc' => '081227028022', 'provider' => 'bestbuy'],\n ['name' => \"Best Of Gregory Isaacs 1 & 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-gregory-isaacs-1-2-cd/627245.p?id=2542465&skuId=627245&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=627245', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0627\\/0627245_sa.jpg\"}', 'upc' => '011661759725', 'provider' => 'bestbuy'],\n ['name' => \"Live at Slim's, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-slims-vol-2-cd/627254.p?id=103392&skuId=627254&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=627254', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6272\\/627254.jpg\"}', 'upc' => '012928803625', 'provider' => 'bestbuy'],\n ['name' => \"Bucky Fellini - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bucky-fellini-cd/628798.p?id=79963&skuId=628798&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=628798', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0628\\/0628798_sa.jpg\"}', 'upc' => '018777254427', 'provider' => 'bestbuy'],\n ['name' => \"Thrash Zone - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thrash-zone-cd/629056.p?id=269068&skuId=629056&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=629056', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6290\\/629056_sa.jpg\"}', 'upc' => '018777243728', 'provider' => 'bestbuy'],\n ['name' => \"Carmen Without Words - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/carmen-without-words-cd/630062.p?id=2069524&skuId=630062&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=630062', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0630\\/0630062_sa.jpg\"}', 'upc' => '074644628722', 'provider' => 'bestbuy'],\n ['name' => \"Mesas and Mandolins - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mesas-and-mandolins-cd/631016.p?id=154364&skuId=631016&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=631016', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6310\\/631016_sa.jpg\"}', 'upc' => '734373740620', 'provider' => 'bestbuy'],\n ['name' => \"How Late'll Ya Play 'Til?, Vol. 1: Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/how-latell-ya-play-til-vol-1-live-cd/631472.p?id=76020&skuId=631472&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=631472', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0631\\/0631472_sa.jpg\"}', 'upc' => '025218770422', 'provider' => 'bestbuy'],\n ['name' => \"How Late'll Ya Play 'Til?, Vol. 2: Studio - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/how-latell-ya-play-til-vol-2-studio-cd/631515.p?id=76021&skuId=631515&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=631515', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6315\\/631515_sa.jpg\"}', 'upc' => '025218770521', 'provider' => 'bestbuy'],\n ['name' => \"Willie's Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/willies-blues-cd/631551.p?id=80624&skuId=631551&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=631551', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6315\\/631551_sa.jpg\"}', 'upc' => '025218050128', 'provider' => 'bestbuy'],\n ['name' => \"Hard Travelin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hard-travelin-cd/631739.p?id=249877&skuId=631739&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=631739', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0631\\/0631739_sa.jpg\"}', 'upc' => '025218242028', 'provider' => 'bestbuy'],\n ['name' => \"To Diz with Love: Diamond Jubilee Recordings - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/to-diz-with-love-diamond-jubilee-recordings-cd/631926.p?id=66704&skuId=631926&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=631926', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0631\\/0631926_sa.jpg\"}', 'upc' => '089408330728', 'provider' => 'bestbuy'],\n ['name' => \"Soulful Dress - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/soulful-dress-cd/632033.p?id=2305037&skuId=632033&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=632033', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6320\\/632033.jpg\"}', 'upc' => '011661307827', 'provider' => 'bestbuy'],\n ['name' => \"Gatorhythms - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gatorhythms-cd/632042.p?id=73787&skuId=632042&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=632042', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6320\\/632042.jpg\"}', 'upc' => '011661310124', 'provider' => 'bestbuy'],\n ['name' => \"Guess Who's Coming to Dinner - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/guess-whos-coming-to-dinner-cd/632051.p?id=74846&skuId=632051&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=632051', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0632\\/0632051_sa.jpg\"}', 'upc' => '011661751828', 'provider' => 'bestbuy'],\n ['name' => \"Norman Blake & Tony Rice 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/norman-blake-tony-rice-2-cd/632088.p?id=2443921&skuId=632088&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=632088', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6320\\/632088.jpg\"}', 'upc' => '011661026629', 'provider' => 'bestbuy'],\n ['name' => \"Mama's Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mamas-blues-cd/632097.p?id=75048&skuId=632097&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=632097', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6320\\/632097_sa.jpg\"}', 'upc' => '011661311725', 'provider' => 'bestbuy'],\n ['name' => \"Alright Again! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alright-again-cd/632275.p?id=75890&skuId=632275&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=632275', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6322\\/632275_sa.jpg\"}', 'upc' => '011661202825', 'provider' => 'bestbuy'],\n ['name' => \"I'll Treat You Right - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ill-treat-you-right-cd/632382.p?id=77977&skuId=632382&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=632382', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6323\\/632382.jpg\"}', 'upc' => '011661952027', 'provider' => 'bestbuy'],\n ['name' => \"Avalon Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/avalon-blues-cd/632765.p?id=85964&skuId=632765&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=632765', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0632\\/0632765_sa.jpg\"}', 'upc' => '011661108127', 'provider' => 'bestbuy'],\n ['name' => \"Worried Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/worried-blues-cd/632774.p?id=85970&skuId=632774&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=632774', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0632\\/0632774_sa.jpg\"}', 'upc' => '011661108226', 'provider' => 'bestbuy'],\n ['name' => \"Midnight Special: The Library of Congress... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/midnight-special-the-library-of-congress-cd/632836.p?id=88858&skuId=632836&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=632836', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6328\\/632836_sa.jpg\"}', 'upc' => '011661104426', 'provider' => 'bestbuy'],\n ['name' => \"Gwine Dig a Hole to Put the Devil In: The... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gwine-dig-a-hole-to-put-the-devil-in-the-cd/632845.p?id=88854&skuId=632845&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=632845', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6328\\/632845_sa.jpg\"}', 'upc' => '011661104525', 'provider' => 'bestbuy'],\n ['name' => \"The Folkways Years (1945-1959) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-folkways-years-1945-1959-cd/632907.p?id=91176&skuId=632907&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=632907', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6329\\/632907.jpg\"}', 'upc' => '093074003428', 'provider' => 'bestbuy'],\n ['name' => \"The Early Years (1958-1962) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-early-years-1958-1962-cd/632925.p?id=93158&skuId=632925&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=632925', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6329\\/632925_sa.jpg\"}', 'upc' => '093074003626', 'provider' => 'bestbuy'],\n ['name' => \"Markology - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/markology-cd/633041.p?id=93653&skuId=633041&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=633041', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0633\\/0633041_sa.jpg\"}', 'upc' => '011661009028', 'provider' => 'bestbuy'],\n ['name' => \"Jonathan Richman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jonathan-richman-cd/633078.p?id=96635&skuId=633078&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=633078', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0633\\/0633078_sa.jpg\"}', 'upc' => '011661902121', 'provider' => 'bestbuy'],\n ['name' => \"Jonathan Goes Country - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jonathan-goes-country-cd/633087.p?id=96637&skuId=633087&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=633087', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6330\\/633087_sa.jpg\"}', 'upc' => '011661902428', 'provider' => 'bestbuy'],\n ['name' => \"Having a Party with Jonathan Richman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/having-a-party-with-jonathan-richman-cd/633096.p?id=96633&skuId=633096&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=633096', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0633\\/0633096_sa.jpg\"}', 'upc' => '011661902626', 'provider' => 'bestbuy'],\n ['name' => \"The Bassman of the Acropolis - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-bassman-of-the-acropolis-cd-various/636805.p?id=181354&skuId=636805&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=636805', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6368\\/636805.jpg\"}', 'upc' => '054291900426', 'provider' => 'bestbuy'],\n ['name' => \"The Folkways Years, 1944-1963 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-folkways-years-1944-1963-cd/637074.p?id=101457&skuId=637074&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=637074', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6370\\/637074_sa.jpg\"}', 'upc' => '093074003329', 'provider' => 'bestbuy'],\n ['name' => \"Brownie McGhee and Sonny Terry Sing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brownie-mcghee-and-sonny-terry-sing-cd/637083.p?id=101464&skuId=637083&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=637083', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6370\\/637083_sa.jpg\"}', 'upc' => '093074001127', 'provider' => 'bestbuy'],\n ['name' => \"Cowboy Songs from Folkways - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cowboy-songs-from-folkways-various-cd/637109.p?id=79040&skuId=637109&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=637109', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6371\\/637109.jpg\"}', 'upc' => '093074004326', 'provider' => 'bestbuy'],\n ['name' => \"The First Four Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-first-four-years-cd/637751.p?id=74809&skuId=637751&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=637751', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6377\\/637751_sa.jpg\"}', 'upc' => '018861002125', 'provider' => 'bestbuy'],\n ['name' => \"If'n - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ifn-cd/637804.p?id=82252&skuId=637804&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=637804', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6378\\/637804_sa.jpg\"}', 'upc' => '018861011523', 'provider' => 'bestbuy'],\n ['name' => \"New Day Rising - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-day-rising-cd/637822.p?id=85977&skuId=637822&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=637822', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6378\\/637822_sa.jpg\"}', 'upc' => '018861003122', 'provider' => 'bestbuy'],\n ['name' => \"Some Gave All - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/some-gave-all-cd/638091.p?id=79521&skuId=638091&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=638091', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0638\\/0638091_sa.jpg\"}', 'upc' => '731451063527', 'provider' => 'bestbuy'],\n ['name' => \"The Sky Is Falling, and I Want My Mommy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-sky-is-falling-and-i-want-my-mommy-cd/638411.p?id=74575&skuId=638411&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=638411', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6384\\/638411_sa.jpg\"}', 'upc' => '721616008524', 'provider' => 'bestbuy'],\n ['name' => \"Family Groove [UK Bonus Track] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/family-groove-uk-bonus-track-cd/638554.p?id=93092&skuId=638554&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=638554', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0638\\/0638554_sa.jpg\"}', 'upc' => '075021538429', 'provider' => 'bestbuy'],\n ['name' => \"Daily Operation [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/daily-operation-pa-cd/638778.p?id=83234&skuId=638778&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=638778', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6387\\/638778_sa.jpg\"}', 'upc' => '094632191021', 'provider' => 'bestbuy'],\n ['name' => \"Never Been Rocked Enough - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/never-been-rocked-enough-cd/638821.p?id=91064&skuId=638821&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=638821', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6388\\/638821.jpg\"}', 'upc' => '715187752122', 'provider' => 'bestbuy'],\n ['name' => \"A Week in Hawaii, Vol. 7: Tropical Surf - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-week-in-hawaii-vol-7-tropical-surf-cd/639018.p?id=81618&skuId=639018&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=639018', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6390\\/639018.jpg\"}', 'upc' => '014431006920', 'provider' => 'bestbuy'],\n ['name' => \"A Week in Hawaii, Vol. 8: Midnight Rainshower - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-week-in-hawaii-vol-8-midnight-rainshower-cd/639027.p?id=81619&skuId=639027&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=639027', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6390\\/639027.jpg\"}', 'upc' => '014431007026', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Fattburger - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-fattburger-cd/639232.p?id=66213&skuId=639232&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=639232', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6392\\/639232.jpg\"}', 'upc' => '077779816422', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Duke Ellington [Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-duke-ellington-capitol-cd/639250.p?id=65928&skuId=639250&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=639250', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0639\\/0639250_sa.jpg\"}', 'upc' => '715187750524', 'provider' => 'bestbuy'],\n ['name' => \"Revenge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/revenge-cd/639278.p?id=88183&skuId=639278&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=639278', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6392\\/639278.jpg\"}', 'upc' => '042284803724', 'provider' => 'bestbuy'],\n ['name' => \"Warm, In Your Coat - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/warm-in-your-coat-cd/639376.p?id=97258&skuId=639376&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=639376', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6393\\/639376.jpg\"}', 'upc' => '074644796421', 'provider' => 'bestbuy'],\n ['name' => \"Worlds Away - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/worlds-away-cd/639615.p?id=94258&skuId=639615&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=639615', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0639\\/0639615_sa.jpg\"}', 'upc' => '075021319820', 'provider' => 'bestbuy'],\n ['name' => \"Boats, Beaches, Bars & Ballads [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 48.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/boats-beaches-bars-ballads-box-cd/639811.p?id=76261&skuId=639811&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=639811', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0639\\/0639811_sa.jpg\"}', 'upc' => '008811061326', 'provider' => 'bestbuy'],\n ['name' => \"Best Of - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-cd/640248.p?id=2486406&skuId=640248&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=640248', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6402\\/640248_sa.jpg\"}', 'upc' => '078221834827', 'provider' => 'bestbuy'],\n ['name' => \"Funkentelechy Vs. The Placebo Syndrome - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/funkentelechy-vs-the-placebo-syndrome-cd/641256.p?id=94418&skuId=641256&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=641256', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6412\\/641256_sa.jpg\"}', 'upc' => '042282450128', 'provider' => 'bestbuy'],\n ['name' => \"Motor Booty Affair - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/motor-booty-affair-cd/641265.p?id=94421&skuId=641265&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=641265', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0641\\/0641265_sa.jpg\"}', 'upc' => '042284262125', 'provider' => 'bestbuy'],\n ['name' => \"Hot Dawg - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hot-dawg-cd/641292.p?id=84293&skuId=641292&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=641292', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6412\\/641292_sa.jpg\"}', 'upc' => '075021329225', 'provider' => 'bestbuy'],\n ['name' => \"Sharp - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sharp-cd/641309.p?id=104442&skuId=641309&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=641309', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0641\\/0641309_sa.jpg\"}', 'upc' => '042283273320', 'provider' => 'bestbuy'],\n ['name' => \"High 'N' Dry - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/high-n-dry-cd/641586.p?id=80092&skuId=641586&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=641586', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0641\\/0641586_sa.jpg\"}', 'upc' => '731451235627', 'provider' => 'bestbuy'],\n ['name' => \"The Ritual - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-ritual-cd/641602.p?id=101488&skuId=641602&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=641602', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6416\\/641602.jpg\"}', 'upc' => '075678239229', 'provider' => 'bestbuy'],\n ['name' => \"Levelling the Land - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/levelling-the-land-cd/641899.p?id=89107&skuId=641899&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=641899', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0641\\/0641899_sa.jpg\"}', 'upc' => '075596132527', 'provider' => 'bestbuy'],\n ['name' => \"Warren Zevon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/warren-zevon-cd/641924.p?id=105308&skuId=641924&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=641924', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6419\\/641924_sa.jpg\"}', 'upc' => '075596060820', 'provider' => 'bestbuy'],\n ['name' => \"Grace in Gravity - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/grace-in-gravity-cd/642059.p?id=100529&skuId=642059&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=642059', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6420\\/642059_sa.jpg\"}', 'upc' => '075596132121', 'provider' => 'bestbuy'],\n ['name' => \"Great Mass In C - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/great-mass-in-c-cd/643227.p?id=1675855&skuId=643227&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=643227', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0643\\/0643227_sa.jpg\"}', 'upc' => '028943179126', 'provider' => 'bestbuy'],\n ['name' => \"20 Below [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/20-below-pa-cd/643405.p?id=105373&skuId=643405&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=643405', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6434\\/643405.jpg\"}', 'upc' => '019011810928', 'provider' => 'bestbuy'],\n ['name' => \"Virus 100: Dead Kennedy Covers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/virus-100-dead-kennedy-covers-cd/643520.p?id=79990&skuId=643520&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=643520', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6435\\/643520_sa.jpg\"}', 'upc' => '721616010022', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Turbowire Radio Harness Adapter for Select Jeep Vehicles\", 'description_short' => \"Compatible with select Jeep vehicles; ABS and vinyl construction; colored-coded wires\", 'description_long' => \"Compatible with select Jeep vehicles; ABS and vinyl construction; colored-coded wires\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-turbowire-radio-harness-adapter-for-select-jeep-vehicles/643600.p?id=1183160746436&skuId=643600&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=643600', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6436\\/643600_rc.jpg\"}', 'upc' => '086429003341', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Speaker Connector for Select Volkswagen Vehicles\", 'description_short' => \"Compatible with select Volkswagen vehicles; connects a speaker to the vehicle&#039;s stereo; easy installation\", 'description_long' => \"Compatible with select Volkswagen vehicles; connects a speaker to the vehicle&#039;s stereo; easy installation\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-speaker-connector-for-select-volkswagen-vehicles/643628.p?id=1183160746500&skuId=643628&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=643628', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6436\\/643628_rc.jpg\"}', 'upc' => '086429113255', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Speaker Connector for Select Mitsubishi and Chrysler Vehicles\", 'description_short' => \"From our expanded online assortment; compatible with 1987 - 1993 Mitsubishi and Chrysler vehicles; color-coded wires\", 'description_long' => \"From our expanded online assortment; compatible with 1987 - 1993 Mitsubishi and Chrysler vehicles; color-coded wires\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-speaker-connector-for-select-mitsubishi-and-chrysler-vehicles/643691.p?id=1218019642861&skuId=643691&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=643691', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6436\\/643691_rc.jpg\"}', 'upc' => '086429002528', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Wiring Harness for Most 1990-2001 Mazda Vehicles - Multicolored\", 'description_short' => \"Compatible with most 1990-2001 Mazda vehicles; connects an aftermarket radio to a vehicle&#039;s harness\", 'description_long' => \"Compatible with most 1990-2001 Mazda vehicles; connects an aftermarket radio to a vehicle&#039;s harness\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-wiring-harness-for-most-1990-2001-mazda-vehicles-multicolored/643717.p?id=1142291937563&skuId=643717&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=643717', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6437\\/643717_rc.jpg\"}', 'upc' => '086429002627', 'provider' => 'bestbuy'],\n ['name' => \"Tossing Seeds (Singles 89-91) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tossing-seeds-singles-89-91-cd/643771.p?id=100864&skuId=643771&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=643771', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6437\\/643771_sa.jpg\"}', 'upc' => '036172932023', 'provider' => 'bestbuy'],\n ['name' => \"Slide Rule - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/slide-rule-cd/644084.p?id=80842&skuId=644084&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=644084', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0644\\/0644084_sa.jpg\"}', 'upc' => '015891379722', 'provider' => 'bestbuy'],\n ['name' => \"Remembering Merle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/remembering-merle-cd/644093.p?id=103620&skuId=644093&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=644093', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0644\\/0644093_sa.jpg\"}', 'upc' => '015891380025', 'provider' => 'bestbuy'],\n ['name' => \"Living Chicago Blues, Vol. 1 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/living-chicago-blues-vol-1-cd-various/644397.p?id=75301&skuId=644397&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=644397', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6443\\/644397_sa.jpg\"}', 'upc' => '014551770121', 'provider' => 'bestbuy'],\n ['name' => \"Living Chicago Blues, Vol. 2 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/living-chicago-blues-vol-2-cd-various/644404.p?id=75302&skuId=644404&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=644404', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6444\\/644404.jpg\"}', 'upc' => '014551770220', 'provider' => 'bestbuy'],\n ['name' => \"Living Chicago Blues, Vol. 3 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/living-chicago-blues-vol-3-cd-various/644413.p?id=75303&skuId=644413&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=644413', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6444\\/644413.jpg\"}', 'upc' => '014551770329', 'provider' => 'bestbuy'],\n ['name' => \"Living Chicago Blues, Vol. 4 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/living-chicago-blues-vol-4-cd-various/644422.p?id=75304&skuId=644422&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=644422', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6444\\/644422.jpg\"}', 'upc' => '014551770428', 'provider' => 'bestbuy'],\n ['name' => \"Soul Finger - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/soul-finger-cd/644958.p?id=73925&skuId=644958&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=644958', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6449\\/644958_sa.jpg\"}', 'upc' => '081227029821', 'provider' => 'bestbuy'],\n ['name' => \"Day Parts: Dinner Gift Pack - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/day-parts-dinner-gift-pack-cd-various/645298.p?id=79899&skuId=645298&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=645298', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0645\\/0645298_sa.jpg\"}', 'upc' => '012805010122', 'provider' => 'bestbuy'],\n ['name' => \"Rock 'n 70s - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rock-n-70s-cd-various/645341.p?id=98404&skuId=645341&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=645341', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6453\\/645341_sa.jpg\"}', 'upc' => '079892113624', 'provider' => 'bestbuy'],\n ['name' => \"A World Out of Time: Henry Kaiser & David... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-world-out-of-time-henry-kaiser-david-cd/645573.p?id=90113&skuId=645573&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=645573', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6455\\/645573.jpg\"}', 'upc' => '016351644121', 'provider' => 'bestbuy'],\n ['name' => \"I Ain't Gonna Be Worried No More 1929-1941 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-aint-gonna-be-worried-no-more-1929-1941-cd/645635.p?id=81698&skuId=645635&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=645635', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0645\\/0645635_sa.jpg\"}', 'upc' => '016351020420', 'provider' => 'bestbuy'],\n ['name' => \"Out of the Cradle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/out-of-the-cradle-cd/645680.p?id=76209&skuId=645680&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=645680', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6456\\/645680_sa.jpg\"}', 'upc' => '075992618229', 'provider' => 'bestbuy'],\n ['name' => \"Kiko - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kiko-cd/645831.p?id=89692&skuId=645831&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=645831', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6458\\/645831_sa.jpg\"}', 'upc' => '075992678629', 'provider' => 'bestbuy'],\n ['name' => \"Fabulous Disaster - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fabulous-disaster-cd/646251.p?id=81813&skuId=646251&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=646251', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6462\\/646251_sa.jpg\"}', 'upc' => '088561200121', 'provider' => 'bestbuy'],\n ['name' => \"Wonderful - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wonderful-cd/646288.p?id=77826&skuId=646288&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=646288', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0646\\/0646288_sa.jpg\"}', 'upc' => '088561804824', 'provider' => 'bestbuy'],\n ['name' => \"Radio Free Albemuth - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/radio-free-albemuth-cd/646297.p?id=84706&skuId=646297&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=646297', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6462\\/646297_sa.jpg\"}', 'upc' => '088561820923', 'provider' => 'bestbuy'],\n ['name' => \"Chicago Fire - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chicago-fire-cd/647125.p?id=98185&skuId=647125&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=647125', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0647\\/0647125_sa.jpg\"}', 'upc' => '014551472025', 'provider' => 'bestbuy'],\n ['name' => \"Short Fuse Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/short-fuse-blues-cd/647143.p?id=85476&skuId=647143&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=647143', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6471\\/647143_sa.jpg\"}', 'upc' => '014551480723', 'provider' => 'bestbuy'],\n ['name' => \"Acoustic - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/acoustic-cd/647223.p?id=81766&skuId=647223&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=647223', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6472\\/647223_sa.jpg\"}', 'upc' => '075678239526', 'provider' => 'bestbuy'],\n ['name' => \"Men at Large - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/men-at-large-cd/647241.p?id=91411&skuId=647241&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=647241', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0647\\/0647241_sa.jpg\"}', 'upc' => '075679215925', 'provider' => 'bestbuy'],\n ['name' => \"Sir John Alot of Merrie Englandes Musyk Thyng... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sir-john-alot-of-merrie-englandes-musyk-thyng-cd/647492.p?id=96435&skuId=647492&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=647492', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0647\\/0647492_sa.jpg\"}', 'upc' => '016351972125', 'provider' => 'bestbuy'],\n ['name' => \"The Lady and the Unicorn [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-lady-and-the-unicorn-remaster-cd/647508.p?id=96436&skuId=647508&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=647508', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6475\\/647508.jpg\"}', 'upc' => '016351972224', 'provider' => 'bestbuy'],\n ['name' => \"Skin - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/skin-cd/647759.p?id=89174&skuId=647759&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=647759', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0647\\/0647759_sa.jpg\"}', 'upc' => '075596131827', 'provider' => 'bestbuy'],\n ['name' => \"Black and Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/black-and-blue-cd/647946.p?id=67225&skuId=647946&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=647946', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6479\\/647946_sa.jpg\"}', 'upc' => '013431448228', 'provider' => 'bestbuy'],\n ['name' => \"Are You Sure Hank Done It This Way? - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/are-you-sure-hank-done-it-this-way-cd/648197.p?id=1981933&skuId=648197&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=648197', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '078636115627', 'provider' => 'bestbuy'],\n ['name' => \"All American Country - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-american-country-cd/648295.p?id=93039&skuId=648295&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=648295', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6482\\/648295.jpg\"}', 'upc' => '079892156225', 'provider' => 'bestbuy'],\n ['name' => \"Just a Closer Walk with Thee - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/just-a-closer-walk-with-thee-cd/648428.p?id=78076&skuId=648428&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=648428', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6484\\/648428_sa.jpg\"}', 'upc' => '076742049225', 'provider' => 'bestbuy'],\n ['name' => \"The Green Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-green-album-cd/648525.p?id=2068366&skuId=648525&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=648525', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6485\\/648525_sa.jpg\"}', 'upc' => '074644822427', 'provider' => 'bestbuy'],\n ['name' => \"ELO Classics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/elo-classics-cd/648918.p?id=81426&skuId=648918&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=648918', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6489\\/648918.jpg\"}', 'upc' => '079892158328', 'provider' => 'bestbuy'],\n ['name' => \"It's Your Thing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/its-your-thing-cd/648963.p?id=86408&skuId=648963&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=648963', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6489\\/648963_sa.jpg\"}', 'upc' => '079892218725', 'provider' => 'bestbuy'],\n ['name' => \"Let's Groove [Sony] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lets-groove-sony-cd/649025.p?id=81252&skuId=649025&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=649025', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0649\\/0649025_sa.jpg\"}', 'upc' => '079892175325', 'provider' => 'bestbuy'],\n ['name' => \"King of the Freight Train - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/king-of-the-freight-train-cd/649098.p?id=75668&skuId=649098&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=649098', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6490\\/649098.jpg\"}', 'upc' => '076742054427', 'provider' => 'bestbuy'],\n ['name' => \"Bill Cosby at His Best - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bill-cosby-at-his-best-cd/649141.p?id=78727&skuId=649141&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=649141', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0649\\/0649141_sa.jpg\"}', 'upc' => '076742067625', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Blues [MCA Special Products] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-blues-mca-special-products-cd-various/649187.p?id=75227&skuId=649187&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=649187', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0649\\/0649187_sa.jpg\"}', 'upc' => '076732202029', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Blind Boys - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-blind-boys-cd/649203.p?id=173256&skuId=649203&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=649203', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0649\\/0649203_sa.jpg\"}', 'upc' => '076742204723', 'provider' => 'bestbuy'],\n ['name' => \"Playing The Field - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/playing-the-field-cd/649285.p?id=94181&skuId=649285&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=649285', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0649\\/0649285_sa.jpg\"}', 'upc' => '079892263220', 'provider' => 'bestbuy'],\n ['name' => \"Burning Bright - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/burning-bright-cd/649294.p?id=81423&skuId=649294&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=649294', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0649\\/0649294_sa.jpg\"}', 'upc' => '079892263923', 'provider' => 'bestbuy'],\n ['name' => \"Seven Separate Fools - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/seven-separate-fools-cd/649310.p?id=101793&skuId=649310&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=649310', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6493\\/649310_sa.jpg\"}', 'upc' => '076743133923', 'provider' => 'bestbuy'],\n ['name' => \"People Like Us - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/people-like-us-cd/649329.p?id=90302&skuId=649329&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=649329', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6493\\/649329.jpg\"}', 'upc' => '076743134425', 'provider' => 'bestbuy'],\n ['name' => \"Naturally - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/naturally-cd/649542.p?id=101792&skuId=649542&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=649542', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0649\\/0649542_sa.jpg\"}', 'upc' => '076743135521', 'provider' => 'bestbuy'],\n ['name' => \"Crackin' Up! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crackin-up-cd/649579.p?id=100358&skuId=649579&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=649579', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6495\\/649579.jpg\"}', 'upc' => '076744202024', 'provider' => 'bestbuy'],\n ['name' => \"Spring Training - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spring-training-cd/650085.p?id=156038&skuId=650085&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=650085', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0650\\/0650085_sa.jpg\"}', 'upc' => '015891378923', 'provider' => 'bestbuy'],\n ['name' => \"13 Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/13-songs-cd/650334.p?id=2305044&skuId=650334&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=650334', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0650\\/0650334_sa.jpg\"}', 'upc' => '718750734020', 'provider' => 'bestbuy'],\n ['name' => \"Repeater - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/repeater-cd/650370.p?id=83057&skuId=650370&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=650370', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0650\\/0650370_sa.jpg\"}', 'upc' => '718750734822', 'provider' => 'bestbuy'],\n ['name' => \"Steady Diet of Nothing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/steady-diet-of-nothing-cd/650398.p?id=83059&skuId=650398&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=650398', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6503\\/650398_sa.jpg\"}', 'upc' => '718751796027', 'provider' => 'bestbuy'],\n ['name' => \"Legion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/legion-cd/650432.p?id=80111&skuId=650432&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=650432', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6504\\/650432_sa.jpg\"}', 'upc' => '016861919221', 'provider' => 'bestbuy'],\n ['name' => \"Leather Jackets - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/leather-jackets-cd/650478.p?id=87090&skuId=650478&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=650478', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0650\\/0650478_sa.jpg\"}', 'upc' => '008811049829', 'provider' => 'bestbuy'],\n ['name' => \"Kenton in Hi-Fi - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kenton-in-hi-fi-cd/650717.p?id=68183&skuId=650717&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=650717', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6507\\/650717_sa.jpg\"}', 'upc' => '077779845125', 'provider' => 'bestbuy'],\n ['name' => \"Who Feels it, Knows it - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/who-feels-it-knows-it-cd/650913.p?id=90631&skuId=650913&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=650913', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6509\\/650913_sa.jpg\"}', 'upc' => '016351430328', 'provider' => 'bestbuy'],\n ['name' => \"One More Goodnight Kiss - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-more-goodnight-kiss-cd/651253.p?id=75924&skuId=651253&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=651253', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6512\\/651253_sa.jpg\"}', 'upc' => '033651002321', 'provider' => 'bestbuy'],\n ['name' => \"44 & 66 [Bonus Track] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/44-66-bonus-track-cd/651271.p?id=75918&skuId=651271&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=651271', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0651\\/0651271_sa.jpg\"}', 'upc' => '033651000228', 'provider' => 'bestbuy'],\n ['name' => \"Blues & Roots - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-roots-cd/652136.p?id=176546&skuId=652136&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=652136', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6521\\/652136.jpg\"}', 'upc' => '075678133626', 'provider' => 'bestbuy'],\n ['name' => \"Art Blakey's Jazz Messengers with Thelonious Monk - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/art-blakeys-jazz-messengers-with-thelonious-monk-cd/652154.p?id=176540&skuId=652154&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=652154', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6521\\/652154_sa.jpg\"}', 'upc' => '075678133220', 'provider' => 'bestbuy'],\n ['name' => \"Change Everything - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/change-everything-cd/653858.p?id=80119&skuId=653858&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=653858', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6538\\/653858.jpg\"}', 'upc' => '075021538528', 'provider' => 'bestbuy'],\n ['name' => \"Re-Birth of the Cool - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/re-birth-of-the-cool-cd/654474.p?id=69463&skuId=654474&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=654474', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6544\\/654474.jpg\"}', 'upc' => '011105967921', 'provider' => 'bestbuy'],\n ['name' => \"Carl Stalling Project: Music from Warner... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/carl-stalling-project-music-from-warner-cd/654580.p?id=2069643&skuId=654580&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=654580', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0654\\/0654580_sa.jpg\"}', 'upc' => '075992602723', 'provider' => 'bestbuy'],\n ['name' => \"Elvis in Concert - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/elvis-in-concert-cd/654688.p?id=95341&skuId=654688&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=654688', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0654\\/0654688_sa.jpg\"}', 'upc' => '078635258721', 'provider' => 'bestbuy'],\n ['name' => \"Angel Dust [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/angel-dust-pa-cd/655115.p?id=81907&skuId=655115&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=655115', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6551\\/655115.jpg\"}', 'upc' => '075992678520', 'provider' => 'bestbuy'],\n ['name' => \"Symphony 6 \\\" Pathetique \\\" - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/symphony-6--pathetique--cd/655179.p?id=1675642&skuId=655179&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=655179', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6551\\/655179.jpg\"}', 'upc' => '095115844625', 'provider' => 'bestbuy'],\n ['name' => \"For the Record: The First 10 Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-the-record-the-first-10-years-cd/655286.p?id=78219&skuId=655286&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=655286', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6552\\/655286.jpg\"}', 'upc' => '074643958523', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Columbia] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-columbia-cd/655482.p?id=102442&skuId=655482&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=655482', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0655\\/0655482_sa.jpg\"}', 'upc' => '074643335522', 'provider' => 'bestbuy'],\n ['name' => \"A Lifetime of Song (1951-1982) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-lifetime-of-song-1951-1982-cd/655507.p?id=96804&skuId=655507&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=655507', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6555\\/655507_sa.jpg\"}', 'upc' => '074643887021', 'provider' => 'bestbuy'],\n ['name' => \"Something Else by the Kinks - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/something-else-by-the-kinks-cd/656310.p?id=88132&skuId=656310&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=656310', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6563\\/656310_sa.jpg\"}', 'upc' => '075992621625', 'provider' => 'bestbuy'],\n ['name' => \"The Village Green Preservation Society - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-village-green-preservation-society-cd/656329.p?id=88139&skuId=656329&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=656329', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6563\\/656329_sa.jpg\"}', 'upc' => '075992621724', 'provider' => 'bestbuy'],\n ['name' => \"Freedom to Fly - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/freedom-to-fly-cd/656882.p?id=90051&skuId=656882&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=656882', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0656\\/0656882_sa.jpg\"}', 'upc' => '026245105829', 'provider' => 'bestbuy'],\n ['name' => \"Ultimate Bass Trax, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ultimate-bass-trax-vol-1-cd/657088.p?id=155180&skuId=657088&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=657088', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6570\\/657088_sa.jpg\"}', 'upc' => '054291881824', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Johnnie Taylor on Malaco, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-johnnie-taylor-on-malaco-vol-1-cd/657122.p?id=157384&skuId=657122&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=657122', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6571\\/657122_sa.jpg\"}', 'upc' => '048021746323', 'provider' => 'bestbuy'],\n ['name' => \"Nothing Without You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nothing-without-you-cd/657186.p?id=2403044&skuId=657186&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=657186', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0657\\/0657186_sa.jpg\"}', 'upc' => '013431451525', 'provider' => 'bestbuy'],\n ['name' => \"TV Favorites - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tv-favorites-cd/657346.p?id=155979&skuId=657346&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=657346', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6573\\/657346_sa.jpg\"}', 'upc' => '014921300620', 'provider' => 'bestbuy'],\n ['name' => \"Echoes of the Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/echoes-of-the-night-cd/657907.p?id=1398183&skuId=657907&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=657907', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6579\\/657907_sa.jpg\"}', 'upc' => '096507714526', 'provider' => 'bestbuy'],\n ['name' => \"Diamonds in the Rough - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/diamonds-in-the-rough-cd/658069.p?id=95513&skuId=658069&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=658069', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6580\\/658069_sa.jpg\"}', 'upc' => '075678142123', 'provider' => 'bestbuy'],\n ['name' => \"Todd Rundgren's Utopia - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/todd-rundgrens-utopia-cd/658238.p?id=97564&skuId=658238&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=658238', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0658\\/0658238_sa.jpg\"}', 'upc' => '081227086527', 'provider' => 'bestbuy'],\n ['name' => \"Secret Combination - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/secret-combination-cd/658452.p?id=79119&skuId=658452&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=658452', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6584\\/658452_sa.jpg\"}', 'upc' => '075992354127', 'provider' => 'bestbuy'],\n ['name' => \"Back to Basics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/back-to-basics-cd/658470.p?id=93261&skuId=658470&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=658470', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6584\\/658470_sa.jpg\"}', 'upc' => '720642447024', 'provider' => 'bestbuy'],\n ['name' => \"Dreamer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dreamer-cd/658513.p?id=2107008&skuId=658513&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=658513', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6585\\/658513.jpg\"}', 'upc' => '011105967723', 'provider' => 'bestbuy'],\n ['name' => \"Sangoma - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sangoma-cd/658639.p?id=90235&skuId=658639&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=658639', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6586\\/658639_sa.jpg\"}', 'upc' => '075992567329', 'provider' => 'bestbuy'],\n ['name' => \"Second Edition - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/second-edition-cd/658648.p?id=95639&skuId=658648&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=658648', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0658\\/0658648_sa.jpg\"}', 'upc' => '075992328821', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Whitfield] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-whitfield-cd/658657.p?id=97327&skuId=658657&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=658657', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0658\\/0658657_sa.jpg\"}', 'upc' => '075992345729', 'provider' => 'bestbuy'],\n ['name' => \"Local Hero - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/local-hero-cd-original-soundtrack/658684.p?id=2517079&skuId=658684&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=658684', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0658\\/0658684_sa.jpg\"}', 'upc' => '075992382724', 'provider' => 'bestbuy'],\n ['name' => \"Spike & Co.: Do It a Cappella - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spike-co--do-it-a-cappella-cd-various/658693.p?id=80660&skuId=658693&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=658693', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0658\\/0658693_sa.jpg\"}', 'upc' => '075596095327', 'provider' => 'bestbuy'],\n ['name' => \"The Music Man [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-music-man-original-soundtrack-cd-original-soundtrack/658719.p?id=92683&skuId=658719&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=658719', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0658\\/0658719_sa.jpg\"}', 'upc' => '075992715829', 'provider' => 'bestbuy'],\n ['name' => \"Jerry Garcia/David Grisman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jerry-garcia-david-grisman-cd/659068.p?id=83264&skuId=659068&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=659068', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6590\\/659068.jpg\"}', 'upc' => '715949100222', 'provider' => 'bestbuy'],\n ['name' => \"Live Live Ju Ju - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-live-ju-ju-cd/659264.p?id=2444204&skuId=659264&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=659264', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0659\\/0659264_sa.jpg\"}', 'upc' => '014431004728', 'provider' => 'bestbuy'],\n ['name' => \"Official Version - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/official-version-cd/659399.p?id=83030&skuId=659399&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=659399', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0659\\/0659399_sa.jpg\"}', 'upc' => '074645240527', 'provider' => 'bestbuy'],\n ['name' => \"Backcatalogue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/backcatalogue-cd/659415.p?id=83026&skuId=659415&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=659415', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0659\\/0659415_sa.jpg\"}', 'upc' => '074645240725', 'provider' => 'bestbuy'],\n ['name' => \"Vane - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vane-cd/659647.p?id=128198&skuId=659647&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=659647', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6596\\/659647.jpg\"}', 'upc' => '033651004820', 'provider' => 'bestbuy'],\n ['name' => \"King of the Bayous - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/king-of-the-bayous-cd/660216.p?id=77350&skuId=660216&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=660216', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6602\\/660216.jpg\"}', 'upc' => '096297033920', 'provider' => 'bestbuy'],\n ['name' => \"Ward of the State - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ward-of-the-state-cd/660305.p?id=3183459&skuId=660305&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=660305', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6603\\/660305.jpg\"}', 'upc' => '747367010029', 'provider' => 'bestbuy'],\n ['name' => \"The Pavilion of Dreams - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-pavilion-of-dreams-cd/660573.p?id=76239&skuId=660573&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=660573', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0660\\/0660573_sa.jpg\"}', 'upc' => '017046156622', 'provider' => 'bestbuy'],\n ['name' => \"Live at El Morocco - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-el-morocco-cd/660840.p?id=64058&skuId=660840&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=660840', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0660\\/0660840_sa.jpg\"}', 'upc' => '089408331220', 'provider' => 'bestbuy'],\n ['name' => \"Mustache Ride - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mustache-ride-cd/660886.p?id=82685&skuId=660886&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=660886', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6608\\/660886.jpg\"}', 'upc' => '038161900228', 'provider' => 'bestbuy'],\n ['name' => \"Legacy of Brutality [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/legacy-of-brutality-pa-cd/660895.p?id=91879&skuId=660895&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=660895', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0660\\/0660895_sa.jpg\"}', 'upc' => '017046190626', 'provider' => 'bestbuy'],\n ['name' => \"Infinity Within - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/infinity-within-cd/661000.p?id=80044&skuId=661000&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=661000', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6610\\/661000_sa.jpg\"}', 'upc' => '075596131322', 'provider' => 'bestbuy'],\n ['name' => \"World Falling Down - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/world-falling-down-cd/661046.p?id=2310078&skuId=661046&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=661046', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6610\\/661046_sa.jpg\"}', 'upc' => '075992689427', 'provider' => 'bestbuy'],\n ['name' => \"Sister Act - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sister-act-cd-original-soundtrack/661536.p?id=98958&skuId=661536&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=661536', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0661\\/0661536_sa.jpg\"}', 'upc' => '720616133427', 'provider' => 'bestbuy'],\n ['name' => \"Goin' Back to New Orleans - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/goin-back-to-new-orleans-cd/661741.p?id=80884&skuId=661741&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=661741', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0661\\/0661741_sa.jpg\"}', 'upc' => '075992694025', 'provider' => 'bestbuy'],\n ['name' => \"Compact Disc EP Collection [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 149.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/compact-disc-ep-collection-box-cd/661803.p?id=74196&skuId=661803&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=661803', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6618\\/661803.jpg\"}', 'upc' => '077771585227', 'provider' => 'bestbuy'],\n ['name' => \"Get in Touch with Yourself - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/get-in-touch-with-yourself-cd/661901.p?id=101015&skuId=661901&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=661901', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0661\\/0661901_sa.jpg\"}', 'upc' => '731451224126', 'provider' => 'bestbuy'],\n ['name' => \"An Anthology - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/an-anthology-cd/662027.p?id=2472946&skuId=662027&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=662027', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6620\\/662027.jpg\"}', 'upc' => '731451243127', 'provider' => 'bestbuy'],\n ['name' => \"Love Power Peace - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-power-peace-cd/662161.p?id=75958&skuId=662161&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=662161', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0662\\/0662161_sa.jpg\"}', 'upc' => '731451338922', 'provider' => 'bestbuy'],\n ['name' => \"Extras (Collection Of Extras) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/extras-collection-of-extras-cd/662189.p?id=86599&skuId=662189&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=662189', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0662\\/0662189_sa.jpg\"}', 'upc' => '731451317729', 'provider' => 'bestbuy'],\n ['name' => \"Jazz 'Round Midnight - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazz-round-midnight-cd/662223.p?id=69957&skuId=662223&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=662223', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6622\\/662223.jpg\"}', 'upc' => '731451346026', 'provider' => 'bestbuy'],\n ['name' => \"Ya Rollin' Doo Doo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ya-rollin-doo-doo-cd/662820.p?id=181380&skuId=662820&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=662820', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6628\\/662820.jpg\"}', 'upc' => '026656273025', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/662937.p?id=103809&skuId=662937&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=662937', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6629\\/662937_sa.jpg\"}', 'upc' => '715187755529', 'provider' => 'bestbuy'],\n ['name' => \"Heartbreaker - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heartbreaker-cd/662982.p?id=82932&skuId=662982&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=662982', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0662\\/0662982_sa.jpg\"}', 'upc' => '042284236126', 'provider' => 'bestbuy'],\n ['name' => \"Love to Love You Baby - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-to-love-you-baby-cd/662991.p?id=100791&skuId=662991&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=662991', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6629\\/662991_sa.jpg\"}', 'upc' => '042282279224', 'provider' => 'bestbuy'],\n ['name' => \"A Love Trilogy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-love-trilogy-cd/663008.p?id=100779&skuId=663008&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=663008', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6630\\/663008_sa.jpg\"}', 'upc' => '042282279323', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Dramatics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-dramatics-cd/663106.p?id=80919&skuId=663106&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=663106', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0663\\/0663106_sa.jpg\"}', 'upc' => '025218300322', 'provider' => 'bestbuy'],\n ['name' => \"The Isaac Hayes Movement - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-isaac-hayes-movement-cd/663133.p?id=85068&skuId=663133&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=663133', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0663\\/0663133_sa.jpg\"}', 'upc' => '025218412926', 'provider' => 'bestbuy'],\n ['name' => \"DJ Magic Mike and the Royal Posse - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dj-magic-mike-and-the-royal-posse-cd/663188.p?id=90161&skuId=663188&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=663188', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6631\\/663188.jpg\"}', 'upc' => '021257940123', 'provider' => 'bestbuy'],\n ['name' => \"Twenty Degrees Below Zero [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/twenty-degrees-below-zero-pa-cd/663419.p?id=80646&skuId=663419&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=663419', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6634\\/663419_sa.jpg\"}', 'upc' => '021257941229', 'provider' => 'bestbuy'],\n ['name' => \"Bobby McFerrin - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bobby-mcferrin-cd/663794.p?id=68915&skuId=663794&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=663794', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0663\\/0663794_sa.jpg\"}', 'upc' => '075596002325', 'provider' => 'bestbuy'],\n ['name' => \"Thug - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thug-cd/664524.p?id=99394&skuId=664524&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=664524', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6645\\/664524.jpg\"}', 'upc' => '075679214126', 'provider' => 'bestbuy'],\n ['name' => \"Meantime - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/meantime-cd/664551.p?id=85200&skuId=664551&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=664551', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6645\\/664551_sa.jpg\"}', 'upc' => '606949216221', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [CEMA Special Markets] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cema-special-markets-cd/664588.p?id=94784&skuId=664588&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=664588', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0664\\/0664588_sa.jpg\"}', 'upc' => '077775739923', 'provider' => 'bestbuy'],\n ['name' => \"One Day at a Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-day-at-a-time-cd/664604.p?id=169066&skuId=664604&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=664604', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0664\\/0664604_sa.jpg\"}', 'upc' => '077775724820', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits [Capital] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-capital-cd/664613.p?id=82108&skuId=664613&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=664613', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0664\\/0664613_sa.jpg\"}', 'upc' => '077775740325', 'provider' => 'bestbuy'],\n ['name' => \"French Kiss - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/french-kiss-cd/664757.p?id=156546&skuId=664757&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=664757', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6647\\/664757_sa.jpg\"}', 'upc' => '077775764826', 'provider' => 'bestbuy'],\n ['name' => \"Scottish Tranquility - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/scottish-tranquility-cd/665220.p?id=78803&skuId=665220&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=665220', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6652\\/665220_sa.jpg\"}', 'upc' => '016351530929', 'provider' => 'bestbuy'],\n ['name' => \"Method to the Madness - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/method-to-the-madness-cd/665355.p?id=87857&skuId=665355&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=665355', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6653\\/665355.jpg\"}', 'upc' => '074644732221', 'provider' => 'bestbuy'],\n ['name' => \"The Very Best of Eek-A-Mouse - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-very-best-of-eek-a-mouse-cd/665417.p?id=81346&skuId=665417&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=665417', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6654\\/665417.jpg\"}', 'upc' => '016351480125', 'provider' => 'bestbuy'],\n ['name' => \"Doctor Hook - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/doctor-hook-cd/665499.p?id=80880&skuId=665499&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=665499', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0665\\/0665499_sa.jpg\"}', 'upc' => '074643089821', 'provider' => 'bestbuy'],\n ['name' => \"Don't Sweat the Technique - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dont-sweat-the-technique-cd/665676.p?id=81663&skuId=665676&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=665676', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0665\\/0665676_sa.jpg\"}', 'upc' => '008811059422', 'provider' => 'bestbuy'],\n ['name' => \"Ready for the World - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ready-for-the-world-cd/665836.p?id=96141&skuId=665836&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=665836', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6658\\/665836_sa.jpg\"}', 'upc' => '076731116228', 'provider' => 'bestbuy'],\n ['name' => \"Wanted Dead or Alive - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wanted-dead-or-alive-cd/665890.p?id=76026&skuId=665890&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=665890', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0665\\/0665890_sa.jpg\"}', 'upc' => '074643271721', 'provider' => 'bestbuy'],\n ['name' => \"Phenobarb Bambalam - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/phenobarb-bambalam-cd/665934.p?id=78537&skuId=665934&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=665934', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6659\\/665934.jpg\"}', 'upc' => '016581718920', 'provider' => 'bestbuy'],\n ['name' => \"Hearts of Space: Universe Sampler 92 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hearts-of-space-universe-sampler-92-cd-various/665943.p?id=179523&skuId=665943&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=665943', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6659\\/665943.JPG\"}', 'upc' => '025041120128', 'provider' => 'bestbuy'],\n ['name' => \"Wings of a Dove - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wings-of-a-dove-cd/666265.p?id=79448&skuId=666265&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=666265', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0666\\/0666265_sa.jpg\"}', 'upc' => '016351439727', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Ladysmith Black Mambazo [Shanachie] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-ladysmith-black-mambazo-shanachie-cd/666292.p?id=88577&skuId=666292&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=666292', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6662\\/666292.jpg\"}', 'upc' => '016351439826', 'provider' => 'bestbuy'],\n ['name' => \"Pearl of Africa Reborn - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pearl-of-africa-reborn-cd/666354.p?id=97813&skuId=666354&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=666354', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0666\\/0666354_sa.jpg\"}', 'upc' => '016351650825', 'provider' => 'bestbuy'],\n ['name' => \"Lawrence of Arabia [Silva] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lawrence-of-arabia-silva-cd-original-soundtrack/666372.p?id=88821&skuId=666372&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=666372', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0666\\/0666372_sa.jpg\"}', 'upc' => '738572101022', 'provider' => 'bestbuy'],\n ['name' => \"Naturally - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/naturally-cd/666407.p?id=84268&skuId=666407&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=666407', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6664\\/666407_sa.jpg\"}', 'upc' => '016351441423', 'provider' => 'bestbuy'],\n ['name' => \"Early Classics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/early-classics-cd/666470.p?id=94661&skuId=666470&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=666470', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6664\\/666470_sa.jpg\"}', 'upc' => '016351797827', 'provider' => 'bestbuy'],\n ['name' => \"Bottleneck Guitar Trendsetters of the 1930s - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bottleneck-guitar-trendsetters-of-the-1930s-cd/666988.p?id=103749&skuId=666988&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=666988', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6669\\/666988_sa.jpg\"}', 'upc' => '016351014924', 'provider' => 'bestbuy'],\n ['name' => \"Please Warm My Weiner: Old Time Hokum Blues - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/please-warm-my-weiner-old-time-hokum-blues-cd-various/667068.p?id=95068&skuId=667068&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=667068', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0667\\/0667068_sa.jpg\"}', 'upc' => '016351014320', 'provider' => 'bestbuy'],\n ['name' => \"Amen - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/amen-cd/667282.p?id=87710&skuId=667282&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=667282', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6672\\/667282.jpg\"}', 'upc' => '016253991026', 'provider' => 'bestbuy'],\n ['name' => \"Soul Eyes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/soul-eyes-cd/667308.p?id=66194&skuId=667308&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=667308', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6673\\/667308.jpg\"}', 'upc' => '063757704720', 'provider' => 'bestbuy'],\n ['name' => \"Mardi Gras - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mardi-gras-cd/667656.p?id=244602&skuId=667656&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=667656', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6676\\/667656_sa.jpg\"}', 'upc' => '025218451826', 'provider' => 'bestbuy'],\n ['name' => \"Doo-Bop - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/doo-bop-cd/667941.p?id=65534&skuId=667941&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=667941', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0667\\/0667941_sa.jpg\"}', 'upc' => '075992693820', 'provider' => 'bestbuy'],\n ['name' => \"Disco Inferno - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/disco-inferno-cd/668138.p?id=102144&skuId=668138&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=668138', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0668\\/0668138_sa.jpg\"}', 'upc' => '075678223723', 'provider' => 'bestbuy'],\n ['name' => \"Come a Little Bit Closer: The Best of Jay &... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/come-a-little-bit-closer-the-best-of-jay-cd/668209.p?id=2389713&skuId=668209&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=668209', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0668\\/0668209_sa.jpg\"}', 'upc' => '077779344826', 'provider' => 'bestbuy'],\n ['name' => \"Voice of the Sparrow: The Very Best of Édith... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/voice-of-the-sparrow-the-very-best-of-edith-cd/668272.p?id=94896&skuId=668272&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=668272', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6682\\/668272_sa.jpg\"}', 'upc' => '077779663224', 'provider' => 'bestbuy'],\n ['name' => \"The Falcon and the Snowman - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-falcon-and-the-snowman-cd-original-soundtrack/668316.p?id=81932&skuId=668316&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=668316', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6683\\/668316.jpg\"}', 'upc' => '077774841122', 'provider' => 'bestbuy'],\n ['name' => \"Walk Don't Run : The Best of the Ventures - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/walk-dont-run--the-best-of-the-ventures-cd/668423.p?id=103097&skuId=668423&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=668423', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6684\\/668423.jpg\"}', 'upc' => '077779345120', 'provider' => 'bestbuy'],\n ['name' => \"Images and Words - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/images-and-words-cd/668557.p?id=80953&skuId=668557&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=668557', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0668\\/0668557_sa.jpg\"}', 'upc' => '075679214829', 'provider' => 'bestbuy'],\n ['name' => \"Firefall - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/firefall-cd/668575.p?id=82247&skuId=668575&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=668575', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6685\\/668575.jpg\"}', 'upc' => '081227037925', 'provider' => 'bestbuy'],\n ['name' => \"The Queen Alone - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-queen-alone-cd/668637.p?id=101712&skuId=668637&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=668637', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6686\\/668637.jpg\"}', 'upc' => '081227101527', 'provider' => 'bestbuy'],\n ['name' => \"Nubian M.O.B. - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nubian-m-o-b-cd/669084.p?id=93555&skuId=669084&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=669084', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0669\\/0669084_sa.jpg\"}', 'upc' => '075992689625', 'provider' => 'bestbuy'],\n ['name' => \"Ruff Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ruff-life-cd/669280.p?id=76088&skuId=669280&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=669280', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6692\\/669280.jpg\"}', 'upc' => '733686130029', 'provider' => 'bestbuy'],\n ['name' => \"The Hunger [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-hunger-original-soundtrack-cd-original-soundtrack/669752.p?id=1365895&skuId=669752&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=669752', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0669\\/0669752_sa.jpg\"}', 'upc' => '030206726121', 'provider' => 'bestbuy'],\n ['name' => \"Blue Velvet [Original Score] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-velvet-original-score-cd-original-soundtrack/670401.p?id=1366578&skuId=670401&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=670401', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6704\\/670401.jpg\"}', 'upc' => '030206727722', 'provider' => 'bestbuy'],\n ['name' => \"Mad Hatter - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mad-hatter-cd/670447.p?id=75483&skuId=670447&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=670447', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0670\\/0670447_sa.jpg\"}', 'upc' => '074645285320', 'provider' => 'bestbuy'],\n ['name' => \"Committed - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/committed-cd/670624.p?id=101610&skuId=670624&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=670624', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6706\\/670624.jpg\"}', 'upc' => '731451027925', 'provider' => 'bestbuy'],\n ['name' => \"20 More Explosive Fantastic Rockin' Mega... - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/20-more-explosive-fantastic-rockin-mega-various-cd/671160.p?id=102568&skuId=671160&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=671160', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0671\\/0671160_sa.jpg\"}', 'upc' => '727321634225', 'provider' => 'bestbuy'],\n ['name' => \"Live! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-cd/671874.p?id=83669&skuId=671874&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=671874', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6718\\/671874_sa.jpg\"}', 'upc' => '075596139021', 'provider' => 'bestbuy'],\n ['name' => \"Fire Up+ - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fire-up-cd/672187.p?id=97940&skuId=672187&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=672187', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6721\\/672187_sa.jpg\"}', 'upc' => '025218771122', 'provider' => 'bestbuy'],\n ['name' => \"Conversations - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/conversations-cd/672196.p?id=71193&skuId=672196&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=672196', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6721\\/672196.jpg\"}', 'upc' => '025218913027', 'provider' => 'bestbuy'],\n ['name' => \"Dry - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dry-cd/672267.p?id=95017&skuId=672267&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=672267', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6722\\/672267.jpg\"}', 'upc' => '016255500127', 'provider' => 'bestbuy'],\n ['name' => \"Virtuoso Live! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/virtuoso-live-cd/672285.p?id=69822&skuId=672285&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=672285', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0672\\/0672285_sa.jpg\"}', 'upc' => '025218094825', 'provider' => 'bestbuy'],\n ['name' => \"The Blues Don't Change - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-blues-dont-change-cd/672301.p?id=87898&skuId=672301&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=672301', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6723\\/672301_sa.jpg\"}', 'upc' => '025218857024', 'provider' => 'bestbuy'],\n ['name' => \"The Staple Swingers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-staple-swingers-cd/672329.p?id=100077&skuId=672329&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=672329', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6723\\/672329_sa.jpg\"}', 'upc' => '025218857321', 'provider' => 'bestbuy'],\n ['name' => \"Tribute to Billie Holiday - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tribute-to-billie-holiday-cd/672347.p?id=65042&skuId=672347&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=672347', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6723\\/672347.jpg\"}', 'upc' => '013431408123', 'provider' => 'bestbuy'],\n ['name' => \"Paper Moon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/paper-moon-cd/672365.p?id=3335018&skuId=672365&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=672365', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6723\\/672365.jpg\"}', 'upc' => '013431417828', 'provider' => 'bestbuy'],\n ['name' => \"It's My Way! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/its-my-way-cd/672392.p?id=97732&skuId=672392&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=672392', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0672\\/0672392_sa.jpg\"}', 'upc' => '015707914222', 'provider' => 'bestbuy'],\n ['name' => \"My Time After Awhile - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-time-after-awhile-cd/672436.p?id=84484&skuId=672436&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=672436', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6724\\/672436.jpg\"}', 'upc' => '015707004121', 'provider' => 'bestbuy'],\n ['name' => \"Taj's Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tajs-blues-cd/672695.p?id=90202&skuId=672695&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=672695', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0672\\/0672695_sa.jpg\"}', 'upc' => '074645246529', 'provider' => 'bestbuy'],\n ['name' => \"Father of the Delta Blues: The Complete 1965... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/father-of-the-delta-blues-the-complete-1965-cd/672891.p?id=85816&skuId=672891&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=672891', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6728\\/672891_sa.jpg\"}', 'upc' => '074644886726', 'provider' => 'bestbuy'],\n ['name' => \"Slanted and Enchanted - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/slanted-and-enchanted-cd/672908.p?id=2304920&skuId=672908&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=672908', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6729\\/672908_sa.jpg\"}', 'upc' => '744861003823', 'provider' => 'bestbuy'],\n ['name' => \"Stull [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stull-ep-cd/672980.p?id=102839&skuId=672980&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=672980', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0672\\/0672980_sa.jpg\"}', 'upc' => '036172078622', 'provider' => 'bestbuy'],\n ['name' => \"From the Soul - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/from-the-soul-cd/673300.p?id=68629&skuId=673300&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=673300', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0673\\/0673300_sa.jpg\"}', 'upc' => '077779863624', 'provider' => 'bestbuy'],\n ['name' => \"Branch to Branch - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/branch-to-branch-cd/673435.p?id=96204&skuId=673435&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=673435', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0673\\/0673435_sa.jpg\"}', 'upc' => '075679042521', 'provider' => 'bestbuy'],\n ['name' => \"Unlimited! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/unlimited-cd/673453.p?id=97161&skuId=673453&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=673453', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6734\\/673453.jpg\"}', 'upc' => '075992549622', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Professional Installer Series TurboKit\", 'description_short' => \"From our expanded online assortment; compatible with select Chevrolet, Geo and Suzuki vehicles; allows installation of an aftermarket radio; provision for a 1/4&quot; or 1/2&quot; DIN equalizer; mounts precisely to OEM radio mounting positions\", 'description_long' => \"From our expanded online assortment; compatible with select Chevrolet, Geo and Suzuki vehicles; allows installation of an aftermarket radio; provision for a 1/4&quot; or 1/2&quot; DIN equalizer; mounts precisely to OEM radio mounting positions\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-professional-installer-series-turbokit/673890.p?id=1118842643714&skuId=673890&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=673890', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9852\\/9852688_sa.jpg\"}', 'upc' => '086429003792', 'provider' => 'bestbuy'],\n ['name' => \"Because of You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/because-of-you-cd/674274.p?id=95942&skuId=674274&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=674274', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0674\\/0674274_sa.jpg\"}', 'upc' => '090368006325', 'provider' => 'bestbuy'],\n ['name' => \"Havana Cafe - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/havana-cafe-cd/674283.p?id=65435&skuId=674283&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=674283', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0674\\/0674283_sa.jpg\"}', 'upc' => '090368006028', 'provider' => 'bestbuy'],\n ['name' => \"New York Reunion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-york-reunion-cd/674292.p?id=1365938&skuId=674292&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=674292', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0674\\/0674292_sa.jpg\"}', 'upc' => '090368005120', 'provider' => 'bestbuy'],\n ['name' => \"Live at the Village Gate - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-the-village-gate-cd/674309.p?id=71360&skuId=674309&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=674309', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6743\\/674309.jpg\"}', 'upc' => '090368004925', 'provider' => 'bestbuy'],\n ['name' => \"Real Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/real-life-cd/674318.p?id=72208&skuId=674318&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=674318', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6743\\/674318.jpg\"}', 'upc' => '090368004727', 'provider' => 'bestbuy'],\n ['name' => \"My Blue Heaven - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-blue-heaven-cd/674327.p?id=70069&skuId=674327&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=674327', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0674\\/0674327_sa.jpg\"}', 'upc' => '090368003829', 'provider' => 'bestbuy'],\n ['name' => \"A Distortion of Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-distortion-of-love-cd/674354.p?id=63949&skuId=674354&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=674354', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0674\\/0674354_sa.jpg\"}', 'upc' => '731451223525', 'provider' => 'bestbuy'],\n ['name' => \"Secret Rooms - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/secret-rooms-cd/674746.p?id=2291994&skuId=674746&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=674746', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6747\\/674746.jpg\"}', 'upc' => '025041101523', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Vic Damone [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-vic-damone-curb-cd/674906.p?id=79660&skuId=674906&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=674906', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0674\\/0674906_sa.jpg\"}', 'upc' => '715187747623', 'provider' => 'bestbuy'],\n ['name' => \"Her Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/her-greatest-hits-cd/674942.p?id=76835&skuId=674942&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=674942', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6749\\/674942_sa.jpg\"}', 'upc' => '008811060626', 'provider' => 'bestbuy'],\n ['name' => \"Turn of the Decade 1989-90: Ben & Jerry's... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/turn-of-the-decade-1989-90-ben-jerrys-cd-various/675228.p?id=82577&skuId=675228&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=675228', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0675\\/0675228_sa.jpg\"}', 'upc' => '033651003625', 'provider' => 'bestbuy'],\n ['name' => \"Psalm 69: The Way to Succeed & The Way to... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/psalm-69-the-way-to-succeed-the-way-to-cd/675601.p?id=2389689&skuId=675601&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=675601', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6756\\/675601_sa.jpg\"}', 'upc' => '075992672726', 'provider' => 'bestbuy'],\n ['name' => \"Dirty - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dirty-cd/675870.p?id=99450&skuId=675870&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=675870', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6758\\/675870_sa.jpg\"}', 'upc' => '720642448526', 'provider' => 'bestbuy'],\n ['name' => \"Shorty the Pimp [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shorty-the-pimp-pa-cd/676076.p?id=101994&skuId=676076&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=676076', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0676\\/0676076_sa.jpg\"}', 'upc' => '012414146724', 'provider' => 'bestbuy'],\n ['name' => \"The New Zapp IV U - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-new-zapp-iv-u-cd/676290.p?id=105186&skuId=676290&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=676290', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0676\\/0676290_sa.jpg\"}', 'upc' => '075992532723', 'provider' => 'bestbuy'],\n ['name' => \"Lowrider Soundtrack Vol. 1 - CD - Various Remastered\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lowrider-soundtrack-vol-1-cd-various-remastered/676487.p?id=319204&skuId=676487&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=676487', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6764\\/676487_sa.jpg\"}', 'upc' => '720657101027', 'provider' => 'bestbuy'],\n ['name' => \"Lowrider Soundtrack 2 - CD - Various Remastered\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lowrider-soundtrack-2-cd-various-remastered/676539.p?id=2277003&skuId=676539&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=676539', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6765\\/676539_sa.jpg\"}', 'upc' => '720657102024', 'provider' => 'bestbuy'],\n ['name' => \"Lowrider Magazine Soundtrack Vol. 3 - CD - Various Remastered\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lowrider-magazine-soundtrack-vol-3-cd-various-remastered/676557.p?id=2294211&skuId=676557&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=676557', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6765\\/676557_sa.jpg\"}', 'upc' => '720657103021', 'provider' => 'bestbuy'],\n ['name' => \"Barcelona - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/barcelona-cd/676593.p?id=91452&skuId=676593&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=676593', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6765\\/676593_sa.jpg\"}', 'upc' => '720616136626', 'provider' => 'bestbuy'],\n ['name' => \"Partners - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/partners-cd/676717.p?id=86985&skuId=676717&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=676717', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6767\\/676717_sa.jpg\"}', 'upc' => '075992682220', 'provider' => 'bestbuy'],\n ['name' => \"Isn't It Romantic? - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/isnt-it-romantic-cd/676806.p?id=64754&skuId=676806&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=676806', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0676\\/0676806_sa.jpg\"}', 'upc' => '013431425229', 'provider' => 'bestbuy'],\n ['name' => \"What You See is What You Get - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/what-you-see-is-what-you-get-cd/676815.p?id=89271&skuId=676815&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=676815', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6768\\/676815.jpg\"}', 'upc' => '014551480822', 'provider' => 'bestbuy'],\n ['name' => \"Til Their Eyes Shine (The Lullaby Album)... - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/til-their-eyes-shine-the-lullaby-album-various-cd/676995.p?id=89907&skuId=676995&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=676995', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6769\\/676995.jpg\"}', 'upc' => '074645241227', 'provider' => 'bestbuy'],\n ['name' => \"The Last Emperor [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-last-emperor-original-soundtrack-cd-original-soundtrack/677333.p?id=88701&skuId=677333&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=677333', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6773\\/677333.jpg\"}', 'upc' => '077778602927', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Wiring Harness for Most 1987 and Later Toyota Scion Vehicles - Multicolored\", 'description_short' => \"Compatible with most 1987 and later Toyota Scion vehicles; connects an aftermarket radio to a vehicle&#039;s harness\", 'description_long' => \"Compatible with most 1987 and later Toyota Scion vehicles; connects an aftermarket radio to a vehicle&#039;s harness\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-wiring-harness-for-most-1987-and-later-toyota-scion-vehicles-multicolored/677379.p?id=1142292397025&skuId=677379&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=677379', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6773\\/677379_rc.jpg\"}', 'upc' => '086429002658', 'provider' => 'bestbuy'],\n ['name' => \"Outward Bound - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/outward-bound-cd/677547.p?id=2390257&skuId=677547&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=677547', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0677\\/0677547_sa.jpg\"}', 'upc' => '614223103228', 'provider' => 'bestbuy'],\n ['name' => \"Gig - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gig-cd/677752.p?id=77823&skuId=677752&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=677752', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6777\\/677752.jpg\"}', 'upc' => '088561106928', 'provider' => 'bestbuy'],\n ['name' => \"Ramblin' Jeffrey Lee - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ramblin-jeffrey-lee-cd/677912.p?id=105776&skuId=677912&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=677912', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0677\\/0677912_sa.jpg\"}', 'upc' => '021075112924', 'provider' => 'bestbuy'],\n ['name' => \"Kirya - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kirya-cd/678127.p?id=85084&skuId=678127&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=678127', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0678\\/0678127_sa.jpg\"}', 'upc' => '016351644329', 'provider' => 'bestbuy'],\n ['name' => \"Stop and Listen - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stop-and-listen-cd/678154.p?id=91900&skuId=678154&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=678154', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0678\\/0678154_sa.jpg\"}', 'upc' => '016351200624', 'provider' => 'bestbuy'],\n ['name' => \"Revolutionary Dream - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/revolutionary-dream-cd/678163.p?id=92353&skuId=678163&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=678163', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0678\\/0678163_sa.jpg\"}', 'upc' => '016351441621', 'provider' => 'bestbuy'],\n ['name' => \"After the Dance - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/after-the-dance-cd/678181.p?id=86719&skuId=678181&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=678181', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0678\\/0678181_sa.jpg\"}', 'upc' => '016351990624', 'provider' => 'bestbuy'],\n ['name' => \"Images - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/images-cd/678350.p?id=70505&skuId=678350&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=678350', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6783\\/678350_sa.jpg\"}', 'upc' => '077779949229', 'provider' => 'bestbuy'],\n ['name' => \"Strictly the Best, Vol. 5 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/strictly-the-best-vol-5-cd-various/678467.p?id=113690&skuId=678467&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=678467', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6784\\/678467_sa.jpg\"}', 'upc' => '054645122726', 'provider' => 'bestbuy'],\n ['name' => \"House of Pain [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/house-of-pain-pa-cd/678680.p?id=85807&skuId=678680&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=678680', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6786\\/678680.jpg\"}', 'upc' => '016998105627', 'provider' => 'bestbuy'],\n ['name' => \"What's the 411? - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/whats-the-411-cd/678706.p?id=75027&skuId=678706&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=678706', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0678\\/0678706_sa.jpg\"}', 'upc' => '008811068127', 'provider' => 'bestbuy'],\n ['name' => \"Buffy the Vampire Slayer [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/buffy-the-vampire-slayer-original-soundtrack-cd-original-soundtrack/678751.p?id=76285&skuId=678751&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=678751', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0678\\/0678751_sa.jpg\"}', 'upc' => '074645285429', 'provider' => 'bestbuy'],\n ['name' => \"Black Byrd - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/black-byrd-cd/679242.p?id=2443724&skuId=679242&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=679242', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0679\\/0679242_sa.jpg\"}', 'upc' => '077778446620', 'provider' => 'bestbuy'],\n ['name' => \"Looking Glass: A Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/looking-glass-a-collection-cd/679304.p?id=95642&skuId=679304&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=679304', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6793\\/679304.jpg\"}', 'upc' => '074644895926', 'provider' => 'bestbuy'],\n ['name' => \"So Alone - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/so-alone-cd/679698.p?id=101820&skuId=679698&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=679698', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6796\\/679698_sa.jpg\"}', 'upc' => '075992698221', 'provider' => 'bestbuy'],\n ['name' => \"MTV Unplugged - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/mtv-unplugged-cd/680597.p?id=77906&skuId=680597&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=680597', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0680\\/0680597_sa.jpg\"}', 'upc' => '093624502425', 'provider' => 'bestbuy'],\n ['name' => \"Gordon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gordon-cd/680702.p?id=73946&skuId=680702&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=680702', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0680\\/0680702_sa.jpg\"}', 'upc' => '075992695626', 'provider' => 'bestbuy'],\n ['name' => \"Ricochet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ricochet-cd/680748.p?id=91672&skuId=680748&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=680748', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6807\\/680748.jpg\"}', 'upc' => '075992699327', 'provider' => 'bestbuy'],\n ['name' => \"Real Live Sound - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/real-live-sound-cd/680944.p?id=72590&skuId=680944&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=680944', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6809\\/680944_sa.jpg\"}', 'upc' => '018777252928', 'provider' => 'bestbuy'],\n ['name' => \"Short Stories [Universal] [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/short-stories-universal-digdownload-cd/681257.p?id=87225&skuId=681257&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=681257', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6812\\/681257.jpg\"}', 'upc' => '042280002725', 'provider' => 'bestbuy'],\n ['name' => \"Manhattan Mambo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/manhattan-mambo-cd/682461.p?id=70517&skuId=682461&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=682461', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6824\\/682461_sa.jpg\"}', 'upc' => '089408332227', 'provider' => 'bestbuy'],\n ['name' => \"Haunted Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/haunted-heart-cd/682782.p?id=67067&skuId=682782&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=682782', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6827\\/682782_sa.jpg\"}', 'upc' => '731451307829', 'provider' => 'bestbuy'],\n ['name' => \"An Evening with Chick Corea & Herbie Hancock - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/an-evening-with-chick-corea-herbie-hancock-cd/682817.p?id=146242&skuId=682817&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=682817', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0682\\/0682817_sa.jpg\"}', 'upc' => '042283568020', 'provider' => 'bestbuy'],\n ['name' => \"Let It Ride - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/let-it-ride-cd/684584.p?id=290154&skuId=684584&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=684584', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0684\\/0684584_sa.jpg\"}', 'upc' => '747014400128', 'provider' => 'bestbuy'],\n ['name' => \"Three Dimensional - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/three-dimensional-cd/684762.p?id=64607&skuId=684762&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=684762', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6847\\/684762_sa.jpg\"}', 'upc' => '013431452027', 'provider' => 'bestbuy'],\n ['name' => \"Embrace - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/embrace-cd/685342.p?id=81504&skuId=685342&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=685342', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0685\\/0685342_sa.jpg\"}', 'upc' => '718750730022', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-vol-2-cd/686494.p?id=94215&skuId=686494&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=686494', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0686\\/0686494_sa.jpg\"}', 'upc' => '715187756823', 'provider' => 'bestbuy'],\n ['name' => \"Songs The Lord Taught Us - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/songs-the-lord-taught-us-cd/686653.p?id=79088&skuId=686653&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=686653', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0686\\/0686653_sa.jpg\"}', 'upc' => '044797000720', 'provider' => 'bestbuy'],\n ['name' => \"Four Sider - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/four-sider-cd/686813.p?id=91430&skuId=686813&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=686813', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0686\\/0686813_sa.jpg\"}', 'upc' => '075021601222', 'provider' => 'bestbuy'],\n ['name' => \"Dream a Little Dream - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dream-a-little-dream-cd-original-soundtrack/687108.p?id=80960&skuId=687108&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=687108', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6871\\/687108_sa.jpg\"}', 'upc' => '014166012524', 'provider' => 'bestbuy'],\n ['name' => \"Untouchables [Original Motion Picture... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/untouchables-original-motion-picture-cd-original-soundtrack/687297.p?id=102818&skuId=687297&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=687297', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0687\\/0687297_sa.jpg\"}', 'upc' => '075021390928', 'provider' => 'bestbuy'],\n ['name' => \"Storm at Sunup - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/storm-at-sunup-cd/687395.p?id=103007&skuId=687395&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=687395', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0687\\/0687395_sa.jpg\"}', 'upc' => '075021453326', 'provider' => 'bestbuy'],\n ['name' => \"In the Eye of the Storm - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-the-eye-of-the-storm-cd/687475.p?id=85465&skuId=687475&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=687475', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0687\\/0687475_sa.jpg\"}', 'upc' => '075021500426', 'provider' => 'bestbuy'],\n ['name' => \"Journey to the Centre of the Earth - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/journey-to-the-centre-of-the-earth-cd/687938.p?id=103337&skuId=687938&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=687938', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6879\\/687938.jpg\"}', 'upc' => '075021315624', 'provider' => 'bestbuy'],\n ['name' => \"The Tubes [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-tubes-pa-cd/687965.p?id=102427&skuId=687965&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=687965', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0687\\/0687965_sa.jpg\"}', 'upc' => '075021316126', 'provider' => 'bestbuy'],\n ['name' => \"Body Heat - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/body-heat-cd/688027.p?id=68070&skuId=688027&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=688027', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0688\\/0688027_sa.jpg\"}', 'upc' => '075021319127', 'provider' => 'bestbuy'],\n ['name' => \"Myths and Legends of King Arthur and the... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/myths-and-legends-of-king-arthur-and-the-cd/688134.p?id=103338&skuId=688134&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=688134', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6881\\/688134.jpg\"}', 'upc' => '075021323025', 'provider' => 'bestbuy'],\n ['name' => \"A Place in the Sun - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-place-in-the-sun-cd/688143.p?id=94256&skuId=688143&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=688143', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6881\\/688143_sa.jpg\"}', 'upc' => '075021323629', 'provider' => 'bestbuy'],\n ['name' => \"Caliente! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/caliente-cd/688189.p?id=63950&skuId=688189&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=688189', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0688\\/0688189_sa.jpg\"}', 'upc' => '075021324725', 'provider' => 'bestbuy'],\n ['name' => \"Sounds...And Stuff Like That!! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sounds-and-stuff-like-that-cd/688205.p?id=68075&skuId=688205&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=688205', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0688\\/0688205_sa.jpg\"}', 'upc' => '075021324923', 'provider' => 'bestbuy'],\n ['name' => \"Midnight Drive - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/midnight-drive-cd/689099.p?id=88153&skuId=689099&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689099', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6890\\/689099.jpg\"}', 'upc' => '014551477525', 'provider' => 'bestbuy'],\n ['name' => \"The Big Break - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-big-break-cd/689115.p?id=89353&skuId=689115&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689115', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0689\\/0689115_sa.jpg\"}', 'upc' => '014551477624', 'provider' => 'bestbuy'],\n ['name' => \"Two-Fisted Mama! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-fisted-mama-cd/689133.p?id=103717&skuId=689133&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689133', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6891\\/689133.jpg\"}', 'upc' => '014551477723', 'provider' => 'bestbuy'],\n ['name' => \"Fanning the Flames - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fanning-the-flames-cd/689151.p?id=81472&skuId=689151&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689151', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6891\\/689151.jpg\"}', 'upc' => '014551477822', 'provider' => 'bestbuy'],\n ['name' => \"Standing My Ground - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/standing-my-ground-cd/689179.p?id=75897&skuId=689179&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689179', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0689\\/0689179_sa.jpg\"}', 'upc' => '014551477921', 'provider' => 'bestbuy'],\n ['name' => \"Let's Buzz - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lets-buzz-cd/689213.p?id=94304&skuId=689213&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689213', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0689\\/0689213_sa.jpg\"}', 'upc' => '014551478225', 'provider' => 'bestbuy'],\n ['name' => \"Louisiana Legend - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/louisiana-legend-cd/689231.p?id=92939&skuId=689231&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689231', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6892\\/689231_sa.jpg\"}', 'upc' => '014551478324', 'provider' => 'bestbuy'],\n ['name' => \"Return of the Thin Man - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/return-of-the-thin-man-cd/689259.p?id=103662&skuId=689259&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689259', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6892\\/689259.jpg\"}', 'upc' => '014551478522', 'provider' => 'bestbuy'],\n ['name' => \"Blowin' Like Hell - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blowin-like-hell-cd/689302.p?id=77944&skuId=689302&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689302', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0689\\/0689302_sa.jpg\"}', 'upc' => '014551478829', 'provider' => 'bestbuy'],\n ['name' => \"Tore Up - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tore-up-cd/689357.p?id=76127&skuId=689357&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689357', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6893\\/689357.jpg\"}', 'upc' => '014551479222', 'provider' => 'bestbuy'],\n ['name' => \"Street Party - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/street-party-cd/689375.p?id=91375&skuId=689375&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689375', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6893\\/689375.jpg\"}', 'upc' => '014551479321', 'provider' => 'bestbuy'],\n ['name' => \"Walking on Fire - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/walking-on-fire-cd/689400.p?id=92937&skuId=689400&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689400', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6894\\/689400_sa.jpg\"}', 'upc' => '014551479529', 'provider' => 'bestbuy'],\n ['name' => \"Lost in the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lost-in-the-blues-cd/689437.p?id=97580&skuId=689437&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689437', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0689\\/0689437_sa.jpg\"}', 'upc' => '014551479727', 'provider' => 'bestbuy'],\n ['name' => \"Live in Chicago with Billy Boy Arnold - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-in-chicago-with-billy-boy-arnold-cd/689534.p?id=87353&skuId=689534&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689534', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6895\\/689534.jpg\"}', 'upc' => '014551471721', 'provider' => 'bestbuy'],\n ['name' => \"From the Heart of a Woman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/from-the-heart-of-a-woman-cd/689570.p?id=101263&skuId=689570&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689570', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6895\\/689570.jpg\"}', 'upc' => '014551472421', 'provider' => 'bestbuy'],\n ['name' => \"New Johnny Otis Show - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-johnny-otis-show-cd/689605.p?id=94158&skuId=689605&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689605', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0689\\/0689605_sa.jpg\"}', 'upc' => '014551472629', 'provider' => 'bestbuy'],\n ['name' => \"Genuine Houserocking Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/genuine-houserocking-music-cd/689623.p?id=2390416&skuId=689623&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689623', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6896\\/689623.jpg\"}', 'upc' => '014551472728', 'provider' => 'bestbuy'],\n ['name' => \"Playing for Keeps - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/playing-for-keeps-cd/689650.p?id=74647&skuId=689650&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689650', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6896\\/689650_sa.jpg\"}', 'upc' => '014551473220', 'provider' => 'bestbuy'],\n ['name' => \"Nightflight - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nightflight-cd/689669.p?id=96862&skuId=689669&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689669', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6896\\/689669.jpg\"}', 'upc' => '014551473626', 'provider' => 'bestbuy'],\n ['name' => \"Bar Room Preacher - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bar-room-preacher-cd/689696.p?id=87176&skuId=689696&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689696', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6896\\/689696_sa.jpg\"}', 'upc' => '014551474425', 'provider' => 'bestbuy'],\n ['name' => \"Pressure Cooker - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pressure-cooker-cd/689703.p?id=75895&skuId=689703&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689703', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0689\\/0689703_sa.jpg\"}', 'upc' => '014551474524', 'provider' => 'bestbuy'],\n ['name' => \"Roughhousin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/roughhousin-cd/689712.p?id=3331232&skuId=689712&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689712', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6897\\/689712.jpg\"}', 'upc' => '014551474920', 'provider' => 'bestbuy'],\n ['name' => \"Wound Up Tight - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wound-up-tight-cd/689721.p?id=76039&skuId=689721&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689721', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6897\\/689721.jpg\"}', 'upc' => '014551475125', 'provider' => 'bestbuy'],\n ['name' => \"I'm in the Wrong Business - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/im-in-the-wrong-business-cd/689749.p?id=96266&skuId=689749&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689749', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6897\\/689749_sa.jpg\"}', 'upc' => '014551475729', 'provider' => 'bestbuy'],\n ['name' => \"The Siegel-Schwall Reunion Concert - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-siegel-schwall-reunion-concert-cd/689767.p?id=98710&skuId=689767&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689767', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6897\\/689767_sa.jpg\"}', 'upc' => '014551476023', 'provider' => 'bestbuy'],\n ['name' => \"Years Since Yesterday - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/years-since-yesterday-cd/689785.p?id=94306&skuId=689785&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689785', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0689\\/0689785_sa.jpg\"}', 'upc' => '014551476221', 'provider' => 'bestbuy'],\n ['name' => \"Generic Blues Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/generic-blues-album-cd/689801.p?id=103032&skuId=689801&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689801', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6898\\/689801_sa.jpg\"}', 'upc' => '014551476320', 'provider' => 'bestbuy'],\n ['name' => \"Georgia Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/georgia-blue-cd/689829.p?id=81473&skuId=689829&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689829', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0689\\/0689829_sa.jpg\"}', 'upc' => '014551476528', 'provider' => 'bestbuy'],\n ['name' => \"Harp & Soul - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/harp-soul-cd/689847.p?id=89075&skuId=689847&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689847', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0689\\/0689847_sa.jpg\"}', 'upc' => '014551476825', 'provider' => 'bestbuy'],\n ['name' => \"That Woman Is Poison! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/that-woman-is-poison-cd/689865.p?id=101676&skuId=689865&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689865', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6898\\/689865.jpg\"}', 'upc' => '014551476924', 'provider' => 'bestbuy'],\n ['name' => \"One More for the Road - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-more-for-the-road-cd/689909.p?id=75887&skuId=689909&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689909', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6899\\/689909.jpg\"}', 'upc' => '014551477129', 'provider' => 'bestbuy'],\n ['name' => \"Devil Child - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/devil-child-cd/689936.p?id=92936&skuId=689936&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=689936', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6899\\/689936.jpg\"}', 'upc' => '014551477426', 'provider' => 'bestbuy'],\n ['name' => \"Hound Dog Taylor & the Houserockers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hound-dog-taylor-the-houserockers-cd/690041.p?id=101228&skuId=690041&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690041', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0690\\/0690041_sa.jpg\"}', 'upc' => '014551470120', 'provider' => 'bestbuy'],\n ['name' => \"Big Walter Horton with Carey Bell - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-walter-horton-with-carey-bell-cd/690069.p?id=85720&skuId=690069&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690069', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0690\\/0690069_sa.jpg\"}', 'upc' => '014551470229', 'provider' => 'bestbuy'],\n ['name' => \"Natural Boogie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/natural-boogie-cd/690087.p?id=101229&skuId=690087&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690087', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6900\\/690087_sa.jpg\"}', 'upc' => '014551470427', 'provider' => 'bestbuy'],\n ['name' => \"Somebody Loan Me a Dime - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/somebody-loan-me-a-dime-cd/690103.p?id=96863&skuId=690103&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690103', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0690\\/0690103_sa.jpg\"}', 'upc' => '014551470526', 'provider' => 'bestbuy'],\n ['name' => \"Beware of the Dog - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/beware-of-the-dog-cd/690130.p?id=101226&skuId=690130&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690130', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6901\\/690130_sa.jpg\"}', 'upc' => '014551470724', 'provider' => 'bestbuy'],\n ['name' => \"Midnight Son - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/midnight-son-cd/690158.p?id=98188&skuId=690158&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690158', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6901\\/690158.jpg\"}', 'upc' => '014551470823', 'provider' => 'bestbuy'],\n ['name' => \"I Hear Some Blues Downstairs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-hear-some-blues-downstairs-cd/690176.p?id=96861&skuId=690176&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690176', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6901\\/690176.jpg\"}', 'upc' => '014551471028', 'provider' => 'bestbuy'],\n ['name' => \"The Earthshaker - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-earthshaker-cd/690194.p?id=101270&skuId=690194&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690194', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6901\\/690194_sa.jpg\"}', 'upc' => '014551471127', 'provider' => 'bestbuy'],\n ['name' => \"The Mozart Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-mozart-collection-cd/690229.p?id=2068198&skuId=690229&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690229', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0690\\/0690229_sa.jpg\"}', 'upc' => '012805058629', 'provider' => 'bestbuy'],\n ['name' => \"Glenn Medeiros [1987] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/glenn-medeiros-1987-cd/690434.p?id=2692341&skuId=690434&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690434', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0690\\/0690434_sa.jpg\"}', 'upc' => '051617331391', 'provider' => 'bestbuy'],\n ['name' => \"Facets - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/facets-cd/690461.p?id=70771&skuId=690461&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690461', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6904\\/690461_sa.jpg\"}', 'upc' => '051617331926', 'provider' => 'bestbuy'],\n ['name' => \"Nothing's Gonna Change My Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nothings-gonna-change-my-love-cd/690504.p?id=91308&skuId=690504&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690504', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0690\\/0690504_sa.jpg\"}', 'upc' => '051617440123', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Stylistics [Amherst] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-stylistics-amherst-cd/690586.p?id=100673&skuId=690586&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690586', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0690\\/0690586_sa.jpg\"}', 'upc' => '051617074328', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Classics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-classics-cd/690595.p?id=100668&skuId=690595&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690595', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0690\\/0690595_sa.jpg\"}', 'upc' => '051617074427', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Stylistics, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-stylistics-vol-2-cd/690602.p?id=100674&skuId=690602&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690602', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6906\\/690602_sa.jpg\"}', 'upc' => '051617074526', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Love Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-love-hits-cd/690611.p?id=100669&skuId=690611&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=690611', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0690\\/0690611_sa.jpg\"}', 'upc' => '051617074625', 'provider' => 'bestbuy'],\n ['name' => \"Godspell [Original Off-Off-Broadway Cast] - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/godspell-original-off-off-broadway-cast-cd-original-cast-recording/691380.p?id=83775&skuId=691380&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=691380', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6913\\/691380.jpg\"}', 'upc' => '078221830423', 'provider' => 'bestbuy'],\n ['name' => \"Private Collection, Vol. 5: The Suites, New... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/private-collection-vol-5-the-suites-new-cd/692003.p?id=65987&skuId=692003&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=692003', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6920\\/692003.jpg\"}', 'upc' => '075679104526', 'provider' => 'bestbuy'],\n ['name' => \"4 Way Street - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/4-way-street-cd/693663.p?id=79270&skuId=693663&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=693663', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0693\\/0693663_sa.jpg\"}', 'upc' => '075678240829', 'provider' => 'bestbuy'],\n ['name' => \"The Avant-Garde - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-avant-garde-cd/693770.p?id=64936&skuId=693770&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=693770', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0693\\/0693770_sa.jpg\"}', 'upc' => '075679004123', 'provider' => 'bestbuy'],\n ['name' => \"Back to Back - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/back-to-back-cd/693976.p?id=90506&skuId=693976&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=693976', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0693\\/0693976_sa.jpg\"}', 'upc' => '075679030726', 'provider' => 'bestbuy'],\n ['name' => \"Two of a Kind - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-of-a-kind-cd/694047.p?id=79767&skuId=694047&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=694047', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6940\\/694047.jpg\"}', 'upc' => '075679048424', 'provider' => 'bestbuy'],\n ['name' => \"Private Collection, Vol. 7: Studio Sessions,... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/private-collection-vol-7-studio-sessions-cd/694332.p?id=65989&skuId=694332&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=694332', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0694\\/0694332_sa.jpg\"}', 'upc' => '075679123121', 'provider' => 'bestbuy'],\n ['name' => \"Private Collection, Vol. 9: Studio Sessions,... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/private-collection-vol-9-studio-sessions-cd/694378.p?id=65991&skuId=694378&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=694378', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0694\\/0694378_sa.jpg\"}', 'upc' => '075679123329', 'provider' => 'bestbuy'],\n ['name' => \"The Great Otis Redding Sings Soul Ballads - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-great-otis-redding-sings-soul-ballads-cd/694895.p?id=96237&skuId=694895&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=694895', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0694\\/0694895_sa.jpg\"}', 'upc' => '075679170620', 'provider' => 'bestbuy'],\n ['name' => \"Complete & Unbelievable: The Otis Redding... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/complete-unbelievable-the-otis-redding-cd/694911.p?id=96236&skuId=694911&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=694911', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0694\\/0694911_sa.jpg\"}', 'upc' => '075679170729', 'provider' => 'bestbuy'],\n ['name' => \"Parental Advisory - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/parental-advisory-cd/695144.p?id=76850&skuId=695144&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=695144', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6951\\/695144_sa.jpg\"}', 'upc' => '075679159328', 'provider' => 'bestbuy'],\n ['name' => \"When the Night Is Over - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/when-the-night-is-over-cd/695901.p?id=89433&skuId=695901&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=695901', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0695\\/0695901_sa.jpg\"}', 'upc' => '075678221026', 'provider' => 'bestbuy'],\n ['name' => \"Let There Be Harmony - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/let-there-be-harmony-cd/696018.p?id=3173148&skuId=696018&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=696018', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6960\\/696018.jpg\"}', 'upc' => '075679139429', 'provider' => 'bestbuy'],\n ['name' => \"Puta's Fever - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/putas-fever-cd/696679.p?id=90448&skuId=696679&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=696679', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6966\\/696679.jpg\"}', 'upc' => '077778615729', 'provider' => 'bestbuy'],\n ['name' => \"Down in the Alley: The Best of the Clovers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/down-in-the-alley-the-best-of-the-clovers-cd/697437.p?id=78096&skuId=697437&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=697437', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6974\\/697437_sa.jpg\"}', 'upc' => '075678231223', 'provider' => 'bestbuy'],\n ['name' => \"Soul Christmas [Atlantic] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/soul-christmas-atlantic-cd-various/697473.p?id=116058&skuId=697473&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=697473', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0697\\/0697473_sa.jpg\"}', 'upc' => '075678231629', 'provider' => 'bestbuy'],\n ['name' => \"In the Christmas Spirit - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-the-christmas-spirit-cd/697507.p?id=75529&skuId=697507&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=697507', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0697\\/0697507_sa.jpg\"}', 'upc' => '075678233821', 'provider' => 'bestbuy'],\n ['name' => \"Lyte as a Rock - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lyte-as-a-rock-cd/697963.p?id=90975&skuId=697963&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=697963', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0697\\/0697963_sa.jpg\"}', 'upc' => '075679090522', 'provider' => 'bestbuy'],\n ['name' => \"LaVern Sings Bessie Smith - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lavern-sings-bessie-smith-cd/698310.p?id=3552587&skuId=698310&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=698310', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0698\\/0698310_sa.jpg\"}', 'upc' => '075679098023', 'provider' => 'bestbuy'],\n ['name' => \"Private Collection, Vol. 1: Studio Sessions,... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/private-collection-vol-1-studio-sessions-cd/698579.p?id=65983&skuId=698579&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=698579', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/6985\\/698579.jpg\"}', 'upc' => '075679104120', 'provider' => 'bestbuy'],\n ['name' => \"Mingus at Antibes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mingus-at-antibes-cd/698613.p?id=2387493&skuId=698613&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=698613', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0698\\/0698613_sa.jpg\"}', 'upc' => '075679053220', 'provider' => 'bestbuy'],\n ['name' => \"Live at the Half Note - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-the-half-note-cd/698891.p?id=66196&skuId=698891&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=698891', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6988\\/698891_sa.jpg\"}', 'upc' => '075679066626', 'provider' => 'bestbuy'],\n ['name' => \"Oh Yeah - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/oh-yeah-cd/698917.p?id=176923&skuId=698917&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=698917', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0698\\/0698917_sa.jpg\"}', 'upc' => '075679066725', 'provider' => 'bestbuy'],\n ['name' => \"Twisted Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/twisted-christmas-cd/698953.p?id=96754&skuId=698953&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=698953', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0698\\/0698953_sa.jpg\"}', 'upc' => '075679067128', 'provider' => 'bestbuy'],\n ['name' => \"Green Onions - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/green-onions-cd/699220.p?id=75526&skuId=699220&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=699220', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0699\\/0699220_sa.jpg\"}', 'upc' => '075678225529', 'provider' => 'bestbuy'],\n ['name' => \"King & Queen - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/king-queen-cd/699248.p?id=96241&skuId=699248&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=699248', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/6992\\/699248_sa.jpg\"}', 'upc' => '075678225628', 'provider' => 'bestbuy'],\n ['name' => \"The New Tango - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-new-tango-cd/699417.p?id=64731&skuId=699417&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=699417', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0699\\/0699417_sa.jpg\"}', 'upc' => '075678182327', 'provider' => 'bestbuy'],\n ['name' => \"Under The Influence - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/under-the-influence-cd/699578.p?id=94200&skuId=699578&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=699578', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0699\\/0699578_sa.jpg\"}', 'upc' => '075678186523', 'provider' => 'bestbuy'],\n ['name' => \"The Complete Last Concert - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-complete-last-concert-cd/700021.p?id=69247&skuId=700021&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=700021', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0700\\/0700021_sa.jpg\"}', 'upc' => '075678197628', 'provider' => 'bestbuy'],\n ['name' => \"Voyage - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/voyage-cd/700183.p?id=92204&skuId=700183&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=700183', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7001\\/700183_sa.jpg\"}', 'upc' => '075678203428', 'provider' => 'bestbuy'],\n ['name' => \"New Age Of Christmas (Mod) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-age-of-christmas-mod-cd/700236.p?id=3205643&skuId=700236&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=700236', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '075678205422', 'provider' => 'bestbuy'],\n ['name' => \"Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-cd/700307.p?id=105285&skuId=700307&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=700307', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7003\\/700307.jpg\"}', 'upc' => '075678209420', 'provider' => 'bestbuy'],\n ['name' => \"Goodfellas [Original Motion Picture Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/goodfellas-original-motion-picture-soundtrack-cd-original-soundtrack/700441.p?id=83867&skuId=700441&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=700441', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0700\\/0700441_sa.jpg\"}', 'upc' => '075678215223', 'provider' => 'bestbuy'],\n ['name' => \"African Exchange Student - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/african-exchange-student-cd/700487.p?id=66556&skuId=700487&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=700487', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0700\\/0700487_sa.jpg\"}', 'upc' => '075678215629', 'provider' => 'bestbuy'],\n ['name' => \"Sentimental Journey - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sentimental-journey-cd/700780.p?id=67136&skuId=700780&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=700780', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0700\\/0700780_sa.jpg\"}', 'upc' => '075678164422', 'provider' => 'bestbuy'],\n ['name' => \"Upside Downside - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/upside-downside-cd/700815.p?id=71142&skuId=700815&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=700815', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0700\\/0700815_sa.jpg\"}', 'upc' => '075678165627', 'provider' => 'bestbuy'],\n ['name' => \"Atlantic Jazz: New Orleans - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/atlantic-jazz-new-orleans-cd-various/700986.p?id=63834&skuId=700986&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=700986', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7009\\/700986_sa.jpg\"}', 'upc' => '075678170027', 'provider' => 'bestbuy'],\n ['name' => \"Atlantic Jazz: Piano - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/atlantic-jazz-piano-cd/701128.p?id=63838&skuId=701128&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=701128', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7011\\/701128.jpg\"}', 'upc' => '075678170720', 'provider' => 'bestbuy'],\n ['name' => \"The Great Ray Charles - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-great-ray-charles-cd/701271.p?id=77262&skuId=701271&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=701271', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0701\\/0701271_sa.jpg\"}', 'upc' => '075678173127', 'provider' => 'bestbuy'],\n ['name' => \"Touch - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/touch-cd/701324.p?id=75741&skuId=701324&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=701324', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0701\\/0701324_sa.jpg\"}', 'upc' => '075678174728', 'provider' => 'bestbuy'],\n ['name' => \"Three Windows - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/three-windows-cd/701404.p?id=69254&skuId=701404&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=701404', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7014\\/701404_sa.jpg\"}', 'upc' => '075678176128', 'provider' => 'bestbuy'],\n ['name' => \"Symphony Sessions - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/symphony-sessions-cd/701501.p?id=82715&skuId=701501&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=701501', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7015\\/701501_sa.jpg\"}', 'upc' => '075678179921', 'provider' => 'bestbuy'],\n ['name' => \"Somewhere Before - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/somewhere-before-cd/701592.p?id=67883&skuId=701592&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=701592', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0701\\/0701592_sa.jpg\"}', 'upc' => '075678145520', 'provider' => 'bestbuy'],\n ['name' => \"Civilized Evil - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/civilized-evil-cd/701654.p?id=70090&skuId=701654&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=701654', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0701\\/0701654_sa.jpg\"}', 'upc' => '075678147425', 'provider' => 'bestbuy'],\n ['name' => \"Coming Out - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/coming-out-cd/701789.p?id=90379&skuId=701789&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=701789', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7017\\/701789_sa.jpg\"}', 'upc' => '075678150227', 'provider' => 'bestbuy'],\n ['name' => \"Last Set at Newport - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/last-set-at-newport-cd/701967.p?id=64632&skuId=701967&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=701967', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7019\\/701967_sa.jpg\"}', 'upc' => '075678138225', 'provider' => 'bestbuy'],\n ['name' => \"Blues on Bach - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-on-bach-cd/702029.p?id=69229&skuId=702029&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=702029', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0702\\/0702029_sa.jpg\"}', 'upc' => '075678139321', 'provider' => 'bestbuy'],\n ['name' => \"Chick Corea/Herbie Hancock/Keith... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chick-corea-herbie-hancock-keith-cd/702092.p?id=65292&skuId=702092&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=702092', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0702\\/0702092_sa.jpg\"}', 'upc' => '075678140228', 'provider' => 'bestbuy'],\n ['name' => \"Three or Four Shades of Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/three-or-four-shades-of-blues-cd/702118.p?id=69192&skuId=702118&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=702118', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7021\\/702118_sa.jpg\"}', 'upc' => '075678140327', 'provider' => 'bestbuy'],\n ['name' => \"Wild Tales - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wild-tales-cd/702314.p?id=92848&skuId=702314&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=702314', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7023\\/702314_sa.jpg\"}', 'upc' => '075678143229', 'provider' => 'bestbuy'],\n ['name' => \"Rock & Roll Queen - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rock-roll-queen-cd/702323.p?id=92436&skuId=702323&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=702323', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7023\\/702323.jpg\"}', 'upc' => '075678218828', 'provider' => 'bestbuy'],\n ['name' => \"T-Bone Blues [Atlantic] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/t-bone-blues-atlantic-cd/702341.p?id=103375&skuId=702341&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=702341', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0702\\/0702341_sa.jpg\"}', 'upc' => '075678195426', 'provider' => 'bestbuy'],\n ['name' => \"You Can't Stop Rock 'N' Roll - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/you-cant-stop-rock-n-roll-cd/702430.p?id=176537&skuId=702430&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=702430', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0702\\/0702430_sa.jpg\"}', 'upc' => '075678007422', 'provider' => 'bestbuy'],\n ['name' => \"Forever Young - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/forever-young-cd/702555.p?id=72829&skuId=702555&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=702555', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0702\\/0702555_sa.jpg\"}', 'upc' => '075678018626', 'provider' => 'bestbuy'],\n ['name' => \"St. Elmo's Fire - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/st-elmos-fire-cd-original-soundtrack/702699.p?id=99973&skuId=702699&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=702699', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7026\\/702699_sa.jpg\"}', 'upc' => '075678126123', 'provider' => 'bestbuy'],\n ['name' => \"Coltrane Jazz - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/coltrane-jazz-cd/702895.p?id=65136&skuId=702895&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=702895', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0702\\/0702895_sa.jpg\"}', 'upc' => '075678134425', 'provider' => 'bestbuy'],\n ['name' => \"Bags & Trane - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bags-trane-cd/702920.p?id=65190&skuId=702920&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=702920', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0702\\/0702920_sa.jpg\"}', 'upc' => '075678134821', 'provider' => 'bestbuy'],\n ['name' => \"At the Village Gate - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-the-village-gate-cd/702975.p?id=68730&skuId=702975&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=702975', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0702\\/0702975_sa.jpg\"}', 'upc' => '075678135026', 'provider' => 'bestbuy'],\n ['name' => \"Plays the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/plays-the-blues-cd/702993.p?id=65139&skuId=702993&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=702993', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7029\\/702993_sa.jpg\"}', 'upc' => '075678135125', 'provider' => 'bestbuy'],\n ['name' => \"Stitt Plays Bird - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stitt-plays-bird-cd/703037.p?id=71159&skuId=703037&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=703037', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0703\\/0703037_sa.jpg\"}', 'upc' => '075678135729', 'provider' => 'bestbuy'],\n ['name' => \"Swiss Movement - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/swiss-movement-cd/703117.p?id=176560&skuId=703117&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=703117', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7031\\/703117.jpg\"}', 'upc' => '075678136528', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Eddie Harris - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-eddie-harris-cd/703144.p?id=67217&skuId=703144&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=703144', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0703\\/0703144_sa.jpg\"}', 'upc' => '075678137020', 'provider' => 'bestbuy'],\n ['name' => \"Zawinul - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/zawinul-cd/703199.p?id=72267&skuId=703199&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=703199', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0703\\/0703199_sa.jpg\"}', 'upc' => '075678137525', 'provider' => 'bestbuy'],\n ['name' => \"New Orleans Suite [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-orleans-suite-remaster-cd/703215.p?id=65955&skuId=703215&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=703215', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0703\\/0703215_sa.jpg\"}', 'upc' => '075678137624', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Billy Cobham [1992] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-billy-cobham-1992-cd/703288.p?id=3356016&skuId=703288&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=703288', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7032\\/703288_sa.jpg\"}', 'upc' => '075678155826', 'provider' => 'bestbuy'],\n ['name' => \"A Taste for Passion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-taste-for-passion-cd/703304.p?id=70087&skuId=703304&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=703304', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7033\\/703304_sa.jpg\"}', 'upc' => '075678156229', 'provider' => 'bestbuy'],\n ['name' => \"Extensions - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/extensions-cd/703322.p?id=90380&skuId=703322&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=703322', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0703\\/0703322_sa.jpg\"}', 'upc' => '075678156526', 'provider' => 'bestbuy'],\n ['name' => \"Push Push - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/push-push-cd/703705.p?id=68736&skuId=703705&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=703705', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7037\\/703705_sa.jpg\"}', 'upc' => '075679030627', 'provider' => 'bestbuy'],\n ['name' => \"Plenty, Plenty Soul - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/plenty-plenty-soul-cd/703938.p?id=67748&skuId=703938&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=703938', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0703\\/0703938_sa.jpg\"}', 'upc' => '075678197925', 'provider' => 'bestbuy'],\n ['name' => \"No Sun in Venice - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/no-sun-in-venice-cd/703965.p?id=69243&skuId=703965&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=703965', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7039\\/703965.jpg\"}', 'upc' => '075678133428', 'provider' => 'bestbuy'],\n ['name' => \"Seduzir - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/seduzir-cd/712820.p?id=80654&skuId=712820&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=712820', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7128\\/712820_sa.jpg\"}', 'upc' => '077774820622', 'provider' => 'bestbuy'],\n ['name' => \"Midnight Cowboy - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/midnight-cowboy-cd-original-soundtrack/712982.p?id=91638&skuId=712982&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=712982', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7129\\/712982.jpg\"}', 'upc' => '077774840927', 'provider' => 'bestbuy'],\n ['name' => \"Michel Plays Petrucciani - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/michel-plays-petrucciani-cd/713106.p?id=70010&skuId=713106&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=713106', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0713\\/0713106_sa.jpg\"}', 'upc' => '077774867924', 'provider' => 'bestbuy'],\n ['name' => \"Capitol Collectors Series - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/capitol-collectors-series-cd/715943.p?id=95461&skuId=715943&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=715943', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7159\\/715943_sa.jpg\"}', 'upc' => '077779407224', 'provider' => 'bestbuy'],\n ['name' => \"Capitol Collectors Series - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/capitol-collectors-series-cd/716014.p?id=100118&skuId=716014&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=716014', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7160\\/716014.jpg\"}', 'upc' => '077779408023', 'provider' => 'bestbuy'],\n ['name' => \"Die unendliche Geschichte [Music from the... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/die-unendliche-geschichte-music-from-the-cd-original-soundtrack/716755.p?id=93080&skuId=716755&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=716755', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0716\\/0716755_sa.jpg\"}', 'upc' => '077779270828', 'provider' => 'bestbuy'],\n ['name' => \"The Route - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-route-cd/716997.p?id=63926&skuId=716997&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=716997', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7169\\/716997_sa.jpg\"}', 'upc' => '077779293124', 'provider' => 'bestbuy'],\n ['name' => \"Romeo & Juliet [CD] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/romeo-juliet-cd-cd-original-soundtrack/717255.p?id=97253&skuId=717255&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=717255', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7172\\/717255.jpg\"}', 'upc' => '077779205721', 'provider' => 'bestbuy'],\n ['name' => \"Deer Hunter - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/deer-hunter-cd-original-soundtrack/717273.p?id=2069841&skuId=717273&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=717273', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7172\\/717273_sa.jpg\"}', 'upc' => '077779205820', 'provider' => 'bestbuy'],\n ['name' => \"Where Are You? [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/where-are-you-remaster-cd/717683.p?id=240284&skuId=717683&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=717683', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7176\\/717683.jpg\"}', 'upc' => '762185158128', 'provider' => 'bestbuy'],\n ['name' => \"The Very Best of Classics IV [EMI] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-very-best-of-classics-iv-emi-cd/717781.p?id=77961&skuId=717781&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=717781', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0717\\/0717781_sa.jpg\"}', 'upc' => '077779147229', 'provider' => 'bestbuy'],\n ['name' => \"Capitol Collectors Series - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/capitol-collectors-series-cd/717889.p?id=86662&skuId=717889&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=717889', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0717\\/0717889_sa.jpg\"}', 'upc' => '077779163021', 'provider' => 'bestbuy'],\n ['name' => \"Iron Eagle - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/iron-eagle-cd-original-soundtrack/718352.p?id=2280274&skuId=718352&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=718352', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0718\\/0718352_sa.jpg\"}', 'upc' => '077779074723', 'provider' => 'bestbuy'],\n ['name' => \"Cornbread - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cornbread-cd/718414.p?id=2389888&skuId=718414&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=718414', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7184\\/718414.jpg\"}', 'upc' => '077778422228', 'provider' => 'bestbuy'],\n ['name' => \"Unit Structures - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/unit-structures-cd/718469.p?id=71341&skuId=718469&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=718469', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7184\\/718469.jpg\"}', 'upc' => '077778423720', 'provider' => 'bestbuy'],\n ['name' => \"Super Nova - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/super-nova-cd/718520.p?id=70913&skuId=718520&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=718520', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7185\\/718520_sa.jpg\"}', 'upc' => '077778433224', 'provider' => 'bestbuy'],\n ['name' => \"Born to Be Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/born-to-be-blue-cd/718619.p?id=66929&skuId=718619&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=718619', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7186\\/718619_sa.jpg\"}', 'upc' => '077778443223', 'provider' => 'bestbuy'],\n ['name' => \"Matador - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/matador-cd/718673.p?id=66933&skuId=718673&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=718673', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0718\\/0718673_sa.jpg\"}', 'upc' => '077778444220', 'provider' => 'bestbuy'],\n ['name' => \"Charlie Parker at Storyville - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/charlie-parker-at-storyville-cd/718815.p?id=69750&skuId=718815&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=718815', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7188\\/718815_sa.jpg\"}', 'upc' => '077778510826', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Bellamy Brothers [1985] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-bellamy-brothers-1985-cd/719315.p?id=74381&skuId=719315&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=719315', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0719\\/0719315_sa.jpg\"}', 'upc' => '715187755420', 'provider' => 'bestbuy'],\n ['name' => \"Sings His Big 10, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sings-his-big-10-vol-1-cd/719333.p?id=73084&skuId=719333&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=719333', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7193\\/719333.jpg\"}', 'upc' => '715187755727', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Songs of the Islands - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-songs-of-the-islands-cd/719388.p?id=104051&skuId=719388&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=719388', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7193\\/719388.jpg\"}', 'upc' => '715187756021', 'provider' => 'bestbuy'],\n ['name' => \"Classic Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classic-hits-cd/719422.p?id=73078&skuId=719422&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=719422', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0719\\/0719422_sa.jpg\"}', 'upc' => '715187756625', 'provider' => 'bestbuy'],\n ['name' => \"Best of Roger Miller: His Greatest Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-roger-miller-his-greatest-songs-cd/719761.p?id=91719&skuId=719761&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=719761', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7197\\/719761.jpg\"}', 'upc' => '715187751125', 'provider' => 'bestbuy'],\n ['name' => \"Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-cd/719789.p?id=91233&skuId=719789&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=719789', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7197\\/719789.jpg\"}', 'upc' => '715187751224', 'provider' => 'bestbuy'],\n ['name' => \"The Osmond Christmas Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-osmond-christmas-album-cd/719805.p?id=94140&skuId=719805&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=719805', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7198\\/719805.jpg\"}', 'upc' => '715187751323', 'provider' => 'bestbuy'],\n ['name' => \"Christmas Country Classics - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-country-classics-cd-various/719823.p?id=77684&skuId=719823&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=719823', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0719\\/0719823_sa.jpg\"}', 'upc' => '715187751422', 'provider' => 'bestbuy'],\n ['name' => \"Christmas All-Time Greatest Records, Vol. 2 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-all-time-greatest-records-vol-2-cd-various/719841.p?id=77629&skuId=719841&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=719841', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7198\\/719841_sa.jpg\"}', 'upc' => '715187751521', 'provider' => 'bestbuy'],\n ['name' => \"Best of Patsy Cline [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-patsy-cline-curb-cd/719878.p?id=78046&skuId=719878&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=719878', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7198\\/719878_sa.jpg\"}', 'upc' => '715187751828', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits of Country, Vol. 1 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-of-country-vol-1-cd-various/719958.p?id=78865&skuId=719958&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=719958', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7199\\/719958_sa.jpg\"}', 'upc' => '715187752429', 'provider' => 'bestbuy'],\n ['name' => \"Best Of Live 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-live-1-cd/720027.p?id=80710&skuId=720027&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720027', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7200\\/720027_sa.jpg\"}', 'upc' => '715187753822', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Fats Domino Live, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-fats-domino-live-vol-2-cd/720045.p?id=80711&skuId=720045&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720045', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7200\\/720045.jpg\"}', 'upc' => '715187753921', 'provider' => 'bestbuy'],\n ['name' => \"The Best of T.G. Sheppard - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-t-g-sheppard-cd/720134.p?id=98584&skuId=720134&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720134', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7201\\/720134.jpg\"}', 'upc' => '715187754522', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/720170.p?id=77060&skuId=720170&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720170', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7201\\/720170_sa.jpg\"}', 'upc' => '715187755123', 'provider' => 'bestbuy'],\n ['name' => \"Classics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classics-cd/720205.p?id=92266&skuId=720205&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720205', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0720\\/0720205_sa.jpg\"}', 'upc' => '715187747029', 'provider' => 'bestbuy'],\n ['name' => \"Best of the Everly Brothers: Rare Solo Classics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-the-everly-brothers-rare-solo-classics-cd/720223.p?id=81754&skuId=720223&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720223', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7202\\/720223.jpg\"}', 'upc' => '715187747227', 'provider' => 'bestbuy'],\n ['name' => \"Best of Carl Smith - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-carl-smith-cd/720241.p?id=99257&skuId=720241&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720241', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7202\\/720241.jpg\"}', 'upc' => '715187747326', 'provider' => 'bestbuy'],\n ['name' => \"18 Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/18-greatest-hits-cd/720269.p?id=83587&skuId=720269&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720269', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7202\\/720269.jpg\"}', 'upc' => '715187747425', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Kate Smith [Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-kate-smith-capitol-cd/720287.p?id=99280&skuId=720287&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720287', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7202\\/720287.jpg\"}', 'upc' => '715187747524', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Dick Haymes [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-dick-haymes-curb-cd/720303.p?id=85073&skuId=720303&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720303', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0720\\/0720303_sa.jpg\"}', 'upc' => '715187747920', 'provider' => 'bestbuy'],\n ['name' => \"The Best of His Rare Solo Classics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-his-rare-solo-classics-cd/720321.p?id=94035&skuId=720321&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720321', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0720\\/0720321_sa.jpg\"}', 'upc' => '715187748125', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/720349.p?id=101861&skuId=720349&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720349', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7203\\/720349.jpg\"}', 'upc' => '715187748224', 'provider' => 'bestbuy'],\n ['name' => \"Best of Ricky Nelson [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-ricky-nelson-curb-cd/720367.p?id=92983&skuId=720367&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720367', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7203\\/720367.jpg\"}', 'upc' => '715187748422', 'provider' => 'bestbuy'],\n ['name' => \"18 Rare Classics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/18-rare-classics-cd/720401.p?id=84565&skuId=720401&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720401', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7204\\/720401.jpg\"}', 'upc' => '715187749023', 'provider' => 'bestbuy'],\n ['name' => \"Classics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classics-cd/720410.p?id=93086&skuId=720410&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720410', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0720\\/0720410_sa.jpg\"}', 'upc' => '715187749122', 'provider' => 'bestbuy'],\n ['name' => \"Classic Country Duets - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classic-country-duets-cd-various/720447.p?id=78874&skuId=720447&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720447', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7204\\/720447.jpg\"}', 'upc' => '715187749320', 'provider' => 'bestbuy'],\n ['name' => \"The Complete Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-complete-collection-cd/720544.p?id=81811&skuId=720544&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720544', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7205\\/720544_sa.jpg\"}', 'upc' => '715187750326', 'provider' => 'bestbuy'],\n ['name' => \"Van Go - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/van-go-cd/720562.p?id=74169&skuId=720562&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720562', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7205\\/720562.jpg\"}', 'upc' => '715187750425', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Early Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-early-years-cd/720642.p?id=84575&skuId=720642&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720642', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7206\\/720642.jpg\"}', 'upc' => '715187743823', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Andy Williams [Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-andy-williams-capitol-cd/720660.p?id=104046&skuId=720660&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720660', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7206\\/720660.jpg\"}', 'upc' => '715187743922', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Don Gibson, Vol. 1 [Capitol/Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-don-gibson-vol-1-capitol-curb-cd/720688.p?id=83589&skuId=720688&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720688', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7206\\/720688.jpg\"}', 'upc' => '715187744028', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Early Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-early-years-cd/720704.p?id=76662&skuId=720704&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720704', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7207\\/720704_sa.jpg\"}', 'upc' => '715187744127', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Jimmie Rodgers [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-jimmie-rodgers-curb-cd/720722.p?id=97060&skuId=720722&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720722', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7207\\/720722_sa.jpg\"}', 'upc' => '715187744226', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/720768.p?id=74468&skuId=720768&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720768', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7207\\/720768.jpg\"}', 'upc' => '715187744523', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Jerry Lee Lewis [Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-jerry-lee-lewis-capitol-cd/720786.p?id=89145&skuId=720786&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720786', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7207\\/720786.jpg\"}', 'upc' => '715187744622', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Sonny James - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-sonny-james-cd/720955.p?id=86661&skuId=720955&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720955', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7209\\/720955.jpg\"}', 'upc' => '715187746022', 'provider' => 'bestbuy'],\n ['name' => \"American Music: Greatest Hits - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-music-greatest-hits-cd-various/720973.p?id=72902&skuId=720973&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=720973', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7209\\/720973.jpg\"}', 'upc' => '715187746121', 'provider' => 'bestbuy'],\n ['name' => \"Five Decades Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/five-decades-greatest-hits-cd/721053.p?id=73080&skuId=721053&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721053', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0721\\/0721053_sa.jpg\"}', 'upc' => '715187746725', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/721106.p?id=92265&skuId=721106&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721106', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0721\\/0721106_sa.jpg\"}', 'upc' => '715187740525', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Country Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-country-hits-cd/721160.p?id=78269&skuId=721160&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721160', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0721\\/0721160_sa.jpg\"}', 'upc' => '715187740822', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/721204.p?id=65766&skuId=721204&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721204', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7212\\/721204.jpg\"}', 'upc' => '715187741126', 'provider' => 'bestbuy'],\n ['name' => \"Mr. Lonely: Greatest Songs Today - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mr-lonely-greatest-songs-today-cd/721222.p?id=103172&skuId=721222&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721222', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7212\\/721222.jpg\"}', 'upc' => '715187741225', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Eydie Gorme [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-eydie-gorme-curb-cd/721240.p?id=83909&skuId=721240&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721240', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7212\\/721240.jpg\"}', 'upc' => '715187741324', 'provider' => 'bestbuy'],\n ['name' => \"Unchained Melody - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/unchained-melody-cd/721259.p?id=91136&skuId=721259&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721259', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0721\\/0721259_sa.jpg\"}', 'upc' => '715187741423', 'provider' => 'bestbuy'],\n ['name' => \"Best of Eddy Arnold [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-eddy-arnold-curb-cd/721277.p?id=73267&skuId=721277&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721277', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7212\\/721277.jpg\"}', 'upc' => '715187741621', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/721295.p?id=91253&skuId=721295&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721295', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7212\\/721295.jpg\"}', 'upc' => '715187741720', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Evergreen] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-evergreen-cd/721311.p?id=76410&skuId=721311&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721311', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0721\\/0721311_sa.jpg\"}', 'upc' => '715187741928', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Solomon Burke [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-solomon-burke-curb-cd/721339.p?id=76344&skuId=721339&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721339', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7213\\/721339.jpg\"}', 'upc' => '715187742222', 'provider' => 'bestbuy'],\n ['name' => \"Best Of - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-cd/721393.p?id=96807&skuId=721393&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721393', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7213\\/721393.jpg\"}', 'upc' => '715187742529', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Country Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-country-hits-cd/721428.p?id=102446&skuId=721428&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721428', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0721\\/0721428_sa.jpg\"}', 'upc' => '715187742925', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Country Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-country-hits-cd/721446.p?id=95780&skuId=721446&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721446', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0721\\/0721446_sa.jpg\"}', 'upc' => '715187743021', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Debbie Reynolds - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-debbie-reynolds-cd/721473.p?id=96548&skuId=721473&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721473', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7214\\/721473.jpg\"}', 'upc' => '715187743526', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Bill Anderson - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-bill-anderson-cd/721491.p?id=72975&skuId=721491&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721491', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7214\\/721491.jpg\"}', 'upc' => '715187743625', 'provider' => 'bestbuy'],\n ['name' => \"The Best of John Conlee - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-john-conlee-cd/721516.p?id=78527&skuId=721516&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721516', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7215\\/721516.jpg\"}', 'upc' => '715187743724', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Country Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-country-hits-cd/721543.p?id=104085&skuId=721543&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721543', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7215\\/721543.jpg\"}', 'upc' => '715187736122', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb/Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-capitol-cd/721561.p?id=102601&skuId=721561&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721561', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7215\\/721561.jpg\"}', 'upc' => '715187736528', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Country Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-country-blues-cd/721589.p?id=84574&skuId=721589&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721589', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7215\\/721589_sa.jpg\"}', 'upc' => '715187736825', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-cd/721605.p?id=83297&skuId=721605&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721605', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0721\\/0721605_sa.jpg\"}', 'upc' => '715187737020', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/721632.p?id=103951&skuId=721632&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721632', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0721\\/0721632_sa.jpg\"}', 'upc' => '715187737327', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-cd/721641.p?id=86703&skuId=721641&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721641', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7216\\/721641.jpg\"}', 'upc' => '715187737426', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-cd/721703.p?id=80708&skuId=721703&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721703', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7217\\/721703.jpg\"}', 'upc' => '715187737822', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/721730.p?id=96107&skuId=721730&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721730', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7217\\/721730.jpg\"}', 'upc' => '715187738027', 'provider' => 'bestbuy'],\n ['name' => \"Unchained Melody: Greatest Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/unchained-melody-greatest-songs-cd/721749.p?id=104062&skuId=721749&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721749', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7217\\/721749.jpg\"}', 'upc' => '715187738225', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-cd/721767.p?id=90677&skuId=721767&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721767', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7217\\/721767.jpg\"}', 'upc' => '715187738324', 'provider' => 'bestbuy'],\n ['name' => \"The Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-greatest-hits-curb-cd/721776.p?id=88079&skuId=721776&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721776', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0721\\/0721776_sa.jpg\"}', 'upc' => '715187738522', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/721794.p?id=104356&skuId=721794&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721794', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7217\\/721794.jpg\"}', 'upc' => '715187738928', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Roy Rogers [Curb/Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-roy-rogers-curb-capitol-cd/721801.p?id=97171&skuId=721801&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721801', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7218\\/721801.jpg\"}', 'upc' => '715187739222', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/721829.p?id=103642&skuId=721829&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721829', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7218\\/721829.jpg\"}', 'upc' => '715187739321', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Tommy Dorsey & His Orchestra [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-tommy-dorsey-his-orchestra-curb-cd/721847.p?id=65785&skuId=721847&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721847', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7218\\/721847.jpg\"}', 'upc' => '715187739628', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/721865.p?id=96748&skuId=721865&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721865', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7218\\/721865.jpg\"}', 'upc' => '715187739727', 'provider' => 'bestbuy'],\n ['name' => \"Best of Cannonball Adderley [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-cannonball-adderley-curb-cd/721909.p?id=63541&skuId=721909&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721909', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7219\\/721909.jpg\"}', 'upc' => '715187739925', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/721918.p?id=90671&skuId=721918&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721918', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0721\\/0721918_sa.jpg\"}', 'upc' => '715187740129', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Great Instrumental Hits, Vol. 1 - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-great-instrumental-hits-vol-1-various-cd/721936.p?id=86236&skuId=721936&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721936', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7219\\/721936.jpg\"}', 'upc' => '715187740327', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/721972.p?id=100119&skuId=721972&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=721972', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7219\\/721972.jpg\"}', 'upc' => '715187740426', 'provider' => 'bestbuy'],\n ['name' => \"Great Records of the Decade: 50's Hits... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/great-records-of-the-decade-50s-hits-cd-various/722043.p?id=78854&skuId=722043&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722043', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7220\\/722043.jpg\"}', 'upc' => '715187733022', 'provider' => 'bestbuy'],\n ['name' => \"The All-Time Best of Bing Crosby - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-all-time-best-of-bing-crosby-cd/722114.p?id=79225&skuId=722114&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722114', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7221\\/722114.jpg\"}', 'upc' => '715187734029', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-vol-1-cd/722123.p?id=94214&skuId=722123&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722123', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7221\\/722123.jpg\"}', 'upc' => '715187734227', 'provider' => 'bestbuy'],\n ['name' => \"Great Records of the Decade: 60's Hits... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/great-records-of-the-decade-60s-hits-cd-various/722141.p?id=78856&skuId=722141&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722141', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7221\\/722141.jpg\"}', 'upc' => '715187734326', 'provider' => 'bestbuy'],\n ['name' => \"Great Records of the Decade: 70's Hits... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/great-records-of-the-decade-70s-hits-cd-various/722169.p?id=78857&skuId=722169&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722169', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7221\\/722169.jpg\"}', 'upc' => '715187734425', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/722187.p?id=103028&skuId=722187&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722187', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7221\\/722187_sa.jpg\"}', 'upc' => '715187734524', 'provider' => 'bestbuy'],\n ['name' => \"Great Records of the Decade: 40's Hits... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/great-records-of-the-decade-40s-hits-cd-various/722203.p?id=78853&skuId=722203&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722203', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7222\\/722203.jpg\"}', 'upc' => '715187734623', 'provider' => 'bestbuy'],\n ['name' => \"Great Songs of Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/great-songs-of-christmas-cd/722221.p?id=103169&skuId=722221&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722221', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7222\\/722221.jpg\"}', 'upc' => '715187734722', 'provider' => 'bestbuy'],\n ['name' => \"Merry Christmas from Wayne Newton - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/merry-christmas-from-wayne-newton-cd/722249.p?id=93275&skuId=722249&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722249', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7222\\/722249.jpg\"}', 'upc' => '715187734821', 'provider' => 'bestbuy'],\n ['name' => \"Christmas with Buck Owens and His Buckaroos - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-with-buck-owens-and-his-buckaroos-cd/722267.p?id=94217&skuId=722267&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722267', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0722\\/0722267_sa.jpg\"}', 'upc' => '715187734920', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Christmas Records - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-christmas-records-cd-various/722301.p?id=77628&skuId=722301&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722301', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7223\\/722301_sa.jpg\"}', 'upc' => '715187735125', 'provider' => 'bestbuy'],\n ['name' => \"Merle Haggard's Christmas Present - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/merle-haggards-christmas-present-cd/722310.p?id=84567&skuId=722310&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722310', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7223\\/722310_sa.jpg\"}', 'upc' => '715187735224', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb/Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-capitol-cd/722418.p?id=86663&skuId=722418&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722418', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7224\\/722418.jpg\"}', 'upc' => '715187735927', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Bill Medley - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-bill-medley-cd/722702.p?id=91321&skuId=722702&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722702', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7227\\/722702.jpg\"}', 'upc' => '715187730724', 'provider' => 'bestbuy'],\n ['name' => \"80's Country Hits of the Decade, Vol. 1 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/80s-country-hits-of-the-decade-vol-1-cd-various/722819.p?id=78858&skuId=722819&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722819', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7228\\/722819.jpg\"}', 'upc' => '715187731820', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb/Capitol] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-capitol-cd/722837.p?id=2642614&skuId=722837&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722837', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7228\\/722837_sa.jpg\"}', 'upc' => '715187732124', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Johnny Lee - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-johnny-lee-cd/722855.p?id=88955&skuId=722855&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722855', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7228\\/722855.jpg\"}', 'upc' => '715187732223', 'provider' => 'bestbuy'],\n ['name' => \"All-Time Greatest Hits of Rock & Roll, Vol. 1 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-greatest-hits-of-rock-roll-vol-1-cd-various/722873.p?id=96918&skuId=722873&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=722873', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7228\\/722873.jpg\"}', 'upc' => '715187732322', 'provider' => 'bestbuy'],\n ['name' => \"Bobby Vinton's Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bobby-vintons-greatest-hits-curb-cd/723006.p?id=103167&skuId=723006&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=723006', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7230\\/723006.jpg\"}', 'upc' => '715187725324', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Curb] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-curb-cd/723060.p?id=103411&skuId=723060&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=723060', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7230\\/723060_sa.jpg\"}', 'upc' => '715187726222', 'provider' => 'bestbuy'],\n ['name' => \"St. Cecelia Mass - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/st-cecelia-mass-cd/723612.p?id=1675579&skuId=723612&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=723612', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7236\\/723612.jpg\"}', 'upc' => '077774709422', 'provider' => 'bestbuy'],\n ['name' => \"Sawyer Brown - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sawyer-brown-cd/724069.p?id=97979&skuId=724069&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=724069', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7240\\/724069.jpg\"}', 'upc' => '715187758223', 'provider' => 'bestbuy'],\n ['name' => \"Konitz Meets Mulligan - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/konitz-meets-mulligan-cd/724130.p?id=68319&skuId=724130&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=724130', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0724\\/0724130_sa.jpg\"}', 'upc' => '077774684729', 'provider' => 'bestbuy'],\n ['name' => \"Modern Art: The Complete Art Pepper Aladdin... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/modern-art-the-complete-art-pepper-aladdin-cd/724149.p?id=69904&skuId=724149&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=724149', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7241\\/724149_sa.jpg\"}', 'upc' => '077774684828', 'provider' => 'bestbuy'],\n ['name' => \"Bach: Concertos for Two Violins, etc / Mutter, Accardo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bach-concertos-for-two-violins-etc-mutter-accardo-cd/724318.p?id=1683709&skuId=724318&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=724318', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0724\\/0724318_sa.jpg\"}', 'upc' => '077774700528', 'provider' => 'bestbuy'],\n ['name' => \"4 Seasons - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/4-seasons-cd/724416.p?id=1687566&skuId=724416&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=724416', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7244\\/724416_sa.jpg\"}', 'upc' => '077774704328', 'provider' => 'bestbuy'],\n ['name' => \"Blues Walk - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-walk-cd/724513.p?id=2466648&skuId=724513&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=724513', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0724\\/0724513_sa.jpg\"}', 'upc' => '077774652520', 'provider' => 'bestbuy'],\n ['name' => \"About Last Night [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/about-last-night-original-soundtrack-cd-original-soundtrack/724700.p?id=72335&skuId=724700&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=724700', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0724\\/0724700_sa.jpg\"}', 'upc' => '077774656023', 'provider' => 'bestbuy'],\n ['name' => \"Menlove Ave. - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/menlove-ave-cd/724808.p?id=89035&skuId=724808&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=724808', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7248\\/724808.jpg\"}', 'upc' => '077774657624', 'provider' => 'bestbuy'],\n ['name' => \"Duets - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/duets-cd/724835.p?id=97129&skuId=724835&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=724835', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7248\\/724835.jpg\"}', 'upc' => '077774659529', 'provider' => 'bestbuy'],\n ['name' => \"Pianism - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pianism-cd/725022.p?id=70014&skuId=725022&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=725022', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7250\\/725022_sa.jpg\"}', 'upc' => '077774629522', 'provider' => 'bestbuy'],\n ['name' => \"Entre a Mi Mundo: Selena 20 Years of Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/entre-a-mi-mundo-selena-20-years-of-music-cd/726307.p?id=248641&skuId=726307&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=726307', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0726\\/0726307_sa.jpg\"}', 'upc' => '077774263528', 'provider' => 'bestbuy'],\n ['name' => \"Lo Hare Por Ti - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lo-hare-por-ti-cd/726744.p?id=90939&skuId=726744&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=726744', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0726\\/0726744_sa.jpg\"}', 'upc' => '077774259323', 'provider' => 'bestbuy'],\n ['name' => \"Live!! Una Noche Juntos - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-una-noche-juntos-cd/727850.p?id=90949&skuId=727850&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=727850', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0727\\/0727850_sa.jpg\"}', 'upc' => '077774254922', 'provider' => 'bestbuy'],\n ['name' => \"Ven Conmigo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ven-conmigo-cd/731015.p?id=253131&skuId=731015&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=731015', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7310\\/731015.jpg\"}', 'upc' => '077774235921', 'provider' => 'bestbuy'],\n ['name' => \"Capitol Collectors Series - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/capitol-collectors-series-cd/733433.p?id=89090&skuId=733433&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=733433', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7334\\/733433.jpg\"}', 'upc' => '077779853724', 'provider' => 'bestbuy'],\n ['name' => \"Gold Buckle Dreams - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gold-buckle-dreams-cd/734058.p?id=88908&skuId=734058&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=734058', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7340\\/734058_sa.jpg\"}', 'upc' => '077779686926', 'provider' => 'bestbuy'],\n ['name' => \"Chris Ledoux and the Saddle Boogie Band - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chris-ledoux-and-the-saddle-boogie-band-cd/734076.p?id=88906&skuId=734076&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=734076', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0734\\/0734076_sa.jpg\"}', 'upc' => '077779687022', 'provider' => 'bestbuy'],\n ['name' => \"Radio & Rodeo Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/radio-rodeo-hits-cd/734539.p?id=88916&skuId=734539&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=734539', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0734\\/0734539_sa.jpg\"}', 'upc' => '077779659326', 'provider' => 'bestbuy'],\n ['name' => \"Rodeo Songs \\\"Old & New\\\" - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rodeo-songs-old-new-cd/734557.p?id=88918&skuId=734557&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=734557', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7345\\/734557_sa.jpg\"}', 'upc' => '077779659425', 'provider' => 'bestbuy'],\n ['name' => \"At Last - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-last-cd/736993.p?id=67231&skuId=736993&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=736993', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0736\\/0736993_sa.jpg\"}', 'upc' => '013431443421', 'provider' => 'bestbuy'],\n ['name' => \"For the Duration - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-the-duration-cd/737091.p?id=65024&skuId=737091&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737091', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0737\\/0737091_sa.jpg\"}', 'upc' => '013431444428', 'provider' => 'bestbuy'],\n ['name' => \"Retrospective, Vol. 1: Standards - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/retrospective-vol-1-standards-cd/737171.p?id=70304&skuId=737171&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737171', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7371\\/737171.jpg\"}', 'upc' => '013431445326', 'provider' => 'bestbuy'],\n ['name' => \"Live at Maybeck Recital Hall, Vol. 9 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-maybeck-recital-hall-vol-9-cd/737242.p?id=69004&skuId=737242&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737242', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7372\\/737242_sa.jpg\"}', 'upc' => '013431446026', 'provider' => 'bestbuy'],\n ['name' => \"Classics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classics-cd/737260.p?id=66447&skuId=737260&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737260', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7372\\/737260_sa.jpg\"}', 'upc' => '013431446224', 'provider' => 'bestbuy'],\n ['name' => \"Shadows 'N Dreams - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shadows-n-dreams-cd/737313.p?id=68948&skuId=737313&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737313', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0737\\/0737313_sa.jpg\"}', 'upc' => '013431446729', 'provider' => 'bestbuy'],\n ['name' => \"The Bossa Nova Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-bossa-nova-years-cd/737322.p?id=64755&skuId=737322&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737322', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0737\\/0737322_sa.jpg\"}', 'upc' => '013431446828', 'provider' => 'bestbuy'],\n ['name' => \"A Night at Kimball's East - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-night-at-kimballs-east-cd/737368.p?id=70598&skuId=737368&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737368', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0737\\/0737368_sa.jpg\"}', 'upc' => '013431447221', 'provider' => 'bestbuy'],\n ['name' => \"Sambahia - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sambahia-cd/737386.p?id=69085&skuId=737386&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737386', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0737\\/0737386_sa.jpg\"}', 'upc' => '013431447429', 'provider' => 'bestbuy'],\n ['name' => \"A Vintage Year - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-vintage-year-cd/737457.p?id=71503&skuId=737457&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737457', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0737\\/0737457_sa.jpg\"}', 'upc' => '013431434122', 'provider' => 'bestbuy'],\n ['name' => \"Salsa Meets Jazz - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/salsa-meets-jazz-cd/737554.p?id=70190&skuId=737554&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737554', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7375\\/737554_sa.jpg\"}', 'upc' => '013431435426', 'provider' => 'bestbuy'],\n ['name' => \"Only Trust Your Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/only-trust-your-heart-cd/737563.p?id=71387&skuId=737563&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737563', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7375\\/737563_sa.jpg\"}', 'upc' => '013431435525', 'provider' => 'bestbuy'],\n ['name' => \"East to Wes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/east-to-wes-cd/737572.p?id=70302&skuId=737572&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737572', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7375\\/737572_sa.jpg\"}', 'upc' => '013431435624', 'provider' => 'bestbuy'],\n ['name' => \"No More Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/no-more-blues-cd/737705.p?id=2472689&skuId=737705&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737705', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7377\\/737705_sa.jpg\"}', 'upc' => '013431437024', 'provider' => 'bestbuy'],\n ['name' => \"Listen Here! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/listen-here-cd/737858.p?id=67227&skuId=737858&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737858', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7378\\/737858_sa.jpg\"}', 'upc' => '013431438526', 'provider' => 'bestbuy'],\n ['name' => \"Soular Energy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/soular-energy-cd/737885.p?id=64604&skuId=737885&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737885', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7378\\/737885_sa.jpg\"}', 'upc' => '013431426820', 'provider' => 'bestbuy'],\n ['name' => \"Grand Piano - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/grand-piano-cd/737929.p?id=70848&skuId=737929&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737929', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0737\\/0737929_sa.jpg\"}', 'upc' => '013431428121', 'provider' => 'bestbuy'],\n ['name' => \"Mambo Diablo [Concord Picante] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mambo-diablo-concord-picante-cd/737938.p?id=70188&skuId=737938&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737938', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7379\\/737938_sa.jpg\"}', 'upc' => '013431428329', 'provider' => 'bestbuy'],\n ['name' => \"El Conguero - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/el-conguero-cd/737965.p?id=70604&skuId=737965&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737965', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0737\\/0737965_sa.jpg\"}', 'upc' => '013431428626', 'provider' => 'bestbuy'],\n ['name' => \"Tango: Laurindo Almeida and Charlie Byrd - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tango-laurindo-almeida-and-charlie-byrd-cd/737992.p?id=2283174&skuId=737992&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=737992', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7379\\/737992.jpg\"}', 'upc' => '013431429029', 'provider' => 'bestbuy'],\n ['name' => \"Dancing in the Dark - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dancing-in-the-dark-cd/738009.p?id=68944&skuId=738009&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738009', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7380\\/738009_sa.jpg\"}', 'upc' => '013431429227', 'provider' => 'bestbuy'],\n ['name' => \"An Elegant Evening - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/an-elegant-evening-cd/738018.p?id=70840&skuId=738018&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738018', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0738\\/0738018_sa.jpg\"}', 'upc' => '013431429425', 'provider' => 'bestbuy'],\n ['name' => \"The Gene Harris Trio Plus One - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-gene-harris-trio-plus-one-cd/738063.p?id=67228&skuId=738063&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738063', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7380\\/738063_sa.jpg\"}', 'upc' => '013431430322', 'provider' => 'bestbuy'],\n ['name' => \"Sings the Music of Jimmy Van Heusen - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sings-the-music-of-jimmy-van-heusen-cd/738081.p?id=65033&skuId=738081&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738081', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0738\\/0738081_sa.jpg\"}', 'upc' => '013431430827', 'provider' => 'bestbuy'],\n ['name' => \"Papa Gato - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/papa-gato-cd/738107.p?id=70609&skuId=738107&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738107', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0738\\/0738107_sa.jpg\"}', 'upc' => '013431431022', 'provider' => 'bestbuy'],\n ['name' => \"Blue Rondo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-rondo-cd/738170.p?id=64641&skuId=738170&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738170', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7381\\/738170_sa.jpg\"}', 'upc' => '013431431725', 'provider' => 'bestbuy'],\n ['name' => \"Un Poco Loco - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/un-poco-loco-cd/738223.p?id=70192&skuId=738223&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738223', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0738\\/0738223_sa.jpg\"}', 'upc' => '013431432920', 'provider' => 'bestbuy'],\n ['name' => \"Tribute to Count Basie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tribute-to-count-basie-cd/738287.p?id=67223&skuId=738287&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738287', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7382\\/738287_sa.jpg\"}', 'upc' => '013431433729', 'provider' => 'bestbuy'],\n ['name' => \"Rosemary Clooney Sings the Music of Cole Porter - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rosemary-clooney-sings-the-music-of-cole-porter-cd/738456.p?id=65035&skuId=738456&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738456', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7384\\/738456_sa.jpg\"}', 'upc' => '013431418528', 'provider' => 'bestbuy'],\n ['name' => \"Pure Getz - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pure-getz-cd/738465.p?id=66616&skuId=738465&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738465', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0738\\/0738465_sa.jpg\"}', 'upc' => '013431418825', 'provider' => 'bestbuy'],\n ['name' => \"Heatwave - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heatwave-cd/738474.p?id=71464&skuId=738474&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738474', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7384\\/738474_sa.jpg\"}', 'upc' => '013431418924', 'provider' => 'bestbuy'],\n ['name' => \"An Evening With George Shearing & Mel Torme - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/an-evening-with-george-shearing-mel-torme-cd/738483.p?id=70839&skuId=738483&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738483', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0738\\/0738483_sa.jpg\"}', 'upc' => '013431419020', 'provider' => 'bestbuy'],\n ['name' => \"Keystone 3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/keystone-3-cd/738517.p?id=64351&skuId=738517&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738517', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0738\\/0738517_sa.jpg\"}', 'upc' => '013431419624', 'provider' => 'bestbuy'],\n ['name' => \"Concord on a Summer Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/concord-on-a-summer-night-cd/738535.p?id=64642&skuId=738535&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738535', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0738\\/0738535_sa.jpg\"}', 'upc' => '013431419822', 'provider' => 'bestbuy'],\n ['name' => \"Come with Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/come-with-me-cd/738553.p?id=68787&skuId=738553&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738553', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7385\\/738553_sa.jpg\"}', 'upc' => '013431420026', 'provider' => 'bestbuy'],\n ['name' => \"On Broadway - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/on-broadway-cd/738571.p?id=70189&skuId=738571&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738571', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0738\\/0738571_sa.jpg\"}', 'upc' => '013431420729', 'provider' => 'bestbuy'],\n ['name' => \"Top Drawer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/top-drawer-cd/738615.p?id=70866&skuId=738615&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738615', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0738\\/0738615_sa.jpg\"}', 'upc' => '013431421924', 'provider' => 'bestbuy'],\n ['name' => \"Sweet Baby Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sweet-baby-blues-cd/738713.p?id=64932&skuId=738713&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738713', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7387\\/738713_sa.jpg\"}', 'upc' => '013431425823', 'provider' => 'bestbuy'],\n ['name' => \"For Iola - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-iola-cd/738722.p?id=64618&skuId=738722&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738722', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0738\\/0738722_sa.jpg\"}', 'upc' => '013431425922', 'provider' => 'bestbuy'],\n ['name' => \"A Sign of the Times - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-sign-of-the-times-cd/738811.p?id=66183&skuId=738811&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738811', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0738\\/0738811_sa.jpg\"}', 'upc' => '013431402626', 'provider' => 'bestbuy'],\n ['name' => \"Everything's Coming Up Rosie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/everythings-coming-up-rosie-cd/738900.p?id=65023&skuId=738900&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738900', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7389\\/738900_sa.jpg\"}', 'upc' => '013431404729', 'provider' => 'bestbuy'],\n ['name' => \"Blue Byrd - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-byrd-cd/738982.p?id=2305292&skuId=738982&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=738982', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7389\\/738982.jpg\"}', 'upc' => '013431408222', 'provider' => 'bestbuy'],\n ['name' => \"Rosemary Clooney Sings the Songs of Ira Gershwin - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rosemary-clooney-sings-the-songs-of-ira-gershwin-cd/739080.p?id=65037&skuId=739080&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=739080', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7390\\/739080.jpg\"}', 'upc' => '013431411222', 'provider' => 'bestbuy'],\n ['name' => \"La Onda Va Bien - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/la-onda-va-bien-cd/739099.p?id=71451&skuId=739099&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=739099', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7390\\/739099_sa.jpg\"}', 'upc' => '013431411321', 'provider' => 'bestbuy'],\n ['name' => \"Tenorshoes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tenorshoes-cd/739142.p?id=67110&skuId=739142&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=739142', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7391\\/739142_sa.jpg\"}', 'upc' => '013431412724', 'provider' => 'bestbuy'],\n ['name' => \"Two For The Road - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-for-the-road-cd/739151.p?id=70867&skuId=739151&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=739151', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7391\\/739151.jpg\"}', 'upc' => '013431412823', 'provider' => 'bestbuy'],\n ['name' => \"Plays Music of Cole Porter - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/plays-music-of-cole-porter-cd/741932.p?id=70862&skuId=741932&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=741932', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7419\\/741932_sa.jpg\"}', 'upc' => '013431201021', 'provider' => 'bestbuy'],\n ['name' => \"Moore Makes 4 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moore-makes-4-cd/742030.p?id=64608&skuId=742030&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=742030', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7420\\/742030_sa.jpg\"}', 'upc' => '013431447726', 'provider' => 'bestbuy'],\n ['name' => \"Sabor Flamenco - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sabor-flamenco-cd/742156.p?id=70764&skuId=742156&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=742156', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0742\\/0742156_sa.jpg\"}', 'upc' => '013431449027', 'provider' => 'bestbuy'],\n ['name' => \"I'LL Take Romance - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ill-take-romance-cd/742165.p?id=2305248&skuId=742165&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=742165', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0742\\/0742165_sa.jpg\"}', 'upc' => '013431449126', 'provider' => 'bestbuy'],\n ['name' => \"Live at Maybeck Recital Hall, Vol. 16 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-maybeck-recital-hall-vol-16-cd/742245.p?id=68054&skuId=742245&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=742245', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7422\\/742245.jpg\"}', 'upc' => '013431450221', 'provider' => 'bestbuy'],\n ['name' => \"Hand-Crafted Swing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hand-crafted-swing-cd/742352.p?id=63597&skuId=742352&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=742352', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7423\\/742352_sa.jpg\"}', 'upc' => '013431451327', 'provider' => 'bestbuy'],\n ['name' => \"Great Guitars - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/great-guitars-cd/742469.p?id=64758&skuId=742469&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=742469', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0742\\/0742469_sa.jpg\"}', 'upc' => '013431600428', 'provider' => 'bestbuy'],\n ['name' => \"Goza Mi Timbal - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/goza-mi-timbal-cd/742619.p?id=70174&skuId=742619&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=742619', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7426\\/742619_sa.jpg\"}', 'upc' => '013431439929', 'provider' => 'bestbuy'],\n ['name' => \"Chile con Soul - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chile-con-soul-cd/742673.p?id=70603&skuId=742673&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=742673', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7426\\/742673_sa.jpg\"}', 'upc' => '013431440628', 'provider' => 'bestbuy'],\n ['name' => \"Live at Maybeck Recital Hall, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-maybeck-recital-hall-vol-2-cd/742717.p?id=68946&skuId=742717&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=742717', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7427\\/742717.jpg\"}', 'upc' => '013431441021', 'provider' => 'bestbuy'],\n ['name' => \"Music of 1937 (Maybeck Recital Hall Series,... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-of-1937-maybeck-recital-hall-series-cd/742762.p?id=67687&skuId=742762&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=742762', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7427\\/742762_sa.jpg\"}', 'upc' => '013431441526', 'provider' => 'bestbuy'],\n ['name' => \"Sabia - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sabia-cd/742799.p?id=68905&skuId=742799&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=742799', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7427\\/742799_sa.jpg\"}', 'upc' => '013431441823', 'provider' => 'bestbuy'],\n ['name' => \"Summer Wind: Live at the Loa - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/summer-wind-live-at-the-loa-cd/742879.p?id=2390152&skuId=742879&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=742879', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7428\\/742879.jpg\"}', 'upc' => '013431442622', 'provider' => 'bestbuy'],\n ['name' => \"Hear It Is - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hear-it-is-cd/745830.p?id=82371&skuId=745830&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=745830', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7458\\/745830_sa.jpg\"}', 'upc' => '018777217323', 'provider' => 'bestbuy'],\n ['name' => \"What a Life! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/what-a-life-cd/746688.p?id=2018796&skuId=746688&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=746688', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0746\\/0746688_sa.jpg\"}', 'upc' => '094632151124', 'provider' => 'bestbuy'],\n ['name' => \"Joseph and the Amazing Technicolor Dreamcoat... - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/joseph-and-the-amazing-technicolor-dreamcoat-cd-original-cast-recording/747240.p?id=87417&skuId=747240&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=747240', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0747\\/0747240_sa.jpg\"}', 'upc' => '094632138729', 'provider' => 'bestbuy'],\n ['name' => \"Christmas with Mahalia [CBS] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-with-mahalia-cbs-cd/748105.p?id=86497&skuId=748105&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=748105', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7481\\/748105.jpg\"}', 'upc' => '074640972720', 'provider' => 'bestbuy'],\n ['name' => \"Give Me Your Love for Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/give-me-your-love-for-christmas-cd/748294.p?id=90794&skuId=748294&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=748294', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7482\\/748294.jpg\"}', 'upc' => '074640992322', 'provider' => 'bestbuy'],\n ['name' => \"Somewhere My Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/somewhere-my-love-cd/748588.p?id=78566&skuId=748588&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=748588', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7485\\/748588_sa.jpg\"}', 'upc' => '074640931925', 'provider' => 'bestbuy'],\n ['name' => \"We Wish You a Merry Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/we-wish-you-a-merry-christmas-cd/749113.p?id=78569&skuId=749113&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=749113', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7491\\/749113_sa.jpg\"}', 'upc' => '074640869228', 'provider' => 'bestbuy'],\n ['name' => \"The Andy Williams Christmas Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-andy-williams-christmas-album-cd/749239.p?id=104060&skuId=749239&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=749239', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7492\\/749239_sa.jpg\"}', 'upc' => '074640888724', 'provider' => 'bestbuy'],\n ['name' => \"All Time Great Polkas: Frankie Yankovic Plays... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-great-polkas-frankie-yankovic-plays-cd/749756.p?id=104893&skuId=749756&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=749756', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7497\\/749756.JPG\"}', 'upc' => '886972571423', 'provider' => 'bestbuy'],\n ['name' => \"Christmas with Conniff - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-with-conniff-cd/749765.p?id=78555&skuId=749765&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=749765', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0749\\/0749765_sa.jpg\"}', 'upc' => '074640818523', 'provider' => 'bestbuy'],\n ['name' => \"Head to the Sky - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/head-to-the-sky-cd/751252.p?id=81248&skuId=751252&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=751252', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7512\\/751252_sa.jpg\"}', 'upc' => '074643219426', 'provider' => 'bestbuy'],\n ['name' => \"Barbra Streisand...and Other Musical Instruments - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/barbra-streisand-and-other-musical-instruments-cd/751699.p?id=100592&skuId=751699&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=751699', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0751\\/0751699_sa.jpg\"}', 'upc' => '074643265522', 'provider' => 'bestbuy'],\n ['name' => \"Ian Hunter - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ian-hunter-cd/752206.p?id=85943&skuId=752206&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=752206', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7522\\/752206_sa.jpg\"}', 'upc' => '074643348027', 'provider' => 'bestbuy'],\n ['name' => \"Fillmore: The Last Days - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fillmore-the-last-days-cd-various/752876.p?id=82214&skuId=752876&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=752876', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0752\\/0752876_sa.jpg\"}', 'upc' => '074643139021', 'provider' => 'bestbuy'],\n ['name' => \"From the Inside - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/from-the-inside-cd/753786.p?id=95083&skuId=753786&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=753786', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7537\\/753786_sa.jpg\"}', 'upc' => '074643075329', 'provider' => 'bestbuy'],\n ['name' => \"We Shall Overcome: The Complete Carnegie Hall... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/we-shall-overcome-the-complete-carnegie-hall-cd/754507.p?id=98277&skuId=754507&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=754507', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0754\\/0754507_sa.jpg\"}', 'upc' => '074644531220', 'provider' => 'bestbuy'],\n ['name' => \"The Creole Christmas - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-creole-christmas-cd-various/754767.p?id=77609&skuId=754767&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=754767', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0754\\/0754767_sa.jpg\"}', 'upc' => '074644704525', 'provider' => 'bestbuy'],\n ['name' => \"Harpin' the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/harpin-the-blues-cd/754927.p?id=91088&skuId=754927&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=754927', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7549\\/754927.jpg\"}', 'upc' => '074644708721', 'provider' => 'bestbuy'],\n ['name' => \"Complete Piano Trios - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 48.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/complete-piano-trios-cd/756248.p?id=1693298&skuId=756248&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=756248', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0756\\/0756248_sa.jpg\"}', 'upc' => '074644673821', 'provider' => 'bestbuy'],\n ['name' => \"Agharta - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/agharta-cd/756471.p?id=65513&skuId=756471&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=756471', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0756\\/0756471_sa.jpg\"}', 'upc' => '074644679922', 'provider' => 'bestbuy'],\n ['name' => \"Ionisation - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ionisation-cd/760171.p?id=1675736&skuId=760171&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=760171', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7601\\/760171.jpg\"}', 'upc' => '074644584424', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Big Bands - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-big-bands-cd/760714.p?id=67829&skuId=760714&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=760714', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0760\\/0760714_sa.jpg\"}', 'upc' => '074644534122', 'provider' => 'bestbuy'],\n ['name' => \"Best of the Big Bands - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-the-big-bands-cd/760741.p?id=64585&skuId=760741&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=760741', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7607\\/760741.jpg\"}', 'upc' => '074644534429', 'provider' => 'bestbuy'],\n ['name' => \"Concertos For 2 & 3 Pianos - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/concertos-for-2-3-pianos-cd/767281.p?id=1684342&skuId=767281&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=767281', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0767\\/0767281_sa.jpg\"}', 'upc' => '074644491524', 'provider' => 'bestbuy'],\n ['name' => \"Benny Goodman Sextet Featuring Charlie Christian - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/benny-goodman-sextet-featuring-charlie-christian-cd/767441.p?id=66811&skuId=767441&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=767441', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7674\\/767441_sa.jpg\"}', 'upc' => '074644514421', 'provider' => 'bestbuy'],\n ['name' => \"Supp¿: Overtures / Zubin Mehta, Wiener Philharmoniker - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/supp-overtures-zubin-mehta-wiener-philharmoniker-cd/767842.p?id=1675709&skuId=767842&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=767842', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7678\\/767842.jpg\"}', 'upc' => '074644493221', 'provider' => 'bestbuy'],\n ['name' => \"Metropolis [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metropolis-original-soundtrack-cd-original-soundtrack/769724.p?id=91545&skuId=769724&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=769724', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0769\\/0769724_sa.jpg\"}', 'upc' => '074643952620', 'provider' => 'bestbuy'],\n ['name' => \"Starchild - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/starchild-cd/769751.p?id=90569&skuId=769751&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=769751', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7697\\/769751.jpg\"}', 'upc' => '074643952828', 'provider' => 'bestbuy'],\n ['name' => \"Yentl - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/yentl-cd-original-soundtrack/770419.p?id=104968&skuId=770419&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=770419', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7704\\/770419_sa.jpg\"}', 'upc' => '074643915229', 'provider' => 'bestbuy'],\n ['name' => \"Christmas Sing-Along with Mitch - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-sing-along-with-mitch-cd/772989.p?id=91713&skuId=772989&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=772989', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0772\\/0772989_sa.jpg\"}', 'upc' => '074643829823', 'provider' => 'bestbuy'],\n ['name' => \"Christmas with Johnny Mathis - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-with-johnny-mathis-cd/773069.p?id=90790&skuId=773069&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=773069', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7730\\/773069_sa.jpg\"}', 'upc' => '074643830621', 'provider' => 'bestbuy'],\n ['name' => \"Symphonic Variations - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/symphonic-variations-cd/773185.p?id=1675684&skuId=773185&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=773185', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7731\\/773185.jpg\"}', 'upc' => '074643781220', 'provider' => 'bestbuy'],\n ['name' => \"Concert For Violin, Piano & String Quartet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/concert-for-violin-piano-string-quartet-cd/773210.p?id=1684284&skuId=773210&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=773210', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0773\\/0773210_sa.jpg\"}', 'upc' => '074643781428', 'provider' => 'bestbuy'],\n ['name' => \"The Jacksons: Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-jacksons-live-cd/774086.p?id=1818899&skuId=774086&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=774086', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7740\\/774086.jpg\"}', 'upc' => '886972789620', 'provider' => 'bestbuy'],\n ['name' => \"Gershwin Live! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gershwin-live-cd/774567.p?id=1692873&skuId=774567&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=774567', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0774\\/0774567_sa.jpg\"}', 'upc' => '074643727723', 'provider' => 'bestbuy'],\n ['name' => \"I've Got the Rock'n'Rolls Again - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ive-got-the-rocknrolls-again-cd/774807.p?id=94723&skuId=774807&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=774807', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7748\\/774807.jpg\"}', 'upc' => '074643736428', 'provider' => 'bestbuy'],\n ['name' => \"Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-cd/776841.p?id=92371&skuId=776841&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=776841', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0776\\/0776841_sa.jpg\"}', 'upc' => '074643597623', 'provider' => 'bestbuy'],\n ['name' => \"Muddy \\\"Mississippi\\\" Waters Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/muddy-mississippi-waters-live-cd/777243.p?id=2293095&skuId=777243&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=777243', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0777\\/0777243_sa.jpg\"}', 'upc' => '074643571227', 'provider' => 'bestbuy'],\n ['name' => \"Restless Nights - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/restless-nights-cd/777350.p?id=75494&skuId=777350&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=777350', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0777\\/0777350_sa.jpg\"}', 'upc' => '074643579926', 'provider' => 'bestbuy'],\n ['name' => \"Writer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/writer-cd/778091.p?id=87964&skuId=778091&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=778091', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7780\\/778091_sa.jpg\"}', 'upc' => '074643494427', 'provider' => 'bestbuy'],\n ['name' => \"Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-cd/778108.p?id=87958&skuId=778108&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=778108', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0778\\/0778108_sa.jpg\"}', 'upc' => '074643494922', 'provider' => 'bestbuy'],\n ['name' => \"Thoroughbred - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thoroughbred-cd/778162.p?id=87962&skuId=778162&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=778162', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7781\\/778162_sa.jpg\"}', 'upc' => '074643496322', 'provider' => 'bestbuy'],\n ['name' => \"Rejoice - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rejoice-cd/778778.p?id=81548&skuId=778778&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=778778', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0778\\/0778778_sa.jpg\"}', 'upc' => '074643476225', 'provider' => 'bestbuy'],\n ['name' => \"Trombone Master - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/trombone-master-cd/780391.p?id=68016&skuId=780391&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=780391', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7803\\/780391_sa.jpg\"}', 'upc' => '074644444322', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [Monument] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-monument-cd/781336.p?id=91087&skuId=781336&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=781336', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0781\\/0781336_sa.jpg\"}', 'upc' => '079894435328', 'provider' => 'bestbuy'],\n ['name' => \"Big Deal - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-deal-cd/782193.p?id=273705&skuId=782193&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=782193', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '074644409826', 'provider' => 'bestbuy'],\n ['name' => \"Harlem Lament - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/harlem-lament-cd/782264.p?id=67449&skuId=782264&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=782264', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7822\\/782264.jpg\"}', 'upc' => '074644411928', 'provider' => 'bestbuy'],\n ['name' => \"Symphony In 3 Movements - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/symphony-in-3-movements-cd/782353.p?id=1675625&skuId=782353&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=782353', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0782\\/0782353_sa.jpg\"}', 'upc' => '074644243420', 'provider' => 'bestbuy'],\n ['name' => \"Cello Sonata 4 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cello-sonata-4-cd/784119.p?id=1676835&skuId=784119&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=784119', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0784\\/0784119_sa.jpg\"}', 'upc' => '074644212129', 'provider' => 'bestbuy'],\n ['name' => \"Bigger & Deffer [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bigger-deffer-pa-cd/784681.p?id=89490&skuId=784681&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=784681', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7846\\/784681_sa.jpg\"}', 'upc' => '731452735324', 'provider' => 'bestbuy'],\n ['name' => \"Refuge Denied - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/refuge-denied-cd/785216.p?id=97845&skuId=785216&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=785216', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0785\\/0785216_sa.jpg\"}', 'upc' => '074644092028', 'provider' => 'bestbuy'],\n ['name' => \"Libra - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/libra-cd/786590.p?id=86082&skuId=786590&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=786590', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7865\\/786590.jpg\"}', 'upc' => '074644018028', 'provider' => 'bestbuy'],\n ['name' => \"17 Most Requested Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/17-most-requested-songs-cd/787250.p?id=102885&skuId=787250&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=787250', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7872\\/787250.jpg\"}', 'upc' => '074644021622', 'provider' => 'bestbuy'],\n ['name' => \"Two Steps from the Move - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-steps-from-the-move-cd/787633.p?id=84764&skuId=787633&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=787633', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7876\\/787633_sa.jpg\"}', 'upc' => '074643961424', 'provider' => 'bestbuy'],\n ['name' => \"Dream of a Lifetime - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dream-of-a-lifetime-cd/788259.p?id=83387&skuId=788259&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=788259', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7882\\/788259_sa.jpg\"}', 'upc' => '074643991629', 'provider' => 'bestbuy'],\n ['name' => \"Columbia Historic Edition - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/columbia-historic-edition-cd/788464.p?id=72444&skuId=788464&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=788464', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0788\\/0788464_sa.jpg\"}', 'upc' => '074643999823', 'provider' => 'bestbuy'],\n ['name' => \"From Rocky Top to Muddy Bottom - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/from-rocky-top-to-muddy-bottom-cd/788767.p?id=287321&skuId=788767&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=788767', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0788\\/0788767_sa.jpg\"}', 'upc' => '027297900820', 'provider' => 'bestbuy'],\n ['name' => \"The Bluegrass Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-bluegrass-collection-cd/788794.p?id=94109&skuId=788794&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=788794', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0788\\/0788794_sa.jpg\"}', 'upc' => '027297901124', 'provider' => 'bestbuy'],\n ['name' => \"24 Greatest Bluegrass Hits - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/24-greatest-bluegrass-hits-cd-various/788801.p?id=287307&skuId=788801&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=788801', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0788\\/0788801_sa.jpg\"}', 'upc' => '027297901223', 'provider' => 'bestbuy'],\n ['name' => \"The Essential Bluegrass Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-essential-bluegrass-album-cd/788847.p?id=94111&skuId=788847&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=788847', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0788\\/0788847_sa.jpg\"}', 'upc' => '027297901629', 'provider' => 'bestbuy'],\n ['name' => \"Merle Travis Story: 24 Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/merle-travis-story-24-greatest-hits-cd/788865.p?id=102182&skuId=788865&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=788865', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0788\\/0788865_sa.jpg\"}', 'upc' => '027297901827', 'provider' => 'bestbuy'],\n ['name' => \"The Jim & Jesse Story: 24 Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-jim-jesse-story-24-greatest-hits-cd/788892.p?id=1548484&skuId=788892&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=788892', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0788\\/0788892_sa.jpg\"}', 'upc' => '027297902220', 'provider' => 'bestbuy'],\n ['name' => \"The Texas Fiddle Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-texas-fiddle-collection-cd/788918.p?id=83654&skuId=788918&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=788918', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0788\\/0788918_sa.jpg\"}', 'upc' => '027297902725', 'provider' => 'bestbuy'],\n ['name' => \"50 Years of Bluegrass Hits, Vol. 2 [1995] - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/50-years-of-bluegrass-hits-vol-2-1995-various-cd/788954.p?id=75176&skuId=788954&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=788954', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7889\\/788954.jpg\"}', 'upc' => '027297903425', 'provider' => 'bestbuy'],\n ['name' => \"50 Years of Bluegrass Hits, Vol. 3 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/50-years-of-bluegrass-hits-vol-3-cd-various/788972.p?id=75177&skuId=788972&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=788972', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0788\\/0788972_sa.jpg\"}', 'upc' => '027297903524', 'provider' => 'bestbuy'],\n ['name' => \"50 Years of Bluegrass Hits, Vol. 4 [1995] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/50-years-of-bluegrass-hits-vol-4-1995-cd-various/788990.p?id=245450&skuId=788990&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=788990', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7889\\/788990.jpg\"}', 'upc' => '027297903623', 'provider' => 'bestbuy'],\n ['name' => \"Fiddlers' Hall of Fame: 28 Old-Time Swing &... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fiddlers-hall-of-fame-28-old-time-swing-cd-various/789016.p?id=82152&skuId=789016&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=789016', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0789\\/0789016_sa.jpg\"}', 'upc' => '027297903722', 'provider' => 'bestbuy'],\n ['name' => \"Grassroots to Bluegrass - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/grassroots-to-bluegrass-cd/789070.p?id=104573&skuId=789070&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=789070', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7890\\/789070_sa.jpg\"}', 'upc' => '027297904125', 'provider' => 'bestbuy'],\n ['name' => \"Country Guitar Thunder (1977-1981) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/country-guitar-thunder-1977-1981-cd/789150.p?id=287310&skuId=789150&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=789150', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0789\\/0789150_sa.jpg\"}', 'upc' => '027297490123', 'provider' => 'bestbuy'],\n ['name' => \"World's Greatest Bluegrass Pickers - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/worlds-greatest-bluegrass-pickers-cd-various/789212.p?id=287305&skuId=789212&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=789212', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7892\\/789212_sa.jpg\"}', 'upc' => '027297590526', 'provider' => 'bestbuy'],\n ['name' => \"Dixie Fried - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dixie-fried-cd/789338.p?id=72488&skuId=789338&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=789338', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7893\\/789338_sa.jpg\"}', 'upc' => '027297627024', 'provider' => 'bestbuy'],\n ['name' => \"Freddie Freeloader - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/freddie-freeloader-cd/790996.p?id=67360&skuId=790996&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=790996', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7909\\/790996.jpg\"}', 'upc' => '081757630221', 'provider' => 'bestbuy'],\n ['name' => \"Catalogue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/catalogue-cd/792896.p?id=86021&skuId=792896&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=792896', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0792\\/0792896_sa.jpg\"}', 'upc' => '024596103327', 'provider' => 'bestbuy'],\n ['name' => \"Plague Mass (1984 End of the Epidemic) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/plague-mass-1984-end-of-the-epidemic-cd/792958.p?id=83187&skuId=792958&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=792958', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0792\\/0792958_sa.jpg\"}', 'upc' => '024596104324', 'provider' => 'bestbuy'],\n ['name' => \"Estrangeiro - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/estrangeiro-cd/793699.p?id=103062&skuId=793699&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=793699', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0793\\/0793699_sa.jpg\"}', 'upc' => '075596089821', 'provider' => 'bestbuy'],\n ['name' => \"Still the One - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/still-the-one-cd/793733.p?id=94084&skuId=793733&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=793733', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7937\\/793733.jpg\"}', 'upc' => '075596090926', 'provider' => 'bestbuy'],\n ['name' => \"Robin Holcomb - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/robin-holcomb-cd/793877.p?id=85474&skuId=793877&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=793877', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/7938\\/793877.jpg\"}', 'upc' => '075596098328', 'provider' => 'bestbuy'],\n ['name' => \"Authentic Sound Effects, Vol. 2 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/authentic-sound-effects-vol-2-cd-various/794108.p?id=99610&skuId=794108&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=794108', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7941\\/794108_sa.jpg\"}', 'upc' => '075596073226', 'provider' => 'bestbuy'],\n ['name' => \"Authentic Sound Effects, Vol. 3 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/authentic-sound-effects-vol-3-cd-various/794117.p?id=99611&skuId=794117&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=794117', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0794\\/0794117_sa.jpg\"}', 'upc' => '075596073325', 'provider' => 'bestbuy'],\n ['name' => \"I Commit to Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-commit-to-love-cd/794849.p?id=85306&skuId=794849&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=794849', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0794\\/0794849_sa.jpg\"}', 'upc' => '075596048729', 'provider' => 'bestbuy'],\n ['name' => \"All-Stars of Polkaland, USA - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-stars-of-polkaland-usa-cd/798113.p?id=95156&skuId=798113&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=798113', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0798\\/0798113_sa.jpg\"}', 'upc' => '012676024921', 'provider' => 'bestbuy'],\n ['name' => \"Reel to Reel [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reel-to-reel-pa-cd/799005.p?id=84035&skuId=799005&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=799005', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7990\\/799005_sa.jpg\"}', 'upc' => '075596131421', 'provider' => 'bestbuy'],\n ['name' => \"John Adams: Nixon in China - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/john-adams-nixon-in-china-cd/799274.p?id=2193526&skuId=799274&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=799274', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/7992\\/799274_sa.jpg\"}', 'upc' => '075597917727', 'provider' => 'bestbuy'],\n ['name' => \"Music for Two Guitars - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-for-two-guitars-cd/800592.p?id=2275425&skuId=800592&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=800592', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0800\\/0800592_sa.jpg\"}', 'upc' => '075597911626', 'provider' => 'bestbuy'],\n ['name' => \"Japan: Traditional Vocal and Instrumental Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/japan-traditional-vocal-and-instrumental-music-cd/801109.p?id=86740&skuId=801109&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=801109', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0801\\/0801109_sa.jpg\"}', 'upc' => '075597207224', 'provider' => 'bestbuy'],\n ['name' => \"Piano Pieces - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/piano-pieces-cd/801403.p?id=1675626&skuId=801403&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=801403', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8014\\/801403.jpg\"}', 'upc' => '075597915426', 'provider' => 'bestbuy'],\n ['name' => \"Tibet: Buddhists - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tibet-buddhists-cd-various/802073.p?id=2222820&skuId=802073&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=802073', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0802\\/0802073_sa.jpg\"}', 'upc' => '075597919820', 'provider' => 'bestbuy'],\n ['name' => \"Playing Possum - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/playing-possum-cd/806854.p?id=98777&skuId=806854&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=806854', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8068\\/806854_sa.jpg\"}', 'upc' => '075596086523', 'provider' => 'bestbuy'],\n ['name' => \"24 Classic Originals - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/24-classic-originals-cd/807997.p?id=1416342&skuId=807997&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=807997', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8079\\/807997.jpg\"}', 'upc' => '025218242622', 'provider' => 'bestbuy'],\n ['name' => \"Dave Brubeck & Paul Desmond - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dave-brubeck-paul-desmond-cd/808004.p?id=64661&skuId=808004&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808004', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808004_sa.jpg\"}', 'upc' => '025218242721', 'provider' => 'bestbuy'],\n ['name' => \"Stardust - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stardust-cd/808013.p?id=64652&skuId=808013&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808013', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808013_sa.jpg\"}', 'upc' => '025218242820', 'provider' => 'bestbuy'],\n ['name' => \"Featuring Paul Desmond in Concert - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/featuring-paul-desmond-in-concert-cd/808059.p?id=64643&skuId=808059&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808059', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8080\\/808059_sa.jpg\"}', 'upc' => '025218301329', 'provider' => 'bestbuy'],\n ['name' => \"The Lenny Bruce Originals, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-lenny-bruce-originals-vol-1-cd/808068.p?id=76151&skuId=808068&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808068', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8080\\/808068_sa.jpg\"}', 'upc' => '025218302326', 'provider' => 'bestbuy'],\n ['name' => \"Bread & Roses Festival 1977 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bread-roses-festival-1977-cd-various/808086.p?id=75797&skuId=808086&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808086', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808086_sa.jpg\"}', 'upc' => '025218790925', 'provider' => 'bestbuy'],\n ['name' => \"Living Proof - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/living-proof-cd/808095.p?id=101037&skuId=808095&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808095', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8080\\/808095_sa.jpg\"}', 'upc' => '025218791021', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/808157.p?id=67032&skuId=808157&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808157', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808157_sa.jpg\"}', 'upc' => '025218770620', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Mr. T - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-mr-t-cd/808175.p?id=71555&skuId=808175&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808175', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808175_sa.jpg\"}', 'upc' => '025218770828', 'provider' => 'bestbuy'],\n ['name' => \"Classics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classics-cd/808184.p?id=91118&skuId=808184&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808184', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808184_sa.jpg\"}', 'upc' => '025218770927', 'provider' => 'bestbuy'],\n ['name' => \"A Boy Named Charlie Brown [Original Soundtrack] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-boy-named-charlie-brown-original-soundtrack-cd/808200.p?id=67028&skuId=808200&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808200', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8082\\/808200_sa.jpg\"}', 'upc' => '025218843027', 'provider' => 'bestbuy'],\n ['name' => \"Blues in the Night, Vol. 1: The Early Show - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-in-the-night-vol-1-the-early-show-cd/808264.p?id=86643&skuId=808264&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808264', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808264_sa.jpg\"}', 'upc' => '025218964722', 'provider' => 'bestbuy'],\n ['name' => \"The Late Show: Blues in the Night, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-late-show-blues-in-the-night-vol-2-cd/808326.p?id=86644&skuId=808326&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808326', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8083\\/808326_sa.jpg\"}', 'upc' => '025218965521', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/808433.p?id=101283&skuId=808433&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808433', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808433_sa.jpg\"}', 'upc' => '025218451024', 'provider' => 'bestbuy'],\n ['name' => \"One Flew Over the Cuckoo's Nest [Original... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-flew-over-the-cuckoos-nest-original-cd-original-soundtrack/808530.p?id=93955&skuId=808530&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808530', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8085\\/808530.jpg\"}', 'upc' => '025218453127', 'provider' => 'bestbuy'],\n ['name' => \"Blues on Broadway - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-on-broadway-cd/808629.p?id=75982&skuId=808629&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808629', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808629_sa.jpg\"}', 'upc' => '025218966221', 'provider' => 'bestbuy'],\n ['name' => \"Mosquito Coast (Original Soundtrack... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mosquito-coast-original-soundtrack-cd-original-soundtrack/808656.p?id=92356&skuId=808656&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808656', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808656_sa.jpg\"}', 'upc' => '025218210522', 'provider' => 'bestbuy'],\n ['name' => \"The Unbearable Lightness of Being, Film Score - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-unbearable-lightness-of-being-film-score-cd-original-soundtrack/808665.p?id=102762&skuId=808665&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808665', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808665_sa.jpg\"}', 'upc' => '025218210621', 'provider' => 'bestbuy'],\n ['name' => \"At Play in the Fields of the Lord - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-play-in-the-fields-of-the-lord-cd-original-soundtrack/808674.p?id=73380&skuId=808674&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808674', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808674_sa.jpg\"}', 'upc' => '025218210720', 'provider' => 'bestbuy'],\n ['name' => \"Spoon Concerts - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spoon-concerts-cd/808683.p?id=1366055&skuId=808683&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808683', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8086\\/808683_sa.jpg\"}', 'upc' => '025218240123', 'provider' => 'bestbuy'],\n ['name' => \"Double Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/double-blues-cd/808692.p?id=85655&skuId=808692&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808692', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8086\\/808692_sa.jpg\"}', 'upc' => '025218240222', 'provider' => 'bestbuy'],\n ['name' => \"Cal Tjader Plays Harold Arlen - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cal-tjader-plays-harold-arlen-cd/808709.p?id=225504&skuId=808709&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808709', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808709_sa.jpg\"}', 'upc' => '025218247528', 'provider' => 'bestbuy'],\n ['name' => \"Boogie Chillun [Charly] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/boogie-chillun-charly-cd/808718.p?id=85599&skuId=808718&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808718', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8087\\/808718_sa.jpg\"}', 'upc' => '025218240628', 'provider' => 'bestbuy'],\n ['name' => \"Blues, Songs and Ballads [Compilation] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-songs-and-ballads-compilation-cd/808727.p?id=2295189&skuId=808727&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808727', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8087\\/808727_sa.jpg\"}', 'upc' => '025218240925', 'provider' => 'bestbuy'],\n ['name' => \"Inside Dave Van Ronk - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/inside-dave-van-ronk-cd/808736.p?id=102942&skuId=808736&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808736', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8087\\/808736_sa.jpg\"}', 'upc' => '025218241021', 'provider' => 'bestbuy'],\n ['name' => \"Ragas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ragas-cd/808745.p?id=98498&skuId=808745&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808745', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808745_sa.jpg\"}', 'upc' => '025218241427', 'provider' => 'bestbuy'],\n ['name' => \"Midnight Special - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/midnight-special-cd/808754.p?id=1562188&skuId=808754&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808754', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808754_sa.jpg\"}', 'upc' => '025218242127', 'provider' => 'bestbuy'],\n ['name' => \"Best of Max Roach and Clifford Brown in Concert - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-max-roach-and-clifford-brown-in-concert-cd/808889.p?id=64578&skuId=808889&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808889', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808889_sa.jpg\"}', 'upc' => '052824001824', 'provider' => 'bestbuy'],\n ['name' => \"Machito at the Crescendo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/machito-at-the-crescendo-cd/808914.p?id=68672&skuId=808914&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808914', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8089\\/808914.jpg\"}', 'upc' => '052824005822', 'provider' => 'bestbuy'],\n ['name' => \"The Original Reunion of the Glenn Miller Band - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-original-reunion-of-the-glenn-miller-band-cd/808923.p?id=69142&skuId=808923&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808923', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8089\\/808923_sa.jpg\"}', 'upc' => '052824007628', 'provider' => 'bestbuy'],\n ['name' => \"New Orleans Parade - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-orleans-parade-cd/808932.p?id=72726&skuId=808932&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808932', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8089\\/808932_sa.jpg\"}', 'upc' => '052824051829', 'provider' => 'bestbuy'],\n ['name' => \"Magic [EP] [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/magic-ep-ep-cd/808941.p?id=82475&skuId=808941&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808941', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '052841208220', 'provider' => 'bestbuy'],\n ['name' => \"Eartha Kitt In Person at the Plaza - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/eartha-kitt-in-person-at-the-plaza-cd/808969.p?id=88218&skuId=808969&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808969', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808969_sa.jpg\"}', 'upc' => '052824200821', 'provider' => 'bestbuy'],\n ['name' => \"Seeds - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/seeds-cd/808978.p?id=2398762&skuId=808978&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=808978', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0808\\/0808978_sa.jpg\"}', 'upc' => '052824202320', 'provider' => 'bestbuy'],\n ['name' => \"Railroad Man [1991] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/railroad-man-1991-cd/809003.p?id=100560&skuId=809003&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809003', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8090\\/809003_sa.jpg\"}', 'upc' => '052824204126', 'provider' => 'bestbuy'],\n ['name' => \"Live at the Royal Albert Hall - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-the-royal-albert-hall-cd/809021.p?id=77928&skuId=809021&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809021', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8090\\/809021.jpg\"}', 'upc' => '052824206922', 'provider' => 'bestbuy'],\n ['name' => \"Knockers Up/Songs for Sinners - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/knockers-up-songs-for-sinners-cd/809049.p?id=103506&skuId=809049&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809049', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8090\\/809049.jpg\"}', 'upc' => '052824207929', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/809058.p?id=79618&skuId=809058&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809058', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8090\\/809058_sa.jpg\"}', 'upc' => '052824209527', 'provider' => 'bestbuy'],\n ['name' => \"Best of Acker Bilk [GNP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-acker-bilk-gnp-cd/809085.p?id=64301&skuId=809085&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809085', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8090\\/809085.jpg\"}', 'upc' => '052824211629', 'provider' => 'bestbuy'],\n ['name' => \"Dave Pell's Prez Conference - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dave-pells-prez-conference-cd/809101.p?id=69870&skuId=809101&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809101', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8091\\/809101_sa.jpg\"}', 'upc' => '052824212428', 'provider' => 'bestbuy'],\n ['name' => \"The Very Best of the Moms & Dads - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-very-best-of-the-moms-dads-cd/809138.p?id=92037&skuId=809138&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809138', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8091\\/809138.jpg\"}', 'upc' => '052824212923', 'provider' => 'bestbuy'],\n ['name' => \"20 Polkas & Waltzes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/20-polkas-waltzes-cd/809147.p?id=84785&skuId=809147&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809147', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8091\\/809147.jpg\"}', 'upc' => '052824213425', 'provider' => 'bestbuy'],\n ['name' => \"In San Francisco - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-san-francisco-cd/809165.p?id=95724&skuId=809165&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809165', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0809\\/0809165_sa.jpg\"}', 'upc' => '052824215825', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Science Fiction Hits, Vol. 3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-science-fiction-hits-vol-3-cd/809183.p?id=98076&skuId=809183&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809183', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0809\\/0809183_sa.jpg\"}', 'upc' => '052824216327', 'provider' => 'bestbuy'],\n ['name' => \"The Prodigious Piano of Bobby Enriquez - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-prodigious-piano-of-bobby-enriquez-cd/809263.p?id=66053&skuId=809263&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809263', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8092\\/809263.jpg\"}', 'upc' => '052824217928', 'provider' => 'bestbuy'],\n ['name' => \"Behind the Iron Curtain - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/behind-the-iron-curtain-cd/809307.p?id=90899&skuId=809307&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809307', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8093\\/809307_sa.jpg\"}', 'upc' => '052824218420', 'provider' => 'bestbuy'],\n ['name' => \"Alive in Concert, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alive-in-concert-vol-1-cd/809325.p?id=89292&skuId=809325&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809325', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0809\\/0809325_sa.jpg\"}', 'upc' => '052824218826', 'provider' => 'bestbuy'],\n ['name' => \"Star Trek, Vol. 1: The Cage/Where No Man Has... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/star-trek-vol-1-the-cage-where-no-man-has-cd-original-soundtrack/809469.p?id=2387191&skuId=809469&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809469', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8094\\/809469.jpg\"}', 'upc' => '052824800625', 'provider' => 'bestbuy'],\n ['name' => \"Children Of A Lesser God - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/children-of-a-lesser-god-cd-original-soundtrack/809478.p?id=2067332&skuId=809478&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809478', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8094\\/809478.jpg\"}', 'upc' => '052824800724', 'provider' => 'bestbuy'],\n ['name' => \"Star Trek: Sound Effects from the Original TV... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/star-trek-sound-effects-from-the-original-tv-cd/809511.p?id=100093&skuId=809511&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809511', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8095\\/809511.jpg\"}', 'upc' => '052824801028', 'provider' => 'bestbuy'],\n ['name' => \"High Spirits [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/high-spirits-original-soundtrack-cd-original-soundtrack/809600.p?id=85355&skuId=809600&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809600', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8096\\/809600_sa.jpg\"}', 'upc' => '052824801622', 'provider' => 'bestbuy'],\n ['name' => \"Star Trek, Vol. 2 [GNP] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/star-trek-vol-2-gnp-cd-original-soundtrack/809753.p?id=100096&skuId=809753&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809753', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8097\\/809753_sa.jpg\"}', 'upc' => '052824802520', 'provider' => 'bestbuy'],\n ['name' => \"Live and Kickin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-and-kickin-cd/809968.p?id=97962&skuId=809968&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809968', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8099\\/809968.jpg\"}', 'upc' => '052824220225', 'provider' => 'bestbuy'],\n ['name' => \"Star Trek: Next Generation 2 - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/star-trek-next-generation-2-cd-original-soundtrack/809977.p?id=2743499&skuId=809977&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=809977', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0809\\/0809977_sa.jpg\"}', 'upc' => '052824802629', 'provider' => 'bestbuy'],\n ['name' => \"Art Tatum at the Crescendo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/art-tatum-at-the-crescendo-cd/810028.p?id=71303&skuId=810028&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=810028', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8100\\/810028_sa.jpg\"}', 'upc' => '052824902527', 'provider' => 'bestbuy'],\n ['name' => \"Los Angeles Concert (1954) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/los-angeles-concert-1954-cd/810082.p?id=65971&skuId=810082&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=810082', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8100\\/810082.jpg\"}', 'upc' => '052824904927', 'provider' => 'bestbuy'],\n ['name' => \"Django Reinhardt and Stephane Grappelli - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/django-reinhardt-and-stephane-grappelli-cd/810135.p?id=70291&skuId=810135&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=810135', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8101\\/810135.jpg\"}', 'upc' => '052824905320', 'provider' => 'bestbuy'],\n ['name' => \"Live in Japan [4CD] [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-in-japan-4cd-box-cd/810206.p?id=65156&skuId=810206&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=810206', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8102\\/810206_sa.jpg\"}', 'upc' => '011105010221', 'provider' => 'bestbuy'],\n ['name' => \"Deedles - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/deedles-cd/810304.p?id=70687&skuId=810304&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=810304', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8103\\/810304_sa.jpg\"}', 'upc' => '011105951029', 'provider' => 'bestbuy'],\n ['name' => \"Fair & Square - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fair-square-cd/812277.p?id=83648&skuId=812277&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=812277', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0812\\/0812277_sa.jpg\"}', 'upc' => '012928801126', 'provider' => 'bestbuy'],\n ['name' => \"Jimmie Dale Gilmore - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jimmie-dale-gilmore-cd/812400.p?id=83649&skuId=812400&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=812400', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0812\\/0812400_sa.jpg\"}', 'upc' => '012928801829', 'provider' => 'bestbuy'],\n ['name' => \"Blue Soul - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-soul-cd/812428.p?id=103388&skuId=812428&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=812428', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8124\\/812428.jpg\"}', 'upc' => '012928801928', 'provider' => 'bestbuy'],\n ['name' => \"Live at Slim's, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-slims-vol-1-cd/812605.p?id=103391&skuId=812605&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=812605', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0812\\/0812605_sa.jpg\"}', 'upc' => '012928802529', 'provider' => 'bestbuy'],\n ['name' => \"Vanessa Bell Armstrong - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vanessa-bell-armstrong-cd/812767.p?id=73255&skuId=812767&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=812767', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8127\\/812767_sa.jpg\"}', 'upc' => '012414107428', 'provider' => 'bestbuy'],\n ['name' => \"The Truth About Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-truth-about-christmas-cd/813748.p?id=73254&skuId=813748&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=813748', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0813\\/0813748_sa.jpg\"}', 'upc' => '012414137227', 'provider' => 'bestbuy'],\n ['name' => \"Blues You Can Use - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-you-can-use-cd/821187.p?id=74982&skuId=821187&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821187', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0821\\/0821187_sa.jpg\"}', 'upc' => '048021744428', 'provider' => 'bestbuy'],\n ['name' => \"Movin' to the Country - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/movin-to-the-country-cd/821203.p?id=89376&skuId=821203&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821203', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8212\\/821203.jpg\"}', 'upc' => '048021744527', 'provider' => 'bestbuy'],\n ['name' => \"Hittin' Where It Hurts - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hittin-where-it-hurts-cd/821221.p?id=88689&skuId=821221&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821221', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8212\\/821221_sa.jpg\"}', 'upc' => '048021744725', 'provider' => 'bestbuy'],\n ['name' => \"Back to Back - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/back-to-back-cd/821230.p?id=89368&skuId=821230&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821230', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8212\\/821230_sa.jpg\"}', 'upc' => '048021744824', 'provider' => 'bestbuy'],\n ['name' => \"Blues Is Alright, Vol. 3 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-is-alright-vol-3-cd-various/821258.p?id=75234&skuId=821258&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821258', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0821\\/0821258_sa.jpg\"}', 'upc' => '048021744923', 'provider' => 'bestbuy'],\n ['name' => \"Crazy 'Bout You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crazy-bout-you-cd/821294.p?id=101247&skuId=821294&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821294', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0821\\/0821294_sa.jpg\"}', 'upc' => '048021745227', 'provider' => 'bestbuy'],\n ['name' => \"Still Trapped - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/still-trapped-cd/821301.p?id=154146&skuId=821301&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821301', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8213\\/821301_sa.jpg\"}', 'upc' => '048021745425', 'provider' => 'bestbuy'],\n ['name' => \"Champaign IV - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/champaign-iv-cd/821365.p?id=77165&skuId=821365&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821365', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8213\\/821365_sa.jpg\"}', 'upc' => '048021746125', 'provider' => 'bestbuy'],\n ['name' => \"Love Me Right - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-me-right-cd/821392.p?id=154217&skuId=821392&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821392', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0821\\/0821392_sa.jpg\"}', 'upc' => '048021746422', 'provider' => 'bestbuy'],\n ['name' => \"The Legend Lives On - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-legend-lives-on-cd/821427.p?id=132486&skuId=821427&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821427', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8214\\/821427_sa.jpg\"}', 'upc' => '048021444922', 'provider' => 'bestbuy'],\n ['name' => \"Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-cd/821445.p?id=93517&skuId=821445&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821445', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0821\\/0821445_sa.jpg\"}', 'upc' => '048021445028', 'provider' => 'bestbuy'],\n ['name' => \"The Greatest Hits, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-greatest-hits-vol-1-cd/821463.p?id=104331&skuId=821463&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821463', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0821\\/0821463_sa.jpg\"}', 'upc' => '048021445127', 'provider' => 'bestbuy'],\n ['name' => \"City Beat - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/city-beat-cd/821481.p?id=156315&skuId=821481&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821481', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0821\\/0821481_sa.jpg\"}', 'upc' => '048021150229', 'provider' => 'bestbuy'],\n ['name' => \"Blues from the Montreux Jazz Festival - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-from-the-montreux-jazz-festival-cd-various/821524.p?id=116031&skuId=821524&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821524', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8215\\/821524_sa.jpg\"}', 'upc' => '048021200825', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/821579.p?id=86565&skuId=821579&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821579', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8215\\/821579_sa.jpg\"}', 'upc' => '048021440221', 'provider' => 'bestbuy'],\n ['name' => \"I'll Never Forget - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ill-never-forget-cd/821793.p?id=87334&skuId=821793&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821793', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0821\\/0821793_sa.jpg\"}', 'upc' => '048021444021', 'provider' => 'bestbuy'],\n ['name' => \"Thank You Mama - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thank-you-mama-cd/821828.p?id=129910&skuId=821828&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821828', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0821\\/0821828_sa.jpg\"}', 'upc' => '048021444526', 'provider' => 'bestbuy'],\n ['name' => \"He's My Ever Present Help - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hes-my-ever-present-help-cd/821837.p?id=72770&skuId=821837&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821837', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0821\\/0821837_sa.jpg\"}', 'upc' => '048021444724', 'provider' => 'bestbuy'],\n ['name' => \"It's Hammertime - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/its-hammertime-cd/821864.p?id=130597&skuId=821864&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821864', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8218\\/821864.jpg\"}', 'upc' => '048021445226', 'provider' => 'bestbuy'],\n ['name' => \"Stay on the Boat - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stay-on-the-boat-cd/821882.p?id=98335&skuId=821882&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821882', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0821\\/0821882_sa.jpg\"}', 'upc' => '048021445325', 'provider' => 'bestbuy'],\n ['name' => \"Higher Hope - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/higher-hope-cd/821926.p?id=82490&skuId=821926&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821926', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8219\\/821926.jpg\"}', 'upc' => '048021600526', 'provider' => 'bestbuy'],\n ['name' => \"Live with the Mississippi Mass Choir - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-with-the-mississippi-mass-choir-cd/821944.p?id=112551&skuId=821944&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821944', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8219\\/821944_sa.jpg\"}', 'upc' => '048021600625', 'provider' => 'bestbuy'],\n ['name' => \"Love Alive IV - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-alive-iv-cd/821953.p?id=85039&skuId=821953&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821953', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0821\\/0821953_sa.jpg\"}', 'upc' => '048021600724', 'provider' => 'bestbuy'],\n ['name' => \"God Gets the Glory - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/god-gets-the-glory-cd/821971.p?id=91897&skuId=821971&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821971', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0821\\/0821971_sa.jpg\"}', 'upc' => '048021600823', 'provider' => 'bestbuy'],\n ['name' => \"Live in Detroit - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-in-detroit-cd/821999.p?id=129948&skuId=821999&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=821999', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8219\\/821999_sa.jpg\"}', 'upc' => '048021600922', 'provider' => 'bestbuy'],\n ['name' => \"The Country Boy Goes Home - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-country-boy-goes-home-cd/822015.p?id=87205&skuId=822015&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=822015', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0822\\/0822015_sa.jpg\"}', 'upc' => '048021601028', 'provider' => 'bestbuy'],\n ['name' => \"Misty Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/misty-blue-cd/822033.p?id=92206&skuId=822033&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=822033', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0822\\/0822033_sa.jpg\"}', 'upc' => '048021635122', 'provider' => 'bestbuy'],\n ['name' => \"Down Home - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/down-home-cd/822060.p?id=85387&skuId=822060&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=822060', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8220\\/822060_sa.jpg\"}', 'upc' => '048021740628', 'provider' => 'bestbuy'],\n ['name' => \"This Guy's in Love with You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/this-guys-in-love-with-you-cd/822998.p?id=70165&skuId=822998&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=822998', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8229\\/822998.jpg\"}', 'upc' => '025218914628', 'provider' => 'bestbuy'],\n ['name' => \"Jazzhouse - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazzhouse-cd/823103.p?id=66103&skuId=823103&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=823103', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0823\\/0823103_sa.jpg\"}', 'upc' => '025218915120', 'provider' => 'bestbuy'],\n ['name' => \"Blue to the 'Bone - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-to-the-bone-cd/823247.p?id=68927&skuId=823247&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=823247', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0823\\/0823247_sa.jpg\"}', 'upc' => '025218916325', 'provider' => 'bestbuy'],\n ['name' => \"You're Gonna Hear from Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/youre-gonna-hear-from-me-cd/823265.p?id=66125&skuId=823265&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=823265', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0823\\/0823265_sa.jpg\"}', 'upc' => '025218916424', 'provider' => 'bestbuy'],\n ['name' => \"Uptown/Downtown - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/uptown-downtown-cd/823327.p?id=71616&skuId=823327&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=823327', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8233\\/823327_sa.jpg\"}', 'upc' => '025218916721', 'provider' => 'bestbuy'],\n ['name' => \"The Solo Sessions, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-solo-sessions-vol-1-cd/823363.p?id=66117&skuId=823363&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=823363', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0823\\/0823363_sa.jpg\"}', 'upc' => '025218917025', 'provider' => 'bestbuy'],\n ['name' => \"Enlightenment - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/enlightenment-cd/823746.p?id=71596&skuId=823746&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=823746', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0823\\/0823746_sa.jpg\"}', 'upc' => '025218550123', 'provider' => 'bestbuy'],\n ['name' => \"Supertrios - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/supertrios-cd/823755.p?id=71609&skuId=823755&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=823755', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8237\\/823755_sa.jpg\"}', 'upc' => '025218550321', 'provider' => 'bestbuy'],\n ['name' => \"One on One - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-on-one-cd/823782.p?id=66889&skuId=823782&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=823782', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8237\\/823782_sa.jpg\"}', 'upc' => '025218918121', 'provider' => 'bestbuy'],\n ['name' => \"Fourmost - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fourmost-cd/823844.p?id=71026&skuId=823844&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=823844', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0823\\/0823844_sa.jpg\"}', 'upc' => '025218918428', 'provider' => 'bestbuy'],\n ['name' => \"Blue in Green [Milestone] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-in-green-milestone-cd/823862.p?id=66097&skuId=823862&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=823862', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0823\\/0823862_sa.jpg\"}', 'upc' => '025218918527', 'provider' => 'bestbuy'],\n ['name' => \"Portrait - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/portrait-cd/824004.p?id=65360&skuId=824004&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=824004', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0824\\/0824004_sa.jpg\"}', 'upc' => '025218919227', 'provider' => 'bestbuy'],\n ['name' => \"The Solo Sessions, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-solo-sessions-vol-2-cd/824031.p?id=66118&skuId=824031&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=824031', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8240\\/824031_sa.jpg\"}', 'upc' => '025218919524', 'provider' => 'bestbuy'],\n ['name' => \"Louis Armstrong and King Oliver - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/louis-armstrong-and-king-oliver-cd/824068.p?id=63763&skuId=824068&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=824068', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0824\\/0824068_sa.jpg\"}', 'upc' => '025218471725', 'provider' => 'bestbuy'],\n ['name' => \"1923-1924 [Milestone] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1923-1924-milestone-cd/824077.p?id=69411&skuId=824077&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=824077', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0824\\/0824077_sa.jpg\"}', 'upc' => '025218471824', 'provider' => 'bestbuy'],\n ['name' => \"Bix Beiderbecke & the Chicago Cornets - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bix-beiderbecke-the-chicago-cornets-cd/824086.p?id=64114&skuId=824086&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=824086', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8240\\/824086_sa.jpg\"}', 'upc' => '025218471923', 'provider' => 'bestbuy'],\n ['name' => \"Ma Rainey [Milestone] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ma-rainey-milestone-cd/824102.p?id=95875&skuId=824102&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=824102', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8241\\/824102_sa.jpg\"}', 'upc' => '025218472128', 'provider' => 'bestbuy'],\n ['name' => \"Blind Lemon Jefferson [Milestone] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blind-lemon-jefferson-milestone-cd/824111.p?id=86824&skuId=824111&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=824111', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8241\\/824111.jpg\"}', 'upc' => '025218472227', 'provider' => 'bestbuy'],\n ['name' => \"Great Day - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/great-day-cd/824120.p?id=100072&skuId=824120&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=824120', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8241\\/824120_sa.jpg\"}', 'upc' => '025218472821', 'provider' => 'bestbuy'],\n ['name' => \"Don't Stop the Carnival - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dont-stop-the-carnival-cd/824148.p?id=70431&skuId=824148&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=824148', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0824\\/0824148_sa.jpg\"}', 'upc' => '025218550529', 'provider' => 'bestbuy'],\n ['name' => \"His California Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/his-california-album-cd/824344.p?id=74988&skuId=824344&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=824344', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0824\\/0824344_sa.jpg\"}', 'upc' => '008811034924', 'provider' => 'bestbuy'],\n ['name' => \"Wishbone Four - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wishbone-four-cd/824362.p?id=104581&skuId=824362&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=824362', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0824\\/0824362_sa.jpg\"}', 'upc' => '008811035020', 'provider' => 'bestbuy'],\n ['name' => \"Streets of Fire - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/streets-of-fire-cd-original-soundtrack/824709.p?id=100582&skuId=824709&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=824709', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8247\\/824709_sa.jpg\"}', 'upc' => '076732549223', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Louis Jordan - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-louis-jordan-cd/825325.p?id=87388&skuId=825325&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=825325', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0825\\/0825325_sa.jpg\"}', 'upc' => '076732407929', 'provider' => 'bestbuy'],\n ['name' => \"Patsy Cline Showcase - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/patsy-cline-showcase-cd/825575.p?id=78066&skuId=825575&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=825575', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0825\\/0825575_sa.jpg\"}', 'upc' => '076732008720', 'provider' => 'bestbuy'],\n ['name' => \"Sentimentally Yours - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sentimentally-yours-cd/825600.p?id=78064&skuId=825600&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=825600', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8256\\/825600_sa.jpg\"}', 'upc' => '076732009024', 'provider' => 'bestbuy'],\n ['name' => \"Best Of - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-cd/825664.p?id=1321319&skuId=825664&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=825664', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0825\\/0825664_sa.jpg\"}', 'upc' => '076732154526', 'provider' => 'bestbuy'],\n ['name' => \"Steppenwolf 7 [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/steppenwolf-7-remaster-cd/825799.p?id=100323&skuId=825799&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=825799', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0825\\/0825799_sa.jpg\"}', 'upc' => '076732159828', 'provider' => 'bestbuy'],\n ['name' => \"Chain Reaction - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chain-reaction-cd/825977.p?id=65387&skuId=825977&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=825977', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0825\\/0825977_sa.jpg\"}', 'upc' => '076732164822', 'provider' => 'bestbuy'],\n ['name' => \"I Was Walkin' Through the Woods - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-was-walkin-through-the-woods-cd/827270.p?id=84482&skuId=827270&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=827270', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8272\\/827270_sa.jpg\"}', 'upc' => '076732931523', 'provider' => 'bestbuy'],\n ['name' => \"Silver Anniversary Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/silver-anniversary-collection-cd/827911.p?id=102611&skuId=827911&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=827911', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8279\\/827911_sa.jpg\"}', 'upc' => '076732803523', 'provider' => 'bestbuy'],\n ['name' => \"At the Pershing: But Not for Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-the-pershing-but-not-for-me-cd/827975.p?id=67795&skuId=827975&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=827975', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0827\\/0827975_sa.jpg\"}', 'upc' => '076732910825', 'provider' => 'bestbuy'],\n ['name' => \"Hunt for Red October [Original Motion... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hunt-for-red-october-original-motion-cd-original-soundtrack/828359.p?id=85931&skuId=828359&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=828359', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0828\\/0828359_sa.jpg\"}', 'upc' => '076732642825', 'provider' => 'bestbuy'],\n ['name' => \"Moanin' in the Moonlight - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moanin-in-the-moonlight-cd/829018.p?id=85869&skuId=829018&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=829018', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8290\\/829018_sa.jpg\"}', 'upc' => '076732590829', 'provider' => 'bestbuy'],\n ['name' => \"Southern Comfort - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/southern-comfort-cd/829152.p?id=65397&skuId=829152&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=829152', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8291\\/829152.jpg\"}', 'upc' => '076732601624', 'provider' => 'bestbuy'],\n ['name' => \"One More Time: The Chess Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-more-time-the-chess-years-cd/830140.p?id=100429&skuId=830140&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=830140', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8301\\/830140_sa.jpg\"}', 'upc' => '076732602720', 'provider' => 'bestbuy'],\n ['name' => \"Back to the Future [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/back-to-the-future-original-soundtrack-cd-original-soundtrack/830202.p?id=73628&skuId=830202&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=830202', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0830\\/0830202_sa.jpg\"}', 'upc' => '076732614426', 'provider' => 'bestbuy'],\n ['name' => \"Big River: The Adventures Of Huckleberry Finn... - Original Cast Recording - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-river-the-adventures-of-huckleberry-finn-original-cast-recording-cd/830211.p?id=2066095&skuId=830211&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=830211', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8302\\/830211.jpg\"}', 'upc' => '076732614723', 'provider' => 'bestbuy'],\n ['name' => \"Miami Vice II - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/miami-vice-ii-cd-original-soundtrack/830373.p?id=2416706&skuId=830373&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=830373', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8303\\/830373_sa.jpg\"}', 'upc' => '076732619223', 'provider' => 'bestbuy'],\n ['name' => \"Me & My Girl - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/me-my-girl-cd-original-cast-recording/830382.p?id=2135549&skuId=830382&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=830382', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8303\\/830382_sa.jpg\"}', 'upc' => '076732619629', 'provider' => 'bestbuy'],\n ['name' => \"Some Kind of Wonderful [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/some-kind-of-wonderful-original-soundtrack-cd-original-soundtrack/830426.p?id=99414&skuId=830426&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=830426', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8304\\/830426_sa.jpg\"}', 'upc' => '076732620021', 'provider' => 'bestbuy'],\n ['name' => \"Carousel [1987 Studio Cast] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/carousel-1987-studio-cast-cd/830505.p?id=2066437&skuId=830505&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=830505', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0830\\/0830505_sa.jpg\"}', 'upc' => '076732620922', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/830774.p?id=91199&skuId=830774&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=830774', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0830\\/0830774_sa.jpg\"}', 'upc' => '076743134128', 'provider' => 'bestbuy'],\n ['name' => \"Captured Live at the Forum - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/captured-live-at-the-forum-cd/830783.p?id=101785&skuId=830783&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=830783', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0830\\/0830783_sa.jpg\"}', 'upc' => '076743134227', 'provider' => 'bestbuy'],\n ['name' => \"Cry - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cry-cd/830881.p?id=68269&skuId=830881&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=830881', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0830\\/0830881_sa.jpg\"}', 'upc' => '076743135224', 'provider' => 'bestbuy'],\n ['name' => \"For Ladies Only - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-ladies-only-cd/830890.p?id=100314&skuId=830890&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=830890', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0830\\/0830890_sa.jpg\"}', 'upc' => '076743135422', 'provider' => 'bestbuy'],\n ['name' => \"Rags to Rufus - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rags-to-rufus-cd/830961.p?id=97503&skuId=830961&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=830961', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8309\\/830961_sa.jpg\"}', 'upc' => '076743136528', 'provider' => 'bestbuy'],\n ['name' => \"The Pointer Sisters - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-pointer-sisters-cd/831032.p?id=95122&skuId=831032&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=831032', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8310\\/831032.jpg\"}', 'upc' => '076743137723', 'provider' => 'bestbuy'],\n ['name' => \"50th Anniversary Collection, Vol.1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/50th-anniversary-collection-vol-1-cd/833307.p?id=73009&skuId=833307&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=833307', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8333\\/833307_sa.jpg\"}', 'upc' => '076742204426', 'provider' => 'bestbuy'],\n ['name' => \"Scratch - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/scratch-cd/834271.p?id=65396&skuId=834271&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=834271', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0834\\/0834271_sa.jpg\"}', 'upc' => '076741707225', 'provider' => 'bestbuy'],\n ['name' => \"Free as the Wind - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/free-as-the-wind-cd/834299.p?id=65389&skuId=834299&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=834299', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0834\\/0834299_sa.jpg\"}', 'upc' => '076741707324', 'provider' => 'bestbuy'],\n ['name' => \"Christmas All over the World - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-all-over-the-world-cd/834459.p?id=93122&skuId=834459&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=834459', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8344\\/834459_sa.jpg\"}', 'upc' => '076741904020', 'provider' => 'bestbuy'],\n ['name' => \"An American Tail - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/an-american-tail-cd-original-soundtrack/834486.p?id=72898&skuId=834486&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=834486', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8344\\/834486_sa.jpg\"}', 'upc' => '076741909629', 'provider' => 'bestbuy'],\n ['name' => \"Christmas Memories - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-memories-cd/835145.p?id=103481&skuId=835145&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=835145', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8351\\/835145.jpg\"}', 'upc' => '008811006723', 'provider' => 'bestbuy'],\n ['name' => \"Following Yonder Star - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/following-yonder-star-cd/835154.p?id=81781&skuId=835154&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=835154', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8351\\/835154_sa.jpg\"}', 'upc' => '008811006822', 'provider' => 'bestbuy'],\n ['name' => \"Country Music Hall of Fame Series - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/country-music-hall-of-fame-series-cd/835270.p?id=89979&skuId=835270&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=835270', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8352\\/835270_sa.jpg\"}', 'upc' => '008811008321', 'provider' => 'bestbuy'],\n ['name' => \"Country Music Hall of Fame - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/country-music-hall-of-fame-cd/835378.p?id=99486&skuId=835378&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=835378', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0835\\/0835378_sa.jpg\"}', 'upc' => '008811009021', 'provider' => 'bestbuy'],\n ['name' => \"Come on Over - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/come-on-over-cd/835476.p?id=93262&skuId=835476&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=835476', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8354\\/835476_sa.jpg\"}', 'upc' => '076731108223', 'provider' => 'bestbuy'],\n ['name' => \"Strait from the Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/strait-from-the-heart-cd/835519.p?id=100552&skuId=835519&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=835519', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0835\\/0835519_sa.jpg\"}', 'upc' => '076743111723', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits [MCA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-mca-cd/835528.p?id=103641&skuId=835528&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=835528', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8355\\/835528.jpg\"}', 'upc' => '076743112829', 'provider' => 'bestbuy'],\n ['name' => \"Hawaiian Favorites - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hawaiian-favorites-cd/835537.p?id=73160&skuId=835537&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=835537', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8355\\/835537.jpg\"}', 'upc' => '076731113821', 'provider' => 'bestbuy'],\n ['name' => \"White Christmas [MCA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/white-christmas-mca-cd/835573.p?id=79235&skuId=835573&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=835573', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0835\\/0835573_sa.jpg\"}', 'upc' => '076731114323', 'provider' => 'bestbuy'],\n ['name' => \"Hawaii's Greatest Hits, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hawaiis-greatest-hits-vol-1-cd/835591.p?id=93142&skuId=835591&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=835591', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0835\\/0835591_sa.jpg\"}', 'upc' => '076731114927', 'provider' => 'bestbuy'],\n ['name' => \"T.N.T. - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/t-n-t-cd/835617.p?id=102452&skuId=835617&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=835617', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0835\\/0835617_sa.jpg\"}', 'upc' => '076743115226', 'provider' => 'bestbuy'],\n ['name' => \"Memorial Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/memorial-album-cd/835662.p?id=72394&skuId=835662&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=835662', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8356\\/835662_sa.jpg\"}', 'upc' => '076731118321', 'provider' => 'bestbuy'],\n ['name' => \"The Cowboy Way - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-cowboy-way-cd/835699.p?id=96665&skuId=835699&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=835699', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0835\\/0835699_sa.jpg\"}', 'upc' => '076731124421', 'provider' => 'bestbuy'],\n ['name' => \"Chuck Berry Is on Top - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chuck-berry-is-on-top-cd/835724.p?id=74516&skuId=835724&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=835724', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8357\\/835724_sa.jpg\"}', 'upc' => '076731126029', 'provider' => 'bestbuy'],\n ['name' => \"Best Little Whorehouse In Texas - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-little-whorehouse-in-texas-cd-original-soundtrack/836251.p?id=2416680&skuId=836251&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=836251', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0836\\/0836251_sa.jpg\"}', 'upc' => '076731100722', 'provider' => 'bestbuy'],\n ['name' => \"Steppenwolf - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/steppenwolf-cd/836260.p?id=100321&skuId=836260&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=836260', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0836\\/0836260_sa.jpg\"}', 'upc' => '076731102023', 'provider' => 'bestbuy'],\n ['name' => \"Steppenwolf the Second - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/steppenwolf-the-second-cd/836279.p?id=100322&skuId=836279&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=836279', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0836\\/0836279_sa.jpg\"}', 'upc' => '076731102122', 'provider' => 'bestbuy'],\n ['name' => \"Have a Holly Jolly Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/have-a-holly-jolly-christmas-cd/836625.p?id=86452&skuId=836625&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=836625', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0836\\/0836625_sa.jpg\"}', 'upc' => '076742599225', 'provider' => 'bestbuy'],\n ['name' => \"12 Songs from Call Me Madam [Remaster] - Remastered Original Broadway Cast - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/12-songs-from-call-me-madam-remaster-remastered-original-broadway-cast-cd/837438.p?id=2069397&skuId=837438&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=837438', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8374\\/837438.jpg\"}', 'upc' => '008811052126', 'provider' => 'bestbuy'],\n ['name' => \"Door To Door - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/door-to-door-cd/837615.p?id=2387546&skuId=837615&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=837615', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8376\\/837615_sa.jpg\"}', 'upc' => '076732932223', 'provider' => 'bestbuy'],\n ['name' => \"The Godfather - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-godfather-cd-original-soundtrack/837893.p?id=83760&skuId=837893&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=837893', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0837\\/0837893_sa.jpg\"}', 'upc' => '008811023126', 'provider' => 'bestbuy'],\n ['name' => \"The Godfather, Pt. 2 - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-godfather-pt-2-cd-original-soundtrack/837900.p?id=83761&skuId=837900&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=837900', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8379\\/837900.jpg\"}', 'upc' => '008811023225', 'provider' => 'bestbuy'],\n ['name' => \"Rufusized - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rufusized-cd/837919.p?id=97505&skuId=837919&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=837919', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0837\\/0837919_sa.jpg\"}', 'upc' => '008811023621', 'provider' => 'bestbuy'],\n ['name' => \"Lady Sings the Blues [Original Soundtrack] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lady-sings-the-blues-original-soundtrack-cd/841771.p?id=2065354&skuId=841771&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=841771', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0841\\/0841771_sa.jpg\"}', 'upc' => '737463075824', 'provider' => 'bestbuy'],\n ['name' => \"Signed, Sealed and Delivered - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/signed-sealed-and-delivered-cd/843289.p?id=104680&skuId=843289&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=843289', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0843\\/0843289_sa.jpg\"}', 'upc' => '737463517621', 'provider' => 'bestbuy'],\n ['name' => \"My Cherie Amour - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-cherie-amour-cd/843323.p?id=2412085&skuId=843323&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=843323', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8433\\/843323.jpg\"}', 'upc' => '737463517928', 'provider' => 'bestbuy'],\n ['name' => \"Irons in the Fire - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/irons-in-the-fire-cd/843564.p?id=90564&skuId=843564&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=843564', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8435\\/843564.jpg\"}', 'upc' => '737463537223', 'provider' => 'bestbuy'],\n ['name' => \"In a Special Way - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-a-special-way-cd/843822.p?id=80027&skuId=843822&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=843822', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8438\\/843822.jpg\"}', 'upc' => '737463539326', 'provider' => 'bestbuy'],\n ['name' => \"Bill Cosby Himself - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bill-cosby-himself-cd/844297.p?id=78732&skuId=844297&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=844297', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8442\\/844297_sa.jpg\"}', 'upc' => '737463536424', 'provider' => 'bestbuy'],\n ['name' => \"To Be Continued... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/to-be-continued-cd/844368.p?id=1588457&skuId=844368&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=844368', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0844\\/0844368_sa.jpg\"}', 'upc' => '050109620722', 'provider' => 'bestbuy'],\n ['name' => \"Christmas Card - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-card-cd/845447.p?id=101380&skuId=845447&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=845447', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8454\\/845447_sa.jpg\"}', 'upc' => '737463525121', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Spinners [Atlantic] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-spinners-atlantic-cd/845599.p?id=99861&skuId=845599&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=845599', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0845\\/0845599_sa.jpg\"}', 'upc' => '737463519922', 'provider' => 'bestbuy'],\n ['name' => \"Commodores - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/commodores-cd/846302.p?id=78458&skuId=846302&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=846302', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/en_US\\/images\\/musicmoviegame\\/\\/pdpimages\\/846302.jpg\"}', 'upc' => '737463522229', 'provider' => 'bestbuy'],\n ['name' => \"Come Get It! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/come-get-it-cd/847025.p?id=86651&skuId=847025&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=847025', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0847\\/0847025_sa.jpg\"}', 'upc' => '737463526326', 'provider' => 'bestbuy'],\n ['name' => \"Songs Of Chivalry Medieval Songs & Dances - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/songs-of-chivalry-medieval-songs-dances-cd/847999.p?id=1763284&skuId=847999&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=847999', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8479\\/847999.jpg\"}', 'upc' => '710357500626', 'provider' => 'bestbuy'],\n ['name' => \"12 Nocturnes From Op 9, 15, 27, 48, 55, 62 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/12-nocturnes-from-op-9-15-27-48-55-62-cd/848051.p?id=1762352&skuId=848051&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=848051', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8480\\/848051.jpg\"}', 'upc' => '710357501227', 'provider' => 'bestbuy'],\n ['name' => \"Catigas Of Santa Maria Of Alfonso X El Sabio - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/catigas-of-santa-maria-of-alfonso-x-el-sabio-cd/848239.p?id=1682455&skuId=848239&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=848239', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8482\\/848239.jpg\"}', 'upc' => '710357508127', 'provider' => 'bestbuy'],\n ['name' => \"Mass For Pentecost/5 Motets - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mass-for-pentecost-5-motets-cd/848417.p?id=1779115&skuId=848417&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=848417', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8484\\/848417.jpg\"}', 'upc' => '710357510021', 'provider' => 'bestbuy'],\n ['name' => \"Mozart Horn Concertos - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mozart-horn-concertos-cd/848444.p?id=2664896&skuId=848444&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=848444', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8484\\/848444.jpg\"}', 'upc' => '710357510427', 'provider' => 'bestbuy'],\n ['name' => \"24 Preludes For Piano Op11 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/24-preludes-for-piano-op11-cd/848550.p?id=1676803&skuId=848550&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=848550', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8485\\/848550.jpg\"}', 'upc' => '710357502620', 'provider' => 'bestbuy'],\n ['name' => \"Art Of Youra Guller (Prelude & Fugue/Ballade 4) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/art-of-youra-guller-prelude-fugue-ballade-4-cd/848578.p?id=1690008&skuId=848578&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=848578', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8485\\/848578.jpg\"}', 'upc' => '710357503023', 'provider' => 'bestbuy'],\n ['name' => \"Requiem - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/requiem-cd/849112.p?id=2666500&skuId=849112&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849112', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8491\\/849112.jpg\"}', 'upc' => '710357524127', 'provider' => 'bestbuy'],\n ['name' => \"Church & Choral Music Incl Wedding Anthem Wales - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/church-choral-music-incl-wedding-anthem-wales-cd/849130.p?id=1697287&skuId=849130&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849130', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8491\\/849130.jpg\"}', 'upc' => '710357524325', 'provider' => 'bestbuy'],\n ['name' => \"Cante Flamenco - Live - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cante-flamenco-live-cd-various/849210.p?id=1397311&skuId=849210&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849210', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8492\\/849210.jpg\"}', 'upc' => '710357525124', 'provider' => 'bestbuy'],\n ['name' => \"Great Singers 2: 1903-39 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/great-singers-2-1903-39-cd-various/849283.p?id=1676932&skuId=849283&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849283', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8492\\/849283.jpg\"}', 'upc' => '710357781223', 'provider' => 'bestbuy'],\n ['name' => \"Mendelssohn: Complete String Symphonies Vol 3 / Boughton - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mendelssohn-complete-string-symphonies-vol-3-boughton-cd/849611.p?id=1675637&skuId=849611&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849611', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8496\\/849611.jpg\"}', 'upc' => '710357514326', 'provider' => 'bestbuy'],\n ['name' => \"Symphonies 1-9 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 31.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/symphonies-1-9-cd/849620.p?id=1679040&skuId=849620&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849620', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0849\\/0849620_sa.jpg\"}', 'upc' => '710357514425', 'provider' => 'bestbuy'],\n ['name' => \"Dance Suite - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dance-suite-cd/849791.p?id=2666504&skuId=849791&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849791', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8497\\/849791.jpg\"}', 'upc' => '710357530920', 'provider' => 'bestbuy'],\n ['name' => \"Fiddle Sticks: Irish Traditional Music from... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fiddle-sticks-irish-traditional-music-from-cd/849835.p?id=1404297&skuId=849835&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849835', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8498\\/849835.jpg\"}', 'upc' => '710357532023', 'provider' => 'bestbuy'],\n ['name' => \"Operatic Arias - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/operatic-arias-cd/849862.p?id=1760891&skuId=849862&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849862', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8498\\/849862.jpg\"}', 'upc' => '710357781421', 'provider' => 'bestbuy'],\n ['name' => \"Operatic Arias - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/operatic-arias-cd/849871.p?id=1697301&skuId=849871&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849871', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8498\\/849871.jpg\"}', 'upc' => '710357781520', 'provider' => 'bestbuy'],\n ['name' => \"Operatic Arias - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/operatic-arias-cd/849880.p?id=1675805&skuId=849880&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849880', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8498\\/849880.jpg\"}', 'upc' => '710357781629', 'provider' => 'bestbuy'],\n ['name' => \"1925-1940 2: Opera Arias - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1925-1940-2-opera-arias-cd/849899.p?id=1675806&skuId=849899&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849899', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8498\\/849899.jpg\"}', 'upc' => '710357781728', 'provider' => 'bestbuy'],\n ['name' => \"1909-1940 Vol 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1909-1940-vol-2-cd/849906.p?id=1766491&skuId=849906&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849906', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8499\\/849906.jpg\"}', 'upc' => '710357781827', 'provider' => 'bestbuy'],\n ['name' => \"Prima Voce - Covent Garden: An Early History on Record - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/prima-voce-covent-garden-an-early-history-on-record-cd/849915.p?id=1910008&skuId=849915&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849915', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8499\\/849915.jpg\"}', 'upc' => '710357781926', 'provider' => 'bestbuy'],\n ['name' => \"Operatic Arias (1910-1924)CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/operatic-arias-1910-1924cd/849924.p?id=3293600&skuId=849924&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849924', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8499\\/849924_sa.jpg\"}', 'upc' => '710357782022', 'provider' => 'bestbuy'],\n ['name' => \"Violin Concerto - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/violin-concerto-cd/849997.p?id=1822350&skuId=849997&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=849997', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8499\\/849997.jpg\"}', 'upc' => '710357532924', 'provider' => 'bestbuy'],\n ['name' => \"Sound Of St Johns - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sound-of-st-johns-cd/850047.p?id=1879988&skuId=850047&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850047', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8500\\/850047.jpg\"}', 'upc' => '710357533525', 'provider' => 'bestbuy'],\n ['name' => \"Meditations For A Quiet Night - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/meditations-for-a-quiet-night-cd-various/850154.p?id=2065797&skuId=850154&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850154', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0850\\/0850154_sa.jpg\"}', 'upc' => '710357700729', 'provider' => 'bestbuy'],\n ['name' => \"Great Singers 1909-1938 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/great-singers-1909-1938-cd-various/850163.p?id=1687999&skuId=850163&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850163', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8501\\/850163.jpg\"}', 'upc' => '710357780127', 'provider' => 'bestbuy'],\n ['name' => \"1906-1935 Vol 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1906-1935-vol-1-cd/850172.p?id=1675716&skuId=850172&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850172', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8501\\/850172.jpg\"}', 'upc' => '710357780226', 'provider' => 'bestbuy'],\n ['name' => \"Enrico Caruso In Opera 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/enrico-caruso-in-opera-1-cd/850181.p?id=1910028&skuId=850181&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850181', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8501\\/850181.jpg\"}', 'upc' => '710357780325', 'provider' => 'bestbuy'],\n ['name' => \"1915-1928 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1915-1928-1-cd/850190.p?id=1684763&skuId=850190&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850190', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8501\\/850190.jpg\"}', 'upc' => '710357780424', 'provider' => 'bestbuy'],\n ['name' => \"Rose Ponselle Recordings From 1923-1939 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rose-ponselle-recordings-from-1923-1939-cd/850207.p?id=1675794&skuId=850207&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850207', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8502\\/850207.jpg\"}', 'upc' => '710357780523', 'provider' => 'bestbuy'],\n ['name' => \"Operatic Arias - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/operatic-arias-cd/850216.p?id=1697826&skuId=850216&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850216', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8502\\/850216.jpg\"}', 'upc' => '710357780622', 'provider' => 'bestbuy'],\n ['name' => \"1918-1924 1: Operatic Arias - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1918-1924-1-operatic-arias-cd/850225.p?id=1684743&skuId=850225&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850225', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8502\\/850225.jpg\"}', 'upc' => '710357780721', 'provider' => 'bestbuy'],\n ['name' => \"Operatic Arias 1909-1914 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/operatic-arias-1909-1914-1-cd/850234.p?id=1704626&skuId=850234&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850234', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8502\\/850234_sa.jpg\"}', 'upc' => '710357780820', 'provider' => 'bestbuy'],\n ['name' => \"Enrico Caruso In Song (1910-1920) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/enrico-caruso-in-song-1910-1920-cd/850243.p?id=1910026&skuId=850243&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850243', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8502\\/850243.jpg\"}', 'upc' => '710357780929', 'provider' => 'bestbuy'],\n ['name' => \"Operatic Arias 1907-1926 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/operatic-arias-1907-1926-cd/850252.p?id=1756297&skuId=850252&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850252', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8502\\/850252_sa.jpg\"}', 'upc' => '710357781025', 'provider' => 'bestbuy'],\n ['name' => \"Great Singers In Mozart - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/great-singers-in-mozart-cd-various/850261.p?id=1909973&skuId=850261&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850261', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8502\\/850261.jpg\"}', 'upc' => '710357782220', 'provider' => 'bestbuy'],\n ['name' => \"Operatic Arias - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 20.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/operatic-arias-cd/850270.p?id=1759890&skuId=850270&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850270', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8502\\/850270_sa.jpg\"}', 'upc' => '710357782329', 'provider' => 'bestbuy'],\n ['name' => \"Lawrence Tibbett In Opera - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lawrence-tibbett-in-opera-cd/850289.p?id=1684776&skuId=850289&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850289', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8502\\/850289_sa.jpg\"}', 'upc' => '710357782527', 'provider' => 'bestbuy'],\n ['name' => \"1913-1923 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1913-1923-2-cd/850298.p?id=1780505&skuId=850298&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850298', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8502\\/850298.jpg\"}', 'upc' => '710357782626', 'provider' => 'bestbuy'],\n ['name' => \"Operatic Arias - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/operatic-arias-cd/850341.p?id=1820380&skuId=850341&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850341', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8503\\/850341.jpg\"}', 'upc' => '710357783227', 'provider' => 'bestbuy'],\n ['name' => \"Enrico Caruso In Ensemble (1906-1918) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/enrico-caruso-in-ensemble-1906-1918-cd/850369.p?id=1678022&skuId=850369&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850369', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8503\\/850369.jpg\"}', 'upc' => '710357783425', 'provider' => 'bestbuy'],\n ['name' => \"Nocturnes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nocturnes-cd/850421.p?id=1678998&skuId=850421&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850421', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8504\\/850421.jpg\"}', 'upc' => '710357516528', 'provider' => 'bestbuy'],\n ['name' => \"Cante Gitano(Flamenco) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cante-gitanoflamenco-cd/850458.p?id=1397303&skuId=850458&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850458', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8504\\/850458_sa.jpg\"}', 'upc' => '710357516825', 'provider' => 'bestbuy'],\n ['name' => \"Grande Symphonie Funebre Et Triomphale - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/grande-symphonie-funebre-et-triomphale-cd/850519.p?id=1704579&skuId=850519&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850519', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8505\\/850519.jpg\"}', 'upc' => '710357517525', 'provider' => 'bestbuy'],\n ['name' => \"Complete Symphonies - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/complete-symphonies-cd/850591.p?id=1676898&skuId=850591&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850591', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8505\\/850591.jpg\"}', 'upc' => '710357518423', 'provider' => 'bestbuy'],\n ['name' => \"String Quartets 1 & 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/string-quartets-1-2-cd/850635.p?id=1702144&skuId=850635&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850635', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0850\\/0850635_sa.jpg\"}', 'upc' => '710357519123', 'provider' => 'bestbuy'],\n ['name' => \"Encuentro - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/encuentro-cd/850680.p?id=1396676&skuId=850680&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850680', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8506\\/850680.jpg\"}', 'upc' => '710357519628', 'provider' => 'bestbuy'],\n ['name' => \"Mass In G - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mass-in-g-cd/850706.p?id=1757593&skuId=850706&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850706', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8507\\/850706.jpg\"}', 'upc' => '710357519727', 'provider' => 'bestbuy'],\n ['name' => \"Spirit of England - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 32.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spirit-of-england-cd-various/850797.p?id=1682764&skuId=850797&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850797', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8507\\/850797_sa.jpg\"}', 'upc' => '710357521027', 'provider' => 'bestbuy'],\n ['name' => \"Symphonies 1 & 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/symphonies-1-2-cd/850831.p?id=1690019&skuId=850831&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850831', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8508\\/850831.jpg\"}', 'upc' => '710357526022', 'provider' => 'bestbuy'],\n ['name' => \"Organ Works - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/organ-works-cd/850859.p?id=1698196&skuId=850859&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850859', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8508\\/850859_sa.jpg\"}', 'upc' => '710357526220', 'provider' => 'bestbuy'],\n ['name' => \"Skaters Waltz - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/skaters-waltz-cd/850877.p?id=1679233&skuId=850877&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850877', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8508\\/850877_sa.jpg\"}', 'upc' => '710357526428', 'provider' => 'bestbuy'],\n ['name' => \"Glorias Rv588/Rv589 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/glorias-rv588-rv589-cd/850975.p?id=1685962&skuId=850975&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=850975', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8509\\/850975.jpg\"}', 'upc' => '710357527821', 'provider' => 'bestbuy'],\n ['name' => \"Symphonies 1 & 2/Kleine Dreigroschenmusik - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/symphonies-1-2-kleine-dreigroschenmusik-cd/851028.p?id=1697833&skuId=851028&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=851028', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8510\\/851028.jpg\"}', 'upc' => '710357528323', 'provider' => 'bestbuy'],\n ['name' => \"Misa Flamenca - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/misa-flamenca-cd/851108.p?id=2244622&skuId=851108&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=851108', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8511\\/851108.jpg\"}', 'upc' => '710357528828', 'provider' => 'bestbuy'],\n ['name' => \"Triple Concerto - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 17.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/triple-concerto-cd/851224.p?id=1909972&skuId=851224&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=851224', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '710357530128', 'provider' => 'bestbuy'],\n ['name' => \"Music From Operettas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-from-operettas-cd/851242.p?id=1677964&skuId=851242&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=851242', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8512\\/851242.jpg\"}', 'upc' => '710357530326', 'provider' => 'bestbuy'],\n ['name' => \"Best of 70s Supergroups - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-70s-supergroups-cd-various/853552.p?id=121649&skuId=853552&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=853552', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0853\\/0853552_sa.jpg\"}', 'upc' => '087248790825', 'provider' => 'bestbuy'],\n ['name' => \"Mr. Magic's Rap Attack: Volume 3 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mr-magics-rap-attack-volume-3-cd-various/861008.p?id=92547&skuId=861008&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=861008', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0861\\/0861008_sa.jpg\"}', 'upc' => '015151124925', 'provider' => 'bestbuy'],\n ['name' => \"Sagn - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 22.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sagn-cd/861767.p?id=63703&skuId=861767&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=861767', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0861\\/0861767_sa.jpg\"}', 'upc' => '042284964722', 'provider' => 'bestbuy'],\n ['name' => \"Star [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/star-digdownload-cd/861776.p?id=66499&skuId=861776&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=861776', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8617\\/861776.jpg\"}', 'upc' => '042284964920', 'provider' => 'bestbuy'],\n ['name' => \"Friends - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/friends-cd/862686.p?id=65263&skuId=862686&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=862686', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0862\\/0862686_sa.jpg\"}', 'upc' => '042284907125', 'provider' => 'bestbuy'],\n ['name' => \"Anita O'Day Swings Cole Porter with Billy May - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/anita-oday-swings-cole-porter-with-billy-may-cd/862784.p?id=69673&skuId=862784&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=862784', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8627\\/862784_sa.jpg\"}', 'upc' => '042284926621', 'provider' => 'bestbuy'],\n ['name' => \"Getz Meets Mulligan in Hi-Fi - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/getz-meets-mulligan-in-hi-fi-cd/862873.p?id=66623&skuId=862873&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=862873', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8628\\/862873_sa.jpg\"}', 'upc' => '042284939225', 'provider' => 'bestbuy'],\n ['name' => \"Acquiring the Taste - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/acquiring-the-taste-cd/863079.p?id=83495&skuId=863079&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=863079', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0863\\/0863079_sa.jpg\"}', 'upc' => '042284291729', 'provider' => 'bestbuy'],\n ['name' => \"Contradiction - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/contradiction-cd/863444.p?id=93819&skuId=863444&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=863444', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8634\\/863444.jpg\"}', 'upc' => '042284834827', 'provider' => 'bestbuy'],\n ['name' => \"Road to Saint Ives [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/road-to-saint-ives-digdownload-cd/863907.p?id=71240&skuId=863907&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=863907', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8639\\/863907.jpg\"}', 'upc' => '042284384926', 'provider' => 'bestbuy'],\n ['name' => \"A Step Further - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-step-further-cd/864032.p?id=97955&skuId=864032&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=864032', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8640\\/864032.jpg\"}', 'upc' => '042284401524', 'provider' => 'bestbuy'],\n ['name' => \"The Clones of Dr. Funkenstein - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-clones-of-dr-funkenstein-cd/864425.p?id=3353548&skuId=864425&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=864425', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0864\\/0864425_sa.jpg\"}', 'upc' => '042284262026', 'provider' => 'bestbuy'],\n ['name' => \"Gentle Giant - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gentle-giant-cd/864489.p?id=83497&skuId=864489&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=864489', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0864\\/0864489_sa.jpg\"}', 'upc' => '042284262422', 'provider' => 'bestbuy'],\n ['name' => \"Canto Do Paje - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/canto-do-paje-cd/864611.p?id=74542&skuId=864611&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=864611', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0864\\/0864611_sa.jpg\"}', 'upc' => '042284850827', 'provider' => 'bestbuy'],\n ['name' => \"Misty - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/misty-cd/865193.p?id=3392842&skuId=865193&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=865193', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0865\\/0865193_sa.jpg\"}', 'upc' => '042284648820', 'provider' => 'bestbuy'],\n ['name' => \"Zydecajun - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/zydecajun-cd/865255.p?id=102069&skuId=865255&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=865255', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8652\\/865255_sa.jpg\"}', 'upc' => '042284658423', 'provider' => 'bestbuy'],\n ['name' => \"Pastel Blues/Let It All Out - CD - Germany\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pastel-blues-let-it-all-out-cd-germany/865442.p?id=70962&skuId=865442&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=865442', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8654\\/865442.jpg\"}', 'upc' => '042284666329', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Sea Level - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-sea-level-cd/865843.p?id=98163&skuId=865843&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=865843', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0865\\/0865843_sa.jpg\"}', 'upc' => '042284314022', 'provider' => 'bestbuy'],\n ['name' => \"Music for Large and Small Ensembles [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-for-large-and-small-ensembles-digdownload-cd/865852.p?id=72034&skuId=865852&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=865852', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8658\\/865852.jpg\"}', 'upc' => '042284315227', 'provider' => 'bestbuy'],\n ['name' => \"Paul Bley With Gary Peacock [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/paul-bley-with-gary-peacock-digdownload-cd/865861.p?id=64396&skuId=865861&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=865861', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8658\\/865861.jpg\"}', 'upc' => '042284316224', 'provider' => 'bestbuy'],\n ['name' => \"Paris-Concert [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/paris-concert-digdownload-cd/865870.p?id=64980&skuId=865870&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=865870', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8658\\/865870.jpg\"}', 'upc' => '042284316323', 'provider' => 'bestbuy'],\n ['name' => \"Photo with Blue Sky, White Cloud, Wires,... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/photo-with-blue-sky-white-cloud-wires-cd/865889.p?id=66501&skuId=865889&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=865889', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8658\\/865889.jpg\"}', 'upc' => '042284316828', 'provider' => 'bestbuy'],\n ['name' => \"80/81 [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 31.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/80-81-digdownload-cd/865898.p?id=69062&skuId=865898&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=865898', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8658\\/865898.jpg\"}', 'upc' => '042284316927', 'provider' => 'bestbuy'],\n ['name' => \"Journey's End - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/journeys-end-cd/865905.p?id=1931618&skuId=865905&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=865905', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8659\\/865905.jpg\"}', 'upc' => '042284317122', 'provider' => 'bestbuy'],\n ['name' => \"Widow In The Window - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/widow-in-the-window-cd/865932.p?id=2393590&skuId=865932&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=865932', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8659\\/865932.jpg\"}', 'upc' => '042284319829', 'provider' => 'bestbuy'],\n ['name' => \"Plays the Music of Carla Bley - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/plays-the-music-of-carla-bley-cd/865950.p?id=69699&skuId=865950&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=865950', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0865\\/0865950_sa.jpg\"}', 'upc' => '042284320726', 'provider' => 'bestbuy'],\n ['name' => \"Afric Pepperbird - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/afric-pepperbird-cd/866147.p?id=66504&skuId=866147&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=866147', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0866\\/0866147_sa.jpg\"}', 'upc' => '042284347525', 'provider' => 'bestbuy'],\n ['name' => \"Tribute [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 33.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tribute-digdownload-cd/866263.p?id=67889&skuId=866263&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=866263', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8662\\/866263.jpg\"}', 'upc' => '042284713528', 'provider' => 'bestbuy'],\n ['name' => \"Very Best of the Righteous Brothers:... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/very-best-of-the-righteous-brothers-cd/866343.p?id=96705&skuId=866343&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=866343', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8663\\/866343_sa.jpg\"}', 'upc' => '042284724821', 'provider' => 'bestbuy'],\n ['name' => \"Triptykon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/triptykon-cd/866423.p?id=66500&skuId=866423&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=866423', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8664\\/866423.jpg\"}', 'upc' => '042284732123', 'provider' => 'bestbuy'],\n ['name' => \"Barzakh - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/barzakh-cd/866496.p?id=64481&skuId=866496&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=866496', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0866\\/0866496_sa.jpg\"}', 'upc' => '042284754026', 'provider' => 'bestbuy'],\n ['name' => \"Music for Films - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-for-films-cd/866502.p?id=68129&skuId=866502&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=866502', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8665\\/866502_sa.jpg\"}', 'upc' => '042284760928', 'provider' => 'bestbuy'],\n ['name' => \"Presents a Musical... [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/presents-a-musical-digdownload-cd/866511.p?id=66715&skuId=866511&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=866511', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8665\\/866511.jpg\"}', 'upc' => '042284788922', 'provider' => 'bestbuy'],\n ['name' => \"Gitanes Jazz: Charlie Parker - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gitanes-jazz-charlie-parker-cd/866557.p?id=2118983&skuId=866557&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=866557', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0866\\/0866557_sa.jpg\"}', 'upc' => '042284791120', 'provider' => 'bestbuy'],\n ['name' => \"Getting There [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/getting-there-digdownload-cd/866717.p?id=63511&skuId=866717&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=866717', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8667\\/866717.jpg\"}', 'upc' => '042283349421', 'provider' => 'bestbuy'],\n ['name' => \"Soulville - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/soulville-cd/866780.p?id=2389709&skuId=866780&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=866780', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8667\\/866780_sa.jpg\"}', 'upc' => '042283355125', 'provider' => 'bestbuy'],\n ['name' => \"A.R.C. [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-r-c-digdownload-cd/866851.p?id=65294&skuId=866851&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=866851', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8668\\/866851.jpg\"}', 'upc' => '042283367821', 'provider' => 'bestbuy'],\n ['name' => \"The WATT Works Family Album - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-watt-works-family-album-various-cd/867342.p?id=2629423&skuId=867342&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=867342', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8673\\/867342.jpg\"}', 'upc' => '042284147828', 'provider' => 'bestbuy'],\n ['name' => \"Extrapolation - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/extrapolation-cd/867397.p?id=68967&skuId=867397&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=867397', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0867\\/0867397_sa.jpg\"}', 'upc' => '042284159821', 'provider' => 'bestbuy'],\n ['name' => \"M.R.C.S - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/m-r-c-s-cd/867422.p?id=70787&skuId=867422&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=867422', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8674\\/867422_sa.jpg\"}', 'upc' => '042284164221', 'provider' => 'bestbuy'],\n ['name' => \"Gerry Mulligan Meets Ben Webster - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gerry-mulligan-meets-ben-webster-cd/867468.p?id=69460&skuId=867468&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=867468', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8674\\/867468_sa.jpg\"}', 'upc' => '042284166126', 'provider' => 'bestbuy'],\n ['name' => \"For the Love of Ella - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-the-love-of-ella-cd/867538.p?id=66310&skuId=867538&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=867538', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0867\\/0867538_sa.jpg\"}', 'upc' => '042284176521', 'provider' => 'bestbuy'],\n ['name' => \"Aparis - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aparis-cd/867556.p?id=71165&skuId=867556&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=867556', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8675\\/867556.jpg\"}', 'upc' => '042284177429', 'provider' => 'bestbuy'],\n ['name' => \"Brain Damaged - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brain-damaged-cd/867663.p?id=98920&skuId=867663&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=867663', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8676\\/867663.jpg\"}', 'upc' => '042284190121', 'provider' => 'bestbuy'],\n ['name' => \"Dinah! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dinah-cd/867752.p?id=71862&skuId=867752&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=867752', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8677\\/867752_sa.jpg\"}', 'upc' => '042284213929', 'provider' => 'bestbuy'],\n ['name' => \"Too Marvelous for Words, Vol. 3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/too-marvelous-for-words-vol-3-cd/867832.p?id=66553&skuId=867832&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=867832', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8678\\/867832.jpg\"}', 'upc' => '042284241922', 'provider' => 'bestbuy'],\n ['name' => \"Bad Reputation - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bad-reputation-cd/867878.p?id=101580&skuId=867878&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=867878', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0867\\/0867878_sa.jpg\"}', 'upc' => '042284243421', 'provider' => 'bestbuy'],\n ['name' => \"Jazz Composers Orchestra [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazz-composers-orchestra-digdownload-cd/867912.p?id=1931619&skuId=867912&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=867912', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8679\\/867912.jpg\"}', 'upc' => '042284112420', 'provider' => 'bestbuy'],\n ['name' => \"Gospel Train [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gospel-train-remaster-cd/868029.p?id=224493&skuId=868029&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=868029', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8680\\/868029.jpg\"}', 'upc' => '042284113427', 'provider' => 'bestbuy'],\n ['name' => \"Echoes of Ellington, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/echoes-of-ellington-vol-1-cd/868136.p?id=66024&skuId=868136&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=868136', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '042284128827', 'provider' => 'bestbuy'],\n ['name' => \"Escalator Over the Hill - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/escalator-over-the-hill-cd/868788.p?id=64389&skuId=868788&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=868788', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0868\\/0868788_sa.jpg\"}', 'upc' => '042283931022', 'provider' => 'bestbuy'],\n ['name' => \"Cantilena [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cantilena-digdownload-cd/868975.p?id=1931621&skuId=868975&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=868975', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8689\\/868975.jpg\"}', 'upc' => '042283961920', 'provider' => 'bestbuy'],\n ['name' => \"... and She Answered - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/-and-she-answered-cd/868984.p?id=63660&skuId=868984&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=868984', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8689\\/868984.jpg\"}', 'upc' => '042283962026', 'provider' => 'bestbuy'],\n ['name' => \"Wave of Sorrow - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wave-of-sorrow-cd/869000.p?id=63657&skuId=869000&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=869000', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8690\\/869000.jpg\"}', 'upc' => '042283962125', 'provider' => 'bestbuy'],\n ['name' => \"The Intimate Ella - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-intimate-ella-cd/869206.p?id=66339&skuId=869206&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=869206', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8692\\/869206_sa.jpg\"}', 'upc' => '042283983823', 'provider' => 'bestbuy'],\n ['name' => \"Paris Concert [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/paris-concert-digdownload-cd/869518.p?id=67867&skuId=869518&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=869518', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8695\\/869518.jpg\"}', 'upc' => '042283917323', 'provider' => 'bestbuy'],\n ['name' => \"Rosensfole: Medieval Songs From Norway - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rosensfole-medieval-songs-from-norway-cd/869634.p?id=66534&skuId=869634&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=869634', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0869\\/0869634_sa.jpg\"}', 'upc' => '042283929326', 'provider' => 'bestbuy'],\n ['name' => \"Luminessence: Music for String... [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/luminessence-music-for-string-digdownload-cd/869661.p?id=67892&skuId=869661&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=869661', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8696\\/869661.jpg\"}', 'upc' => '042283930728', 'provider' => 'bestbuy'],\n ['name' => \"Blossom Dearie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blossom-dearie-cd/869705.p?id=65611&skuId=869705&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=869705', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8697\\/869705_sa.jpg\"}', 'upc' => '042283793422', 'provider' => 'bestbuy'],\n ['name' => \"Sings the Winners - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sings-the-winners-cd/869769.p?id=69672&skuId=869769&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=869769', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0869\\/0869769_sa.jpg\"}', 'upc' => '042283793927', 'provider' => 'bestbuy'],\n ['name' => \"Nightlife - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nightlife-cd/869812.p?id=2466507&skuId=869812&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=869812', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8698\\/869812.jpg\"}', 'upc' => '042283802926', 'provider' => 'bestbuy'],\n ['name' => \"Mel - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mel-cd/869956.p?id=263333&skuId=869956&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=869956', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8699\\/869956.jpg\"}', 'upc' => '042283828728', 'provider' => 'bestbuy'],\n ['name' => \"Dark Intervals - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dark-intervals-cd/870150.p?id=2387160&skuId=870150&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=870150', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8701\\/870150_sa.jpg\"}', 'upc' => '042283734227', 'provider' => 'bestbuy'],\n ['name' => \"Legend of the Seven Dreams - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/legend-of-the-seven-dreams-cd/870187.p?id=3361869&skuId=870187&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=870187', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8701\\/870187.jpg\"}', 'upc' => '042283734425', 'provider' => 'bestbuy'],\n ['name' => \"Personal Mountains [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/personal-mountains-digdownload-cd/870221.p?id=67893&skuId=870221&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=870221', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8702\\/870221.jpg\"}', 'upc' => '042283736122', 'provider' => 'bestbuy'],\n ['name' => \"For Musicians Only - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-musicians-only-cd/870267.p?id=66684&skuId=870267&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=870267', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8702\\/870267.jpg\"}', 'upc' => '042283743526', 'provider' => 'bestbuy'],\n ['name' => \"Boss Tenors: Straight Ahead from Chicago... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/boss-tenors-straight-ahead-from-chicago-cd/870276.p?id=63699&skuId=870276&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=870276', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8702\\/870276.jpg\"}', 'upc' => '042283744028', 'provider' => 'bestbuy'],\n ['name' => \"Ascenseur Pour l'Échafaud [Complete Recordings] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ascenseur-pour-lechafaud-complete-recordings-cd/870711.p?id=73310&skuId=870711&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=870711', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8707\\/870711_sa.jpg\"}', 'upc' => '042283630529', 'provider' => 'bestbuy'],\n ['name' => \"In Angel City - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-angel-city-cd/870864.p?id=67068&skuId=870864&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=870864', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0870\\/0870864_sa.jpg\"}', 'upc' => '042283703124', 'provider' => 'bestbuy'],\n ['name' => \"Mann im Fahrstuhl (The Man in the Elevator) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mann-im-fahrstuhl-the-man-in-the-elevator-cd/870935.p?id=66726&skuId=870935&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=870935', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8709\\/870935_sa.jpg\"}', 'upc' => '042283711020', 'provider' => 'bestbuy'],\n ['name' => \"Blast from the Bayou - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blast-from-the-bayou-cd/871462.p?id=102066&skuId=871462&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=871462', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8714\\/871462.jpg\"}', 'upc' => '042283651821', 'provider' => 'bestbuy'],\n ['name' => \"James Brown's Funky People, Pt. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/james-browns-funky-people-pt-2-cd/871943.p?id=75977&skuId=871943&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=871943', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0871\\/0871943_sa.jpg\"}', 'upc' => '042283585720', 'provider' => 'bestbuy'],\n ['name' => \"The Paul Bley Quartet [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-paul-bley-quartet-digdownload-cd/872210.p?id=64397&skuId=872210&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=872210', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8722\\/872210.jpg\"}', 'upc' => '042283525023', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Mandrill - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-mandrill-cd/872283.p?id=90370&skuId=872283&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=872283', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0872\\/0872283_sa.jpg\"}', 'upc' => '042283527621', 'provider' => 'bestbuy'],\n ['name' => \"Still Live [Reissue] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 31.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/still-live-reissue-cd/872595.p?id=67887&skuId=872595&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=872595', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8725\\/872595_sa.jpg\"}', 'upc' => '042283500822', 'provider' => 'bestbuy'],\n ['name' => \"In the Light - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 22.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-the-light-cd/872611.p?id=3323829&skuId=872611&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=872611', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '042283501126', 'provider' => 'bestbuy'],\n ['name' => \"Passengers [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/passengers-digdownload-cd/872620.p?id=64727&skuId=872620&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=872620', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8726\\/872620.jpg\"}', 'upc' => '042283501621', 'provider' => 'bestbuy'],\n ['name' => \"L'Integrale 1936-1945 [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 66.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lintegrale-1936-1945-box-cd/873031.p?id=94893&skuId=873031&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=873031', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8730\\/873031.jpg\"}', 'upc' => '042283450622', 'provider' => 'bestbuy'],\n ['name' => \"Time Odyssey - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/time-odyssey-cd/873120.p?id=92239&skuId=873120&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=873120', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8731\\/873120_sa.jpg\"}', 'upc' => '042283463424', 'provider' => 'bestbuy'],\n ['name' => \"All About Eve - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-about-eve-cd/873255.p?id=72721&skuId=873255&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=873255', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8732\\/873255_sa.jpg\"}', 'upc' => '042283426023', 'provider' => 'bestbuy'],\n ['name' => \"Intermodulation - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/intermodulation-cd/874370.p?id=66141&skuId=874370&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=874370', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8743\\/874370_sa.jpg\"}', 'upc' => '042283377127', 'provider' => 'bestbuy'],\n ['name' => \"Hollywood Dream - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hollywood-dream-cd/874450.p?id=1383367&skuId=874450&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=874450', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8744\\/874450_sa.jpg\"}', 'upc' => '042283379428', 'provider' => 'bestbuy'],\n ['name' => \"The Individualism of Gil Evans [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-individualism-of-gil-evans-digdownload-cd/874496.p?id=66150&skuId=874496&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=874496', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8744\\/874496.jpg\"}', 'upc' => '042283380424', 'provider' => 'bestbuy'],\n ['name' => \"Tallis: Lamentations Of Jeremiah - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 17.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tallis-lamentations-of-jeremiah-cd/874762.p?id=1760884&skuId=874762&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=874762', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '781182134126', 'provider' => 'bestbuy'],\n ['name' => \"Symphony 5 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/symphony-5-cd/874842.p?id=1693427&skuId=874842&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=874842', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8748\\/874842.jpg\"}', 'upc' => '028943332927', 'provider' => 'bestbuy'],\n ['name' => \"Danças De Rua - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dancas-de-rua-cd/875137.p?id=68355&skuId=875137&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=875137', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8751\\/875137.jpg\"}', 'upc' => '042283230521', 'provider' => 'bestbuy'],\n ['name' => \"1958: Paris Olympia - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1958-paris-olympia-cd/875422.p?id=64339&skuId=875422&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=875422', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8754\\/875422_sa.jpg\"}', 'upc' => '042283265929', 'provider' => 'bestbuy'],\n ['name' => \"Triumph & Agony - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/triumph-agony-cd/875618.p?id=103496&skuId=875618&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=875618', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8756\\/875618.jpg\"}', 'upc' => '042283280427', 'provider' => 'bestbuy'],\n ['name' => \"Girl From Ipanema: The Bossa... [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/girl-from-ipanema-the-bossa-box-cd/876332.p?id=66607&skuId=876332&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=876332', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0876\\/0876332_sa.jpg\"}', 'upc' => '042282361127', 'provider' => 'bestbuy'],\n ['name' => \"Jazz Samba Encore! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazz-samba-encore-cd/876369.p?id=66631&skuId=876369&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=876369', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0876\\/0876369_sa.jpg\"}', 'upc' => '042282361325', 'provider' => 'bestbuy'],\n ['name' => \"Magico - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/magico-cd/877368.p?id=67072&skuId=877368&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=877368', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8773\\/877368_sa.jpg\"}', 'upc' => '042282347428', 'provider' => 'bestbuy'],\n ['name' => \"Quartet For End Of Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/quartet-for-end-of-time-cd/877554.p?id=1699742&skuId=877554&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=877554', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8775\\/877554.jpg\"}', 'upc' => '028942324725', 'provider' => 'bestbuy'],\n ['name' => \"Cole Porter Songbook - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cole-porter-songbook-cd/877616.p?id=2472906&skuId=877616&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=877616', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0877\\/0877616_sa.jpg\"}', 'upc' => '042282325020', 'provider' => 'bestbuy'],\n ['name' => \"The Little Drummer Boy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-little-drummer-boy-cd/878081.p?id=263901&skuId=878081&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=878081', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0878\\/0878081_sa.jpg\"}', 'upc' => '042282274427', 'provider' => 'bestbuy'],\n ['name' => \"The Third Decade [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-third-decade-digdownload-cd/878526.p?id=63804&skuId=878526&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=878526', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8785\\/878526.jpg\"}', 'upc' => '042282321329', 'provider' => 'bestbuy'],\n ['name' => \"Cal - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cal-cd-original-soundtrack/878535.p?id=76573&skuId=878535&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=878535', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8785\\/878535_sa.jpg\"}', 'upc' => '042282276926', 'provider' => 'bestbuy'],\n ['name' => \"Don Giovanni - CD - Edition\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 35.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/don-giovanni-cd-edition/878811.p?id=1683831&skuId=878811&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=878811', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0878\\/0878811_sa.jpg\"}', 'upc' => '028942254121', 'provider' => 'bestbuy'],\n ['name' => \"Bad Girls - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bad-girls-cd/878875.p?id=2412192&skuId=878875&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=878875', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8788\\/878875.jpg\"}', 'upc' => '042282255723', 'provider' => 'bestbuy'],\n ['name' => \"The Great Wide World of Quincy Jones: Live! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-great-wide-world-of-quincy-jones-live-cd/878991.p?id=68077&skuId=878991&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=878991', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8789\\/878991.jpg\"}', 'upc' => '042282261328', 'provider' => 'bestbuy'],\n ['name' => \"Christmas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-cd/881353.p?id=70993&skuId=881353&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=881353', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8813\\/881353_sa.jpg\"}', 'upc' => '042282185921', 'provider' => 'bestbuy'],\n ['name' => \"Impromptus - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/impromptus-cd/881692.p?id=1677921&skuId=881692&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=881692', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8816\\/881692.jpg\"}', 'upc' => '028942223721', 'provider' => 'bestbuy'],\n ['name' => \"Bill Evans Trio with Symphony Orchestra - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bill-evans-trio-with-symphony-orchestra-cd/882021.p?id=66137&skuId=882021&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=882021', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0882\\/0882021_sa.jpg\"}', 'upc' => '042282198327', 'provider' => 'bestbuy'],\n ['name' => \"Vagabonds: Thin Lizzy Tribute - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vagabonds-thin-lizzy-tribute-cd/884092.p?id=1365950&skuId=884092&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=884092', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0884\\/0884092_sa.jpg\"}', 'upc' => '042282096920', 'provider' => 'bestbuy'],\n ['name' => \"Blue Matter - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-matter-cd/884724.p?id=2986164&skuId=884724&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=884724', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8847\\/884724_sa.jpg\"}', 'upc' => '042282092328', 'provider' => 'bestbuy'],\n ['name' => \"Shades of a Blue Orphanage - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shades-of-a-blue-orphanage-cd/885475.p?id=101591&skuId=885475&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=885475', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0885\\/0885475_sa.jpg\"}', 'upc' => '042282052728', 'provider' => 'bestbuy'],\n ['name' => \"Thin Lizzy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thin-lizzy-cd/885484.p?id=101592&skuId=885484&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=885484', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8854\\/885484.jpg\"}', 'upc' => '042282052827', 'provider' => 'bestbuy'],\n ['name' => \"Blues from Laurel Canyon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-from-laurel-canyon-cd/885527.p?id=90880&skuId=885527&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=885527', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8855\\/885527_sa.jpg\"}', 'upc' => '042282053923', 'provider' => 'bestbuy'],\n ['name' => \"Rip Rig and Panic/Now Please Don't You Cry... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rip-rig-and-panic-now-please-dont-you-cry-cd/886287.p?id=68256&skuId=886287&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=886287', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0886\\/0886287_sa.jpg\"}', 'upc' => '042283216426', 'provider' => 'bestbuy'],\n ['name' => \"Master Serie, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/master-serie-vol-1-cd/886330.p?id=94895&skuId=886330&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=886330', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8863\\/886330.jpg\"}', 'upc' => '042283218925', 'provider' => 'bestbuy'],\n ['name' => \"Maximum Security - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/maximum-security-cd/886385.p?id=90052&skuId=886385&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=886385', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0886\\/0886385_sa.jpg\"}', 'upc' => '042283224926', 'provider' => 'bestbuy'],\n ['name' => \"She Loves Me [Original Broadway Cast Album] - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/she-loves-me-original-broadway-cast-album-cd-original-cast-recording/886562.p?id=98546&skuId=886562&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=886562', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0886\\/0886562_sa.jpg\"}', 'upc' => '042283196827', 'provider' => 'bestbuy'],\n ['name' => \"The Very Best of Connie Francis, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-very-best-of-connie-francis-vol-2-cd/886919.p?id=82811&skuId=886919&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=886919', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8869\\/886919.jpg\"}', 'upc' => '042283169920', 'provider' => 'bestbuy'],\n ['name' => \"Quartet West - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/quartet-west-cd/887623.p?id=67065&skuId=887623&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=887623', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0887\\/0887623_sa.jpg\"}', 'upc' => '042283167322', 'provider' => 'bestbuy'],\n ['name' => \"Pres & Teddy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pres-teddy-cd/888267.p?id=72259&skuId=888267&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=888267', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0888\\/0888267_sa.jpg\"}', 'upc' => '042283127029', 'provider' => 'bestbuy'],\n ['name' => \"Bill Evans at Town Hall - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bill-evans-at-town-hall-cd/888276.p?id=66096&skuId=888276&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=888276', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8882\\/888276_sa.jpg\"}', 'upc' => '042283127128', 'provider' => 'bestbuy'],\n ['name' => \"Crystal Silence [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crystal-silence-digdownload-cd/888418.p?id=65288&skuId=888418&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=888418', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8884\\/888418.jpg\"}', 'upc' => '042283133129', 'provider' => 'bestbuy'],\n ['name' => \"Free at Last - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/free-at-last-cd/888436.p?id=3361856&skuId=888436&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=888436', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8884\\/888436.jpg\"}', 'upc' => '042283133228', 'provider' => 'bestbuy'],\n ['name' => \"All Those Born With Wings [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-those-born-with-wings-digdownload-cd/888579.p?id=66489&skuId=888579&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=888579', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8885\\/888579.jpg\"}', 'upc' => '042283139428', 'provider' => 'bestbuy'],\n ['name' => \"Burning the Witches - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/burning-the-witches-cd/889275.p?id=103494&skuId=889275&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=889275', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0889\\/0889275_sa.jpg\"}', 'upc' => '042283090224', 'provider' => 'bestbuy'],\n ['name' => \"Siroco - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/siroco-cd/889293.p?id=65603&skuId=889293&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=889293', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8892\\/889293.jpg\"}', 'upc' => '042283091320', 'provider' => 'bestbuy'],\n ['name' => \"Wings over Water - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wings-over-water-cd/889505.p?id=91605&skuId=889505&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=889505', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8895\\/889505.jpg\"}', 'upc' => '042283105829', 'provider' => 'bestbuy'],\n ['name' => \"Cloud About Mercury - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cloud-about-mercury-cd/889550.p?id=71509&skuId=889550&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=889550', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8895\\/889550.jpg\"}', 'upc' => '042283110823', 'provider' => 'bestbuy'],\n ['name' => \"Exploded View [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/exploded-view-digdownload-cd/889578.p?id=71427&skuId=889578&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=889578', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8895\\/889578.jpg\"}', 'upc' => '042283110922', 'provider' => 'bestbuy'],\n ['name' => \"Les Huegenots - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 67.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/les-huegenots-cd/890067.p?id=1676934&skuId=890067&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=890067', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8900\\/890067.jpg\"}', 'upc' => '028943054928', 'provider' => 'bestbuy'],\n ['name' => \"Love Is Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-is-blue-cd/891146.p?id=90859&skuId=891146&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=891146', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0891\\/0891146_sa.jpg\"}', 'upc' => '042283076921', 'provider' => 'bestbuy'],\n ['name' => \"James Brown's Funky People - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/james-browns-funky-people-cd/893368.p?id=75976&skuId=893368&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=893368', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0893\\/0893368_sa.jpg\"}', 'upc' => '042282941725', 'provider' => 'bestbuy'],\n ['name' => \"Legrand Jazz - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/legrand-jazz-cd/893625.p?id=68497&skuId=893625&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=893625', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8936\\/893625_sa.jpg\"}', 'upc' => '042283007420', 'provider' => 'bestbuy'],\n ['name' => \"Diary [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/diary-digdownload-cd/894562.p?id=71517&skuId=894562&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=894562', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8945\\/894562.jpg\"}', 'upc' => '042282915726', 'provider' => 'bestbuy'],\n ['name' => \"Shift in the Wind - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shift-in-the-wind-cd/894615.p?id=69858&skuId=894615&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=894615', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8946\\/894615.jpg\"}', 'upc' => '042282915924', 'provider' => 'bestbuy'],\n ['name' => \"Implosions - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/implosions-cd/895008.p?id=91600&skuId=895008&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=895008', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8950\\/895008.jpg\"}', 'upc' => '042282920126', 'provider' => 'bestbuy'],\n ['name' => \"Anita Sings The Most - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/anita-sings-the-most-cd/895295.p?id=2638011&skuId=895295&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=895295', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8952\\/895295_sa.jpg\"}', 'upc' => '042282957726', 'provider' => 'bestbuy'],\n ['name' => \"Smokin' at the Half Note - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/smokin-at-the-half-note-cd/895302.p?id=2294633&skuId=895302&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=895302', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8953\\/895302.jpg\"}', 'upc' => '042282957825', 'provider' => 'bestbuy'],\n ['name' => \"Ocean [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ocean-digdownload-cd/895428.p?id=91601&skuId=895428&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=895428', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8954\\/895428.jpg\"}', 'upc' => '042282927927', 'provider' => 'bestbuy'],\n ['name' => \"Conference of the Birds [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/conference-of-the-birds-digdownload-cd/895516.p?id=67563&skuId=895516&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=895516', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8955\\/895516.jpg\"}', 'upc' => '042282937322', 'provider' => 'bestbuy'],\n ['name' => \"Paths, Prints - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 17.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/paths-prints-cd/895534.p?id=66496&skuId=895534&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=895534', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0895\\/0895534_sa.jpg\"}', 'upc' => '042282937728', 'provider' => 'bestbuy'],\n ['name' => \"Fluid Rustle [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fluid-rustle-digdownload-cd/895552.p?id=71974&skuId=895552&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=895552', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8955\\/895552.jpg\"}', 'upc' => '042282938121', 'provider' => 'bestbuy'],\n ['name' => \"Later That Evening [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/later-that-evening-digdownload-cd/895561.p?id=71975&skuId=895561&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=895561', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8955\\/895561.jpg\"}', 'upc' => '042282938220', 'provider' => 'bestbuy'],\n ['name' => \"Deer Wan [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/deer-wan-digdownload-cd/895589.p?id=72031&skuId=895589&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=895589', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8955\\/895589.jpg\"}', 'upc' => '042282938527', 'provider' => 'bestbuy'],\n ['name' => \"Sanfona - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 22.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sanfona-cd/895641.p?id=3361957&skuId=895641&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=895641', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8956\\/895641.jpg\"}', 'upc' => '042282939128', 'provider' => 'bestbuy'],\n ['name' => \"Urban Bushmen - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 31.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/urban-bushmen-cd/895650.p?id=63806&skuId=895650&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=895650', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8956\\/895650.jpg\"}', 'upc' => '042282939425', 'provider' => 'bestbuy'],\n ['name' => \"Timeless [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/timeless-digdownload-cd/896070.p?id=63515&skuId=896070&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=896070', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8960\\/896070.jpg\"}', 'upc' => '042282911421', 'provider' => 'bestbuy'],\n ['name' => \"Belonging - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/belonging-cd/896098.p?id=67891&skuId=896098&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=896098', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8960\\/896098.jpg\"}', 'upc' => '042282911520', 'provider' => 'bestbuy'],\n ['name' => \"Sol Do Meio Dia - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sol-do-meio-dia-cd/896114.p?id=3361956&skuId=896114&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=896114', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8961\\/896114.jpg\"}', 'upc' => '042282911728', 'provider' => 'bestbuy'],\n ['name' => \"Gurdjieff: Sacred Hymns [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gurdjieff-sacred-hymns-digdownload-cd/896150.p?id=2305081&skuId=896150&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=896150', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8961\\/896150.jpg\"}', 'upc' => '042282912220', 'provider' => 'bestbuy'],\n ['name' => \"Playing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/playing-cd/896169.p?id=69686&skuId=896169&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=896169', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8961\\/896169.jpg\"}', 'upc' => '042282912329', 'provider' => 'bestbuy'],\n ['name' => \"Current Events - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/current-events-cd/896882.p?id=3428188&skuId=896882&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=896882', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8968\\/896882.jpg\"}', 'upc' => '042282777027', 'provider' => 'bestbuy'],\n ['name' => \"Folk Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/folk-songs-cd/897104.p?id=67071&skuId=897104&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=897104', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0897\\/0897104_sa.jpg\"}', 'upc' => '042282770523', 'provider' => 'bestbuy'],\n ['name' => \"Solo Concerts:... [DigDownLoad] [Single] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 31.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/solo-concerts-digdownload-single-cd/897131.p?id=67870&skuId=897131&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=897131', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8971\\/897131.jpg\"}', 'upc' => '042282774729', 'provider' => 'bestbuy'],\n ['name' => \"Dança Das Cabeças - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/danca-das-cabecas-cd/897159.p?id=3361958&skuId=897159&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=897159', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8971\\/897159.jpg\"}', 'upc' => '042282775023', 'provider' => 'bestbuy'],\n ['name' => \"Tales of Another [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tales-of-another-digdownload-cd/897220.p?id=69859&skuId=897220&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=897220', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8972\\/897220.jpg\"}', 'upc' => '042282741820', 'provider' => 'bestbuy'],\n ['name' => \"Waves [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/waves-digdownload-cd/897239.p?id=70554&skuId=897239&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=897239', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8972\\/897239.jpg\"}', 'upc' => '042282741929', 'provider' => 'bestbuy'],\n ['name' => \"Alien [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 22.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alien-digdownload-cd/897685.p?id=68769&skuId=897685&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=897685', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8976\\/897685.jpg\"}', 'upc' => '042282763921', 'provider' => 'bestbuy'],\n ['name' => \"California Dreaming - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/california-dreaming-cd/897756.p?id=69322&skuId=897756&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=897756', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0897\\/0897756_sa.jpg\"}', 'upc' => '042282784223', 'provider' => 'bestbuy'],\n ['name' => \"Emergence - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/emergence-cd/897809.p?id=3361871&skuId=897809&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=897809', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8978\\/897809.jpg\"}', 'upc' => '042282785527', 'provider' => 'bestbuy'],\n ['name' => \"Nice Guys [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nice-guys-digdownload-cd/897881.p?id=63802&skuId=897881&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=897881', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8978\\/897881.jpg\"}', 'upc' => '042282787620', 'provider' => 'bestbuy'],\n ['name' => \"Slide Show - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/slide-show-cd/898309.p?id=71525&skuId=898309&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=898309', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8983\\/898309_sa.jpg\"}', 'upc' => '042282725721', 'provider' => 'bestbuy'],\n ['name' => \"Septet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 37.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/septet-cd/898318.p?id=297170&skuId=898318&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=898318', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8983\\/898318.jpg\"}', 'upc' => '042282725820', 'provider' => 'bestbuy'],\n ['name' => \"Solo Concert [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/solo-concert-digdownload-cd/898345.p?id=71521&skuId=898345&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=898345', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8983\\/898345.jpg\"}', 'upc' => '042282726827', 'provider' => 'bestbuy'],\n ['name' => \"The Survivor's Suite [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-survivors-suite-digdownload-cd/898470.p?id=2387171&skuId=898470&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=898470', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8984\\/898470.jpg\"}', 'upc' => '042282713124', 'provider' => 'bestbuy'],\n ['name' => \"Solo [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/solo-digdownload-cd/898540.p?id=66719&skuId=898540&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=898540', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8985\\/898540.jpg\"}', 'upc' => '042282713520', 'provider' => 'bestbuy'],\n ['name' => \"No Mystery - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/no-mystery-cd/898595.p?id=65300&skuId=898595&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=898595', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8985\\/898595_sa.jpg\"}', 'upc' => '042282714923', 'provider' => 'bestbuy'],\n ['name' => \"Staircase - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/staircase-cd/898746.p?id=67873&skuId=898746&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=898746', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8987\\/898746.jpg\"}', 'upc' => '042282733726', 'provider' => 'bestbuy'],\n ['name' => \"Dis - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dis-cd/898951.p?id=66507&skuId=898951&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=898951', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/8989\\/898951.jpg\"}', 'upc' => '042282740823', 'provider' => 'bestbuy'],\n ['name' => \"Sing, Sing, Sing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sing-sing-sing-cd/899601.p?id=70323&skuId=899601&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=899601', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/8996\\/899601_sa.jpg\"}', 'upc' => '042282698728', 'provider' => 'bestbuy'],\n ['name' => \"Bossa Nova: Trinta Años Depois - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bossa-nova-trinta-anos-depois-cd-various/899969.p?id=64441&skuId=899969&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=899969', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0899\\/0899969_sa.jpg\"}', 'upc' => '042282687029', 'provider' => 'bestbuy'],\n ['name' => \"Reach Up & Touch the Sky: Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reach-up-touch-the-sky-live-cd/900305.p?id=99705&skuId=900305&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=900305', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9003\\/900305_sa.jpg\"}', 'upc' => '042282628527', 'provider' => 'bestbuy'],\n ['name' => \"Four Seasons of Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/four-seasons-of-love-cd/901242.p?id=100787&skuId=901242&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=901242', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9012\\/901242_sa.jpg\"}', 'upc' => '042282623621', 'provider' => 'bestbuy'],\n ['name' => \"Once Upon A Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/once-upon-a-time-cd/901304.p?id=2615318&skuId=901304&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=901304', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9013\\/901304.jpg\"}', 'upc' => '042282623829', 'provider' => 'bestbuy'],\n ['name' => \"They're Playing Our Song [Original Cast] - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/theyre-playing-our-song-original-cast-cd-original-cast-recording/901331.p?id=101573&skuId=901331&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=901331', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9013\\/901331_sa.jpg\"}', 'upc' => '042282624024', 'provider' => 'bestbuy'],\n ['name' => \"I Only Have Eyes for You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-only-have-eyes-for-you-cd/901563.p?id=64454&skuId=901563&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=901563', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0901\\/0901563_sa.jpg\"}', 'upc' => '042282590220', 'provider' => 'bestbuy'],\n ['name' => \"Stephan Micus: East of the Night [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stephan-micus-east-of-the-night-digdownload-cd/902394.p?id=91599&skuId=902394&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=902394', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9023\\/902394.jpg\"}', 'upc' => '042282565525', 'provider' => 'bestbuy'],\n ['name' => \"The Jazz Giants '56 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-jazz-giants-56-cd/903357.p?id=72252&skuId=903357&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=903357', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0903\\/0903357_sa.jpg\"}', 'upc' => '042282567222', 'provider' => 'bestbuy'],\n ['name' => \"Invocations/The Moth and the Flame - Germany - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/invocations-the-moth-and-the-flame-germany-cd/903400.p?id=3364707&skuId=903400&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=903400', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9034\\/903400.jpg\"}', 'upc' => '042282547323', 'provider' => 'bestbuy'],\n ['name' => \"Holly & The Ivy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/holly-the-ivy-cd/903552.p?id=1684253&skuId=903552&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=903552', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9035\\/903552_sa.jpg\"}', 'upc' => '028942550025', 'provider' => 'bestbuy'],\n ['name' => \"Hymn Of The 7th Galaxy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hymn-of-the-7th-galaxy-cd/903936.p?id=2304989&skuId=903936&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=903936', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9039\\/903936_sa.jpg\"}', 'upc' => '042282533623', 'provider' => 'bestbuy'],\n ['name' => \"It's OK to Listen to the Gray Voice - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/its-ok-to-listen-to-the-gray-voice-cd/903963.p?id=66494&skuId=903963&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=903963', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9039\\/903963.jpg\"}', 'upc' => '042282540621', 'provider' => 'bestbuy'],\n ['name' => \"Elis & Tom - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/elis-tom-cd/904695.p?id=67994&skuId=904695&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=904695', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0904\\/0904695_sa.jpg\"}', 'upc' => '042282441829', 'provider' => 'bestbuy'],\n ['name' => \"Hellbound - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hellbound-cd/904800.p?id=103495&skuId=904800&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=904800', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9048\\/904800.jpg\"}', 'upc' => '042282466020', 'provider' => 'bestbuy'],\n ['name' => \"Master Serie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/master-serie-cd/904837.p?id=92129&skuId=904837&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=904837', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0904\\/0904837_sa.jpg\"}', 'upc' => '042282478429', 'provider' => 'bestbuy'],\n ['name' => \"Night Lights - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/night-lights-cd/907889.p?id=69462&skuId=907889&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=907889', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0907\\/0907889_sa.jpg\"}', 'upc' => '042281827129', 'provider' => 'bestbuy'],\n ['name' => \"Rejoicing [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rejoicing-digdownload-cd/908325.p?id=69067&skuId=908325&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=908325', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9083\\/908325.jpg\"}', 'upc' => '042281779527', 'provider' => 'bestbuy'],\n ['name' => \"The Harold Arlen Songbook, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-harold-arlen-songbook-vol-1-cd/909823.p?id=66313&skuId=909823&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=909823', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0909\\/0909823_sa.jpg\"}', 'upc' => '042281752728', 'provider' => 'bestbuy'],\n ['name' => \"Master Serie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/master-serie-cd/911393.p?id=75809&skuId=911393&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=911393', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0911\\/0911393_sa.jpg\"}', 'upc' => '042281645822', 'provider' => 'bestbuy'],\n ['name' => \"Theatre - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 22.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/theatre-cd/911589.p?id=1931625&skuId=911589&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=911589', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '042281567827', 'provider' => 'bestbuy'],\n ['name' => \"The Ballad of the Fallen - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-ballad-of-the-fallen-cd/913097.p?id=67070&skuId=913097&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=913097', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0913\\/0913097_sa.jpg\"}', 'upc' => '042281154621', 'provider' => 'bestbuy'],\n ['name' => \"Travels - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 31.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/travels-cd/915264.p?id=69078&skuId=915264&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=915264', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9152\\/915264_sa.jpg\"}', 'upc' => '042281062223', 'provider' => 'bestbuy'],\n ['name' => \"The Magic Touch: An Anthology - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-magic-touch-an-anthology-cd/915674.p?id=95055&skuId=915674&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=915674', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9156\\/915674_sa.jpg\"}', 'upc' => '731451031427', 'provider' => 'bestbuy'],\n ['name' => \"Solo Quiero Caminar - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/solo-quiero-caminar-cd/916254.p?id=65604&skuId=916254&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=916254', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9162\\/916254_sa.jpg\"}', 'upc' => '042281000928', 'provider' => 'bestbuy'],\n ['name' => \"Right There - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/right-there-cd/916441.p?id=71578&skuId=916441&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=916441', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9164\\/916441.jpg\"}', 'upc' => '731451004025', 'provider' => 'bestbuy'],\n ['name' => \"She Works Hard For The Money - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/she-works-hard-for-the-money-cd/917306.p?id=2451452&skuId=917306&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=917306', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0917\\/0917306_sa.jpg\"}', 'upc' => '042281226526', 'provider' => 'bestbuy'],\n ['name' => \"Je Chante Avec Toi Liberte - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/je-chante-avec-toi-liberte-cd/917413.p?id=92478&skuId=917413&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=917413', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0917\\/0917413_sa.jpg\"}', 'upc' => '042281286124', 'provider' => 'bestbuy'],\n ['name' => \"Requiem - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/requiem-cd/917832.p?id=1675595&skuId=917832&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=917832', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9178\\/917832.jpg\"}', 'upc' => '028941355324', 'provider' => 'bestbuy'],\n ['name' => \"Private Collection - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/private-collection-cd/918065.p?id=87224&skuId=918065&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=918065', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0918\\/0918065_sa.jpg\"}', 'upc' => '042281317422', 'provider' => 'bestbuy'],\n ['name' => \"Wayfarer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 17.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wayfarer-cd/918500.p?id=3361853&skuId=918500&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=918500', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9185\\/918500.jpg\"}', 'upc' => '042281196829', 'provider' => 'bestbuy'],\n ['name' => \"Vision [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vision-digdownload-cd/918519.p?id=70793&skuId=918519&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=918519', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9185\\/918519.jpg\"}', 'upc' => '042281196928', 'provider' => 'bestbuy'],\n ['name' => \"Notes From Big Sur [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/notes-from-big-sur-digdownload-cd/918591.p?id=68611&skuId=918591&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=918591', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9185\\/918591.jpg\"}', 'upc' => '731451199929', 'provider' => 'bestbuy'],\n ['name' => \"Friends of Mr. Cairo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/friends-of-mr-cairo-cd/919233.p?id=87223&skuId=919233&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=919233', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0919\\/0919233_sa.jpg\"}', 'upc' => '042280002121', 'provider' => 'bestbuy'],\n ['name' => \"Dinah Jams - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dinah-jams-cd/920542.p?id=71860&skuId=920542&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=920542', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9205\\/920542_sa.jpg\"}', 'upc' => '042281463921', 'provider' => 'bestbuy'],\n ['name' => \"Helen Merrill - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/helen-merrill-cd/920604.p?id=3535110&skuId=920604&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=920604', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0920\\/0920604_sa.jpg\"}', 'upc' => '042281464324', 'provider' => 'bestbuy'],\n ['name' => \"Brown and Roach Incorporated - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brown-and-roach-incorporated-cd/920613.p?id=64576&skuId=920613&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=920613', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0920\\/0920613_sa.jpg\"}', 'upc' => '042281464423', 'provider' => 'bestbuy'],\n ['name' => \"Study in Brown - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/study-in-brown-cd/920631.p?id=64580&skuId=920631&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=920631', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9206\\/920631.jpg\"}', 'upc' => '042281464621', 'provider' => 'bestbuy'],\n ['name' => \"At Basin Street - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-basin-street-cd/920659.p?id=64575&skuId=920659&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=920659', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0920\\/0920659_sa.jpg\"}', 'upc' => '042281464829', 'provider' => 'bestbuy'],\n ['name' => \"Entre Dos Aguas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/entre-dos-aguas-cd/921337.p?id=65601&skuId=921337&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=921337', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9213\\/921337_sa.jpg\"}', 'upc' => '042281410628', 'provider' => 'bestbuy'],\n ['name' => \"Brigadoon [Original Broadway Cast] - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brigadoon-original-broadway-cast-cd-original-cast-recording/924325.p?id=2103090&skuId=924325&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=924325', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9243\\/924325.jpg\"}', 'upc' => '078635100129', 'provider' => 'bestbuy'],\n ['name' => \"I Do! I Do! - CD - Original Broadway Cast\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-do-i-do-cd-original-broadway-cast/924593.p?id=86016&skuId=924593&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=924593', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0924\\/0924593_sa.jpg\"}', 'upc' => '078635112825', 'provider' => 'bestbuy'],\n ['name' => \"Secretos - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/secretos-cd/927769.p?id=87411&skuId=927769&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=927769', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0927\\/0927769_sa.jpg\"}', 'upc' => '078635600025', 'provider' => 'bestbuy'],\n ['name' => \"Lo Mejor de Juan Gabriel con Mariachi - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lo-mejor-de-juan-gabriel-con-mariachi-cd/927830.p?id=83159&skuId=927830&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=927830', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9278\\/927830_sa.jpg\"}', 'upc' => '078635601428', 'provider' => 'bestbuy'],\n ['name' => \"Native Sons - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/native-sons-cd/928982.p?id=1459176&skuId=928982&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=928982', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9289\\/928982.jpg\"}', 'upc' => '018663101323', 'provider' => 'bestbuy'],\n ['name' => \"Once Upon a Time in the West [Original... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/once-upon-a-time-in-the-west-original-cd-original-soundtrack/930229.p?id=93945&skuId=930229&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=930229', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0930\\/0930229_sa.jpg\"}', 'upc' => '078635473629', 'provider' => 'bestbuy'],\n ['name' => \"Intimamente...Emmanuel - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/intimamente-emmanuel-cd/932003.p?id=81533&skuId=932003&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=932003', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0932\\/0932003_sa.jpg\"}', 'upc' => '078635730128', 'provider' => 'bestbuy'],\n ['name' => \"The Revolution Will Not Be Televised - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-revolution-will-not-be-televised-cd/932744.p?id=70725&skuId=932744&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=932744', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9327\\/932744_sa.jpg\"}', 'upc' => '078635699425', 'provider' => 'bestbuy'],\n ['name' => \"Piano Concerto 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/piano-concerto-2-cd/934822.p?id=1678063&skuId=934822&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=934822', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9348\\/934822.jpg\"}', 'upc' => '078635651829', 'provider' => 'bestbuy'],\n ['name' => \"14 Exitos Originales: Para Ti - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/14-exitos-originales-para-ti-cd/935046.p?id=83151&skuId=935046&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=935046', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0935\\/0935046_sa.jpg\"}', 'upc' => '078635628920', 'provider' => 'bestbuy'],\n ['name' => \"Canta Lo Romantico de Juan Gabriel - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/canta-lo-romantico-de-juan-gabriel-cd/936036.p?id=81082&skuId=936036&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=936036', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9360\\/936036.jpg\"}', 'upc' => '078635602722', 'provider' => 'bestbuy'],\n ['name' => \"Recuerdos 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/recuerdos-2-cd/936125.p?id=83153&skuId=936125&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=936125', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0936\\/0936125_sa.jpg\"}', 'upc' => '078635603521', 'provider' => 'bestbuy'],\n ['name' => \"Canta a Juan Gabriel - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/canta-a-juan-gabriel-cd/936161.p?id=81091&skuId=936161&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=936161', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9361\\/936161.jpg\"}', 'upc' => '078635604320', 'provider' => 'bestbuy'],\n ['name' => \"Frente a Frente, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/frente-a-frente-vol-2-cd/937516.p?id=81097&skuId=937516&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=937516', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9375\\/937516.jpg\"}', 'upc' => '078635609622', 'provider' => 'bestbuy'],\n ['name' => \"Sing, Sing, Sing [Bluebird] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sing-sing-sing-bluebird-cd/937785.p?id=66779&skuId=937785&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=937785', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0937\\/0937785_sa.jpg\"}', 'upc' => '078635563023', 'provider' => 'bestbuy'],\n ['name' => \"The Glory of the Human Voice - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-glory-of-the-human-voice-cd/943224.p?id=2065997&skuId=943224&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=943224', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9432\\/943224.jpg\"}', 'upc' => '090266117529', 'provider' => 'bestbuy'],\n ['name' => \"Dancin' Magic - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dancin-magic-cd/944642.p?id=73998&skuId=944642&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=944642', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9446\\/944642.jpg\"}', 'upc' => '021849440826', 'provider' => 'bestbuy'],\n ['name' => \"Top Percussion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/top-percussion-cd/946463.p?id=70184&skuId=946463&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=946463', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0946\\/0946463_sa.jpg\"}', 'upc' => '078635326420', 'provider' => 'bestbuy'],\n ['name' => \"15 Años de Exitos.. - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/15-anos-de-exitos-cd/947676.p?id=83143&skuId=947676&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=947676', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9476\\/947676_sa.jpg\"}', 'upc' => '078635320824', 'provider' => 'bestbuy'],\n ['name' => \"The King and I [1977 Broadway Revival Cast] - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-king-and-i-1977-broadway-revival-cast-cd-original-cast-recording/948461.p?id=2068873&skuId=948461&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=948461', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9484\\/948461.jpg\"}', 'upc' => '078635261028', 'provider' => 'bestbuy'],\n ['name' => \"Ain't Misbehavin' [Original Broadway Cast] - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aint-misbehavin-original-broadway-cast-cd-original-cast-recording/948746.p?id=72615&skuId=948746&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=948746', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9487\\/948746_sa.jpg\"}', 'upc' => '078635296525', 'provider' => 'bestbuy'],\n ['name' => \"25 Aniversario, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/25-aniversario-vol-2-cd/950313.p?id=168243&skuId=950313&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=950313', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9503\\/950313_sa.jpg\"}', 'upc' => '078635249224', 'provider' => 'bestbuy'],\n ['name' => \"My Favorite Encores - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-favorite-encores-cd/951606.p?id=1760928&skuId=951606&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=951606', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9516\\/951606.jpg\"}', 'upc' => '090266072620', 'provider' => 'bestbuy'],\n ['name' => \"Forever Plaid - CD - Original Broadway Cast\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/forever-plaid-cd-original-broadway-cast/952320.p?id=82697&skuId=952320&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=952320', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9523\\/952320_sa.jpg\"}', 'upc' => '090266070220', 'provider' => 'bestbuy'],\n ['name' => \"Roar of the Greasepaint -- The Smell of the... - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/roar-of-the-greasepaint-the-smell-of-the-cd-original-cast-recording/955112.p?id=96796&skuId=955112&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=955112', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0955\\/0955112_sa.jpg\"}', 'upc' => '090266035120', 'provider' => 'bestbuy'],\n ['name' => \"Paint Your Wagon [Original Broadway Cast ] - CD - Original Broadway Cast\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/paint-your-wagon-original-broadway-cast--cd-original-broadway-cast/956219.p?id=94291&skuId=956219&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=956219', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9562\\/956219_sa.jpg\"}', 'upc' => '090266024322', 'provider' => 'bestbuy'],\n ['name' => \"Mancini Country - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mancini-country-cd/958468.p?id=90333&skuId=958468&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=958468', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0958\\/0958468_sa.jpg\"}', 'upc' => '078635366822', 'provider' => 'bestbuy'],\n ['name' => \"Opiate [EP] [EP] [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/opiate-ep-ep-pa-cd/959895.p?id=101999&skuId=959895&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=959895', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0959\\/0959895_sa.jpg\"}', 'upc' => '614223102726', 'provider' => 'bestbuy'],\n ['name' => \"10 Grandes Exitos - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/10-grandes-exitos-cd/961613.p?id=160723&skuId=961613&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=961613', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9616\\/961613_sa.jpg\"}', 'upc' => '078635974126', 'provider' => 'bestbuy'],\n ['name' => \"Siempre Estoy Pensando en Ti - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/siempre-estoy-pensando-en-ti-cd/962015.p?id=83155&skuId=962015&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=962015', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0962\\/0962015_sa.jpg\"}', 'upc' => '078635961621', 'provider' => 'bestbuy'],\n ['name' => \"15 Exitos Inolvidables - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/15-exitos-inolvidables-cd/962088.p?id=86990&skuId=962088&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=962088', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9620\\/962088_sa.jpg\"}', 'upc' => '078635962420', 'provider' => 'bestbuy'],\n ['name' => \"Dr. Demento Presents: Greatest Xmas Novelty CD - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dr-demento-presents-greatest-xmas-novelty-cd-cd-various/967074.p?id=80868&skuId=967074&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=967074', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0967\\/0967074_sa.jpg\"}', 'upc' => '081227575526', 'provider' => 'bestbuy'],\n ['name' => \"My Son, the Greatest: The Best of Allan... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-son-the-greatest-the-best-of-allan-cd/967136.p?id=98590&skuId=967136&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=967136', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9671\\/967136_sa.jpg\"}', 'upc' => '081227577124', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Girl Groups, Vol. 2 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-girl-groups-vol-2-cd-various/967305.p?id=83677&skuId=967305&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=967305', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9673\\/967305_sa.jpg\"}', 'upc' => '081227098926', 'provider' => 'bestbuy'],\n ['name' => \"Back in the USA - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/back-in-the-usa-cd/967617.p?id=3454889&skuId=967617&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=967617', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0967\\/0967617_sa.jpg\"}', 'upc' => '081227103323', 'provider' => 'bestbuy'],\n ['name' => \"High Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/high-time-cd/967635.p?id=3454887&skuId=967635&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=967635', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9676\\/967635.jpg\"}', 'upc' => '081227103422', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Ronnie Hawkins & the Hawks - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-ronnie-hawkins-the-hawks-cd/967886.p?id=85024&skuId=967886&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=967886', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9678\\/967886_sa.jpg\"}', 'upc' => '081227096625', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Flamingos - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-flamingos-cd/967902.p?id=82378&skuId=967902&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=967902', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9679\\/967902_sa.jpg\"}', 'upc' => '081227096724', 'provider' => 'bestbuy'],\n ['name' => \"Best of Little Anthony & the Imperials... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-little-anthony-the-imperials-cd/968279.p?id=89344&skuId=968279&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=968279', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9682\\/968279_sa.jpg\"}', 'upc' => '081227091927', 'provider' => 'bestbuy'],\n ['name' => \"The Best of - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/the-best-of-cd/968395.p?id=87671&skuId=968395&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=968395', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9683\\/968395.jpg\"}', 'upc' => '081227094027', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Jimmie Rodgers [Rhino] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-jimmie-rodgers-rhino-cd/968411.p?id=97059&skuId=968411&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=968411', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0968\\/0968411_sa.jpg\"}', 'upc' => '081227094225', 'provider' => 'bestbuy'],\n ['name' => \"Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-cd/968769.p?id=82561&skuId=968769&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=968769', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0968\\/0968769_sa.jpg\"}', 'upc' => '081227088422', 'provider' => 'bestbuy'],\n ['name' => \"Live: The Best of Vanilla Fudge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-the-best-of-vanilla-fudge-cd/969198.p?id=102990&skuId=969198&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=969198', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0969\\/0969198_sa.jpg\"}', 'upc' => '081227079826', 'provider' => 'bestbuy'],\n ['name' => \"Naked Movie Star - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/naked-movie-star-cd/969385.p?id=74527&skuId=969385&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=969385', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '081227084523', 'provider' => 'bestbuy'],\n ['name' => \"Christmas Harmony - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-harmony-cd/970033.p?id=86220&skuId=970033&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=970033', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0970\\/0970033_sa.jpg\"}', 'upc' => '081227071424', 'provider' => 'bestbuy'],\n ['name' => \"Solitude/Solitaire - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/solitude-solitaire-cd/970550.p?id=2679309&skuId=970550&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=970550', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0970\\/0970550_sa.jpg\"}', 'upc' => '081227965716', 'provider' => 'bestbuy'],\n ['name' => \"Turn Me Loose! (Uk) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/turn-me-loose-uk-cd/970596.p?id=2877852&skuId=970596&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=970596', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0970\\/0970596_sa.jpg\"}', 'upc' => '081227966829', 'provider' => 'bestbuy'],\n ['name' => \"Music World - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-world-cd/970676.p?id=71279&skuId=970676&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=970676', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0970\\/0970676_sa.jpg\"}', 'upc' => '798387943729', 'provider' => 'bestbuy'],\n ['name' => \"Long As You're Living - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/long-as-youre-living-cd/971425.p?id=70372&skuId=971425&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=971425', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9714\\/971425_sa.jpg\"}', 'upc' => '063757407423', 'provider' => 'bestbuy'],\n ['name' => \"Roots (Arg) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/roots-arg-cd/971620.p?id=3194431&skuId=971620&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=971620', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9716\\/971620.jpg\"}', 'upc' => '081227960124', 'provider' => 'bestbuy'],\n ['name' => \"Atlantic Jazz Legends - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 58.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/atlantic-jazz-legends-cd-various/971657.p?id=3185156&skuId=971657&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=971657', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '081227960247', 'provider' => 'bestbuy'],\n ['name' => \"Cosby & The Kids (Remastered) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cosby-the-kids-remastered-cd/971737.p?id=1418614&skuId=971737&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=971737', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9717\\/971737.jpg\"}', 'upc' => '081227461621', 'provider' => 'bestbuy'],\n ['name' => \"Some Great Reward [LP] [LP] - VINYL\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/some-great-reward-lp-lp-vinyl/971746.p?id=2980111&skuId=971746&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=971746', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9717\\/971746_sa.jpg\"}', 'upc' => '081227960841', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Bill Cosby - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-bill-cosby-cd/971755.p?id=1416478&skuId=971755&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=971755', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0971\\/0971755_sa.jpg\"}', 'upc' => '081227461423', 'provider' => 'bestbuy'],\n ['name' => \"Clarke-Boland Big Band (Arg) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/clarke-boland-big-band-arg-cd/971862.p?id=3196674&skuId=971862&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=971862', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '081227965846', 'provider' => 'bestbuy'],\n ['name' => \"Billboard Top Hits: 1979 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/billboard-top-hits-1979-cd-various/972282.p?id=74726&skuId=972282&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=972282', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9722\\/972282_sa.jpg\"}', 'upc' => '081227067427', 'provider' => 'bestbuy'],\n ['name' => \"LaVern Baker Live in Hollywood '91 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lavern-baker-live-in-hollywood-91-cd/973343.p?id=73761&skuId=973343&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=973343', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9733\\/973343_sa.jpg\"}', 'upc' => '081227056520', 'provider' => 'bestbuy'],\n ['name' => \"Blue Yule: Christmas Blues and R&B Classics - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-yule-christmas-blues-and-r-b-classics-cd-various/973398.p?id=77634&skuId=973398&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=973398', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0973\\/0973398_sa.jpg\"}', 'upc' => '081227056827', 'provider' => 'bestbuy'],\n ['name' => \"Loozanteen - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/loozanteen-cd/973520.p?id=2098472&skuId=973520&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=973520', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '081227051723', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => 8.99, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/974333.p?id=103218&skuId=974333&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=974333', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0974\\/0974333_sa.jpg\"}', 'upc' => '081227024529', 'provider' => 'bestbuy'],\n ['name' => \"Hellooo Baby!: The Best of the Big Bopper,... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hellooo-baby-the-best-of-the-big-bopper-cd/974495.p?id=74594&skuId=974495&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=974495', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9744\\/974495.jpg\"}', 'upc' => '081227016425', 'provider' => 'bestbuy'],\n ['name' => \"Kings of Sleep - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kings-of-sleep-cd/976251.p?id=84705&skuId=976251&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=976251', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0976\\/0976251_sa.jpg\"}', 'upc' => '088561101329', 'provider' => 'bestbuy'],\n ['name' => \"Bonded by Blood - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bonded-by-blood-cd/977401.p?id=81812&skuId=977401&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=977401', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9774\\/977401_sa.jpg\"}', 'upc' => '088561801922', 'provider' => 'bestbuy'],\n ['name' => \"Liberty & Justice For... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/liberty-justice-for-cd/977713.p?id=72602&skuId=977713&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=977713', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0977\\/0977713_sa.jpg\"}', 'upc' => '088561820428', 'provider' => 'bestbuy'],\n ['name' => \"Forbidden Evil - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/forbidden-evil-cd/978197.p?id=82623&skuId=978197&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=978197', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0978\\/0978197_sa.jpg\"}', 'upc' => '088561825720', 'provider' => 'bestbuy'],\n ['name' => \"A Day on Cape Cod: Early Cape Morning - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-day-on-cape-cod-early-cape-morning-cd/979472.p?id=99604&skuId=979472&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=979472', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9794\\/979472.jpg\"}', 'upc' => '014431001420', 'provider' => 'bestbuy'],\n ['name' => \"Le Hoogie Boogie: Louisiana French Music for... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/le-hoogie-boogie-louisiana-french-music-for-cd/980264.p?id=80826&skuId=980264&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=980264', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9802\\/980264_sa.jpg\"}', 'upc' => '011661802223', 'provider' => 'bestbuy'],\n ['name' => \"Polkatharsis - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/polkatharsis-cd/980326.p?id=75760&skuId=980326&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=980326', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9803\\/980326_sa.jpg\"}', 'upc' => '011661900929', 'provider' => 'bestbuy'],\n ['name' => \"Zouk Attack - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/zouk-attack-various-cd/980843.p?id=105329&skuId=980843&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=980843', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0980\\/0980843_sa.jpg\"}', 'upc' => '011661503724', 'provider' => 'bestbuy'],\n ['name' => \"Brazil Forr¢: Music for Maids and Taxi Drivers - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brazil-forr-music-for-maids-and-taxi-drivers-cd-various/980941.p?id=75781&skuId=980941&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=980941', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9809\\/980941.jpg\"}', 'upc' => '011661504424', 'provider' => 'bestbuy'],\n ['name' => \"Brazil -- Roots -- Samba - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brazil-roots-samba-cd-various/980969.p?id=75776&skuId=980969&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=980969', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0980\\/0980969_sa.jpg\"}', 'upc' => '011661504523', 'provider' => 'bestbuy'],\n ['name' => \"Mardi Gras Mambo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mardi-gras-mambo-cd/981085.p?id=96623&skuId=981085&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=981085', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0981\\/0981085_sa.jpg\"}', 'upc' => '011661603721', 'provider' => 'bestbuy'],\n ['name' => \"Steve Riley & the Mamou Playboys - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/steve-riley-the-mamou-playboys-cd/981101.p?id=96717&skuId=981101&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=981101', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9811\\/981101_sa.jpg\"}', 'upc' => '011661603820', 'provider' => 'bestbuy'],\n ['name' => \"Tit Galop Pour Mamou... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tit-galop-pour-mamou-cd/981307.p?id=2387294&skuId=981307&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=981307', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9813\\/981307.jpg\"}', 'upc' => '011661604827', 'provider' => 'bestbuy'],\n ['name' => \"Have Moicy! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/have-moicy-cd/981389.p?id=84990&skuId=981389&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=981389', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0981\\/0981389_sa.jpg\"}', 'upc' => '011661301023', 'provider' => 'bestbuy'],\n ['name' => \"Cajun Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cajun-life-cd/981450.p?id=2304902&skuId=981450&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=981450', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9814\\/981450_sa.jpg\"}', 'upc' => '011661304925', 'provider' => 'bestbuy'],\n ['name' => \"I Won'T Cry - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-wont-cry-cd/982164.p?id=2542459&skuId=982164&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=982164', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0982\\/0982164_sa.jpg\"}', 'upc' => '011661208322', 'provider' => 'bestbuy'],\n ['name' => \"Blue Side of Town - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-side-of-town-cd/982271.p?id=91082&skuId=982271&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=982271', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0982\\/0982271_sa.jpg\"}', 'upc' => '011661029224', 'provider' => 'bestbuy'],\n ['name' => \"Songs That Tell a Story - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/songs-that-tell-a-story-cd/982388.p?id=3440146&skuId=982388&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=982388', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0982\\/0982388_sa.jpg\"}', 'upc' => '011661103023', 'provider' => 'bestbuy'],\n ['name' => \"Weeds & Water - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/weeds-water-cd/982413.p?id=96667&skuId=982413&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=982413', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9824\\/982413.jpg\"}', 'upc' => '011661103825', 'provider' => 'bestbuy'],\n ['name' => \"Bluegrass Class of 1990 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bluegrass-class-of-1990-cd-various/982592.p?id=75171&skuId=982592&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=982592', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0982\\/0982592_sa.jpg\"}', 'upc' => '011661850729', 'provider' => 'bestbuy'],\n ['name' => \"Rembetica: Historic Urban Folk Songs From Greece - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rembetica-historic-urban-folk-songs-from-greece-cd-various/982832.p?id=84153&skuId=982832&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=982832', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0982\\/0982832_sa.jpg\"}', 'upc' => '011661107922', 'provider' => 'bestbuy'],\n ['name' => \"New Orleans Piano Wizard: Live! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-orleans-piano-wizard-live-cd/982994.p?id=75544&skuId=982994&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=982994', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9829\\/982994_sa.jpg\"}', 'upc' => '011661202726', 'provider' => 'bestbuy'],\n ['name' => \"Classified - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classified-cd/983047.p?id=75542&skuId=983047&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=983047', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0983\\/0983047_sa.jpg\"}', 'upc' => '011661203624', 'provider' => 'bestbuy'],\n ['name' => \"Too Late to Cry - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/too-late-to-cry-cd/983136.p?id=88416&skuId=983136&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=983136', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9831\\/983136.jpg\"}', 'upc' => '011661023529', 'provider' => 'bestbuy'],\n ['name' => \"Bluegrass Album 5 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bluegrass-album-5-cd-various/983207.p?id=2729964&skuId=983207&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=983207', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0983\\/0983207_sa.jpg\"}', 'upc' => '011661024021', 'provider' => 'bestbuy'],\n ['name' => \"Don't Stop the Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dont-stop-the-music-cd/983252.p?id=91077&skuId=983252&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=983252', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0983\\/0983252_sa.jpg\"}', 'upc' => '011661024526', 'provider' => 'bestbuy'],\n ['name' => \"Solo Banjo Works - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/solo-banjo-works-cd/983289.p?id=102296&skuId=983289&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=983289', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0983\\/0983289_sa.jpg\"}', 'upc' => '011661024724', 'provider' => 'bestbuy'],\n ['name' => \"Drive - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/drive-cd/983369.p?id=82418&skuId=983369&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=983369', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9833\\/983369.jpg\"}', 'upc' => '011661025523', 'provider' => 'bestbuy'],\n ['name' => \"At the Old Schoolhouse - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-the-old-schoolhouse-cd/983449.p?id=87113&skuId=983449&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=983449', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9834\\/983449.jpg\"}', 'upc' => '011661026025', 'provider' => 'bestbuy'],\n ['name' => \"The Original Peacock Recordings - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-original-peacock-recordings-cd/983500.p?id=75899&skuId=983500&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=983500', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0983\\/0983500_sa.jpg\"}', 'upc' => '011661203921', 'provider' => 'bestbuy'],\n ['name' => \"Waitin' for My Ya Ya - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/waitin-for-my-ya-ya-cd/983608.p?id=76232&skuId=983608&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=983608', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9836\\/983608_sa.jpg\"}', 'upc' => '011661205123', 'provider' => 'bestbuy'],\n ['name' => \"Live: Mardi Gras in Montreux - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-mardi-gras-in-montreux-cd/983617.p?id=65691&skuId=983617&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=983617', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9836\\/983617.jpg\"}', 'upc' => '011661205222', 'provider' => 'bestbuy'],\n ['name' => \"A Change Is Gonna Come - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-change-is-gonna-come-cd/983635.p?id=76343&skuId=983635&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=983635', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9836\\/983635.jpg\"}', 'upc' => '011661205321', 'provider' => 'bestbuy'],\n ['name' => \"Two Highways - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-highways-cd/983742.p?id=88418&skuId=983742&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=983742', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9837\\/983742_sa.jpg\"}', 'upc' => '011661026520', 'provider' => 'bestbuy'],\n ['name' => \"Tony Rice - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tony-rice-cd/984064.p?id=96595&skuId=984064&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=984064', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9840\\/984064_sa.jpg\"}', 'upc' => '011661008526', 'provider' => 'bestbuy'],\n ['name' => \"I've Got That Old Feeling - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ive-got-that-old-feeling-cd/984260.p?id=88415&skuId=984260&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=984260', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9842\\/984260.jpg\"}', 'upc' => '011661027527', 'provider' => 'bestbuy'],\n ['name' => \"The Bluegrass Album, Vol. 1 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-bluegrass-album-vol-1-cd-various/984304.p?id=75153&skuId=984304&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=984304', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0984\\/0984304_sa.jpg\"}', 'upc' => '011661014022', 'provider' => 'bestbuy'],\n ['name' => \"The Bluegrass Album, Vol. 2 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-bluegrass-album-vol-2-cd-various/984386.p?id=75154&skuId=984386&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=984386', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9843\\/984386_sa.jpg\"}', 'upc' => '011661016422', 'provider' => 'bestbuy'],\n ['name' => \"Bluegrass Album, Vol. 3: California... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bluegrass-album-vol-3-california-cd-various/984466.p?id=75155&skuId=984466&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=984466', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9844\\/984466_sa.jpg\"}', 'upc' => '011661018020', 'provider' => 'bestbuy'],\n ['name' => \"Me & My Guitar - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/me-my-guitar-cd/984741.p?id=96592&skuId=984741&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=984741', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9847\\/984741_sa.jpg\"}', 'upc' => '011661020122', 'provider' => 'bestbuy'],\n ['name' => \"Steady Rock - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/steady-rock-cd/984992.p?id=92868&skuId=984992&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=984992', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0984\\/0984992_sa.jpg\"}', 'upc' => '011661209220', 'provider' => 'bestbuy'],\n ['name' => \"Your Mama Don't Know - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/your-mama-dont-know-cd/985287.p?id=155913&skuId=985287&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=985287', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9852\\/985287_sa.jpg\"}', 'upc' => '011661210721', 'provider' => 'bestbuy'],\n ['name' => \"One-Dime Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-dime-blues-cd/985349.p?id=73753&skuId=985349&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=985349', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9853\\/985349_sa.jpg\"}', 'upc' => '011661211223', 'provider' => 'bestbuy'],\n ['name' => \"Saddle Pals - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/saddle-pals-cd/985492.p?id=96663&skuId=985492&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=985492', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9854\\/985492_sa.jpg\"}', 'upc' => '011661801127', 'provider' => 'bestbuy'],\n ['name' => \"Modern New Orleans Masters - CD - Various Holiday\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/modern-new-orleans-masters-cd-various-holiday/985651.p?id=93176&skuId=985651&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=985651', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0985\\/0985651_sa.jpg\"}', 'upc' => '011661151420', 'provider' => 'bestbuy'],\n ['name' => \"The Bluegrass Compact Disc, Vol. 2 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-bluegrass-compact-disc-vol-2-cd-various/985679.p?id=2444264&skuId=985679&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=985679', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0985\\/0985679_sa.jpg\"}', 'upc' => '011661151628', 'provider' => 'bestbuy'],\n ['name' => \"Best of the West - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-the-west-cd/985688.p?id=96652&skuId=985688&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=985688', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0985\\/0985688_sa.jpg\"}', 'upc' => '011661151727', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the West Rides Again - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-west-rides-again-cd/985697.p?id=2387156&skuId=985697&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=985697', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0985\\/0985697_sa.jpg\"}', 'upc' => '011661152427', 'provider' => 'bestbuy'],\n ['name' => \"Buckwheat's Zydeco Party - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/buckwheats-zydeco-party-cd/985713.p?id=2304900&skuId=985713&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=985713', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9857\\/985713_sa.jpg\"}', 'upc' => '011661152823', 'provider' => 'bestbuy'],\n ['name' => \"A Few Old Memories - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-few-old-memories-cd/985722.p?id=80379&skuId=985722&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=985722', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9857\\/985722_sa.jpg\"}', 'upc' => '011661152922', 'provider' => 'bestbuy'],\n ['name' => \"Mandolin Abstractions - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mandolin-abstractions-cd/985795.p?id=84298&skuId=985795&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=985795', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9857\\/985795.jpg\"}', 'upc' => '011661154025', 'provider' => 'bestbuy'],\n ['name' => \"Musical Varieties - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/musical-varieties-cd/985839.p?id=75758&skuId=985839&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=985839', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0985\\/0985839_sa.jpg\"}', 'upc' => '011661154629', 'provider' => 'bestbuy'],\n ['name' => \"Cajun Spice - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cajun-spice-cd-various/985866.p?id=76546&skuId=985866&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=985866', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0985\\/0985866_sa.jpg\"}', 'upc' => '011661155022', 'provider' => 'bestbuy'],\n ['name' => \"Water from Another Time: A Retrospective - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/water-from-another-time-a-retrospective-cd/985893.p?id=91108&skuId=985893&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=985893', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9858\\/985893_sa.jpg\"}', 'upc' => '011661155527', 'provider' => 'bestbuy'],\n ['name' => \"The First Million Miles - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-first-million-miles-cd/986400.p?id=100008&skuId=986400&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=986400', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9864\\/986400_sa.jpg\"}', 'upc' => '011661156029', 'provider' => 'bestbuy'],\n ['name' => \"New Orleans Brass Bands: Down Yonder - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-orleans-brass-bands-down-yonder-cd-various/986428.p?id=69584&skuId=986428&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=986428', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0986\\/0986428_sa.jpg\"}', 'upc' => '011661156227', 'provider' => 'bestbuy'],\n ['name' => \"Rounder Fiddle - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rounder-fiddle-cd-various/986473.p?id=97413&skuId=986473&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=986473', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9864\\/986473_sa.jpg\"}', 'upc' => '011661156524', 'provider' => 'bestbuy'],\n ['name' => \"Mardi Gras Party [Rounder] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mardi-gras-party-rounder-cd-various/986491.p?id=90523&skuId=986491&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=986491', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9864\\/986491_sa.jpg\"}', 'upc' => '011661156722', 'provider' => 'bestbuy'],\n ['name' => \"Live From Left Coast - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-from-left-coast-cd/986936.p?id=2472687&skuId=986936&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=986936', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9869\\/986936.jpg\"}', 'upc' => '011661603523', 'provider' => 'bestbuy'],\n ['name' => \"Mouseketeer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mouseketeer-cd/986972.p?id=81344&skuId=986972&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=986972', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0986\\/0986972_sa.jpg\"}', 'upc' => '016351481429', 'provider' => 'bestbuy'],\n ['name' => \"Galong Galong Galong - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/galong-galong-galong-cd/987007.p?id=104945&skuId=987007&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987007', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0987\\/0987007_sa.jpg\"}', 'upc' => '016351481825', 'provider' => 'bestbuy'],\n ['name' => \"The Very Best of the Wailing Souls - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-very-best-of-the-wailing-souls-cd/987025.p?id=103303&skuId=987025&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987025', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9870\\/987025_sa.jpg\"}', 'upc' => '016351481924', 'provider' => 'bestbuy'],\n ['name' => \"Tommy Makem & Liam Clancy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tommy-makem-liam-clancy-cd/987043.p?id=90247&skuId=987043&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987043', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0987\\/0987043_sa.jpg\"}', 'upc' => '016351520227', 'provider' => 'bestbuy'],\n ['name' => \"Sparrows Point - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sparrows-point-cd/987098.p?id=98598&skuId=987098&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987098', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0987\\/0987098_sa.jpg\"}', 'upc' => '016351800220', 'provider' => 'bestbuy'],\n ['name' => \"The Makem & Clancy Concert - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-makem-clancy-concert-cd/987150.p?id=90237&skuId=987150&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987150', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9871\\/987150_sa.jpg\"}', 'upc' => '016351520326', 'provider' => 'bestbuy'],\n ['name' => \"Two for the Early Dew - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-for-the-early-dew-cd/987169.p?id=90240&skuId=987169&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987169', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9871\\/987169_sa.jpg\"}', 'upc' => '016351520425', 'provider' => 'bestbuy'],\n ['name' => \"Live: National Concert Hall - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-national-concert-hall-cd/987178.p?id=90238&skuId=987178&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987178', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9871\\/987178_sa.jpg\"}', 'upc' => '016351520623', 'provider' => 'bestbuy'],\n ['name' => \"Spirit of the Nation - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spirit-of-the-nation-cd/987230.p?id=104635&skuId=987230&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987230', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0987\\/0987230_sa.jpg\"}', 'upc' => '016351522825', 'provider' => 'bestbuy'],\n ['name' => \"Live Alive-Oh - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-alive-oh-cd/987258.p?id=104631&skuId=987258&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987258', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0987\\/0987258_sa.jpg\"}', 'upc' => '016351522924', 'provider' => 'bestbuy'],\n ['name' => \"Rifles of the I.R.A. - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rifles-of-the-i-r-a-cd/987276.p?id=104633&skuId=987276&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987276', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0987\\/0987276_sa.jpg\"}', 'upc' => '016351523020', 'provider' => 'bestbuy'],\n ['name' => \"Let the People Sing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/let-the-people-sing-cd/987294.p?id=104630&skuId=987294&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987294', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9872\\/987294_sa.jpg\"}', 'upc' => '016351523129', 'provider' => 'bestbuy'],\n ['name' => \"Three Swedish Fiddlers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/three-swedish-fiddlers-cd/987445.p?id=101801&skuId=987445&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987445', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9874\\/987445_sa.jpg\"}', 'upc' => '016351210128', 'provider' => 'bestbuy'],\n ['name' => \"Traditional Norwegian Fiddle Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/traditional-norwegian-fiddle-music-cd/987454.p?id=93617&skuId=987454&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987454', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0987\\/0987454_sa.jpg\"}', 'upc' => '016351210326', 'provider' => 'bestbuy'],\n ['name' => \"Andy Statman Klezmer Orchestra - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/andy-statman-klezmer-orchestra-cd/987463.p?id=100193&skuId=987463&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987463', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9874\\/987463_sa.jpg\"}', 'upc' => '016351210425', 'provider' => 'bestbuy'],\n ['name' => \"Noel Hill & Tony MacMahon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/noel-hill-tony-macmahon-cd/987533.p?id=85384&skuId=987533&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987533', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9875\\/987533_sa.jpg\"}', 'upc' => '016351340320', 'provider' => 'bestbuy'],\n ['name' => \"Earth's Rightful Ruler - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/earths-rightful-ruler-cd/987891.p?id=94245&skuId=987891&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987891', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0987\\/0987891_sa.jpg\"}', 'upc' => '016351441126', 'provider' => 'bestbuy'],\n ['name' => \"Omana Wapi - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/omana-wapi-cd/987917.p?id=82817&skuId=987917&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=987917', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9879\\/987917_sa.jpg\"}', 'upc' => '016351432421', 'provider' => 'bestbuy'],\n ['name' => \"Fire House Rock - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fire-house-rock-cd/988033.p?id=103298&skuId=988033&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988033', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0988\\/0988033_sa.jpg\"}', 'upc' => '016351480422', 'provider' => 'bestbuy'],\n ['name' => \"Black Sounds of Freedom - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/black-sounds-of-freedom-cd/988051.p?id=74841&skuId=988051&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988051', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0988\\/0988051_sa.jpg\"}', 'upc' => '016351480521', 'provider' => 'bestbuy'],\n ['name' => \"Wa-Do-Dem - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wa-do-dem-cd/988079.p?id=81349&skuId=988079&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988079', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9880\\/988079_sa.jpg\"}', 'upc' => '016351480620', 'provider' => 'bestbuy'],\n ['name' => \"Mister Yellowman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mister-yellowman-cd/988097.p?id=104952&skuId=988097&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988097', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0988\\/0988097_sa.jpg\"}', 'upc' => '016351480729', 'provider' => 'bestbuy'],\n ['name' => \"Skidip! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/skidip-cd/988122.p?id=81345&skuId=988122&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988122', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0988\\/0988122_sa.jpg\"}', 'upc' => '016351480927', 'provider' => 'bestbuy'],\n ['name' => \"Words & Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/words-music-cd/988266.p?id=95038&skuId=988266&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988266', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9882\\/988266.jpg\"}', 'upc' => '016351793522', 'provider' => 'bestbuy'],\n ['name' => \"Bad Boy Skanking - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bad-boy-skanking-cd/988284.p?id=104962&skuId=988284&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988284', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0988\\/0988284_sa.jpg\"}', 'upc' => '016351481023', 'provider' => 'bestbuy'],\n ['name' => \"The Mouse and the Man - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-mouse-and-the-man-cd/988300.p?id=81347&skuId=988300&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988300', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9883\\/988300_sa.jpg\"}', 'upc' => '016351481122', 'provider' => 'bestbuy'],\n ['name' => \"Zungguzungguguzungguzeng - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/zungguzungguguzungguzeng-cd/988328.p?id=104960&skuId=988328&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988328', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9883\\/988328_sa.jpg\"}', 'upc' => '016351481221', 'provider' => 'bestbuy'],\n ['name' => \"Hark! The Village Wait - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hark-the-village-wait-cd/988337.p?id=100259&skuId=988337&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988337', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0988\\/0988337_sa.jpg\"}', 'upc' => '016351795229', 'provider' => 'bestbuy'],\n ['name' => \"Now We Are Six - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/now-we-are-six-cd/988346.p?id=288667&skuId=988346&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988346', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9883\\/988346_sa.jpg\"}', 'upc' => '016351796028', 'provider' => 'bestbuy'],\n ['name' => \"Please to See the King - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/please-to-see-the-king-cd/988373.p?id=100261&skuId=988373&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988373', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0988\\/0988373_sa.jpg\"}', 'upc' => '016351797520', 'provider' => 'bestbuy'],\n ['name' => \"Art of Fingerstyle Jazz Guitar - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/art-of-fingerstyle-jazz-guitar-cd/988499.p?id=73752&skuId=988499&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988499', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9884\\/988499_sa.jpg\"}', 'upc' => '016351980526', 'provider' => 'bestbuy'],\n ['name' => \"When I Was on Horseback - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/when-i-was-on-horseback-cd/988587.p?id=98824&skuId=988587&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988587', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0988\\/0988587_sa.jpg\"}', 'upc' => '016351971623', 'provider' => 'bestbuy'],\n ['name' => \"How to Play Blues Guitar - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/how-to-play-blues-guitar-cd/988658.p?id=84399&skuId=988658&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988658', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9886\\/988658.jpg\"}', 'upc' => '016351980120', 'provider' => 'bestbuy'],\n ['name' => \"Flatpicking Guitar Festival - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/flatpicking-guitar-festival-cd-various/988676.p?id=82398&skuId=988676&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988676', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0988\\/0988676_sa.jpg\"}', 'upc' => '016351980328', 'provider' => 'bestbuy'],\n ['name' => \"Bounty Hunter - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bounty-hunter-cd/988747.p?id=177097&skuId=988747&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988747', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0988\\/0988747_sa.jpg\"}', 'upc' => '015891100326', 'provider' => 'bestbuy'],\n ['name' => \"Carolina Sky - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/carolina-sky-cd/988756.p?id=79285&skuId=988756&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988756', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9887\\/988756.jpg\"}', 'upc' => '015891100623', 'provider' => 'bestbuy'],\n ['name' => \"Irregular Guy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/irregular-guy-cd/988783.p?id=156034&skuId=988783&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988783', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0988\\/0988783_sa.jpg\"}', 'upc' => '015891100920', 'provider' => 'bestbuy'],\n ['name' => \"At My Window - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-my-window-cd/988809.p?id=105171&skuId=988809&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988809', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9888\\/988809_sa.jpg\"}', 'upc' => '015891102023', 'provider' => 'bestbuy'],\n ['name' => \"The Live Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-live-album-cd/988872.p?id=87705&skuId=988872&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988872', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0988\\/0988872_sa.jpg\"}', 'upc' => '015891102429', 'provider' => 'bestbuy'],\n ['name' => \"Old Friends - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/old-friends-cd/988890.p?id=77918&skuId=988890&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988890', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0988\\/0988890_sa.jpg\"}', 'upc' => '015891102528', 'provider' => 'bestbuy'],\n ['name' => \"When It Rains - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/when-it-rains-cd/988943.p?id=177160&skuId=988943&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988943', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0988\\/0988943_sa.jpg\"}', 'upc' => '015891378824', 'provider' => 'bestbuy'],\n ['name' => \"Odd Man In - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/odd-man-in-cd/988961.p?id=177155&skuId=988961&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988961', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9889\\/988961_sa.jpg\"}', 'upc' => '015891379029', 'provider' => 'bestbuy'],\n ['name' => \"All on a Rising Day - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-on-a-rising-day-cd/988989.p?id=97421&skuId=988989&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=988989', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9889\\/988989_sa.jpg\"}', 'upc' => '015891379128', 'provider' => 'bestbuy'],\n ['name' => \"Home of the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/home-of-the-blues-cd/989023.p?id=92851&skuId=989023&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989023', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0989\\/0989023_sa.jpg\"}', 'upc' => '015891379326', 'provider' => 'bestbuy'],\n ['name' => \"Blue Blazes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-blazes-cd/989041.p?id=95932&skuId=989041&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989041', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9890\\/989041.jpg\"}', 'upc' => '015891379425', 'provider' => 'bestbuy'],\n ['name' => \"Sugar Plums: Holiday Treats from Sugar Hill - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sugar-plums-holiday-treats-from-sugar-hill-cd-various/989078.p?id=100739&skuId=989078&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989078', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9890\\/989078.jpg\"}', 'upc' => '015891379623', 'provider' => 'bestbuy'],\n ['name' => \"Rambler - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rambler-cd/989103.p?id=96174&skuId=989103&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989103', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9891\\/989103_sa.jpg\"}', 'upc' => '015891379821', 'provider' => 'bestbuy'],\n ['name' => \"The New Frontier - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-new-frontier-cd/989149.p?id=83039&skuId=989149&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989149', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9891\\/989149.jpg\"}', 'upc' => '015891380124', 'provider' => 'bestbuy'],\n ['name' => \"Rhythm of Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rhythm-of-love-cd/989185.p?id=104317&skuId=989185&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989185', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9891\\/989185_sa.jpg\"}', 'upc' => '015891102726', 'provider' => 'bestbuy'],\n ['name' => \"West Textures - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/west-textures-cd/989201.p?id=87706&skuId=989201&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989201', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0989\\/0989201_sa.jpg\"}', 'upc' => '015891102825', 'provider' => 'bestbuy'],\n ['name' => \"Far North - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/far-north-cd/989407.p?id=177102&skuId=989407&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989407', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0989\\/0989407_sa.jpg\"}', 'upc' => '015891850221', 'provider' => 'bestbuy'],\n ['name' => \"The Gospel Collection 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-gospel-collection-1-cd/989434.p?id=88832&skuId=989434&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989434', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0989\\/0989434_sa.jpg\"}', 'upc' => '015891910420', 'provider' => 'bestbuy'],\n ['name' => \"Hymn Time in the Country - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hymn-time-in-the-country-cd/989531.p?id=88828&skuId=989531&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989531', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9895\\/989531_sa.jpg\"}', 'upc' => '015891376523', 'provider' => 'bestbuy'],\n ['name' => \"Take Me Back - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/take-me-back-cd/989559.p?id=101875&skuId=989559&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989559', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9895\\/989559_sa.jpg\"}', 'upc' => '015891376622', 'provider' => 'bestbuy'],\n ['name' => \"Shades of the Past - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shades-of-the-past-cd/989577.p?id=85769&skuId=989577&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989577', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9895\\/989577.jpg\"}', 'upc' => '015891376721', 'provider' => 'bestbuy'],\n ['name' => \"Blue Rose - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-rose-cd/989595.p?id=75104&skuId=989595&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989595', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9895\\/989595_sa.jpg\"}', 'upc' => '015891376820', 'provider' => 'bestbuy'],\n ['name' => \"Cool of the Day - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cool-of-the-day-cd/989639.p?id=106574&skuId=989639&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989639', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0989\\/0989639_sa.jpg\"}', 'upc' => '015891113227', 'provider' => 'bestbuy'],\n ['name' => \"The Great Road - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-great-road-cd/989648.p?id=170663&skuId=989648&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989648', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9896\\/989648_sa.jpg\"}', 'upc' => '015891113425', 'provider' => 'bestbuy'],\n ['name' => \"Thunderation - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thunderation-cd/989657.p?id=79097&skuId=989657&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989657', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9896\\/989657.jpg\"}', 'upc' => '015891113524', 'provider' => 'bestbuy'],\n ['name' => \"Bluegrass: World's Greatest Show - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bluegrass-worlds-greatest-show-cd-various/989675.p?id=79009&skuId=989675&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989675', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9896\\/989675_sa.jpg\"}', 'upc' => '015891220123', 'provider' => 'bestbuy'],\n ['name' => \"15th Anniversary Celebration - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/15th-anniversary-celebration-cd-various/989684.p?id=98306&skuId=989684&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989684', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9896\\/989684_sa.jpg\"}', 'upc' => '015891220222', 'provider' => 'bestbuy'],\n ['name' => \"Once More, Vols. 1 & 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/once-more-vols-1-2-cd/989700.p?id=177159&skuId=989700&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989700', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9897\\/989700.jpg\"}', 'upc' => '015891220321', 'provider' => 'bestbuy'],\n ['name' => \"One Way Track - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-way-track-cd/989719.p?id=75558&skuId=989719&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989719', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0989\\/0989719_sa.jpg\"}', 'upc' => '015891370125', 'provider' => 'bestbuy'],\n ['name' => \"Sweet Temptation - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sweet-temptation-cd/989728.p?id=99039&skuId=989728&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989728', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9897\\/989728_sa.jpg\"}', 'upc' => '015891370620', 'provider' => 'bestbuy'],\n ['name' => \"Skaggs & Rice - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/skaggs-rice-cd/989755.p?id=99042&skuId=989755&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989755', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0989\\/0989755_sa.jpg\"}', 'upc' => '015891371122', 'provider' => 'bestbuy'],\n ['name' => \"The Walls of Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-walls-of-time-cd/989808.p?id=97427&skuId=989808&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989808', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9898\\/989808_sa.jpg\"}', 'upc' => '015891372228', 'provider' => 'bestbuy'],\n ['name' => \"Eight String Swing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/eight-string-swing-cd/989817.p?id=73457&skuId=989817&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989817', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0989\\/0989817_sa.jpg\"}', 'upc' => '015891372525', 'provider' => 'bestbuy'],\n ['name' => \"Busy Bee Cafe - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/busy-bee-cafe-cd/989826.p?id=100640&skuId=989826&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989826', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9898\\/989826.jpg\"}', 'upc' => '015891372624', 'provider' => 'bestbuy'],\n ['name' => \"Guitar - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/guitar-cd/989844.p?id=79095&skuId=989844&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989844', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9898\\/989844_sa.jpg\"}', 'upc' => '015891373027', 'provider' => 'bestbuy'],\n ['name' => \"Church Street Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/church-street-blues-cd/989862.p?id=107533&skuId=989862&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989862', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0989\\/0989862_sa.jpg\"}', 'upc' => '015891373225', 'provider' => 'bestbuy'],\n ['name' => \"At the Scene - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-the-scene-cd/989899.p?id=98310&skuId=989899&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989899', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9898\\/989899.jpg\"}', 'upc' => '015891373621', 'provider' => 'bestbuy'],\n ['name' => \"Desert Rose - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/desert-rose-cd/989915.p?id=156035&skuId=989915&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989915', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9899\\/989915_sa.jpg\"}', 'upc' => '015891374321', 'provider' => 'bestbuy'],\n ['name' => \"On the Boulevard - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/on-the-boulevard-cd/989924.p?id=93139&skuId=989924&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989924', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0989\\/0989924_sa.jpg\"}', 'upc' => '015891374529', 'provider' => 'bestbuy'],\n ['name' => \"Traditional Ties - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/traditional-ties-cd/989951.p?id=85767&skuId=989951&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=989951', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0989\\/0989951_sa.jpg\"}', 'upc' => '015891374826', 'provider' => 'bestbuy'],\n ['name' => \"Heaven's Joy Awaits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heavens-joy-awaits-cd/990002.p?id=177113&skuId=990002&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990002', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9900\\/990002.jpg\"}', 'upc' => '015891376028', 'provider' => 'bestbuy'],\n ['name' => \"I'll Wander Back Someday - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ill-wander-back-someday-cd/990057.p?id=88829&skuId=990057&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990057', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0990\\/0990057_sa.jpg\"}', 'upc' => '015891376929', 'provider' => 'bestbuy'],\n ['name' => \"Take a Step over - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/take-a-step-over-cd/990075.p?id=177095&skuId=990075&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990075', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9900\\/990075_sa.jpg\"}', 'upc' => '015891377025', 'provider' => 'bestbuy'],\n ['name' => \"Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-cd/990093.p?id=93138&skuId=990093&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990093', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9900\\/990093.jpg\"}', 'upc' => '015891377124', 'provider' => 'bestbuy'],\n ['name' => \"Classic Country Gents Reunion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classic-country-gents-reunion-cd/990119.p?id=156037&skuId=990119&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990119', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9901\\/990119_sa.jpg\"}', 'upc' => '015891377223', 'provider' => 'bestbuy'],\n ['name' => \"Now They Are Four - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/now-they-are-four-cd/990137.p?id=74487&skuId=990137&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990137', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0990\\/0990137_sa.jpg\"}', 'upc' => '015891377322', 'provider' => 'bestbuy'],\n ['name' => \"I Heard the Angels Singing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-heard-the-angels-singing-cd/990155.p?id=177114&skuId=990155&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990155', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0990\\/0990155_sa.jpg\"}', 'upc' => '015891377421', 'provider' => 'bestbuy'],\n ['name' => \"Cathy Fink & Marcy Marxer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cathy-fink-marcy-marxer-cd/990173.p?id=82234&skuId=990173&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990173', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0990\\/0990173_sa.jpg\"}', 'upc' => '015891377520', 'provider' => 'bestbuy'],\n ['name' => \"High Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/high-time-cd/990191.p?id=73458&skuId=990191&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990191', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0990\\/0990191_sa.jpg\"}', 'upc' => '015891377629', 'provider' => 'bestbuy'],\n ['name' => \"I Know a Good Thing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-know-a-good-thing-cd/990217.p?id=94428&skuId=990217&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990217', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9902\\/990217_sa.jpg\"}', 'upc' => '015891377728', 'provider' => 'bestbuy'],\n ['name' => \"The Boys Are Back in Town - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-boys-are-back-in-town-cd/990235.p?id=177153&skuId=990235&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990235', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9902\\/990235_sa.jpg\"}', 'upc' => '015891377827', 'provider' => 'bestbuy'],\n ['name' => \"Treasures Untold - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/treasures-untold-cd/990262.p?id=73456&skuId=990262&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990262', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9902\\/990262_sa.jpg\"}', 'upc' => '015891378022', 'provider' => 'bestbuy'],\n ['name' => \"Dust Bowl Children - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dust-bowl-children-cd/990280.p?id=97423&skuId=990280&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990280', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9902\\/990280_sa.jpg\"}', 'upc' => '015891378121', 'provider' => 'bestbuy'],\n ['name' => \"My Heart Is Yours - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-heart-is-yours-cd/990306.p?id=88830&skuId=990306&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990306', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0990\\/0990306_sa.jpg\"}', 'upc' => '015891378220', 'provider' => 'bestbuy'],\n ['name' => \"Take It Home - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/take-it-home-cd/990342.p?id=85766&skuId=990342&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990342', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9903\\/990342_sa.jpg\"}', 'upc' => '015891378428', 'provider' => 'bestbuy'],\n ['name' => \"Scenic Roots - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/scenic-roots-cd/990360.p?id=177162&skuId=990360&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990360', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0990\\/0990360_sa.jpg\"}', 'upc' => '015891378527', 'provider' => 'bestbuy'],\n ['name' => \"The Power of Expression - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-power-of-expression-cd/990422.p?id=75013&skuId=990422&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990422', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9904\\/990422_sa.jpg\"}', 'upc' => '018861014821', 'provider' => 'bestbuy'],\n ['name' => \"Past Lives - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/past-lives-cd/990440.p?id=97684&skuId=990440&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990440', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9904\\/990440_sa.jpg\"}', 'upc' => '018861014920', 'provider' => 'bestbuy'],\n ['name' => \"Invisible Lantern - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/invisible-lantern-cd/990663.p?id=98136&skuId=990663&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990663', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0990\\/0990663_sa.jpg\"}', 'upc' => '018861018829', 'provider' => 'bestbuy'],\n ['name' => \"Land Speed Record - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/land-speed-record-cd/990798.p?id=85975&skuId=990798&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990798', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0990\\/0990798_sa.jpg\"}', 'upc' => '018861019529', 'provider' => 'bestbuy'],\n ['name' => \"Hallraker: Live! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hallraker-live-cd/990967.p?id=80253&skuId=990967&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=990967', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0990\\/0990967_sa.jpg\"}', 'upc' => '018861020525', 'provider' => 'bestbuy'],\n ['name' => \"Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-cd/991154.p?id=73642&skuId=991154&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=991154', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9911\\/991154_sa.jpg\"}', 'upc' => '018861016023', 'provider' => 'bestbuy'],\n ['name' => \"Mournful Cries - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mournful-cries-cd/991172.p?id=2434683&skuId=991172&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=991172', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9911\\/991172_sa.jpg\"}', 'upc' => '018861016122', 'provider' => 'bestbuy'],\n ['name' => \"Buzz Factory - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/buzz-factory-cd/991261.p?id=98133&skuId=991261&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=991261', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0991\\/0991261_sa.jpg\"}', 'upc' => '018861024820', 'provider' => 'bestbuy'],\n ['name' => \"Helter Stupid - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/helter-stupid-cd/991341.p?id=92965&skuId=991341&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=991341', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9913\\/991341_sa.jpg\"}', 'upc' => '018861025223', 'provider' => 'bestbuy'],\n ['name' => \"Heavier Than Thou - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heavier-than-thou-cd/991528.p?id=97743&skuId=991528&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=991528', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0991\\/0991528_sa.jpg\"}', 'upc' => '018861026626', 'provider' => 'bestbuy'],\n ['name' => \"Annihilate This Week - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/annihilate-this-week-cd/991699.p?id=74818&skuId=991699&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=991699', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9916\\/991699_sa.jpg\"}', 'upc' => '018861008127', 'provider' => 'bestbuy'],\n ['name' => \"Born Too Late - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/born-too-late-cd/991715.p?id=97740&skuId=991715&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=991715', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0991\\/0991715_sa.jpg\"}', 'upc' => '018861008226', 'provider' => 'bestbuy'],\n ['name' => \"Gone II: But Never Too Gone - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gone-ii-but-never-too-gone-cd/991733.p?id=83823&skuId=991733&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=991733', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9917\\/991733_sa.jpg\"}', 'upc' => '018861008622', 'provider' => 'bestbuy'],\n ['name' => \"Other Worlds [EP] [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/other-worlds-ep-ep-cd/991911.p?id=98137&skuId=991911&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=991911', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0991\\/0991911_sa.jpg\"}', 'upc' => '018861010526', 'provider' => 'bestbuy'],\n ['name' => \"It's in My Blood - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/its-in-my-blood-cd/991939.p?id=75012&skuId=991939&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=991939', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9919\\/991939_sa.jpg\"}', 'upc' => '018861010625', 'provider' => 'bestbuy'],\n ['name' => \"All - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-cd/991975.p?id=80250&skuId=991975&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=991975', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9919\\/991975_sa.jpg\"}', 'upc' => '018861011226', 'provider' => 'bestbuy'],\n ['name' => \"Post-Mersh, Vol. 3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/post-mersh-vol-3-cd/992000.p?id=91862&skuId=992000&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992000', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9920\\/992000_sa.jpg\"}', 'upc' => '018861016528', 'provider' => 'bestbuy'],\n ['name' => \"Paranoid Time [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/paranoid-time-ep-cd/992037.p?id=91858&skuId=992037&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992037', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992037_sa.jpg\"}', 'upc' => '018861000220', 'provider' => 'bestbuy'],\n ['name' => \"Jealous Again - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jealous-again-cd/992046.p?id=74804&skuId=992046&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992046', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992046_sa.jpg\"}', 'upc' => '018861000329', 'provider' => 'bestbuy'],\n ['name' => \"The Punch Line - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-punch-line-cd/992064.p?id=107768&skuId=992064&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992064', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9920\\/992064_sa.jpg\"}', 'upc' => '018861000428', 'provider' => 'bestbuy'],\n ['name' => \"Six Pack [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/six-pack-ep-cd/992082.p?id=74805&skuId=992082&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992082', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992082_sa.jpg\"}', 'upc' => '018861000527', 'provider' => 'bestbuy'],\n ['name' => \"TV Party [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tv-party-ep-cd/992117.p?id=74807&skuId=992117&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992117', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992117_sa.jpg\"}', 'upc' => '018861001227', 'provider' => 'bestbuy'],\n ['name' => \"What Makes a Man Start Fires? - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/what-makes-a-man-start-fires-cd/992135.p?id=91864&skuId=992135&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992135', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992135_sa.jpg\"}', 'upc' => '018861001425', 'provider' => 'bestbuy'],\n ['name' => \"Everything Went Black - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/everything-went-black-cd/992153.p?id=74808&skuId=992153&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992153', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992153_sa.jpg\"}', 'upc' => '018861001524', 'provider' => 'bestbuy'],\n ['name' => \"Buzz or Howl Under the... [EP] [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/buzz-or-howl-under-the-ep-pa-cd/992171.p?id=2443666&skuId=992171&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992171', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9921\\/992171_sa.jpg\"}', 'upc' => '018861001623', 'provider' => 'bestbuy'],\n ['name' => \"Metal Circus [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metal-circus-ep-cd/992206.p?id=85976&skuId=992206&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992206', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992206_sa.jpg\"}', 'upc' => '018861002026', 'provider' => 'bestbuy'],\n ['name' => \"My War - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-war-cd/992224.p?id=74810&skuId=992224&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992224', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992224_sa.jpg\"}', 'upc' => '018861002323', 'provider' => 'bestbuy'],\n ['name' => \"Family Man - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/family-man-cd/992242.p?id=74811&skuId=992242&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992242', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992242_sa.jpg\"}', 'upc' => '018861002620', 'provider' => 'bestbuy'],\n ['name' => \"Double Nickels on the Dime - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/double-nickels-on-the-dime-cd/992260.p?id=91856&skuId=992260&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992260', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992260_sa.jpg\"}', 'upc' => '018861002828', 'provider' => 'bestbuy'],\n ['name' => \"The Process of Weeding Out [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-process-of-weeding-out-ep-cd/992304.p?id=74815&skuId=992304&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992304', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992304_sa.jpg\"}', 'upc' => '018861003726', 'provider' => 'bestbuy'],\n ['name' => \"Let's Get Real, Real Gone for a Change - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lets-get-real-real-gone-for-a-change-cd/992420.p?id=83824&skuId=992420&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992420', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9924\\/992420_sa.jpg\"}', 'upc' => '018861006123', 'provider' => 'bestbuy'],\n ['name' => \"Human Rights - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/human-rights-cd/992509.p?id=84527&skuId=992509&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992509', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9925\\/992509_sa.jpg\"}', 'upc' => '018861011721', 'provider' => 'bestbuy'],\n ['name' => \"Sometimes [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sometimes-ep-cd/992616.p?id=82255&skuId=992616&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992616', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992616_sa.jpg\"}', 'upc' => '018861013121', 'provider' => 'bestbuy'],\n ['name' => \"Escape from Noise - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/escape-from-noise-cd/992643.p?id=92963&skuId=992643&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992643', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992643_sa.jpg\"}', 'upc' => '018861013329', 'provider' => 'bestbuy'],\n ['name' => \"Post-Mersh, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/post-mersh-vol-1-cd/992723.p?id=91860&skuId=992723&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992723', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9927\\/992723.jpg\"}', 'upc' => '018861013824', 'provider' => 'bestbuy'],\n ['name' => \"Post-Mersh, Vol. 2 [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/post-mersh-vol-2-pa-cd/992741.p?id=91861&skuId=992741&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992741', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9927\\/992741_sa.jpg\"}', 'upc' => '018861013923', 'provider' => 'bestbuy'],\n ['name' => \"Milo Goes to College - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/milo-goes-to-college-cd/992803.p?id=107755&skuId=992803&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992803', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992803_sa.jpg\"}', 'upc' => '018861014227', 'provider' => 'bestbuy'],\n ['name' => \"I Don'T Want To Grow Up - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-dont-want-to-grow-up-cd/992821.p?id=80254&skuId=992821&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992821', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0992\\/0992821_sa.jpg\"}', 'upc' => '018861014326', 'provider' => 'bestbuy'],\n ['name' => \"Bonus Fat [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bonus-fat-ep-cd/992849.p?id=80251&skuId=992849&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992849', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9928\\/992849_sa.jpg\"}', 'upc' => '018861014425', 'provider' => 'bestbuy'],\n ['name' => \"Two Things at Once (Milo Goes to... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-things-at-once-milo-goes-to-cd/992867.p?id=80257&skuId=992867&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=992867', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9928\\/992867_sa.jpg\"}', 'upc' => '018861014524', 'provider' => 'bestbuy'],\n ['name' => \"HR Tapes 84-86 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hr-tapes-84-86-cd/993027.p?id=2484284&skuId=993027&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=993027', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0993\\/0993027_sa.jpg\"}', 'upc' => '018861017129', 'provider' => 'bestbuy'],\n ['name' => \"Louie Louie [Single] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/louie-louie-single-cd/993063.p?id=74821&skuId=993063&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=993063', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9930\\/993063_sa.jpg\"}', 'upc' => '018861017525', 'provider' => 'bestbuy'],\n ['name' => \"Intolerance - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/intolerance-cd/993143.p?id=84917&skuId=993143&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=993143', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0993\\/0993143_sa.jpg\"}', 'upc' => '018861021522', 'provider' => 'bestbuy'],\n ['name' => \"Singin' in the Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/singin-in-the-heart-cd/993287.p?id=84528&skuId=993287&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=993287', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0993\\/0993287_sa.jpg\"}', 'upc' => '018861022420', 'provider' => 'bestbuy'],\n ['name' => \"Take That Manic Ride - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/take-that-manic-ride-cd/993303.p?id=75014&skuId=993303&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=993303', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9933\\/993303_sa.jpg\"}', 'upc' => '018861022529', 'provider' => 'bestbuy'],\n ['name' => \"I Can See You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-can-see-you-cd/993321.p?id=74820&skuId=993321&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=993321', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0993\\/0993321_sa.jpg\"}', 'upc' => '018861022628', 'provider' => 'bestbuy'],\n ['name' => \"Spirit Electricity - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spirit-electricity-cd/993349.p?id=73646&skuId=993349&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=993349', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0993\\/0993349_sa.jpg\"}', 'upc' => '018861022826', 'provider' => 'bestbuy'],\n ['name' => \"Fromohio - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fromohio-cd/993438.p?id=82251&skuId=993438&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=993438', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0993\\/0993438_sa.jpg\"}', 'upc' => '018861023526', 'provider' => 'bestbuy'],\n ['name' => \"Eight Miles High/Makes No Sense at All [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/eight-miles-high-makes-no-sense-at-all-ep-cd/993483.p?id=85972&skuId=993483&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=993483', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9934\\/993483_sa.jpg\"}', 'upc' => '018861027029', 'provider' => 'bestbuy'],\n ['name' => \"The Politics of Time [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-politics-of-time-pa-cd/993580.p?id=91859&skuId=993580&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=993580', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9935\\/993580.jpg\"}', 'upc' => '018861027722', 'provider' => 'bestbuy'],\n ['name' => \"Guns [EP] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/guns-ep-cd/993768.p?id=107775&skuId=993768&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=993768', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9937\\/993768_sa.jpg\"}', 'upc' => '018861029122', 'provider' => 'bestbuy'],\n ['name' => \"The History of the JAMS a.k.a. The Timelords - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-history-of-the-jams-a-k-a-the-timelords-cd/994534.p?id=101890&skuId=994534&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=994534', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0994\\/0994534_sa.jpg\"}', 'upc' => '016581404021', 'provider' => 'bestbuy'],\n ['name' => \"All Fools Day - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-fools-day-cd/994570.p?id=97748&skuId=994570&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=994570', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0994\\/0994570_sa.jpg\"}', 'upc' => '016581211124', 'provider' => 'bestbuy'],\n ['name' => \"The Art of Rolling - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-art-of-rolling-cd/994767.p?id=1421838&skuId=994767&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=994767', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9947\\/994767_sa.jpg\"}', 'upc' => '016581271029', 'provider' => 'bestbuy'],\n ['name' => \"Witness - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/witness-cd-original-soundtrack/995668.p?id=104598&skuId=995668&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=995668', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9956\\/995668.jpg\"}', 'upc' => '030206823721', 'provider' => 'bestbuy'],\n ['name' => \"Game of Thrones: Season Two [Score] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/game-of-thrones-season-two-score-cd-original-soundtrack/996006.p?id=2459051&skuId=996006&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=996006', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9960\\/996006_sa.jpg\"}', 'upc' => '030206714821', 'provider' => 'bestbuy'],\n ['name' => \"Ice Age: Continental Drift (Score) - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ice-age-continental-drift-score-cd-original-soundtrack/996015.p?id=2479196&skuId=996015&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=996015', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0996\\/0996015_sa.jpg\"}', 'upc' => '030206715224', 'provider' => 'bestbuy'],\n ['name' => \"The Star Wars Trilogy [1 Disc] - Original Soundtrack - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-star-wars-trilogy-1-disc-original-soundtrack-cd/996024.p?id=2771044&skuId=996024&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=996024', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0996\\/0996024_sa.jpg\"}', 'upc' => '030206742121', 'provider' => 'bestbuy'],\n ['name' => \"Christine [Original Motion Picture Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christine-original-motion-picture-soundtrack-cd-original-soundtrack/996202.p?id=77593&skuId=996202&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=996202', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0996\\/0996202_sa.jpg\"}', 'upc' => '030206524024', 'provider' => 'bestbuy'],\n ['name' => \"Back to the Future, Pt. 3 [Original Motion... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/back-to-the-future-pt-3-original-motion-cd-original-soundtrack/996453.p?id=73630&skuId=996453&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=996453', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9964\\/996453_sa.jpg\"}', 'upc' => '030206527223', 'provider' => 'bestbuy'],\n ['name' => \"Original Scores by Bill Conti: The Right... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/original-scores-by-bill-conti-the-right-cd-original-soundtrack/996514.p?id=96691&skuId=996514&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=996514', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9965\\/996514.jpg\"}', 'upc' => '030206743128', 'provider' => 'bestbuy'],\n ['name' => \"Halloween [Original Motion Picture Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/halloween-original-motion-picture-soundtrack-cd-original-soundtrack/996569.p?id=1366048&skuId=996569&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=996569', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9965\\/996569.jpg\"}', 'upc' => '030206826227', 'provider' => 'bestbuy'],\n ['name' => \"Pee-Wee's Big Adventure/Back to School [Music... - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pee-wees-big-adventure-back-to-school-music-cd-original-soundtrack/996587.p?id=2069859&skuId=996587&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=996587', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0996\\/0996587_sa.jpg\"}', 'upc' => '030206428124', 'provider' => 'bestbuy'],\n ['name' => \"Predator 2 [Original Motion Picture Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/predator-2-original-motion-picture-soundtrack-cd-original-soundtrack/997586.p?id=95289&skuId=997586&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=997586', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9975\\/997586.jpg\"}', 'upc' => '030206530223', 'provider' => 'bestbuy'],\n ['name' => \"Mr. Bungle [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mr-bungle-pa-cd/998166.p?id=92536&skuId=998166&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=998166', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9981\\/998166_sa.jpg\"}', 'upc' => '075992664028', 'provider' => 'bestbuy'],\n ['name' => \"Rock 'N' Roll High School - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rock-n-roll-high-school-cd-original-soundtrack/998567.p?id=96907&skuId=998567&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=998567', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/9985\\/998567.jpg\"}', 'upc' => '075992742726', 'provider' => 'bestbuy'],\n ['name' => \"In the Wind - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-the-wind-cd/998816.p?id=94794&skuId=998816&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=998816', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0998\\/0998816_sa.jpg\"}', 'upc' => '075992622424', 'provider' => 'bestbuy'],\n ['name' => \"A Song Will Rise - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-song-will-rise-cd/998825.p?id=94787&skuId=998825&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=998825', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9988\\/998825_sa.jpg\"}', 'upc' => '075992622523', 'provider' => 'bestbuy'],\n ['name' => \"That Was the Year That Was - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/that-was-the-year-that-was-cd/998843.p?id=89014&skuId=998843&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=998843', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9988\\/998843_sa.jpg\"}', 'upc' => '075992743426', 'provider' => 'bestbuy'],\n ['name' => \"Sleeping Gypsy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sleeping-gypsy-cd/998870.p?id=82884&skuId=998870&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=998870', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0998\\/0998870_sa.jpg\"}', 'upc' => '075992731126', 'provider' => 'bestbuy'],\n ['name' => \"A Wild and Crazy Guy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-wild-and-crazy-guy-cd/999076.p?id=90703&skuId=999076&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=999076', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0999\\/0999076_sa.jpg\"}', 'upc' => '075992596329', 'provider' => 'bestbuy'],\n ['name' => \"One Bad Habit - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-bad-habit-cd/999236.p?id=82880&skuId=999236&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=999236', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/0999\\/0999236_sa.jpg\"}', 'upc' => '075992342728', 'provider' => 'bestbuy'],\n ['name' => \"Moving - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moving-cd/999904.p?id=94796&skuId=999904&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=999904', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9999\\/999904_sa.jpg\"}', 'upc' => '075992598125', 'provider' => 'bestbuy'],\n ['name' => \"The Sea - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-sea-cd/999931.p?id=97832&skuId=999931&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=999931', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/en_US\\/images\\/musicmoviegame\\/pdpimages\\/999931.jpg\"}', 'upc' => '075992716529', 'provider' => 'bestbuy'],\n ['name' => \"Peter, Paul and Mommy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/peter-paul-and-mommy-cd/999986.p?id=94799&skuId=999986&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=999986', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/9999\\/999986_sa.jpg\"}', 'upc' => '075992717724', 'provider' => 'bestbuy'],\n ['name' => \"Spy Kids: All the Time in the World (Blu-ray Disc) (Ultraviolet Digital Copy)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spy-kids-all-the-time-in-the-world-blu-ray-disc-ultraviolet-digital-copy/1000006.p?id=2266824&skuId=1000006&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1000006', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1000\\/1000006.jpg\"}', 'upc' => '013132620237', 'provider' => 'bestbuy'],\n ['name' => \"4-Year Standard Geek Squad Protection\", 'description_short' => \"4-Year Standard Geek Squad Protection\", 'description_long' => \"4-Year Standard Geek Squad Protection\", 'price' => 49.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/4-year-standard-geek-squad-protection/1000016.p?id=1218228675633&skuId=1000016&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1000016', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{null}', 'upc' => '400010000166', 'provider' => 'bestbuy'],\n ['name' => \"4-Year Standard Geek Squad Protection\", 'description_short' => \"4-Year Standard Geek Squad Protection\", 'description_long' => \"4-Year Standard Geek Squad Protection\", 'price' => 59.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/4-year-standard-geek-squad-protection/1000034.p?id=1218228664503&skuId=1000034&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1000034', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{null}', 'upc' => '400010000340', 'provider' => 'bestbuy'],\n ['name' => \"Hunting High and Low - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hunting-high-and-low-cd/1000384.p?id=2390193&skuId=1000384&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1000384', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1000\\/1000384_sa.jpg\"}', 'upc' => '075992530026', 'provider' => 'bestbuy'],\n ['name' => \"Mentalist: Complete Fifth Season [5 Discs] (DVD) (Boxed Set)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mentalist-complete-fifth-season-5-discs-dvd-boxed-set/1000592.p?id=2718175&skuId=1000592&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1000592', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1000\\/1000592_sa.jpg\"}', 'upc' => '883929278619', 'provider' => 'bestbuy'],\n ['name' => \"Big Trash - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-trash-cd/1000847.p?id=101704&skuId=1000847&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1000847', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1000\\/1000847.jpg\"}', 'upc' => '075992592123', 'provider' => 'bestbuy'],\n ['name' => \"Song Cycle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/song-cycle-cd/1000990.p?id=94414&skuId=1000990&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1000990', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1000\\/1000990_sa.jpg\"}', 'upc' => '075992585620', 'provider' => 'bestbuy'],\n ['name' => \"Hot Tub Time Machine (Blu-ray Disc) (2 Disc) (Unrated) (Digital Copy)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hot-tub-time-machine-blu-ray-disc-2-disc-unrated-digital-copy/1001121.p?id=2111949&skuId=1001121&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001121', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001121_sa.jpg\"}', 'upc' => '883904205982', 'provider' => 'bestbuy'],\n ['name' => \"Rambo (Blu-ray Disc) (Extended Edition)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rambo-blu-ray-disc-extended-edition/1001149.p?id=1844107&skuId=1001149&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001149', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001149_sa.jpg\"}', 'upc' => '012236110422', 'provider' => 'bestbuy'],\n ['name' => \"Our Family Wedding (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/our-family-wedding-dvd/1001158.p?id=2111964&skuId=1001158&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001158', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001158_sa.jpg\"}', 'upc' => '024543689775', 'provider' => 'bestbuy'],\n ['name' => \"Predator 1 & 2 (Blu-ray Disc) (2 Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 34.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/predator-1-2-blu-ray-disc-2-disc/1001167.p?id=2133970&skuId=1001167&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001167', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001167_sa.jpg\"}', 'upc' => '024543676416', 'provider' => 'bestbuy'],\n ['name' => \"Johnny Handsome (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/johnny-handsome-blu-ray-disc/1001176.p?id=58691&skuId=1001176&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001176', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001176_sa.jpg\"}', 'upc' => '012236110446', 'provider' => 'bestbuy'],\n ['name' => \"Lock Up (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lock-up-blu-ray-disc/1001185.p?id=47839&skuId=1001185&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001185', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001185_sa.jpg\"}', 'upc' => '012236110439', 'provider' => 'bestbuy'],\n ['name' => \"The Joneses (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-joneses-blu-ray-disc/1001228.p?id=2123553&skuId=1001228&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001228', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001228_sa.jpg\"}', 'upc' => '024543691921', 'provider' => 'bestbuy'],\n ['name' => \"Hot Tub Time Machine (DVD) (Unrated) (Remastered)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 4.99, 'url' => 'http://www.bestbuy.com/site/hot-tub-time-machine-dvd-unrated-remastered/1001246.p?id=2111949&skuId=1001246&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001246', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001246.jpg\"}', 'upc' => '883904206040', 'provider' => 'bestbuy'],\n ['name' => \"Predator (Blu-ray Disc) (2 Disc) (Special Edition)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/predator-blu-ray-disc-2-disc-special-edition/1001255.p?id=23924&skuId=1001255&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001255', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001255_sa.jpg\"}', 'upc' => '024543663959', 'provider' => 'bestbuy'],\n ['name' => \"Date Night (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/date-night-dvd/1001273.p?id=2123476&skuId=1001273&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001273', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001273_sa.jpg\"}', 'upc' => '024543665311', 'provider' => 'bestbuy'],\n ['name' => \"Diary of a Wimpy Kid (Blu-ray/DVD)(Digital Copy)(with Movie Money)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/diary-of-a-wimpy-kid-blu-ray-dvddigital-copywith-movie-money/1001291.p?id=2118251&skuId=1001291&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001291', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001291_sa.jpg\"}', 'upc' => '024543669289', 'provider' => 'bestbuy'],\n ['name' => \"Diary of a Wimpy Kid (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/diary-of-a-wimpy-kid-dvd/1001307.p?id=2118251&skuId=1001307&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001307', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001307_sa.jpg\"}', 'upc' => '024543669197', 'provider' => 'bestbuy'],\n ['name' => \"Full Metal Jacket - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/full-metal-jacket-cd-original-soundtrack/1001418.p?id=83069&skuId=1001418&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001418', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001418_sa.jpg\"}', 'upc' => '075992561327', 'provider' => 'bestbuy'],\n ['name' => \"Love Is Such a Funny Game - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-is-such-a-funny-game-cd/1001542.p?id=78668&skuId=1001542&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001542', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001542_sa.jpg\"}', 'upc' => '075992565325', 'provider' => 'bestbuy'],\n ['name' => \"Strip Mine - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/strip-mine-cd/1001597.p?id=86649&skuId=1001597&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001597', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001597_sa.jpg\"}', 'upc' => '075992565721', 'provider' => 'bestbuy'],\n ['name' => \"Empire of the Sun - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/empire-of-the-sun-cd-original-soundtrack/1001604.p?id=81553&skuId=1001604&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001604', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001604_sa.jpg\"}', 'upc' => '075992566827', 'provider' => 'bestbuy'],\n ['name' => \"Brian Wilson (Port) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brian-wilson-port-cd/1001622.p?id=2857502&skuId=1001622&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1001622', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1001\\/1001622.jpg\"}', 'upc' => '075992566926', 'provider' => 'bestbuy'],\n ['name' => \"Stay on These Roads - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stay-on-these-roads-cd/1002220.p?id=72292&skuId=1002220&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1002220', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1002\\/1002220_sa.jpg\"}', 'upc' => '075992573320', 'provider' => 'bestbuy'],\n ['name' => \"Ritual de lo Habitual [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ritual-de-lo-habitual-pa-cd/1002408.p?id=86715&skuId=1002408&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1002408', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1002\\/1002408_sa.jpg\"}', 'upc' => '075992599320', 'provider' => 'bestbuy'],\n ['name' => \"An Evening Wasted with Tom Lehrer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/an-evening-wasted-with-tom-lehrer-cd/1002738.p?id=89013&skuId=1002738&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1002738', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1002\\/1002738_sa.jpg\"}', 'upc' => '075992743525', 'provider' => 'bestbuy'],\n ['name' => \"Arthur (Or the Decline and Fall of the... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/arthur-or-the-decline-and-fall-of-the-cd/1002783.p?id=88112&skuId=1002783&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1002783', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1002\\/1002783_sa.jpg\"}', 'upc' => '075992621823', 'provider' => 'bestbuy'],\n ['name' => \"Why Lady Why - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/why-lady-why-cd/1002961.p?id=92295&skuId=1002961&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1002961', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1002\\/1002961_sa.jpg\"}', 'upc' => '075992373821', 'provider' => 'bestbuy'],\n ['name' => \"Hard Rock TrackPak - Mac\", 'description_short' => \"HAL LEONARD Hard Rock TrackPak: Features 12 hard rock and metal Apple Loops; compatible with GarageBand; includes guitars, bass, drums and synth parts\", 'description_long' => \"HAL LEONARD Hard Rock TrackPak: Features 12 hard rock and metal Apple Loops; compatible with GarageBand; includes guitars, bass, drums and synth parts\", 'price' => 29.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hard-rock-trackpak-mac/1003003.p?id=1219460773621&skuId=1003003', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003003', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003003_sa.jpg\"}', 'upc' => '884088157425', 'provider' => 'bestbuy'],\n ['name' => \"Aquarius - Fender Playing Cards Gift Tin - Red/Black\", 'description_short' => \"AQUARIUS Fender Playing Cards Gift Tin: 2 decks; hinged gift tin; 52 different images per deck\", 'description_long' => \"AQUARIUS Fender Playing Cards Gift Tin: 2 decks; hinged gift tin; 52 different images per deck\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aquarius-fender-playing-cards-gift-tin-red-black/1003012.p?id=1219460762329&skuId=1003012', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003012', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003012_sa.jpg\"}', 'upc' => '840391103474', 'provider' => 'bestbuy'],\n ['name' => \"LoDuca Bros Inc - Deluxe Keyboard Bench - Black\", 'description_short' => \"LODUCA BROS. INC. Deluxe Keyboard Bench: Metal base; 13&quot; x 24&quot; padded seat; cross brace for support; adjusts to 3 different heights; can fit up to 2 people; folding design\", 'description_long' => \"LODUCA BROS. INC. Deluxe Keyboard Bench: Metal base; 13&quot; x 24&quot; padded seat; cross brace for support; adjusts to 3 different heights; can fit up to 2 people; folding design\", 'price' => 79.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/loduca-bros-inc-deluxe-keyboard-bench-black/1003021.p?id=1219460755391&skuId=1003021&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003021', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003021_sa.jpg\"}', 'upc' => '013148475753', 'provider' => 'bestbuy'],\n ['name' => \"Trumpet Multimedia - Trumpets That Work 2015 Calendar - Black\", 'description_short' => \"TRUMPET MULTIMEDIA Trumpets That Work 2015 Calendar: 2015 calendar; Trumpets That Work design\", 'description_long' => \"TRUMPET MULTIMEDIA Trumpets That Work 2015 Calendar: 2015 calendar; Trumpets That Work design\", 'price' => 23.95, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/trumpet-multimedia-trumpets-that-work-2015-calendar-black/1003049.p?id=1219460775571&skuId=1003049', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003049', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003049_sa.jpg\"}', 'upc' => '888680029050', 'provider' => 'bestbuy'],\n ['name' => \"Pro Tools Tier 1 Audio Plug-In for PC and Mac Activation Card - Windows|Mac\", 'description_short' => \"AVID Pro Tools Tier 1 Audio Plug-In for PC and Mac Activation Card: Compatible with PC and Mac; redeemable for a (TL) Aggro, Bruno/Reso, Cosmonaut Voice, DINR, (TL) Drum Rehab, (TL) EveryPhase, Reel Tape Saturation or other Avid Tier 1-level plug-in\", 'description_long' => \"AVID Pro Tools Tier 1 Audio Plug-In for PC and Mac Activation Card: Compatible with PC and Mac; redeemable for a (TL) Aggro, Bruno/Reso, Cosmonaut Voice, DINR, (TL) Drum Rehab, (TL) EveryPhase, Reel Tape Saturation or other Avid Tier 1-level plug-in\", 'price' => 99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pro-tools-tier-1-audio-plug-in-for-pc-and-mac-activation-card-windowsmac/1003067.p?id=1219460762559&skuId=1003067', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003067', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003067_sa.jpg\"}', 'upc' => '724643116026', 'provider' => 'bestbuy'],\n ['name' => \"M-Audio - BX8 D2 Studio Monitors (Pair) - Black\", 'description_short' => \"M-AUDIO BX8 D2 Studio Monitors (Pair): Custom Class AB analog amplifiers; woven low-frequency driver; waveguide-loaded silk-dome tweeter; XLR and 1/4&quot; inputs\", 'description_long' => \"M-AUDIO BX8 D2 Studio Monitors (Pair): Custom Class AB analog amplifiers; woven low-frequency driver; waveguide-loaded silk-dome tweeter; XLR and 1/4&quot; inputs\", 'price' => 599.95, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/m-audio-bx8-d2-studio-monitors-pair-black/1003076.p?id=1219460756365&skuId=1003076', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003076', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003076_sa.jpg\"}', 'upc' => '724643114053', 'provider' => 'bestbuy'],\n ['name' => \"Aquarius - Grateful Dead Skull Logo Chunky Magnet - Red/White/Blue\", 'description_short' => \"AQUARIUS Grateful Dead Skull Logo Chunky Magnet: Features the iconic Grateful Dead skull logo; magnet; chunky design\", 'description_long' => \"AQUARIUS Grateful Dead Skull Logo Chunky Magnet: Features the iconic Grateful Dead skull logo; magnet; chunky design\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aquarius-grateful-dead-skull-logo-chunky-magnet-red-white-blue/1003085.p?id=1219460769143&skuId=1003085', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003085', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003085_sa.jpg\"}', 'upc' => '184709950580', 'provider' => 'bestbuy'],\n ['name' => \"Alesis - AcousticLink Guitar Recording Pack - White\", 'description_short' => \"ALESIS AcousticLink Guitar Recording Pack: Compatible with most guitars with a 1/4&quot; connector; built-in analog-to-digital conversion; includes a 16.5&#039; GuitarLink 1/4&quot;-to-USB cable, no-drill acoustic guitar pickup and Cubase LE recording software\", 'description_long' => \"ALESIS AcousticLink Guitar Recording Pack: Compatible with most guitars with a 1/4&quot; connector; built-in analog-to-digital conversion; includes a 16.5&#039; GuitarLink 1/4&quot;-to-USB cable, no-drill acoustic guitar pickup and Cubase LE recording software\", 'price' => 79, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alesis-acousticlink-guitar-recording-pack-white/1003109.p?id=1219460761542&skuId=1003109&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003109', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003109_sa.jpg\"}', 'upc' => '694318010211', 'provider' => 'bestbuy'],\n ['name' => \"Modern Rock TrackPak - Mac\", 'description_short' => \"HAL LEONARD Modern Rock TrackPak: Features 12 modern rock Apple Loops; compatible with GarageBand; includes complete songs, plus individual loops, beats, grooves and riffs for each song&#039;s instruments\", 'description_long' => \"HAL LEONARD Modern Rock TrackPak: Features 12 modern rock Apple Loops; compatible with GarageBand; includes complete songs, plus individual loops, beats, grooves and riffs for each song&#039;s instruments\", 'price' => 29.95, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/modern-rock-trackpak-mac/1003127.p?id=1219460761655&skuId=1003127', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003127', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003127_sa.jpg\"}', 'upc' => '073999891799', 'provider' => 'bestbuy'],\n ['name' => \"1970s Rock TrackPak - Mac\", 'description_short' => \"HAL LEONARD 1970s Rock TrackPak: Features 12 classic rock songs; compatible with GarageBand; includes loops for each instrument\", 'description_long' => \"HAL LEONARD 1970s Rock TrackPak: Features 12 classic rock songs; compatible with GarageBand; includes loops for each instrument\", 'price' => 29.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1970s-rock-trackpak-mac/1003136.p?id=1219460771903&skuId=1003136', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003136', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003136_sa.jpg\"}', 'upc' => '884088157449', 'provider' => 'bestbuy'],\n ['name' => \"LoDuca Bros Inc - Professional Digital Photo Studio Kit - Black/White/Blue\", 'description_short' => \"LODUCA BROS INC Professional Digital Photo Studio Kit: Lets you take professional-quality photos; includes 2 high-output tabletop lights, a 16&quot; cubed soft-lighting frame and an adjustable mini tabletop tripod; multicompartment, padded carrying case\", 'description_long' => \"LODUCA BROS INC Professional Digital Photo Studio Kit: Lets you take professional-quality photos; includes 2 high-output tabletop lights, a 16&quot; cubed soft-lighting frame and an adjustable mini tabletop tripod; multicompartment, padded carrying case\", 'price' => 49.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/loduca-bros-inc-professional-digital-photo-studio-kit-black-white-blue/1003145.p?id=1219460763926&skuId=1003145', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003145', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003145_rc.jpg\"}', 'upc' => '013148051254', 'provider' => 'bestbuy'],\n ['name' => \"Groovy Shapes Volume 1 - Windows|Mac\", 'description_short' => \"SIBELIUS Groovy Shapes Volume 1: Teaches the basics of sound, rhythm, pitch and composition; guides students through progressive exercises; lets students create original music; for ages 5 to 7 years\", 'description_long' => \"SIBELIUS Groovy Shapes Volume 1: Teaches the basics of sound, rhythm, pitch and composition; guides students through progressive exercises; lets students create original music; for ages 5 to 7 years\", 'price' => 69.95, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/groovy-shapes-volume-1-windowsmac/1003163.p?id=1219460764898&skuId=1003163', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003163', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/pac\\/products\\/1312\\/1312451498\\/1312451498_sa.jpg\"}', 'upc' => '884088084479', 'provider' => 'bestbuy'],\n ['name' => \"PreSonus - AudioBox iTwo Recording System - Blue/Gray\", 'description_short' => \"PRESONUS AudioBox iTwo Recording System: Compatible with Apple iPad, Windows and Mac recording software; 2 combo microphone/line/instrument inputs; Class A microphone preamplifier; balanced TRS monitor output; MIDI I/O; 24-bit/96kHz converters\", 'description_long' => \"PRESONUS AudioBox iTwo Recording System: Compatible with Apple iPad, Windows and Mac recording software; 2 combo microphone/line/instrument inputs; Class A microphone preamplifier; balanced TRS monitor output; MIDI I/O; 24-bit/96kHz converters\", 'price' => 159.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/presonus-audiobox-itwo-recording-system-blue-gray/1003172.p?id=1219460769814&skuId=1003172&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003172', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003172_sa.jpg\"}', 'upc' => '673454002939', 'provider' => 'bestbuy'],\n ['name' => \"PreSonus - AudioBox iOne Recording System - Blue/Gray\", 'description_short' => \"PRESONUS AudioBox iOne Recording System: Compatible with Apple iPad, Windows and Mac recording software; instrument and microphone inputs; Class A microphone preamplifier; balanced TRS monitor output; 24-bit/96kHz converters\", 'description_long' => \"PRESONUS AudioBox iOne Recording System: Compatible with Apple iPad, Windows and Mac recording software; instrument and microphone inputs; Class A microphone preamplifier; balanced TRS monitor output; 24-bit/96kHz converters\", 'price' => 159.95, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/presonus-audiobox-ione-recording-system-blue-gray/1003214.p?id=1219460761184&skuId=1003214', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003214', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003214_sa.jpg\"}', 'upc' => '673454002922', 'provider' => 'bestbuy'],\n ['name' => \"Aquarius - Grateful Dead Bear Logo Chunky Magnet - Green/Yellow/Blue/Purple/Red/Orange/Black\", 'description_short' => \"AQUARIUS Grateful Dead Bear Logo Chunky Magnet: Tie-dyed Grateful Dead bear logo; chunky design\", 'description_long' => \"AQUARIUS Grateful Dead Bear Logo Chunky Magnet: Tie-dyed Grateful Dead bear logo; chunky design\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aquarius-grateful-dead-bear-logo-chunky-magnet-green-yellow-blue-purple-red-orange-black/1003232.p?id=1219460765073&skuId=1003232', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003232', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003232_sa.jpg\"}', 'upc' => '184709950603', 'provider' => 'bestbuy'],\n ['name' => \"Addictive Keys: Studio Collection - Mac|Windows\", 'description_short' => \"XLN AUDIO Addictive Keys: Studio Collection: Ideal for music producers and musicians; features virtual keyboard instruments; compatible with newer major hosts and DAWs\", 'description_long' => \"XLN AUDIO Addictive Keys: Studio Collection: Ideal for music producers and musicians; features virtual keyboard instruments; compatible with newer major hosts and DAWs\", 'price' => 179, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/addictive-keys-studio-collection-macwindows/1003269.p?id=1219460752588&skuId=1003269', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003269', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003269_sa.jpg\"}', 'upc' => '884088867195', 'provider' => 'bestbuy'],\n ['name' => \"Pro Tools Tier 2 Audio Plug-In for PC and Mac Activation Card - Windows|Mac\", 'description_short' => \"AVID Pro Tools Tier 2 Audio Plug-In for PC and Mac Activation Card: Compatible with PC and Mac; redeemable for a Classic Compressors Bundle, Focusrite d2/d3, Impact, JOEMEEK Bundle, Moogerfooger Bundle or other Avid Tier 2-level plug-in\", 'description_long' => \"AVID Pro Tools Tier 2 Audio Plug-In for PC and Mac Activation Card: Compatible with PC and Mac; redeemable for a Classic Compressors Bundle, Focusrite d2/d3, Impact, JOEMEEK Bundle, Moogerfooger Bundle or other Avid Tier 2-level plug-in\", 'price' => 299, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pro-tools-tier-2-audio-plug-in-for-pc-and-mac-activation-card-windowsmac/1003278.p?id=1219460772921&skuId=1003278', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003278', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003278_sa.jpg\"}', 'upc' => '724643116033', 'provider' => 'bestbuy'],\n ['name' => \"Korg - nanoKey2 25-Key USB MIDI Controller - White/Gray\", 'description_short' => \"KORG nanoKey2 25-Key USB MIDI Controller: USB MIDI connectivity; 25 velocity-sensitive keys; compatible with the Korg microKEY; PC and Mac compatible\", 'description_long' => \"KORG nanoKey2 25-Key USB MIDI Controller: USB MIDI connectivity; 25 velocity-sensitive keys; compatible with the Korg microKEY; PC and Mac compatible\", 'price' => 49.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/korg-nanokey2-25-key-usb-midi-controller-white-gray/1003287.p?id=1219460771659&skuId=1003287', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003287', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003287_sa.jpg\"}', 'upc' => '884088605926', 'provider' => 'bestbuy'],\n ['name' => \"M-Audio - Nova Condenser Microphone - Silver\", 'description_short' => \"M-AUDIO Nova Condenser Microphone: 1.1&quot; evaporated gold diaphragm; solid brass body and capsule; 20Hz - 18kHz frequency response; hard mount and soft case included\", 'description_long' => \"M-AUDIO Nova Condenser Microphone: 1.1&quot; evaporated gold diaphragm; solid brass body and capsule; 20Hz - 18kHz frequency response; hard mount and soft case included\", 'price' => 99.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/m-audio-nova-condenser-microphone-silver/1003296.p?id=1219460764049&skuId=1003296', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003296', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003296_sa.jpg\"}', 'upc' => '694318014851', 'provider' => 'bestbuy'],\n ['name' => \"IK Multimedia - iRig Stomp - Black\", 'description_short' => \"IK MULTIMEDIA iRig Stomp: Compatible with select Apple iPhone, iPad and iPod touch models, Android and Mac computers; allows use inline with other effects pedals and more; active battery-powered output circuit\", 'description_long' => \"IK MULTIMEDIA iRig Stomp: Compatible with select Apple iPhone, iPad and iPod touch models, Android and Mac computers; allows use inline with other effects pedals and more; active battery-powered output circuit\", 'price' => 59.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ik-multimedia-irig-stomp-black/1003319.p?id=1219460771904&skuId=1003319', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003319', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003319_sa.jpg\"}', 'upc' => '884088652456', 'provider' => 'bestbuy'],\n ['name' => \"IK Multimedia - iKlip Xpand Microphone Stand Mount - Black\", 'description_short' => \"IK MULTIMEDIA iKlip Xpand Microphone Stand Mount: Compatible with most tablets from 7&quot; to 12.1&quot;; adjustable holder with 4 expandable grips; 2 sure-grip rubber gripping points; rubber padded base; ball joint; smart bracket design; iKlip Stage app\", 'description_long' => \"IK MULTIMEDIA iKlip Xpand Microphone Stand Mount: Compatible with most tablets from 7&quot; to 12.1&quot;; adjustable holder with 4 expandable grips; 2 sure-grip rubber gripping points; rubber padded base; ball joint; smart bracket design; iKlip Stage app\", 'price' => 49.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ik-multimedia-iklip-xpand-microphone-stand-mount-black/1003328.p?id=1219460768678&skuId=1003328', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003328', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003328_sa.jpg\"}', 'upc' => '888680030773', 'provider' => 'bestbuy'],\n ['name' => \"M-Audio - AM1 Cardioid Dynamic Microphone - Black/Gray\", 'description_short' => \"M-AUDIO AM1 Cardioid Dynamic Microphone: For amplifying and recording vocals and instruments; dynamic design; cardioid pickup pattern; steel mesh, foam-lined head grille; die-cast, zinc-alloy housing\", 'description_long' => \"M-AUDIO AM1 Cardioid Dynamic Microphone: For amplifying and recording vocals and instruments; dynamic design; cardioid pickup pattern; steel mesh, foam-lined head grille; die-cast, zinc-alloy housing\", 'price' => 29.95, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/m-audio-am1-cardioid-dynamic-microphone-black-gray/1003337.p?id=1219460755566&skuId=1003337&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003337', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003337_sa.jpg\"}', 'upc' => '694318009925', 'provider' => 'bestbuy'],\n ['name' => \"Elements Pack - Mac|Windows\", 'description_short' => \"STEINBERG Elements Pack: Includes Cubase Elements 6 and WaveLab Elements 7 software; lets you produce music and edit audio on your Mac or PC\", 'description_long' => \"STEINBERG Elements Pack: Includes Cubase Elements 6 and WaveLab Elements 7 software; lets you produce music and edit audio on your Mac or PC\", 'price' => 174.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/elements-pack-macwindows/1003346.p?id=1219460763407&skuId=1003346', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003346', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003346_sa.jpg\"}', 'upc' => '802240127758', 'provider' => 'bestbuy'],\n ['name' => \"IK Multimedia - iKlip Xpand Mini Microphone Stand Mount - Black\", 'description_short' => \"IK MULTIMEDIA iKlip Xpand Mini Microphone Stand Mount: Compatible with select Apple iPhone and iPod touch models and most smartphones with 3.5&quot; to 6&quot; screens; rubberized Gorilla Grip technology; adjustable clamp; ball joint\", 'description_long' => \"IK MULTIMEDIA iKlip Xpand Mini Microphone Stand Mount: Compatible with select Apple iPhone and iPod touch models and most smartphones with 3.5&quot; to 6&quot; screens; rubberized Gorilla Grip technology; adjustable clamp; ball joint\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ik-multimedia-iklip-xpand-mini-microphone-stand-mount-black/1003364.p?id=1219460775226&skuId=1003364', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003364', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003364_rc.jpg\"}', 'upc' => '888680029074', 'provider' => 'bestbuy'],\n ['name' => \"Acoustic Rock TrackPak - Mac\", 'description_short' => \"HAL LEONARD Acoustic Rock TrackPak: 12 acoustic Apple Loops; compatible with GarageBand; includes guitars, bass, drums and keyboard parts\", 'description_long' => \"HAL LEONARD Acoustic Rock TrackPak: 12 acoustic Apple Loops; compatible with GarageBand; includes guitars, bass, drums and keyboard parts\", 'price' => 29.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/acoustic-rock-trackpak-mac/1003373.p?id=1219460754207&skuId=1003373', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003373', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003373_sa.jpg\"}', 'upc' => '884088157432', 'provider' => 'bestbuy'],\n ['name' => \"Aquarius - Elvis Heartthrob Chunky Magnet - Black/White\", 'description_short' => \"AQUARIUS Elvis Heartthrob Chunky Magnet: Features a black-and-white photo of Elvis Presley; chunky design\", 'description_long' => \"AQUARIUS Elvis Heartthrob Chunky Magnet: Features a black-and-white photo of Elvis Presley; chunky design\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aquarius-elvis-heartthrob-chunky-magnet-black-white/1003415.p?id=1219460773094&skuId=1003415', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003415', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003415_sa.jpg\"}', 'upc' => '840391103931', 'provider' => 'bestbuy'],\n ['name' => \"Aquarius - Elvis Presley Jailhouse Rock 1,000-Piece Jigsaw Puzzle - Black/White/Red/Yellow/Blue/Green/Orange\", 'description_short' => \"AQUARIUS Elvis Presley Jailhouse Rock 1,000-Piece Jigsaw Puzzle: 1,000 pieces; features Elvis on the set of the iconic film; measures 12&quot; x 36&quot; when completed\", 'description_long' => \"AQUARIUS Elvis Presley Jailhouse Rock 1,000-Piece Jigsaw Puzzle: 1,000 pieces; features Elvis on the set of the iconic film; measures 12&quot; x 36&quot; when completed\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aquarius-elvis-presley-jailhouse-rock-1000-piece-jigsaw-puzzle-black-white-red-yellow-blue-green-orange/1003424.p?id=1219460761303&skuId=1003424', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003424', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003424_sa.jpg\"}', 'upc' => '840391103825', 'provider' => 'bestbuy'],\n ['name' => \"Pro Tools Tier 3 Audio Plug-In for PC and Mac Activation Card - Windows|Mac\", 'description_short' => \"AVID Pro Tools Tier 3 Audio Plug-In for PC and Mac Activation Card: Compatible with PC and Mac; redeemable for an Eleven, ReVibe, (TL) Space (DSP + native) or X-Form Avid Tier 3-level plug-in\", 'description_long' => \"AVID Pro Tools Tier 3 Audio Plug-In for PC and Mac Activation Card: Compatible with PC and Mac; redeemable for an Eleven, ReVibe, (TL) Space (DSP + native) or X-Form Avid Tier 3-level plug-in\", 'price' => 499, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pro-tools-tier-3-audio-plug-in-for-pc-and-mac-activation-card-windowsmac/1003433.p?id=1219460754208&skuId=1003433', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003433', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003433_sa.jpg\"}', 'upc' => '724643116040', 'provider' => 'bestbuy'],\n ['name' => \"Aquarius - Genesis Playing Cards - Yellow/Purple/Black/Red\", 'description_short' => \"AQUARIUS Genesis Playing Cards: 2.5&quot; x 3.5&quot; playing cards; linen-type finish\", 'description_long' => \"AQUARIUS Genesis Playing Cards: 2.5&quot; x 3.5&quot; playing cards; linen-type finish\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aquarius-genesis-playing-cards-yellow-purple-black-red/1003451.p?id=1219460752589&skuId=1003451', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003451', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003451_sa.jpg\"}', 'upc' => '840391101463', 'provider' => 'bestbuy'],\n ['name' => \"Paris, Texas [Original Motion Picture Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/paris-texas-original-motion-picture-soundtrack-cd-original-soundtrack/1003461.p?id=94384&skuId=1003461&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003461', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003461_sa.jpg\"}', 'upc' => '075992527026', 'provider' => 'bestbuy'],\n ['name' => \"Korg - nanoKONTROL2 USB MIDI Controller - Black\", 'description_short' => \"KORG nanoKONTROL2 USB MIDI Controller: 2 USB ports; compatible with Mac, PC, Apple iPad, Korg microKEY, most computer-based DAWs and most music production software\", 'description_long' => \"KORG nanoKONTROL2 USB MIDI Controller: 2 USB ports; compatible with Mac, PC, Apple iPad, Korg microKEY, most computer-based DAWs and most music production software\", 'price' => 59.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/korg-nanokontrol2-usb-midi-controller-black/1003488.p?id=1219460755218&skuId=1003488&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003488', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003488_sa.jpg\"}', 'upc' => '884088605964', 'provider' => 'bestbuy'],\n ['name' => \"Aquarius - Rush Starman Chunky Magnet - Black/Red/White/Brown\", 'description_short' => \"AQUARIUS Rush Starman Chunky Magnet: Features Rush&#039;s Starman logo; chunky design\", 'description_long' => \"AQUARIUS Rush Starman Chunky Magnet: Features Rush&#039;s Starman logo; chunky design\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aquarius-rush-starman-chunky-magnet-black-red-white-brown/1003497.p?id=1219460772082&skuId=1003497', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003497', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003497_sa.jpg\"}', 'upc' => '840391103177', 'provider' => 'bestbuy'],\n ['name' => \"Aquarius - Rush Playing Cards - Red/Black/White\", 'description_short' => \"AQUARIUS Rush Playing Cards: 2.5&quot; x 3.5&quot; playing cards; linen-type finish\", 'description_long' => \"AQUARIUS Rush Playing Cards: 2.5&quot; x 3.5&quot; playing cards; linen-type finish\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aquarius-rush-playing-cards-red-black-white/1003531.p?id=1219460759315&skuId=1003531', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003531', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003531_sa.jpg\"}', 'upc' => '840391100671', 'provider' => 'bestbuy'],\n ['name' => \"Aquarius - The Beatles Yellow Submarine 600-Piece Jigsaw Puzzle - Blue/Yellow/Red/White/Green/Pink\", 'description_short' => \"AQUARIUS The Beatles Yellow Submarine 600-Piece Jigsaw Puzzle: 600 pieces; features the artwork of The Beatles&#039; Yellow Submarine album; measures 20&quot; x 27&quot; when completed\", 'description_long' => \"AQUARIUS The Beatles Yellow Submarine 600-Piece Jigsaw Puzzle: 600 pieces; features the artwork of The Beatles&#039; Yellow Submarine album; measures 20&quot; x 27&quot; when completed\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aquarius-the-beatles-yellow-submarine-600-piece-jigsaw-puzzle-blue-yellow-red-white-green-pink/1003568.p?id=1219460774340&skuId=1003568&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003568', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003568_sa.jpg\"}', 'upc' => '840391101555', 'provider' => 'bestbuy'],\n ['name' => \"Alfred - Katy Perry: Teenage Dream Sheet Music - Pink/Blue\", 'description_short' => \"ALFRED Katy Perry: Teenage Dream Sheet Music: Piano, vocal and guitar sheet music for Katy Perry&#039;s Teenage Dream\", 'description_long' => \"ALFRED Katy Perry: Teenage Dream Sheet Music: Piano, vocal and guitar sheet music for Katy Perry&#039;s Teenage Dream\", 'price' => 17.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alfred-katy-perry-teenage-dream-sheet-music-pink-blue/1003604.p?id=1219460759196&skuId=1003604', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003604', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003604_sa.jpg\"}', 'upc' => '884088698072', 'provider' => 'bestbuy'],\n ['name' => \"Classic Rock TrackPak - Mac\", 'description_short' => \"HAL LEONARD Classic Rock TrackPak: Features 12 modern rock Apple Loops; compatible with GarageBand; includes complete songs, plus individual loops, beats, grooves and riffs for each song&#039;s instruments\", 'description_long' => \"HAL LEONARD Classic Rock TrackPak: Features 12 modern rock Apple Loops; compatible with GarageBand; includes complete songs, plus individual loops, beats, grooves and riffs for each song&#039;s instruments\", 'price' => 29.95, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classic-rock-trackpak-mac/1003613.p?id=1219460758906&skuId=1003613', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003613', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003613_sa.jpg\"}', 'upc' => '073999280326', 'provider' => 'bestbuy'],\n ['name' => \"Aquarius - Fender Stratocaster 1,000-Piece Jigsaw Puzzle - Black/Red/White/Yellow/Green/Orange/Blue\", 'description_short' => \"AQUARIUS Fender Stratocaster 1,000-Piece Jigsaw Puzzle: 1,000 pieces; lets you show off your fandom for the guitar; measures 20&quot; x 27&quot; when completed\", 'description_long' => \"AQUARIUS Fender Stratocaster 1,000-Piece Jigsaw Puzzle: 1,000 pieces; lets you show off your fandom for the guitar; measures 20&quot; x 27&quot; when completed\", 'price' => 15.99, 'sale_price' => 12.99, 'url' => 'http://www.bestbuy.com/site/aquarius-fender-stratocaster-1000-piece-jigsaw-puzzle-black-red-white-yellow-green-orange-blue/1003622.p?id=1219460752587&skuId=1003622', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003622', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003622_sa.jpg\"}', 'upc' => '840391101524', 'provider' => 'bestbuy'],\n ['name' => \"IK Multimedia - iRig MIDI 2 Audio Interface - Black\", 'description_short' => \"IK MULTIMEDIA iRig MIDI 2 Audio Interface: Compatible with Mac, PC and select iOS devices; MIDI input, output and thru jacks; USB and Lightning interface\", 'description_long' => \"IK MULTIMEDIA iRig MIDI 2 Audio Interface: Compatible with Mac, PC and select iOS devices; MIDI input, output and thru jacks; USB and Lightning interface\", 'price' => 99.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ik-multimedia-irig-midi-2-audio-interface-black/1003631.p?id=1219460755045&skuId=1003631', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003631', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003631_rc.jpg\"}', 'upc' => '888680030889', 'provider' => 'bestbuy'],\n ['name' => \"M. Night Shyamalan: The Last Airbender - Nintendo Wii\", 'description_short' => \"Harness the power of Air and Fire as you join a quest for honor and power\", 'description_long' => \"Harness the power of Air and Fire as you join a quest for honor and power\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/m-night-shyamalan-the-last-airbender-nintendo-wii/1003641.p?id=1218208317435&skuId=1003641', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003641', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003641_500x500_sa.jpg\"}', 'upc' => '785138302515', 'provider' => 'bestbuy'],\n ['name' => \"M-Audio - Keystation Mini 32 II 32-Key USB MIDI Keyboard Controller - Black/White\", 'description_short' => \"M-AUDIO Keystation Mini 32 II 32-Key USB MIDI Keyboard Controller: Ignite and Ableton Live Lite software; USB MIDI connectivity; pitch-bend, modulation and octave controls; 32 velocity-sensitive synth-action keys\", 'description_long' => \"M-AUDIO Keystation Mini 32 II 32-Key USB MIDI Keyboard Controller: Ignite and Ableton Live Lite software; USB MIDI connectivity; pitch-bend, modulation and octave controls; 32 velocity-sensitive synth-action keys\", 'price' => 99.95, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/m-audio-keystation-mini-32-ii-32-key-usb-midi-keyboard-controller-black-white/1003659.p?id=1219460760217&skuId=1003659', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003659', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003659_sa.jpg\"}', 'upc' => '694318015858', 'provider' => 'bestbuy'],\n ['name' => \"Aquarius - The Beatles Street 1,000-Piece Jigsaw Puzzle - Black/White/Brown\", 'description_short' => \"AQUARIUS The Beatles Street 1,000-Piece Jigsaw Puzzle: 1,000 pieces; features an image of The Beatles walking down the street; measures 20&quot; x 27&quot; when completed\", 'description_long' => \"AQUARIUS The Beatles Street 1,000-Piece Jigsaw Puzzle: 1,000 pieces; features an image of The Beatles walking down the street; measures 20&quot; x 27&quot; when completed\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/aquarius-the-beatles-street-1000-piece-jigsaw-puzzle-black-white-brown/1003668.p?id=1219460763580&skuId=1003668', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003668', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003668_sa.jpg\"}', 'upc' => '840391103801', 'provider' => 'bestbuy'],\n ['name' => \"White Shoes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/white-shoes-cd/1003693.p?id=84870&skuId=1003693&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1003693', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1003\\/1003693_sa.jpg\"}', 'upc' => '075992369121', 'provider' => 'bestbuy'],\n ['name' => \"Canon - EOS Rebel T5 DSLR Camera with 18-55mm and 75-300mm Lenses - Black\", 'description_short' => \"18.0-megapixel APS-C CMOS sensorISO 100-6400, expandable to 12,800Shooting speeds up to 3 fpsFull high-definition movie mode\", 'description_long' => \"18.0-megapixel APS-C CMOS sensorISO 100-6400, expandable to 12,800Shooting speeds up to 3 fpsFull high-definition movie mode\", 'price' => 749.99, 'sale_price' => 499.99, 'url' => 'http://www.bestbuy.com/site/canon-eos-rebel-t5-dslr-camera-with-18-55mm-and-75-300mm-lenses-black/1004002.p?id=1219459331617&skuId=1004002&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1004002', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1004\\/1004002_sa.jpg\"}', 'upc' => '660685134881', 'provider' => 'bestbuy'],\n ['name' => \"Tercer Mundo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tercer-mundo-cd/1004291.p?id=1577034&skuId=1004291&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1004291', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1004\\/1004291.jpg\"}', 'upc' => '090317272122', 'provider' => 'bestbuy'],\n ['name' => \"Life (Attenborough,David) (4 Disc) (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 59.99, 'sale_price' => 14.99, 'url' => 'http://www.bestbuy.com/site/life-attenboroughdavid-4-disc-blu-ray-disc/1004613.p?id=2099261&skuId=1004613&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1004613', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1850\\/18505774.jpg\"}', 'upc' => '883929099252', 'provider' => 'bestbuy'],\n ['name' => \"Sniper: Ghost Warrior - Xbox 360\", 'description_short' => \"Control the power of death as you ghost through the jungle\", 'description_long' => \"Control the power of death as you ghost through the jungle\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sniper-ghost-warrior-xbox-360/1004622.p?id=1218207306495&skuId=1004622&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1004622', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1004\\/1004622_sa.jpg\"}', 'upc' => '897749002569', 'provider' => 'bestbuy'],\n ['name' => \"GoPro - Camera Roll Bar Mount - Black\", 'description_short' => \"Compatible with most GoPro cameras; clamps to tubes or frames ranging from 1.4-2.5&quot; in diameter; pivoting orientation arms\", 'description_long' => \"Compatible with most GoPro cameras; clamps to tubes or frames ranging from 1.4-2.5&quot; in diameter; pivoting orientation arms\", 'price' => 29.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gopro-camera-roll-bar-mount-black/1004668.p?id=1218249515093&skuId=1004668&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1004668', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1004\\/1004668_rc.jpg\"}', 'upc' => '185323000132', 'provider' => 'bestbuy'],\n ['name' => \"GoPro - Camera Mount Accessory Kit - Black\", 'description_short' => \"Compatible with most GoPro cameras; includes a variety of camera mounting accessories\", 'description_long' => \"Compatible with most GoPro cameras; includes a variety of camera mounting accessories\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gopro-camera-mount-accessory-kit-black/1004695.p?id=1218249514954&skuId=1004695&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1004695', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1004\\/1004695_rc.jpg\"}', 'upc' => '185323000309', 'provider' => 'bestbuy'],\n ['name' => \"Café Tacuba - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cafe-tacuba-cd/1004754.p?id=1475375&skuId=1004754&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1004754', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1004\\/1004754_sa.jpg\"}', 'upc' => '090317724126', 'provider' => 'bestbuy'],\n ['name' => \"GoPro - Chest Mount Harness - Black\", 'description_short' => \"Compatible with most GoPro cameras; one-size-fits-all adjustability\", 'description_long' => \"Compatible with most GoPro cameras; one-size-fits-all adjustability\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gopro-chest-mount-harness-black/1004804.p?id=1218249514750&skuId=1004804&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1004804', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1004\\/1004804_rc.jpg\"}', 'upc' => '185323000989', 'provider' => 'bestbuy'],\n ['name' => \"GoPro - Ride HERO Handlebar Seatpost Mount - Black\", 'description_short' => \"Compatible with most GoPro cameras; clamps on tubes 3/4&quot; - 1-1/2&quot; in diameter; pivoting orientation arms with 3-way adjustability\", 'description_long' => \"Compatible with most GoPro cameras; clamps on tubes 3/4&quot; - 1-1/2&quot; in diameter; pivoting orientation arms with 3-way adjustability\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gopro-ride-hero-handlebar-seatpost-mount-black/1004831.p?id=1218249515161&skuId=1004831&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1004831', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1004\\/1004831_rc.jpg\"}', 'upc' => '185323000064', 'provider' => 'bestbuy'],\n ['name' => \"Sola - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sola-cd/1004834.p?id=1374795&skuId=1004834&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1004834', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1004\\/1004834_sa.jpg\"}', 'upc' => '090317747828', 'provider' => 'bestbuy'],\n ['name' => \"Helpless Heart - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/helpless-heart-cd/1005003.p?id=93663&skuId=1005003&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005003', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005003_sa.jpg\"}', 'upc' => '075992601627', 'provider' => 'bestbuy'],\n ['name' => \"Sanctuary: The Complete Second Season [4 Discs / Blu-ray] (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sanctuary-the-complete-second-season-4-discs-blu-ray-blu-ray-disc/1005039.p?id=2100405&skuId=1005039&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005039', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005039.jpg\"}', 'upc' => '741952682196', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Dura Clamp\", 'description_short' => \"From our expanded online assortment; designed for use with the Dura Truss system; supports lighting fixtures up to 20 lbs.; fits 1/2&quot; truss rods\", 'description_long' => \"From our expanded online assortment; designed for use with the Dura Truss system; supports lighting fixtures up to 20 lbs.; fits 1/2&quot; truss rods\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-dura-clamp/1005118.p?id=1218207308279&skuId=1005118', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005118', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005118_sa.jpg\"}', 'upc' => '640282015868', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - 20\\\" Glass Mirror Ball\", 'description_short' => \"Compatible with M-101 and M-103 mirror ball motors; glass material\", 'description_long' => \"Compatible with M-101 and M-103 mirror ball motors; glass material\", 'price' => 89.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-20-glass-mirror-ball/1005181.p?id=1218207307176&skuId=1005181', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005181', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005181_sa.jpg\"}', 'upc' => '640282034272', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Elation 4-Channel Chase Controller - Black\", 'description_short' => \"From our expanded online assortment; instant sound-to-light chase; timed, audio and chase modes; built-in microphone\", 'description_long' => \"From our expanded online assortment; instant sound-to-light chase; timed, audio and chase modes; built-in microphone\", 'price' => 59.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-elation-4-channel-chase-controller-black/1005215.p?id=1218207312107&skuId=1005215', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005215', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005215_sa.jpg\"}', 'upc' => '640282052917', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Color Gel Filter (4-Pack)\", 'description_short' => \"Designed for use with most Par-56 can gel frames; red, blue, yellow and green gel filters\", 'description_long' => \"Designed for use with most Par-56 can gel frames; red, blue, yellow and green gel filters\", 'price' => 12.99, 'sale_price' => 5.99, 'url' => 'http://www.bestbuy.com/site/american-dj-color-gel-filter-4-pack/1005288.p?id=1218207302583&skuId=1005288', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005288', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005288_sa.jpg\"}', 'upc' => '640282014441', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Crystal Bright Accent Strip CW LED Strip (4-Pack) - White\", 'description_short' => \"From our expanded online assortment; 4 self-adhesive strips; cool white LEDs; AC adapter\", 'description_long' => \"From our expanded online assortment; 4 self-adhesive strips; cool white LEDs; AC adapter\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-crystal-bright-accent-strip-cw-led-strip-4-pack-white/1005297.p?id=1218207312036&skuId=1005297', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005297', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005297_sa.jpg\"}', 'upc' => '640282000734', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Tripod Stand - Black\", 'description_short' => \"From our expanded online assortment; designed for use with most par cans, pin spots and lighting fixtures; extends up to 9&#039;; collapsible design\", 'description_long' => \"From our expanded online assortment; designed for use with most par cans, pin spots and lighting fixtures; extends up to 9&#039;; collapsible design\", 'price' => 44.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-tripod-stand-black/1005312.p?id=1218207306201&skuId=1005312', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005312', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005312_sa.jpg\"}', 'upc' => '640282033763', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - DMX Dimmer Pack\", 'description_short' => \"From our expanded online assortment; digital display; LED indicators; 16 built-in chases; reversible mounting brackets\", 'description_long' => \"From our expanded online assortment; digital display; LED indicators; 16 built-in chases; reversible mounting brackets\", 'price' => 199.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-dmx-dimmer-pack/1005358.p?id=1218207306104&skuId=1005358', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005358', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005358_sa.jpg\"}', 'upc' => '640282044301', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - 16\\\" Glass Mirror Ball\", 'description_short' => \"From our expanded online assortment; compatible with M-101 and M-103 mirror ball motors; glass material\", 'description_long' => \"From our expanded online assortment; compatible with M-101 and M-103 mirror ball motors; glass material\", 'price' => 54.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-16-glass-mirror-ball/1005409.p?id=1218207315272&skuId=1005409&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005409', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005409_sa.jpg\"}', 'upc' => '640282034180', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Bubble Blast Bubble Machine\", 'description_short' => \"Compatible with most types of bubble liquid; dual-fan lift system; drainage valve system; top-load filling container; remote; on/off switch; wheels and dual handles\", 'description_long' => \"Compatible with most types of bubble liquid; dual-fan lift system; drainage valve system; top-load filling container; remote; on/off switch; wheels and dual handles\", 'price' => 299.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-bubble-blast-bubble-machine/1005454.p?id=1218207314448&skuId=1005454', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005454', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005454_rc.jpg\"}', 'upc' => '640282012997', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - 12\\\" Glass Mirror Ball\", 'description_short' => \"From our expanded online assortment; glass material; portable\", 'description_long' => \"From our expanded online assortment; glass material; portable\", 'price' => 25.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-12-glass-mirror-ball/1005515.p?id=1218207307351&skuId=1005515', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005515', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005515_sa.jpg\"}', 'upc' => '640282034128', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Par 46 Can Kit - Black\", 'description_short' => \"From our expanded online assortment; 200W lamp; 4 color gel filters; clamp; safety cable\", 'description_long' => \"From our expanded online assortment; 200W lamp; 4 color gel filters; clamp; safety cable\", 'price' => 44.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-par-46-can-kit-black/1005542.p?id=1218207310574&skuId=1005542', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005542', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005542_sa.jpg\"}', 'upc' => '640282010078', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Elation Stage Pack\", 'description_short' => \"From our expanded online assortment; 16-channel DMX controller; 2 XLR cables; two 4-channel dimmers\", 'description_long' => \"From our expanded online assortment; 16-channel DMX controller; 2 XLR cables; two 4-channel dimmers\", 'price' => 499.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-elation-stage-pack/1005667.p?id=1218207310858&skuId=1005667', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005667', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005667_sa.jpg\"}', 'upc' => '640282051361', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - DMX Mirror Ball Motor\", 'description_short' => \"From our expanded online assortment; designed for use with most mirror balls up to 20&quot;; 2 DMX channels; circuit breaker protection\", 'description_long' => \"From our expanded online assortment; designed for use with most mirror balls up to 20&quot;; 2 DMX channels; circuit breaker protection\", 'price' => 129.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-dmx-mirror-ball-motor/1005694.p?id=1218207313618&skuId=1005694', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005694', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005694_rc.jpg\"}', 'upc' => '640282038324', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - 5' CD Data Cable - Gray\", 'description_short' => \"Compatible with most dual CD players with an 8-pin to 8-pin connection; replacement cable\", 'description_long' => \"Compatible with most dual CD players with an 8-pin to 8-pin connection; replacement cable\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-5-cd-data-cable-gray/1005721.p?id=1218207302785&skuId=1005721', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005721', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005721_sa.jpg\"}', 'upc' => '640282015844', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Dekker LED Effects Light - Black\", 'description_short' => \"From our expanded online assortment; colored beams and 40 lenses; 3-button DMX LED menu; strobe effect; hanging bracket\", 'description_long' => \"From our expanded online assortment; colored beams and 40 lenses; 3-button DMX LED menu; strobe effect; hanging bracket\", 'price' => 169.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-dekker-led-effects-light-black/1005758.p?id=1218207311754&skuId=1005758', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005758', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005758_sa.jpg\"}', 'upc' => '640282000994', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Par 56 Can Kit - Black\", 'description_short' => \"From our expanded online assortment; 300W lamp; 4 color gel filters; clamp; safety cable\", 'description_long' => \"From our expanded online assortment; 300W lamp; 4 color gel filters; clamp; safety cable\", 'price' => 49.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-par-56-can-kit-black/1005794.p?id=1218207304604&skuId=1005794', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005794', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005794_sa.jpg\"}', 'upc' => '640282010085', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Stage Tape - Black\", 'description_short' => \"From our expanded online assortment; ideal for a variety of DJ applications; 2&quot; wide; no heavy residue\", 'description_long' => \"From our expanded online assortment; ideal for a variety of DJ applications; 2&quot; wide; no heavy residue\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-stage-tape-black/1005803.p?id=1218207310997&skuId=1005803', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005803', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005803_sa.jpg\"}', 'upc' => '640282052931', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - 4\\\" Gaffers Tape - Black\", 'description_short' => \"From our expanded online assortment; 4&quot; wide; 135&#039; of tape; cloth-like structure\", 'description_long' => \"From our expanded online assortment; 4&quot; wide; 135&#039; of tape; cloth-like structure\", 'price' => 34.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-4-gaffers-tape-black/1005849.p?id=1218207310042&skuId=1005849&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005849', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005849_sa.jpg\"}', 'upc' => '640282022897', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - 2\\\" Gaffers Tape - White\", 'description_short' => \"From our expanded online assortment; 2&quot; wide; 135&#039; of tape; cloth-like structure\", 'description_long' => \"From our expanded online assortment; 2&quot; wide; 135&#039; of tape; cloth-like structure\", 'price' => 20.99, 'sale_price' => 16.99, 'url' => 'http://www.bestbuy.com/site/american-dj-2-gaffers-tape-white/1005867.p?id=1218207306630&skuId=1005867&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005867', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005867_sa.jpg\"}', 'upc' => '640282022880', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - 15-1/2' Flash Rope\", 'description_short' => \"From our expanded online assortment; 12 flash capsules; rain-resistant; built-in hanging ring\", 'description_long' => \"From our expanded online assortment; 12 flash capsules; rain-resistant; built-in hanging ring\", 'price' => 79.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-15-1-2-flash-rope/1005885.p?id=1218207314033&skuId=1005885', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005885', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005885_sa.jpg\"}', 'upc' => '640282021982', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - 3 RPM Mirror Ball Motor\", 'description_short' => \"From our expanded online assortment; AC motor; 3 rpm; holds mirror balls up to 12&quot;\", 'description_long' => \"From our expanded online assortment; AC motor; 3 rpm; holds mirror balls up to 12&quot;\", 'price' => 14.99, 'sale_price' => 9.99, 'url' => 'http://www.bestbuy.com/site/american-dj-3-rpm-mirror-ball-motor/1005894.p?id=1218207311613&skuId=1005894', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005894', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005894_sa.jpg\"}', 'upc' => '640282034609', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - LED Color Panel - Black\", 'description_short' => \"From our expanded online assortment; 288 LEDs; 7 DMX channel modes; 4 operational modes; strobe and dimming effects\", 'description_long' => \"From our expanded online assortment; 288 LEDs; 7 DMX channel modes; 4 operational modes; strobe and dimming effects\", 'price' => 199.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-led-color-panel-black/1005903.p?id=1218207315201&skuId=1005903', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005903', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/pac\\/products\\/1306\\/1306786803\\/1306786803_sa.jpg\"}', 'upc' => '640282001359', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - 1 RPM Mirror Ball Motor\", 'description_short' => \"From our expanded online assortment; AC motor; 1 rpm; holds mirror balls up to 16&quot;\", 'description_long' => \"From our expanded online assortment; AC motor; 1 rpm; holds mirror balls up to 16&quot;\", 'price' => 14.99, 'sale_price' => 11.99, 'url' => 'http://www.bestbuy.com/site/american-dj-1-rpm-mirror-ball-motor/1005912.p?id=1218207308006&skuId=1005912', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005912', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005912_sa.jpg\"}', 'upc' => '640282034005', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Chase Controller Pack\", 'description_short' => \"From our expanded online assortment; designed to chase LED and halogen par cans; 20 built-in programs; 7 preset scenes\", 'description_long' => \"From our expanded online assortment; designed to chase LED and halogen par cans; 20 built-in programs; 7 preset scenes\", 'price' => 99.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-chase-controller-pack/1005985.p?id=1218207316314&skuId=1005985', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1005985', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1005\\/1005985_rc.jpg\"}', 'upc' => '640282000093', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Par Can Kit - Black\", 'description_short' => \"From our expanded online assortment; ideal for theaters, mobile entertainment and bands; 4 color gel filters; safety cable\", 'description_long' => \"From our expanded online assortment; ideal for theaters, mobile entertainment and bands; 4 color gel filters; safety cable\", 'price' => 54.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-par-can-kit-black/1006029.p?id=1218207302854&skuId=1006029', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006029', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006029_sa.jpg\"}', 'upc' => '640282010139', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - 8-Channel Switch Center\", 'description_short' => \"From our expanded online assortment; built-in power supply; 8 channels\", 'description_long' => \"From our expanded online assortment; built-in power supply; 8 channels\", 'price' => 99.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-8-channel-switch-center/1006038.p?id=1218207312804&skuId=1006038', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006038', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006038_sa.jpg\"}', 'upc' => '640282048293', 'provider' => 'bestbuy'],\n ['name' => \"VocoPro - TabletOke Digital Karaoke Mixer - Black/Gray\", 'description_short' => \"VOCOPRO TabletOke Digital Karaoke Mixer: Built-in Bluetooth music receiver; compatible with select smartphones, tablets and laptops with a 3.5mm (1/8&quot;) jack; connects to karaoke player for CDG or DVD disc playback\", 'description_long' => \"VOCOPRO TabletOke Digital Karaoke Mixer: Built-in Bluetooth music receiver; compatible with select smartphones, tablets and laptops with a 3.5mm (1/8&quot;) jack; connects to karaoke player for CDG or DVD disc playback\", 'price' => 149.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vocopro-tabletoke-digital-karaoke-mixer-black-gray/1006046.p?id=1219460765652&skuId=1006046&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006046', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006046_sa.jpg\"}', 'upc' => '692868822537', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - 1 Gal. Bubble Juice\", 'description_short' => \"From our expanded online assortment; designed for use in bubble machines; colorless; 1 gal.\", 'description_long' => \"From our expanded online assortment; designed for use in bubble machines; colorless; 1 gal.\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-1-gal-bubble-juice/1006065.p?id=1218207315613&skuId=1006065', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006065', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006065_sa.jpg\"}', 'upc' => '640282013031', 'provider' => 'bestbuy'],\n ['name' => \"American Audio - Radius 3000 MIDI Controller - Black\", 'description_short' => \"From our expanded online assortment; plays MP3, WAV, CD and CD-R formats; media card slot; USB port; PowerTouch digital scratching; 9 on-board effects\", 'description_long' => \"From our expanded online assortment; plays MP3, WAV, CD and CD-R formats; media card slot; USB port; PowerTouch digital scratching; 9 on-board effects\", 'price' => 399.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-audio-radius-3000-midi-controller-black/1006126.p?id=1218207305296&skuId=1006126', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006126', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006126_sa.jpg\"}', 'upc' => '640282000963', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - 2' Safety Cable - Silver\", 'description_short' => \"Secures DJ light fixtures to a truss or pipe; steel construction; 60 lb. weight rating\", 'description_long' => \"Secures DJ light fixtures to a truss or pipe; steel construction; 60 lb. weight rating\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-2-safety-cable-silver/1006144.p?id=1218207315886&skuId=1006144', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006144', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006144_sa.jpg\"}', 'upc' => '640282091893', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Crank-2 Mobile Stand System - Black\", 'description_short' => \"From our expanded online assortment; raises equipment up to 10&#039;; steel tripod stand; steel truss sections\", 'description_long' => \"From our expanded online assortment; raises equipment up to 10&#039;; steel tripod stand; steel truss sections\", 'price' => 119.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-crank-2-mobile-stand-system-black/1006199.p?id=1218207305427&skuId=1006199', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006199', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006199_sa.jpg\"}', 'upc' => '640282015417', 'provider' => 'bestbuy'],\n ['name' => \"CyberPower - 700VA Smart App Series Battery Back-Up System - Black\", 'description_short' => \"CYBERPOWER 700VA Smart App Series Battery Back-Up System: 1030 joules of protection; 6 outlets, including 4 battery- and surge-protected outlets; phone/network line protection; front-panel LCD; 10&#039; cord\", 'description_long' => \"CYBERPOWER 700VA Smart App Series Battery Back-Up System: 1030 joules of protection; 6 outlets, including 4 battery- and surge-protected outlets; phone/network line protection; front-panel LCD; 10&#039; cord\", 'price' => 225.99, 'sale_price' => 200.99, 'url' => 'http://www.bestbuy.com/site/cyberpower-700va-smart-app-series-battery-back-up-system-black/1006435.p?id=1218207313830&skuId=1006435', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006435', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006435_sa.jpg\"}', 'upc' => '649532715046', 'provider' => 'bestbuy'],\n ['name' => \"Elis, Essa Mulher - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/elis-essa-mulher-cd/1006468.p?id=1507997&skuId=1006468&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006468', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006468_sa.jpg\"}', 'upc' => '022925590022', 'provider' => 'bestbuy'],\n ['name' => \"The Sword in the Stone (Blu-ray Disc) (2 Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-sword-in-the-stone-blu-ray-disc-2-disc/1006569.p?id=24888&skuId=1006569&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006569', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006569_sa.jpg\"}', 'upc' => '786936834901', 'provider' => 'bestbuy'],\n ['name' => \"Survival Collection: 4 Film Favorites [2 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/survival-collection-4-film-favorites-2-discs-dvd/1006578.p?id=2096296&skuId=1006578&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006578', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006578_sa.jpg\"}', 'upc' => '883929129973', 'provider' => 'bestbuy'],\n ['name' => \"The Losers (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-losers-dvd/1006587.p?id=2119491&skuId=1006587&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006587', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006587_sa.jpg\"}', 'upc' => '883929106301', 'provider' => 'bestbuy'],\n ['name' => \"Naruto: Shippuden - Box Set 3 [3 Discs] (Boxed Set) (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/naruto-shippuden-box-set-3-3-discs-boxed-set-dvd/1006602.p?id=2102412&skuId=1006602&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006602', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006602_sa.jpg\"}', 'upc' => '782009240075', 'provider' => 'bestbuy'],\n ['name' => \"War Heroes Collection: 4 Film Favorites [2 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/war-heroes-collection-4-film-favorites-2-discs-dvd/1006611.p?id=2096298&skuId=1006611&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006611', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006611_sa.jpg\"}', 'upc' => '883929130733', 'provider' => 'bestbuy'],\n ['name' => \"SuperFriends!: Season One, Vol. 2 [2 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 22.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/superfriends-season-one-vol-2-2-discs-dvd/1006639.p?id=2102408&skuId=1006639&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006639', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006639.jpg\"}', 'upc' => '883929102037', 'provider' => 'bestbuy'],\n ['name' => \"Falta Amor - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/falta-amor-cd/1006645.p?id=1375024&skuId=1006645&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006645', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006645_sa.jpg\"}', 'upc' => '090317217321', 'provider' => 'bestbuy'],\n ['name' => \"Being Human: Season One [2 Discs] [Blu-ray] (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 34.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/being-human-season-one-2-discs-blu-ray-blu-ray-disc/1006648.p?id=2108099&skuId=1006648&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006648', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006648_sa.jpg\"}', 'upc' => '883929114313', 'provider' => 'bestbuy'],\n ['name' => \"Being Human: Season One [2 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 29.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/being-human-season-one-2-discs-dvd/1006657.p?id=2108098&skuId=1006657&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006657', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006657_sa.jpg\"}', 'upc' => '883929114825', 'provider' => 'bestbuy'],\n ['name' => \"Clash of the Titans (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/clash-of-the-titans-dvd/1006702.p?id=2119493&skuId=1006702&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006702', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006702_sa.jpg\"}', 'upc' => '883929106523', 'provider' => 'bestbuy'],\n ['name' => \"Batman: Under the Red Hood (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/batman-under-the-red-hood-dvd/1006739.p?id=2109872&skuId=1006739&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006739', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006739_sa.jpg\"}', 'upc' => '883929101061', 'provider' => 'bestbuy'],\n ['name' => \"Batman: Under the Red Hood [Special Edition] [2 Discs] (DVD) (Special Edition)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/batman-under-the-red-hood-special-edition-2-discs-dvd-special-edition/1006748.p?id=2147183&skuId=1006748&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006748', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006748.jpg\"}', 'upc' => '883929101160', 'provider' => 'bestbuy'],\n ['name' => \"8: The Mormon Proposition (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/8-the-mormon-proposition-dvd/1006757.p?id=2109333&skuId=1006757&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006757', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006757_sa.jpg\"}', 'upc' => '754703763464', 'provider' => 'bestbuy'],\n ['name' => \"Pornography: A Thriller (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pornography-a-thriller-dvd/1006766.p?id=2109413&skuId=1006766&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1006766', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1006\\/1006766_sa.jpg\"}', 'upc' => '754703763419', 'provider' => 'bestbuy'],\n ['name' => \"Fantasy Life - PRE-OWNED - Nintendo 3DS\", 'description_short' => \"Choose your fate as you journey through a fascinating land on the adventure of a lifetime\", 'description_long' => \"Choose your fate as you journey through a fascinating land on the adventure of a lifetime\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fantasy-life-pre-owned-nintendo-3ds/1007009.p?id=1219460752592&skuId=1007009&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1007009', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1007\\/1007009_sa.jpg\"}', 'upc' => '799007840268', 'provider' => 'bestbuy'],\n ['name' => \"Polk Audio - 300W Class AB Bridgeable 2-Channel MOSFET Amplifier with Switchable Bass Boost - Black\", 'description_short' => \"Selectable high or low-pass crossover; variable input gain; switchable 3-position bass boost\", 'description_long' => \"Selectable high or low-pass crossover; variable input gain; switchable 3-position bass boost\", 'price' => 189.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/polk-audio-300w-class-ab-bridgeable-2-channel-mosfet-amplifier-with-switchable-bass-boost-black/1007107.p?id=1218207655270&skuId=1007107', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1007107', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1007\\/1007107_sa.jpg\"}', 'upc' => '747192120702', 'provider' => 'bestbuy'],\n ['name' => \"Sir Lucious Left Foot: The Son of... [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sir-lucious-left-foot-the-son-of-pa-cd/1007901.p?id=2114497&skuId=1007901&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1007901', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1007\\/1007901_sa.jpg\"}', 'upc' => '602527400853', 'provider' => 'bestbuy'],\n ['name' => \"Jackson Browne: Going Home (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jackson-browne-going-home-dvd/1007947.p?id=33533&skuId=1007947&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1007947', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1007\\/1007947_sa.jpg\"}', 'upc' => '801213030491', 'provider' => 'bestbuy'],\n ['name' => \"Hidden Beach Recordings Presents: Unwrapped,... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hidden-beach-recordings-presents-unwrapped-cd-various/1007956.p?id=2121194&skuId=1007956&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1007956', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1007\\/1007956_sa.jpg\"}', 'upc' => '894096001955', 'provider' => 'bestbuy'],\n ['name' => \"Music of DC Comics: 75th Anniversary... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-of-dc-comics-75th-anniversary-cd/1007992.p?id=2119706&skuId=1007992&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1007992', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1007\\/1007992_sa.jpg\"}', 'upc' => '794043143335', 'provider' => 'bestbuy'],\n ['name' => \"Power Rangers: Super Megaforce - PRE-OWNED - Nintendo 3DS\", 'description_short' => \"Harness the powers of legendary Rangers to save Earth from an alien invasion\", 'description_long' => \"Harness the powers of legendary Rangers to save Earth from an alien invasion\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/power-rangers-super-megaforce-pre-owned-nintendo-3ds/1008008.p?id=1219482739482&skuId=1008008&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008008', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008008_sa.jpg\"}', 'upc' => '799007840275', 'provider' => 'bestbuy'],\n ['name' => \"Still Rovin' After All These Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/still-rovin-after-all-these-years-cd/1008009.p?id=2119495&skuId=1008009&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008009', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008009_sa.jpg\"}', 'upc' => '030206701722', 'provider' => 'bestbuy'],\n ['name' => \"Sir Lucious Left... [CD & DVD] [PA] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sir-lucious-left-cd-dvd-pa-digipak-cd/1008036.p?id=2114501&skuId=1008036&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008036', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008036_sa.jpg\"}', 'upc' => '602527433820', 'provider' => 'bestbuy'],\n ['name' => \"This Is the Blues, Vol. 4 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/this-is-the-blues-vol-4-cd-various/1008045.p?id=2119203&skuId=1008045&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008045', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008045_sa.jpg\"}', 'upc' => '826992017723', 'provider' => 'bestbuy'],\n ['name' => \"Intriguer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/intriguer-cd/1008081.p?id=2121189&skuId=1008081&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008081', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008081_sa.jpg\"}', 'upc' => '888072322578', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Original Masters - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-original-masters-cd/1008106.p?id=2119204&skuId=1008106&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008106', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008106.jpg\"}', 'upc' => '054645416429', 'provider' => 'bestbuy'],\n ['name' => \"This Is the Blues, Vol. 3 - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/this-is-the-blues-vol-3-various-cd/1008115.p?id=2119205&skuId=1008115&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008115', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008115.jpg\"}', 'upc' => '826992017624', 'provider' => 'bestbuy'],\n ['name' => \"Performance - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/performance-cd/1008197.p?id=2121195&skuId=1008197&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008197', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008197.jpg\"}', 'upc' => '030206184129', 'provider' => 'bestbuy'],\n ['name' => \"Black 'n' Roll - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/black-n-roll-cd/1008203.p?id=2119206&skuId=1008203&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008203', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008203.jpg\"}', 'upc' => '826992503929', 'provider' => 'bestbuy'],\n ['name' => \"Tercer Cielo: En Concierto - Creere (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tercer-cielo-en-concierto-creere-dvd/1008267.p?id=2117247&skuId=1008267&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008267', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008267_sa.jpg\"}', 'upc' => '827865402394', 'provider' => 'bestbuy'],\n ['name' => \"20 Corridos Poderosos - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/20-corridos-poderosos-cd/1008276.p?id=2117248&skuId=1008276&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008276', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008276.jpg\"}', 'upc' => '808835454421', 'provider' => 'bestbuy'],\n ['name' => \"El Talento del Bloque - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/el-talento-del-bloque-cd/1008285.p?id=2117239&skuId=1008285&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008285', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008285_sa.jpg\"}', 'upc' => '827865500120', 'provider' => 'bestbuy'],\n ['name' => \"Funky Kingston [Mango Reissue] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/funky-kingston-mango-reissue-cd/1008304.p?id=102003&skuId=1008304&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008304', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008304_sa.jpg\"}', 'upc' => '016253933026', 'provider' => 'bestbuy'],\n ['name' => \"Blood Like Lemonade - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blood-like-lemonade-cd/1008319.p?id=2119496&skuId=1008319&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008319', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008319_sa.jpg\"}', 'upc' => '843798000148', 'provider' => 'bestbuy'],\n ['name' => \"Hold You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hold-you-cd/1008328.p?id=2119207&skuId=1008328&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008328', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008328_sa.jpg\"}', 'upc' => '054645186728', 'provider' => 'bestbuy'],\n ['name' => \"100 Miles from Memphis [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/100-miles-from-memphis-digipak-cd/1008355.p?id=2117073&skuId=1008355&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008355', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008355_sa.jpg\"}', 'upc' => '602527433943', 'provider' => 'bestbuy'],\n ['name' => \"BATMAN: UNDER THE RED HOOD (2PC) / (SPEC ECOA) (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/batman-under-the-red-hood-2pc-spec-ecoa-blu-ray-disc/1008373.p?id=2150155&skuId=1008373&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008373', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008373_sa.jpg\"}', 'upc' => '883929099597', 'provider' => 'bestbuy'],\n ['name' => \"2-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 349.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2-year-protection-plan-geek-squad/1008585.p?id=1218252648433&skuId=1008585&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008585', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010085859', 'provider' => 'bestbuy'],\n ['name' => \"The Sword in the Stone (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-sword-in-the-stone-dvd/1008628.p?id=24888&skuId=1008628&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008628', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008628.jpg\"}', 'upc' => '786936834925', 'provider' => 'bestbuy'],\n ['name' => \"NPR Discover Songs: Soul Revival - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/npr-discover-songs-soul-revival-cd-various/1008782.p?id=2115137&skuId=1008782&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008782', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008782_sa.jpg\"}', 'upc' => '826663117080', 'provider' => 'bestbuy'],\n ['name' => \"Pedro Cap¢ - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pedro-cap-cd/1008791.p?id=2115268&skuId=1008791&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008791', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008791_sa.jpg\"}', 'upc' => '886972757520', 'provider' => 'bestbuy'],\n ['name' => \"Plays Blues, Ballads & Favorites - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/plays-blues-ballads-favorites-cd/1008828.p?id=2115282&skuId=1008828&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008828', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008828_sa.jpg\"}', 'upc' => '826663121063', 'provider' => 'bestbuy'],\n ['name' => \"Meridional - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/meridional-cd/1008855.p?id=2115278&skuId=1008855&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008855', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008855_sa.jpg\"}', 'upc' => '793018308724', 'provider' => 'bestbuy'],\n ['name' => \"Setlist: The Very Best... [ECD] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/setlist-the-very-best-ecd-digipak-cd/1008864.p?id=2115284&skuId=1008864&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008864', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008864_sa.jpg\"}', 'upc' => '886977027529', 'provider' => 'bestbuy'],\n ['name' => \"Setlist: The Very... [ECD] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/setlist-the-very-ecd-digipak-cd/1008882.p?id=2115279&skuId=1008882&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008882', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008882_sa.jpg\"}', 'upc' => '886977027925', 'provider' => 'bestbuy'],\n ['name' => \"Bloodletting [20th Anniversary Edition] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bloodletting-20th-anniversary-edition-cd/1008891.p?id=2115281&skuId=1008891&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008891', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008891_sa.jpg\"}', 'upc' => '826663120868', 'provider' => 'bestbuy'],\n ['name' => \"Setlist: The Very Best of Willie... [ECD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/setlist-the-very-best-of-willie-ecd-cd/1008919.p?id=2115283&skuId=1008919&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008919', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008919_sa.jpg\"}', 'upc' => '886977027024', 'provider' => 'bestbuy'],\n ['name' => \"At Budokan [CD & DVD] - CD - DVD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-budokan-cd-dvd-cd-dvd/1008928.p?id=2114427&skuId=1008928&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008928', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008928_sa.jpg\"}', 'upc' => '886977266126', 'provider' => 'bestbuy'],\n ['name' => \"Time Flies... 1994-2009 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/time-flies-1994-2009-cd/1008937.p?id=2113865&skuId=1008937&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008937', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008937_sa.jpg\"}', 'upc' => '886977378621', 'provider' => 'bestbuy'],\n ['name' => \"Matilda/The New Adventures of Pippi Longstocking [2 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/matilda-the-new-adventures-of-pippi-longstocking-2-discs-dvd/1008946.p?id=2063605&skuId=1008946&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008946', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1829\\/18293494.jpg\"}', 'upc' => '043396184817', 'provider' => 'bestbuy'],\n ['name' => \"Setlist: The Very Best of... [ECD] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/setlist-the-very-best-of-ecd-digipak-cd/1008973.p?id=2115272&skuId=1008973&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008973', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008973_sa.jpg\"}', 'upc' => '886977027727', 'provider' => 'bestbuy'],\n ['name' => \"Setlist: The Very Best of Blue... [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/setlist-the-very-best-of-blue-digipak-cd/1008982.p?id=2115285&skuId=1008982&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008982', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008982.jpg\"}', 'upc' => '886977177927', 'provider' => 'bestbuy'],\n ['name' => \"Setlist: The Very... [ECD] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/setlist-the-very-ecd-digipak-cd/1008991.p?id=2115274&skuId=1008991&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1008991', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1008\\/1008991_sa.jpg\"}', 'upc' => '886977178221', 'provider' => 'bestbuy'],\n ['name' => \"Cooking Mama 5: Bon Appétit - PRE-OWNED - Nintendo 3DS\", 'description_short' => \"Whip up sweet treats and mouthwatering dishes that show you&#039;re a culinary star\", 'description_long' => \"Whip up sweet treats and mouthwatering dishes that show you&#039;re a culinary star\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cooking-mama-5-bon-appetit-pre-owned-nintendo-3ds/1009007.p?id=1219460752590&skuId=1009007&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009007', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009007_sa.jpg\"}', 'upc' => '799007840282', 'provider' => 'bestbuy'],\n ['name' => \"Setlist: The Very Best of... [ECD] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/setlist-the-very-best-of-ecd-digipak-cd/1009008.p?id=2115280&skuId=1009008&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009008', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009008_sa.jpg\"}', 'upc' => '886977224522', 'provider' => 'bestbuy'],\n ['name' => \"Setlist: The Very... [ECD] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/setlist-the-very-ecd-digipak-cd/1009026.p?id=2115286&skuId=1009026&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009026', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009026_sa.jpg\"}', 'upc' => '886977178429', 'provider' => 'bestbuy'],\n ['name' => \"Time Flies... 1994-2009 [CD & DVD] [Box] [PA] - CD - DVD Box Limited Edition Clamshell\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/time-flies-1994-2009-cd-dvd-box-pa-cd-dvd-box-limited-edition-clamshell/1009053.p?id=2113866&skuId=1009053&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009053', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009053_sa.jpg\"}', 'upc' => '886977226625', 'provider' => 'bestbuy'],\n ['name' => \"Audio-Technica - Microphone\", 'description_short' => \"Detachable - 20Hz to 20kHz - Cable\", 'description_long' => \"Detachable - 20Hz to 20kHz - Cable\", 'price' => 99.99, 'sale_price' => 92.99, 'url' => 'http://www.bestbuy.com/site/audio-technica-microphone/1009211.p?id=1218207657136&skuId=1009211&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009211', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009211_105x210_sc.jpg\"}', 'upc' => '042005134953', 'provider' => 'bestbuy'],\n ['name' => \"Shenandoah (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shenandoah-dvd/1009248.p?id=42704&skuId=1009248&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009248', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009248_sa.jpg\"}', 'upc' => '025192262029', 'provider' => 'bestbuy'],\n ['name' => \"Glacier National Park (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/glacier-national-park-blu-ray-disc/1009363.p?id=2077283&skuId=1009363&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009363', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009363_sa.jpg\"}', 'upc' => '014381633856', 'provider' => 'bestbuy'],\n ['name' => \"My Regeneration - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-regeneration-cd/1009414.p?id=2115342&skuId=1009414&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009414', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009414_sa.jpg\"}', 'upc' => '698268951020', 'provider' => 'bestbuy'],\n ['name' => \"Seawide - Nautic 6\\\" x 9\\\" 2-Way Coaxial Marine Speakers (Pair) - White\", 'description_short' => \"Handles up to 130W power; polymer speaker assembly; grilles and housings made from UV-resistant fiber-reinforced ABS plastic; injection-molded magnet\", 'description_long' => \"Handles up to 130W power; polymer speaker assembly; grilles and housings made from UV-resistant fiber-reinforced ABS plastic; injection-molded magnet\", 'price' => 65.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/seawide-nautic-6-x-9-2-way-coaxial-marine-speakers-pair-white/1009511.p?id=1218215158393&skuId=1009511', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009511', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009511_sa.jpg\"}', 'upc' => '806576215721', 'provider' => 'bestbuy'],\n ['name' => \"Seawide - Nautic 6-1/2\\\" 2-Way Coaxial Marine Speakers (Pair) - White\", 'description_short' => \"Handles up to 50W power; polymer speaker assembly; grilles and housings made from UV-resistant fiber-reinforced ABS plastic; injection-molded magnet\", 'description_long' => \"Handles up to 50W power; polymer speaker assembly; grilles and housings made from UV-resistant fiber-reinforced ABS plastic; injection-molded magnet\", 'price' => 64.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/seawide-nautic-6-1-2-2-way-coaxial-marine-speakers-pair-white/1009566.p?id=1218215158336&skuId=1009566', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009566', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009566_sa.jpg\"}', 'upc' => '806576215714', 'provider' => 'bestbuy'],\n ['name' => \"Move of Ten [EP] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/move-of-ten-ep-digipak-cd/1009609.p?id=2117657&skuId=1009609&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009609', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009609_sa.jpg\"}', 'upc' => '801061950521', 'provider' => 'bestbuy'],\n ['name' => \"Admiral Fell Promises [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/admiral-fell-promises-digipak-cd/1009618.p?id=2117236&skuId=1009618&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009618', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009618_sa.jpg\"}', 'upc' => '634457529328', 'provider' => 'bestbuy'],\n ['name' => \"Masts of Manhatta [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/masts-of-manhatta-digipak-cd/1009627.p?id=2117656&skuId=1009627&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009627', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009627_sa.jpg\"}', 'upc' => '611357630903', 'provider' => 'bestbuy'],\n ['name' => \"Safe Upon the Shore [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/safe-upon-the-shore-digipak-cd/1009636.p?id=2117068&skuId=1009636&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009636', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009636.jpg\"}', 'upc' => '634457528925', 'provider' => 'bestbuy'],\n ['name' => \"Messin' with the Kid: Original Masters - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/messin-with-the-kid-original-masters-cd/1009645.p?id=2133200&skuId=1009645&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009645', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009645_sa.jpg\"}', 'upc' => '708535172161', 'provider' => 'bestbuy'],\n ['name' => \"Wildwood [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wildwood-digipak-cd/1009654.p?id=2117654&skuId=1009654&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009654', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009654_sa.jpg\"}', 'upc' => '634457222120', 'provider' => 'bestbuy'],\n ['name' => \"I Heart California [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-heart-california-digipak-cd/1009663.p?id=2118066&skuId=1009663&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1009663', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1009\\/1009663_sa.jpg\"}', 'upc' => '634457528727', 'provider' => 'bestbuy'],\n ['name' => \"WWE 2K15 - PRE-OWNED - Xbox 360\", 'description_short' => \"Step into the ring and fight your way to the gold\", 'description_long' => \"Step into the ring and fight your way to the gold\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wwe-2k15-pre-owned-xbox-360/1010002.p?id=1219460771478&skuId=1010002&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1010002', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1010\\/1010002_sa.jpg\"}', 'upc' => '799007840299', 'provider' => 'bestbuy'],\n ['name' => \"StarTech - DisplayPort to VGA Adapter - Black\", 'description_short' => \"DisplayPort Male\", 'description_long' => \"DisplayPort Male\", 'price' => 28.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/startech-displayport-to-vga-adapter-black/1010004.p?id=1218265847767&skuId=1010004&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1010004', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1010\\/1010004_sa.jpg\"}', 'upc' => '065030834551', 'provider' => 'bestbuy'],\n ['name' => \"Oliver and Company (Blu-ray Disc) (2 Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/oliver-and-company-blu-ray-disc-2-disc/1010147.p?id=43372&skuId=1010147&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1010147', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1010\\/1010147_sa.jpg\"}', 'upc' => '786936829235', 'provider' => 'bestbuy'],\n ['name' => \"KitchenAid - 36\\\" Built-In Electric Cooktop - Black\", 'description_short' => \"Knob controls; 5 cooktop elements; 100-2700 watts of power; warm zone; 2 double-ring round elements\", 'description_long' => \"Knob controls; 5 cooktop elements; 100-2700 watts of power; warm zone; 2 double-ring round elements\", 'price' => 1499.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kitchenaid-36-built-in-electric-cooktop-black/1010226.p?id=1218208015434&skuId=1010226&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1010226', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1010\\/1010226_sa.jpg\"}', 'upc' => '883049202440', 'provider' => 'bestbuy'],\n ['name' => \"KitchenAid - 36\\\" Built-In Electric Cooktop - Stainless Steel\", 'description_short' => \"Knob controls; 5 cooktop elements; 100-2700 watts of power; warm zone; 2 double-ring round elements\", 'description_long' => \"Knob controls; 5 cooktop elements; 100-2700 watts of power; warm zone; 2 double-ring round elements\", 'price' => 1599.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kitchenaid-36-built-in-electric-cooktop-stainless-steel/1010271.p?id=1218208016783&skuId=1010271&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1010271', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1010\\/1010271_sa.jpg\"}', 'upc' => '883049202457', 'provider' => 'bestbuy'],\n ['name' => \"American Audio - Headphones - Black/Silver\", 'description_short' => \"From our expanded online assortment; 44mm driver; 32 ohms impedance; 20Hz - 20kHz frequency response; 3.5mm stereo plug\", 'description_long' => \"From our expanded online assortment; 44mm driver; 32 ohms impedance; 20Hz - 20kHz frequency response; 3.5mm stereo plug\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-audio-headphones-black-silver/1010401.p?id=1218208999696&skuId=1010401', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1010401', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1010\\/1010401_sa.jpg\"}', 'upc' => '640282021890', 'provider' => 'bestbuy'],\n ['name' => \"Keurig - Green Mountain Breakfast Blend K-Cups (18-Pack) - Multi\", 'description_short' => \"For use with Keurig&#039;s Single Serve Brewer; Kona breakfast blend coffee; 18-pack\", 'description_long' => \"For use with Keurig&#039;s Single Serve Brewer; Kona breakfast blend coffee; 18-pack\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/keurig-green-mountain-breakfast-blend-k-cups-18-pack-multi/1011173.p?id=1218208016216&skuId=1011173&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011173', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011173_sa.jpg\"}', 'upc' => '099555005202', 'provider' => 'bestbuy'],\n ['name' => \"The Sims 3 - Nintendo Wii\", 'description_short' => \"Give your Sims the run of the neighborhood in this exciting new edition\", 'description_long' => \"Give your Sims the run of the neighborhood in this exciting new edition\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-sims-3-nintendo-wii/1011786.p?id=1218208016458&skuId=1011786', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011786', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011786_sa.jpg\"}', 'upc' => '014633194401', 'provider' => 'bestbuy'],\n ['name' => \"The Quickening - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-quickening-cd/1011859.p?id=2115483&skuId=1011859&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011859', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011859_sa.jpg\"}', 'upc' => '827954103522', 'provider' => 'bestbuy'],\n ['name' => \"Spirit the Earth Aflame - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spirit-the-earth-aflame-cd/1011868.p?id=2115495&skuId=1011868&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011868', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011868_sa.jpg\"}', 'upc' => '039841486520', 'provider' => 'bestbuy'],\n ['name' => \"Rising from the Grave [CD & DVD] - CD - DVD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rising-from-the-grave-cd-dvd-cd-dvd/1011877.p?id=2115494&skuId=1011877&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011877', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011877_sa.jpg\"}', 'upc' => '039841490329', 'provider' => 'bestbuy'],\n ['name' => \"Rites Of The Pentagram [CD & DVD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rites-of-the-pentagram-cd-dvd-cd/1011886.p?id=2115497&skuId=1011886&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011886', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011886_sa.jpg\"}', 'upc' => '020286154167', 'provider' => 'bestbuy'],\n ['name' => \"Paegan Terrorism Tactics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/paegan-terrorism-tactics-cd/1011895.p?id=2115464&skuId=1011895&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011895', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011895.jpg\"}', 'upc' => '032357304425', 'provider' => 'bestbuy'],\n ['name' => \"Legacy of the Ancients - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/legacy-of-the-ancients-cd/1011904.p?id=2115461&skuId=1011904&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011904', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011904_sa.jpg\"}', 'upc' => '746105056923', 'provider' => 'bestbuy'],\n ['name' => \"Conjuring the Damned - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/conjuring-the-damned-cd/1011913.p?id=2115485&skuId=1011913&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011913', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011913_sa.jpg\"}', 'upc' => '656191201629', 'provider' => 'bestbuy'],\n ['name' => \"Black Coffee - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/black-coffee-cd/1011922.p?id=2115475&skuId=1011922&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011922', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011922_sa.jpg\"}', 'upc' => '823862002520', 'provider' => 'bestbuy'],\n ['name' => \"Capricorn One: Singles & Rarities [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/capricorn-one-singles-rarities-digipak-cd/1011959.p?id=2115502&skuId=1011959&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011959', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011959_sa.jpg\"}', 'upc' => '751097075623', 'provider' => 'bestbuy'],\n ['name' => \"Dirty Little Rabbits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dirty-little-rabbits-cd/1011968.p?id=2115470&skuId=1011968&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011968', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011968.jpg\"}', 'upc' => '654436015826', 'provider' => 'bestbuy'],\n ['name' => \"2nd Avenue [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2nd-avenue-digipak-cd/1011977.p?id=2118063&skuId=1011977&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011977', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011977_sa.jpg\"}', 'upc' => '020286152309', 'provider' => 'bestbuy'],\n ['name' => \"Yet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/yet-cd/1011986.p?id=2115827&skuId=1011986&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011986', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011986.jpg\"}', 'upc' => '803847109420', 'provider' => 'bestbuy'],\n ['name' => \"Danza III: The Series of Unfortunate Events - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/danza-iii-the-series-of-unfortunate-events-cd/1011995.p?id=2115456&skuId=1011995&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1011995', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1011\\/1011995_sa.jpg\"}', 'upc' => '039841491128', 'provider' => 'bestbuy'],\n ['name' => \"The Dawg Years (1975-1978) [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-dawg-years-1975-1978-digipak-cd/1012002.p?id=2115453&skuId=1012002&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012002', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012002_sa.jpg\"}', 'upc' => '767981122328', 'provider' => 'bestbuy'],\n ['name' => \"Laughing [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/laughing-pa-cd/1012011.p?id=2115441&skuId=1012011&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012011', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012011.jpg\"}', 'upc' => '673951017221', 'provider' => 'bestbuy'],\n ['name' => \"You Are Beneath Me [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/you-are-beneath-me-digipak-cd/1012039.p?id=2115496&skuId=1012039&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012039', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012039_sa.jpg\"}', 'upc' => '020286123989', 'provider' => 'bestbuy'],\n ['name' => \"Rollin' [PA] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rollin-pa-digipak-cd/1012048.p?id=2118062&skuId=1012048&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012048', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012048_sa.jpg\"}', 'upc' => '020286152170', 'provider' => 'bestbuy'],\n ['name' => \"Love Ritual: Rare & Previously... [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-ritual-rare-previously-digipak-cd/1012057.p?id=2115447&skuId=1012057&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012057', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012057.jpg\"}', 'upc' => '767981121529', 'provider' => 'bestbuy'],\n ['name' => \"Wide Awake [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wide-awake-digipak-cd/1012066.p?id=2115469&skuId=1012066&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012066', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012066_sa.jpg\"}', 'upc' => '020286154204', 'provider' => 'bestbuy'],\n ['name' => \"How to Destroy Angels [EP] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/how-to-destroy-angels-ep-digipak-cd/1012075.p?id=2115459&skuId=1012075&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012075', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012075_sa.jpg\"}', 'upc' => '766929950122', 'provider' => 'bestbuy'],\n ['name' => \"A Feast for Crows [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-feast-for-crows-digdownload-cd/1012084.p?id=2115460&skuId=1012084&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012084', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012084.jpg\"}', 'upc' => '746105055728', 'provider' => 'bestbuy'],\n ['name' => \"The Marriage of Heaven and Hell - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-marriage-of-heaven-and-hell-cd/1012093.p?id=2115466&skuId=1012093&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012093', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012093_sa.jpg\"}', 'upc' => '803847109321', 'provider' => 'bestbuy'],\n ['name' => \"Common Ground - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/common-ground-cd/1012109.p?id=2114448&skuId=1012109&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012109', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012109_sa.jpg\"}', 'upc' => '020286152279', 'provider' => 'bestbuy'],\n ['name' => \"Alive - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alive-cd/1012118.p?id=2114447&skuId=1012118&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012118', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012118_sa.jpg\"}', 'upc' => '020286154211', 'provider' => 'bestbuy'],\n ['name' => \"Down Low Brother - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/down-low-brother-cd/1012409.p?id=1537388&skuId=1012409&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012409', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012409_sa.jpg\"}', 'upc' => '706393108124', 'provider' => 'bestbuy'],\n ['name' => \"Talk to Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/talk-to-me-cd/1012436.p?id=1344456&skuId=1012436&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012436', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012436_sa.jpg\"}', 'upc' => '096094108029', 'provider' => 'bestbuy'],\n ['name' => \"La Musica del Futuro - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/la-musica-del-futuro-cd/1012445.p?id=2115263&skuId=1012445&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012445', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012445_sa.jpg\"}', 'upc' => '097037877026', 'provider' => 'bestbuy'],\n ['name' => \"It's My Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/its-my-time-cd/1012454.p?id=1642028&skuId=1012454&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012454', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012454_sa.jpg\"}', 'upc' => '706393109220', 'provider' => 'bestbuy'],\n ['name' => \"Guerilla Business [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/guerilla-business-digipak-cd/1012481.p?id=2115242&skuId=1012481&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012481', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012481.jpg\"}', 'upc' => '845121019179', 'provider' => 'bestbuy'],\n ['name' => \"I'm a Woman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/im-a-woman-cd/1012515.p?id=1828531&skuId=1012515&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012515', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012515_sa.jpg\"}', 'upc' => '842994011545', 'provider' => 'bestbuy'],\n ['name' => \"Where Y'At?: Ultimate Black & Gold Party! - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/where-yat-ultimate-black-gold-party-cd-various/1012542.p?id=2115258&skuId=1012542&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012542', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012542_sa.jpg\"}', 'upc' => '096094112323', 'provider' => 'bestbuy'],\n ['name' => \"The Best Woman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-woman-cd/1012579.p?id=211474&skuId=1012579&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012579', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012579_sa.jpg\"}', 'upc' => '706393103822', 'provider' => 'bestbuy'],\n ['name' => \"After Hours - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/after-hours-cd/1012647.p?id=70143&skuId=1012647&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012647', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012647_sa.jpg\"}', 'upc' => '089408330223', 'provider' => 'bestbuy'],\n ['name' => \"Papa Doo Run Run - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/papa-doo-run-run-cd/1012665.p?id=1366312&skuId=1012665&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012665', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012665_sa.jpg\"}', 'upc' => '089408550119', 'provider' => 'bestbuy'],\n ['name' => \"Symphony 8 / Scherzo Capriccioso - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/symphony-8-scherzo-capriccioso-cd/1012781.p?id=1676879&skuId=1012781&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012781', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012781.jpg\"}', 'upc' => '089408020629', 'provider' => 'bestbuy'],\n ['name' => \"Righteous/ Games Guitars Play - CD - Remastered\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/righteous-games-guitars-play-cd-remastered/1012885.p?id=1472292&skuId=1012885&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012885', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012885_sa.jpg\"}', 'upc' => '5017261206671', 'provider' => 'bestbuy'],\n ['name' => \"Howling Trains and Barking Dogs [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/howling-trains-and-barking-dogs-digipak-cd/1012894.p?id=2110243&skuId=1012894&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012894', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012894_sa.jpg\"}', 'upc' => '607735006620', 'provider' => 'bestbuy'],\n ['name' => \"Dum-Dum Bullets [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dum-dum-bullets-digipak-cd/1012903.p?id=2110305&skuId=1012903&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012903', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012903_sa.jpg\"}', 'upc' => '693723066424', 'provider' => 'bestbuy'],\n ['name' => \"Romeo & Juliet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/romeo-juliet-cd/1012905.p?id=1689268&skuId=1012905&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012905', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012905.jpg\"}', 'upc' => '089408022821', 'provider' => 'bestbuy'],\n ['name' => \"The Snake - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-snake-cd/1012912.p?id=2358827&skuId=1012912&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012912', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1135\\/11355589.jpg\"}', 'upc' => '5017261203984', 'provider' => 'bestbuy'],\n ['name' => \"Beast Mode [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/beast-mode-pa-cd/1012921.p?id=2110180&skuId=1012921&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012921', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012921_sa.jpg\"}', 'upc' => '099923206927', 'provider' => 'bestbuy'],\n ['name' => \"Shangrenade - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shangrenade-cd/1012949.p?id=1528976&skuId=1012949&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012949', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012949_sa.jpg\"}', 'upc' => '5017261204103', 'provider' => 'bestbuy'],\n ['name' => \"Baby Batter - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/baby-batter-cd/1012967.p?id=1452225&skuId=1012967&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012967', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012967.jpg\"}', 'upc' => '5017261202529', 'provider' => 'bestbuy'],\n ['name' => \"Stupendous Adventures Of Marco Polo... [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stupendous-adventures-of-marco-polo-pa-cd/1012976.p?id=2110185&skuId=1012976&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012976', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012976_sa.jpg\"}', 'upc' => '693461215528', 'provider' => 'bestbuy'],\n ['name' => \"Noesis [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/noesis-digipak-cd/1012985.p?id=2110205&skuId=1012985&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1012985', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1012\\/1012985.jpg\"}', 'upc' => '804223002120', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Chicago Blues [Vanguard LP] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-chicago-blues-vanguard-lp-cd-various/1013218.p?id=1365877&skuId=1013218&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013218', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013218_sa.jpg\"}', 'upc' => '015707010221', 'provider' => 'bestbuy'],\n ['name' => \"Electric Music for the Mind and Body - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/electric-music-for-the-mind-and-body-cd/1013227.p?id=78818&skuId=1013227&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013227', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013227.jpg\"}', 'upc' => '015707924429', 'provider' => 'bestbuy'],\n ['name' => \"The Immortal Mississippi John Hurt - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-immortal-mississippi-john-hurt-cd/1013245.p?id=85968&skuId=1013245&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013245', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013245_sa.jpg\"}', 'upc' => '015707924825', 'provider' => 'bestbuy'],\n ['name' => \"Circus Maximus with Jerry Jeff Walker - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/circus-maximus-with-jerry-jeff-walker-cd/1013307.p?id=77830&skuId=1013307&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013307', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013307_sa.jpg\"}', 'upc' => '015707926027', 'provider' => 'bestbuy'],\n ['name' => \"Coming at You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/coming-at-you-cd/1013325.p?id=103774&skuId=1013325&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013325', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013325_sa.jpg\"}', 'upc' => '015707926225', 'provider' => 'bestbuy'],\n ['name' => \"I-Feel-Like-I'm-Fixin'-To-Die - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-feel-like-im-fixin-to-die-cd/1013343.p?id=78819&skuId=1013343&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013343', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013343.JPG\"}', 'upc' => '015707926621', 'provider' => 'bestbuy'],\n ['name' => \"A Man and the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-man-and-the-blues-cd/1013389.p?id=84476&skuId=1013389&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013389', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013389_sa.jpg\"}', 'upc' => '015707927222', 'provider' => 'bestbuy'],\n ['name' => \"Devil Got My Woman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/devil-got-my-woman-cd/1013405.p?id=86657&skuId=1013405&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013405', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013405_sa.jpg\"}', 'upc' => '015707927321', 'provider' => 'bestbuy'],\n ['name' => \"Together - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/together-cd/1013423.p?id=78822&skuId=1013423&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013423', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013423.jpg\"}', 'upc' => '015707927727', 'provider' => 'bestbuy'],\n ['name' => \"Cut You Loose! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cut-you-loose-cd/1013441.p?id=78787&skuId=1013441&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013441', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013441_sa.jpg\"}', 'upc' => '015707928328', 'provider' => 'bestbuy'],\n ['name' => \"This Is Buddy Guy! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/this-is-buddy-guy-cd/1013469.p?id=84489&skuId=1013469&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013469', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013469.jpg\"}', 'upc' => '015707929028', 'provider' => 'bestbuy'],\n ['name' => \"Hold That Plane - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hold-that-plane-cd/1013548.p?id=84481&skuId=1013548&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013548', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013548.jpg\"}', 'upc' => '015707932325', 'provider' => 'bestbuy'],\n ['name' => \"Music of Another Present Era - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-of-another-present-era-cd/1013566.p?id=2280846&skuId=1013566&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013566', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013566.jpg\"}', 'upc' => '015707932622', 'provider' => 'bestbuy'],\n ['name' => \"Hits: Greatest & Others - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hits-greatest-others-cd/1013600.p?id=73702&skuId=1013600&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013600', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013600_sa.jpg\"}', 'upc' => '015707933223', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Siegel Schwall - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-siegel-schwall-cd/1013655.p?id=98709&skuId=1013655&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013655', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013655.jpg\"}', 'upc' => '015707933629', 'provider' => 'bestbuy'],\n ['name' => \"The World of Scott Joplin, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-world-of-scott-joplin-vol-2-cd/1013673.p?id=69371&skuId=1013673&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013673', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013673.jpg\"}', 'upc' => '015707035125', 'provider' => 'bestbuy'],\n ['name' => \"The Best Of - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-cd/1013735.p?id=97728&skuId=1013735&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013735', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013735.jpg\"}', 'upc' => '015707030427', 'provider' => 'bestbuy'],\n ['name' => \"Best of the Darlin' Boys - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-the-darlin-boys-cd/1013753.p?id=178381&skuId=1013753&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013753', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013753_sa.jpg\"}', 'upc' => '015707050623', 'provider' => 'bestbuy'],\n ['name' => \"At Town Hall - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-town-hall-cd/1013806.p?id=93801&skuId=1013806&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013806', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013806_sa.jpg\"}', 'upc' => '015707210928', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Eric Andersen - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-eric-andersen-cd/1013842.p?id=72951&skuId=1013842&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013842', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013842_sa.jpg\"}', 'upc' => '015707070829', 'provider' => 'bestbuy'],\n ['name' => \"Magic Bullet - Blender - Black\", 'description_short' => \"17-piece set; chops, mixes, blends, whips, grinds and more in about 10 seconds; 4 party mugs with comfort lip rings\", 'description_long' => \"17-piece set; chops, mixes, blends, whips, grinds and more in about 10 seconds; 4 party mugs with comfort lip rings\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/magic-bullet-blender-black/1013848.p?id=1218208323341&skuId=1013848&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013848', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013848_rc.jpg\"}', 'upc' => '898078001049', 'provider' => 'bestbuy'],\n ['name' => \"Cisco Houston Sings the Songs of Woody Guthrie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cisco-houston-sings-the-songs-of-woody-guthrie-cd/1013904.p?id=85832&skuId=1013904&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013904', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013904_sa.jpg\"}', 'upc' => '015707213127', 'provider' => 'bestbuy'],\n ['name' => \"Four Strong Winds - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/four-strong-winds-cd/1013922.p?id=86027&skuId=1013922&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013922', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013922_sa.jpg\"}', 'upc' => '015707214926', 'provider' => 'bestbuy'],\n ['name' => \"Reunion at Carnegie Hall: 1963 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reunion-at-carnegie-hall-1963-cd/1013940.p?id=103699&skuId=1013940&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013940', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013940.jpg\"}', 'upc' => '015707215022', 'provider' => 'bestbuy'],\n ['name' => \"Cryin' Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cryin-time-cd/1013995.p?id=99782&skuId=1013995&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1013995', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1013\\/1013995.jpg\"}', 'upc' => '015707651424', 'provider' => 'bestbuy'],\n ['name' => \"Frigidaire - 17 Cu. Ft. Upright Convertible Freezer/Refrigerator - White\", 'description_short' => \"5 built-in shelves; in-door storage; defrost drain; mechanical knob controls\", 'description_long' => \"5 built-in shelves; in-door storage; defrost drain; mechanical knob controls\", 'price' => 849.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/frigidaire-17-cu-ft-upright-convertible-freezer-refrigerator-white/1014008.p?id=1219460767478&skuId=1014008&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014008', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014008_sa.jpg\"}', 'upc' => '012505229787', 'provider' => 'bestbuy'],\n ['name' => \"The First 10 Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-first-10-years-cd/1014066.p?id=73715&skuId=1014066&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014066', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014066_sa.jpg\"}', 'upc' => '015707656023', 'provider' => 'bestbuy'],\n ['name' => \"Vacation Isle Beach Party - Nintendo Wii\", 'description_short' => \"Step into the sun and go on a vacation anytime\", 'description_long' => \"Step into the sun and go on a vacation anytime\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vacation-isle-beach-party-nintendo-wii/1014073.p?id=1218208322413&skuId=1014073', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014073', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014073.jpg\"}', 'upc' => '883929126910', 'provider' => 'bestbuy'],\n ['name' => \"Ballads From Deep Gap - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ballads-from-deep-gap-cd/1014093.p?id=103615&skuId=1014093&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014093', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014093.jpg\"}', 'upc' => '015707657624', 'provider' => 'bestbuy'],\n ['name' => \"Creation (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/creation-dvd/1014116.p?id=2091215&skuId=1014116&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014116', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014116_sa.jpg\"}', 'upc' => '031398123699', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/1014173.p?id=88473&skuId=1014173&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014173', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014173_sa.jpg\"}', 'upc' => '015707131421', 'provider' => 'bestbuy'],\n ['name' => \"The Greatest (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-greatest-dvd/1014204.p?id=2108270&skuId=1014204&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014204', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014204_sa.jpg\"}', 'upc' => '652405001399', 'provider' => 'bestbuy'],\n ['name' => \"The Red Shoes (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-red-shoes-blu-ray-disc/1014213.p?id=24078&skuId=1014213&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014213', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014213_sa.jpg\"}', 'upc' => '715515059312', 'provider' => 'bestbuy'],\n ['name' => \"Distant Hills - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/distant-hills-cd/1014217.p?id=69702&skuId=1014217&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014217', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014217.jpg\"}', 'upc' => '015707934121', 'provider' => 'bestbuy'],\n ['name' => \"Golgo 13: Collection 1 (2 Disc) (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/golgo-13-collection-1-2-disc-dvd/1014231.p?id=2109883&skuId=1014231&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014231', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014231.jpg\"}', 'upc' => '814131018908', 'provider' => 'bestbuy'],\n ['name' => \"Introducing the Eleventh House with Larry Coryell - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/introducing-the-eleventh-house-with-larry-coryell-cd/1014235.p?id=65317&skuId=1014235&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014235', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014235_sa.jpg\"}', 'upc' => '015707934220', 'provider' => 'bestbuy'],\n ['name' => \"Ip Man (Blu-ray Disc) (2 Disc) (Collector's Edition)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ip-man-blu-ray-disc-2-disc-collectors-edition/1014259.p?id=1954262&skuId=1014259&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014259', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014259_sa.jpg\"}', 'upc' => '812491011522', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/1014262.p?id=103696&skuId=1014262&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014262', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014262_sa.jpg\"}', 'upc' => '015707151627', 'provider' => 'bestbuy'],\n ['name' => \"Ip Man (DVD) (Collector's Edition)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ip-man-dvd-collectors-edition/1014268.p?id=1954262&skuId=1014268&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014268', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014268_sa.jpg\"}', 'upc' => '812491011515', 'provider' => 'bestbuy'],\n ['name' => \"Black Narcissus (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/black-narcissus-blu-ray-disc/1014277.p?id=20590&skuId=1014277&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014277', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014277_sa.jpg\"}', 'upc' => '715515061216', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Folksingers of the '60s - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-folksingers-of-the-60s-cd-various/1014280.p?id=82586&skuId=1014280&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014280', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014280.jpg\"}', 'upc' => '015707171823', 'provider' => 'bestbuy'],\n ['name' => \"The Mississippi John Hurt - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-mississippi-john-hurt-cd/1014306.p?id=85965&skuId=1014306&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014306', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014306.jpg\"}', 'upc' => '015707192026', 'provider' => 'bestbuy'],\n ['name' => \"The Great Blues Men - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-great-blues-men-cd-various/1014324.p?id=75331&skuId=1014324&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014324', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014324.jpg\"}', 'upc' => '015707252621', 'provider' => 'bestbuy'],\n ['name' => \"Just Dance 2 - Nintendo Wii\", 'description_short' => \"Move to the beat and keep the party going\", 'description_long' => \"Move to the beat and keep the party going\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/just-dance-2-nintendo-wii/1014329.p?id=1218208323015&skuId=1014329', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014329', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014329_sa.jpg\"}', 'upc' => '008888176060', 'provider' => 'bestbuy'],\n ['name' => \"Air Mail Music: Cajuns de Louisiane - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/air-mail-music-cajuns-de-louisiane-cd/1014338.p?id=1438870&skuId=1014338&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014338', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014338_sa.jpg\"}', 'upc' => '3700089411144', 'provider' => 'bestbuy'],\n ['name' => \"My New Orleans Soul - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-new-orleans-soul-cd/1014347.p?id=255542&skuId=1014347&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014347', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014347_sa.jpg\"}', 'upc' => '752211103826', 'provider' => 'bestbuy'],\n ['name' => \"The Immortal Soul of Johnny Adams - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-immortal-soul-of-johnny-adams-cd/1014356.p?id=160913&skuId=1014356&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014356', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014356_sa.jpg\"}', 'upc' => '752211120120', 'provider' => 'bestbuy'],\n ['name' => \"Edition Pierre Verger: Louisiana - From... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/edition-pierre-verger-louisiana-from-cd/1014365.p?id=1543301&skuId=1014365&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014365', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014365_sa.jpg\"}', 'upc' => '3700089665318', 'provider' => 'bestbuy'],\n ['name' => \"1313 Hoodoo Street - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/1313-hoodoo-street-cd/1014374.p?id=133623&skuId=1014374&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014374', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1028\\/10282981.jpg\"}', 'upc' => '752211500328', 'provider' => 'bestbuy'],\n ['name' => \"Everybody Scream - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/everybody-scream-cd/1014383.p?id=176084&skuId=1014383&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014383', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014383_sa.jpg\"}', 'upc' => '752211500625', 'provider' => 'bestbuy'],\n ['name' => \"Winter Light - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/winter-light-cd/1014397.p?id=69710&skuId=1014397&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014397', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014397_sa.jpg\"}', 'upc' => '015707935029', 'provider' => 'bestbuy'],\n ['name' => \"Jail - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jail-cd/1014413.p?id=101733&skuId=1014413&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014413', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014413.jpg\"}', 'upc' => '015707935128', 'provider' => 'bestbuy'],\n ['name' => \"Multi Karaoke: Canta como Juan Gabriel, Vol. 4 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/multi-karaoke-canta-como-juan-gabriel-vol-4-cd/1014416.p?id=2121206&skuId=1014416&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014416', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014416.jpg\"}', 'upc' => '617091003751', 'provider' => 'bestbuy'],\n ['name' => \"The Tribute Sessions - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-tribute-sessions-cd/1014425.p?id=1548436&skuId=1014425&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014425', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1015\\/10151346.jpg\"}', 'upc' => '752211500922', 'provider' => 'bestbuy'],\n ['name' => \"Feets Don't Fail Me Now - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/feets-dont-fail-me-now-cd/1014434.p?id=164820&skuId=1014434&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014434', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014434_sa.jpg\"}', 'upc' => '752211500120', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Buffy Sainte-Marie, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-buffy-sainte-marie-vol-2-cd/1014468.p?id=97729&skuId=1014468&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014468', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014468_sa.jpg\"}', 'upc' => '015707333429', 'provider' => 'bestbuy'],\n ['name' => \"The Greatest Songs of Woody Guthrie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-greatest-songs-of-woody-guthrie-cd/1014486.p?id=84457&skuId=1014486&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014486', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014486_sa.jpg\"}', 'upc' => '015707353625', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Scott Joplin and Other Rag Classics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-scott-joplin-and-other-rag-classics-cd/1014501.p?id=69369&skuId=1014501&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014501', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014501.jpg\"}', 'upc' => '015707394024', 'provider' => 'bestbuy'],\n ['name' => \"Sassy Mama! [Vanguard] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sassy-mama-vanguard-cd/1014538.p?id=101734&skuId=1014538&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014538', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014538.jpg\"}', 'upc' => '015707935425', 'provider' => 'bestbuy'],\n ['name' => \"John Hammond Solo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/john-hammond-solo-cd/1014565.p?id=84743&skuId=1014565&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014565', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014565.jpg\"}', 'upc' => '015707938020', 'provider' => 'bestbuy'],\n ['name' => \"Let It Fly - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/let-it-fly-cd/1014627.p?id=80463&skuId=1014627&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014627', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014627_sa.jpg\"}', 'upc' => '015707946025', 'provider' => 'bestbuy'],\n ['name' => \"Throw It to the Wind: The Songs of Maltby & Shire - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/throw-it-to-the-wind-the-songs-of-maltby-shire-cd/1014638.p?id=2121539&skuId=1014638&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014638', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014638.jpg\"}', 'upc' => '803607109226', 'provider' => 'bestbuy'],\n ['name' => \"Broadway Boys: The Lullaby of Broadway - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/broadway-boys-the-lullaby-of-broadway-various-cd/1014647.p?id=2121540&skuId=1014647&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014647', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014647_sa.jpg\"}', 'upc' => '803607109127', 'provider' => 'bestbuy'],\n ['name' => \"String Wizards - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/string-wizards-cd/1014663.p?id=91163&skuId=1014663&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014663', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014663.jpg\"}', 'upc' => '015707946223', 'provider' => 'bestbuy'],\n ['name' => \"Moon and Mind - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moon-and-mind-cd/1014734.p?id=69704&skuId=1014734&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014734', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014734_sa.jpg\"}', 'upc' => '015707941921', 'provider' => 'bestbuy'],\n ['name' => \"Stanton - Pro MIDI DJ Deck Controller - Black\", 'description_short' => \"From our expanded online assortment; compatible with PC and Mac via a FireWire port; compatible with most DJ software; 10&quot; motorized platter with vinyl surface and tracking\", 'description_long' => \"From our expanded online assortment; compatible with PC and Mac via a FireWire port; compatible with most DJ software; 10&quot; motorized platter with vinyl surface and tracking\", 'price' => 699.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stanton-pro-midi-dj-deck-controller-black/1014756.p?id=1218208317436&skuId=1014756&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014756', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014756_sa.jpg\"}', 'upc' => '049292000695', 'provider' => 'bestbuy'],\n ['name' => \"Live! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-cd/1014789.p?id=77865&skuId=1014789&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014789', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014789_sa.jpg\"}', 'upc' => '015707944526', 'provider' => 'bestbuy'],\n ['name' => \"Alisha - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alisha-cd/1014869.p?id=72710&skuId=1014869&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014869', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014869_sa.jpg\"}', 'upc' => '015707945622', 'provider' => 'bestbuy'],\n ['name' => \"Stars & Stripes Forever - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stars-stripes-forever-cd/1014912.p?id=277501&skuId=1014912&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014912', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014912_sa.jpg\"}', 'upc' => '015707200325', 'provider' => 'bestbuy'],\n ['name' => \"Newport Broadside 1963 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/newport-broadside-1963-cd-various/1014921.p?id=93252&skuId=1014921&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014921', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014921.jpg\"}', 'upc' => '015707700320', 'provider' => 'bestbuy'],\n ['name' => \"Definitive TV Western Collection (48pc) (DVD) (Boxed Set)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 58.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/definitive-tv-western-collection-48pc-dvd-boxed-set/1014947.p?id=2115213&skuId=1014947&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014947', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014947.jpg\"}', 'upc' => '683904508881', 'provider' => 'bestbuy'],\n ['name' => \"Long Journey Home - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/long-journey-home-cd/1014949.p?id=87760&skuId=1014949&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014949', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014949_sa.jpg\"}', 'upc' => '015707700429', 'provider' => 'bestbuy'],\n ['name' => \"Bluegrass Breakdown - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bluegrass-breakdown-cd-various/1014967.p?id=93251&skuId=1014967&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014967', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014967.jpg\"}', 'upc' => '015707700627', 'provider' => 'bestbuy'],\n ['name' => \"Elite Screens - Spectrum Electric Projection Screen - White\", 'description_short' => \"65&quot; x 90&quot; - Matte White - 100&quot; Diagonal\", 'description_long' => \"65&quot; x 90&quot; - Matte White - 100&quot; Diagonal\", 'price' => 269.99, 'sale_price' => 220.99, 'url' => 'http://www.bestbuy.com/site/elite-screens-spectrum-electric-projection-screen-white/1014974.p?id=1218208402105&skuId=1014974&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014974', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014974_sa.jpg\"}', 'upc' => '876818005700', 'provider' => 'bestbuy'],\n ['name' => \"The Weavers at Carnegie Hall, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-weavers-at-carnegie-hall-vol-2-cd/1014985.p?id=103693&skuId=1014985&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1014985', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1014\\/1014985_sa.jpg\"}', 'upc' => '015707907521', 'provider' => 'bestbuy'],\n ['name' => \"The Weavers' Almanac - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-weavers-almanac-cd/1015001.p?id=103691&skuId=1015001&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015001', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015001_sa.jpg\"}', 'upc' => '015707910026', 'provider' => 'bestbuy'],\n ['name' => \"Doc Watson - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/doc-watson-cd/1015029.p?id=103621&skuId=1015029&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015029', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015029_sa.jpg\"}', 'upc' => '015707915229', 'provider' => 'bestbuy'],\n ['name' => \"Northern Journey - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/northern-journey-cd/1015047.p?id=86030&skuId=1015047&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015047', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015047_sa.jpg\"}', 'upc' => '015707915427', 'provider' => 'bestbuy'],\n ['name' => \"Art Of The Cantor - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/art-of-the-cantor-cd/1015092.p?id=94606&skuId=1015092&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015092', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015092_sa.jpg\"}', 'upc' => '015707201728', 'provider' => 'bestbuy'],\n ['name' => \"Live At Carnegie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-carnegie-cd/1015127.p?id=2068607&skuId=1015127&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015127', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015127.jpg\"}', 'upc' => '015707202022', 'provider' => 'bestbuy'],\n ['name' => \"The Weavers at Carnegie Hall - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-weavers-at-carnegie-hall-cd/1015154.p?id=103692&skuId=1015154&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015154', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015154_sa.jpg\"}', 'upc' => '015707310123', 'provider' => 'bestbuy'],\n ['name' => \"Music of Nubia - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/music-of-nubia-cd/1015225.p?id=81397&skuId=1015225&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015225', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015225_sa.jpg\"}', 'upc' => '015707916424', 'provider' => 'bestbuy'],\n ['name' => \"Early Morning Rain - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/early-morning-rain-cd/1015252.p?id=86026&skuId=1015252&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015252', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015252_sa.jpg\"}', 'upc' => '015707917520', 'provider' => 'bestbuy'],\n ['name' => \"Southbound - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/southbound-cd/1015298.p?id=103630&skuId=1015298&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015298', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015298.jpg\"}', 'upc' => '015707921329', 'provider' => 'bestbuy'],\n ['name' => \"Chicago/The Blues/Today!, Vol. 1 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chicago-the-blues-today-vol-1-cd-various/1015314.p?id=75273&skuId=1015314&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015314', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015314_sa.jpg\"}', 'upc' => '015707921626', 'provider' => 'bestbuy'],\n ['name' => \"Chicago/The Blues/Today!, Vol. 3 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chicago-the-blues-today-vol-3-cd-various/1015350.p?id=75275&skuId=1015350&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015350', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015350_sa.jpg\"}', 'upc' => '015707921824', 'provider' => 'bestbuy'],\n ['name' => \"Skip James Today! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/skip-james-today-cd/1015378.p?id=86659&skuId=1015378&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015378', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015378_sa.jpg\"}', 'upc' => '015707921923', 'provider' => 'bestbuy'],\n ['name' => \"Today! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/today-cd/1015396.p?id=85969&skuId=1015396&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015396', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015396.jpg\"}', 'upc' => '015707922029', 'provider' => 'bestbuy'],\n ['name' => \"Stand Back! Here Comes Charley Musselwhite's... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stand-back-here-comes-charley-musselwhites-cd/1015430.p?id=92700&skuId=1015430&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015430', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015430_sa.jpg\"}', 'upc' => '015707923224', 'provider' => 'bestbuy'],\n ['name' => \"The Greatest Songs of Woody Guthrie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-greatest-songs-of-woody-guthrie-cd/1015494.p?id=84458&skuId=1015494&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015494', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015494.jpg\"}', 'upc' => '015707310529', 'provider' => 'bestbuy'],\n ['name' => \"The Essential Doc Watson - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-essential-doc-watson-cd/1015546.p?id=103631&skuId=1015546&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015546', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015546.jpg\"}', 'upc' => '015707454629', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/1015582.p?id=77857&skuId=1015582&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015582', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015582_sa.jpg\"}', 'upc' => '015707535427', 'provider' => 'bestbuy'],\n ['name' => \"The Essential Perrey & Kingsley - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-essential-perrey-kingsley-cd/1015626.p?id=94716&skuId=1015626&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015626', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015626_sa.jpg\"}', 'upc' => '015707717229', 'provider' => 'bestbuy'],\n ['name' => \"The Weavers Classics - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-weavers-classics-cd/1015733.p?id=103703&skuId=1015733&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015733', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015733_sa.jpg\"}', 'upc' => '015707312226', 'provider' => 'bestbuy'],\n ['name' => \"Driftin' Way of Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/driftin-way-of-life-cd/1015779.p?id=103353&skuId=1015779&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015779', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015779.jpg\"}', 'upc' => '015707312424', 'provider' => 'bestbuy'],\n ['name' => \"The Elder Scrolls IV: Oblivion Platinum Hits - Xbox 360\", 'description_short' => \"The gates of Oblivion have been opened\", 'description_long' => \"The gates of Oblivion have been opened\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-elder-scrolls-iv-oblivion-platinum-hits-xbox-360/1015791.p?id=1218287815279&skuId=1015791', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015791', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015791_500x500_sa.jpg\"}', 'upc' => '093155117532', 'provider' => 'bestbuy'],\n ['name' => \"Treasures Untold - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/treasures-untold-cd/1015840.p?id=103634&skuId=1015840&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015840', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015840.jpg\"}', 'upc' => '015707700122', 'provider' => 'bestbuy'],\n ['name' => \"\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 149.99, 'sale_price' => null, 'url' => '', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015846', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010158461', 'provider' => 'bestbuy'],\n ['name' => \"Newport Folk Festival 1963: The Evening... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/newport-folk-festival-1963-the-evening-cd-various/1015868.p?id=93253&skuId=1015868&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015868', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015868.jpg\"}', 'upc' => '015707700221', 'provider' => 'bestbuy'],\n ['name' => \"The Essential Larry Coryell - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-essential-larry-coryell-cd/1015902.p?id=65311&skuId=1015902&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015902', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015902_sa.jpg\"}', 'upc' => '015707757621', 'provider' => 'bestbuy'],\n ['name' => \"The Great Bluesmen at Newport '59 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-great-bluesmen-at-newport-59-cd-various/1015911.p?id=75348&skuId=1015911&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1015911', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1015\\/1015911_sa.jpg\"}', 'upc' => '015707007726', 'provider' => 'bestbuy'],\n ['name' => \"Old-Timey Concert - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/old-timey-concert-cd/1016019.p?id=103625&skuId=1016019&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016019', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016019_sa.jpg\"}', 'upc' => '015707107822', 'provider' => 'bestbuy'],\n ['name' => \"The Essential - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-essential-cd/1016037.p?id=69709&skuId=1016037&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016037', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016037.jpg\"}', 'upc' => '015707010924', 'provider' => 'bestbuy'],\n ['name' => \"The Collected Country Joe & the Fish - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-collected-country-joe-the-fish-cd/1016055.p?id=78820&skuId=1016055&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016055', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016055_sa.jpg\"}', 'upc' => '015707011129', 'provider' => 'bestbuy'],\n ['name' => \"In Concert I&II - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-concert-i-ii-cd/1016073.p?id=2276525&skuId=1016073&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016073', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016073_sa.jpg\"}', 'upc' => '015707011327', 'provider' => 'bestbuy'],\n ['name' => \"Blues at Newport - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-at-newport-cd-various/1016082.p?id=75236&skuId=1016082&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016082', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016082_sa.jpg\"}', 'upc' => '015707011525', 'provider' => 'bestbuy'],\n ['name' => \"Jingle All the Way 2 (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jingle-all-the-way-2-dvd/1016088.p?id=3308567&skuId=1016088&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016088', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016088_sa.jpg\"}', 'upc' => '024543968450', 'provider' => 'bestbuy'],\n ['name' => \"Jingle All the Way 2 (Blu-ray Disc) (2 Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 17.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jingle-all-the-way-2-blu-ray-disc-2-disc/1016097.p?id=3308567&skuId=1016097&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016097', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016097.jpg\"}', 'upc' => '024543968481', 'provider' => 'bestbuy'],\n ['name' => \"Best of Country Joe McDonald [Cassette] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-country-joe-mcdonald-cassette-cd/1016126.p?id=91117&skuId=1016126&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016126', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016126_sa.jpg\"}', 'upc' => '015707011921', 'provider' => 'bestbuy'],\n ['name' => \"Urnex - Scoop Brush\", 'description_short' => \"Brush tip; scoop design; compact size\", 'description_long' => \"Brush tip; scoop design; compact size\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/urnex-scoop-brush/1016132.p?id=1218209271175&skuId=1016132', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016132', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016132_sa.jpg\"}', 'upc' => '754631602705', 'provider' => 'bestbuy'],\n ['name' => \"Bluegrass at Newport: 1959-1963 - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bluegrass-at-newport-1959-1963-cd-various/1016144.p?id=75169&skuId=1016144&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016144', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016144_sa.jpg\"}', 'upc' => '015707012126', 'provider' => 'bestbuy'],\n ['name' => \"Where We Walked (1966-1970) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/where-we-walked-1966-1970-cd/1016180.p?id=98711&skuId=1016180&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016180', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016180.jpg\"}', 'upc' => '015707003520', 'provider' => 'bestbuy'],\n ['name' => \"The World of Scott Joplin, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-world-of-scott-joplin-vol-1-cd/1016206.p?id=69370&skuId=1016206&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016206', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016206.jpg\"}', 'upc' => '015707031028', 'provider' => 'bestbuy'],\n ['name' => \"Hot Little Mama - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hot-little-mama-cd/1016322.p?id=97303&skuId=1016322&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016322', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016322_sa.jpg\"}', 'upc' => '011671002125', 'provider' => 'bestbuy'],\n ['name' => \"Christmas Guitar, Vol. 1-CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/christmas-guitar-vol-1-cd/1016493.p?id=172511&skuId=1016493&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016493', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016493_sa.jpg\"}', 'upc' => '011671000220', 'provider' => 'bestbuy'],\n ['name' => \"Royal Sovereign - 13\\\" Photo and Document Laminator - White/Black\", 'description_short' => \"Laminates photos and more up to 13.4&quot; wide and 3-7 mil thick; 2-roller system; cooling guide bars; automatic shut-off\", 'description_long' => \"Laminates photos and more up to 13.4&quot; wide and 3-7 mil thick; 2-roller system; cooling guide bars; automatic shut-off\", 'price' => 99.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/royal-sovereign-13-photo-and-document-laminator-white-black/1016584.p?id=1218209270961&skuId=1016584&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016584', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016584_rc.jpg\"}', 'upc' => '035565769888', 'provider' => 'bestbuy'],\n ['name' => \"Royal Sovereign - 9\\\" Photo and Document Laminator - White/Black\", 'description_short' => \"Laminates photos and more up to 9.4&quot; wide and 3-5 mil thick; 2-roller system; cooling guide bars; automatic shut-off\", 'description_long' => \"Laminates photos and more up to 9.4&quot; wide and 3-5 mil thick; 2-roller system; cooling guide bars; automatic shut-off\", 'price' => 99.99, 'sale_price' => 83.99, 'url' => 'http://www.bestbuy.com/site/royal-sovereign-9-photo-and-document-laminator-white-black/1016618.p?id=1218209272531&skuId=1016618', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016618', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016618_sa.jpg\"}', 'upc' => '035565769895', 'provider' => 'bestbuy'],\n ['name' => \"Royal Sovereign - Digital Coin Sorter\", 'description_short' => \"Sorts U.S. pennies, nickels, dimes and quarters; 2 row of tubes; digital display; antijam device\", 'description_long' => \"Sorts U.S. pennies, nickels, dimes and quarters; 2 row of tubes; digital display; antijam device\", 'price' => 79.99, 'sale_price' => 74.99, 'url' => 'http://www.bestbuy.com/site/royal-sovereign-digital-coin-sorter/1016627.p?id=1218209271664&skuId=1016627&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1016627', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1016\\/1016627_sa.jpg\"}', 'upc' => '035565900106', 'provider' => 'bestbuy'],\n ['name' => \"Mystery Science Theater 3000: Vol. XVIII [4 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 29.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mystery-science-theater-3000-vol-xviii-4-discs-dvd/1017195.p?id=2104949&skuId=1017195&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017195', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017195_sa.jpg\"}', 'upc' => '826663119732', 'provider' => 'bestbuy'],\n ['name' => \"Fanboys (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fanboys-blu-ray-disc/1017229.p?id=1933227&skuId=1017229&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017229', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017229_sa.jpg\"}', 'upc' => '883476027715', 'provider' => 'bestbuy'],\n ['name' => \"Kevin Hart: Seriously Funny (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kevin-hart-seriously-funny-dvd/1017238.p?id=2104938&skuId=1017238&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017238', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017238_sa.jpg\"}', 'upc' => '883476027678', 'provider' => 'bestbuy'],\n ['name' => \"Super Hero Squad Show: Quest for the Infinity Sword! Vol. 1 (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/super-hero-squad-show-quest-for-the-infinity-sword-vol-1-dvd/1017247.p?id=2104735&skuId=1017247&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017247', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017247_sa.jpg\"}', 'upc' => '826663120837', 'provider' => 'bestbuy'],\n ['name' => \"EVGA - 500 Bronze 500W Power Supply - Black\", 'description_short' => \"Designed to power select computers; 500W continuous power; 80PLUS Bronze certified; high-amperage single-rail design; heavy-duty protections\", 'description_long' => \"Designed to power select computers; 500W continuous power; 80PLUS Bronze certified; high-amperage single-rail design; heavy-duty protections\", 'price' => 59.99, 'sale_price' => 48.99, 'url' => 'http://www.bestbuy.com/site/evga-500-bronze-500w-power-supply-black/1017256.p?id=1219045510716&skuId=1017256&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017256', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017256_sa.jpg\"}', 'upc' => '843368023904', 'provider' => 'bestbuy'],\n ['name' => \"Repo Men (DVD) (Unrated)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/repo-men-dvd-unrated/1017283.p?id=2114251&skuId=1017283&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017283', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017283_sa.jpg\"}', 'upc' => '025195033046', 'provider' => 'bestbuy'],\n ['name' => \"Bourne Trilogy (Blu-ray Disc) (3 Disc) (Gift Set)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bourne-trilogy-blu-ray-disc-3-disc-gift-set/1017308.p?id=2105489&skuId=1017308&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017308', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017308.jpg\"}', 'upc' => '025192064470', 'provider' => 'bestbuy'],\n ['name' => \"Death Before Dishonor [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/death-before-dishonor-pa-cd/1017556.p?id=2121528&skuId=1017556&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017556', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017556_sa.jpg\"}', 'upc' => '809367215122', 'provider' => 'bestbuy'],\n ['name' => \"10th Anniversary: Tha Classicc [CD & DVD] [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/10th-anniversary-tha-classicc-cd-dvd-pa-cd/1017565.p?id=2121527&skuId=1017565&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017565', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017565_sa.jpg\"}', 'upc' => '678394100356', 'provider' => 'bestbuy'],\n ['name' => \"Piano Tribute to Jack Johnson - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/piano-tribute-to-jack-johnson-various-cd/1017574.p?id=2121897&skuId=1017574&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017574', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017574_sa.jpg\"}', 'upc' => '707541926690', 'provider' => 'bestbuy'],\n ['name' => \"Porcupine Tree: Anesthetize (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/porcupine-tree-anesthetize-dvd/1017583.p?id=2104681&skuId=1017583&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017583', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017583_sa.jpg\"}', 'upc' => '802644850771', 'provider' => 'bestbuy'],\n ['name' => \"Southern Filibuster: A Tribute to Tut Taylor - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/southern-filibuster-a-tribute-to-tut-taylor-cd/1017592.p?id=2121900&skuId=1017592&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017592', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017592.jpg\"}', 'upc' => '099923208228', 'provider' => 'bestbuy'],\n ['name' => \"Tamba [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tamba-digipak-cd/1017608.p?id=2110207&skuId=1017608&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017608', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017608_sa.jpg\"}', 'upc' => '823889910822', 'provider' => 'bestbuy'],\n ['name' => \"My Room in the Trees [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-room-in-the-trees-digipak-cd/1017626.p?id=2125755&skuId=1017626&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017626', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017626_sa.jpg\"}', 'upc' => '655037092728', 'provider' => 'bestbuy'],\n ['name' => \"Porcupine Tree: Anesthetize - DVD - (2 Disc) (Limited Edition)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/porcupine-tree-anesthetize-dvd-2-disc-limited-edition/1017635.p?id=2104681&skuId=1017635&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017635', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017635_sa.jpg\"}', 'upc' => '802644850672', 'provider' => 'bestbuy'],\n ['name' => \"Today's Praise and Worship - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/todays-praise-and-worship-cd-various/1017644.p?id=2121526&skuId=1017644&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017644', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017644_sa.jpg\"}', 'upc' => '015095722829', 'provider' => 'bestbuy'],\n ['name' => \"DJ Play My Blues [Bonus Tracks] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dj-play-my-blues-bonus-tracks-digipak-cd/1017653.p?id=2103570&skuId=1017653&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017653', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017653_sa.jpg\"}', 'upc' => '788065882525', 'provider' => 'bestbuy'],\n ['name' => \"Matador [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/matador-digipak-cd/1017662.p?id=2121524&skuId=1017662&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017662', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017662.jpg\"}', 'upc' => '099923207627', 'provider' => 'bestbuy'],\n ['name' => \"Piano Tribute to Train - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/piano-tribute-to-train-cd-various/1017671.p?id=2121895&skuId=1017671&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017671', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017671_sa.jpg\"}', 'upc' => '707541926898', 'provider' => 'bestbuy'],\n ['name' => \"Red Horse [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/red-horse-digipak-cd/1017699.p?id=2121896&skuId=1017699&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017699', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017699_sa.jpg\"}', 'upc' => '033651023326', 'provider' => 'bestbuy'],\n ['name' => \"Chicken & Egg [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chicken-egg-digipak-cd/1017717.p?id=2125934&skuId=1017717&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017717', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017717_sa.jpg\"}', 'upc' => '670832100522', 'provider' => 'bestbuy'],\n ['name' => \"Out the Blue [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/out-the-blue-pa-cd/1017726.p?id=2121530&skuId=1017726&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017726', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017726_sa.jpg\"}', 'upc' => '678394100363', 'provider' => 'bestbuy'],\n ['name' => \"15 Years of Duck Down [PA] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/15-years-of-duck-down-pa-cd-various/1017744.p?id=2121525&skuId=1017744&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017744', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017744_sa.jpg\"}', 'upc' => '693461216020', 'provider' => 'bestbuy'],\n ['name' => \"Texas Troubadour [Snapper Long Box] [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/texas-troubadour-snapper-long-box-box-cd/1017762.p?id=1446057&skuId=1017762&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017762', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1017\\/1017762.jpg\"}', 'upc' => '803415572922', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 56.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1017844.p?id=1218252703238&skuId=1017844&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017844', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010178445', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 99.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1017853.p?id=1218252575110&skuId=1017853&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017853', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010178537', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 119.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1017862.p?id=1218252613110&skuId=1017862&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017862', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010178629', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 139.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1017871.p?id=1218252591341&skuId=1017871&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017871', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010178711', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 159.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1017899.p?id=1218252653225&skuId=1017899&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017899', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010178995', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 189.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1017908.p?id=1218252608265&skuId=1017908&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017908', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010179084', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 219.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1017917.p?id=1218252628932&skuId=1017917&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017917', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010179176', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 249.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1017926.p?id=1218252653901&skuId=1017926&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017926', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010179268', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 279.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1017935.p?id=1218252639061&skuId=1017935&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017935', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010179350', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 309.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1017944.p?id=1218252642784&skuId=1017944&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017944', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010179442', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 349.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1017953.p?id=1218252619371&skuId=1017953&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1017953', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010179534', 'provider' => 'bestbuy'],\n ['name' => \"Finally - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/finally-cd/1018024.p?id=2124501&skuId=1018024&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018024', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1018\\/1018024_sa.jpg\"}', 'upc' => '837654913260', 'provider' => 'bestbuy'],\n ['name' => \"The A-Team [Original Score] [6/22] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-a-team-original-score-6-22-cd-original-soundtrack/1018042.p?id=2115858&skuId=1018042&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018042', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1018\\/1018042_sa.jpg\"}', 'upc' => '030206703221', 'provider' => 'bestbuy'],\n ['name' => \"Enemy of the World [Special Edition] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/enemy-of-the-world-special-edition-cd/1018051.p?id=2144060&skuId=1018051&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018051', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1018\\/1018051_sa.jpg\"}', 'upc' => '602527427560', 'provider' => 'bestbuy'],\n ['name' => \"Middle Men [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/middle-men-original-soundtrack-cd-original-soundtrack/1018088.p?id=2127457&skuId=1018088&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018088', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1018\\/1018088.jpg\"}', 'upc' => '018771034520', 'provider' => 'bestbuy'],\n ['name' => \"The Gates Mixed Plate [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-gates-mixed-plate-pa-cd/1018103.p?id=2123815&skuId=1018103&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018103', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1018\\/1018103_sa.jpg\"}', 'upc' => '893981001797', 'provider' => 'bestbuy'],\n ['name' => \"JONAS L.A. [ECD] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jonas-l-a-ecd-cd-original-soundtrack/1018112.p?id=2113331&skuId=1018112&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018112', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1018\\/1018112_sa.jpg\"}', 'upc' => '050087139919', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 449.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1018121.p?id=1219051768763&skuId=1018121&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018121', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010181216', 'provider' => 'bestbuy'],\n ['name' => \"Registered Offender [PA] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/registered-offender-pa-digipak-cd/1018158.p?id=2123817&skuId=1018158&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018158', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1018\\/1018158_sa.jpg\"}', 'upc' => '790058204023', 'provider' => 'bestbuy'],\n ['name' => \"Scott Pilgrim Vs. the World - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/scott-pilgrim-vs-the-world-cd-original-soundtrack/1018219.p?id=2124502&skuId=1018219&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018219', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1018\\/1018219_sa.jpg\"}', 'upc' => '018771034322', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 499.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1018237.p?id=1218252629486&skuId=1018237&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018237', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010182374', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 569.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1018246.p?id=1218252652834&skuId=1018246&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018246', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010182466', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 599.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1018255.p?id=1218252604122&skuId=1018255&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018255', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010182558', 'provider' => 'bestbuy'],\n ['name' => \"Conair - 1875-Watt Folding Handle Hair Dryer - Blue\", 'description_short' => \"2 heat/speed settings; cool shot button; dual voltage; professional-length line cord\", 'description_long' => \"2 heat/speed settings; cool shot button; dual voltage; professional-length line cord\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/conair-1875-watt-folding-handle-hair-dryer-blue/1018273.p?id=1218210314205&skuId=1018273&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018273', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1018\\/1018273_rc.jpg\"}', 'upc' => '074108007469', 'provider' => 'bestbuy'],\n ['name' => \"Allons a Lafayette - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/allons-a-lafayette-cd/1018883.p?id=74251&skuId=1018883&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018883', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1018\\/1018883.jpg\"}', 'upc' => '096297030820', 'provider' => 'bestbuy'],\n ['name' => \"Wipeout: The Game - Nintendo Wii\", 'description_short' => \"It&#039;s your turn to run, jump and climb through the wildest obstacle course on earth\", 'description_long' => \"It&#039;s your turn to run, jump and climb through the wildest obstacle course on earth\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wipeout-the-game-nintendo-wii/1018934.p?id=1218209648572&skuId=1018934&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018934', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1018\\/1018934_sa.jpg\"}', 'upc' => '047875761735', 'provider' => 'bestbuy'],\n ['name' => \"Greenberg (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greenberg-dvd/1018952.p?id=2111577&skuId=1018952&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018952', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1018\\/1018952_sa.jpg\"}', 'upc' => '025192047718', 'provider' => 'bestbuy'],\n ['name' => \"Greenberg (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greenberg-blu-ray-disc/1018961.p?id=2111577&skuId=1018961&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018961', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1018\\/1018961_sa.jpg\"}', 'upc' => '025192047725', 'provider' => 'bestbuy'],\n ['name' => \"The Many Sounds of Steve Jordan - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-many-sounds-of-steve-jordan-cd/1018981.p?id=87396&skuId=1018981&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1018981', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1018\\/1018981.jpg\"}', 'upc' => '096297031926', 'provider' => 'bestbuy'],\n ['name' => \"When the Game Stands Tall (DVD) (Ultraviolet Digital Copy)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/when-the-game-stands-tall-dvd-ultraviolet-digital-copy/1019003.p?id=3308631&skuId=1019003&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019003', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019003.jpg\"}', 'upc' => '043396439443', 'provider' => 'bestbuy'],\n ['name' => \"Cloudy With a Chance of Meatballs (Blu-ray 3D) (3-D)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cloudy-with-a-chance-of-meatballs-blu-ray-3d-3-d/1019005.p?id=2064980&skuId=1019005&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019005', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019005_sa.jpg\"}', 'upc' => '043396355781', 'provider' => 'bestbuy'],\n ['name' => \"Beau Solo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/beau-solo-cd/1019007.p?id=80824&skuId=1019007&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019007', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019007.jpg\"}', 'upc' => '096297032121', 'provider' => 'bestbuy'],\n ['name' => \"When the Game Stands Tall (Blu-ray Disc) (2 Disc) (Ultraviolet Digital Copy)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/when-the-game-stands-tall-blu-ray-disc-2-disc-ultraviolet-digital-copy/1019012.p?id=3308631&skuId=1019012&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019012', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019012_sa.jpg\"}', 'upc' => '043396439412', 'provider' => 'bestbuy'],\n ['name' => \"Parlez-Nous a Boire - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/parlez-nous-a-boire-cd/1019016.p?id=74247&skuId=1019016&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019016', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019016_sa.jpg\"}', 'upc' => '096297032220', 'provider' => 'bestbuy'],\n ['name' => \"Day of the Mummy (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/day-of-the-mummy-dvd/1019021.p?id=3307580&skuId=1019021&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019021', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019021_sa.jpg\"}', 'upc' => '014381998320', 'provider' => 'bestbuy'],\n ['name' => \"Justified: Complete Fifth Season [3 Discs] (Blu-ray Disc) (Ultraviolet Digital Copy)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 22.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/justified-complete-fifth-season-3-discs-blu-ray-disc-ultraviolet-digital-copy/1019049.p?id=3303476&skuId=1019049&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019049', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019049.jpg\"}', 'upc' => '043396441033', 'provider' => 'bestbuy'],\n ['name' => \"Justified: Complete Fifth Season [3 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => 14.99, 'url' => 'http://www.bestbuy.com/site/justified-complete-fifth-season-3-discs-dvd/1019058.p?id=3303380&skuId=1019058&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019058', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019058.jpg\"}', 'upc' => '043396441040', 'provider' => 'bestbuy'],\n ['name' => \"Tejano Roots - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tejano-roots-cd-various/1019150.p?id=101341&skuId=1019150&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019150', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019150_sa.jpg\"}', 'upc' => '096297034125', 'provider' => 'bestbuy'],\n ['name' => \"Stanton - DJ PRO 60 Over-the-Ear Stereo Headphones - White\", 'description_short' => \"From our expanded online assortment; sound-isolating design; 40mm drivers; neodymium magnets; carrying pouch\", 'description_long' => \"From our expanded online assortment; sound-isolating design; 40mm drivers; neodymium magnets; carrying pouch\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stanton-dj-pro-60-over-the-ear-stereo-headphones-white/1019184.p?id=1218209649850&skuId=1019184', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019184', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019184_sa.jpg\"}', 'upc' => '049292484907', 'provider' => 'bestbuy'],\n ['name' => \"Bogalusa Boogie - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bogalusa-boogie-cd/1019212.p?id=77344&skuId=1019212&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019212', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019212_sa.jpg\"}', 'upc' => '096297034729', 'provider' => 'bestbuy'],\n ['name' => \"Panasonic - Precision Body Shaver - Pink\", 'description_short' => \"Dual-position pivoting blade; compact wand design; washable; includes cleaning brush\", 'description_long' => \"Dual-position pivoting blade; compact wand design; washable; includes cleaning brush\", 'price' => 29.99, 'sale_price' => 18.99, 'url' => 'http://www.bestbuy.com/site/panasonic-precision-body-shaver-pink/1019245.p?id=1219045591579&skuId=1019245&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019245', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019245_rc.jpg\"}', 'upc' => '885170065840', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Dash Kit for Select 2012-2013 Nissan Versa/Versa S/S+ and SV with no options - Black\", 'description_short' => \"Compatible with select 2012-2013 Nissan Versa/Versa S/S+ and SV models; install an aftermarket radio in your vehicle&#039;s dash; ABS plastic material\", 'description_long' => \"Compatible with select 2012-2013 Nissan Versa/Versa S/S+ and SV models; install an aftermarket radio in your vehicle&#039;s dash; ABS plastic material\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-dash-kit-for-select-2012-2013-nissan-versa-versa-s-s-and-sv-with-no-options-black/1019281.p?id=1219045789406&skuId=1019281&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019281', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019281_sa.jpg\"}', 'upc' => '086429263141', 'provider' => 'bestbuy'],\n ['name' => \"The King of Zydeco Live at Montreux - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-king-of-zydeco-live-at-montreux-cd/1019294.p?id=77357&skuId=1019294&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019294', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019294_sa.jpg\"}', 'upc' => '096297035528', 'provider' => 'bestbuy'],\n ['name' => \"Apple - MagSafe 60W Power Adapter for MacBook® and 13\\\" MacBook® Pro - White\", 'description_short' => \"Compatible with Apple&#174; MacBook and MacBook Pro with a 13&quot; display; magnetic DC connector; LED indicator lights; travel-friendly design\", 'description_long' => \"Compatible with Apple&#174; MacBook and MacBook Pro with a 13&quot; display; magnetic DC connector; LED indicator lights; travel-friendly design\", 'price' => 79.99, 'sale_price' => 77.99, 'url' => 'http://www.bestbuy.com/site/apple-magsafe-60w-power-adapter-for-macbook-and-13-macbook-pro-white/1019306.p?id=1218210362513&skuId=1019306&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019306', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019306_sa.jpg\"}', 'upc' => '885909377794', 'provider' => 'bestbuy'],\n ['name' => \"Wipeout: The Game - Nintendo DS\", 'description_short' => \"It&#039;s your turn to run, jump and climb through wildest obstacle course on Earth\", 'description_long' => \"It&#039;s your turn to run, jump and climb through wildest obstacle course on Earth\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wipeout-the-game-nintendo-ds/1019388.p?id=1218209649167&skuId=1019388', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019388', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019388_sa.jpg\"}', 'upc' => '047875761773', 'provider' => 'bestbuy'],\n ['name' => \"Metra - 99-7803G Mounting Kit Replacement Pocket for 2003-2007 Honda Accord Vehicles - Black\", 'description_short' => \"Compatible with 2003-2007 Honda Accord vehicle models; aftermarket radio installation pocket; ABS plastic material\", 'description_long' => \"Compatible with 2003-2007 Honda Accord vehicle models; aftermarket radio installation pocket; ABS plastic material\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-99-7803g-mounting-kit-replacement-pocket-for-2003-2007-honda-accord-vehicles-black/1019518.p?id=1219045787249&skuId=1019518&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019518', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1019\\/1019518_sa.jpg\"}', 'upc' => '086429274062', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 56.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019527.p?id=1218252698623&skuId=1019527&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019527', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010195275', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 99.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019536.p?id=1218252577909&skuId=1019536&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019536', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010195367', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 119.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019554.p?id=1218252627156&skuId=1019554&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019554', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010195541', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 139.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019563.p?id=1218252579203&skuId=1019563&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019563', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010195633', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 159.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019581.p?id=1218252628210&skuId=1019581&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019581', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010195817', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 189.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019606.p?id=1218252643784&skuId=1019606&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019606', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010196067', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 219.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019615.p?id=1218252618421&skuId=1019615&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019615', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010196159', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 249.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019624.p?id=1218252624211&skuId=1019624&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019624', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010196241', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 279.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019633.p?id=1218252581958&skuId=1019633&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019633', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010196333', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 309.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019642.p?id=1218252593065&skuId=1019642&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019642', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010196425', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 349.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019651.p?id=1218252630874&skuId=1019651&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019651', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010196517', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 449.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019679.p?id=1218252581558&skuId=1019679&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019679', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010196791', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 499.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019688.p?id=1218252584363&skuId=1019688&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019688', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010196883', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 569.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019706.p?id=1218252619149&skuId=1019706&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019706', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010197064', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 599.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1019715.p?id=1218252598270&skuId=1019715&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1019715', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010197156', 'provider' => 'bestbuy'],\n ['name' => \"Simpsons: Season 17 [4 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 39.99, 'sale_price' => 14.99, 'url' => 'http://www.bestbuy.com/site/simpsons-season-17-4-discs-dvd/1020017.p?id=3307644&skuId=1020017&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020017', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020017_sa.jpg\"}', 'upc' => '024543868507', 'provider' => 'bestbuy'],\n ['name' => \"Simpsons: Season 17 [4 Discs] (Blu-ray Disc) (Boxed Set)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 44.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/simpsons-season-17-4-discs-blu-ray-disc-boxed-set/1020035.p?id=3307635&skuId=1020035&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020035', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020035_sa.jpg\"}', 'upc' => '024543868521', 'provider' => 'bestbuy'],\n ['name' => \"Simpsons: Season 17 [Molded Head] [4 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/simpsons-season-17-molded-head-4-discs-dvd/1020044.p?id=3307641&skuId=1020044&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020044', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020044.jpg\"}', 'upc' => '024543030485', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Double DIN Installation Kit for 2013 and Later Hyundai Santa Fe Vehicles - Black\", 'description_short' => \"Compatible with 2013 and later Hyundai Santa Fe vehicle models; lets you install an aftermarket radio in your vehicle&#039;s dash; ABS plastic material\", 'description_long' => \"Compatible with 2013 and later Hyundai Santa Fe vehicle models; lets you install an aftermarket radio in your vehicle&#039;s dash; ABS plastic material\", 'price' => 49.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-double-din-installation-kit-for-2013-and-later-hyundai-santa-fe-vehicles-black/1020205.p?id=1219045786606&skuId=1020205&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020205', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020205_sa.jpg\"}', 'upc' => '086429277827', 'provider' => 'bestbuy'],\n ['name' => \"D Gray-Man: Season One (4 Disc) (DVD) (Boxed Set)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 49.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/d-gray-man-season-one-4-disc-dvd-boxed-set/1020214.p?id=2105490&skuId=1020214&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020214', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020214.jpg\"}', 'upc' => '704400069260', 'provider' => 'bestbuy'],\n ['name' => \"Magikano: The Complete Series [S.A.V.E.] [2 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/magikano-the-complete-series-s-a-v-e--2-discs-dvd/1020241.p?id=2112316&skuId=1020241&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020241', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020241_sa.jpg\"}', 'upc' => '704400086168', 'provider' => 'bestbuy'],\n ['name' => \"One Piece: Season 3 First Voyage (2 Disc) (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 34.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-piece-season-3-first-voyage-2-disc-dvd/1020269.p?id=2105515&skuId=1020269&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020269', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020269.jpg\"}', 'upc' => '704400094613', 'provider' => 'bestbuy'],\n ['name' => \"The Girl With the Dragon Tattoo (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-girl-with-the-dragon-tattoo-dvd/1020278.p?id=2102692&skuId=1020278&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020278', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020278_sa.jpg\"}', 'upc' => '705105743950', 'provider' => 'bestbuy'],\n ['name' => \"The Girl With the Dragon Tattoo (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => 9.99, 'url' => 'http://www.bestbuy.com/site/the-girl-with-the-dragon-tattoo-blu-ray-disc/1020296.p?id=2102692&skuId=1020296&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020296', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020296_sa.jpg\"}', 'upc' => '705105743455', 'provider' => 'bestbuy'],\n ['name' => \"Survival of the Dead (DVD) (2 Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/survival-of-the-dead-dvd-2-disc/1020302.p?id=2115389&skuId=1020302&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020302', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020302.jpg\"}', 'upc' => '876964003285', 'provider' => 'bestbuy'],\n ['name' => \"Dragon Ball: Season 5 (5 Disc) (DVD) (Boxed Set)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 22.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dragon-ball-season-5-5-disc-dvd-boxed-set/1020348.p?id=2112327&skuId=1020348&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020348', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020348.jpg\"}', 'upc' => '704400051951', 'provider' => 'bestbuy'],\n ['name' => \"Survival of the Dead (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/survival-of-the-dead-blu-ray-disc/1020366.p?id=2115389&skuId=1020366&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020366', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020366_sa.jpg\"}', 'upc' => '876964003292', 'provider' => 'bestbuy'],\n ['name' => \"Soul Eater: Part 4 (2 Disc) (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 49.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/soul-eater-part-4-2-disc-dvd/1020375.p?id=2112331&skuId=1020375&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020375', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020375.jpg\"}', 'upc' => '704400011733', 'provider' => 'bestbuy'],\n ['name' => \"Rin: Daughters Of Mnemosyne - Complete Series (2 Disc) (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 42.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rin-daughters-of-mnemosyne-complete-series-2-disc-blu-ray-disc/1020384.p?id=2112322&skuId=1020384&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020384', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020384.jpg\"}', 'upc' => '704400096419', 'provider' => 'bestbuy'],\n ['name' => \"Penitentiary 2 (DVD) (Special Edition)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/penitentiary-2-dvd-special-edition/1020499.p?id=48045&skuId=1020499&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020499', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020499_sa.jpg\"}', 'upc' => '000799436523', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 56.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1020596.p?id=1218252700201&skuId=1020596&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020596', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010205967', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 99.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1020602.p?id=1218252631152&skuId=1020602&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020602', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010206025', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 119.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1020639.p?id=1218252642394&skuId=1020639&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020639', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010206391', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 139.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1020648.p?id=1218252585481&skuId=1020648&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020648', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010206483', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 159.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1020657.p?id=1218252577076&skuId=1020657&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020657', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010206575', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 189.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1020666.p?id=1218252602340&skuId=1020666&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020666', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010206667', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 219.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1020675.p?id=1218252612557&skuId=1020675&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020675', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010206759', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 249.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1020684.p?id=1218252575053&skuId=1020684&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020684', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010206841', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 279.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1020702.p?id=1218252632352&skuId=1020702&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020702', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010207022', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 309.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1020711.p?id=1218252631821&skuId=1020711&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020711', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010207114', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 349.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1020739.p?id=1218252627820&skuId=1020739&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020739', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010207398', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 449.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1020748.p?id=1218252649853&skuId=1020748&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020748', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010207480', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 499.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1020757.p?id=1218252648845&skuId=1020757&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020757', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010207572', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 569.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1020766.p?id=1218252628766&skuId=1020766&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020766', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010207664', 'provider' => 'bestbuy'],\n ['name' => \"Gabriel Iglesias: Hot and Fluffy (Blu-ray Disc) (Colorized)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gabriel-iglesias-hot-and-fluffy-blu-ray-disc-colorized/1020848.p?id=1646994&skuId=1020848&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020848', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020848_sa.jpg\"}', 'upc' => '014381662351', 'provider' => 'bestbuy'],\n ['name' => \"The Secret of the Grain (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-secret-of-the-grain-blu-ray-disc/1020866.p?id=2108868&skuId=1020866&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020866', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020866_sa.jpg\"}', 'upc' => '715515063111', 'provider' => 'bestbuy'],\n ['name' => \"Presenting Sacha Guitry [Criterion Collection] [4 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 49.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/presenting-sacha-guitry-criterion-collection-4-discs-dvd/1020875.p?id=2108871&skuId=1020875&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020875', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020875_sa.jpg\"}', 'upc' => '715515063210', 'provider' => 'bestbuy'],\n ['name' => \"Essential Games Of The Detroit Tigers (4 Disc) (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 22.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/essential-games-of-the-detroit-tigers-4-disc-dvd/1020893.p?id=1958178&skuId=1020893&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020893', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1771\\/17713191.jpg\"}', 'upc' => '733961158205', 'provider' => 'bestbuy'],\n ['name' => \"Just Another Day (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/just-another-day-dvd/1020911.p?id=2106623&skuId=1020911&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020911', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020911_sa.jpg\"}', 'upc' => '014381567922', 'provider' => 'bestbuy'],\n ['name' => \"Steve Byrne: The Byrne Identity (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/steve-byrne-the-byrne-identity-blu-ray-disc/1020939.p?id=2106604&skuId=1020939&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020939', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020939_sa.jpg\"}', 'upc' => '014381662658', 'provider' => 'bestbuy'],\n ['name' => \"Only Son/There Was a Father [Criterion Collection] [2 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 29.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/only-son-there-was-a-father-criterion-collection-2-discs-dvd/1020948.p?id=2108865&skuId=1020948&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020948', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020948_sa.jpg\"}', 'upc' => '715515060813', 'provider' => 'bestbuy'],\n ['name' => \"Burma VJ: Reporting From a Closed Country (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/burma-vj-reporting-from-a-closed-country-dvd/1020957.p?id=2099231&skuId=1020957&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1020957', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1020\\/1020957_sa.jpg\"}', 'upc' => '896602002128', 'provider' => 'bestbuy'],\n ['name' => \"EVGA - NVIDIA GeForce GTX 980 Superclocked ACX 2.0 4GB GDDR5 PCI Express 3.0 Graphics Card - Black\", 'description_short' => \"EVGA NVIDIA GeForce GTX 980 Superclocked ACX 2.0 4GB GDDR5 PCI Express 3.0 Graphics Card: 4GB GDDR5 on-board memory; PCI Express 3.0 interface; DVI-D, DVI-I, HDMI and DisplayPort outputs; 1367MHz boost clock speed\", 'description_long' => \"EVGA NVIDIA GeForce GTX 980 Superclocked ACX 2.0 4GB GDDR5 PCI Express 3.0 Graphics Card: 4GB GDDR5 on-board memory; PCI Express 3.0 interface; DVI-D, DVI-I, HDMI and DisplayPort outputs; 1367MHz boost clock speed\", 'price' => 569.99, 'sale_price' => 564.99, 'url' => 'http://www.bestbuy.com/site/evga-nvidia-geforce-gtx-980-superclocked-acx-2-0-4gb-gddr5-pci-express-3-0-graphics-card-black/1021007.p?id=1219467576316&skuId=1021007&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1021007', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1021\\/1021007_sa.jpg\"}', 'upc' => '843368032326', 'provider' => 'bestbuy'],\n ['name' => \"Metra - Dash Kit for Select 2013-2015 Hyundai Santa Fe - Black\", 'description_short' => \"Compatible with select 2013-2015 Hyundai Santa Fe vehicle models; lets you install an aftermarket radio in your vehicle&#039;s dash; ABS plastic material\", 'description_long' => \"Compatible with select 2013-2015 Hyundai Santa Fe vehicle models; lets you install an aftermarket radio in your vehicle&#039;s dash; ABS plastic material\", 'price' => 49.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metra-dash-kit-for-select-2013-2015-hyundai-santa-fe-black/1021152.p?id=1219045789078&skuId=1021152&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1021152', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1021\\/1021152_sa.jpg\"}', 'upc' => '086429277858', 'provider' => 'bestbuy'],\n ['name' => \"The Dream Band, Vol. 2: The Sundown Sessions - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-dream-band-vol-2-the-sundown-sessions-cd/1021174.p?id=66639&skuId=1021174&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1021174', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1021\\/1021174_sa.jpg\"}', 'upc' => '025218765220', 'provider' => 'bestbuy'],\n ['name' => \"Dream Band, Vol. 3: Flying Home - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dream-band-vol-3-flying-home-cd/1021209.p?id=66640&skuId=1021209&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1021209', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1021\\/1021209_sa.jpg\"}', 'upc' => '025218765428', 'provider' => 'bestbuy'],\n ['name' => \"Robin Hood (DVD) (Anniversary Edition)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/robin-hood-dvd-anniversary-edition/1021374.p?id=24169&skuId=1021374&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1021374', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1021\\/1021374_sa.jpg\"}', 'upc' => '786936834734', 'provider' => 'bestbuy'],\n ['name' => \"Something to Live for: The Music of Billy... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/something-to-live-for-the-music-of-billy-cd/1021450.p?id=66193&skuId=1021450&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1021450', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1021\\/1021450.jpg\"}', 'upc' => '025218142922', 'provider' => 'bestbuy'],\n ['name' => \"The Essential Yanni - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-essential-yanni-cd/1021638.p?id=2117307&skuId=1021638&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1021638', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1021\\/1021638_sa.jpg\"}', 'upc' => '886977120527', 'provider' => 'bestbuy'],\n ['name' => \"The Essential Etta James - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-essential-etta-james-cd/1021656.p?id=2117306&skuId=1021656&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1021656', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1021\\/1021656_sa.jpg\"}', 'upc' => '886977177323', 'provider' => 'bestbuy'],\n ['name' => \"The Essential Jim Brickman - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-essential-jim-brickman-cd/1021665.p?id=2117279&skuId=1021665&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1021665', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1021\\/1021665_sa.jpg\"}', 'upc' => '886977349423', 'provider' => 'bestbuy'],\n ['name' => \"Panasonic - Kx-Tga401b DECT 6.0 Plus Digital Cordless Expansion Handset - Black\", 'description_short' => \"Cordless expansion handset; DECT 6.0 Plus digital technology; 50-station name and number; expandable up to 6 handsets; caller ID compatible\", 'description_long' => \"Cordless expansion handset; DECT 6.0 Plus digital technology; 50-station name and number; expandable up to 6 handsets; caller ID compatible\", 'price' => 34.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/panasonic-kx-tga401b-dect-6-0-plus-digital-cordless-expansion-handset-black/1021683.p?id=1218209983161&skuId=1021683', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1021683', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1021\\/1021683_rc.jpg\"}', 'upc' => '037988482719', 'provider' => 'bestbuy'],\n ['name' => \"Da Bottom 16 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/da-bottom-16-cd/1021838.p?id=3236649&skuId=1021838&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1021838', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1021\\/1021838.jpg\"}', 'upc' => '786984084129', 'provider' => 'bestbuy'],\n ['name' => \"Chris Shiflett & the Dead Peasants - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chris-shiflett-the-dead-peasants-cd/1022027.p?id=2115478&skuId=1022027&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022027', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022027_sa.jpg\"}', 'upc' => '886977380327', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 56.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022036.p?id=1218252702789&skuId=1022036&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022036', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010220366', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 99.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022045.p?id=1218252595682&skuId=1022045&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022045', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010220458', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 119.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022054.p?id=1218252585874&skuId=1022054&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022054', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010220540', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 139.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022072.p?id=1218252606423&skuId=1022072&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022072', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010220724', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 159.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022081.p?id=1218252588331&skuId=1022081&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022081', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010220816', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 189.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022115.p?id=1218252639910&skuId=1022115&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022115', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010221158', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 219.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022124.p?id=1218252643563&skuId=1022124&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022124', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010221240', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 249.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022133.p?id=1218252611291&skuId=1022133&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022133', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010221332', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 279.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022142.p?id=1218252595292&skuId=1022142&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022142', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010221424', 'provider' => 'bestbuy'],\n ['name' => \"Sings the Kurt Weill Songbook - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sings-the-kurt-weill-songbook-cd/1022146.p?id=104395&skuId=1022146&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022146', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022146_sa.jpg\"}', 'upc' => '021471520729', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 309.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022151.p?id=1218252580938&skuId=1022151&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022151', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010221516', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 349.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022179.p?id=1218252627212&skuId=1022179&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022179', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010221790', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 449.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022188.p?id=1218252625152&skuId=1022188&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022188', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010221882', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 499.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022197.p?id=1218252641719&skuId=1022197&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022197', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010221974', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 569.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022203.p?id=1218252608153&skuId=1022203&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022203', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010222032', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 599.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1022212.p?id=1218252582069&skuId=1022212&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022212', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010222124', 'provider' => 'bestbuy'],\n ['name' => \"Then and Now - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/then-and-now-cd/1022306.p?id=103937&skuId=1022306&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022306', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022306_sa.jpg\"}', 'upc' => '021471140323', 'provider' => 'bestbuy'],\n ['name' => \"10 Minute Solution: Ultimate Boot Camp (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/10-minute-solution-ultimate-boot-camp-dvd/1022328.p?id=2087057&skuId=1022328&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022328', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022328_sa.jpg\"}', 'upc' => '013132158693', 'provider' => 'bestbuy'],\n ['name' => \"Battlestar Galactica (2004): Season Three (5 Disc) (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 37.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/battlestar-galactica-2004-season-three-5-disc-blu-ray-disc/1022364.p?id=2113311&skuId=1022364&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022364', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/en_US\\/images\\/musicmoviegame\\/\\/pdpimages\\/1022364.jpg\"}', 'upc' => '025192013065', 'provider' => 'bestbuy'],\n ['name' => \"Saturday Night Live: The Best of Will Ferrell, Vol. 3 (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/saturday-night-live-the-best-of-will-ferrell-vol-3-dvd/1022382.p?id=2113316&skuId=1022382&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022382', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022382.jpg\"}', 'upc' => '025192037993', 'provider' => 'bestbuy'],\n ['name' => \"Repo Men (Blu-ray Disc) (Unrated)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/repo-men-blu-ray-disc-unrated/1022406.p?id=2114251&skuId=1022406&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022406', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022406_sa.jpg\"}', 'upc' => '025195052184', 'provider' => 'bestbuy'],\n ['name' => \"Max Headroom: The Complete Series [5 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 44.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/max-headroom-the-complete-series-5-discs-dvd/1022424.p?id=2112645&skuId=1022424&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022424', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022424_sa.jpg\"}', 'upc' => '826663120325', 'provider' => 'bestbuy'],\n ['name' => \"Big Money Rustlas (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-money-rustlas-dvd/1022433.p?id=2116242&skuId=1022433&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022433', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022433_sa.jpg\"}', 'upc' => '756504410592', 'provider' => 'bestbuy'],\n ['name' => \"Piranha (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/piranha-blu-ray-disc/1022442.p?id=23873&skuId=1022442&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022442', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022442_sa.jpg\"}', 'upc' => '826663116830', 'provider' => 'bestbuy'],\n ['name' => \"Letters to God (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/letters-to-god-dvd/1022451.p?id=2116241&skuId=1022451&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022451', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022451_sa.jpg\"}', 'upc' => '883476027661', 'provider' => 'bestbuy'],\n ['name' => \"Ann Hampton Callaway - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ann-hampton-callaway-cd/1022459.p?id=76620&skuId=1022459&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022459', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022459.jpg\"}', 'upc' => '021471141122', 'provider' => 'bestbuy'],\n ['name' => \"Return of the 5 Deadly Venoms (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/return-of-the-5-deadly-venoms-dvd/1022479.p?id=60798&skuId=1022479&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022479', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022479_sa.jpg\"}', 'upc' => '883476028200', 'provider' => 'bestbuy'],\n ['name' => \"Previously Unavailable - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/previously-unavailable-cd/1022486.p?id=82882&skuId=1022486&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022486', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022486.jpg\"}', 'upc' => '021471521023', 'provider' => 'bestbuy'],\n ['name' => \"Piranha (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/piranha-dvd/1022488.p?id=23873&skuId=1022488&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022488', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022488_sa.jpg\"}', 'upc' => '826663116823', 'provider' => 'bestbuy'],\n ['name' => \"Best Of Raw: Seasons 1 & 2 (3 Disc) (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-raw-seasons-1-2-3-disc-dvd/1022497.p?id=2116257&skuId=1022497&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022497', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022497.jpg\"}', 'upc' => '651191948499', 'provider' => 'bestbuy'],\n ['name' => \"Falsettoland - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/falsettoland-cd-original-soundtrack/1022510.p?id=2182684&skuId=1022510&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022510', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022510_sa.jpg\"}', 'upc' => '021471260120', 'provider' => 'bestbuy'],\n ['name' => \"An Angel at My Table [Original Soundtrack] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/an-angel-at-my-table-original-soundtrack-cd-original-soundtrack/1022556.p?id=72921&skuId=1022556&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022556', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022556.jpg\"}', 'upc' => '021471260328', 'provider' => 'bestbuy'],\n ['name' => \"Blue Giant [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-giant-digipak-cd/1022646.p?id=2119707&skuId=1022646&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022646', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022646_sa.jpg\"}', 'upc' => '015707807722', 'provider' => 'bestbuy'],\n ['name' => \"A Star-Crossed Wasteland - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-star-crossed-wasteland-cd/1022655.p?id=2119708&skuId=1022655&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022655', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022655_sa.jpg\"}', 'upc' => '727701872322', 'provider' => 'bestbuy'],\n ['name' => \"Fables of the Reconstruction [25th... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fables-of-the-reconstruction-25th-cd/1022664.p?id=2119709&skuId=1022664&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022664', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022664.jpg\"}', 'upc' => '5099964607122', 'provider' => 'bestbuy'],\n ['name' => \"Best of the Vanguard Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/best-of-the-vanguard-years-cd/1022673.p?id=194295&skuId=1022673&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022673', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1126\\/11262992.jpg\"}', 'upc' => '015707957328', 'provider' => 'bestbuy'],\n ['name' => \"Snoop Dogg Presents: My No. 1 Priority [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/snoop-dogg-presents-my-no-1-priority-pa-cd/1022691.p?id=2121534&skuId=1022691&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022691', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022691_sa.jpg\"}', 'upc' => '5099964688022', 'provider' => 'bestbuy'],\n ['name' => \"Meet Me In St. Louis - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/meet-me-in-st-louis-cd-original-soundtrack/1022725.p?id=91327&skuId=1022725&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022725', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022725_sa.jpg\"}', 'upc' => '021471900224', 'provider' => 'bestbuy'],\n ['name' => \"The Panic Broadcast [CD & DVD] [Digipak] - CD - DVD (with Bonus Tracks) Deluxe Edition\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-panic-broadcast-cd-dvd-digipak-cd-dvd-with-bonus-tracks-deluxe-edition/1022737.p?id=2119712&skuId=1022737&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022737', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022737.jpg\"}', 'upc' => '727361261023', 'provider' => 'bestbuy'],\n ['name' => \"The Panic Broadcast - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-panic-broadcast-cd/1022746.p?id=2119713&skuId=1022746&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022746', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022746_sa.jpg\"}', 'upc' => '727361225629', 'provider' => 'bestbuy'],\n ['name' => \"The War Report 2: Before the War [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-war-report-2-before-the-war-pa-cd/1022755.p?id=2119714&skuId=1022755&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022755', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022755.jpg\"}', 'upc' => '5099964280226', 'provider' => 'bestbuy'],\n ['name' => \"The House You're Building - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-house-youre-building-cd/1022791.p?id=2119716&skuId=1022791&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022791', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022791_sa.jpg\"}', 'upc' => '5099945707520', 'provider' => 'bestbuy'],\n ['name' => \"Vanguard Visionaries - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vanguard-visionaries-cd/1022837.p?id=1638703&skuId=1022837&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022837', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1560\\/15602448.jpg\"}', 'upc' => '015707315326', 'provider' => 'bestbuy'],\n ['name' => \"Tha Last Meal [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tha-last-meal-pa-cd/1022846.p?id=2121533&skuId=1022846&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022846', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022846_sa.jpg\"}', 'upc' => '5099964263625', 'provider' => 'bestbuy'],\n ['name' => \"Vanguard Visionaries - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vanguard-visionaries-cd/1022855.p?id=1638889&skuId=1022855&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022855', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022855_sa.jpg\"}', 'upc' => '015707316927', 'provider' => 'bestbuy'],\n ['name' => \"Fables of the Reconstruction [LP] - VINYL\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 22.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fables-of-the-reconstruction-lp-vinyl/1022891.p?id=2119719&skuId=1022891&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022891', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022891.jpg\"}', 'upc' => '5099964607115', 'provider' => 'bestbuy'],\n ['name' => \"I Am the West [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-am-the-west-pa-cd/1022946.p?id=2115864&skuId=1022946&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022946', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022946_sa.jpg\"}', 'upc' => '5099964188225', 'provider' => 'bestbuy'],\n ['name' => \"Unchained Melodies - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/unchained-melodies-cd/1022994.p?id=72629&skuId=1022994&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1022994', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1022\\/1022994.jpg\"}', 'upc' => '021471521429', 'provider' => 'bestbuy'],\n ['name' => \"Snoopy [Original Cast] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/snoopy-original-cast-cd-original-soundtrack/1023118.p?id=99337&skuId=1023118&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023118', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023118.jpg\"}', 'upc' => '021471610321', 'provider' => 'bestbuy'],\n ['name' => \"Seesaw [Original Cast Recording] - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/seesaw-original-cast-recording-cd-original-cast-recording/1023145.p?id=98287&skuId=1023145&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023145', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023145_sa.jpg\"}', 'upc' => '021471610826', 'provider' => 'bestbuy'],\n ['name' => \"Don't Mess with a Big Band: Live! [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dont-mess-with-a-big-band-live-digipak-cd/1023169.p?id=2115474&skuId=1023169&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023169', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023169_sa.jpg\"}', 'upc' => '640424999582', 'provider' => 'bestbuy'],\n ['name' => \"Korn III: Remember Who You Are [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => 7.99, 'url' => 'http://www.bestbuy.com/site/korn-iii-remember-who-you-are-pa-cd/1023187.p?id=2116170&skuId=1023187&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023187', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023187_sa.jpg\"}', 'upc' => '016861775728', 'provider' => 'bestbuy'],\n ['name' => \"Fixed at Zero - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fixed-at-zero-cd/1023196.p?id=2110842&skuId=1023196&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023196', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023196_sa.jpg\"}', 'upc' => '075678941436', 'provider' => 'bestbuy'],\n ['name' => \"They'll Only Miss You When You Leave: Songs... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/theyll-only-miss-you-when-you-leave-songs-cd/1023202.p?id=2119194&skuId=1023202&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023202', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023202_sa.jpg\"}', 'upc' => '098787301526', 'provider' => 'bestbuy'],\n ['name' => \"At Vine St. Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-vine-st-live-cd/1023234.p?id=69663&skuId=1023234&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023234', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023234_sa.jpg\"}', 'upc' => '021471843521', 'provider' => 'bestbuy'],\n ['name' => \"Serotonin - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/serotonin-cd/1023239.p?id=2115457&skuId=1023239&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023239', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023239_sa.jpg\"}', 'upc' => '883870055123', 'provider' => 'bestbuy'],\n ['name' => \"Happy Hour: The South River Road Sessions - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/happy-hour-the-south-river-road-sessions-cd/1023257.p?id=2115841&skuId=1023257&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023257', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023257_sa.jpg\"}', 'upc' => '075678924637', 'provider' => 'bestbuy'],\n ['name' => \"March of the Falsettos [Original Cast] - CD - Original Cast Recording\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/march-of-the-falsettos-original-cast-cd-original-cast-recording/1023261.p?id=90514&skuId=1023261&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023261', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023261.jpg\"}', 'upc' => '021471258127', 'provider' => 'bestbuy'],\n ['name' => \"Foul Deeds [CD & DVD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/foul-deeds-cd-dvd-cd/1023266.p?id=2108752&skuId=1023266&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023266', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1857\\/18577846.jpg\"}', 'upc' => '093624965374', 'provider' => 'bestbuy'],\n ['name' => \"Still Learning - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/still-learning-cd/1023275.p?id=2119197&skuId=1023275&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023275', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023275_sa.jpg\"}', 'upc' => '732351106529', 'provider' => 'bestbuy'],\n ['name' => \"Blessed & Cursed - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blessed-cursed-cd/1023284.p?id=2114054&skuId=1023284&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023284', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023284_sa.jpg\"}', 'upc' => '014998418624', 'provider' => 'bestbuy'],\n ['name' => \"Local Customs: Lone Star Lowlands - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/local-customs-lone-star-lowlands-cd-various/1023318.p?id=2115492&skuId=1023318&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023318', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023318.jpg\"}', 'upc' => '825764103428', 'provider' => 'bestbuy'],\n ['name' => \"Korn III: Remember... [CD & DVD] [PA] [Digipak] - CD - DVD Special\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/korn-iii-remember-cd-dvd-pa-digipak-cd-dvd-special/1023327.p?id=2116176&skuId=1023327&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023327', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023327.jpg\"}', 'upc' => '016861775759', 'provider' => 'bestbuy'],\n ['name' => \"Libraries [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/libraries-digipak-cd/1023336.p?id=2115482&skuId=1023336&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023336', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023336_sa.jpg\"}', 'upc' => '673855036625', 'provider' => 'bestbuy'],\n ['name' => \"DJ Hero 2 - PlayStation 3\", 'description_short' => \"Take it to the turntable and become the greatest mix master to ever fill the dance floors\", 'description_long' => \"Take it to the turntable and become the greatest mix master to ever fill the dance floors\", 'price' => 29.99, 'sale_price' => 3.99, 'url' => 'http://www.bestbuy.com/site/dj-hero-2-playstation-3/1023363.p?id=1218209984539&skuId=1023363&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023363', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023363_500x500_sa.jpg\"}', 'upc' => '047875962354', 'provider' => 'bestbuy'],\n ['name' => \"Forbidden Broadway 2 - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/forbidden-broadway-2-cd-original-soundtrack/1023378.p?id=2126321&skuId=1023378&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023378', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023378.jpg\"}', 'upc' => '021471259926', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 56.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023441.p?id=1218251720654&skuId=1023441&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023441', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010234417', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 99.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023478.p?id=1218252576009&skuId=1023478&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023478', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010234783', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 119.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023487.p?id=1218252599107&skuId=1023487&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023487', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010234875', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 139.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023496.p?id=1218252649618&skuId=1023496&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023496', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010234967', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 159.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023502.p?id=1218252586260&skuId=1023502&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023502', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010235025', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 189.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023539.p?id=1218252578650&skuId=1023539&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023539', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010235391', 'provider' => 'bestbuy'],\n ['name' => \"Peter Rowan - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/peter-rowan-cd/1023573.p?id=97426&skuId=1023573&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023573', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023573_sa.jpg\"}', 'upc' => '018964007126', 'provider' => 'bestbuy'],\n ['name' => \"Rock Band 3 - Nintendo DS\", 'description_short' => \"The band has never been bigger\", 'description_long' => \"The band has never been bigger\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rock-band-3-nintendo-ds/1023709.p?id=1218209983309&skuId=1023709', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023709', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023709_sa.jpg\"}', 'upc' => '014633195224', 'provider' => 'bestbuy'],\n ['name' => \"Hillbilly Jazz - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hillbilly-jazz-cd-various/1023733.p?id=85395&skuId=1023733&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023733', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1023\\/1023733_sa.jpg\"}', 'upc' => '018964010126', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 219.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023845.p?id=1218252644005&skuId=1023845&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023845', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010238453', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 249.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023854.p?id=1218252643398&skuId=1023854&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023854', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010238545', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 279.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023863.p?id=1218252613905&skuId=1023863&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023863', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010238637', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 309.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023872.p?id=1218252581613&skuId=1023872&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023872', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010238729', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 349.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023881.p?id=1218252577520&skuId=1023881&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023881', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010238811', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 449.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023909.p?id=1218252640317&skuId=1023909&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023909', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010239092', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 499.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023936.p?id=1218252643841&skuId=1023936&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023936', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010239368', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 569.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023945.p?id=1218252607144&skuId=1023945&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023945', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010239450', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 599.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1023954.p?id=1218252639855&skuId=1023954&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1023954', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010239542', 'provider' => 'bestbuy'],\n ['name' => \"Jesus and Johnny Cash - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jesus-and-johnny-cash-cd/1024089.p?id=2120631&skuId=1024089&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024089', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1024\\/1024089_sa.jpg\"}', 'upc' => '602257504425', 'provider' => 'bestbuy'],\n ['name' => \"Gringo Kings - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gringo-kings-cd/1024098.p?id=2120632&skuId=1024098&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024098', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1024\\/1024098_sa.jpg\"}', 'upc' => '602257504326', 'provider' => 'bestbuy'],\n ['name' => \"The Fields of November/Old and New - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-fields-of-november-old-and-new-cd/1024313.p?id=74962&skuId=1024313&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024313', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1024\\/1024313_sa.jpg\"}', 'upc' => '018964000424', 'provider' => 'bestbuy'],\n ['name' => \"Robin Hood (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/robin-hood-blu-ray-disc/1024317.p?id=24169&skuId=1024317&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024317', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1024\\/1024317.jpg\"}', 'upc' => '786936834710', 'provider' => 'bestbuy'],\n ['name' => \"Mark Twang - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mark-twang-cd/1024377.p?id=84931&skuId=1024377&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024377', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1024\\/1024377_sa.jpg\"}', 'upc' => '018964002022', 'provider' => 'bestbuy'],\n ['name' => \"Nobody Knows What You Do - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nobody-knows-what-you-do-cd/1024395.p?id=84933&skuId=1024395&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024395', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1024\\/1024395_sa.jpg\"}', 'upc' => '018964002824', 'provider' => 'bestbuy'],\n ['name' => \"Fly Through the Country/When the Storm Is Over - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fly-through-the-country-when-the-storm-is-over-cd/1024439.p?id=93141&skuId=1024439&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024439', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1024\\/1024439_sa.jpg\"}', 'upc' => '018964003227', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 56.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1024556.p?id=1218252613280&skuId=1024556&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024556', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010245567', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 99.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1024565.p?id=1218252604761&skuId=1024565&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024565', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010245659', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 119.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1024574.p?id=1218252598775&skuId=1024574&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024574', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010245741', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 139.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-protection-plan-geek-squad/1024583.p?id=1218252574552&skuId=1024583&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024583', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010245833', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Standard Protection Plan ? Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 159.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-standard-protection-plan--geek-squad/1024592.p?id=1218252636599&skuId=1024592&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024592', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010245925', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Standard Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 189.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-standard-protection-plan-geek-squad/1024608.p?id=1218252584695&skuId=1024608&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024608', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010246083', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Standard Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 219.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-standard-protection-plan-geek-squad/1024617.p?id=1218252617865&skuId=1024617&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024617', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010246175', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Standard Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 249.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-standard-protection-plan-geek-squad/1024626.p?id=1218252643950&skuId=1024626&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024626', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010246267', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Standard Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 279.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-standard-protection-plan-geek-squad/1024635.p?id=1218252593623&skuId=1024635&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024635', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010246359', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Standard Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 309.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-standard-protection-plan-geek-squad/1024644.p?id=1218252605812&skuId=1024644&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024644', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010246441', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Standard Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 349.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-standard-protection-plan-geek-squad/1024653.p?id=1218252583974&skuId=1024653&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024653', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010246533', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Standard Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 449.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-standard-protection-plan-geek-squad/1024662.p?id=1218252627045&skuId=1024662&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024662', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010246625', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Standard Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 499.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-standard-protection-plan-geek-squad/1024671.p?id=1218252648790&skuId=1024671&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024671', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010246717', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Standard Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 569.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-standard-protection-plan-geek-squad/1024699.p?id=1218252638707&skuId=1024699&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024699', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010246991', 'provider' => 'bestbuy'],\n ['name' => \"5-Year Standard Protection Plan - Geek Squad\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 599.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-year-standard-protection-plan-geek-squad/1024708.p?id=1218252655527&skuId=1024708&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1024708', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010247080', 'provider' => 'bestbuy'],\n ['name' => \"All Dogs Go to Heaven 1 & 2 (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-dogs-go-to-heaven-1-2-dvd/1025003.p?id=3288761&skuId=1025003&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025003', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025003_sa.jpg\"}', 'upc' => '883904323099', 'provider' => 'bestbuy'],\n ['name' => \"The Very Best of Tom Paxton - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-very-best-of-tom-paxton-cd/1025054.p?id=94560&skuId=1025054&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025054', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025054.jpg\"}', 'upc' => '018964051921', 'provider' => 'bestbuy'],\n ['name' => \"Live Pa, #12: Live @ the DC Star 4/17/10 [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-pa-12-live--the-dc-star-4-17-10-pa-cd/1025219.p?id=2117825&skuId=1025219&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025219', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025219_sa.jpg\"}', 'upc' => '742951301224', 'provider' => 'bestbuy'],\n ['name' => \"Voices on Lockdown [PA] [Digipak] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/voices-on-lockdown-pa-digipak-cd-various/1025325.p?id=2123255&skuId=1025325&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025325', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025325.jpg\"}', 'upc' => '094922306654', 'provider' => 'bestbuy'],\n ['name' => \"The Workhorse 3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-workhorse-3-cd/1025334.p?id=3232193&skuId=1025334&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025334', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025334_sa.jpg\"}', 'upc' => '801927104020', 'provider' => 'bestbuy'],\n ['name' => \"Elvisgrass [Digipak] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/elvisgrass-digipak-cd-various/1025343.p?id=1630452&skuId=1025343&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025343', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025343_sa.jpg\"}', 'upc' => '874757004327', 'provider' => 'bestbuy'],\n ['name' => \"Last (Bonus Dvd) (Remastered) (Remix) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/last-bonus-dvd-remastered-remix-cd/1025352.p?id=2860198&skuId=1025352&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025352', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025352.jpg\"}', 'upc' => '801927103924', 'provider' => 'bestbuy'],\n ['name' => \"Cashgrass [Digipak] - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cashgrass-digipak-various-cd/1025389.p?id=1630449&skuId=1025389&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025389', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025389_sa.jpg\"}', 'upc' => '874757006123', 'provider' => 'bestbuy'],\n ['name' => \"Dwarves Must Die [Redux] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dwarves-must-die-redux-cd/1025398.p?id=2126702&skuId=1025398&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025398', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025398_sa.jpg\"}', 'upc' => '760137502623', 'provider' => 'bestbuy'],\n ['name' => \"Sinister Whisperz: 1 Wax Trax Years - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sinister-whisperz-1-wax-trax-years-cd/1025412.p?id=2123786&skuId=1025412&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025412', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025412_sa.jpg\"}', 'upc' => '4250137221403', 'provider' => 'bestbuy'],\n ['name' => \"Chapter Two - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chapter-two-cd/1025421.p?id=2121185&skuId=1025421&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025421', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025421_sa.jpg\"}', 'upc' => '801927104129', 'provider' => 'bestbuy'],\n ['name' => \"Zeppelingrass [Digipak] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/zeppelingrass-digipak-cd-various/1025449.p?id=2121519&skuId=1025449&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025449', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025449_sa.jpg\"}', 'upc' => '874757011523', 'provider' => 'bestbuy'],\n ['name' => \"What It Is - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/what-it-is-cd/1025458.p?id=2121520&skuId=1025458&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025458', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025458_sa.jpg\"}', 'upc' => '884502041019', 'provider' => 'bestbuy'],\n ['name' => \"National Lampoon's Vacation (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => 11.99, 'url' => 'http://www.bestbuy.com/site/national-lampoons-vacation-blu-ray-disc/1025467.p?id=23499&skuId=1025467&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025467', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025467.jpg\"}', 'upc' => '883929130917', 'provider' => 'bestbuy'],\n ['name' => \"Gossip Girl: The Complete Third Season [5 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gossip-girl-the-complete-third-season-5-discs-dvd/1025485.p?id=2123477&skuId=1025485&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025485', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025485.jpg\"}', 'upc' => '883929101702', 'provider' => 'bestbuy'],\n ['name' => \"What's Up, Doc? (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/whats-up-doc-blu-ray-disc/1025494.p?id=53967&skuId=1025494&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025494', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025494_sa.jpg\"}', 'upc' => '883929115877', 'provider' => 'bestbuy'],\n ['name' => \"Titan Maximum: Season 1 (Mini Comic Book) (W/Book) (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/titan-maximum-season-1-mini-comic-book-w-book-dvd/1025519.p?id=2105273&skuId=1025519&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025519', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025519.jpg\"}', 'upc' => '883929103485', 'provider' => 'bestbuy'],\n ['name' => \"Courage The Cowardly Dog: Season One (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/courage-the-cowardly-dog-season-one-dvd/1025537.p?id=2104685&skuId=1025537&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025537', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025537.jpg\"}', 'upc' => '883929108596', 'provider' => 'bestbuy'],\n ['name' => \"Naruto: Shippuden - Box Set 3 [3 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 29.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/naruto-shippuden-box-set-3-3-discs-dvd/1025555.p?id=2103257&skuId=1025555&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025555', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025555_sa.jpg\"}', 'upc' => '782009241041', 'provider' => 'bestbuy'],\n ['name' => \"National Lampoon's European Vacation (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/national-lampoons-european-vacation-blu-ray-disc/1025564.p?id=23498&skuId=1025564&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025564', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025564.jpg\"}', 'upc' => '883929116126', 'provider' => 'bestbuy'],\n ['name' => \"Elvis Blu-ray Collection: Jailhouse Rock/Viva Las Vegas/Elvis on Tour [3 Discs] (Blu-ray Disc) (Collector's Edition)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 42.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/elvis-blu-ray-collection-jailhouse-rock-viva-las-vegas-elvis-on-tour-3-discs-blu-ray-disc-collectors-edition/1025573.p?id=2106469&skuId=1025573&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025573', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025573_sa.jpg\"}', 'upc' => '883929121045', 'provider' => 'bestbuy'],\n ['name' => \"Temple Grandin (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/temple-grandin-dvd/1025582.p?id=2103658&skuId=1025582&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025582', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025582_sa.jpg\"}', 'upc' => '883929131716', 'provider' => 'bestbuy'],\n ['name' => \"Maid\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/maid/1025607.p?id=2100451&skuId=1025607&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1025607', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1025\\/1025607_sa.jpg\"}', 'upc' => '896602002210', 'provider' => 'bestbuy'],\n ['name' => \"Harlem Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/harlem-blues-cd/1026473.p?id=97922&skuId=1026473&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1026473', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1026\\/1026473_sa.jpg\"}', 'upc' => '018964056728', 'provider' => 'bestbuy'],\n ['name' => \"Niles - Remote Control Anywhere! Kit\", 'description_short' => \"From our expanded online assortment; includes 1 MS220 surface-mount IR sensor, 1 MSU140 IR main system unit and 3 MF1 MicroFlashers; universal noise suppression technology\", 'description_long' => \"From our expanded online assortment; includes 1 MS220 surface-mount IR sensor, 1 MSU140 IR main system unit and 3 MF1 MicroFlashers; universal noise suppression technology\", 'price' => 279.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/niles-remote-control-anywhere-kit/1027599.p?id=1218245857316&skuId=1027599&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1027599', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1027\\/1027599_sa.jpg\"}', 'upc' => '760514015852', 'provider' => 'bestbuy'],\n ['name' => \"Elite Screens - Tripod Series 85\\\" Tripod Projector Screen - Black\", 'description_short' => \"60&quot;H x 60&quot;W viewing area; 1:1 aspect ratio; built-in keystone eliminator; black masking borders; MaxWhite 1.1-gain screen material; metal casing; freestanding design\", 'description_long' => \"60&quot;H x 60&quot;W viewing area; 1:1 aspect ratio; built-in keystone eliminator; black masking borders; MaxWhite 1.1-gain screen material; metal casing; freestanding design\", 'price' => 114.99, 'sale_price' => 90.99, 'url' => 'http://www.bestbuy.com/site/elite-screens-tripod-series-85-tripod-projector-screen-black/1027714.p?id=1218210319041&skuId=1027714&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1027714', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1027\\/1027714_sa.jpg\"}', 'upc' => '876818003225', 'provider' => 'bestbuy'],\n ['name' => \"For the Good of Man-CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 17.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-the-good-of-man-cd/1028827.p?id=2387944&skuId=1028827&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1028827', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1028\\/1028827_sa.jpg\"}', 'upc' => '011661754225', 'provider' => 'bestbuy'],\n ['name' => \"Talk About Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 3.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/talk-about-love-cd/1028890.p?id=1577480&skuId=1028890&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1028890', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1028\\/1028890.jpg\"}', 'upc' => '011661759121', 'provider' => 'bestbuy'],\n ['name' => \"Hard Works from the Observer All Stars - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hard-works-from-the-observer-all-stars-various-cd/1028934.p?id=1577001&skuId=1028934&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1028934', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1028\\/1028934.jpg\"}', 'upc' => '011661759428', 'provider' => 'bestbuy'],\n ['name' => \"Love Is Overdue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-is-overdue-cd/1028989.p?id=86362&skuId=1028989&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1028989', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1028\\/1028989_sa.jpg\"}', 'upc' => '011661759824', 'provider' => 'bestbuy'],\n ['name' => \"Grapes on a Vine (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/grapes-on-a-vine-dvd/1029181.p?id=2126750&skuId=1029181&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029181', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029181_sa.jpg\"}', 'upc' => '853476002197', 'provider' => 'bestbuy'],\n ['name' => \"Chief - Medium FIT Fixed TV Wall Mount for Most 26\\\" - 42\\\" Flat-Panel TVs - Black\", 'description_short' => \"CHIEF Medium FIT Fixed Wall Mount for Most 26&quot; - 42&quot; Flat-Panel TVs: Compatible with most 26&quot; - 42&quot; flat-panel TVs up to 125 lbs.; open wall plate; GlideLock with kickstand; low-profile depth\", 'description_long' => \"CHIEF Medium FIT Fixed Wall Mount for Most 26&quot; - 42&quot; Flat-Panel TVs: Compatible with most 26&quot; - 42&quot; flat-panel TVs up to 125 lbs.; open wall plate; GlideLock with kickstand; low-profile depth\", 'price' => 64.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chief-medium-fit-fixed-tv-wall-mount-for-most-26-42-flat-panel-tvs-black/1029367.p?id=1219045600419&skuId=1029367', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029367', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029367_sa.jpg\"}', 'upc' => '841872141077', 'provider' => 'bestbuy'],\n ['name' => \"Culture in Culture - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/culture-in-culture-cd/1029764.p?id=79440&skuId=1029764&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029764', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029764_sa.jpg\"}', 'upc' => '011661756724', 'provider' => 'bestbuy'],\n ['name' => \"Chloe (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chloe-blu-ray-disc/1029776.p?id=2116089&skuId=1029776&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029776', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029776_sa.jpg\"}', 'upc' => '043396354005', 'provider' => 'bestbuy'],\n ['name' => \"The Runaways (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-runaways-blu-ray-disc/1029785.p?id=2118259&skuId=1029785&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029785', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029785_sa.jpg\"}', 'upc' => '043396355194', 'provider' => 'bestbuy'],\n ['name' => \"My Boys: The Complete Second and Third Seasons [2 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-boys-the-complete-second-and-third-seasons-2-discs-dvd/1029794.p?id=2112643&skuId=1029794&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029794', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029794_sa.jpg\"}', 'upc' => '043396299078', 'provider' => 'bestbuy'],\n ['name' => \"A Prophet (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-prophet-blu-ray-disc/1029803.p?id=2118261&skuId=1029803&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029803', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029803_sa.jpg\"}', 'upc' => '043396355989', 'provider' => 'bestbuy'],\n ['name' => \"The Bounty Hunter (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-bounty-hunter-dvd/1029812.p?id=2112641&skuId=1029812&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029812', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029812_sa.jpg\"}', 'upc' => '043396350403', 'provider' => 'bestbuy'],\n ['name' => \"A Single Man (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-single-man-blu-ray-disc/1029821.p?id=2110331&skuId=1029821&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029821', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029821_sa.jpg\"}', 'upc' => '043396353862', 'provider' => 'bestbuy'],\n ['name' => \"Chloe (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chloe-dvd/1029849.p?id=2116089&skuId=1029849&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029849', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029849_sa.jpg\"}', 'upc' => '043396350311', 'provider' => 'bestbuy'],\n ['name' => \"Jesse Stone: No Remorse (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jesse-stone-no-remorse-dvd/1029858.p?id=2113996&skuId=1029858&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029858', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029858_sa.jpg\"}', 'upc' => '043396354722', 'provider' => 'bestbuy'],\n ['name' => \"A Single Man (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-single-man-dvd/1029867.p?id=2110331&skuId=1029867&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029867', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029867_sa.jpg\"}', 'upc' => '043396353831', 'provider' => 'bestbuy'],\n ['name' => \"To Save a Life (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/to-save-a-life-dvd/1029876.p?id=2116091&skuId=1029876&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029876', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029876_sa.jpg\"}', 'upc' => '043396354456', 'provider' => 'bestbuy'],\n ['name' => \"Death at a Funeral (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/death-at-a-funeral-dvd/1029885.p?id=2123462&skuId=1029885&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029885', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029885_sa.jpg\"}', 'upc' => '043396350281', 'provider' => 'bestbuy'],\n ['name' => \"A Prophet (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-prophet-dvd/1029903.p?id=2118261&skuId=1029903&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029903', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029903_sa.jpg\"}', 'upc' => '043396343566', 'provider' => 'bestbuy'],\n ['name' => \"The Bounty Hunter (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-bounty-hunter-blu-ray-disc/1029912.p?id=2112641&skuId=1029912&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029912', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029912_sa.jpg\"}', 'upc' => '043396350397', 'provider' => 'bestbuy'],\n ['name' => \"To Save a Life (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/to-save-a-life-blu-ray-disc/1029921.p?id=2116091&skuId=1029921&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029921', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029921_sa.jpg\"}', 'upc' => '043396357020', 'provider' => 'bestbuy'],\n ['name' => \"Charlie's Angels (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/charlies-angels-blu-ray-disc/1029949.p?id=36159&skuId=1029949&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1029949', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1029\\/1029949_sa.jpg\"}', 'upc' => '043396229945', 'provider' => 'bestbuy'],\n ['name' => \"Audio-Technica - PRO 70 Cardioid Condenser Lavalier/Instrument Microphone\", 'description_short' => \"From our expanded online assortment; low frequency roll-off; corrosion-resistant contacts; cardioid polar pattern\", 'description_long' => \"From our expanded online assortment; low frequency roll-off; corrosion-resistant contacts; cardioid polar pattern\", 'price' => 149.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/audio-technica-pro-70-cardioid-condenser-lavalier-instrument-microphone/1031353.p?id=1218211288482&skuId=1031353', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031353', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031353_sa.jpg\"}', 'upc' => '042005134342', 'provider' => 'bestbuy'],\n ['name' => \"Audio-Technica - Microphone\", 'description_short' => \"20 Hz to 20 kHz - Wired - Condenser - Handheld - XLR\", 'description_long' => \"20 Hz to 20 kHz - Wired - Condenser - Handheld - XLR\", 'price' => 299.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/audio-technica-microphone/1031371.p?id=1218211289606&skuId=1031371', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031371', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031371_sa.jpg\"}', 'upc' => '042005127955', 'provider' => 'bestbuy'],\n ['name' => \"Audio-Technica - PRO 8HEx Hypercardioid Dynamic Microphone\", 'description_short' => \"From our expanded online assortment; Hi-ENERGY neodymium element; headband with cushioned pads; pivot-mounted boom\", 'description_long' => \"From our expanded online assortment; Hi-ENERGY neodymium element; headband with cushioned pads; pivot-mounted boom\", 'price' => 119.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/audio-technica-pro-8hex-hypercardioid-dynamic-microphone/1031404.p?id=1218211291231&skuId=1031404', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031404', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031404_sa.jpg\"}', 'upc' => '042005305308', 'provider' => 'bestbuy'],\n ['name' => \"Audio-Technica - Microphone\", 'description_short' => \"30 Hz to 20 kHz - Wired - Condenser - Handheld - XLR\", 'description_long' => \"30 Hz to 20 kHz - Wired - Condenser - Handheld - XLR\", 'price' => 595.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/audio-technica-microphone/1031726.p?id=1218211288553&skuId=1031726', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031726', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031726_sa.jpg\"}', 'upc' => '042005128525', 'provider' => 'bestbuy'],\n ['name' => \"MP3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mp3-cd/1031817.p?id=2126400&skuId=1031817&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031817', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031817_sa.jpg\"}', 'upc' => '894096001962', 'provider' => 'bestbuy'],\n ['name' => \"Praise & Blame - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/praise-blame-cd/1031835.p?id=2137450&skuId=1031835&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031835', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031835_sa.jpg\"}', 'upc' => '602527449876', 'provider' => 'bestbuy'],\n ['name' => \"Silver and Ash [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/silver-and-ash-digipak-cd/1031844.p?id=2138383&skuId=1031844&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031844', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031844_sa.jpg\"}', 'upc' => '011661327825', 'provider' => 'bestbuy'],\n ['name' => \"Reckless - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reckless-cd/1031899.p?id=2134812&skuId=1031899&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031899', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031899_sa.jpg\"}', 'upc' => '011661062429', 'provider' => 'bestbuy'],\n ['name' => \"Live in Boston, 1982 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-in-boston-1982-cd/1031908.p?id=2117077&skuId=1031908&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031908', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031908_sa.jpg\"}', 'upc' => '011661328525', 'provider' => 'bestbuy'],\n ['name' => \"Drama Queen [CD & DVD] - CD - DVD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/drama-queen-cd-dvd-cd-dvd/1031917.p?id=2119277&skuId=1031917&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031917', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031917_sa.jpg\"}', 'upc' => '602527440316', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Rev. C.L. Franklin - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-rev-c-l-franklin-cd/1031935.p?id=2127461&skuId=1031935&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031935', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031935_sa.jpg\"}', 'upc' => '030206184228', 'provider' => 'bestbuy'],\n ['name' => \"Ringo Starr and His All Starr Band: Live at the Greek Theatre 2008 (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ringo-starr-and-his-all-starr-band-live-at-the-greek-theatre-2008-dvd/1031953.p?id=2124508&skuId=1031953&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031953', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031953_sa.jpg\"}', 'upc' => '602527443089', 'provider' => 'bestbuy'],\n ['name' => \"We Cats Can Hep YouCD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/we-cats-can-hep-youcd/1031962.p?id=2244507&skuId=1031962&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031962', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031962.jpg\"}', 'upc' => '030206184327', 'provider' => 'bestbuy'],\n ['name' => \"Live at the Greek Theatre 2008 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-the-greek-theatre-2008-cd/1031971.p?id=2124509&skuId=1031971&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031971', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031971_sa.jpg\"}', 'upc' => '602527442099', 'provider' => 'bestbuy'],\n ['name' => \"Vicente Fernandez: Un Mexicano en La Mexico (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vicente-fernandez-un-mexicano-en-la-mexico-dvd/1031999.p?id=2120633&skuId=1031999&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1031999', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1031\\/1031999_sa.jpg\"}', 'upc' => '886977306792', 'provider' => 'bestbuy'],\n ['name' => \"Nikon - AF-S NIKKOR 20mm f/1.8G ED Ultra Wide Angle Lens for Most Nikon F-Mount Cameras - Black\", 'description_short' => \"Compatible with most Nikon F-Mount cameras; 13 lens elements in 11 groups; Nano Crystal coating; 2 ED glass elements; 2 aspherical elements\", 'description_long' => \"Compatible with most Nikon F-Mount cameras; 13 lens elements in 11 groups; Nano Crystal coating; 2 ED glass elements; 2 aspherical elements\", 'price' => 799.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nikon-af-s-nikkor-20mm-f-1-8g-ed-ultra-wide-angle-lens-for-most-nikon-f-mount-cameras-black/1032001.p?id=1219460767310&skuId=1032001&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032001', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032001_sa.jpg\"}', 'upc' => '018208200511', 'provider' => 'bestbuy'],\n ['name' => \"Con Estilo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/con-estilo-cd/1032015.p?id=2120635&skuId=1032015&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032015', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032015_sa.jpg\"}', 'upc' => '886977267826', 'provider' => 'bestbuy'],\n ['name' => \"WTF + 4 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wtf-4-cd/1032033.p?id=2119232&skuId=1032033&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032033', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032033_sa.jpg\"}', 'upc' => '886977477522', 'provider' => 'bestbuy'],\n ['name' => \"PNY - GT 730 1GB DDR3 PCI Express 2.0 Graphics Card - Black\", 'description_short' => \"1GB DDR3 memory; PCI Express 2.0 interface; HDMI output; 400MHz clock speed; PhysX system software\", 'description_long' => \"1GB DDR3 memory; PCI Express 2.0 interface; HDMI output; 400MHz clock speed; PhysX system software\", 'price' => 59.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pny-gt-730-1gb-ddr3-pci-express-2-0-graphics-card-black/1032038.p?id=1219460773496&skuId=1032038&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032038', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032038_sa.jpg\"}', 'upc' => '751492578163', 'provider' => 'bestbuy'],\n ['name' => \"Gotta Have Gospel! Ultimate Choirs (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gotta-have-gospel-ultimate-choirs-dvd/1032042.p?id=2120636&skuId=1032042&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032042', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032042_sa.jpg\"}', 'upc' => '886977118890', 'provider' => 'bestbuy'],\n ['name' => \"Gotta Have Gospel! Ultimate Choirs - CD - Various Enhanced\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gotta-have-gospel-ultimate-choirs-cd-various-enhanced/1032097.p?id=2120638&skuId=1032097&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032097', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032097_sa.jpg\"}', 'upc' => '886976750626', 'provider' => 'bestbuy'],\n ['name' => \"Couldn't Stand the Weather [Legacy Edition] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/couldnt-stand-the-weather-legacy-edition-cd/1032103.p?id=2114429&skuId=1032103&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032103', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032103_sa.jpg\"}', 'upc' => '886975594320', 'provider' => 'bestbuy'],\n ['name' => \"Un Mexicano en la México - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/un-mexicano-en-la-mexico-cd/1032149.p?id=2120641&skuId=1032149&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032149', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032149_sa.jpg\"}', 'upc' => '886977305627', 'provider' => 'bestbuy'],\n ['name' => \"House of Pleasure - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/house-of-pleasure-cd/1032158.p?id=2123256&skuId=1032158&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032158', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032158_sa.jpg\"}', 'upc' => '654827020224', 'provider' => 'bestbuy'],\n ['name' => \"Imogen Heap: Everything In-Between - The Story of Ellipse (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/imogen-heap-everything-in-between-the-story-of-ellipse-dvd/1032167.p?id=2120642&skuId=1032167&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032167', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032167_sa.jpg\"}', 'upc' => '886977239298', 'provider' => 'bestbuy'],\n ['name' => \"Dell - 90W AC Power Adapter - Black\", 'description_short' => \"DELL 90W AC Power Adapter: Designed to power your Dell system; 90W power supply\", 'description_long' => \"DELL 90W AC Power Adapter: Designed to power your Dell system; 90W power supply\", 'price' => 65.99, 'sale_price' => 38.99, 'url' => 'http://www.bestbuy.com/site/dell-90w-ac-power-adapter-black/1032198.p?id=1219460756243&skuId=1032198&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032198', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032198_sa.jpg\"}', 'upc' => '884116022879', 'provider' => 'bestbuy'],\n ['name' => \"Chicago Sound - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chicago-sound-cd/1032224.p?id=71847&skuId=1032224&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032224', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032224_sa.jpg\"}', 'upc' => '025218173728', 'provider' => 'bestbuy'],\n ['name' => \"Kidz Bop 18 [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kidz-bop-18-digdownload-cd/1032228.p?id=2117256&skuId=1032228&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032228', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032228_sa.jpg\"}', 'upc' => '793018923422', 'provider' => 'bestbuy'],\n ['name' => \"Man Bites Harmonica - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/man-bites-harmonica-cd/1032233.p?id=71386&skuId=1032233&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032233', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032233_sa.jpg\"}', 'upc' => '025218173827', 'provider' => 'bestbuy'],\n ['name' => \"Don't Say No [30th Anniversary Edition] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dont-say-no-30th-anniversary-edition-cd/1032237.p?id=2120645&skuId=1032237&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032237', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032237_sa.jpg\"}', 'upc' => '826663121056', 'provider' => 'bestbuy'],\n ['name' => \"Los Mejores Boleros - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/los-mejores-boleros-cd-various/1032246.p?id=2120646&skuId=1032246&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032246', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032246.jpg\"}', 'upc' => '883736044827', 'provider' => 'bestbuy'],\n ['name' => \"Moondog [Prestige] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moondog-prestige-cd/1032251.p?id=92187&skuId=1032251&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032251', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032251_sa.jpg\"}', 'upc' => '025218174121', 'provider' => 'bestbuy'],\n ['name' => \"Una Navidad A Mi Estilo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/una-navidad-a-mi-estilo-cd/1032255.p?id=2244531&skuId=1032255&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032255', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032255_sa.jpg\"}', 'upc' => '753182475448', 'provider' => 'bestbuy'],\n ['name' => \"Iron Man 2 (Score) - O.S.T. - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/iron-man-2-score-o-s-t-cd-original-soundtrack/1032264.p?id=2120647&skuId=1032264&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032264', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032264_sa.jpg\"}', 'upc' => '886977465420', 'provider' => 'bestbuy'],\n ['name' => \"The New Miles Davis Quintet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-new-miles-davis-quintet-cd/1032368.p?id=65574&skuId=1032368&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032368', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032368.jpg\"}', 'upc' => '025218110624', 'provider' => 'bestbuy'],\n ['name' => \"Need for Speed: Hot Pursuit - PlayStation 3\", 'description_short' => \"Switch into gear and feel the need &#8212; the Need for Speed\", 'description_long' => \"Switch into gear and feel the need &#8212; the Need for Speed\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/need-for-speed-hot-pursuit-playstation-3/1032403.p?id=1218211702103&skuId=1032403&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032403', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032403_sa.jpg\"}', 'upc' => '014633731644', 'provider' => 'bestbuy'],\n ['name' => \"Sonny Stitt/Bud Powell/J.J. Johnson - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sonny-stitt-bud-powell-j-j-johnson-cd/1032411.p?id=71164&skuId=1032411&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032411', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032411_sa.jpg\"}', 'upc' => '025218110921', 'provider' => 'bestbuy'],\n ['name' => \"Sonny Rollins with the Modern Jazz Quartet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sonny-rollins-with-the-modern-jazz-quartet-cd/1032457.p?id=70465&skuId=1032457&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032457', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032457_sa.jpg\"}', 'upc' => '025218111126', 'provider' => 'bestbuy'],\n ['name' => \"Miles Davis and Milt Jackson Quintet/Sextet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/miles-davis-and-milt-jackson-quintet-sextet-cd/1032466.p?id=65590&skuId=1032466&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032466', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032466.jpg\"}', 'upc' => '025218111225', 'provider' => 'bestbuy'],\n ['name' => \"After Hours - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/after-hours-cd/1032475.p?id=68083&skuId=1032475&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032475', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032475.jpg\"}', 'upc' => '025218178228', 'provider' => 'bestbuy'],\n ['name' => \"Andre Previn Plays Jerome Kern - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/andre-previn-plays-jerome-kern-cd/1032527.p?id=70146&skuId=1032527&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032527', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032527_sa.jpg\"}', 'upc' => '025218178723', 'provider' => 'bestbuy'],\n ['name' => \"Drums Around the World: Philly Joe Jones Big... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/drums-around-the-world-philly-joe-jones-big-cd/1032563.p?id=68063&skuId=1032563&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032563', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032563_sa.jpg\"}', 'upc' => '025218179225', 'provider' => 'bestbuy'],\n ['name' => \"Testifying - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/testifying-cd/1032572.p?id=72242&skuId=1032572&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032572', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032572_sa.jpg\"}', 'upc' => '025218179324', 'provider' => 'bestbuy'],\n ['name' => \"2-Year Geek Squad Protection Plan\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 59.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2-year-geek-squad-protection-plan/1032573.p?id=1218211703782&skuId=1032573&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032573', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{null}', 'upc' => '400010325733', 'provider' => 'bestbuy'],\n ['name' => \"2-Year Geek Squad Protection Plan\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 59.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2-year-geek-squad-protection-plan/1032582.p?id=1218211703665&skuId=1032582&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032582', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{null}', 'upc' => '400010325825', 'provider' => 'bestbuy'],\n ['name' => \"2-Year Geek Squad Protection Plan\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 59.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2-year-geek-squad-protection-plan/1032591.p?id=1218211703189&skuId=1032591&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032591', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{null}', 'upc' => '400010325917', 'provider' => 'bestbuy'],\n ['name' => \"The Modern Touch - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-modern-touch-cd/1032616.p?id=66736&skuId=1032616&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032616', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032616_sa.jpg\"}', 'upc' => '025218179720', 'provider' => 'bestbuy'],\n ['name' => \"2-Year Geek Squad Protection Plan\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 79.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2-year-geek-squad-protection-plan/1032707.p?id=1218211701627&skuId=1032707&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032707', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{null}', 'upc' => '400010327072', 'provider' => 'bestbuy'],\n ['name' => \"2-Year Geek Squad Protection Plan\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 99.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2-year-geek-squad-protection-plan/1032716.p?id=1218211702590&skuId=1032716&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032716', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{null}', 'upc' => '400010327164', 'provider' => 'bestbuy'],\n ['name' => \"2-Year Geek Squad Protection Plan\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2-year-geek-squad-protection-plan/1032725.p?id=1218211702653&skuId=1032725&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032725', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{null}', 'upc' => '400010327256', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hits-cd/1032732.p?id=63639&skuId=1032732&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032732', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032732_sa.jpg\"}', 'upc' => '025218600422', 'provider' => 'bestbuy'],\n ['name' => \"Standard Bearers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/standard-bearers-cd/1032830.p?id=64888&skuId=1032830&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032830', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032830_sa.jpg\"}', 'upc' => '025218601023', 'provider' => 'bestbuy'],\n ['name' => \"10 Great Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/10-great-songs-cd/1032843.p?id=2074818&skuId=1032843&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032843', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032843_sa.jpg\"}', 'upc' => '5099930944220', 'provider' => 'bestbuy'],\n ['name' => \"10 Great Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/10-great-songs-cd/1032861.p?id=2074817&skuId=1032861&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032861', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032861_sa.jpg\"}', 'upc' => '5099930945128', 'provider' => 'bestbuy'],\n ['name' => \"When There Are Grey Skies - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/when-there-are-grey-skies-cd/1032885.p?id=66521&skuId=1032885&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032885', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032885_sa.jpg\"}', 'upc' => '025218670425', 'provider' => 'bestbuy'],\n ['name' => \"10 Great Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/10-great-songs-cd/1032889.p?id=2074809&skuId=1032889&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032889', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032889_sa.jpg\"}', 'upc' => '5099930944022', 'provider' => 'bestbuy'],\n ['name' => \"10 Great Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/10-great-songs-cd/1032898.p?id=2074816&skuId=1032898&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032898', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032898_sa.jpg\"}', 'upc' => '5099930943520', 'provider' => 'bestbuy'],\n ['name' => \"Sonny's Dream (Birth of the New Cool) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sonnys-dream-birth-of-the-new-cool-cd/1032910.p?id=65371&skuId=1032910&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032910', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032910_sa.jpg\"}', 'upc' => '025218670722', 'provider' => 'bestbuy'],\n ['name' => \"10 Great Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/10-great-songs-cd/1032943.p?id=2074819&skuId=1032943&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032943', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032943_sa.jpg\"}', 'upc' => '5099930944428', 'provider' => 'bestbuy'],\n ['name' => \"We'll Be Together Again - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/well-be-together-again-cd/1032956.p?id=63700&skuId=1032956&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032956', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032956_sa.jpg\"}', 'upc' => '025218670821', 'provider' => 'bestbuy'],\n ['name' => \"Two for the Road - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-for-the-road-cd/1032983.p?id=69826&skuId=1032983&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032983', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032983.jpg\"}', 'upc' => '025218672627', 'provider' => 'bestbuy'],\n ['name' => \"10 Great Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/10-great-songs-cd/1032989.p?id=2074815&skuId=1032989&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032989', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032989_sa.jpg\"}', 'upc' => '5099930943421', 'provider' => 'bestbuy'],\n ['name' => \"Oscar Peterson & Roy Eldridge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/oscar-peterson-roy-eldridge-cd/1032992.p?id=287997&skuId=1032992&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032992', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032992_sa.jpg\"}', 'upc' => '025218672726', 'provider' => 'bestbuy'],\n ['name' => \"10 Great Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/10-great-songs-cd/1032998.p?id=2074808&skuId=1032998&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1032998', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1032\\/1032998_sa.jpg\"}', 'upc' => '5099930943629', 'provider' => 'bestbuy'],\n ['name' => \"The Louis Bellson Explosion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-louis-bellson-explosion-cd/1033009.p?id=64139&skuId=1033009&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033009', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033009_sa.jpg\"}', 'upc' => '025218672825', 'provider' => 'bestbuy'],\n ['name' => \"10 Great Songs - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/10-great-songs-cd/1033014.p?id=2074821&skuId=1033014&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033014', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033014_sa.jpg\"}', 'upc' => '5099930944923', 'provider' => 'bestbuy'],\n ['name' => \"The Intimate Ellington - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-intimate-ellington-cd/1033027.p?id=65993&skuId=1033027&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033027', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033027_sa.jpg\"}', 'upc' => '025218673020', 'provider' => 'bestbuy'],\n ['name' => \"Wahl - 20-Piece Pro Hair Cutting Kit - Blue/White/Black\", 'description_short' => \"One-touch operation; self-sharpening, high-carbon steel blades; 12 color-coded guide combs; ergonomic handle with a soft-touch grip\", 'description_long' => \"One-touch operation; self-sharpening, high-carbon steel blades; 12 color-coded guide combs; ergonomic handle with a soft-touch grip\", 'price' => 22.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wahl-20-piece-pro-hair-cutting-kit-blue-white-black/1033032.p?id=1218212156490&skuId=1033032&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033032', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033032_rc.jpg\"}', 'upc' => '043917793092', 'provider' => 'bestbuy'],\n ['name' => \"Gil's Guests - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gils-guests-cd/1033036.p?id=69040&skuId=1033036&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033036', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033036_sa.jpg\"}', 'upc' => '025218175326', 'provider' => 'bestbuy'],\n ['name' => \"Evidence - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/evidence-cd/1033054.p?id=68376&skuId=1033054&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033054', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033054_sa.jpg\"}', 'upc' => '025218175524', 'provider' => 'bestbuy'],\n ['name' => \"10 Great Songs [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/10-great-songs-pa-cd/1033069.p?id=2074820&skuId=1033069&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033069', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033069_sa.jpg\"}', 'upc' => '5099930944626', 'provider' => 'bestbuy'],\n ['name' => \"The Blues Piano Artistry of Meade Lux Lewis - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-blues-piano-artistry-of-meade-lux-lewis-cd/1033090.p?id=68543&skuId=1033090&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033090', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033090_sa.jpg\"}', 'upc' => '025218175920', 'provider' => 'bestbuy'],\n ['name' => \"Frigidaire - 6,000 BTU Window Air Conditioner - White\", 'description_short' => \"216 sq. ft. cooling capacity; electronic controls and remote; 3 cool settings; 3 fan speeds; antibacterial filter\", 'description_long' => \"216 sq. ft. cooling capacity; electronic controls and remote; 3 cool settings; 3 fan speeds; antibacterial filter\", 'price' => 229.99, 'sale_price' => 206.99, 'url' => 'http://www.bestbuy.com/site/frigidaire-6000-btu-window-air-conditioner-white/1033096.p?id=1218212155267&skuId=1033096&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033096', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033096_sa.jpg\"}', 'upc' => '012505273575', 'provider' => 'bestbuy'],\n ['name' => \"West Coast Jazz in Hi Fi - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/west-coast-jazz-in-hi-fi-cd/1033107.p?id=68128&skuId=1033107&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033107', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033107_sa.jpg\"}', 'upc' => '025218176026', 'provider' => 'bestbuy'],\n ['name' => \"Dizzy Atmosphere - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dizzy-atmosphere-cd/1033125.p?id=69398&skuId=1033125&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033125', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033125_sa.jpg\"}', 'upc' => '025218176224', 'provider' => 'bestbuy'],\n ['name' => \"Free for All - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/free-for-all-cd/1033134.p?id=70489&skuId=1033134&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033134', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033134_sa.jpg\"}', 'upc' => '025218176323', 'provider' => 'bestbuy'],\n ['name' => \"Golden Days - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/golden-days-cd/1033223.p?id=68235&skuId=1033223&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033223', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033223_sa.jpg\"}', 'upc' => '025218177221', 'provider' => 'bestbuy'],\n ['name' => \"Something Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/something-blue-cd/1033287.p?id=85711&skuId=1033287&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033287', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033287_sa.jpg\"}', 'upc' => '025218177825', 'provider' => 'bestbuy'],\n ['name' => \"More Moondog/The Story of Moondog - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/more-moondog-the-story-of-moondog-cd/1033312.p?id=92188&skuId=1033312&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033312', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033312_sa.jpg\"}', 'upc' => '025218178129', 'provider' => 'bestbuy'],\n ['name' => \"Soul Fusion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/soul-fusion-cd/1033321.p?id=67773&skuId=1033321&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033321', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033321.jpg\"}', 'upc' => '025218673129', 'provider' => 'bestbuy'],\n ['name' => \"A Note In Your Pocket - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-note-in-your-pocket-cd/1033402.p?id=2125936&skuId=1033402&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033402', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033402.jpg\"}', 'upc' => '093624965138', 'provider' => 'bestbuy'],\n ['name' => \"Wheelin' & Dealin' - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wheelin-dealin-cd/1033410.p?id=65187&skuId=1033410&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033410', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033410.jpg\"}', 'upc' => '025218667227', 'provider' => 'bestbuy'],\n ['name' => \"The Way Out - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-way-out-cd/1033411.p?id=2123259&skuId=1033411&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033411', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033411_sa.jpg\"}', 'upc' => '656605318325', 'provider' => 'bestbuy'],\n ['name' => \"Seriously Funny [PA] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/seriously-funny-pa-digipak-cd/1033448.p?id=2123471&skuId=1033448&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033448', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033448_sa.jpg\"}', 'upc' => '824363010229', 'provider' => 'bestbuy'],\n ['name' => \"The Soul Explosion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-soul-explosion-cd/1033456.p?id=67792&skuId=1033456&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033456', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033456_sa.jpg\"}', 'upc' => '025218667425', 'provider' => 'bestbuy'],\n ['name' => \"The Concert - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-concert-cd/1033457.p?id=2125030&skuId=1033457&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033457', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033457_sa.jpg\"}', 'upc' => '731383649226', 'provider' => 'bestbuy'],\n ['name' => \"Farmer's Market Barbecue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/farmers-market-barbecue-cd/1033465.p?id=64017&skuId=1033465&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033465', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033465.jpg\"}', 'upc' => '025218673228', 'provider' => 'bestbuy'],\n ['name' => \"To a Finland Station - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/to-a-finland-station-cd/1033474.p?id=66702&skuId=1033474&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033474', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033474.jpg\"}', 'upc' => '025218673327', 'provider' => 'bestbuy'],\n ['name' => \"A Best of Us... For the Rest of Us [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-best-of-us-for-the-rest-of-us-pa-cd/1033475.p?id=2128248&skuId=1033475&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033475', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033475_sa.jpg\"}', 'upc' => '677516128827', 'provider' => 'bestbuy'],\n ['name' => \"Concepts in Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/concepts-in-blue-cd/1033492.p?id=68010&skuId=1033492&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033492', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033492_sa.jpg\"}', 'upc' => '025218673525', 'provider' => 'bestbuy'],\n ['name' => \"Rocksteady - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rocksteady-cd/1033493.p?id=2135540&skuId=1033493&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033493', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033493_sa.jpg\"}', 'upc' => '730061001325', 'provider' => 'bestbuy'],\n ['name' => \"Believe in the Music [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/believe-in-the-music-digipak-cd/1033545.p?id=2123268&skuId=1033545&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033545', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033545.jpg\"}', 'upc' => '091012108921', 'provider' => 'bestbuy'],\n ['name' => \"Landscape - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/landscape-cd/1033553.p?id=69893&skuId=1033553&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033553', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033553_sa.jpg\"}', 'upc' => '025218667623', 'provider' => 'bestbuy'],\n ['name' => \"Winter Moon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/winter-moon-cd/1033562.p?id=69914&skuId=1033562&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033562', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033562_sa.jpg\"}', 'upc' => '025218667722', 'provider' => 'bestbuy'],\n ['name' => \"Talk To StrangersCD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/talk-to-strangerscd/1033563.p?id=2127453&skuId=1033563&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033563', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033563_sa.jpg\"}', 'upc' => '700161700824', 'provider' => 'bestbuy'],\n ['name' => \"One September Afternoon - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-september-afternoon-cd/1033571.p?id=2390065&skuId=1033571&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033571', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033571.jpg\"}', 'upc' => '025218667821', 'provider' => 'bestbuy'],\n ['name' => \"First Ten Years, Vol. 3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/first-ten-years-vol-3-cd/1033572.p?id=2123257&skuId=1033572&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033572', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033572.jpg\"}', 'upc' => '856136002438', 'provider' => 'bestbuy'],\n ['name' => \"Goin' Home [Bonus Tracks] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/goin-home-bonus-tracks-cd/1033580.p?id=69918&skuId=1033580&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033580', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033580_sa.jpg\"}', 'upc' => '025218667920', 'provider' => 'bestbuy'],\n ['name' => \"Black & White - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/black-white-cd/1033581.p?id=2121190&skuId=1033581&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033581', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033581_sa.jpg\"}', 'upc' => '093624969068', 'provider' => 'bestbuy'],\n ['name' => \"Arthur's Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/arthurs-blues-cd/1033599.p?id=69887&skuId=1033599&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033599', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033599_sa.jpg\"}', 'upc' => '025218668026', 'provider' => 'bestbuy'],\n ['name' => \"Bye Bye Blackbird - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bye-bye-blackbird-cd/1033606.p?id=65134&skuId=1033606&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033606', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033606_sa.jpg\"}', 'upc' => '025218668125', 'provider' => 'bestbuy'],\n ['name' => \"Virtuoso No. 3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/virtuoso-no-3-cd/1033633.p?id=69821&skuId=1033633&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033633', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033633_sa.jpg\"}', 'upc' => '025218668422', 'provider' => 'bestbuy'],\n ['name' => \"Tudo Bem! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tudo-bem-cd/1033642.p?id=69830&skuId=1033642&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033642', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033642_sa.jpg\"}', 'upc' => '025218668521', 'provider' => 'bestbuy'],\n ['name' => \"Basie Jam #3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/basie-jam-3-cd/1033660.p?id=64005&skuId=1033660&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033660', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033660_sa.jpg\"}', 'upc' => '025218668729', 'provider' => 'bestbuy'],\n ['name' => \"Two of the Few - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-of-the-few-cd/1033688.p?id=69996&skuId=1033688&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033688', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033688_sa.jpg\"}', 'upc' => '025218668927', 'provider' => 'bestbuy'],\n ['name' => \"King Size! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/king-size-cd/1033704.p?id=70144&skuId=1033704&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033704', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033704_sa.jpg\"}', 'upc' => '025218669122', 'provider' => 'bestbuy'],\n ['name' => \"The Heart [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-heart-digipak-cd/1033706.p?id=2126041&skuId=1033706&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033706', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033706_sa.jpg\"}', 'upc' => '898434002284', 'provider' => 'bestbuy'],\n ['name' => \"Poll Winners Three! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/poll-winners-three-cd/1033713.p?id=68213&skuId=1033713&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033713', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033713_sa.jpg\"}', 'upc' => '025218669221', 'provider' => 'bestbuy'],\n ['name' => \"Inception - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/inception-cd-original-soundtrack/1033715.p?id=2121210&skuId=1033715&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033715', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033715_sa.jpg\"}', 'upc' => '093624965039', 'provider' => 'bestbuy'],\n ['name' => \"Maggie's Back in Town!! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/maggies-back-in-town-cd/1033722.p?id=68921&skuId=1033722&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033722', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033722_sa.jpg\"}', 'upc' => '025218669320', 'provider' => 'bestbuy'],\n ['name' => \"Coming Alive [CD & DVD] [PA] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/coming-alive-cd-dvd-pa-digipak-cd/1033724.p?id=2115438&skuId=1033724&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033724', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033724_sa.jpg\"}', 'upc' => '828136013721', 'provider' => 'bestbuy'],\n ['name' => \"Thursday Night at the Village Vanguard - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thursday-night-at-the-village-vanguard-cd/1033731.p?id=69912&skuId=1033731&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033731', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033731.jpg\"}', 'upc' => '025218669429', 'provider' => 'bestbuy'],\n ['name' => \"Friday Night at the Village Vanguard - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/friday-night-at-the-village-vanguard-cd/1033740.p?id=69890&skuId=1033740&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033740', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033740_sa.jpg\"}', 'upc' => '025218669528', 'provider' => 'bestbuy'],\n ['name' => \"Wide Open Road: The Best of the Triffids - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wide-open-road-the-best-of-the-triffids-cd/1033742.p?id=2123271&skuId=1033742&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033742', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033742_sa.jpg\"}', 'upc' => '801390026829', 'provider' => 'bestbuy'],\n ['name' => \"Full House Head - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/full-house-head-cd/1033751.p?id=2123260&skuId=1033751&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033751', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033751.jpg\"}', 'upc' => '899922001246', 'provider' => 'bestbuy'],\n ['name' => \"Saturday Night at the Village Vanguard - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/saturday-night-at-the-village-vanguard-cd/1033759.p?id=69901&skuId=1033759&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033759', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033759.jpg\"}', 'upc' => '025218669627', 'provider' => 'bestbuy'],\n ['name' => \"More for Les: At the Village Vanguard, Vol. 4... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/more-for-les-at-the-village-vanguard-vol-4-cd/1033768.p?id=69896&skuId=1033768&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033768', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033768_sa.jpg\"}', 'upc' => '025218669726', 'provider' => 'bestbuy'],\n ['name' => \"Quintessence - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/quintessence-cd/1033777.p?id=66110&skuId=1033777&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033777', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033777_sa.jpg\"}', 'upc' => '025218669825', 'provider' => 'bestbuy'],\n ['name' => \"Record - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/record-cd/1033779.p?id=2117311&skuId=1033779&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033779', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033779_sa.jpg\"}', 'upc' => '825646802517', 'provider' => 'bestbuy'],\n ['name' => \"Into Something - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/into-something-cd/1033795.p?id=68432&skuId=1033795&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033795', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033795_sa.jpg\"}', 'upc' => '025218670029', 'provider' => 'bestbuy'],\n ['name' => \"Jug - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jug-cd/1033802.p?id=63689&skuId=1033802&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033802', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033802_sa.jpg\"}', 'upc' => '025218670128', 'provider' => 'bestbuy'],\n ['name' => \"Lonely and Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lonely-and-blue-cd/1033811.p?id=68048&skuId=1033811&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033811', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033811_sa.jpg\"}', 'upc' => '025218670227', 'provider' => 'bestbuy'],\n ['name' => \"Stitt Meets Brother Jack - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stitt-meets-brother-jack-cd/1033820.p?id=71163&skuId=1033820&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033820', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033820_sa.jpg\"}', 'upc' => '025218670326', 'provider' => 'bestbuy'],\n ['name' => \"Jack Teagarden's Big Eight/Pee Wee Russell's... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jack-teagardens-big-eight-pee-wee-russells-cd/1033875.p?id=71351&skuId=1033875&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033875', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033875_sa.jpg\"}', 'upc' => '025218170826', 'provider' => 'bestbuy'],\n ['name' => \"Conception - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/conception-cd/1033973.p?id=65592&skuId=1033973&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1033973', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1033\\/1033973_sa.jpg\"}', 'upc' => '025218172622', 'provider' => 'bestbuy'],\n ['name' => \"WWE 2K15 - PRE-OWNED - PlayStation 3\", 'description_short' => \"Step into the ring and fight your way to the gold\", 'description_long' => \"Step into the ring and fight your way to the gold\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wwe-2k15-pre-owned-playstation-3/1034009.p?id=1219461501659&skuId=1034009&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034009', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034009_sa.jpg\"}', 'upc' => '799007840305', 'provider' => 'bestbuy'],\n ['name' => \"Sunset Overdrive - PRE-OWNED - Xbox One\", 'description_short' => \"Take down mutants and prove your mettle in a post-apocalyptic setting\", 'description_long' => \"Take down mutants and prove your mettle in a post-apocalyptic setting\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sunset-overdrive-pre-owned-xbox-one/1034018.p?id=1219461498306&skuId=1034018&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034018', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034018_sa.jpg\"}', 'upc' => '799007840312', 'provider' => 'bestbuy'],\n ['name' => \"NBA Live 15 - PRE-OWNED - PlayStation 4\", 'description_short' => \"Get back on the court with NBA Live 15\", 'description_long' => \"Get back on the court with NBA Live 15\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nba-live-15-pre-owned-playstation-4/1034027.p?id=1219461500094&skuId=1034027&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034027', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034027_sa.jpg\"}', 'upc' => '799007840329', 'provider' => 'bestbuy'],\n ['name' => \"NBA Live 15 - PRE-OWNED - Xbox One\", 'description_short' => \"Get back on the court with NBA Live 15\", 'description_long' => \"Get back on the court with NBA Live 15\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nba-live-15-pre-owned-xbox-one/1034036.p?id=1219461500677&skuId=1034036&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034036', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034036_sa.jpg\"}', 'upc' => '799007840336', 'provider' => 'bestbuy'],\n ['name' => \"Assassin's Creed: The Americas Collection - PRE-OWNED - Xbox 360\", 'description_short' => \"Unsheath your blade for thrilling combat in The Americas\", 'description_long' => \"Unsheath your blade for thrilling combat in The Americas\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/assassins-creed-the-americas-collection-pre-owned-xbox-360/1034045.p?id=1219461503133&skuId=1034045&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034045', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034045_sa.jpg\"}', 'upc' => '799007840343', 'provider' => 'bestbuy'],\n ['name' => \"Jazz in the Classic New Orleans Tradition - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazz-in-the-classic-new-orleans-tradition-cd/1034071.p?id=68521&skuId=1034071&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034071', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034071.jpg\"}', 'upc' => '025218173629', 'provider' => 'bestbuy'],\n ['name' => \"Assassin's Creed: The Americas Collection - PRE-OWNED - PlayStation 3\", 'description_short' => \"Unsheath your blade for thrilling combat in The Americas\", 'description_long' => \"Unsheath your blade for thrilling combat in The Americas\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/assassins-creed-the-americas-collection-pre-owned-playstation-3/1034072.p?id=1219461496042&skuId=1034072&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034072', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034072_sa.jpg\"}', 'upc' => '799007840350', 'provider' => 'bestbuy'],\n ['name' => \"Speak, Brother, Speak! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/speak-brother-speak-cd/1034080.p?id=70378&skuId=1034080&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034080', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034080_sa.jpg\"}', 'upc' => '025218664622', 'provider' => 'bestbuy'],\n ['name' => \"The Legend of Korra: A New Era Begins - PRE-OWNED - Nintendo 3DS\", 'description_short' => \"It&#039;s time for a new era to begin\", 'description_long' => \"It&#039;s time for a new era to begin\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-legend-of-korra-a-new-era-begins-pre-owned-nintendo-3ds/1034081.p?id=1219461502379&skuId=1034081&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034081', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034081_sa.jpg\"}', 'upc' => '799007840367', 'provider' => 'bestbuy'],\n ['name' => \"Air Conflicts: Vietnam - PRE-OWNED - PlayStation 4\", 'description_short' => \"Take to the skies over one of history&#039;s deadliest conflicts\", 'description_long' => \"Take to the skies over one of history&#039;s deadliest conflicts\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/air-conflicts-vietnam-pre-owned-playstation-4/1034105.p?id=1219461502449&skuId=1034105&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034105', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034105_sa.jpg\"}', 'upc' => '799007840374', 'provider' => 'bestbuy'],\n ['name' => \"The Intimacy of the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-intimacy-of-the-blues-cd/1034124.p?id=65973&skuId=1034124&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034124', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034124_sa.jpg\"}', 'upc' => '025218662420', 'provider' => 'bestbuy'],\n ['name' => \"The Fabulous Thad Jones - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-fabulous-thad-jones-cd/1034142.p?id=68082&skuId=1034142&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034142', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034142.jpg\"}', 'upc' => '025218662529', 'provider' => 'bestbuy'],\n ['name' => \"The Good Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-good-life-cd/1034188.p?id=69975&skuId=1034188&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034188', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034188_sa.jpg\"}', 'upc' => '025218662727', 'provider' => 'bestbuy'],\n ['name' => \"Basie Jam 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/basie-jam-2-cd/1034268.p?id=64003&skuId=1034268&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034268', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034268_sa.jpg\"}', 'upc' => '025218663120', 'provider' => 'bestbuy'],\n ['name' => \"Everyday I Have the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/everyday-i-have-the-blues-cd/1034320.p?id=102482&skuId=1034320&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034320', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034320_sa.jpg\"}', 'upc' => '025218663427', 'provider' => 'bestbuy'],\n ['name' => \"Blues for Two - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-for-two-cd/1034348.p?id=70991&skuId=1034348&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034348', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034348_sa.jpg\"}', 'upc' => '025218663526', 'provider' => 'bestbuy'],\n ['name' => \"Pal Joey - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pal-joey-cd/1034384.p?id=70151&skuId=1034384&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034384', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034384_sa.jpg\"}', 'upc' => '025218663724', 'provider' => 'bestbuy'],\n ['name' => \"All Night Session!, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-night-session-vol-1-cd/1034400.p?id=67256&skuId=1034400&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034400', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034400_sa.jpg\"}', 'upc' => '025218663823', 'provider' => 'bestbuy'],\n ['name' => \"All Night Session!, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-night-session-vol-2-cd/1034428.p?id=67257&skuId=1034428&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034428', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034428_sa.jpg\"}', 'upc' => '025218663922', 'provider' => 'bestbuy'],\n ['name' => \"Red Norvo Trio [Prestige] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/red-norvo-trio-prestige-cd/1034464.p?id=69650&skuId=1034464&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034464', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034464_sa.jpg\"}', 'upc' => '025218664127', 'provider' => 'bestbuy'],\n ['name' => \"Passions Just Like Mine: Morrissey and Fan Culture (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/passions-just-like-mine-morrissey-and-fan-culture-dvd/1034465.p?id=2949969&skuId=1034465&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034465', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034465_sa.jpg\"}', 'upc' => '613285881129', 'provider' => 'bestbuy'],\n ['name' => \"The Intimacy of the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-intimacy-of-the-blues-cd/1034482.p?id=261487&skuId=1034482&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034482', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034482_sa.jpg\"}', 'upc' => '025218664226', 'provider' => 'bestbuy'],\n ['name' => \"Cal Tjader's Latin Concert - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cal-tjaders-latin-concert-cd/1034507.p?id=71454&skuId=1034507&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034507', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034507_sa.jpg\"}', 'upc' => '025218664325', 'provider' => 'bestbuy'],\n ['name' => \"Montreux III - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/montreux-iii-cd/1034525.p?id=66139&skuId=1034525&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034525', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034525_sa.jpg\"}', 'upc' => '025218664424', 'provider' => 'bestbuy'],\n ['name' => \"The Afro-Eurasian Eclipse - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-afro-eurasian-eclipse-cd/1034543.p?id=65995&skuId=1034543&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034543', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034543_sa.jpg\"}', 'upc' => '025218664523', 'provider' => 'bestbuy'],\n ['name' => \"CHI - Air Expert Classic Tourmaline Ceramic 1\\\" Flat Iron - Onyx Black\", 'description_short' => \"Variable heat settings with a temperature dial; quick heat up; 9&#039; swivel cord; floating plates\", 'description_long' => \"Variable heat settings with a temperature dial; quick heat up; 9&#039; swivel cord; floating plates\", 'price' => 99.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chi-air-expert-classic-tourmaline-ceramic-1-flat-iron-onyx-black/1034544.p?id=1218212158220&skuId=1034544&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034544', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034544_rc.jpg\"}', 'upc' => '813843010101', 'provider' => 'bestbuy'],\n ['name' => \"Night Assassins - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/night-assassins-cd/1034571.p?id=2125937&skuId=1034571&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034571', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034571_sa.jpg\"}', 'upc' => '020286154266', 'provider' => 'bestbuy'],\n ['name' => \"Where Would I Be? - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/where-would-i-be-cd/1034589.p?id=67086&skuId=1034589&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034589', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034589_sa.jpg\"}', 'upc' => '025218664929', 'provider' => 'bestbuy'],\n ['name' => \"Consentual Selections - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/consentual-selections-cd/1034599.p?id=2118226&skuId=1034599&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034599', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034599_sa.jpg\"}', 'upc' => '751097075722', 'provider' => 'bestbuy'],\n ['name' => \"Echoes of a Friend - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/echoes-of-a-friend-cd/1034605.p?id=71595&skuId=1034605&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034605', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034605_sa.jpg\"}', 'upc' => '025218665025', 'provider' => 'bestbuy'],\n ['name' => \"I Remember Charlie Parker - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-remember-charlie-parker-cd/1034632.p?id=69811&skuId=1034632&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034632', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034632_sa.jpg\"}', 'upc' => '025218660228', 'provider' => 'bestbuy'],\n ['name' => \"Death Potion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/death-potion-cd/1034641.p?id=2113148&skuId=1034641&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034641', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034641_sa.jpg\"}', 'upc' => '654436013921', 'provider' => 'bestbuy'],\n ['name' => \"Trumpet Summit Meets the Oscar Peterson Big... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/trumpet-summit-meets-the-oscar-peterson-big-cd-various/1034650.p?id=66697&skuId=1034650&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034650', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034650_sa.jpg\"}', 'upc' => '025218660327', 'provider' => 'bestbuy'],\n ['name' => \"Memories of Duke - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/memories-of-duke-cd/1034678.p?id=71365&skuId=1034678&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034678', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034678_sa.jpg\"}', 'upc' => '025218660426', 'provider' => 'bestbuy'],\n ['name' => \"Fragments of Form and Function [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fragments-of-form-and-function-digipak-cd/1034687.p?id=2118177&skuId=1034687&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034687', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034687_sa.jpg\"}', 'upc' => '039841493320', 'provider' => 'bestbuy'],\n ['name' => \"War From a Harlots Mouth/Burning Skies [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/war-from-a-harlots-mouth-burning-skies-pa-cd/1034696.p?id=2118296&skuId=1034696&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034696', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034696_sa.jpg\"}', 'upc' => '826056010721', 'provider' => 'bestbuy'],\n ['name' => \"Ressentiment [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ressentiment-digipak-cd/1034714.p?id=2118283&skuId=1034714&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034714', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034714_sa.jpg\"}', 'upc' => '020286154242', 'provider' => 'bestbuy'],\n ['name' => \"Bravado [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bravado-digipak-cd/1034723.p?id=2118374&skuId=1034723&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034723', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034723_sa.jpg\"}', 'upc' => '673203300422', 'provider' => 'bestbuy'],\n ['name' => \"The Poll Winners Ride Again! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-poll-winners-ride-again-cd/1034730.p?id=68216&skuId=1034730&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034730', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034730_sa.jpg\"}', 'upc' => '025218660723', 'provider' => 'bestbuy'],\n ['name' => \"It'S A Good Day - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/its-a-good-day-cd/1034732.p?id=2125941&skuId=1034732&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034732', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034732_sa.jpg\"}', 'upc' => '678572967023', 'provider' => 'bestbuy'],\n ['name' => \"It'll Be Better - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/itll-be-better-cd/1034741.p?id=2118225&skuId=1034741&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034741', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034741_sa.jpg\"}', 'upc' => '718122809028', 'provider' => 'bestbuy'],\n ['name' => \"Deep Red Shadows - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/deep-red-shadows-cd/1034787.p?id=2128800&skuId=1034787&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034787', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034787_sa.jpg\"}', 'upc' => '820360141829', 'provider' => 'bestbuy'],\n ['name' => \"Mal-1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mal-1-cd/1034810.p?id=71793&skuId=1034810&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034810', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034810_sa.jpg\"}', 'upc' => '025218661126', 'provider' => 'bestbuy'],\n ['name' => \"Made the Harbor [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/made-the-harbor-digipak-cd/1034832.p?id=2118169&skuId=1034832&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034832', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034832_sa.jpg\"}', 'upc' => '720841901228', 'provider' => 'bestbuy'],\n ['name' => \"Come Along with Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/come-along-with-me-cd/1034856.p?id=67979&skuId=1034856&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034856', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034856_sa.jpg\"}', 'upc' => '025218661324', 'provider' => 'bestbuy'],\n ['name' => \"Jazzmasters VI - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazzmasters-vi-cd/1034869.p?id=2118157&skuId=1034869&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034869', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034869_sa.jpg\"}', 'upc' => '020286152392', 'provider' => 'bestbuy'],\n ['name' => \"The Blues; That's Me! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-blues-thats-me-cd/1034874.p?id=67791&skuId=1034874&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034874', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034874_sa.jpg\"}', 'upc' => '025218661423', 'provider' => 'bestbuy'],\n ['name' => \"Jersey Shore Anthems - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jersey-shore-anthems-cd-various/1034887.p?id=2118165&skuId=1034887&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034887', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034887.jpg\"}', 'upc' => '026656305825', 'provider' => 'bestbuy'],\n ['name' => \"Big 6 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-6-cd/1034892.p?id=69202&skuId=1034892&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034892', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034892.jpg\"}', 'upc' => '025218661522', 'provider' => 'bestbuy'],\n ['name' => \"The Electric Sound of Johnny Arrow [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-electric-sound-of-johnny-arrow-digipak-cd/1034896.p?id=2125939&skuId=1034896&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034896', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034896_sa.jpg\"}', 'upc' => '020286153221', 'provider' => 'bestbuy'],\n ['name' => \"Visceral Transcendence - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/visceral-transcendence-cd/1034905.p?id=2118347&skuId=1034905&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034905', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034905_sa.jpg\"}', 'upc' => '656191201322', 'provider' => 'bestbuy'],\n ['name' => \"Deadmalls & Nightfalls [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/deadmalls-nightfalls-digipak-cd/1034914.p?id=2118325&skuId=1034914&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034914', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034914_sa.jpg\"}', 'upc' => '626570608189', 'provider' => 'bestbuy'],\n ['name' => \"There Will Be Violence - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/there-will-be-violence-cd/1034923.p?id=2118161&skuId=1034923&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034923', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034923_sa.jpg\"}', 'upc' => '803847109529', 'provider' => 'bestbuy'],\n ['name' => \"The Vitality Theory - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-vitality-theory-cd/1034932.p?id=2118176&skuId=1034932&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034932', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034932_sa.jpg\"}', 'upc' => '856449002071', 'provider' => 'bestbuy'],\n ['name' => \"The DeJohnette Complex - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-dejohnette-complex-cd/1034936.p?id=65639&skuId=1034936&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034936', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034936_sa.jpg\"}', 'upc' => '025218661720', 'provider' => 'bestbuy'],\n ['name' => \"Lives - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lives-cd/1034941.p?id=2118168&skuId=1034941&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034941', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034941_sa.jpg\"}', 'upc' => '827954103423', 'provider' => 'bestbuy'],\n ['name' => \"Song of the New World - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/song-of-the-new-world-cd/1034954.p?id=71608&skuId=1034954&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034954', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034954_sa.jpg\"}', 'upc' => '025218661829', 'provider' => 'bestbuy'],\n ['name' => \"Wormwood [PA] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wormwood-pa-digipak-cd/1034969.p?id=2118152&skuId=1034969&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034969', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034969_sa.jpg\"}', 'upc' => '656191008822', 'provider' => 'bestbuy'],\n ['name' => \"Stories to Tell - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stories-to-tell-cd/1034972.p?id=70205&skuId=1034972&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034972', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034972_sa.jpg\"}', 'upc' => '025218661928', 'provider' => 'bestbuy'],\n ['name' => \"We Stitch These Wounds - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/we-stitch-these-wounds-cd/1034978.p?id=2118159&skuId=1034978&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1034978', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1034\\/1034978_sa.jpg\"}', 'upc' => '897896002276', 'provider' => 'bestbuy'],\n ['name' => \"Since We Met - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/since-we-met-cd/1035034.p?id=66133&skuId=1035034&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035034', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035034_sa.jpg\"}', 'upc' => '025218662222', 'provider' => 'bestbuy'],\n ['name' => \"Mines [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mines-digipak-cd/1035067.p?id=2119344&skuId=1035067&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035067', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035067_sa.jpg\"}', 'upc' => '655173110126', 'provider' => 'bestbuy'],\n ['name' => \"King Pimp - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/king-pimp-cd-original-soundtrack/1035085.p?id=2124499&skuId=1035085&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035085', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_music_l.jpg\"}', 'upc' => '708535172192', 'provider' => 'bestbuy'],\n ['name' => \"At Last! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-last-cd/1035089.p?id=65589&skuId=1035089&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035089', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035089_sa.jpg\"}', 'upc' => '025218648028', 'provider' => 'bestbuy'],\n ['name' => \"Cry!/Tender - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cry-tender-cd/1035123.p?id=68429&skuId=1035123&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035123', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035123_sa.jpg\"}', 'upc' => '025218648226', 'provider' => 'bestbuy'],\n ['name' => \"Showcase - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/showcase-cd/1035169.p?id=68065&skuId=1035169&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035169', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035169_sa.jpg\"}', 'upc' => '025218648424', 'provider' => 'bestbuy'],\n ['name' => \"The Big Soul Band - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-big-soul-band-cd/1035187.p?id=66950&skuId=1035187&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035187', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035187_sa.jpg\"}', 'upc' => '025218648523', 'provider' => 'bestbuy'],\n ['name' => \"Human Target: The Complete First Season [3 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 34.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/human-target-the-complete-first-season-3-discs-dvd/1035234.p?id=2128805&skuId=1035234&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035234', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035234_sa.jpg\"}', 'upc' => '883929132096', 'provider' => 'bestbuy'],\n ['name' => \"One Tree Hill: The Complete Seventh Season [5 Discs] (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 34.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/one-tree-hill-the-complete-seventh-season-5-discs-dvd/1035243.p?id=2123478&skuId=1035243&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035243', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035243_sa.jpg\"}', 'upc' => '883929101344', 'provider' => 'bestbuy'],\n ['name' => \"Thelonious Monk in Italy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thelonious-monk-in-italy-cd/1035249.p?id=69282&skuId=1035249&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035249', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035249_sa.jpg\"}', 'upc' => '025218648820', 'provider' => 'bestbuy'],\n ['name' => \"Sesame Street: Preschool Is Cool! - ABCs with Elmo (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sesame-street-preschool-is-cool-abcs-with-elmo-dvd/1035261.p?id=2113158&skuId=1035261&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035261', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035261_sa.jpg\"}', 'upc' => '891264001939', 'provider' => 'bestbuy'],\n ['name' => \"Guitar on the Go - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/guitar-on-the-go-cd/1035267.p?id=69334&skuId=1035267&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035267', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035267_sa.jpg\"}', 'upc' => '025218648929', 'provider' => 'bestbuy'],\n ['name' => \"Mongo at the Village Gate - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mongo-at-the-village-gate-cd/1035285.p?id=70632&skuId=1035285&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035285', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035285_sa.jpg\"}', 'upc' => '025218649025', 'provider' => 'bestbuy'],\n ['name' => \"Takin' Care of Business - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/takin-care-of-business-cd/1035301.p?id=70497&skuId=1035301&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035301', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035301_sa.jpg\"}', 'upc' => '025218649124', 'provider' => 'bestbuy'],\n ['name' => \"Eastward Ho! Harold Land in New York - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/eastward-ho-harold-land-in-new-york-cd/1035347.p?id=68412&skuId=1035347&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035347', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035347.jpg\"}', 'upc' => '025218649322', 'provider' => 'bestbuy'],\n ['name' => \"Recuerdo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/recuerdo-cd/1035383.p?id=68721&skuId=1035383&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035383', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035383_sa.jpg\"}', 'upc' => '025218649520', 'provider' => 'bestbuy'],\n ['name' => \"Skol - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/skol-cd/1035409.p?id=69994&skuId=1035409&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035409', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035409_sa.jpg\"}', 'upc' => '025218649629', 'provider' => 'bestbuy'],\n ['name' => \"The Trumpet Kings Meet Joe Turner - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-trumpet-kings-meet-joe-turner-cd/1035427.p?id=102504&skuId=1035427&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035427', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035427_sa.jpg\"}', 'upc' => '025218649728', 'provider' => 'bestbuy'],\n ['name' => \"Quadrant - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/quadrant-cd/1035445.p?id=2390680&skuId=1035445&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035445', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035445_sa.jpg\"}', 'upc' => '025218649827', 'provider' => 'bestbuy'],\n ['name' => \"For the Second Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-the-second-time-cd/1035481.p?id=64051&skuId=1035481&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035481', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035481_sa.jpg\"}', 'upc' => '025218660020', 'provider' => 'bestbuy'],\n ['name' => \"Leeruhcul Canvuhss [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/leeruhcul-canvuhss-pa-cd/1035491.p?id=2120650&skuId=1035491&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035491', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035491_sa.jpg\"}', 'upc' => '736888913629', 'provider' => 'bestbuy'],\n ['name' => \"It Don't Mean a Thing If You Can't Tap Your... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/it-dont-mean-a-thing-if-you-cant-tap-your-cd/1035506.p?id=67764&skuId=1035506&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035506', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035506_sa.jpg\"}', 'upc' => '025218660129', 'provider' => 'bestbuy'],\n ['name' => \"What Lasts - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/what-lasts-cd/1035507.p?id=2120651&skuId=1035507&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035507', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035507.jpg\"}', 'upc' => '744626010622', 'provider' => 'bestbuy'],\n ['name' => \"Hounds of Love [LP] - VINYL\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 29.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hounds-of-love-lp-vinyl/1035525.p?id=2120653&skuId=1035525&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035525', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035525.jpg\"}', 'upc' => '780014208714', 'provider' => 'bestbuy'],\n ['name' => \"Cattin' with Coltrane and Quinichette - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cattin-with-coltrane-and-quinichette-cd/1035597.p?id=65191&skuId=1035597&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035597', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035597.jpg\"}', 'upc' => '025218646024', 'provider' => 'bestbuy'],\n ['name' => \"Cedar! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cedar-cd/1035622.p?id=71837&skuId=1035622&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035622', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035622_sa.jpg\"}', 'upc' => '025218646222', 'provider' => 'bestbuy'],\n ['name' => \"Mean What You Say - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mean-what-you-say-cd/1035668.p?id=68086&skuId=1035668&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035668', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035668_sa.jpg\"}', 'upc' => '025218646420', 'provider' => 'bestbuy'],\n ['name' => \"The Kicker - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-kicker-cd/1035686.p?id=67354&skuId=1035686&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035686', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035686_sa.jpg\"}', 'upc' => '025218646529', 'provider' => 'bestbuy'],\n ['name' => \"The Lee Konitz Duets - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-lee-konitz-duets-cd/1035702.p?id=68317&skuId=1035702&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035702', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035702_sa.jpg\"}', 'upc' => '025218646628', 'provider' => 'bestbuy'],\n ['name' => \"Alone Together - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/alone-together-cd/1035720.p?id=67093&skuId=1035720&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035720', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035720.jpg\"}', 'upc' => '025218646727', 'provider' => 'bestbuy'],\n ['name' => \"Latin American Suite - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/latin-american-suite-cd/1035757.p?id=65952&skuId=1035757&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035757', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035757_sa.jpg\"}', 'upc' => '025218646925', 'provider' => 'bestbuy'],\n ['name' => \"Intuition - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/intuition-cd/1035775.p?id=66138&skuId=1035775&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035775', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035775_sa.jpg\"}', 'upc' => '025218647021', 'provider' => 'bestbuy'],\n ['name' => \"StarTech - HDMI to DVI Digital Video Cable - Black\", 'description_short' => \"HDMI - 29.86 ft - 1 Pack - 1 x Male HDMI - 1 x DVI-D Male Video - Black\", 'description_long' => \"HDMI - 29.86 ft - 1 Pack - 1 x Male HDMI - 1 x DVI-D Male Video - Black\", 'price' => 44.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/startech-hdmi-to-dvi-digital-video-cable-black/1035786.p?id=1218265850115&skuId=1035786&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035786', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035786_rc.jpg\"}', 'upc' => '065030813969', 'provider' => 'bestbuy'],\n ['name' => \"The Eddie \\\"Lockjaw\\\" Davis Cookbook, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-eddie-lockjaw-davis-cookbook-vol-2-cd/1035828.p?id=65502&skuId=1035828&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035828', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035828_sa.jpg\"}', 'upc' => '025218665322', 'provider' => 'bestbuy'],\n ['name' => \"Portrait of Sonny Criss - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/portrait-of-sonny-criss-cd/1035864.p?id=65369&skuId=1035864&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035864', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035864_sa.jpg\"}', 'upc' => '025218665520', 'provider' => 'bestbuy'],\n ['name' => \"At the Blackhawk, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-the-blackhawk-vol-1-cd/1035882.p?id=68748&skuId=1035882&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035882', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035882_sa.jpg\"}', 'upc' => '025218665629', 'provider' => 'bestbuy'],\n ['name' => \"At the Blackhawk, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-the-blackhawk-vol-2-cd/1035908.p?id=68749&skuId=1035908&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035908', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035908.jpg\"}', 'upc' => '025218665728', 'provider' => 'bestbuy'],\n ['name' => \"At the Blackhawk, Vol. 3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-the-blackhawk-vol-3-cd/1035926.p?id=68750&skuId=1035926&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035926', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035926.jpg\"}', 'upc' => '025218665827', 'provider' => 'bestbuy'],\n ['name' => \"At the Blackhawk, Vol. 4 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-the-blackhawk-vol-4-cd/1035944.p?id=68751&skuId=1035944&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035944', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035944.jpg\"}', 'upc' => '025218665926', 'provider' => 'bestbuy'],\n ['name' => \"At the Blackhawk, Vol. 5 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-the-blackhawk-vol-5-cd/1035962.p?id=68752&skuId=1035962&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1035962', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1035\\/1035962.jpg\"}', 'upc' => '025218666022', 'provider' => 'bestbuy'],\n ['name' => \"Harlem Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/harlem-blues-cd/1036006.p?id=69599&skuId=1036006&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036006', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036006_sa.jpg\"}', 'upc' => '025218666220', 'provider' => 'bestbuy'],\n ['name' => \"Out of the Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/out-of-the-blue-cd/1036104.p?id=69208&skuId=1036104&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036104', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036104_sa.jpg\"}', 'upc' => '025218666725', 'provider' => 'bestbuy'],\n ['name' => \"Something Borrowed, Something Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/something-borrowed-something-blue-cd/1036140.p?id=66365&skuId=1036140&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036140', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036140_sa.jpg\"}', 'upc' => '025218647328', 'provider' => 'bestbuy'],\n ['name' => \"Art Pepper Today - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/art-pepper-today-cd/1036168.p?id=69886&skuId=1036168&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036168', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036168_sa.jpg\"}', 'upc' => '025218647427', 'provider' => 'bestbuy'],\n ['name' => \"Straight Life - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/straight-life-cd/1036186.p?id=69902&skuId=1036186&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036186', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036186_sa.jpg\"}', 'upc' => '025218647526', 'provider' => 'bestbuy'],\n ['name' => \"The Green Leaves of Summer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-green-leaves-of-summer-cd/1036202.p?id=67255&skuId=1036202&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036202', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036202.jpg\"}', 'upc' => '025218647625', 'provider' => 'bestbuy'],\n ['name' => \"Moonbeams - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moonbeams-cd/1036355.p?id=66131&skuId=1036355&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036355', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036355_sa.jpg\"}', 'upc' => '025218643429', 'provider' => 'bestbuy'],\n ['name' => \"Nippon Soul - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nippon-soul-cd/1036373.p?id=63550&skuId=1036373&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036373', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036373_sa.jpg\"}', 'upc' => '025218643528', 'provider' => 'bestbuy'],\n ['name' => \"Jazz at the Blackhawk - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazz-at-the-blackhawk-cd/1036391.p?id=71462&skuId=1036391&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036391', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036391.jpg\"}', 'upc' => '025218643627', 'provider' => 'bestbuy'],\n ['name' => \"Cast Your Fate to the Wind: Jazz Impressions... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cast-your-fate-to-the-wind-jazz-impressions-cd/1036417.p?id=67031&skuId=1036417&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036417', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036417_sa.jpg\"}', 'upc' => '025218643726', 'provider' => 'bestbuy'],\n ['name' => \"Joe Williams Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/joe-williams-live-cd/1036435.p?id=72096&skuId=1036435&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036435', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036435.jpg\"}', 'upc' => '025218643825', 'provider' => 'bestbuy'],\n ['name' => \"Charles Mingus Quintet + Max Roach - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/charles-mingus-quintet-max-roach-cd/1036471.p?id=69185&skuId=1036471&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036471', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036471_sa.jpg\"}', 'upc' => '025218644020', 'provider' => 'bestbuy'],\n ['name' => \"Tivoli Gardens, Copenhagen, Denmark - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tivoli-gardens-copenhagen-denmark-cd/1036499.p?id=66897&skuId=1036499&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036499', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036499_sa.jpg\"}', 'upc' => '025218644129', 'provider' => 'bestbuy'],\n ['name' => \"Ella A Nice - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ella-a-nice-cd/1036514.p?id=66300&skuId=1036514&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036514', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036514.jpg\"}', 'upc' => '025218644228', 'provider' => 'bestbuy'],\n ['name' => \"Dizzy's Big 4 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dizzys-big-4-cd/1036532.p?id=66676&skuId=1036532&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036532', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036532_sa.jpg\"}', 'upc' => '025218644327', 'provider' => 'bestbuy'],\n ['name' => \"Trumpet Kings at Montreux - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/trumpet-kings-at-montreux-cd/1036550.p?id=65896&skuId=1036550&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036550', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036550_sa.jpg\"}', 'upc' => '025218644525', 'provider' => 'bestbuy'],\n ['name' => \"Ellington Suites: The Queen's Suite/The... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ellington-suites-the-queens-suite-the-cd/1036569.p?id=65975&skuId=1036569&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036569', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036569_sa.jpg\"}', 'upc' => '025218644624', 'provider' => 'bestbuy'],\n ['name' => \"Afro-Cuban Jazz Moods - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/afro-cuban-jazz-moods-cd/1036587.p?id=66665&skuId=1036587&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036587', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036587.jpg\"}', 'upc' => '025218644723', 'provider' => 'bestbuy'],\n ['name' => \"All Too Soon: The Duke Ellington Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-too-soon-the-duke-ellington-album-cd/1036621.p?id=67765&skuId=1036621&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036621', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036621_sa.jpg\"}', 'upc' => '025218645027', 'provider' => 'bestbuy'],\n ['name' => \"Hamilton Beach - Coffee Urn - Silver\", 'description_short' => \"42 Cup(s) - Silver - Aluminum\", 'description_long' => \"42 Cup(s) - Silver - Aluminum\", 'price' => 37.54, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hamilton-beach-coffee-urn-silver/1036658.p?id=1218212059983&skuId=1036658', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036658', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036658_rc.jpg\"}', 'upc' => '040094405152', 'provider' => 'bestbuy'],\n ['name' => \"Looking Ahead - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/looking-ahead-cd/1036667.p?id=71342&skuId=1036667&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036667', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036667_sa.jpg\"}', 'upc' => '025218645225', 'provider' => 'bestbuy'],\n ['name' => \"All Day Long - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-day-long-cd/1036729.p?id=64713&skuId=1036729&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036729', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036729_sa.jpg\"}', 'upc' => '025218645621', 'provider' => 'bestbuy'],\n ['name' => \"Live Montreux 77 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-montreux-77-cd/1036756.p?id=1562201&skuId=1036756&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036756', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036756.jpg\"}', 'upc' => '025218637824', 'provider' => 'bestbuy'],\n ['name' => \"Something for Lester - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/something-for-lester-cd/1036783.p?id=64600&skuId=1036783&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036783', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036783_sa.jpg\"}', 'upc' => '025218641227', 'provider' => 'bestbuy'],\n ['name' => \"Eric Dolphy in Europe, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/eric-dolphy-in-europe-vol-1-cd/1036809.p?id=65711&skuId=1036809&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036809', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036809_sa.jpg\"}', 'upc' => '025218641326', 'provider' => 'bestbuy'],\n ['name' => \"Mavea - Maxtra Filter - Multi\", 'description_short' => \"Helps remove chlorine taste and odor, benzene, mercury, copper, atrazine and limescale from your drinking water; filter micro screen; contains silver; BPA-free\", 'description_long' => \"Helps remove chlorine taste and odor, benzene, mercury, copper, atrazine and limescale from your drinking water; filter micro screen; contains silver; BPA-free\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mavea-maxtra-filter-multi/1036821.p?id=1218211735780&skuId=1036821&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036821', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036821_sa.jpg\"}', 'upc' => '812501010279', 'provider' => 'bestbuy'],\n ['name' => \"Eric Dolphy in Europe, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/eric-dolphy-in-europe-vol-2-cd/1036827.p?id=65712&skuId=1036827&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036827', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036827_sa.jpg\"}', 'upc' => '025218641425', 'provider' => 'bestbuy'],\n ['name' => \"Bahia - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bahia-cd/1036845.p?id=65128&skuId=1036845&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036845', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036845_sa.jpg\"}', 'upc' => '025218641524', 'provider' => 'bestbuy'],\n ['name' => \"Bottoms Up - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bottoms-up-cd/1036881.p?id=67785&skuId=1036881&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036881', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036881.jpg\"}', 'upc' => '025218641722', 'provider' => 'bestbuy'],\n ['name' => \"With the Red Garland Trio - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/with-the-red-garland-trio-cd/1036907.p?id=67299&skuId=1036907&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036907', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036907.jpg\"}', 'upc' => '025218641821', 'provider' => 'bestbuy'],\n ['name' => \"Night Hawk - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/night-hawk-cd/1036943.p?id=67284&skuId=1036943&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036943', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036943_sa.jpg\"}', 'upc' => '025218642026', 'provider' => 'bestbuy'],\n ['name' => \"Vol. 3: The Trio - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vol-3-the-trio-cd/1036961.p?id=67251&skuId=1036961&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036961', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036961.jpg\"}', 'upc' => '025218642125', 'provider' => 'bestbuy'],\n ['name' => \"The Love Trilogy [CD & DVD] [PA] - CD - DVD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-love-trilogy-cd-dvd-pa-cd-dvd/1036967.p?id=2121208&skuId=1036967&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036967', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036967_sa.jpg\"}', 'upc' => '602527441764', 'provider' => 'bestbuy'],\n ['name' => \"West Side Story - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/west-side-story-cd/1036989.p?id=70152&skuId=1036989&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1036989', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1036\\/1036989_sa.jpg\"}', 'upc' => '025218642224', 'provider' => 'bestbuy'],\n ['name' => \"Lights Out! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lights-out-cd/1037069.p?id=68987&skuId=1037069&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037069', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037069_sa.jpg\"}', 'upc' => '025218642620', 'provider' => 'bestbuy'],\n ['name' => \"All Night Long - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-night-long-cd/1037087.p?id=64774&skuId=1037087&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037087', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037087_sa.jpg\"}', 'upc' => '025218642729', 'provider' => 'bestbuy'],\n ['name' => \"Manteca - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/manteca-cd/1037103.p?id=66531&skuId=1037103&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037103', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037103_sa.jpg\"}', 'upc' => '025218642828', 'provider' => 'bestbuy'],\n ['name' => \"New Ideas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/new-ideas-cd/1037167.p?id=66038&skuId=1037167&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037167', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037167.jpg\"}', 'upc' => '025218643122', 'provider' => 'bestbuy'],\n ['name' => \"Montreux '77 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/montreux-77-cd/1037194.p?id=66690&skuId=1037194&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037194', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037194_sa.jpg\"}', 'upc' => '025218638128', 'provider' => 'bestbuy'],\n ['name' => \"Montreux 77 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/montreux-77-cd/1037210.p?id=2276082&skuId=1037210&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037210', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037210.jpg\"}', 'upc' => '025218638326', 'provider' => 'bestbuy'],\n ['name' => \"Intensity - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/intensity-cd/1037274.p?id=1550681&skuId=1037274&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037274', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037274_sa.jpg\"}', 'upc' => '025218638722', 'provider' => 'bestbuy'],\n ['name' => \"The Great Jazz Piano of Phineas Newborn Jr. - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-great-jazz-piano-of-phineas-newborn-jr-cd/1037283.p?id=2294391&skuId=1037283&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037283', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037283_sa.jpg\"}', 'upc' => '025218638821', 'provider' => 'bestbuy'],\n ['name' => \"The Way It Was - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-way-it-was-cd/1037309.p?id=69908&skuId=1037309&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037309', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037309_sa.jpg\"}', 'upc' => '025218638920', 'provider' => 'bestbuy'],\n ['name' => \"Dig It! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dig-it-cd/1037354.p?id=66524&skuId=1037354&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037354', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037354_sa.jpg\"}', 'upc' => '025218639224', 'provider' => 'bestbuy'],\n ['name' => \"Body and Soul - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/body-and-soul-cd/1037434.p?id=67978&skuId=1037434&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037434', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037434_sa.jpg\"}', 'upc' => '025218639620', 'provider' => 'bestbuy'],\n ['name' => \"Other Sounds - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/other-sounds-cd/1037489.p?id=2291332&skuId=1037489&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037489', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037489_sa.jpg\"}', 'upc' => '025218639927', 'provider' => 'bestbuy'],\n ['name' => \"Far Cry - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/far-cry-cd/1037498.p?id=65724&skuId=1037498&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037498', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037498_sa.jpg\"}', 'upc' => '025218640022', 'provider' => 'bestbuy'],\n ['name' => \"Piano [Whisper Not] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/piano-whisper-not-cd/1037504.p?id=68161&skuId=1037504&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037504', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037504_sa.jpg\"}', 'upc' => '025218640121', 'provider' => 'bestbuy'],\n ['name' => \"Living Legend - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/living-legend-cd/1037577.p?id=69894&skuId=1037577&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037577', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037577_sa.jpg\"}', 'upc' => '025218640824', 'provider' => 'bestbuy'],\n ['name' => \"Trio 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/trio-2-cd/1037620.p?id=1550682&skuId=1037620&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037620', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037620_sa.jpg\"}', 'upc' => '025218631822', 'provider' => 'bestbuy'],\n ['name' => \"Soul Battle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/soul-battle-cd/1037675.p?id=69571&skuId=1037675&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037675', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037675.jpg\"}', 'upc' => '025218632522', 'provider' => 'bestbuy'],\n ['name' => \"Modern Jazz Performances of Songs from My... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/modern-jazz-performances-of-songs-from-my-cd/1037746.p?id=68756&skuId=1037746&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037746', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037746_sa.jpg\"}', 'upc' => '025218633628', 'provider' => 'bestbuy'],\n ['name' => \"Art Pepper Meets the Rhythm Section - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/art-pepper-meets-the-rhythm-section-cd/1037782.p?id=69895&skuId=1037782&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037782', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037782.jpg\"}', 'upc' => '025218633826', 'provider' => 'bestbuy'],\n ['name' => \"Swingin' the '20s - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/swingin-the-20s-cd/1037791.p?id=64850&skuId=1037791&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037791', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037791_sa.jpg\"}', 'upc' => '025218633925', 'provider' => 'bestbuy'],\n ['name' => \"Sonny Rollins and the Contemporary Leaders - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sonny-rollins-and-the-contemporary-leaders-cd/1037817.p?id=70425&skuId=1037817&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037817', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037817_sa.jpg\"}', 'upc' => '025218634021', 'provider' => 'bestbuy'],\n ['name' => \"Memorial Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/memorial-album-cd/1037835.p?id=65725&skuId=1037835&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037835', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037835_sa.jpg\"}', 'upc' => '025218635325', 'provider' => 'bestbuy'],\n ['name' => \"Baiyina (The Clear Evidence) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/baiyina-the-clear-evidence-cd/1037871.p?id=68843&skuId=1037871&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037871', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037871_sa.jpg\"}', 'upc' => '025218635523', 'provider' => 'bestbuy'],\n ['name' => \"The Return of Tal Farlow/1969 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-return-of-tal-farlow-1969-cd/1037899.p?id=66184&skuId=1037899&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037899', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037899.jpg\"}', 'upc' => '025218635622', 'provider' => 'bestbuy'],\n ['name' => \"Tomorrow Is the Question! [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tomorrow-is-the-question-remaster-cd/1037960.p?id=65100&skuId=1037960&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037960', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037960_sa.jpg\"}', 'upc' => '025218634229', 'provider' => 'bestbuy'],\n ['name' => \"The Fox - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-fox-cd/1037988.p?id=2551800&skuId=1037988&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1037988', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1037\\/1037988.jpg\"}', 'upc' => '025218634328', 'provider' => 'bestbuy'],\n ['name' => \"The Tokyo Concert - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-tokyo-concert-cd/1038013.p?id=66112&skuId=1038013&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038013', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038013_sa.jpg\"}', 'upc' => '025218634526', 'provider' => 'bestbuy'],\n ['name' => \"Gil Evans & Ten - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gil-evans-ten-cd/1038031.p?id=1535036&skuId=1038031&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038031', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038031_sa.jpg\"}', 'upc' => '025218634625', 'provider' => 'bestbuy'],\n ['name' => \"Miles Davis and the Modern Jazz Giants - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/miles-davis-and-the-modern-jazz-giants-cd/1038059.p?id=65554&skuId=1038059&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038059', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038059_sa.jpg\"}', 'upc' => '025218634724', 'provider' => 'bestbuy'],\n ['name' => \"High Pressure - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/high-pressure-cd/1038095.p?id=1550683&skuId=1038095&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038095', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038095.jpg\"}', 'upc' => '025218634922', 'provider' => 'bestbuy'],\n ['name' => \"Bad! Bossa Nova - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bad-bossa-nova-cd/1038139.p?id=63683&skuId=1038139&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038139', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038139_sa.jpg\"}', 'upc' => '025218635127', 'provider' => 'bestbuy'],\n ['name' => \"Black Pearls [ECD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/black-pearls-ecd-cd/1038157.p?id=65131&skuId=1038157&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038157', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038157_sa.jpg\"}', 'upc' => '025218635226', 'provider' => 'bestbuy'],\n ['name' => \"All Mornin' Long - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-mornin-long-cd/1038175.p?id=66523&skuId=1038175&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038175', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038175_sa.jpg\"}', 'upc' => '025218629324', 'provider' => 'bestbuy'],\n ['name' => \"Workin' with the Miles Davis Quintet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/workin-with-the-miles-davis-quintet-cd/1038228.p?id=65586&skuId=1038228&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038228', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038228_sa.jpg\"}', 'upc' => '025218629621', 'provider' => 'bestbuy'],\n ['name' => \"Mulligan Meets Monk - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mulligan-meets-monk-cd/1038317.p?id=69291&skuId=1038317&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038317', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038317_sa.jpg\"}', 'upc' => '025218630122', 'provider' => 'bestbuy'],\n ['name' => \"In Orbit - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-orbit-cd/1038335.p?id=71366&skuId=1038335&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038335', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038335_sa.jpg\"}', 'upc' => '025218630221', 'provider' => 'bestbuy'],\n ['name' => \"Portrait of Cannonball - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/portrait-of-cannonball-cd/1038399.p?id=63551&skuId=1038399&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038399', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038399_sa.jpg\"}', 'upc' => '025218636124', 'provider' => 'bestbuy'],\n ['name' => \"5 by Monk by 5 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/5-by-monk-by-5-cd/1038415.p?id=69273&skuId=1038415&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038415', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038415_sa.jpg\"}', 'upc' => '025218636223', 'provider' => 'bestbuy'],\n ['name' => \"How My Heart Sings! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/how-my-heart-sings-cd/1038558.p?id=66130&skuId=1038558&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038558', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038558_sa.jpg\"}', 'upc' => '025218636926', 'provider' => 'bestbuy'],\n ['name' => \"Chet Baker in Milan - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chet-baker-in-milan-cd/1038576.p?id=63902&skuId=1038576&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038576', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038576.jpg\"}', 'upc' => '025218637022', 'provider' => 'bestbuy'],\n ['name' => \"Montreux '77 [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/montreux-77-digdownload-cd/1038656.p?id=64055&skuId=1038656&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038656', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038656_sa.jpg\"}', 'upc' => '025218637725', 'provider' => 'bestbuy'],\n ['name' => \"Deeds, Not Words [Remaster] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/deeds-not-words-remaster-cd/1038683.p?id=70369&skuId=1038683&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038683', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038683_sa.jpg\"}', 'upc' => '025218630429', 'provider' => 'bestbuy'],\n ['name' => \"The Quintet Plus - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-quintet-plus-cd/1038718.p?id=261525&skuId=1038718&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038718', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038718_sa.jpg\"}', 'upc' => '025218630627', 'provider' => 'bestbuy'],\n ['name' => \"Interplay - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/interplay-cd/1038754.p?id=66126&skuId=1038754&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038754', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038754_sa.jpg\"}', 'upc' => '025218630825', 'provider' => 'bestbuy'],\n ['name' => \"Take Twelve - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/take-twelve-cd/1038790.p?id=69395&skuId=1038790&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038790', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038790_sa.jpg\"}', 'upc' => '025218631020', 'provider' => 'bestbuy'],\n ['name' => \"Sahara - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sahara-cd/1038816.p?id=71605&skuId=1038816&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038816', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038816_sa.jpg\"}', 'upc' => '025218631129', 'provider' => 'bestbuy'],\n ['name' => \"Next Album - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/next-album-cd/1038834.p?id=1535034&skuId=1038834&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038834', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038834.jpg\"}', 'upc' => '025218631228', 'provider' => 'bestbuy'],\n ['name' => \"Song for My Lady - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/song-for-my-lady-cd/1038852.p?id=71607&skuId=1038852&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038852', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038852_sa.jpg\"}', 'upc' => '025218631327', 'provider' => 'bestbuy'],\n ['name' => \"Hampton Hawes Trio, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hampton-hawes-trio-vol-1-cd/1038905.p?id=261453&skuId=1038905&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038905', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038905_sa.jpg\"}', 'upc' => '025218631624', 'provider' => 'bestbuy'],\n ['name' => \"Thelonious Himself: Keepnews Collection (Remastered) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thelonious-himself-keepnews-collection-remastered-cd/1038987.p?id=1905471&skuId=1038987&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1038987', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1038\\/1038987_sa.jpg\"}', 'upc' => '888072305106', 'provider' => 'bestbuy'],\n ['name' => \"Insignia™ - 24\\\" Class (23.6\\\" Diag.) - LED - 720p - HDTV DVD Combo - Black\", 'description_short' => \"Only at Best Buy720p resolution60Hz refresh rate\", 'description_long' => \"Only at Best Buy720p resolution60Hz refresh rate\", 'price' => 169.99, 'sale_price' => 139.99, 'url' => 'http://www.bestbuy.com/site/insignia-24-class-23-6-diag--led-720p-hdtv-dvd-combo-black/1039004.p?id=1219465782596&skuId=1039004&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1039004', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1039\\/1039004_sa.jpg\"}', 'upc' => '600603185175', 'provider' => 'bestbuy'],\n ['name' => \"Mambo with Tjader - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mambo-with-tjader-cd/1039156.p?id=71463&skuId=1039156&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1039156', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1039\\/1039156_sa.jpg\"}', 'upc' => '025218627122', 'provider' => 'bestbuy'],\n ['name' => \"Vol. 3: To Swing or Not to Swing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vol-3-to-swing-or-not-to-swing-cd/1039334.p?id=68208&skuId=1039334&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1039334', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1039\\/1039334.jpg\"}', 'upc' => '025218631723', 'provider' => 'bestbuy'],\n ['name' => \"Misterioso - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/misterioso-cd/1039352.p?id=69285&skuId=1039352&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1039352', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1039\\/1039352_sa.jpg\"}', 'upc' => '025218620628', 'provider' => 'bestbuy'],\n ['name' => \"Phil & Quill with Prestige - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/phil-quill-with-prestige-cd/1039487.p?id=72206&skuId=1039487&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1039487', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1039\\/1039487_sa.jpg\"}', 'upc' => '025218621526', 'provider' => 'bestbuy'],\n ['name' => \"Duke With A Difference - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/duke-with-a-difference-cd/1039584.p?id=1543915&skuId=1039584&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1039584', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1039\\/1039584.jpg\"}', 'upc' => '025218622929', 'provider' => 'bestbuy'],\n ['name' => \"Blues for Dracula - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-for-dracula-cd/1039600.p?id=68062&skuId=1039600&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1039600', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1039\\/1039600_sa.jpg\"}', 'upc' => '025218623025', 'provider' => 'bestbuy'],\n ['name' => \"So Much Guitar! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/so-much-guitar-cd/1039646.p?id=69340&skuId=1039646&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1039646', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1039\\/1039646_sa.jpg\"}', 'upc' => '025218623322', 'provider' => 'bestbuy'],\n ['name' => \"Right Now: Live at the Jazz Workshop - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/right-now-live-at-the-jazz-workshop-cd/1039708.p?id=69186&skuId=1039708&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1039708', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1039\\/1039708_sa.jpg\"}', 'upc' => '025218623728', 'provider' => 'bestbuy'],\n ['name' => \"Kessel Plays Standards - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kessel-plays-standards-cd/1039726.p?id=68202&skuId=1039726&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1039726', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1039\\/1039726_sa.jpg\"}', 'upc' => '025218623827', 'provider' => 'bestbuy'],\n ['name' => \"Jammin' in Hi Fi with Gene Ammons - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jammin-in-hi-fi-with-gene-ammons-cd/1039842.p?id=63688&skuId=1039842&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1039842', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1039\\/1039842_sa.jpg\"}', 'upc' => '025218612920', 'provider' => 'bestbuy'],\n ['name' => \"At the Five Spot, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/at-the-five-spot-vol-1-cd/1039879.p?id=65706&skuId=1039879&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1039879', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1039\\/1039879_sa.jpg\"}', 'upc' => '025218613323', 'provider' => 'bestbuy'],\n ['name' => \"Blue Spring - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-spring-cd/1039897.p?id=1562194&skuId=1039897&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1039897', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1039\\/1039897.jpg\"}', 'upc' => '025218613422', 'provider' => 'bestbuy'],\n ['name' => \"Crazy and Mixed Up - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/crazy-and-mixed-up-cd/1039931.p?id=71675&skuId=1039931&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1039931', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1039\\/1039931_sa.jpg\"}', 'upc' => '025218013727', 'provider' => 'bestbuy'],\n ['name' => \"Strain: Season 1 [4 Discs] (DVD) (Boxed Set)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 24.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/strain-season-1-4-discs-dvd-boxed-set/1040009.p?id=3307627&skuId=1040009&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040009', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040009.jpg\"}', 'upc' => '024543980087', 'provider' => 'bestbuy'],\n ['name' => \"Strain: Season 1 [3 Discs] (Blu-ray Disc) (Boxed Set)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 29.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/strain-season-1-3-discs-blu-ray-disc-boxed-set/1040018.p?id=3307668&skuId=1040018&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040018', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040018.jpg\"}', 'upc' => '024543980100', 'provider' => 'bestbuy'],\n ['name' => \"The Magic Touch of Tadd Dameron - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-magic-touch-of-tadd-dameron-cd/1040019.p?id=65449&skuId=1040019&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040019', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040019_sa.jpg\"}', 'upc' => '025218614320', 'provider' => 'bestbuy'],\n ['name' => \"Portrait of Wes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/portrait-of-wes-cd/1040037.p?id=69338&skuId=1040037&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040037', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040037_sa.jpg\"}', 'upc' => '025218614429', 'provider' => 'bestbuy'],\n ['name' => \"Vince Guaraldi Trio - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vince-guaraldi-trio-cd/1040073.p?id=67036&skuId=1040073&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040073', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040073_sa.jpg\"}', 'upc' => '025218614924', 'provider' => 'bestbuy'],\n ['name' => \"Reunion - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reunion-cd/1040091.p?id=1535022&skuId=1040091&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040091', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040091_sa.jpg\"}', 'upc' => '025218615020', 'provider' => 'bestbuy'],\n ['name' => \"Sunday Jazz a la Lighthouse, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sunday-jazz-a-la-lighthouse-vol-1-cd/1040117.p?id=70525&skuId=1040117&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040117', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040117_sa.jpg\"}', 'upc' => '025218615129', 'provider' => 'bestbuy'],\n ['name' => \"The West Coast Sound, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-west-coast-sound-vol-1-cd/1040126.p?id=68761&skuId=1040126&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040126', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040126_sa.jpg\"}', 'upc' => '025218615228', 'provider' => 'bestbuy'],\n ['name' => \"Easy Like, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/easy-like-vol-1-cd/1040144.p?id=68209&skuId=1040144&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040144', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040144.jpg\"}', 'upc' => '025218615327', 'provider' => 'bestbuy'],\n ['name' => \"The Poll Winners - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-poll-winners-cd/1040180.p?id=68214&skuId=1040180&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040180', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040180_sa.jpg\"}', 'upc' => '025218615624', 'provider' => 'bestbuy'],\n ['name' => \"Presenting Red Mitchell - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/presenting-red-mitchell-cd/1040206.p?id=69209&skuId=1040206&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040206', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040206_sa.jpg\"}', 'upc' => '025218615822', 'provider' => 'bestbuy'],\n ['name' => \"Leroy Walks! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/leroy-walks-cd/1040233.p?id=71759&skuId=1040233&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040233', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040233.jpg\"}', 'upc' => '025218616027', 'provider' => 'bestbuy'],\n ['name' => \"Movin Along - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/movin-along-cd/1040359.p?id=1535028&skuId=1040359&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040359', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040359.jpg\"}', 'upc' => '025218608923', 'provider' => 'bestbuy'],\n ['name' => \"Pairing Off - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pairing-off-cd/1040395.p?id=1562192&skuId=1040395&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040395', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040395.jpg\"}', 'upc' => '025218609227', 'provider' => 'bestbuy'],\n ['name' => \"Blue Haze - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-haze-cd/1040411.p?id=65524&skuId=1040411&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040411', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040411_sa.jpg\"}', 'upc' => '025218609326', 'provider' => 'bestbuy'],\n ['name' => \"Tour de Force - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tour-de-force-cd/1040420.p?id=306030&skuId=1040420&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040420', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040420_sa.jpg\"}', 'upc' => '025218609524', 'provider' => 'bestbuy'],\n ['name' => \"Straight Ahead - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/straight-ahead-cd/1040475.p?id=2291734&skuId=1040475&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040475', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040475.jpg\"}', 'upc' => '025218609920', 'provider' => 'bestbuy'],\n ['name' => \"The Dave Brubeck Octet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-dave-brubeck-octet-cd/1040484.p?id=64639&skuId=1040484&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040484', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040484_sa.jpg\"}', 'upc' => '025218610124', 'provider' => 'bestbuy'],\n ['name' => \"This Here Is Bobby Timmons - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/this-here-is-bobby-timmons-cd/1040527.p?id=71433&skuId=1040527&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040527', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040527_sa.jpg\"}', 'upc' => '025218610421', 'provider' => 'bestbuy'],\n ['name' => \"Bossa Nova Pelos Passaros - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bossa-nova-pelos-passaros-cd/1040572.p?id=64747&skuId=1040572&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040572', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040572.jpg\"}', 'upc' => '025218610728', 'provider' => 'bestbuy'],\n ['name' => \"Jazz at Massey Hall, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazz-at-massey-hall-vol-2-cd/1040625.p?id=70128&skuId=1040625&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040625', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040625_sa.jpg\"}', 'upc' => '025218611121', 'provider' => 'bestbuy'],\n ['name' => \"Stan Getz Quartets - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stan-getz-quartets-cd/1040652.p?id=66617&skuId=1040652&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040652', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040652_sa.jpg\"}', 'upc' => '025218612128', 'provider' => 'bestbuy'],\n ['name' => \"Tenor Madness - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tenor-madness-cd/1040670.p?id=70468&skuId=1040670&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040670', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040670_sa.jpg\"}', 'upc' => '025218612425', 'provider' => 'bestbuy'],\n ['name' => \"Moving Out - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moving-out-cd/1040732.p?id=1535026&skuId=1040732&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040732', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040732.jpg\"}', 'upc' => '025218605823', 'provider' => 'bestbuy'],\n ['name' => \"Kaleidoscope - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kaleidoscope-cd/1040778.p?id=71152&skuId=1040778&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040778', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040778_sa.jpg\"}', 'upc' => '025218606028', 'provider' => 'bestbuy'],\n ['name' => \"The Unique Thelonious Monk - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-unique-thelonious-monk-cd/1040812.p?id=69299&skuId=1040812&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040812', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040812_sa.jpg\"}', 'upc' => '025218606424', 'provider' => 'bestbuy'],\n ['name' => \"Abbey Is Blue - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/abbey-is-blue-cd/1040867.p?id=68589&skuId=1040867&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040867', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040867_sa.jpg\"}', 'upc' => '025218606929', 'provider' => 'bestbuy'],\n ['name' => \"The Cats - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-cats-cd/1040974.p?id=306031&skuId=1040974&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1040974', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1040\\/1040974_sa.jpg\"}', 'upc' => '025218607926', 'provider' => 'bestbuy'],\n ['name' => \"The Rat Race Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-rat-race-blues-cd/1041009.p?id=2276859&skuId=1041009&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041009', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041009.jpg\"}', 'upc' => '025218608121', 'provider' => 'bestbuy'],\n ['name' => \"The Quest - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-quest-cd/1041027.p?id=71796&skuId=1041027&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041027', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041027_sa.jpg\"}', 'upc' => '025218608220', 'provider' => 'bestbuy'],\n ['name' => \"Bill Harris and Friends - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bill-harris-and-friends-cd/1041036.p?id=67209&skuId=1041036&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041036', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041036_sa.jpg\"}', 'upc' => '025218608329', 'provider' => 'bestbuy'],\n ['name' => \"MJQ - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mjq-cd/1041063.p?id=1849305&skuId=1041063&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041063', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041063.jpg\"}', 'upc' => '025218612524', 'provider' => 'bestbuy'],\n ['name' => \"Harold In The Land Of Jazz - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/harold-in-the-land-of-jazz-cd/1041072.p?id=1550579&skuId=1041072&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041072', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041072_sa.jpg\"}', 'upc' => '025218616225', 'provider' => 'bestbuy'],\n ['name' => \"Benny Golson's New York Scene [Bonus Track] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/benny-golsons-new-york-scene-bonus-track-cd/1041116.p?id=66731&skuId=1041116&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041116', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041116_sa.jpg\"}', 'upc' => '025218616423', 'provider' => 'bestbuy'],\n ['name' => \"Four - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/four-cd/1041125.p?id=287998&skuId=1041125&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041125', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041125.jpg\"}', 'upc' => '025218616522', 'provider' => 'bestbuy'],\n ['name' => \"Portrait of Art Farmer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/portrait-of-art-farmer-cd/1041134.p?id=66192&skuId=1041134&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041134', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041134_sa.jpg\"}', 'upc' => '025218616621', 'provider' => 'bestbuy'],\n ['name' => \"Jazz Giant - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazz-giant-cd/1041143.p?id=64846&skuId=1041143&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041143', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041143_sa.jpg\"}', 'upc' => '025218616720', 'provider' => 'bestbuy'],\n ['name' => \"A Garland of Red - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-garland-of-red-cd/1041205.p?id=66527&skuId=1041205&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041205', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041205_sa.jpg\"}', 'upc' => '025218612623', 'provider' => 'bestbuy'],\n ['name' => \"Tenor Conclave - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tenor-conclave-various-cd/1041223.p?id=1535020&skuId=1041223&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041223', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041223.jpg\"}', 'upc' => '025218612722', 'provider' => 'bestbuy'],\n ['name' => \"Songs I Like to Sing! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/songs-i-like-to-sing-cd/1041241.p?id=67664&skuId=1041241&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041241', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041241_sa.jpg\"}', 'upc' => '025218617123', 'provider' => 'bestbuy'],\n ['name' => \"The Three and the Two - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-three-and-the-two-cd/1041269.p?id=68747&skuId=1041269&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041269', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041269_sa.jpg\"}', 'upc' => '025218617222', 'provider' => 'bestbuy'],\n ['name' => \"A World of Piano! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-world-of-piano-cd/1041278.p?id=69597&skuId=1041278&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041278', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041278_sa.jpg\"}', 'upc' => '025218617529', 'provider' => 'bestbuy'],\n ['name' => \"Smack Up - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/smack-up-cd/1041287.p?id=1543914&skuId=1041287&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041287', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041287_sa.jpg\"}', 'upc' => '025218617628', 'provider' => 'bestbuy'],\n ['name' => \"Subconscious-Lee [Prestige] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/subconscious-lee-prestige-cd/1041349.p?id=68316&skuId=1041349&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041349', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041349_sa.jpg\"}', 'upc' => '025218618625', 'provider' => 'bestbuy'],\n ['name' => \"Blue Gene - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-gene-cd/1041410.p?id=2310055&skuId=1041410&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041410', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041410_sa.jpg\"}', 'upc' => '025218619226', 'provider' => 'bestbuy'],\n ['name' => \"All Kinds of Weather - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-kinds-of-weather-cd/1041429.p?id=66528&skuId=1041429&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041429', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041429.jpg\"}', 'upc' => '025218619325', 'provider' => 'bestbuy'],\n ['name' => \"Lucky Strikes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/lucky-strikes-cd/1041447.p?id=71413&skuId=1041447&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041447', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041447_sa.jpg\"}', 'upc' => '025218619424', 'provider' => 'bestbuy'],\n ['name' => \"Brubeck A La Mode - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/brubeck-a-la-mode-cd/1041508.p?id=1548518&skuId=1041508&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041508', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041508.jpg\"}', 'upc' => '025218620024', 'provider' => 'bestbuy'],\n ['name' => \"Introducing Paul Bley - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/introducing-paul-bley-cd/1041517.p?id=64398&skuId=1041517&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041517', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041517_sa.jpg\"}', 'upc' => '025218620123', 'provider' => 'bestbuy'],\n ['name' => \"Gettin' Together! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gettin-together-cd/1041535.p?id=66740&skuId=1041535&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041535', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041535_sa.jpg\"}', 'upc' => '025218620321', 'provider' => 'bestbuy'],\n ['name' => \"Monk - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/monk-cd/1041599.p?id=69288&skuId=1041599&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041599', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041599_sa.jpg\"}', 'upc' => '025218601627', 'provider' => 'bestbuy'],\n ['name' => \"Memorial - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/memorial-cd/1041615.p?id=261490&skuId=1041615&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041615', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041615_sa.jpg\"}', 'upc' => '025218601726', 'provider' => 'bestbuy'],\n ['name' => \"Coltrane [Prestige] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/coltrane-prestige-cd/1041633.p?id=65135&skuId=1041633&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041633', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041633_sa.jpg\"}', 'upc' => '025218602020', 'provider' => 'bestbuy'],\n ['name' => \"A Wes Montgomery Trio [DigDownLoad] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-wes-montgomery-trio-digdownload-cd/1041786.p?id=69347&skuId=1041786&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041786', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041786_sa.jpg\"}', 'upc' => '025218603423', 'provider' => 'bestbuy'],\n ['name' => \"Bootlegs & B-Sides [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bootlegs-b-sides-pa-cd/1041795.p?id=110862&skuId=1041795&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041795', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041795_sa.jpg\"}', 'upc' => '049925392128', 'provider' => 'bestbuy'],\n ['name' => \"Explorations - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/explorations-cd/1041811.p?id=1365861&skuId=1041811&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041811', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041811_sa.jpg\"}', 'upc' => '025218003728', 'provider' => 'bestbuy'],\n ['name' => \"George Shearing & Montgomery Brothers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/george-shearing-montgomery-brothers-cd/1041839.p?id=2294118&skuId=1041839&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041839', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041839_sa.jpg\"}', 'upc' => '025218604024', 'provider' => 'bestbuy'],\n ['name' => \"Town Hall Concert, 1964 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/town-hall-concert-1964-cd/1041857.p?id=69193&skuId=1041857&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041857', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041857_sa.jpg\"}', 'upc' => '025218604222', 'provider' => 'bestbuy'],\n ['name' => \"Blue Moods - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-moods-cd/1041875.p?id=65525&skuId=1041875&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041875', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041875.jpg\"}', 'upc' => '025218604321', 'provider' => 'bestbuy'],\n ['name' => \"Jazz at Massey Hall [Cassette] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazz-at-massey-hall-cassette-cd/1041893.p?id=70216&skuId=1041893&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041893', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041893.jpg\"}', 'upc' => '025218604420', 'provider' => 'bestbuy'],\n ['name' => \"Mingus at the Bohemia - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mingus-at-the-bohemia-cd/1041919.p?id=69177&skuId=1041919&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041919', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041919_sa.jpg\"}', 'upc' => '025218604529', 'provider' => 'bestbuy'],\n ['name' => \"Jazz at the College of the Pacific - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazz-at-the-college-of-the-pacific-cd/1041955.p?id=64645&skuId=1041955&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041955', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041955_sa.jpg\"}', 'upc' => '025218604727', 'provider' => 'bestbuy'],\n ['name' => \"Wardell Gray Memorial, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wardell-gray-memorial-vol-1-cd/1041973.p?id=66908&skuId=1041973&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1041973', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1041\\/1041973.jpg\"}', 'upc' => '025218605021', 'provider' => 'bestbuy'],\n ['name' => \"Attainable Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/attainable-love-cd/1042017.p?id=2542452&skuId=1042017&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1042017', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1042\\/1042017_sa.jpg\"}', 'upc' => '011671113227', 'provider' => 'bestbuy'],\n ['name' => \"Isaac Mizrahi New York - Hard Shell Case for Apple° iPhone° 6 Plus and 6s Plus - Pink Stripes\", 'description_short' => \"Only at Best Buy\nCompatible with Apple iPhone 6 Plus and 6s Plus; polycarbonate shell; inner TPU construction; play-through design\", 'description_long' => \"Only at Best Buy\nCompatible with Apple iPhone 6 Plus and 6s Plus; polycarbonate shell; inner TPU construction; play-through design\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/isaac-mizrahi-new-york-hard-shell-case-for-apple-iphone-6-plus-and-6s-plus-pink-stripes/1042025.p?id=1219461889366&skuId=1042025&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1042025', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1042\\/1042025_sa.jpg\"}', 'upc' => '5031300084679', 'provider' => 'bestbuy'],\n ['name' => \"Nanette Lepore - Hard Shell Case for Apple° iPhone° 6 and 6s - Multicolor Stripes\", 'description_short' => \"Only at Best Buy\nCompatible with Apple iPhone 6 and 6s; polycarbonate shell; inner TPU construction; play-through design\", 'description_long' => \"Only at Best Buy\nCompatible with Apple iPhone 6 and 6s; polycarbonate shell; inner TPU construction; play-through design\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nanette-lepore-hard-shell-case-for-apple-iphone-6-and-6s-multicolor-stripes/1042043.p?id=1219461889368&skuId=1042043&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1042043', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1042\\/1042043_sa.jpg\"}', 'upc' => '5031300084686', 'provider' => 'bestbuy'],\n ['name' => \"When October Goes: Autumn Love Songs - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/when-october-goes-autumn-love-songs-cd-various/1042259.p?id=103852&skuId=1042259&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1042259', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1042\\/1042259_sa.jpg\"}', 'upc' => '011671114323', 'provider' => 'bestbuy'],\n ['name' => \"Standing Eight - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/standing-eight-cd/1042687.p?id=92332&skuId=1042687&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1042687', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1042\\/1042687_sa.jpg\"}', 'upc' => '011671112329', 'provider' => 'bestbuy'],\n ['name' => \"Just in Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/just-in-time-cd/1042703.p?id=93664&skuId=1042703&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1042703', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1042\\/1042703_sa.jpg\"}', 'upc' => '011671112428', 'provider' => 'bestbuy'],\n ['name' => \"Swingin' Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/swingin-blues-cd/1042856.p?id=66419&skuId=1042856&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1042856', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1042\\/1042856_sa.jpg\"}', 'upc' => '014921100220', 'provider' => 'bestbuy'],\n ['name' => \"Merry Christmas From Our House To Your House - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/merry-christmas-from-our-house-to-your-house-cd/1042883.p?id=103763&skuId=1042883&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1042883', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1042\\/1042883_sa.jpg\"}', 'upc' => '014921200029', 'provider' => 'bestbuy'],\n ['name' => \"A Musical Anthology [Box] [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 33.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-musical-anthology-box-box-cd/1042936.p?id=103756&skuId=1042936&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1042936', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1042\\/1042936_sa.jpg\"}', 'upc' => '014921100428', 'provider' => 'bestbuy'],\n ['name' => \"Salutes the Big Bands - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/salutes-the-big-bands-cd/1042954.p?id=103768&skuId=1042954&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1042954', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1042\\/1042954_sa.jpg\"}', 'upc' => '014921201224', 'provider' => 'bestbuy'],\n ['name' => \"Close Harmony - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/close-harmony-cd/1042972.p?id=91783&skuId=1042972&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1042972', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1042\\/1042972_sa.jpg\"}', 'upc' => '014921201323', 'provider' => 'bestbuy'],\n ['name' => \"Plays Your Favorite Waltzes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/plays-your-favorite-waltzes-cd/1042990.p?id=90177&skuId=1042990&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1042990', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1042\\/1042990_sa.jpg\"}', 'upc' => '014921201422', 'provider' => 'bestbuy'],\n ['name' => \"All Time Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-time-hits-cd/1043016.p?id=81822&skuId=1043016&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1043016', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1043\\/1043016_sa.jpg\"}', 'upc' => '014921201521', 'provider' => 'bestbuy'],\n ['name' => \"Please Play a Polka - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/please-play-a-polka-cd/1043034.p?id=137094&skuId=1043034&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1043034', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1043\\/1043034_sa.jpg\"}', 'upc' => '014921201620', 'provider' => 'bestbuy'],\n ['name' => \"22 Great Polkas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/22-great-polkas-cd/1043052.p?id=82486&skuId=1043052&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1043052', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1043\\/1043052.jpg\"}', 'upc' => '014921700529', 'provider' => 'bestbuy'],\n ['name' => \"22 Great Ragtime Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/22-great-ragtime-hits-cd/1043061.p?id=77063&skuId=1043061&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1043061', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1043\\/1043061_sa.jpg\"}', 'upc' => '014921700727', 'provider' => 'bestbuy'],\n ['name' => \"22 Great Songs for Dancing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/22-great-songs-for-dancing-cd/1043070.p?id=103754&skuId=1043070&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1043070', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1043\\/1043070_sa.jpg\"}', 'upc' => '014921700925', 'provider' => 'bestbuy'],\n ['name' => \"22 Great Songs of Faith - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/22-great-songs-of-faith-cd/1043089.p?id=84499&skuId=1043089&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1043089', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1043\\/1043089_sa.jpg\"}', 'upc' => '014921701120', 'provider' => 'bestbuy'],\n ['name' => \"22 All Time Organ Favorites - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/22-all-time-organ-favorites-cd/1043098.p?id=99222&skuId=1043098&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1043098', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1043\\/1043098_sa.jpg\"}', 'upc' => '014921701922', 'provider' => 'bestbuy'],\n ['name' => \"22 All Time Favorite Waltzes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/22-all-time-favorite-waltzes-cd/1043114.p?id=103752&skuId=1043114&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1043114', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1043\\/1043114_sa.jpg\"}', 'upc' => '014921702820', 'provider' => 'bestbuy'],\n ['name' => \"Dance to the Big Band Sounds - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dance-to-the-big-band-sounds-cd/1043141.p?id=103759&skuId=1043141&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1043141', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1043\\/1043141_sa.jpg\"}', 'upc' => '014921822825', 'provider' => 'bestbuy'],\n ['name' => \"World's Greatest Polkas - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/worlds-greatest-polkas-cd/1043169.p?id=103770&skuId=1043169&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1043169', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1043\\/1043169.jpg\"}', 'upc' => '014921823020', 'provider' => 'bestbuy'],\n ['name' => \"Two on One - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-on-one-cd/1043178.p?id=91792&skuId=1043178&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1043178', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1043\\/1043178_sa.jpg\"}', 'upc' => '014921823228', 'provider' => 'bestbuy'],\n ['name' => \"Altec - Hard Shell Fashion Case for Apple® iPhone® 5 and 5s - Purple/Gray\", 'description_short' => \"ALTEC Hard Shell Fashion Case for Apple iPhone 5 and 5s: Compatible with Apple iPhone 5 and 5s; scratch-resistant material; play-through design; shock-resistant up to 2&#039;\", 'description_long' => \"ALTEC Hard Shell Fashion Case for Apple iPhone 5 and 5s: Compatible with Apple iPhone 5 and 5s; scratch-resistant material; play-through design; shock-resistant up to 2&#039;\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/altec-hard-shell-fashion-case-for-apple-iphone-5-and-5s-purple-gray/1044069.p?id=1219461498176&skuId=1044069', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1044069', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1044\\/1044069_sa.jpg\"}', 'upc' => '810532023763', 'provider' => 'bestbuy'],\n ['name' => \"Altec - 4000 mAh Power Bank - Black\", 'description_short' => \"ALTEC 4000 mAh Power Bank: Compatible with most USB-enabled mobile devices; USB interface; built-in lithium-ion battery; up to 500 hours of standby time; overload protection; soft rubberized finish\", 'description_long' => \"ALTEC 4000 mAh Power Bank: Compatible with most USB-enabled mobile devices; USB interface; built-in lithium-ion battery; up to 500 hours of standby time; overload protection; soft rubberized finish\", 'price' => 29.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/altec-4000-mah-power-bank-black/1044101.p?id=1219461503840&skuId=1044101', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1044101', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1044\\/1044101_sa.jpg\"}', 'upc' => '810532023343', 'provider' => 'bestbuy'],\n ['name' => \"Altec - 4000 mAh Power Bank - Blue\", 'description_short' => \"ALTEC 4000 mAh Power Bank: Compatible with most USB-enabled mobile devices; USB interface; built-in lithium-ion battery; up to 500 hours of standby time; overload protection; soft rubberized finish\", 'description_long' => \"ALTEC 4000 mAh Power Bank: Compatible with most USB-enabled mobile devices; USB interface; built-in lithium-ion battery; up to 500 hours of standby time; overload protection; soft rubberized finish\", 'price' => 29.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/altec-4000-mah-power-bank-blue/1044174.p?id=1219461499071&skuId=1044174', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1044174', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1044\\/1044174_sa.jpg\"}', 'upc' => '810532023350', 'provider' => 'bestbuy'],\n ['name' => \"Altec - Hard Shell Power Case for Samsung Galaxy S 4 Cell Phones - White\", 'description_short' => \"ALTEC Hard Shell Power Case for Samsung Galaxy S 4 Cell Phones: Compatible with Samsung Galaxy S 4 cell phones; built-in kickstand; power button with LED power indicator; shock resistant; play-through design\", 'description_long' => \"ALTEC Hard Shell Power Case for Samsung Galaxy S 4 Cell Phones: Compatible with Samsung Galaxy S 4 cell phones; built-in kickstand; power button with LED power indicator; shock resistant; play-through design\", 'price' => 49.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/altec-hard-shell-power-case-for-samsung-galaxy-s-4-cell-phones-white/1044289.p?id=1219461500496&skuId=1044289', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1044289', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1044\\/1044289_sa.jpg\"}', 'upc' => '810532023695', 'provider' => 'bestbuy'],\n ['name' => \"Altec - Sport Armband for Apple® iPhone® 4, 4S, 5 and 5s - Pink\", 'description_short' => \"ALTEC Sport Armband for Apple iPhone 4, 4S, 5 and 5s: Compatible with Apple iPhone 4, 4S, 5 and 5s and iPod touch; adjusts to arm diameters from 5&quot; to 7&quot;; mesh fabric; key compartment; built-in wallet; headphone port access\", 'description_long' => \"ALTEC Sport Armband for Apple iPhone 4, 4S, 5 and 5s: Compatible with Apple iPhone 4, 4S, 5 and 5s and iPod touch; adjusts to arm diameters from 5&quot; to 7&quot;; mesh fabric; key compartment; built-in wallet; headphone port access\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/altec-sport-armband-for-apple-iphone-4-4s-5-and-5s-pink/1044302.p?id=1219461503585&skuId=1044302&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1044302', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1044\\/1044302_sa.jpg\"}', 'upc' => '810532022421', 'provider' => 'bestbuy'],\n ['name' => \"Altec - Sport Armband Case for Samsung Galaxy S III and S 4 Cell Phones - White\", 'description_short' => \"ALTEC Sport Armband Case for Samsung Galaxy S III and S 4 Cell Phones: Compatible with Samsung Galaxy S III and S 4 cell phones as well as most Android devices; adjustable arm diameter from 5&quot; to 7&quot;; built-in wallet; includes key compartment\", 'description_long' => \"ALTEC Sport Armband Case for Samsung Galaxy S III and S 4 Cell Phones: Compatible with Samsung Galaxy S III and S 4 cell phones as well as most Android devices; adjustable arm diameter from 5&quot; to 7&quot;; built-in wallet; includes key compartment\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/altec-sport-armband-case-for-samsung-galaxy-s-iii-and-s-4-cell-phones-white/1044311.p?id=1219461498111&skuId=1044311', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1044311', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1044\\/1044311_sa.jpg\"}', 'upc' => '810532022445', 'provider' => 'bestbuy'],\n ['name' => \"Altec - 4000 mAh Power Bank - Pink\", 'description_short' => \"ALTEC 4000 mAh Power Bank: Compatible with most USB-enabled mobile devices; USB interface; built-in lithium-ion battery; up to 500 hours of standby time; overload protection; soft rubberized finish\", 'description_long' => \"ALTEC 4000 mAh Power Bank: Compatible with most USB-enabled mobile devices; USB interface; built-in lithium-ion battery; up to 500 hours of standby time; overload protection; soft rubberized finish\", 'price' => 29.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/altec-4000-mah-power-bank-pink/1044339.p?id=1219461502123&skuId=1044339', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1044339', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1044\\/1044339_sa.jpg\"}', 'upc' => '810532023367', 'provider' => 'bestbuy'],\n ['name' => \"Altec - Sport Armband Case for Samsung Galaxy S III and S 4 Cell Phones - Pink\", 'description_short' => \"ALTEC Sport Armband Case for Samsung Galaxy S III and S 4 Cell Phones: Compatible with Samsung Galaxy S III and S 4 cell phones as well as most Android devices; adjustable arm diameter from 5&quot; to 7&quot;; built-in wallet; includes key compartment\", 'description_long' => \"ALTEC Sport Armband Case for Samsung Galaxy S III and S 4 Cell Phones: Compatible with Samsung Galaxy S III and S 4 cell phones as well as most Android devices; adjustable arm diameter from 5&quot; to 7&quot;; built-in wallet; includes key compartment\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/altec-sport-armband-case-for-samsung-galaxy-s-iii-and-s-4-cell-phones-pink/1044348.p?id=1219461499006&skuId=1044348', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1044348', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1044\\/1044348_sa.jpg\"}', 'upc' => '810532022452', 'provider' => 'bestbuy'],\n ['name' => \"Altec - Sport Armband Case for Samsung Galaxy S III and S 4 Cell Phones - Blue\", 'description_short' => \"ALTEC Sport Armband Case for Samsung Galaxy S III and S 4 Cell Phones: Compatible with Samsung Galaxy S III and S 4 cell phones as well as most Android devices; adjustable arm diameter from 5&quot; to 7&quot;; built-in wallet; includes key compartment\", 'description_long' => \"ALTEC Sport Armband Case for Samsung Galaxy S III and S 4 Cell Phones: Compatible with Samsung Galaxy S III and S 4 cell phones as well as most Android devices; adjustable arm diameter from 5&quot; to 7&quot;; built-in wallet; includes key compartment\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/altec-sport-armband-case-for-samsung-galaxy-s-iii-and-s-4-cell-phones-blue/1044357.p?id=1219461502824&skuId=1044357', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1044357', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1044\\/1044357_sa.jpg\"}', 'upc' => '810532022469', 'provider' => 'bestbuy'],\n ['name' => \"Car Tunes - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/car-tunes-cd/1045791.p?id=2947345&skuId=1045791&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1045791', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1045\\/1045791.jpg\"}', 'upc' => '013437013529', 'provider' => 'bestbuy'],\n ['name' => \"Money Talks - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/money-talks-cd/1045933.p?id=73924&skuId=1045933&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1045933', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1045\\/1045933_sa.jpg\"}', 'upc' => '025218410625', 'provider' => 'bestbuy'],\n ['name' => \"Soul Limbo - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/soul-limbo-cd/1046004.p?id=75532&skuId=1046004&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046004', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046004_sa.jpg\"}', 'upc' => '025218411325', 'provider' => 'bestbuy'],\n ['name' => \"Melting Pot - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/melting-pot-cd/1046013.p?id=75531&skuId=1046013&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046013', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046013_sa.jpg\"}', 'upc' => '025218852128', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Tampa Bay Buccaneers Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Tampa Bay Buccaneers Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK Tampa Bay Buccaneers Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-tampa-bay-buccaneers-bumper-case-for-apple-iphone-6-black/1046049.p?id=1219461497413&skuId=1046049', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046049', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046049_sa.jpg\"}', 'upc' => '681620763294', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Dallas Cowboys Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Dallas Cowboys Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK Dallas Cowboys Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-dallas-cowboys-bumper-case-for-apple-iphone-6-black/1046058.p?id=1219461499201&skuId=1046058', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046058', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046058_sa.jpg\"}', 'upc' => '681620763096', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Miami Dolphins Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Miami Dolphins Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK Miami Dolphins Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-miami-dolphins-bumper-case-for-apple-iphone-6-black/1046067.p?id=1219461501007&skuId=1046067', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046067', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046067_sa.jpg\"}', 'upc' => '681620763164', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Mad Lads - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-mad-lads-cd/1046086.p?id=90098&skuId=1046086&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046086', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046086_sa.jpg\"}', 'upc' => '025218852524', 'provider' => 'bestbuy'],\n ['name' => \"Big Hero 6: Battle in the Bay - PRE-OWNED - Nintendo 3DS\", 'description_short' => \"Use your unique superhero abilities to fight enemies\", 'description_long' => \"Use your unique superhero abilities to fight enemies\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-hero-6-battle-in-the-bay-pre-owned-nintendo-3ds/1046109.p?id=1219461501660&skuId=1046109&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046109', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046109_sa.jpg\"}', 'upc' => '799007840381', 'provider' => 'bestbuy'],\n ['name' => \"Who's Making Love... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/whos-making-love-cd/1046111.p?id=101261&skuId=1046111&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046111', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046111_sa.jpg\"}', 'upc' => '025218411523', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Buffalo Bills Bump Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Buffalo Bills Bump Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; team design\", 'description_long' => \"TEAM PROMARK Buffalo Bills Bump Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; team design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-buffalo-bills-bump-case-for-apple-iphone-6-black/1046118.p?id=1219461501006&skuId=1046118', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046118', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046118_sa.jpg\"}', 'upc' => '681620763041', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL St. Louis Rams Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK St. Louis Rams Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK St. Louis Rams Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-st-louis-rams-bumper-case-for-apple-iphone-6-black/1046136.p?id=1219461496035&skuId=1046136', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046136', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046136_sa.jpg\"}', 'upc' => '681620763287', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL New York Jets Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK New York Jets Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK New York Jets Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-new-york-jets-bumper-case-for-apple-iphone-6-black/1046145.p?id=1219461496034&skuId=1046145', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046145', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046145_sa.jpg\"}', 'upc' => '681620763218', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Arizona Cardinals Bump Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Arizona Cardinals Bump Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; team design\", 'description_long' => \"TEAM PROMARK Arizona Cardinals Bump Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; team design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-arizona-cardinals-bump-case-for-apple-iphone-6-black/1046154.p?id=1219461502450&skuId=1046154', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046154', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046154_sa.jpg\"}', 'upc' => '681620763010', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Atlanta Falcons Bump Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Atlanta Falcons Bump Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; team design\", 'description_long' => \"TEAM PROMARK Atlanta Falcons Bump Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; team design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-atlanta-falcons-bump-case-for-apple-iphone-6-black/1046163.p?id=1219461496032&skuId=1046163', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046163', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046163_sa.jpg\"}', 'upc' => '681620763027', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL San Diego Chargers Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK San Diego Chargers Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK San Diego Chargers Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-san-diego-chargers-bumper-case-for-apple-iphone-6-black/1046172.p?id=1219461498500&skuId=1046172', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046172', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046172_sa.jpg\"}', 'upc' => '681620763256', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Washington Redskins Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Washington Redskins Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK Washington Redskins Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-washington-redskins-bumper-case-for-apple-iphone-6-black/1046181.p?id=1219461496038&skuId=1046181', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046181', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046181_sa.jpg\"}', 'upc' => '681620763317', 'provider' => 'bestbuy'],\n ['name' => \"Chronicle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chronicle-cd/1046184.p?id=99521&skuId=1046184&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046184', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046184_sa.jpg\"}', 'upc' => '025218412025', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Jacksonville Jaguars Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Jacksonville Jaguars Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK Jacksonville Jaguars Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-jacksonville-jaguars-bumper-case-for-apple-iphone-6-black/1046205.p?id=1219461503337&skuId=1046205', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046205', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046205_sa.jpg\"}', 'upc' => '681620763140', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Oakland Raiders Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Oakland Raiders Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK Oakland Raiders Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-oakland-raiders-bumper-case-for-apple-iphone-6-black/1046214.p?id=1219461501273&skuId=1046214', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046214', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046214_sa.jpg\"}', 'upc' => '681620763225', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Tennessee Titans Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Tennessee Titans Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK Tennessee Titans Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-tennessee-titans-bumper-case-for-apple-iphone-6-black/1046232.p?id=1219461499972&skuId=1046232', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046232', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046232_sa.jpg\"}', 'upc' => '681620763300', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Pittsburgh Steelers Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Pittsburgh Steelers Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK Pittsburgh Steelers Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-pittsburgh-steelers-bumper-case-for-apple-iphone-6-black/1046241.p?id=1219461499328&skuId=1046241', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046241', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046241_sa.jpg\"}', 'upc' => '681620763249', 'provider' => 'bestbuy'],\n ['name' => \"Joy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/joy-cd/1046246.p?id=85062&skuId=1046246&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046246', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046246_sa.jpg\"}', 'upc' => '025218853026', 'provider' => 'bestbuy'],\n ['name' => \"The Booker T. Set - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-booker-t-set-cd/1046264.p?id=75535&skuId=1046264&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046264', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046264_sa.jpg\"}', 'upc' => '025218853125', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Indianapolis Colts Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Indianapolis Colts Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK Indianapolis Colts Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-indianapolis-colts-bumper-case-for-apple-iphone-6-black/1046269.p?id=1219461497598&skuId=1046269', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046269', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046269_sa.jpg\"}', 'upc' => '681620763133', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Cincinnati Bengals Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Cincinnati Bengals Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK Cincinnati Bengals Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-cincinnati-bengals-bumper-case-for-apple-iphone-6-black/1046278.p?id=1219461502822&skuId=1046278', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046278', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046278_sa.jpg\"}', 'upc' => '681620763072', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Kansas City Chiefs Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Kansas City Chiefs Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK Kansas City Chiefs Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-kansas-city-chiefs-bumper-case-for-apple-iphone-6-black/1046287.p?id=1219461497926&skuId=1046287', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046287', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046287_sa.jpg\"}', 'upc' => '681620763157', 'provider' => 'bestbuy'],\n ['name' => \"I Wanna Get Funky - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-wanna-get-funky-cd/1046317.p?id=87882&skuId=1046317&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046317', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046317_sa.jpg\"}', 'upc' => '025218853620', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Cleveland Browns Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Cleveland Browns Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK Cleveland Browns Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-cleveland-browns-bumper-case-for-apple-iphone-6-black/1046319.p?id=1219461499329&skuId=1046319', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046319', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046319_sa.jpg\"}', 'upc' => '681620763089', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Minnesota Vikings Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Minnesota Vikings Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK Minnesota Vikings Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-minnesota-vikings-bumper-case-for-apple-iphone-6-black/1046328.p?id=1219461503338&skuId=1046328', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046328', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046328_sa.jpg\"}', 'upc' => '681620763171', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Denver Broncos Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Denver Broncos Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK Denver Broncos Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-denver-broncos-bumper-case-for-apple-iphone-6-black/1046346.p?id=1219461499715&skuId=1046346', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046346', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046346_sa.jpg\"}', 'upc' => '681620763102', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL New Orleans Saints Bumper Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK New Orleans Saints Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'description_long' => \"TEAM PROMARK New Orleans Saints Bumper Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; raised bezel; team-specific design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-new-orleans-saints-bumper-case-for-apple-iphone-6-black/1046355.p?id=1219461498241&skuId=1046355', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046355', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046355_sa.jpg\"}', 'upc' => '681620763195', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Rance Allen Group - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-rance-allen-group-cd/1046362.p?id=72752&skuId=1046362&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046362', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046362_sa.jpg\"}', 'upc' => '025218854023', 'provider' => 'bestbuy'],\n ['name' => \"Team ProMark - NFL Carolina Panthers Bump Case for Apple® iPhone® 6 - Black\", 'description_short' => \"TEAM PROMARK Carolina Panthers Bump Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; team design\", 'description_long' => \"TEAM PROMARK Carolina Panthers Bump Case for Apple iPhone 6: Compatible with Apple iPhone 6; PC and TPU materials; rubber edges; team design\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/team-promark-nfl-carolina-panthers-bump-case-for-apple-iphone-6-black/1046364.p?id=1219461496036&skuId=1046364', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046364', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046364_sa.jpg\"}', 'upc' => '681620763058', 'provider' => 'bestbuy'],\n ['name' => \"The Best of William Bell - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-william-bell-cd/1046380.p?id=74379&skuId=1046380&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046380', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046380.jpg\"}', 'upc' => '025218854122', 'provider' => 'bestbuy'],\n ['name' => \"The Live - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-live-cd/1046451.p?id=80923&skuId=1046451&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046451', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046451_sa.jpg\"}', 'upc' => '025218854528', 'provider' => 'bestbuy'],\n ['name' => \"Blues at Sunrise: Live at Montreux - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-at-sunrise-live-at-montreux-cd/1046479.p?id=87877&skuId=1046479&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046479', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046479_sa.jpg\"}', 'upc' => '025218854627', 'provider' => 'bestbuy'],\n ['name' => \"Chronicle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chronicle-cd/1046503.p?id=81546&skuId=1046503&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046503', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046503_sa.jpg\"}', 'upc' => '025218412124', 'provider' => 'bestbuy'],\n ['name' => \"Chronicle: Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chronicle-greatest-hits-cd/1046558.p?id=82504&skuId=1046558&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046558', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046558_sa.jpg\"}', 'upc' => '025218412223', 'provider' => 'bestbuy'],\n ['name' => \"Chronicle - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chronicle-cd/1046567.p?id=87907&skuId=1046567&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046567', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046567_sa.jpg\"}', 'upc' => '025218412322', 'provider' => 'bestbuy'],\n ['name' => \"Chicago Fire: Season 1 [5 Discs] (DVD) (Boxed Set)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chicago-fire-season-1-5-discs-dvd-boxed-set/1046575.p?id=3276603&skuId=1046575&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046575', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046575_sa.jpg\"}', 'upc' => '025192165696', 'provider' => 'bestbuy'],\n ['name' => \"Chronicle: Their Greatest Stax Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/chronicle-their-greatest-stax-hits-cd/1046585.p?id=101678&skuId=1046585&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046585', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046585_sa.jpg\"}', 'upc' => '025218412421', 'provider' => 'bestbuy'],\n ['name' => \"Live Wire/Blues Power - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-wire-blues-power-cd/1046594.p?id=87888&skuId=1046594&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046594', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046594_sa.jpg\"}', 'upc' => '025218412827', 'provider' => 'bestbuy'],\n ['name' => \"A Dramatic Experience - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-dramatic-experience-cd/1046638.p?id=80918&skuId=1046638&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046638', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046638_sa.jpg\"}', 'upc' => '025218413121', 'provider' => 'bestbuy'],\n ['name' => \"Top of the Stax: Twenty Greatest Hits - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/top-of-the-stax-twenty-greatest-hits-cd-various/1046674.p?id=100210&skuId=1046674&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046674', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046674_sa.jpg\"}', 'upc' => '025218880527', 'provider' => 'bestbuy'],\n ['name' => \"Stax: Top of the Stax, Vol. 2: Twenty... - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stax-top-of-the-stax-vol-2-twenty-cd-various/1046709.p?id=100211&skuId=1046709&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046709', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046709_sa.jpg\"}', 'upc' => '025218880824', 'provider' => 'bestbuy'],\n ['name' => \"...To Be Continued - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/-to-be-continued-cd/1046727.p?id=85069&skuId=1046727&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046727', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046727_sa.jpg\"}', 'upc' => '025218413329', 'provider' => 'bestbuy'],\n ['name' => \"That's Where It's At! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thats-where-its-at-cd/1046745.p?id=85623&skuId=1046745&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046745', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046745_sa.jpg\"}', 'upc' => '025218413428', 'provider' => 'bestbuy'],\n ['name' => \"Blues for Elvis: Albert King Does the King's... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-for-elvis-albert-king-does-the-kings-cd/1046790.p?id=87878&skuId=1046790&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046790', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046790_sa.jpg\"}', 'upc' => '025218850421', 'provider' => 'bestbuy'],\n ['name' => \"Raw Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/raw-blues-cd/1046825.p?id=101254&skuId=1046825&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046825', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046825_sa.jpg\"}', 'upc' => '025218850827', 'provider' => 'bestbuy'],\n ['name' => \"Greatest Hit Singles - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/greatest-hit-singles-cd/1046889.p?id=85058&skuId=1046889&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1046889', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1046\\/1046889_sa.jpg\"}', 'upc' => '025218851527', 'provider' => 'bestbuy'],\n ['name' => \"Mr. Big Stuff - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mr-big-stuff-cd/1047003.p?id=88299&skuId=1047003&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047003', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047003_sa.jpg\"}', 'upc' => '025218855426', 'provider' => 'bestbuy'],\n ['name' => \"With a Little Help from My Friends - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/with-a-little-help-from-my-friends-cd/1047021.p?id=79220&skuId=1047021&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047021', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047021_sa.jpg\"}', 'upc' => '025218855525', 'provider' => 'bestbuy'],\n ['name' => \"Little Bluebird - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/little-bluebird-cd/1047067.p?id=101252&skuId=1047067&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047067', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047067_sa.jpg\"}', 'upc' => '025218855822', 'provider' => 'bestbuy'],\n ['name' => \"I'm in a Phone Booth, Baby - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/im-in-a-phone-booth-baby-cd/1047094.p?id=87884&skuId=1047094&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047094', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047094_sa.jpg\"}', 'upc' => '025218856027', 'provider' => 'bestbuy'],\n ['name' => \"Soul Folk in Action - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/soul-folk-in-action-cd/1047110.p?id=100075&skuId=1047110&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047110', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047110_sa.jpg\"}', 'upc' => '025218856126', 'provider' => 'bestbuy'],\n ['name' => \"Up Tight! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/up-tight-cd/1047138.p?id=75536&skuId=1047138&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047138', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047138.jpg\"}', 'upc' => '025218856225', 'provider' => 'bestbuy'],\n ['name' => \"The Johnnie Taylor Philosophy Continues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-johnnie-taylor-philosophy-continues-cd/1047156.p?id=101253&skuId=1047156&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047156', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047156_sa.jpg\"}', 'upc' => '025218856324', 'provider' => 'bestbuy'],\n ['name' => \"Estelle, Myrna and Sylvia - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/estelle-myrna-and-sylvia-cd/1047192.p?id=101007&skuId=1047192&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047192', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047192.jpg\"}', 'upc' => '025218856522', 'provider' => 'bestbuy'],\n ['name' => \"SanDisk - Ultra 16 GB microSDHC UHS-I/Class 10 Memory Card\", 'description_short' => \"Compatible with most devices with a microSDHC card slot; 16GB capacity; up to 48MB/sec. data transfer rate\", 'description_long' => \"Compatible with most devices with a microSDHC card slot; 16GB capacity; up to 48MB/sec. data transfer rate\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sandisk-ultra-16-gb-microsdhc-uhs-i-class-10-memory-card/1047317.p?id=bb1047317&skuId=1047317&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047317', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047317_sa.jpg\"}', 'upc' => '619659139773', 'provider' => 'bestbuy'],\n ['name' => \"In a Tidal Wave of Mystery - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-a-tidal-wave-of-mystery-cd/1047326.p?id=2721896&skuId=1047326&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047326', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047326_sa.jpg\"}', 'upc' => '602537458110', 'provider' => 'bestbuy'],\n ['name' => \"Live At The Sahara Tahoe - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-at-the-sahara-tahoe-cd/1047343.p?id=1534997&skuId=1047343&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047343', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047343.jpg\"}', 'upc' => '025218880428', 'provider' => 'bestbuy'],\n ['name' => \"We Insist! Max Roach's Freedom Now Suite - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/we-insist-max-roachs-freedom-now-suite-cd/1047423.p?id=2856404&skuId=1047423&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047423', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047423.jpg\"}', 'upc' => '031397900222', 'provider' => 'bestbuy'],\n ['name' => \"Wild Women Don't Have the Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wild-women-dont-have-the-blues-cd/1047502.p?id=303769&skuId=1047502&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047502', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047502.jpg\"}', 'upc' => '031397900826', 'provider' => 'bestbuy'],\n ['name' => \"Jumpin' Punkins - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jumpin-punkins-cd/1047557.p?id=303762&skuId=1047557&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047557', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047557.jpg\"}', 'upc' => '031397901328', 'provider' => 'bestbuy'],\n ['name' => \"That'S It - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thats-it-cd/1047566.p?id=2444038&skuId=1047566&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047566', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047566_sa.jpg\"}', 'upc' => '031397901427', 'provider' => 'bestbuy'],\n ['name' => \"Jass Reunion (Germany) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 27.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jass-reunion-germany-cd/1047628.p?id=2831343&skuId=1047628&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047628', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047628.jpg\"}', 'upc' => '031397902028', 'provider' => 'bestbuy'],\n ['name' => \"Reincarnation of a Lovebird - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reincarnation-of-a-lovebird-cd/1047682.p?id=3245423&skuId=1047682&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047682', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047682_sa.jpg\"}', 'upc' => '031397902622', 'provider' => 'bestbuy'],\n ['name' => \"Out Front (Spanish) - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/out-front-spanish-cd/1047691.p?id=3165556&skuId=1047691&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047691', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047691.jpg\"}', 'upc' => '031397902721', 'provider' => 'bestbuy'],\n ['name' => \"Mysterious Blues - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mysterious-blues-cd/1047780.p?id=1493308&skuId=1047780&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1047780', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1047\\/1047780_sa.jpg\"}', 'upc' => '031397904220', 'provider' => 'bestbuy'],\n ['name' => \"Big Hero 6: Battle in the Bay - PRE-OWNED - Nintendo DS\", 'description_short' => \"Use your unique superhero abilities to fight enemies\", 'description_long' => \"Use your unique superhero abilities to fight enemies\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/big-hero-6-battle-in-the-bay-pre-owned-nintendo-ds/1048029.p?id=1219461496039&skuId=1048029&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1048029', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1048\\/1048029_sa.jpg\"}', 'upc' => '799007840398', 'provider' => 'bestbuy'],\n ['name' => \"Rocketfish™ - 55mm Circular Polarizer - Gray\", 'description_short' => \"Compatible with most digital camera lenses that have a 55mm diameter; improves contrast and color saturation; reduces reflections\", 'description_long' => \"Compatible with most digital camera lenses that have a 55mm diameter; improves contrast and color saturation; reduces reflections\", 'price' => 19.99, 'sale_price' => 4.99, 'url' => 'http://www.bestbuy.com/site/rocketfish-55mm-circular-polarizer-gray/1048555.p?id=1218213534303&skuId=1048555&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1048555', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1048\\/1048555_rc.jpg\"}', 'upc' => '600603131646', 'provider' => 'bestbuy'],\n ['name' => \"Terribly Happy (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/terribly-happy-dvd/1048573.p?id=2108837&skuId=1048573&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1048573', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1048\\/1048573_sa.jpg\"}', 'upc' => '896602002173', 'provider' => 'bestbuy'],\n ['name' => \"G.I. Joe: The Movie (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/g-i-joe-the-movie-dvd/1048582.p?id=21896&skuId=1048582&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1048582', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1048\\/1048582_sa.jpg\"}', 'upc' => '826663118810', 'provider' => 'bestbuy'],\n ['name' => \"StarTech - DisplayPort to DVI Video Converter Cable - Black\", 'description_short' => \"DisplayPort Male Digital Audio/Video - DVI-D Male Video - 10ft\", 'description_long' => \"DisplayPort Male Digital Audio/Video - DVI-D Male Video - 10ft\", 'price' => 30.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/startech-displayport-to-dvi-video-converter-cable-black/1049014.p?id=1218265847104&skuId=1049014', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1049014', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1049\\/1049014_rc.jpg\"}', 'upc' => '065030832182', 'provider' => 'bestbuy'],\n ['name' => \"2-Year Geek Squad Protection Plan\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2-year-geek-squad-protection-plan/1049157.p?id=1218212795392&skuId=1049157&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1049157', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010491575', 'provider' => 'bestbuy'],\n ['name' => \"2-Year Geek Squad Protection Plan\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 39.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2-year-geek-squad-protection-plan/1049166.p?id=1218212795391&skuId=1049166&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1049166', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010491667', 'provider' => 'bestbuy'],\n ['name' => \"Between a Rock and a Hard Place - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/between-a-rock-and-a-hard-place-cd/1049172.p?id=3170336&skuId=1049172&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1049172', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1049\\/1049172.jpg\"}', 'upc' => '719011106822', 'provider' => 'bestbuy'],\n ['name' => \"2-Year Geek Squad Protection Plan\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 59.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/2-year-geek-squad-protection-plan/1049175.p?id=1218212796033&skuId=1049175&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1049175', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/nonsku\\/default_hardlines_l.jpg\"}', 'upc' => '400010491759', 'provider' => 'bestbuy'],\n ['name' => \"Shark - Professional Lightweight Iron - Red\", 'description_short' => \"1500W of power; 180&#176; fill tank; easy-push buttons; tapered button tip; turn dial; stainless-steel soleplate; auto off\", 'description_long' => \"1500W of power; 180&#176; fill tank; easy-push buttons; tapered button tip; turn dial; stainless-steel soleplate; auto off\", 'price' => 29.99, 'sale_price' => 26.99, 'url' => 'http://www.bestbuy.com/site/shark-professional-lightweight-iron-red/1049688.p?id=1219045790005&skuId=1049688&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1049688', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1049\\/1049688_rc.jpg\"}', 'upc' => '622356532242', 'provider' => 'bestbuy'],\n ['name' => \"Xerox - DocuMate 3115 Mobile Scanner with Desktop Docking Station - Black\", 'description_short' => \"USB 2.0/1.1 interface; 600 dpi optical resolution; ejectable mobile scanner; desktop docking station; Visioneer OneTouch and Kofax VRS Basic technologies; 20-page automatic document feeder\", 'description_long' => \"USB 2.0/1.1 interface; 600 dpi optical resolution; ejectable mobile scanner; desktop docking station; Visioneer OneTouch and Kofax VRS Basic technologies; 20-page automatic document feeder\", 'price' => 399.99, 'sale_price' => 304.99, 'url' => 'http://www.bestbuy.com/site/xerox-documate-3115-mobile-scanner-with-desktop-docking-station-black/1050569.p?id=1218214263452&skuId=1050569&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050569', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050569_sa.jpg\"}', 'upc' => '785414112579', 'provider' => 'bestbuy'],\n ['name' => \"Hergest Ridge - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hergest-ridge-cd/1050639.p?id=2108071&skuId=1050639&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050639', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050639_sa.jpg\"}', 'upc' => '600753267554', 'provider' => 'bestbuy'],\n ['name' => \"Metafiction - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/metafiction-cd/1050648.p?id=2123820&skuId=1050648&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050648', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050648_sa.jpg\"}', 'upc' => '826992504124', 'provider' => 'bestbuy'],\n ['name' => \"Classic Albums: Damn The Torpedoes - Blu-ray Disc\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classic-albums-damn-the-torpedoes-blu-ray-disc/1050657.p?id=2123480&skuId=1050657&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050657', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050657_sa.jpg\"}', 'upc' => '801213335596', 'provider' => 'bestbuy'],\n ['name' => \"J Roddy Walston and the Business - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/j-roddy-walston-and-the-business-cd/1050666.p?id=2124513&skuId=1050666&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050666', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050666_sa.jpg\"}', 'upc' => '601091059627', 'provider' => 'bestbuy'],\n ['name' => \"Caravan Palace - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/caravan-palace-cd/1050675.p?id=2121982&skuId=1050675&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050675', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050675_sa.jpg\"}', 'upc' => '875232008625', 'provider' => 'bestbuy'],\n ['name' => \"Ommadawn - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ommadawn-cd/1050684.p?id=2108072&skuId=1050684&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050684', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050684_sa.jpg\"}', 'upc' => '600753267622', 'provider' => 'bestbuy'],\n ['name' => \"An Airplane Carried Me To Bed - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/an-airplane-carried-me-to-bed-cd/1050693.p?id=2126392&skuId=1050693&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050693', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050693_sa.jpg\"}', 'upc' => '602527442549', 'provider' => 'bestbuy'],\n ['name' => \"Get Low [Original Motion Picture Soundtra] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/get-low-original-motion-picture-soundtra-cd-original-soundtrack/1050702.p?id=2125034&skuId=1050702&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050702', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050702_sa.jpg\"}', 'upc' => '011661910027', 'provider' => 'bestbuy'],\n ['name' => \"80's Baby [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/80s-baby-pa-cd/1050711.p?id=2134813&skuId=1050711&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050711', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050711_sa.jpg\"}', 'upc' => '852819004294', 'provider' => 'bestbuy'],\n ['name' => \"Malos Hábitos (Bad Habits) [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/malos-habitos-bad-habits-digipak-cd/1050748.p?id=2127463&skuId=1050748&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050748', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050748_sa.jpg\"}', 'upc' => '689230012023', 'provider' => 'bestbuy'],\n ['name' => \"The Night Before [ECD] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-night-before-ecd-cd/1050766.p?id=2468221&skuId=1050766&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050766', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050766_sa.jpg\"}', 'upc' => '602527300153', 'provider' => 'bestbuy'],\n ['name' => \"Emerson, Lake & Palmer: Pictures at an Exhibition (DVD) (Special Edition)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/emerson-lake-palmer-pictures-at-an-exhibition-dvd-special-edition/1050775.p?id=21590&skuId=1050775&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050775', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050775_sa.jpg\"}', 'upc' => '801213030194', 'provider' => 'bestbuy'],\n ['name' => \"Family Joules - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/family-joules-cd/1050802.p?id=2126402&skuId=1050802&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050802', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050802_sa.jpg\"}', 'upc' => '030206694420', 'provider' => 'bestbuy'],\n ['name' => \"Moses Tyson Jr. World Class Gospel... [CD & DVD] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/moses-tyson-jr-world-class-gospel-cd-dvd-cd-various/1050811.p?id=2133254&skuId=1050811&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050811', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050811_sa.jpg\"}', 'upc' => '640075002648', 'provider' => 'bestbuy'],\n ['name' => \"Classic Albums: Damn The Torpedoes (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/classic-albums-damn-the-torpedoes-dvd/1050839.p?id=2123480&skuId=1050839&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050839', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050839_sa.jpg\"}', 'upc' => '801213029396', 'provider' => 'bestbuy'],\n ['name' => \"Tribal - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tribal-cd/1050848.p?id=2123812&skuId=1050848&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050848', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050848_sa.jpg\"}', 'upc' => '795041780324', 'provider' => 'bestbuy'],\n ['name' => \"Elettra - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/elettra-cd/1050866.p?id=2118068&skuId=1050866&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050866', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050866_sa.jpg\"}', 'upc' => '875232008229', 'provider' => 'bestbuy'],\n ['name' => \"Connections - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/connections-cd/1050875.p?id=2127465&skuId=1050875&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050875', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050875_sa.jpg\"}', 'upc' => '875232008526', 'provider' => 'bestbuy'],\n ['name' => \"Bar-Do Travel - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/bar-do-travel-cd/1050884.p?id=2123819&skuId=1050884&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1050884', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1050\\/1050884_sa.jpg\"}', 'upc' => '826992504025', 'provider' => 'bestbuy'],\n ['name' => \"WWE: The Best of WWE at Madison Square Garden (DVD) (3 Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/wwe-the-best-of-wwe-at-madison-square-garden-dvd-3-disc/1051037.p?id=2709145&skuId=1051037&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051037', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051037_sa.jpg\"}', 'upc' => '651191951628', 'provider' => 'bestbuy'],\n ['name' => \"A Company Man (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-company-man-dvd/1051082.p?id=2696332&skuId=1051082&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051082', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051082_sa.jpg\"}', 'upc' => '812491014288', 'provider' => 'bestbuy'],\n ['name' => \"A Company Man (Blu-ray Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-company-man-blu-ray-disc/1051222.p?id=2696332&skuId=1051222&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051222', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051222_sa.jpg\"}', 'upc' => '812491014295', 'provider' => 'bestbuy'],\n ['name' => \"Alyce Kills (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => 3.99, 'url' => 'http://www.bestbuy.com/site/alyce-kills-dvd/1051231.p?id=2708712&skuId=1051231&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051231', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051231_sa.jpg\"}', 'upc' => '883476093499', 'provider' => 'bestbuy'],\n ['name' => \"Take Love Easy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/take-love-easy-cd/1051275.p?id=66335&skuId=1051275&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051275', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051275.jpg\"}', 'upc' => '025218070225', 'provider' => 'bestbuy'],\n ['name' => \"The Duke's Big Four - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-dukes-big-four-cd/1051284.p?id=65933&skuId=1051284&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051284', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051284_sa.jpg\"}', 'upc' => '025218070324', 'provider' => 'bestbuy'],\n ['name' => \"For the First Time - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-the-first-time-cd/1051319.p?id=64061&skuId=1051319&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051319', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051319_sa.jpg\"}', 'upc' => '025218071222', 'provider' => 'bestbuy'],\n ['name' => \"For Lady Day - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/for-lady-day-cd/1051373.p?id=70975&skuId=1051373&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051373', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051373.jpg\"}', 'upc' => '025218094221', 'provider' => 'bestbuy'],\n ['name' => \"Portraits of Duke Ellington - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/portraits-of-duke-ellington-cd/1051444.p?id=69817&skuId=1051444&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051444', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051444.jpg\"}', 'upc' => '025218071628', 'provider' => 'bestbuy'],\n ['name' => \"Basie Jam - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/basie-jam-cd/1051471.p?id=64002&skuId=1051471&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051471', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051471_sa.jpg\"}', 'upc' => '025218071826', 'provider' => 'bestbuy'],\n ['name' => \"Virtuoso No. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/virtuoso-no-2-cd/1051603.p?id=69820&skuId=1051603&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051603', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051603_sa.jpg\"}', 'upc' => '025218078825', 'provider' => 'bestbuy'],\n ['name' => \"How Long Has This Been Going On? - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/how-long-has-this-been-going-on-cd/1051667.p?id=71681&skuId=1051667&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051667', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051667.jpg\"}', 'upc' => '025218082129', 'provider' => 'bestbuy'],\n ['name' => \"Fine and Mellow - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fine-and-mellow-cd/1051685.p?id=66307&skuId=1051685&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051685', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051685.jpg\"}', 'upc' => '025218082921', 'provider' => 'bestbuy'],\n ['name' => \"Appassionato - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/appassionato-cd/1051710.p?id=2389791&skuId=1051710&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051710', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051710_sa.jpg\"}', 'upc' => '025218094627', 'provider' => 'bestbuy'],\n ['name' => \"A Perfect Match - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-perfect-match-cd/1051756.p?id=66271&skuId=1051756&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051756', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051756_sa.jpg\"}', 'upc' => '025218011020', 'provider' => 'bestbuy'],\n ['name' => \"The Duke Ellington Songbook, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-duke-ellington-songbook-vol-1-cd/1051765.p?id=71677&skuId=1051765&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051765', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051765_sa.jpg\"}', 'upc' => '025218011129', 'provider' => 'bestbuy'],\n ['name' => \"The Duke Ellington Songbook, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-duke-ellington-songbook-vol-2-cd/1051774.p?id=71678&skuId=1051774&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051774', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051774_sa.jpg\"}', 'upc' => '025218011624', 'provider' => 'bestbuy'],\n ['name' => \"A Classy Pair - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/a-classy-pair-cd/1051818.p?id=66270&skuId=1051818&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051818', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051818_sa.jpg\"}', 'upc' => '025218013222', 'provider' => 'bestbuy'],\n ['name' => \"Nice Work If You Can Get It - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nice-work-if-you-can-get-it-cd/1051854.p?id=66324&skuId=1051854&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051854', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051854_sa.jpg\"}', 'upc' => '025218014021', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Louie Bellson - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-louie-bellson-cd/1051970.p?id=64133&skuId=1051970&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051970', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051970.jpg\"}', 'upc' => '025218040723', 'provider' => 'bestbuy'],\n ['name' => \"HP - 970 Ink Cartridge - Black\", 'description_short' => \"Compatible with HP Officejet Pro X451dw printers; black ink; delivers crisp documents; yields up to 3,000 pages\", 'description_long' => \"Compatible with HP Officejet Pro X451dw printers; black ink; delivers crisp documents; yields up to 3,000 pages\", 'price' => 74.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hp-970-ink-cartridge-black/1051974.p?id=1219045597268&skuId=1051974&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051974', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051974_sa.jpg\"}', 'upc' => '887111103161', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Count Basie [Roulette/Pablo] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-count-basie-roulette-pablo-cd/1051998.p?id=64009&skuId=1051998&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1051998', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1051\\/1051998_sa.jpg\"}', 'upc' => '025218040822', 'provider' => 'bestbuy'],\n ['name' => \"Speak Love - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/speak-love-cd/1052069.p?id=66333&skuId=1052069&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052069', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052069_sa.jpg\"}', 'upc' => '025218088824', 'provider' => 'bestbuy'],\n ['name' => \"The Greatest Jazz Concert in the World - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-greatest-jazz-concert-in-the-world-various-cd/1052087.p?id=70029&skuId=1052087&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052087', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052087_sa.jpg\"}', 'upc' => '025218570428', 'provider' => 'bestbuy'],\n ['name' => \"Insignia™ - 28\\\" Class (27.5\\\" Diag.) - LED - 720p - HDTV - Black\", 'description_short' => \"720p resolution60Hz refresh rate\", 'description_long' => \"720p resolution60Hz refresh rate\", 'price' => 159.99, 'sale_price' => 139.99, 'url' => 'http://www.bestbuy.com/site/insignia-28-class-27-5-diag--led-720p-hdtv-black/1052096.p?id=1219465783489&skuId=1052096&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052096', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052096_sa.jpg\"}', 'upc' => '600603185182', 'provider' => 'bestbuy'],\n ['name' => \"If You Could See Me Now - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/if-you-could-see-me-now-cd/1052185.p?id=2551768&skuId=1052185&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052185', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052185.jpg\"}', 'upc' => '025218091824', 'provider' => 'bestbuy'],\n ['name' => \"Oscar Peterson with Harry Edison & Eddie Vinson - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/oscar-peterson-with-harry-edison-eddie-vinson-cd/1052372.p?id=69991&skuId=1052372&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052372', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052372.jpg\"}', 'upc' => '025218092722', 'provider' => 'bestbuy'],\n ['name' => \"We Did It!: Dora's Greatest Hits - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/we-did-it-doras-greatest-hits-cd/1052521.p?id=2114505&skuId=1052521&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052521', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052521.jpg\"}', 'upc' => '886977210426', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Tommy Flanagan - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-tommy-flanagan-cd/1052540.p?id=66367&skuId=1052540&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052540', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052540.jpg\"}', 'upc' => '025218041027', 'provider' => 'bestbuy'],\n ['name' => \"Vida Sinaloense - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/vida-sinaloense-cd/1052549.p?id=2123274&skuId=1052549&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052549', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052549_sa.jpg\"}', 'upc' => '886977234026', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Dizzy Gillespie [Pablo] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-dizzy-gillespie-pablo-cd/1052568.p?id=66669&skuId=1052568&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052568', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052568.jpg\"}', 'upc' => '025218041126', 'provider' => 'bestbuy'],\n ['name' => \"How I'm Rockin [PA] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/how-im-rockin-pa-digipak-cd/1052576.p?id=2118294&skuId=1052576&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052576', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052576_sa.jpg\"}', 'upc' => '798304114522', 'provider' => 'bestbuy'],\n ['name' => \"Never Let Me Go [Slipcase] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/never-let-me-go-slipcase-cd/1052619.p?id=2118282&skuId=1052619&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052619', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052619_sa.jpg\"}', 'upc' => '639492000184', 'provider' => 'bestbuy'],\n ['name' => \"Live from the Trap:... [PA] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-from-the-trap-pa-digipak-cd/1052628.p?id=2119797&skuId=1052628&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052628', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052628_sa.jpg\"}', 'upc' => '654367557365', 'provider' => 'bestbuy'],\n ['name' => \"Northern Cali Lifestyle [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/northern-cali-lifestyle-pa-cd/1052637.p?id=2118292&skuId=1052637&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052637', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052637_sa.jpg\"}', 'upc' => '793347908121', 'provider' => 'bestbuy'],\n ['name' => \"The Gold Club [PA] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-gold-club-pa-digipak-cd/1052646.p?id=2118293&skuId=1052646&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052646', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052646_sa.jpg\"}', 'upc' => '643363146420', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Sarah Vaughan [Pablo] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-sarah-vaughan-pablo-cd/1052648.p?id=71707&skuId=1052648&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052648', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052648.jpg\"}', 'upc' => '025218041621', 'provider' => 'bestbuy'],\n ['name' => \"Shottaz [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/shottaz-pa-cd/1052655.p?id=2119800&skuId=1052655&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052655', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052655_sa.jpg\"}', 'upc' => '618763510126', 'provider' => 'bestbuy'],\n ['name' => \"Diary of a Wimpy Kid [7/20] - CD - Original Soundtrack\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/diary-of-a-wimpy-kid-7-20-cd-original-soundtrack/1052664.p?id=2118272&skuId=1052664&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052664', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052664_sa.jpg\"}', 'upc' => '826924113929', 'provider' => 'bestbuy'],\n ['name' => \"To All Believers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/to-all-believers-cd/1052673.p?id=2119273&skuId=1052673&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052673', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052673.jpg\"}', 'upc' => '725543921123', 'provider' => 'bestbuy'],\n ['name' => \"All That Jazz - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-that-jazz-cd/1052675.p?id=66273&skuId=1052675&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052675', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052675.jpg\"}', 'upc' => '025218093828', 'provider' => 'bestbuy'],\n ['name' => \"The Best of John Coltrane - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-john-coltrane-cd/1052693.p?id=65130&skuId=1052693&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052693', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052693_sa.jpg\"}', 'upc' => '025218041720', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Art Tatum - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-art-tatum-cd/1052719.p?id=71304&skuId=1052719&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052719', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052719_sa.jpg\"}', 'upc' => '025218041829', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Joe Pass [Pablo] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-joe-pass-pablo-cd/1052728.p?id=69809&skuId=1052728&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052728', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052728_sa.jpg\"}', 'upc' => '025218041928', 'provider' => 'bestbuy'],\n ['name' => \"The Best of Lester Young [Pablo] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-lester-young-pablo-cd/1052746.p?id=72246&skuId=1052746&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052746', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052746.jpg\"}', 'upc' => '025218042024', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Modern Jazz Quartet [Pablo] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-modern-jazz-quartet-pablo-cd/1052808.p?id=69252&skuId=1052808&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052808', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052808.jpg\"}', 'upc' => '025218042321', 'provider' => 'bestbuy'],\n ['name' => \"The Tatum Group Masterpieces, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-tatum-group-masterpieces-vol-1-cd/1052826.p?id=71311&skuId=1052826&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052826', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052826.jpg\"}', 'upc' => '025218042420', 'provider' => 'bestbuy'],\n ['name' => \"The Tatum Group Masterpieces, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-tatum-group-masterpieces-vol-2-cd/1052835.p?id=71312&skuId=1052835&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052835', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052835.jpg\"}', 'upc' => '025218042529', 'provider' => 'bestbuy'],\n ['name' => \"Butcher Holler: A Tribute... [Digipak] - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/butcher-holler-a-tribute-digipak-various-cd/1052837.p?id=2123270&skuId=1052837&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052837', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052837.jpg\"}', 'upc' => '701237203027', 'provider' => 'bestbuy'],\n ['name' => \"The Tatum Group Masterpieces, Vol. 3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-tatum-group-masterpieces-vol-3-cd/1052844.p?id=71313&skuId=1052844&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052844', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052844_sa.jpg\"}', 'upc' => '025218042628', 'provider' => 'bestbuy'],\n ['name' => \"Cliff Richard: Rare and Unseen (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cliff-richard-rare-and-unseen-dvd/1052846.p?id=2125954&skuId=1052846&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052846', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052846_sa.jpg\"}', 'upc' => '760137502593', 'provider' => 'bestbuy'],\n ['name' => \"The Tatum Group Masterpieces, Vol. 4 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-tatum-group-masterpieces-vol-4-cd/1052853.p?id=71314&skuId=1052853&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052853', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052853.jpg\"}', 'upc' => '025218042727', 'provider' => 'bestbuy'],\n ['name' => \"The Tatum Group Masterpieces, Vol. 5 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-tatum-group-masterpieces-vol-5-cd/1052862.p?id=71315&skuId=1052862&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052862', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052862_sa.jpg\"}', 'upc' => '025218042826', 'provider' => 'bestbuy'],\n ['name' => \"The Best of the Hoppers - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-best-of-the-hoppers-cd/1052864.p?id=2125033&skuId=1052864&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052864', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052864_sa.jpg\"}', 'upc' => '617884606121', 'provider' => 'bestbuy'],\n ['name' => \"The Tatum Group Masterpieces, Vol. 6 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-tatum-group-masterpieces-vol-6-cd/1052871.p?id=71316&skuId=1052871&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052871', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052871_sa.jpg\"}', 'upc' => '025218042925', 'provider' => 'bestbuy'],\n ['name' => \"Tomorrow's Children - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tomorrows-children-cd/1052873.p?id=2123264&skuId=1052873&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052873', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052873.jpg\"}', 'upc' => '611587112323', 'provider' => 'bestbuy'],\n ['name' => \"The Tatum Group Masterpieces, Vol. 7 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-tatum-group-masterpieces-vol-7-cd/1052880.p?id=71317&skuId=1052880&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052880', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052880_sa.jpg\"}', 'upc' => '025218043021', 'provider' => 'bestbuy'],\n ['name' => \"HitsCD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hitscd/1052882.p?id=2133206&skuId=1052882&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052882', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052882.jpg\"}', 'upc' => '5099964703824', 'provider' => 'bestbuy'],\n ['name' => \"The Tatum Group Masterpieces, Vol. 8 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-tatum-group-masterpieces-vol-8-cd/1052899.p?id=71318&skuId=1052899&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052899', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052899_sa.jpg\"}', 'upc' => '025218043120', 'provider' => 'bestbuy'],\n ['name' => \"The Art Tatum Solo Masterpieces, Vol. 1 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-art-tatum-solo-masterpieces-vol-1-cd/1052906.p?id=71295&skuId=1052906&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052906', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052906_sa.jpg\"}', 'upc' => '025218043229', 'provider' => 'bestbuy'],\n ['name' => \"The Art Tatum Solo Masterpieces, Vol. 2 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-art-tatum-solo-masterpieces-vol-2-cd/1052915.p?id=71296&skuId=1052915&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052915', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052915.jpg\"}', 'upc' => '025218043328', 'provider' => 'bestbuy'],\n ['name' => \"The Art Tatum Solo Masterpieces, Vol. 3 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-art-tatum-solo-masterpieces-vol-3-cd/1052924.p?id=71297&skuId=1052924&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052924', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052924.jpg\"}', 'upc' => '025218043427', 'provider' => 'bestbuy'],\n ['name' => \"Weather Report: Live in Hamburg 1971 (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/weather-report-live-in-hamburg-1971-dvd/1052928.p?id=2126704&skuId=1052928&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052928', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052928_sa.jpg\"}', 'upc' => '5060230860008', 'provider' => 'bestbuy'],\n ['name' => \"The Art Tatum Solo Masterpieces, Vol. 4 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-art-tatum-solo-masterpieces-vol-4-cd/1052933.p?id=71298&skuId=1052933&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052933', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052933_sa.jpg\"}', 'upc' => '025218043526', 'provider' => 'bestbuy'],\n ['name' => \"Nil Recurring - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nil-recurring-cd/1052937.p?id=2123263&skuId=1052937&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052937', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052937_sa.jpg\"}', 'upc' => '802644715025', 'provider' => 'bestbuy'],\n ['name' => \"The Art Tatum Solo Masterpieces, Vol. 5 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-art-tatum-solo-masterpieces-vol-5-cd/1052942.p?id=71299&skuId=1052942&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052942', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052942_sa.jpg\"}', 'upc' => '025218043625', 'provider' => 'bestbuy'],\n ['name' => \"We Fun: Atlanta, GA Inside/Out (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 7.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/we-fun-atlanta-ga-inside-out-dvd/1052946.p?id=2125759&skuId=1052946&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052946', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052946.jpg\"}', 'upc' => '760137501992', 'provider' => 'bestbuy'],\n ['name' => \"The Art Tatum Solo Masterpieces, Vol. 6 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-art-tatum-solo-masterpieces-vol-6-cd/1052951.p?id=71300&skuId=1052951&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052951', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052951_sa.jpg\"}', 'upc' => '025218043724', 'provider' => 'bestbuy'],\n ['name' => \"Ian Dury: Rare and Unseen (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ian-dury-rare-and-unseen-dvd/1052955.p?id=2125956&skuId=1052955&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052955', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052955_sa.jpg\"}', 'upc' => '5018755248818', 'provider' => 'bestbuy'],\n ['name' => \"The Art Tatum Solo Masterpieces, Vol. 7 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-art-tatum-solo-masterpieces-vol-7-cd/1052960.p?id=71301&skuId=1052960&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052960', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052960_sa.jpg\"}', 'upc' => '025218043823', 'provider' => 'bestbuy'],\n ['name' => \"Come Alive - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/come-alive-cd/1052964.p?id=3183407&skuId=1052964&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052964', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052964_sa.jpg\"}', 'upc' => '8024391046920', 'provider' => 'bestbuy'],\n ['name' => \"The Specials: 30th Anniversary Tour (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-specials-30th-anniversary-tour-dvd/1052973.p?id=2126705&skuId=1052973&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052973', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052973_sa.jpg\"}', 'upc' => '760137503293', 'provider' => 'bestbuy'],\n ['name' => \"The Art Tatum Solo Masterpieces, Vol. 8 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-art-tatum-solo-masterpieces-vol-8-cd/1052979.p?id=71302&skuId=1052979&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052979', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052979_sa.jpg\"}', 'upc' => '025218043922', 'provider' => 'bestbuy'],\n ['name' => \"Five Questions: The New Journey - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/five-questions-the-new-journey-cd/1052982.p?id=2123272&skuId=1052982&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052982', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052982_sa.jpg\"}', 'upc' => '707541924894', 'provider' => 'bestbuy'],\n ['name' => \"20 Years of Century Media,... [Digipak] - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/20-years-of-century-media-digipak-cd-various/1052991.p?id=2125760&skuId=1052991&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1052991', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1052\\/1052991_sa.jpg\"}', 'upc' => '727701869421', 'provider' => 'bestbuy'],\n ['name' => \"Villa Manifesto [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/villa-manifesto-pa-cd/1053008.p?id=2123262&skuId=1053008&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053008', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053008_sa.jpg\"}', 'upc' => '099923210221', 'provider' => 'bestbuy'],\n ['name' => \"Jamdown (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jamdown-dvd/1053026.p?id=2126706&skuId=1053026&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053026', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053026_sa.jpg\"}', 'upc' => '760137499299', 'provider' => 'bestbuy'],\n ['name' => \"Nigerian Marketplace - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nigerian-marketplace-cd/1053031.p?id=2280249&skuId=1053031&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053031', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053031_sa.jpg\"}', 'upc' => '025218023122', 'provider' => 'bestbuy'],\n ['name' => \"Back on Money [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/back-on-money-pa-cd/1053035.p?id=2443625&skuId=1053035&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053035', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053035.jpg\"}', 'upc' => '099923210320', 'provider' => 'bestbuy'],\n ['name' => \"Round Trip [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/round-trip-digipak-cd/1053044.p?id=2199776&skuId=1053044&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053044', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053044_sa.jpg\"}', 'upc' => '8024391046821', 'provider' => 'bestbuy'],\n ['name' => \"Album of the Year [PA] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/album-of-the-year-pa-digipak-cd/1053053.p?id=2123269&skuId=1053053&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053053', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053053_sa.jpg\"}', 'upc' => '659123513227', 'provider' => 'bestbuy'],\n ['name' => \"The Stockholm Concert, 1966 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 12.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-stockholm-concert-1966-cd/1053059.p?id=66355&skuId=1053059&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053059', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053059_sa.jpg\"}', 'upc' => '025218024228', 'provider' => 'bestbuy'],\n ['name' => \"Insignia™ - 28\\\" Class (27.5\\\" Diag.) - LED - 720p - HDTV DVD Combo - Black\", 'description_short' => \"720p resolution60Hz refresh rate\", 'description_long' => \"720p resolution60Hz refresh rate\", 'price' => 189.99, 'sale_price' => 169.99, 'url' => 'http://www.bestbuy.com/site/insignia-28-class-27-5-diag--led-720p-hdtv-dvd-combo-black/1053086.p?id=1219465782595&skuId=1053086&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053086', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053086_sa.jpg\"}', 'upc' => '600603185007', 'provider' => 'bestbuy'],\n ['name' => \"SunStorm [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 10.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sunstorm-digipak-cd/1053099.p?id=2123273&skuId=1053099&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053099', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053099_sa.jpg\"}', 'upc' => '616892092360', 'provider' => 'bestbuy'],\n ['name' => \"Cookin' in Mobile [CD & DVD] [Digipak] - CD - DVD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cookin-in-mobile-cd-dvd-digipak-cd-dvd/1053105.p?id=2123813&skuId=1053105&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053105', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053105_sa.jpg\"}', 'upc' => '015707807326', 'provider' => 'bestbuy'],\n ['name' => \"Elements [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 6.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/elements-digipak-cd/1053114.p?id=2182290&skuId=1053114&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053114', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053114_sa.jpg\"}', 'upc' => '8024391046623', 'provider' => 'bestbuy'],\n ['name' => \"Having Church - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/having-church-cd/1053120.p?id=127873&skuId=1053120&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053120', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053120_sa.jpg\"}', 'upc' => '021401709927', 'provider' => 'bestbuy'],\n ['name' => \"Oddsac - DVD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 17.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/oddsac-dvd/1053141.p?id=2129498&skuId=1053141&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053141', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053141_sa.jpg\"}', 'upc' => '082354005122', 'provider' => 'bestbuy'],\n ['name' => \"He Will Answer Prayer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/he-will-answer-prayer-cd/1053148.p?id=189907&skuId=1053148&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053148', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053148_sa.jpg\"}', 'upc' => '021401480826', 'provider' => 'bestbuy'],\n ['name' => \"Gospel Music Workshop of America - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gospel-music-workshop-of-america-cd/1053175.p?id=83924&skuId=1053175&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053175', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053175_sa.jpg\"}', 'upc' => '021401710022', 'provider' => 'bestbuy'],\n ['name' => \"The Hoppers: The Best Of (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-hoppers-the-best-of-dvd/1053178.p?id=2125761&skuId=1053178&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053178', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053178_sa.jpg\"}', 'upc' => '617884606091', 'provider' => 'bestbuy'],\n ['name' => \"Dio [DigDownLoad] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/dio-digdownload-digipak-cd/1053187.p?id=2199775&skuId=1053187&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053187', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053187_sa.jpg\"}', 'upc' => '8024391046722', 'provider' => 'bestbuy'],\n ['name' => \"I Will Let Nothing Separate Me - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-will-let-nothing-separate-me-cd/1053193.p?id=129789&skuId=1053193&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053193', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053193_sa.jpg\"}', 'upc' => '021401710121', 'provider' => 'bestbuy'],\n ['name' => \"Hot Wheels: Beat That - PRE-OWNED - Nintendo DS\", 'description_short' => \"Show off your racing skills\", 'description_long' => \"Show off your racing skills\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hot-wheels-beat-that-pre-owned-nintendo-ds/1053196.p?id=1218215103698&skuId=1053196&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053196', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053196_sa.jpg\"}', 'upc' => '799007751908', 'provider' => 'bestbuy'],\n ['name' => \"Rev. James Cleveland and the L.A. Gospel... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/rev-james-cleveland-and-the-l-a-gospel-cd/1053219.p?id=78011&skuId=1053219&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053219', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053219.jpg\"}', 'upc' => '021401710329', 'provider' => 'bestbuy'],\n ['name' => \"Live in Washington D.C. - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/live-in-washington-d-c-cd/1053237.p?id=83921&skuId=1053237&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053237', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053237_sa.jpg\"}', 'upc' => '021401710428', 'provider' => 'bestbuy'],\n ['name' => \"Ener-G Horse Riders - PRE-OWNED - Nintendo DS\", 'description_short' => \"Explore the world with your loyal horse\", 'description_long' => \"Explore the world with your loyal horse\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ener-g-horse-riders-pre-owned-nintendo-ds/1053239.p?id=1218215100283&skuId=1053239&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053239', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053239_sa.jpg\"}', 'upc' => '799007752707', 'provider' => 'bestbuy'],\n ['name' => \"You Can Make It If You Try - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/you-can-make-it-if-you-try-cd/1053282.p?id=129793&skuId=1053282&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053282', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053282_sa.jpg\"}', 'upc' => '021401480925', 'provider' => 'bestbuy'],\n ['name' => \"Thank You Jesus - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thank-you-jesus-cd/1053308.p?id=128086&skuId=1053308&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053308', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053308.jpg\"}', 'upc' => '021401481120', 'provider' => 'bestbuy'],\n ['name' => \"NBA 2K10 - PRE-OWNED - PlayStation 3\", 'description_short' => \"Live out the pro basketball experience with stunning realism\", 'description_long' => \"Live out the pro basketball experience with stunning realism\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nba-2k10-pre-owned-playstation-3/1053381.p?id=1218215101897&skuId=1053381&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053381', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053381_sa.jpg\"}', 'upc' => '799007781172', 'provider' => 'bestbuy'],\n ['name' => \"Pokémon Platinum Version - PRE-OWNED - Nintendo DS\", 'description_short' => \"Put a stop to Team Galactic&#039;s villainous plot\", 'description_long' => \"Put a stop to Team Galactic&#039;s villainous plot\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pokemon-platinum-version-pre-owned-nintendo-ds/1053414.p?id=1218215103961&skuId=1053414&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053414', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053414_sc.jpg\"}', 'upc' => '799007781189', 'provider' => 'bestbuy'],\n ['name' => \"He's Worthy - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hes-worthy-cd/1053415.p?id=84236&skuId=1053415&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053415', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053415_sa.jpg\"}', 'upc' => '021401479721', 'provider' => 'bestbuy'],\n ['name' => \"Petz Hamsterz 2 - PRE-OWNED - Nintendo DS\", 'description_short' => \"These critters are so darned cute\", 'description_long' => \"These critters are so darned cute\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/petz-hamsterz-2-pre-owned-nintendo-ds/1053432.p?id=1218215102494&skuId=1053432&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053432', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053432_sa.jpg\"}', 'upc' => '799007781202', 'provider' => 'bestbuy'],\n ['name' => \"I See a World - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-see-a-world-cd/1053433.p?id=128088&skuId=1053433&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053433', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053433_sa.jpg\"}', 'upc' => '021401479929', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Pro-Clamp\", 'description_short' => \"From our expanded online assortment; 360&#176; wraparound tube truss clamp; 2&quot; diameter; M10 bolt; 1,000 lb. weight capacity\", 'description_long' => \"From our expanded online assortment; 360&#176; wraparound tube truss clamp; 2&quot; diameter; M10 bolt; 1,000 lb. weight capacity\", 'price' => 19.99, 'sale_price' => 18.99, 'url' => 'http://www.bestbuy.com/site/american-dj-pro-clamp/1053441.p?id=1218215100745&skuId=1053441', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053441', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053441_sa.jpg\"}', 'upc' => '896312003903', 'provider' => 'bestbuy'],\n ['name' => \"I'll Tell the World - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 15.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/ill-tell-the-world-cd/1053460.p?id=129957&skuId=1053460&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053460', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053460.jpg\"}', 'upc' => '021401480123', 'provider' => 'bestbuy'],\n ['name' => \"American DJ - Narrow Pro-Clamp\", 'description_short' => \"From our expanded online assortment; 2&quot; wraparound clamp; medium-duty design; 350 lb. weight capacity\", 'description_long' => \"From our expanded online assortment; 2&quot; wraparound clamp; medium-duty design; 350 lb. weight capacity\", 'price' => 19.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/american-dj-narrow-pro-clamp/1053469.p?id=1218215101666&skuId=1053469', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053469', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053469_sa.jpg\"}', 'upc' => '896312003897', 'provider' => 'bestbuy'],\n ['name' => \"Salsa: A Musical History [Box] - CD - Various Box\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 33.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/salsa-a-musical-history-box-cd-various-box/1053478.p?id=2138701&skuId=1053478&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053478', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053478_sa.jpg\"}', 'upc' => '846395080070', 'provider' => 'bestbuy'],\n ['name' => \"Reach Beyond the Break - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reach-beyond-the-break-cd/1053488.p?id=130536&skuId=1053488&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053488', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053488_sa.jpg\"}', 'upc' => '021401480222', 'provider' => 'bestbuy'],\n ['name' => \"I'm Glad About It - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/im-glad-about-it-cd/1053503.p?id=129941&skuId=1053503&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053503', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053503_sa.jpg\"}', 'upc' => '021401480420', 'provider' => 'bestbuy'],\n ['name' => \"He Lives - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/he-lives-cd/1053521.p?id=127711&skuId=1053521&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053521', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053521_sa.jpg\"}', 'upc' => '021401480727', 'provider' => 'bestbuy'],\n ['name' => \"APC - Smart-UPS X 1500VA Tower/Rack Mountable UPS - Black\", 'description_short' => \"1500VA/1200W - 5.8 Minute Full Load - 8 x NEMA 5-15R\", 'description_long' => \"1500VA/1200W - 5.8 Minute Full Load - 8 x NEMA 5-15R\", 'price' => 829.99, 'sale_price' => 749.99, 'url' => 'http://www.bestbuy.com/site/apc-smart-ups-x-1500va-tower-rack-mountable-ups-black/1053539.p?id=1218214389482&skuId=1053539&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053539', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{null}', 'upc' => '731304268628', 'provider' => 'bestbuy'],\n ['name' => \"HP - 971 Ink Cartridge - Cyan\", 'description_short' => \"Compatible with select HP Officejet Pro printers; cyan ink; yields up to 2,500 pages\", 'description_long' => \"Compatible with select HP Officejet Pro printers; cyan ink; yields up to 2,500 pages\", 'price' => 78.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hp-971-ink-cartridge-cyan/1053736.p?id=1219045593702&skuId=1053736&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053736', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053736_sa.jpg\"}', 'upc' => '887111103178', 'provider' => 'bestbuy'],\n ['name' => \"HP - 971 Ink Cartridge - Magenta\", 'description_short' => \"Compatible with select HP Officejet Pro printers; magenta ink; yields up to 2,500 pages\", 'description_long' => \"Compatible with select HP Officejet Pro printers; magenta ink; yields up to 2,500 pages\", 'price' => 78.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hp-971-ink-cartridge-magenta/1053854.p?id=1219045591578&skuId=1053854&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053854', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053854_sa.jpg\"}', 'upc' => '887111103185', 'provider' => 'bestbuy'],\n ['name' => \"HP - 971 Ink Cartridge - Yellow\", 'description_short' => \"Compatible with select HP Officejet Pro printers; yellow ink; yields up to 2,500 pages\", 'description_long' => \"Compatible with select HP Officejet Pro printers; yellow ink; yields up to 2,500 pages\", 'price' => 78.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hp-971-ink-cartridge-yellow/1053872.p?id=1219045593832&skuId=1053872&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1053872', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1053\\/1053872_sa.jpg\"}', 'upc' => '887111103192', 'provider' => 'bestbuy'],\n ['name' => \"The Last Temptation of Reid - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-last-temptation-of-reid-cd/1054414.p?id=1848872&skuId=1054414&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1054414', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1054\\/1054414_sa.jpg\"}', 'upc' => '721616008425', 'provider' => 'bestbuy'],\n ['name' => \"Revenge Fantasies of the Impotent - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/revenge-fantasies-of-the-impotent-cd/1054469.p?id=72697&skuId=1054469&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1054469', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1054\\/1054469.jpg\"}', 'upc' => '721616009125', 'provider' => 'bestbuy'],\n ['name' => \"I Blow Minds for a Living - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 16.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-blow-minds-for-a-living-cd/1054502.p?id=74570&skuId=1054502&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1054502', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1054\\/1054502_sa.jpg\"}', 'upc' => '721616009422', 'provider' => 'bestbuy'],\n ['name' => \"Livescribe - Livescribe Quick Control Calculator Cards\", 'description_short' => \"Fit a world of mathematical knowledge into your wallet\", 'description_long' => \"Fit a world of mathematical knowledge into your wallet\", 'price' => 5.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/livescribe-livescribe-quick-control-calculator-cards/1054547.p?id=1218215100675&skuId=1054547&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1054547', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1054\\/1054547_sa.jpg\"}', 'upc' => '799366693437', 'provider' => 'bestbuy'],\n ['name' => \"The Biggest Ass [Single] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-biggest-ass-single-cd/1054575.p?id=72698&skuId=1054575&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1054575', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1054\\/1054575_sa.jpg\"}', 'upc' => '721616010121', 'provider' => 'bestbuy'],\n ['name' => \"The Greatest Gift - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-greatest-gift-cd/1054682.p?id=98124&skuId=1054682&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1054682', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1054\\/1054682_sa.jpg\"}', 'upc' => '036172077625', 'provider' => 'bestbuy'],\n ['name' => \"Two Nuns and a Pack Mule - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/two-nuns-and-a-pack-mule-cd/1054799.p?id=96025&skuId=1054799&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1054799', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1054\\/1054799_sa.jpg\"}', 'upc' => '036172073627', 'provider' => 'bestbuy'],\n ['name' => \"Hey Judester - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/hey-judester-cd/1054922.p?id=80413&skuId=1054922&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1054922', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1054\\/1054922_sa.jpg\"}', 'upc' => '036172072828', 'provider' => 'bestbuy'],\n ['name' => \"Century Days - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/century-days-cd/1054959.p?id=80420&skuId=1054959&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1054959', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1054\\/1054959.jpg\"}', 'upc' => '036172073023', 'provider' => 'bestbuy'],\n ['name' => \"Intellectuals Are the Shoeshine Boys of the... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/intellectuals-are-the-shoeshine-boys-of-the-cd/1054977.p?id=1548435&skuId=1054977&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1054977', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1054\\/1054977.jpg\"}', 'upc' => '036172074723', 'provider' => 'bestbuy'],\n ['name' => \"Twelve Point Buck - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/twelve-point-buck-cd/1054995.p?id=87854&skuId=1054995&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1054995', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1054\\/1054995_sa.jpg\"}', 'upc' => '036172074822', 'provider' => 'bestbuy'],\n ['name' => \"Americruiser/Jesus Urge Superstar - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/americruiser-jesus-urge-superstar-cd/1055048.p?id=102836&skuId=1055048&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1055048', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1055\\/1055048.jpg\"}', 'upc' => '036172075225', 'provider' => 'bestbuy'],\n ['name' => \"Stud Powercock: The Touch and Go Years 1981-1984 - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/stud-powercock-the-touch-and-go-years-1981-1984-cd/1055128.p?id=91300&skuId=1055128&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1055128', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1055\\/1055128.jpg\"}', 'upc' => '036172076024', 'provider' => 'bestbuy'],\n ['name' => \"Spiderland - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/spiderland-cd/1055173.p?id=99147&skuId=1055173&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1055173', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1055\\/1055173.jpg\"}', 'upc' => '036172076420', 'provider' => 'bestbuy'],\n ['name' => \"The Supersonic Storybook - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-supersonic-storybook-cd/1055235.p?id=102840&skuId=1055235&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1055235', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1055\\/1055235_sa.jpg\"}', 'upc' => '036172077021', 'provider' => 'bestbuy'],\n ['name' => \"Full Nelson Reilly - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/full-nelson-reilly-cd/1055253.p?id=80412&skuId=1055253&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1055253', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1055\\/1055253.jpg\"}', 'upc' => '036172077120', 'provider' => 'bestbuy'],\n ['name' => \"In the Dark with You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/in-the-dark-with-you-cd/1056449.p?id=75922&skuId=1056449&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1056449', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1056\\/1056449_sa.jpg\"}', 'upc' => '033651000822', 'provider' => 'bestbuy'],\n ['name' => \"Legends Of Folk - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/legends-of-folk-cd/1056458.p?id=82589&skuId=1056458&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1056458', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1056\\/1056458_sa.jpg\"}', 'upc' => '033651003120', 'provider' => 'bestbuy'],\n ['name' => \"Blue Mesa - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-mesa-cd/1056635.p?id=94144&skuId=1056635&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1056635', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1056\\/1056635_sa.jpg\"}', 'upc' => '033651003021', 'provider' => 'bestbuy'],\n ['name' => \"Soul Shake - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/soul-shake-cd/1056680.p?id=100586&skuId=1056680&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1056680', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1056\\/1056680.jpg\"}', 'upc' => '049891000621', 'provider' => 'bestbuy'],\n ['name' => \"Read My Lips - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/read-my-lips-cd/1056733.p?id=74008&skuId=1056733&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1056733', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1056\\/1056733_sa.jpg\"}', 'upc' => '049891000928', 'provider' => 'bestbuy'],\n ['name' => \"The Prestige Recordings [Box] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 149.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-prestige-recordings-box-cd/1056993.p?id=65175&skuId=1056993&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1056993', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1056\\/1056993_sa.jpg\"}', 'upc' => '025218440523', 'provider' => 'bestbuy'],\n ['name' => \"Razer - 5.1-Channel Soundbar System with Subwoofer - Black\", 'description_short' => \"30W RMS power; dedicated subwoofer; surround sound; Bluetooth 4.0; aptX codec; 3 preset equalizer modes\", 'description_long' => \"30W RMS power; dedicated subwoofer; surround sound; Bluetooth 4.0; aptX codec; 3 preset equalizer modes\", 'price' => 199.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/razer-5-1-channel-soundbar-system-with-subwoofer-black/1057028.p?id=1219461499589&skuId=1057028&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057028', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057028_sa.jpg\"}', 'upc' => '811254025189', 'provider' => 'bestbuy'],\n ['name' => \"Isaac Mizrahi New York - Folio Case for Apple® iPad® Air and iPad Air 2 - Navy/Pink/White/Yellow\", 'description_short' => \"Only at Best Buy\nCompatible with Apple iPad Air and iPad Air 2; folio case; protects your device from damage; floral design\", 'description_long' => \"Only at Best Buy\nCompatible with Apple iPad Air and iPad Air 2; folio case; protects your device from damage; floral design\", 'price' => 39.99, 'sale_price' => 15.99, 'url' => 'http://www.bestbuy.com/site/isaac-mizrahi-new-york-folio-case-for-apple-ipad-air-and-ipad-air-2-navy-pink-white-yellow/1057073.p?id=1219461497665&skuId=1057073&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057073', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057073_sa.jpg\"}', 'upc' => '5031300088165', 'provider' => 'bestbuy'],\n ['name' => \"Isaac Mizrahi New York - Hard Shell Case for Apple° iPhone° SE, 5s and 5 - Pink\", 'description_short' => \"Only at Best Buy\nCompatible with Apple iPhone SE, 5s and 5; polycarbonate and TPU construction; play-through design\", 'description_long' => \"Only at Best Buy\nCompatible with Apple iPhone SE, 5s and 5; polycarbonate and TPU construction; play-through design\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/isaac-mizrahi-new-york-hard-shell-case-for-apple-iphone-se-5s-and-5-pink/1057082.p?id=1219461889371&skuId=1057082&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057082', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/pac\\/products\\/1312\\/1312657746\\/1312657746_sa.jpg\"}', 'upc' => '5031300084600', 'provider' => 'bestbuy'],\n ['name' => \"Isaac Mizrahi New York - Hard Shell Case for Samsung Galaxy S 5 Cell Phones - Pink\", 'description_short' => \"Only at Best Buy\nCompatible with Samsung Galaxy S 5 cell phones; polycarbonate and TPU construction; play-through design\", 'description_long' => \"Only at Best Buy\nCompatible with Samsung Galaxy S 5 cell phones; polycarbonate and TPU construction; play-through design\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/isaac-mizrahi-new-york-hard-shell-case-for-samsung-galaxy-s-5-cell-phones-pink/1057091.p?id=1219461892690&skuId=1057091&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057091', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057091_sa.jpg\"}', 'upc' => '5031300089247', 'provider' => 'bestbuy'],\n ['name' => \"Isaac Mizrahi New York - Hard Shell Case for Apple° iPhone° 6 and 6s - Black/Gold\", 'description_short' => \"Only at Best Buy\nCompatible with Apple iPhone 6 and 6s; polycarbonate shell; inner TPU construction; play-through design\", 'description_long' => \"Only at Best Buy\nCompatible with Apple iPhone 6 and 6s; polycarbonate shell; inner TPU construction; play-through design\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/isaac-mizrahi-new-york-hard-shell-case-for-apple-iphone-6-and-6s-black-gold/1057106.p?id=1219461890704&skuId=1057106&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057106', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057106_sa.jpg\"}', 'upc' => '5031300084549', 'provider' => 'bestbuy'],\n ['name' => \"Duke Elington Carnegie Hall Concerts,... - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 21.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/duke-elington-carnegie-hall-concerts-cd/1057117.p?id=65999&skuId=1057117&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057117', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057117_sa.jpg\"}', 'upc' => '025218540421', 'provider' => 'bestbuy'],\n ['name' => \"The Artistry of the Modern Jazz Quartet - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-artistry-of-the-modern-jazz-quartet-cd/1057126.p?id=69246&skuId=1057126&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057126', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057126_sa.jpg\"}', 'upc' => '025218301626', 'provider' => 'bestbuy'],\n ['name' => \"Isaac Mizrahi New York - Hard Shell Case for Samsung Galaxy S 5 Cell Phones - Navy/Pink/White\", 'description_short' => \"Only at Best Buy\nCompatible with Samsung Galaxy S 5 cell phones; polycarbonate and TPU construction; play-through design\", 'description_long' => \"Only at Best Buy\nCompatible with Samsung Galaxy S 5 cell phones; polycarbonate and TPU construction; play-through design\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/isaac-mizrahi-new-york-hard-shell-case-for-samsung-galaxy-s-5-cell-phones-navy-pink-white/1057142.p?id=1219461891066&skuId=1057142&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057142', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057142_sa.jpg\"}', 'upc' => '5031300089230', 'provider' => 'bestbuy'],\n ['name' => \"Fine Cuts - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fine-cuts-cd/1057144.p?id=85722&skuId=1057144&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057144', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057144.jpg\"}', 'upc' => '019148067820', 'provider' => 'bestbuy'],\n ['name' => \"Blues on the Range - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blues-on-the-range-cd/1057171.p?id=97167&skuId=1057171&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057171', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057171.jpg\"}', 'upc' => '019148358928', 'provider' => 'bestbuy'],\n ['name' => \"Isaac Mizrahi New York - Hard Shell Case for Apple° iPhone° SE, 5s and 5 - Navy/Pink/White\", 'description_short' => \"Only at Best Buy\nCompatible with Apple iPhone SE, 5s and 5; polycarbonate and TPU construction; play-through design\", 'description_long' => \"Only at Best Buy\nCompatible with Apple iPhone SE, 5s and 5; polycarbonate and TPU construction; play-through design\", 'price' => 4.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/isaac-mizrahi-new-york-hard-shell-case-for-apple-iphone-se-5s-and-5-navy-pink-white/1057188.p?id=1219461890703&skuId=1057188&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057188', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/pac\\/products\\/1312\\/1312657739\\/1312657739_sa.jpg\"}', 'upc' => '5031300084594', 'provider' => 'bestbuy'],\n ['name' => \"Gravel Road - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/gravel-road-cd/1057199.p?id=90164&skuId=1057199&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057199', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057199_sa.jpg\"}', 'upc' => '019148369023', 'provider' => 'bestbuy'],\n ['name' => \"Zydeco to Go - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/zydeco-to-go-cd/1057215.p?id=96036&skuId=1057215&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057215', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057215.jpg\"}', 'upc' => '019148379022', 'provider' => 'bestbuy'],\n ['name' => \"Comin' Your Way - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/comin-your-way-cd/1057233.p?id=92189&skuId=1057233&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057233', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057233_sa.jpg\"}', 'upc' => '019148077928', 'provider' => 'bestbuy'],\n ['name' => \"Drinkin' TNT 'n' Smokin' Dynamite - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/drinkin-tnt-n-smokin-dynamite-cd/1057251.p?id=84491&skuId=1057251&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057251', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057251_sa.jpg\"}', 'upc' => '019148118225', 'provider' => 'bestbuy'],\n ['name' => \"Can't Keep Lovin' You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cant-keep-lovin-you-cd/1057260.p?id=85721&skuId=1057260&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057260', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057260.jpg\"}', 'upc' => '019148148420', 'provider' => 'bestbuy'],\n ['name' => \"Snooky - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/snooky-cd/1057288.p?id=95526&skuId=1057288&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057288', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057288.jpg\"}', 'upc' => '019148238725', 'provider' => 'bestbuy'],\n ['name' => \"Take Me Back - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/take-me-back-cd/1057313.p?id=78794&skuId=1057313&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057313', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057313.jpg\"}', 'upc' => '019148258723', 'provider' => 'bestbuy'],\n ['name' => \"Slidewinder - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/slidewinder-cd/1057331.p?id=97169&skuId=1057331&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057331', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057331.jpg\"}', 'upc' => '019148268722', 'provider' => 'bestbuy'],\n ['name' => \"Mr. Boogie's Back in Town - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/mr-boogies-back-in-town-cd/1057368.p?id=104704&skuId=1057368&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057368', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057368.jpg\"}', 'upc' => '019148288829', 'provider' => 'bestbuy'],\n ['name' => \"After Hours - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/after-hours-cd/1057386.p?id=94710&skuId=1057386&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057386', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057386.jpg\"}', 'upc' => '019148308824', 'provider' => 'bestbuy'],\n ['name' => \"Tops - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/tops-cd/1057402.p?id=97584&skuId=1057402&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057402', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057402.jpg\"}', 'upc' => '019148318823', 'provider' => 'bestbuy'],\n ['name' => \"Heart & Soul - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/heart-soul-cd/1057448.p?id=100769&skuId=1057448&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057448', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057448.jpg\"}', 'upc' => '019148338920', 'provider' => 'bestbuy'],\n ['name' => \"Out to Get You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/out-to-get-you-cd/1057475.p?id=75400&skuId=1057475&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057475', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057475.jpg\"}', 'upc' => '019148389021', 'provider' => 'bestbuy'],\n ['name' => \"Cuttin' Loose - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cuttin-loose-cd/1057509.p?id=76535&skuId=1057509&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057509', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057509.jpg\"}', 'upc' => '019148409026', 'provider' => 'bestbuy'],\n ['name' => \"Back to the Country - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/back-to-the-country-cd/1057545.p?id=98604&skuId=1057545&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057545', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057545.jpg\"}', 'upc' => '019148439122', 'provider' => 'bestbuy'],\n ['name' => \"R&B - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/r-b-cd/1057563.p?id=97175&skuId=1057563&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057563', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057563.jpg\"}', 'upc' => '019148449121', 'provider' => 'bestbuy'],\n ['name' => \"Blue Ivory [Blind Pig] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/blue-ivory-blind-pig-cd/1057581.p?id=75243&skuId=1057581&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057581', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057581.jpg\"}', 'upc' => '019148459120', 'provider' => 'bestbuy'],\n ['name' => \"Steppin' Out - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/steppin-out-cd/1057590.p?id=83920&skuId=1057590&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057590', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057590.jpg\"}', 'upc' => '019148469129', 'provider' => 'bestbuy'],\n ['name' => \"Help Yourself - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/help-yourself-cd/1057616.p?id=77996&skuId=1057616&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057616', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057616.jpg\"}', 'upc' => '019148479227', 'provider' => 'bestbuy'],\n ['name' => \"Prime Chops: Blind Pig Sampler - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 8.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/prime-chops-blind-pig-sampler-cd-various/1057652.p?id=75035&skuId=1057652&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1057652', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1057\\/1057652_sa.jpg\"}', 'upc' => '019148800120', 'provider' => 'bestbuy'],\n ['name' => \"All Because of You - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/all-because-of-you-cd/1058848.p?id=103597&skuId=1058848&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1058848', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1058\\/1058848.jpg\"}', 'upc' => '026656272028', 'provider' => 'bestbuy'],\n ['name' => \"Harlem Nocturne - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/harlem-nocturne-cd/1058866.p?id=88317&skuId=1058866&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1058866', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1058\\/1058866.jpg\"}', 'upc' => '026656272127', 'provider' => 'bestbuy'],\n ['name' => \"Force Field [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/force-field-pa-cd/1058884.p?id=87530&skuId=1058884&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1058884', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1058\\/1058884.jpg\"}', 'upc' => '026656272226', 'provider' => 'bestbuy'],\n ['name' => \"Still Dangerous [PA] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/still-dangerous-pa-cd/1058900.p?id=102462&skuId=1058900&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1058900', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1058\\/1058900.jpg\"}', 'upc' => '026656272523', 'provider' => 'bestbuy'],\n ['name' => \"Reinald-O - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/reinald-o-cd/1058928.p?id=96407&skuId=1058928&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1058928', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1058\\/1058928_sa.jpg\"}', 'upc' => '026656272721', 'provider' => 'bestbuy'],\n ['name' => \"Love Can't Wait - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/love-cant-wait-cd/1058937.p?id=89272&skuId=1058937&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1058937', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1058\\/1058937_sa.jpg\"}', 'upc' => '026656272820', 'provider' => 'bestbuy'],\n ['name' => \"Candy Girl - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/candy-girl-cd/1059017.p?id=93121&skuId=1059017&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059017', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059017_sa.jpg\"}', 'upc' => '026656870125', 'provider' => 'bestbuy'],\n ['name' => \"KitchenAid - 30\\\" Built-In Gas Cooktop - Silver\", 'description_short' => \"Front controls; 4 sealed burners; 900-15,000 BTU burner range; simmer burner\", 'description_long' => \"Front controls; 4 sealed burners; 900-15,000 BTU burner range; simmer burner\", 'price' => 1599.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/kitchenaid-30-built-in-gas-cooktop-silver/1059533.p?id=1218214389352&skuId=1059533&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059533', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059533_sa.jpg\"}', 'upc' => '883049202471', 'provider' => 'bestbuy'],\n ['name' => \"I Just Want To Sing - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-just-want-to-sing-cd/1059785.p?id=72103&skuId=1059785&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059785', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059785.jpg\"}', 'upc' => '013491400426', 'provider' => 'bestbuy'],\n ['name' => \"Klezmer Giora Feidman: The Magic of the Klezmer - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/klezmer-giora-feidman-the-magic-of-the-klezmer-cd/1059794.p?id=82044&skuId=1059794&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059794', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059794_sa.jpg\"}', 'upc' => '013491400525', 'provider' => 'bestbuy'],\n ['name' => \"Feeling Good - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/feeling-good-cd/1059801.p?id=64325&skuId=1059801&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059801', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059801.jpg\"}', 'upc' => '013491400723', 'provider' => 'bestbuy'],\n ['name' => \"Summer Night - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/summer-night-cd/1059838.p?id=70208&skuId=1059838&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059838', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059838_sa.jpg\"}', 'upc' => '013491401027', 'provider' => 'bestbuy'],\n ['name' => \"Trinidad Carnival - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/trinidad-carnival-cd-various/1059847.p?id=100242&skuId=1059847&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059847', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059847_sa.jpg\"}', 'upc' => '013491401225', 'provider' => 'bestbuy'],\n ['name' => \"Jazz N Steel From Trinidad & Tobago - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jazz-n-steel-from-trinidad-tobago-cd/1059856.p?id=100241&skuId=1059856&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059856', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059856_sa.jpg\"}', 'upc' => '013491401324', 'provider' => 'bestbuy'],\n ['name' => \"Carnival Jump-Up - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/carnival-jump-up-cd-various/1059865.p?id=100239&skuId=1059865&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059865', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059865.jpg\"}', 'upc' => '013491401423', 'provider' => 'bestbuy'],\n ['name' => \"Pan Jazz 'N' Calypso - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pan-jazz-n-calypso-cd/1059883.p?id=100244&skuId=1059883&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059883', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059883_sa.jpg\"}', 'upc' => '013491401621', 'provider' => 'bestbuy'],\n ['name' => \"Pan Woman: Steel Band Music - CD - Various\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/pan-woman-steel-band-music-cd-various/1059892.p?id=100243&skuId=1059892&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059892', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059892_sa.jpg\"}', 'upc' => '013491401720', 'provider' => 'bestbuy'],\n ['name' => \"Sing De Chorus: Calypso from Trinidad and Tobago - Various - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sing-de-chorus-calypso-from-trinidad-and-tobago-various-cd/1059909.p?id=136483&skuId=1059909&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059909', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059909_sa.jpg\"}', 'upc' => '013491401829', 'provider' => 'bestbuy'],\n ['name' => \"Having Fun - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/having-fun-cd/1059927.p?id=71359&skuId=1059927&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059927', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059927_sa.jpg\"}', 'upc' => '013491402123', 'provider' => 'bestbuy'],\n ['name' => \"I Never Went Away - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/i-never-went-away-cd/1059936.p?id=2188532&skuId=1059936&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059936', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059936.jpg\"}', 'upc' => '013491500126', 'provider' => 'bestbuy'],\n ['name' => \"My Keyboard Friends - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/my-keyboard-friends-cd/1059954.p?id=248653&skuId=1059954&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1059954', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1059\\/1059954.jpg\"}', 'upc' => '013491600222', 'provider' => 'bestbuy'],\n ['name' => \"The Original All-American Sousa! - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-original-all-american-sousa-cd/1060452.p?id=248656&skuId=1060452&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1060452', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1060\\/1060452_sa.jpg\"}', 'upc' => '013491310220', 'provider' => 'bestbuy'],\n ['name' => \"It'S A Good Day - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 14.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/its-a-good-day-cd/1060657.p?id=70363&skuId=1060657&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1060657', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1060\\/1060657_sa.jpg\"}', 'upc' => '013491400228', 'provider' => 'bestbuy'],\n ['name' => \"The Way Home - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-way-home-cd/1060666.p?id=155094&skuId=1060666&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1060666', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1060\\/1060666_sa.jpg\"}', 'upc' => '025041100120', 'provider' => 'bestbuy'],\n ['name' => \"Novus Magnificat: Through the Stargate - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/novus-magnificat-through-the-stargate-cd/1060693.p?id=80168&skuId=1060693&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1060693', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1060\\/1060693.jpg\"}', 'upc' => '025041100328', 'provider' => 'bestbuy'],\n ['name' => \"Galaxies - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/galaxies-cd/1060719.p?id=75711&skuId=1060719&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1060719', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1060\\/1060719.jpg\"}', 'upc' => '025041100427', 'provider' => 'bestbuy'],\n ['name' => \"Jewel Lake - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/jewel-lake-cd/1060746.p?id=80836&skuId=1060746&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1060746', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1060\\/1060746_sa.jpg\"}', 'upc' => '025041100625', 'provider' => 'bestbuy'],\n ['name' => \"Encounter - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/encounter-cd/1060782.p?id=100229&skuId=1060782&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1060782', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1060\\/1060782_sa.jpg\"}', 'upc' => '025041100823', 'provider' => 'bestbuy'],\n ['name' => \"Sacred Space Music - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/sacred-space-music-cd/1060826.p?id=80169&skuId=1060826&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1060826', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1060\\/1060826_sa.jpg\"}', 'upc' => '025041101028', 'provider' => 'bestbuy'],\n ['name' => \"Cantilena - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/cantilena-cd/1060942.p?id=80835&skuId=1060942&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1060942', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1060\\/1060942.jpg\"}', 'upc' => '025041102124', 'provider' => 'bestbuy'],\n ['name' => \"Thunder Chord - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/thunder-chord-cd/1060960.p?id=79046&skuId=1060960&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1060960', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1060\\/1060960.jpg\"}', 'upc' => '025041102223', 'provider' => 'bestbuy'],\n ['name' => \"Angry Birds Toons: Season One, Volume 1 & 2 [3 Discs] (With Bonus Disc) (DVD)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/angry-birds-toons-season-one-volume-1-2-3-discs-with-bonus-disc-dvd/1061006.p?id=3306140&skuId=1061006&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1061006', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1061\\/1061006.jpg\"}', 'upc' => '043396449183', 'provider' => 'bestbuy'],\n ['name' => \"Flamenco Mystico - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/flamenco-mystico-cd/1061086.p?id=79540&skuId=1061086&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1061086', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1061\\/1061086.jpg\"}', 'upc' => '025041130028', 'provider' => 'bestbuy'],\n ['name' => \"Listening Booth: 1970 [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/listening-booth-1970-digipak-cd/1061256.p?id=2123265&skuId=1061256&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1061256', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1061\\/1061256_sa.jpg\"}', 'upc' => '610583349627', 'provider' => 'bestbuy'],\n ['name' => \"Fortress [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/fortress-digipak-cd/1061399.p?id=2128798&skuId=1061399&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1061399', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1061\\/1061399_sa.jpg\"}', 'upc' => '728028025576', 'provider' => 'bestbuy'],\n ['name' => \"James and the Giant Peach (Blu-ray Disc) (2 Disc) (Special Edition)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/james-and-the-giant-peach-blu-ray-disc-2-disc-special-edition/1061413.p?id=43614&skuId=1061413&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1061413', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1061\\/1061413_sa.jpg\"}', 'upc' => '786936799521', 'provider' => 'bestbuy'],\n ['name' => \"The Last Song (Blu-ray Disc) (2 Disc)\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 9.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/the-last-song-blu-ray-disc-2-disc/1061459.p?id=2116895&skuId=1061459&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1061459', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/img.bbystatic.com\\/BestBuy_US\\/images\\/products\\/1061\\/1061459_sa.jpg\"}', 'upc' => '786936805833', 'provider' => 'bestbuy'],\n ['name' => \"Nothing's Gonna Hold Us Down [EP] [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 11.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/nothings-gonna-hold-us-down-ep-digipak-cd/1061486.p?id=2123465&skuId=1061486&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1061486', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1061\\/1061486_sa.jpg\"}', 'upc' => '093624964469', 'provider' => 'bestbuy'],\n ['name' => \"Relentless [Digipak] - CD\", 'description_short' => \"\", 'description_long' => \"\", 'price' => 13.99, 'sale_price' => null, 'url' => 'http://www.bestbuy.com/site/relentless-digipak-cd/1061565.p?id=2123467&skuId=1061565&cmp=RMX', 'cart_url' => 'http://www.bestbuy.com/site/olspage.jsp?id=pcmcat152200050035&type=category&cmp=RMX&qvsids=1061565', 'aff_url' => null, 'aff_cart_url' => null, 'images' => '{\"http:\\/\\/images.bestbuy.com\\/BestBuy_US\\/images\\/products\\/1061\\/1061565_sa.jpg\"}', 'upc' => '026245207424', 'provider' => 'bestbuy']\n ];\n\n // Insert all the products\n foreach($products as $product) {\n Product::create($product);\n }\n }", "function get_items_producto_lista_material_packaging($productos_seleccionados,$deposito_destino,$cantidad_maquinas)\r\n{\r\n\t$sql=\"select en_stock.id_prod_esp,cant_disp,\r\n\t precio_stock,descripcion\r\n from stock.en_stock\r\n join general.producto_especifico on producto_especifico.id_prod_esp=en_stock.id_prod_esp\r\n where en_stock.id_prod_esp in ($productos_seleccionados)\r\n \t\tand id_deposito=2\";\r\n $prod_info=sql($sql,\"<br>Error al traer los productos de packaging desde el stock<br>\") or fin_pagina();\r\n\r\n $total=0;\r\n $i=0;\r\n while (!$prod_info->EOF)\r\n {\r\n //si la cantidad disponible no es mayor o igual que la cantidad de maquinas requeridas, damos el aviso y no lo\r\n //agregamos entre las filas del PM\r\n\t if($cantidad_maquinas<=$prod_info->fields[\"cant_disp\"])\r\n\t\t { $items[$i][\"id_prod_esp\"]=$prod_info->fields[\"id_prod_esp\"];\r\n\t\t $items[$i][\"cantidad\"]=$items[$i][\"cantidad_orig\"]=$cantidad_maquinas;\r\n\r\n\t\t $items[$i][\"descripcion\"]=$prod_info->fields[\"descripcion\"];\r\n\t\t $items[$i][\"precio\"]=$prod_info->fields[\"precio_stock\"];\r\n\t\t $total++;\r\n\t\t }//de if($cantidad_maquinas<=$prod_info->fields[\"cant_disp\"])\r\n\t\t else\r\n \t echo \"<font size=2 color='red'><b>-No hay suficiente Stock disponible para el producto: \".$prod_info->fields[\"descripcion\"].\"</b></font><br>\";\r\n $i++;\r\n \t $prod_info->MoveNext();\r\n }//de while(!$prod_info->EOF)\r\n\r\n $items[\"cantidad\"]=$total;\r\n return $items;\r\n}", "public function quote($status = null, $id = null) {\n if($status == 'create') {\n $ongoing = $this->CrmQuotation->find('first', array(\n 'conditions' => array( \n 'CrmQuotation.admin_id' => $this->Auth->user('id'),\n 'CrmQuotation.status' => 'ONGOING'\n )));\n \n \n if(count($ongoing)!=0){\n //meaning meron syang ongoing na ginagawang quotation\n $quote_data = $ongoing; //retrieved data from existing ongoing quotation\n }else{\n //walang existing so data magcreate na ng data \n $terms_information = '<h3>I. PAYMENT</h3>\n <ol>\n <li>\n <p>A<strong> FIFTY PERCENT (50%)</strong> downpayment shall be required unless Raeas Marketing and the Client shall otherwise agree, balance upon completion of delivery as per agreement.</p>\n </li>\n <li>\n <p>Payment will be accepted in Dated Company Check, Manager’s Check, thru Bank Transfer or Cash.</p>\n </li>\n <li>\n <p>All check is payable to Raeas Marketing.</p>\n </li>\n </ol>\n <h3>II. DELIVERY</h3>\n <ol>\n <li>\n <p>Delivery is FREE for purchases above Php3, 000.00 within Metro Manila. </p>\n </li>\n <li>\n <p>Delivery outside Metro Manila may be charged to client.</p>\n </li>\n </ol>\n <h3>III. Validity</h3> \n <ol>\n <li>\n <p>10 Days from the date of proposal.</p>\n </li>\n <li>\n <p>Prices may vary without prior notice and shall not be considered final unless and until this Quotation Proposal has been signed and accepted.</p>\n </li>\n </ol>\n <h3>IV. Warranty</h3> \n <ol>\n <li>\n <p>One (1) year warranty against factory defect upon normal operating condition.</p>\n </li>\n </ol>\n <h3>V. Cancellation of orders</h3> \n <ol>\n <li>\n <p>All cancellation of orders will be charged a cancellation fee of 30% of the order value.</p>\n </li>\n </ol>';\n $dateToday = date(\"Hymds\");\n $milliseconds = round(microtime(true) * 1000);\n $newstring = substr($milliseconds, -3);\n $quote_number = $newstring . '' . $dateToday;\n \n $quote_exist = $this->CrmQuotation->find('count', array(\n 'conditions' => array(\n 'CrmQuotation.quote_number' => $quote_number\n )));\n\n if ($quote_exist == 0) {\n $quote_no = $quote_number;\n } else {\n $news = substr($milliseconds, -4);\n $quote_no = $news . '' . $dateToday;\n }\n $this->CrmQuotation->create();\n $this->CrmQuotation->set(array(\n 'quote_number' => $quote_no,\n 'admin_id' => $this->Auth->user('id'),\n 'status' => 'ONGOING',\n 'terms' => $terms_information, \n ));\n $this->CrmQuotation->save();\n $id = $this->CrmQuotation->getLastInsertID(); \n $quote_data = $this->CrmQuotation->find('first', array(\n 'conditions' => array('CrmQuotation.admin_id' => $this->Auth->user('id'), 'CrmQuotation.status' => 'ONGOING')\n )); \n }\n } else{\n $quote_data = $this->CrmQuotation->findById($id); \n }\n \n $this->set(compact('quote_data'));\n \n \n $companies = $this->getCompanies();\n // pr($quote_data);\n $quote_prods = $this->getQuotationProducts($quote_data['CrmQuotation']['id']);\n \n $product_lists = $this->getProducts();\n \n $this->set(compact('status','companies', 'quote_prods', 'product_lists'));\n \n\n }", "function randomQuote() {\n\n$quotes[] = '(Organic) machinery';\n$quotes[] = 'A line has two sides';\n$quotes[] = 'A very small object -Its centre';\n$quotes[] = 'Abandon desire';\n$quotes[] = 'Abandon normal instructions';\n$quotes[] = 'Accept advice';\n$quotes[] = 'Accretion';\n$quotes[] = 'Adding on';\n$quotes[] = 'Allow an easement (an easement is the abandonment of a stricture)';\n$quotes[] = 'Always first steps';\n$quotes[] = 'Always give yourself credit for having more than personality';\n$quotes[] = 'Always the first steps';\n$quotes[] = 'Are there sections? Consider transitions';\n$quotes[] = 'Ask people to work against their better judgement';\n$quotes[] = 'Ask your body';\n$quotes[] = 'Assemble some of the elements in a group and treat the group';\n$quotes[] = 'Back up a few steps. What else could you have done?';\n$quotes[] = 'Balance the consistency principle with the inconsistency principle';\n$quotes[] = 'Be dirty';\n$quotes[] = 'Be extravagant';\n$quotes[] = 'Be less critical more often';\n$quotes[] = 'Breathe more deeply';\n$quotes[] = 'Bridges -build -burn';\n$quotes[] = 'Call your mother and ask her what to do.';\n$quotes[] = 'Cascades';\n$quotes[] = 'Change ambiguities to specifics';\n$quotes[] = 'Change instrument roles';\n$quotes[] = 'Change nothing and continue with immaculate consistency';\n$quotes[] = 'Change specifics to ambiguities';\n$quotes[] = 'Children&#8217;s voices: -speaking -singing';\n$quotes[] = 'Cluster analysis';\n$quotes[] = 'Consider different fading systems';\n$quotes[] = 'Consider transitions';\n$quotes[] = 'Consult other sources -promising -unpromising';\n$quotes[] = 'Convert a melodic element into a rhythmic element';\n$quotes[] = 'Courage!';\n$quotes[] = 'Cut a vital connection';\n$quotes[] = 'Decorate, decorate';\n$quotes[] = 'Define an area as &#8220safe&#8221 and use it as an anchor';\n$quotes[] = 'Describe the landscape in which this belongs. (9 August)';\n$quotes[] = 'Destroy nothing; Destroy the most important thing';\n$quotes[] = 'Discard an axiom';\n$quotes[] = 'Disciplined self-indulgence';\n$quotes[] = 'Disconnect from desire';\n$quotes[] = 'Discover the recipes you are using and abandon them';\n$quotes[] = 'Discover your formulas and abandon them';\n$quotes[] = 'Display your talent';\n$quotes[] = 'Distorting time';\n$quotes[] = 'Do nothing for as long as possible';\n$quotes[] = 'Do something boring';\n$quotes[] = 'Do something sudden, destructive and unpredictable';\n$quotes[] = 'Do the last thing first';\n$quotes[] = 'Do the washing up';\n$quotes[] = 'Do the words need changing?';\n$quotes[] = 'Do we need holes?';\n$quotes[] = 'Don&#8217;t avoid what is easy';\n$quotes[] = 'Don&#8217;t be afraid of things because they&#8217;re easy to do';\n$quotes[] = 'Don&#8217;t be frightened of cliches';\n$quotes[] = 'Don&#8217;t be frightened to display your talents';\n$quotes[] = 'Don&#8217;t break the silence';\n$quotes[] = 'Don&#8217;t stress one thing more than another';\n$quotes[] = 'Emphasize differences';\n$quotes[] = 'Emphasize repetitions';\n$quotes[] = 'Emphasize the flaws';\n$quotes[] = 'Faced with a choice, do both';\n$quotes[] = 'Feed the recording back out of the medium';\n$quotes[] = 'Feedback recordings into an acoustic situation';\n$quotes[] = 'Fill every beat with something';\n$quotes[] = 'Find a safe part and use it as an anchor';\n$quotes[] = 'First work alone, then work in unusual pairs.';\n$quotes[] = 'From nothing to more than nothing';\n$quotes[] = 'Get your neck massaged';\n$quotes[] = 'Ghost echoes';\n$quotes[] = 'Give the game away';\n$quotes[] = 'Give way to your worst impulse';\n$quotes[] = 'Go outside. Shut the door.';\n$quotes[] = 'Go slowly all the way round the outside';\n$quotes[] = 'Go to an extreme, move back to a more comfortable place';\n$quotes[] = 'How would someone else do it?';\n$quotes[] = 'How would you explain this to your parents?';\n$quotes[] = 'How would you have done it?';\n$quotes[] = 'Humanize something that is free of error.';\n$quotes[] = 'Idiot glee (?)';\n$quotes[] = 'Imagine the music as a moving chain or caterpillar';\n$quotes[] = 'Imagine the music as a series of disconnected events';\n$quotes[] = 'In total darkness, or in a very large room, very quietly';\n$quotes[] = 'Infinitesimal gradations';\n$quotes[] = 'Instead of changing the thing, change the world around it.';\n$quotes[] = 'Intentions -credibility of -nobility of -humility of';\n$quotes[] = 'Into the impossible';\n$quotes[] = 'Is it finished?';\n$quotes[] = 'Is something missing?';\n$quotes[] = 'Is the intonation correct?';\n$quotes[] = 'Is the style right?';\n$quotes[] = 'Is the tuning appropriate?';\n$quotes[] = 'Is the tuning intonation correct?';\n$quotes[] = 'Is there something missing?';\n$quotes[] = 'It is quite possible (after all)';\n$quotes[] = 'It is simply a matter or work';\n$quotes[] = 'Just carry on';\n$quotes[] = 'Left channel, right channel, centre channel';\n$quotes[] = 'List the qualities it has. List those you&#8217;d like.';\n$quotes[] = 'Listen in total darkness, or in a very large room, very quietly';\n$quotes[] = 'Listen to the quiet voice';\n$quotes[] = 'Look at a very small object, look at its centre';\n$quotes[] = 'Look at the order in which you do things';\n$quotes[] = 'Look closely at the most embarrassing details and amplify.';\n$quotes[] = 'Lost in useless territory';\n$quotes[] = 'Lowest common denominator check: -single beat -single note -single riff';\n$quotes[] = 'Magnify the most difficult details';\n$quotes[] = 'Make a blank valuable by putting it in an excquisite frame';\n$quotes[] = 'Make a sudden, destructive unpredictable action; incorporate';\n$quotes[] = 'Make an exhaustive list of everything you might do and do the last thing on the list';\n$quotes[] = 'Make it more sensual';\n$quotes[] = 'Make what&#8217;s perfect more human';\n$quotes[] = 'Mechanize something idiosyncratic';\n$quotes[] = 'Move towards the unimportant';\n$quotes[] = 'Mute and continue';\n$quotes[] = 'Not building a wall but making a brick';\n$quotes[] = 'Once the search has begun, something will be found';\n$quotes[] = 'Only a part, not the whole';\n$quotes[] = 'Only one element of each kind';\n$quotes[] = 'Overtly resist change';\n$quotes[] = 'Pae White&#8217;s non-blank graphic metacard';\n$quotes[] = 'Pay attention to distractions';\n$quotes[] = 'Picture of a man spotlighted';\n$quotes[] = 'Put in earplugs';\n$quotes[] = 'Question the heroic approach';\n$quotes[] = 'Remember those quiet evenings';\n$quotes[] = 'Remove a restriction';\n$quotes[] = 'Remove ambiguities and convert to specifics';\n$quotes[] = 'Remove specifics and convert to ambiguities';\n$quotes[] = 'Remove the middle, extend the edges';\n$quotes[] = 'Repetition is a form of change';\n$quotes[] = 'Retrace your steps';\n$quotes[] = 'Revaluation (a warm feeling)';\n$quotes[] = 'Reverse';\n$quotes[] = 'Short circuit (example; a man eating peas with the idea that they will improve his virility shovels them straight into his lap)';\n$quotes[] = 'Shut the door and listen from outside';\n$quotes[] = 'Simple subtraction';\n$quotes[] = 'Simply a matter of work';\n$quotes[] = 'Slow preparation, fast execution';\n$quotes[] = 'Spectrum analysis';\n$quotes[] = 'State the problem in words as simply as possible';\n$quotes[] = 'Steal a solution.';\n$quotes[] = 'Take a break';\n$quotes[] = 'Take away as much mystery as possible. What is left?';\n$quotes[] = 'Take away the elements in order of apparent non-importance';\n$quotes[] = 'Take away the important parts';\n$quotes[] = 'Tape your mouth';\n$quotes[] = 'The inconsistency principle';\n$quotes[] = 'The most important thing is the thing most easily forgotten';\n$quotes[] = 'The tape is now the music';\n$quotes[] = 'Think: -inside the work -outside the work';\n$quotes[] = 'Think of the radio';\n$quotes[] = 'Tidy up';\n$quotes[] = 'Towards the insignificant';\n$quotes[] = 'Trust in the you of now';\n$quotes[] = 'Try faking it';\n$quotes[] = 'Turn it upside down';\n$quotes[] = 'Twist the spine';\n$quotes[] = 'Use &#8220;unqualified&#8221; people.';\n$quotes[] = 'Use an old idea';\n$quotes[] = 'Use an unacceptable color';\n$quotes[] = 'Use cliches';\n$quotes[] = 'Use fewer notes';\n$quotes[] = 'Use filters';\n$quotes[] = 'Use something nearby as a model';\n$quotes[] = 'Use your own ideas';\n$quotes[] = 'Voice your suspicions';\n$quotes[] = 'Water';\n$quotes[] = 'What are the sections sections of? Imagine a caterpillar moving';\n$quotes[] = 'What context would look right?';\n$quotes[] = 'What do you do? Now, what do you do best?';\n$quotes[] = 'What else is this like?';\n$quotes[] = 'What is the reality of the situation?';\n$quotes[] = 'What is the simplest solution?';\n$quotes[] = 'What mistakes did you make last time?';\n$quotes[] = 'What most recently impressed you? How is it similar? What can you learn from it? What could you take from it?';\n$quotes[] = 'What to increase? What to reduce? What to maintain?';\n$quotes[] = 'What were the branch points in the evolution of this entity';\n$quotes[] = 'What were you really thinking about just now? Incorporate';\n$quotes[] = 'What would make this really successful?';\n$quotes[] = 'What would your closest friend do?';\n$quotes[] = 'What wouldn&#8217;t you do?';\n$quotes[] = 'When is it for? Who is it for?';\n$quotes[] = 'Where is the edge?';\n$quotes[] = 'Which parts can be grouped?';\n$quotes[] = 'Who would make this really successful?';\n$quotes[] = 'Work at a different speed';\n$quotes[] = 'Would anyone want it?';\n$quotes[] = 'You are an engineer';\n$quotes[] = 'You can only make one dot at a time';\n$quotes[] = 'You don&#8217;t have to be ashamed of using your own ideas';\n$quotes[] = 'Your mistake was a hidden intention';\n\nsrand ((double) microtime() * 1000000);\n$random_number = rand(0,count($quotes)-1);\n\necho '<p><a href=\"http://oblique.soundmachinedream.com/\">' . ($quotes[$random_number]) . '</a></p>';\n}", "public function get_quotes() \n\t{\n\t\treturn $this->db->select('price')\n\t\t->from('investroom_system_quotes')\n\t\t->limit(6)\n\t\t->order_by('id', 'DESC')\t\n\t\t->get()->result();\n\t}" ]
[ "0.6120256", "0.55053383", "0.51664585", "0.512536", "0.5107643", "0.5080049", "0.5076223", "0.5072831", "0.50718755", "0.50587404", "0.50523823", "0.50510806", "0.5034993", "0.5005698", "0.49957615", "0.4990377", "0.49871567", "0.49745357", "0.49557212", "0.49543577", "0.4943036", "0.49106324", "0.48907775", "0.48724005", "0.4871833", "0.48713455", "0.4861675", "0.485804", "0.48338935", "0.48280725", "0.482655", "0.48250952", "0.479753", "0.4788916", "0.47888288", "0.4776522", "0.4763582", "0.47509912", "0.47508395", "0.47487006", "0.4748377", "0.4746912", "0.47326437", "0.47173694", "0.4699631", "0.46985728", "0.46851754", "0.4675766", "0.46732238", "0.4667841", "0.466153", "0.46515527", "0.465085", "0.46428722", "0.46414888", "0.46271816", "0.46260458", "0.4625714", "0.4625167", "0.46247035", "0.4619224", "0.46123213", "0.46039394", "0.46020043", "0.45986146", "0.45882168", "0.45850927", "0.4582728", "0.45791024", "0.4575851", "0.45752668", "0.4572688", "0.45612624", "0.4560406", "0.45514706", "0.4549843", "0.45487884", "0.4546094", "0.45408526", "0.45345065", "0.45336306", "0.45327252", "0.45284852", "0.45241782", "0.4520125", "0.45166737", "0.45134893", "0.45107976", "0.45094496", "0.45028797", "0.44980085", "0.44976735", "0.44969088", "0.44946882", "0.4494554", "0.4492164", "0.4487969", "0.4487249", "0.4483086", "0.44830713" ]
0.5730308
1
Get values for individual items on order
public function getOrderItemValues($allItems) { $return = array(); if(!empty($allItems)) { foreach($allItems as $item => $values) { $qty = $values['qty']; $tot = $values['lineItemTotal']; $per1 = round($tot / $qty, 2); for($i = 1; $i <= $qty; $i++) { //if last then substract from total to balance out, otherwise use per1 split if($i == $qty) $return[$item][] = $tot - (($qty-1)*$per1); else $return[$item][] = $per1; } } } return $return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder(): array;", "protected function getOrderItemValues($item, $order, $itemInc=1 , $stockno) \n {\n \treturn array(\n \n $item->getData('name'),\n /* $this->getItemOptions($item),\n (int)$item->getQtyShipped(),\n\t\t\t$stockno, */\n\t\t\t(int)$item->getData('weight').\"grms\",\n\t\t\t(int)$item->getData('qty_ordered'),\n\t\t\t\n \n );\n }", "protected function _getValues()\n {\n return [\n $this->_getOrderId(),\n $this->_getTotal(),\n $this->_getItemsNames(),\n $this->_getSuccessUrl(),\n $this->_getErrorUrl(),\n $this->_getPaymentReportUrl()\n ];\n }", "public function getItemsInfo()\n {\n $data = [];\n foreach ($this->getOrder()->getAllItems() as $item) {\n if ($this->getDisplayWrappingBothPrices()) {\n $temp['price_excl_tax'] = $this->_preparePrices($item->getGwBasePrice(), $item->getGwPrice());\n $temp['price_incl_tax'] = $this->_preparePrices(\n $item->getGwBasePrice() + $item->getGwBaseTaxAmount(),\n $item->getGwPrice() + $item->getGwTaxAmount()\n );\n } elseif ($this->getDisplayWrappingPriceInclTax()) {\n $temp['price'] = $this->_preparePrices(\n $item->getGwBasePrice() + $item->getGwBaseTaxAmount(),\n $item->getGwPrice() + $item->getGwTaxAmount()\n );\n } else {\n $temp['price'] = $this->_preparePrices($item->getGwBasePrice(), $item->getGwPrice());\n }\n $temp['design'] = $item->getGwId();\n $data[$item->getId()] = $temp;\n }\n return new \\Magento\\Framework\\DataObject($data);\n }", "function getOrder();", "function getOrderings() ;", "public function getValues()\n {\n $values = array();\n\n foreach ($this->items as $item) {\n $values[] = $item['value'];\n }\n\n return $values;\n }", "public function orderItem(): OrderItem\n {\n return $this->order_item;\n }", "private function getOrderItems(OrderInterface $order): array\n {\n $orderItemsById = [];\n foreach ($order->getItems() as $item) {\n $orderItemsById[$item->getItemId()] = $item;\n }\n\n return $orderItemsById;\n }", "public function getOrders() \n {\n return $this->_fields['Orders']['FieldValue'];\n }", "protected abstract function getOrderFields();", "public function getValues()\n {\n return array_keys($this->items);\n }", "public function getOrderItems()\n {\n return $this->hasMany(OrderItem::className(), ['order_id' => 'id'])->inverseOf('order');\n }", "public function getPriceInfos(&$orderItem, array $order) {\n $info = array();\n $postion = 0;\n $orderCurrency = $order['currency_code'];\n\n $method = $order['shipping_method'];\n $shipingMethod = array('pm_id' => '', 'title' => $method, 'description' => '', 'price' => 0);\n\n $this->load->model('account/order');\n $rows = $this->model_account_order->getOrderTotals($order['order_id']);\n foreach ($rows as $row) {\n $title = $row['title'];\n $price = $row['value'] * $order['currency_value'];\n $info[] = array(\n 'title' => $title,\n 'type' => $row['code'],\n 'price' => $price,\n 'currency' => $orderCurrency,\n 'position' => $postion++);\n\n if (ereg($method, $title)) {\n $shipingMethod['price'] = $price;\n }\n }\n $orderItem['shipping_method'] = $shipingMethod;\n\n return $info;\n }", "protected function getPreparedItemByItemId()\n {\n $order = $this->getOrder();\n $request = \\XLite\\Core\\Request::getInstance();\n $attributeValues = array();\n $item = $order->getItemByItemId($request->item_id);\n\n if (\n $item\n && !empty($request->order_items[$request->item_id])\n && !empty($request->order_items[$request->item_id]['attribute_values'])\n ) {\n $attributeValues = $request->order_items[$request->item_id]['attribute_values'];\n }\n\n return array($item, $attributeValues);\n }", "public function getOrderItems()\n {\n return $this->hasMany(OrderItems::class, ['oi_order_id' => 'id']);\n }", "function build_array_of_ordered_items( $item ) {\n\n\t// Declare an array to populate with item information\n\t$item_array = array();\n\n\t// Get the SKU for the item, using the variation_id\n\t$sku = get_post_meta( $item['variation_id'], '_sku', true );\n\t// Get the quantity of the item sold from the item object\n\t$quantity = $item['quantity'];\n\t// Get the name of the item sold from the item object\n\t$name = $item['name'];\n\t// Get the total cost of the item sold from the item object\n\t$total = $item['total'];\n\n\t// Add these variables to the item_array\n\t$item_array['SKUSize'] = $sku;\n\t// $item_array['Article'] = $name;\n\t$item_array['Quantity'] = $quantity;\n\t$item_array['Item_Price'] = floatval($total / $quantity);\n\t$item_array['Line_Total'] = floatval($total);\n\n\t// Return the result of the array\n\treturn $item_array;\n\n}", "protected function getValues($item){\n\t\tfor ($i=0; $i < $this->tableModel->getColumnCount(); $i++){\n\t\t\t$values[]= $this->tableModel->getValue($item, $i) ;\n\t\t}\n\t \treturn $values;\t\n\t}", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "function getOrder()\n{\n\n}", "public function getItemData() {\n return array(\n 'itemSku' => $this->itemSku,\n 'itemQty' => $this->itemQty,\n 'itemDisc' => $this->itemDisc,\n 'itemMaxDisc' => $this->itemMaxDisc,\n 'rewardRatio' => $this->rewardRatio\n );\n }", "function wv_commission_get_woo_orderitem_metavalue($order_itemid, $metakey) {\n global $wpdb;\n\n $sql_query = \"SELECT meta_value FROM `\" . $wpdb->prefix . \"woocommerce_order_itemmeta` WHERE `meta_key`='$metakey' AND `order_item_id`=$order_itemid\";\n $val = $wpdb->get_row($sql_query);\n\n return $val->meta_value;\n }", "public function getItems(): array;", "public function getItems(): array;", "public function getValues() {}", "public function getValues() {}", "public function values(): array\n {\n return array_values($this->items);\n }", "protected function getItemsInfo($order, $quote)\n {\n $dataItems = [];\n foreach ($order->getAllVisibleItems() as $item) {\n $product = $item->getProduct();\n $image = $this->_helperImage->init($product, 'product_thumbnail_image');\n\n $dataItems[] = [\n \"id\" => $item->getSku(),\n \"title\" => $product->getName(),\n \"description\" => $product->getName(),\n \"picture_url\" => $image->getUrl(),\n \"quantity\" => Round::roundInteger($item->getQtyOrdered()),\n \"unit_price\" => Round::roundWithSiteId($item->getPrice(), $this->getSiteId()),\n \"category_id\" => $this->_scopeConfig->getValue(\n \\MercadoPago\\Core\\Helper\\ConfigData::PATH_ADVANCED_CATEGORY,\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n )\n ];\n }\n\n $discount = $this->getDiscountAmount($quote);\n if ($discount != 0) {\n $dataItems[] = [\n \"id\" => __('Discount'),\n \"title\" => __('Discount'),\n \"description\" => __('Discount'),\n \"quantity\" => 1,\n \"unit_price\" => Round::roundWithSiteId($discount, $this->getSiteId())\n ];\n }\n\n return $dataItems;\n }", "public function getOrderings();", "public function getValues();", "public function getValuesList(){\n return $this->_get(1);\n }", "public function getOrderItems()\n {\n return $this->hasMany(OrderItem::className(), ['product_id' => 'id']);\n }", "private function getItensInformation()\n {\n $Itens = $this->order->getAllVisibleItems();\n $PagSeguroItens = array();\n\n //CarShop Items\n foreach ($Itens as $item) {\n $PagSeguroItem = new PagSeguroItem();\n $PagSeguroItem->setId($item->getId());\n $PagSeguroItem->setDescription(self::fixStringLength($item->getName(), 255));\n $PagSeguroItem->setQuantity(self::toFloat($item->getQtyOrdered()));\n $PagSeguroItem->setWeight(round($item->getWeight()));\n $PagSeguroItem->setAmount(self::toFloat($item->getPrice()));\n\n array_push($PagSeguroItens, $PagSeguroItem);\n }\n\n return $PagSeguroItens;\n }", "function wv_commission_get_order_item_record($oid) {\n\n global $wpdb;\n $sql_order_itemid = \"SELECT DISTINCT WOIM.order_item_id FROM `\" . $wpdb->prefix . \"woocommerce_order_items` AS WOI INNER JOIN `\" . $wpdb->prefix . \"woocommerce_order_itemmeta` AS WOIM ON WOI.order_item_id = WOIM.order_item_id WHERE WOI.order_item_type = 'line_item' AND WOI.order_id =$oid\";\n $arr_order_itemid = $wpdb->get_results($sql_order_itemid);\n\n if (count($arr_order_itemid) > 0) {\n $i = 1;\n foreach ($arr_order_itemid as $item) {\n\n $order_item_id = $item->order_item_id;\n $productid = $this->wv_commission_get_woo_orderitem_metavalue($order_item_id, '_product_id');\n //output HTML here.\n ?>\n <tr>\n <!-- \n In case of more than 1 item, order id should show only one times : use= rowspan :\n --> \n <?php if ($i == 1) { ?>\n <td rowSpan=\"<?php echo count($arr_order_itemid); ?>\" >#<?php echo $oid; ?></td>\n <?php } ++$i; ?>\n <!-- order date -->\n <td><?php echo get_post_time(\"dM,Y\", FALSE, $oid); ?></td>\n \n <!-- product id -->\n <td><?php echo get_the_title($productid); ?></td>\n \n <!-- vendor -->\n <td><?php echo $this->wv_get_username_by_userid(get_post_meta($oid, 'woo_order_vendor_id_' . $productid, TRUE)); ?></td>\n \n <!-- commission --> \n <td>\n <?php\n echo get_woocommerce_currency_symbol(). get_post_meta($oid, 'woo_order_commision_' . $productid, TRUE);\n ?>\n </td>\n \n <!-- Status -->\n <td>\n <?php \n //change status functionality\n $sts = $this->wv_get_commission_status($oid,$productid);\n $newsts= ($sts==1)?0:1;\n ?>\n <a title=\"Change Status\" href=\"<?php echo admin_url(\"admin.php?page=woo_vendors&tab=commission&action=sts&oid=$oid&pid=$productid&sts=$newsts\"); ?>\" onclick=\"return confirm('Are you sure want to change status ?');\">\n <?php \n echo $newsts= ($sts==1)?\"paid\":\"due\";;\n ?>\n </a> \n </td>\n \n <!-- Commission Date -->\n <td>\n <?php \n //get commission date\n echo $this->wv_get_commission_date($oid,$productid);\n ?> \n </td>\n </tr>\n <?php\n }\n }//end of the count.\n }", "private function getOrderData($order)\n {\n // get order subprofile instance \n $orderAbstract = Mage::getModel('marketingsoftware/abstraction_order')->importFromOriginal($order);\n $orderSubprofile = Mage::getModel('marketingsoftware/Copernica_Order_Subprofile')->setOrder($orderAbstract);\n\n // get order data array\n $orderData = $orderSubprofile->toArray();\n\n // placeholder for items array\n $items = array();\n\n /**\n * Order has 3 (or more) methods to get set of items. ::getAllItems(),\n * ::getAllVisibleItems() and ::getItemsCollection(). ::getAllItems()\n * and getAllVisibleItems() returns an array and items have some missing\n * data (or are just populated in odd way). ::getAllVisibleItems() seems \n * to return all orders configurable items, so top-level items.\n * ::getItemsCollection() seems to fetch proper items collection that \n * we can use.\n * It's nice of magento to provide such friendly interface.\n */\n $itemsCollection = $order->getItemsCollection();\n\n // iterate over all items \n foreach ($itemsCollection as $item) $items[] = $this->getItemData($item);\n\n // add items to order data\n $orderData['items'] = $items;\n\n // return order data array\n return $orderData;\n }", "public function orders_get_items_list($orderID) {\n\t\t $sql = <<<EOD\n\t\t SELECT\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.id,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.order_id,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.campaign_id,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.line_item_id,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.spin_name,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.product_id,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.product_name,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.product_type,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.merchandise_type,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.quantity,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.sku_id,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.sku_upc,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.sku_attributes,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.factory_sku,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.shipped,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.status,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.weight,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.bundle_sku_id,\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.shipping_date\n\t\t FROM {$this->wpdb->prefix}topspin_orders_items\n\t\t WHERE\n\t\t \t{$this->wpdb->prefix}topspin_orders_items.order_id = '%d'\nEOD;\n\t\t$itemsList = $this->wpdb->get_results($this->wpdb->prepare($sql,array($orderID)));\n\t\t$unserialize = array('sku_attributes','weight');\n\t\tforeach($unserialize as $key) {\n\t\t\tforeach($itemsList as $itemKey=>$item) {\n\t\t\t\t$itemsList[$itemKey]->$key = unserialize($itemsList[$itemKey]->$key);\n\t\t\t}\n\t\t}\n\t\treturn $itemsList;\n\t}", "public function getQuotationItemData($order_id = null)\n\t{\n\t\t$selected_financial_year = $this->session->userdata(\"selected_financial_year\");\n\n\t\tif (!$order_id) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$sql = \"SELECT * FROM quotation_item JOIN item_master WHERE quotation_item.quotation_no = ? AND item_master.Item_ID=quotation_item.item_id AND financial_year_id=$selected_financial_year AND quotation_item.status=1\";\n\t\t$query = $this->db->query($sql, array($order_id));\n\t\treturn $query->result_array();\n\t}", "public function get()\n {\n $order = $this->simpleXML;\n $productsNorm = [];\n foreach ($order->products->product as $k => $product) {\n $productsNorm[] = [\n 'id' => $k,\n 'title' => (string) $product['title'],\n 'price' => (float) $product['price'],\n 'category' => (string) $product->category,\n ];\n }\n\n return [\n 'id' => 1,\n 'products' => $productsNorm,\n 'total' => (float) $order->total,\n ];\n }", "protected function _getItemsData()\n {\n if (Mage::app()->getStore()->getConfig(self::XML_PATH_RANGE_CALCULATION) == self::RANGE_CALCULATION_IMPROVED) {\n return $this->_getCalculatedItemsData();\n }\n\n $data = array();\n\n $facets = $this->getLayer()->getProductCollection()->getFacetedData($this->_getFilterField());\n\n if (!empty($facets) && count($facets) > 1) {\n foreach ($facets as $key => $count) {\n $data[] = array(\n 'label' => $key,\n 'value' => $key,\n 'count' => $count\n );\n }\n }\n\n return $data;\n }", "public function getValues()\n {\n\n\t\t$record = ProductAttributeValues::whereIn('avid',[1,6])->get();\n\t\t$rec = $record->pluck('pro_att_value');\n\t\treturn $rec;\n }", "public function getOrder()\n {\n\n }", "public function arrayItems() {\r\n $quoteId = Mage::getSingleton('checkout/session')->getQuote()->getId();\r\n $session = Mage::getModel('giftwrap/selection')->getSelectionByQuoteId(\r\n $quoteId);\r\n $productIds = array();\r\n if ($session) {\r\n foreach ($session as $value) {\r\n $productIds[] = $value['itemId'];\r\n }\r\n }\r\n return $productIds;\r\n }", "public function getItemsArray();", "function get ($id) {\n // PARAM $id : order ID\n\n $order = $this->fetch(\n \"SELECT * FROM `orders` WHERE `order_id`=?\", [$id]\n );\n $order['items'] = $this->fetch(\n \"SELECT * FROM `orders_items` LEFT JOIN `products` USING (`product_id`) WHERE `orders_items`.order_id=?\", \n [$id], \"product_id\"\n );\n return $order;\n }", "protected function getOrderItem()\n\t{\n\t\t$search = $this->object->createSearch();\n\n\t\t$expr = [];\n\t\t$expr[] = $search->compare( '==', 'order.base.rebate', 14.50 );\n\t\t$expr[] = $search->compare( '==', 'order.base.sitecode', 'unittest' );\n\t\t$expr[] = $search->compare( '==', 'order.base.price', 53.50 );\n\t\t$expr[] = $search->compare( '==', 'order.base.editor', $this->editor );\n\t\t$search->setConditions( $search->combine( '&&', $expr ) );\n\t\t$results = $this->object->searchItems( $search );\n\n\t\tif( ( $item = reset( $results ) ) === false ) {\n\t\t\tthrow new \\RuntimeException( 'No order found' );\n\t\t}\n\n\t\treturn $item;\n\t}", "private function extractPrices(OrderInterface $order): array\r\n {\r\n return array_fill(1, $order->getQuantity(), $order->getPrice());\r\n }", "public function getOrderings() {}", "public function getOrderFieldsValues()\n {\n $sql = 'SELECT * FROM ' . _DB_PREFIX_ . 'onehop_sms_rulesets WHERE rule_name = \"order_confirmation\"';\n if ($results = Db::getInstance()->ExecuteS($sql)) {\n if ($results[0]['active'] == '1') :\n $featureActive = '1';\n else :\n $featureActive = '0';\n endif;\n return array(\n 'ORDER_FEATURE_1' => Tools::getValue('ORDER_FEATURE_1', (int)$featureActive),\n 'ORDER_SMS_TEMPLATE' => Tools::getValue('ORDER_SMS_TEMPLATE', $results[0]['template']),\n 'ORDER_SMS_LABEL' => Tools::getValue('ORDER_SMS_LABEL', $results[0]['label']),\n 'ORDER_SENDER_ID' => Tools::getValue('ORDER_SENDER_ID', $results[0]['senderid'])\n );\n }\n }", "public function getItemLevelRows($order)\n {\n $rows = array();\n /** @var $exportConfig Parassood_Orderexporter_Helper_Config */\n $exportConfig = Mage::helper('orderexporter/config');\n $sortedExportConfig = $exportConfig->getSortedFields();\n $orderItems = $order->getAllItems();\n foreach ($orderItems as $orderItem) {\n $row = array();\n\n if($orderItem->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_SIMPLE\n && !is_null($orderItem->getParentItemId())){\n //Take data only from configurable/bundled order item unless parent item is not present.\n continue;\n }\n $childrenItems = $orderItem->getChildrenItems();\n if(count($childrenItems)){\n\n foreach($childrenItems as $childItem){\n $row = array();\n if($orderItem->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE){\n /* For configurable/simple products we need to get the total\n * of child item option price and configurable product price.\n */\n $childItem->setPrice($childItem->getPrice() + $orderItem->getPrice());\n }\n foreach ($sortedExportConfig as $sortOrder => $fieldInfo) {\n $row[] = $this->_getCsvColumn($fieldInfo, $order,$childItem);\n }\n $rows[] = $row;\n }\n //For $item configurable/bundle product we have written the child items to the csv, so continue.\n continue;\n\n }\n\n foreach ($sortedExportConfig as $sortOrder => $fieldInfo) {\n $row[] = $this->_getCsvColumn($fieldInfo, $order,$orderItem);\n }\n $rows[] = $row;\n }\n\n return $rows;\n\n }", "public function getData() {\n return $this->items;\n }", "public static function getOrder(): int;", "function getValues(){\n $values = [];\n \n foreach($this as $valor){\n $values[] = $valor;\n }\n \n return $values;\n }", "public function getOrder()\n {\n return $this->getItem()->getOrder();\n }", "function get_order()\n{\n\n}", "abstract public function getOrderAble();", "function getItems();", "function getItems();", "protected function getOrderItemData($orderItems, $amount, $taxAmount, $context)\n {\n $data = array(\n 'amount' => 0,\n 'tax_amount' => 0\n );\n foreach ($orderItems as $item) {\n if ($this->getHelper()->isFeeItem($item)) {\n $data['payment_fee_item'] = $item;\n continue;\n }\n $qty = $item->getQtyOrdered() - $item->getQtyRefunded() - $item->getQtyCanceled();\n\n if (self::TYPE_VO == $context) {\n $qty = (int) $item->getQtyShipped();\n }\n\n if ($context == self::TYPE_RS) {\n $qty = $item->getQty();\n if ($item instanceof Mage_Sales_Model_Order_Shipment_Item) {\n $item = $item->getOrderItem();\n }\n }\n\n if ($item->isDummy() || $qty <= 0) {\n continue;\n }\n\n $number = sprintf('%d-%s', $item->getItemId(), $item->getSku());\n $data['data'][] = array(\n 'number' => substr($number, 0, 50),\n 'name' => $item->getName(),\n 'description' => $item->getName(),\n 'type' => 'goods',\n 'quantity' => (int) $qty,\n 'quantityShipped' => (int) $item->getQtyShipped(),\n 'netPrice' => $this->getHelper()->format(\n $item->getPrice()\n ),\n 'tax' => $this->getHelper()->format(\n $item->getTaxPercent()\n ),\n );\n $data['amount'] += $amount + $item->getPriceInclTax() * $qty;\n $data['tax_amount'] += $taxAmount + $item->getTaxAmount() * $qty;\n }\n return $data;\n }", "public function getItems()\n {\n return $this['ITEMS'];\n }", "public function getOrderList()\n {\n }", "public function orderItems()\n {\n return $this->hasManyThrough(\n OrderItems::class,\n Order::class,\n 'customer_id', // Foreign key on orders table...\n 'order_id', // Foreign key on order_items table...\n 'id', // Local key on countries table...\n 'id' // Local key on users table...\n );\n }", "private function getItemData($items) {\n $items = explode( \",\", $items);\n $data = array();\n foreach ( $items as $item ) {\n if (trim($item) != \"\") {\n $temp = json_decode(\n DB::table('tbl_ser_item_price')->where(\"item_id\", $item)->get(),\n true\n );\n $id = encrypt($temp[0]['item_id']);\n array_push($data, array(\n \"iID\" => $id,\n \"iName\" => $temp[0]['item_name'],\n \"iDes\" => $temp[0]['item_des'],\n \"iPrice\" => $temp[0]['item_price'],\n ));\n }\n\n }\n return $data;\n }", "function get_order() {\n return $this->get_mapped_property('order');\n }", "public function getItems(): array\n {\n return $this->getData();\n }", "public function getData()\n {\n $this->validate('order', 'email', 'value');\n\n return [\n 'order_id' => $this->getOrder(),\n 'customer_email' => $this->getEmail(),\n 'value' => $this->getValue()\n ];\n }", "protected function _getItemsData()\n {\n $data = array();\n $status = $this->_getCount();\n if (isset($status['yes']) && $status['yes'] > 0) {\n $data[] = array(\n 'label' => Mage::helper('vs7_saleattribute')->__('Sale'),\n 'value' => 1,\n 'count' => isset($status['yes']) ? $status['yes'] : 0,\n );\n }\n\n return $data;\n }", "function get_invoice_order_items ( $invoice_id )\n {\n /**\n * A list of items on the invoice specified by $invoice_id\n * @var array\n */\n $invoice_items = $this->dsQuery ('InvoiceItem', 1000, 0, array (\n 'InvoiceId' => $invoice_id\n ), array (\n 'OrderItemId',\n 'DateCreated',\n 'Description',\n 'InvoiceAmt'\n ));\n\n if ( !is_array($invoice_items) )\n return false;\n\n $ids = array();\n\n foreach ($invoice_items as $invoice_item) {\n $ids []= $invoice_item['OrderItemId'];\n }\n\n $order_items = $this->dsQuery ( 'OrderItem', 1000, 0, array (\n 'Id' => $ids\n ), array (\n 'Id',\n 'ProductId',\n 'SubscriptionPlanId',\n 'ItemName',\n 'Qty',\n 'PPU',\n 'ItemDescription',\n 'ItemType'\n ));\n\n if ( is_array($order_items) && count ($order_items) > 0)\n {\n return array($order_items, $invoice_items);\n }\n else\n {\n return false;\n }\n\n\n }", "public function getItems() : array;", "protected function _getItemsData()\n {\n return array();\n }", "public function get_order_items($order_id)\n\t{\n\t\t$this->db->select('product.product_name, product.product_thumb_name, order_item.*, vendor.vendor_store_name, vendor.vendor_id');\n\t\t$this->db->where('product.created_by = vendor.vendor_id AND product.product_id = order_item.product_id AND order_item.order_id = '.$order_id);\n\t\t$query = $this->db->get('order_item, product, vendor');\n\t\t\n\t\treturn $query;\n\t}", "public function getValuesList() {\n return $this->_get(2);\n }", "public function getValuesList() {\n return $this->_get(3);\n }", "public function getAdditionalDetail($items) {\n\n $tmp_array = array();\n\n if (!empty($items)) {\n foreach ($items as $item) {\n $tmp_array[] = $this->getItemAdditionDetails($item);\n }\n }\n //print_r($tmp_array); exit;\n return $tmp_array;\n }", "public function getQuoteProductsData()\n {\n $quote= Mage::getSingleton('checkout/session')->getQuote();\n $data = array();\n if ($quote) {\n foreach ($quote->getAllVisibleItems() as $item) {\n $productData = array();\n $productData['productId'] = $this->escapeSingleQuotes($item->getSku());\n $productData['name'] = $this->escapeSingleQuotes($item->getName());\n $productData['price'] = Mage::helper('affirm/util')->formatCents(\n $item->getPrice()\n );\n $productData['currency'] = $this->getCurrentCurrencyCode();\n $productData['quantity'] = $item->getQty();\n $data[] = $productData;\n }\n }\n return $data;\n\n }", "function load_avaialable_special_offers($order) {\n $special_offers = array();\n if (!empty($order->commerce_line_items)) {\n $order_wrapper = entity_metadata_wrapper('commerce_order', $order);\n foreach ($order_wrapper->commerce_line_items as $line_item_wrapper) {\n if (!empty($line_item_wrapper->value()->commerce_product)) {\n $product = $line_item_wrapper->commerce_product->value();\n if (!empty($product->field_special_offers)) {\n $offers = $line_item_wrapper->commerce_product->field_special_offers->value();\n foreach($offers as $offer) {\n $special_offers[$offer->product_id] = $offer;\n }\n }\n }\n }\n }\n return array('special_offers' => $special_offers);\n}", "public function getInvoiceOrder();", "function getOrder()\n {\n return 2;\n }", "public function &items();", "public function getOrder()\n {\n // TODO: Implement getOrder() method.\n }", "public function getOrder()\n {\n // TODO: Implement getOrder() method.\n }", "public function getOrder()\n {\n // TODO: Implement getOrder() method.\n }", "abstract public function values(): Seq;" ]
[ "0.6520869", "0.6520869", "0.6520869", "0.6520869", "0.6520869", "0.6520869", "0.64839596", "0.63753355", "0.6269797", "0.6239158", "0.6228506", "0.6198794", "0.61777097", "0.6151377", "0.6148509", "0.6145855", "0.6144181", "0.6081957", "0.6055989", "0.6000095", "0.59549", "0.594116", "0.59373784", "0.5906985", "0.58984977", "0.58984977", "0.58984977", "0.58984977", "0.58984977", "0.58984977", "0.58984977", "0.58984977", "0.58984977", "0.58984977", "0.58984977", "0.58984977", "0.58984977", "0.589303", "0.5870728", "0.5868", "0.58585906", "0.58585906", "0.5853752", "0.5853752", "0.5836097", "0.5812807", "0.57876843", "0.57861596", "0.57549286", "0.5752733", "0.5748539", "0.57381725", "0.5730357", "0.5696455", "0.5690869", "0.56835854", "0.5682397", "0.5681766", "0.5681642", "0.5678728", "0.56782544", "0.56718904", "0.5664846", "0.56643695", "0.5654582", "0.5639845", "0.5635351", "0.563308", "0.5632301", "0.56321156", "0.56289935", "0.5620676", "0.5619358", "0.56167996", "0.56167996", "0.5615956", "0.56096536", "0.5592151", "0.5583863", "0.5583003", "0.55828863", "0.55780405", "0.5574755", "0.5573846", "0.55674076", "0.556246", "0.5560214", "0.55560845", "0.5554411", "0.5548442", "0.5546018", "0.5534825", "0.5533807", "0.5526962", "0.5524941", "0.55227435", "0.55178493", "0.55178493", "0.55178493", "0.5514475" ]
0.64944273
6
Get value of a package combined value of all items in this consolidated package
public function getConsolidatedPackageValue($products, $allItems) { if(is_null($this->_orderItemValues)) { $this->_orderItemValues = $this->getOrderItemValues($allItems); } $total = 0; if(!empty($products)) { foreach($products as $sku => $qty) { for($i = 1; $i <= $qty; $i++) { $val = array_pop($this->_orderItemValues[$sku]); if(!is_null($val)) $total += (float)$val; } } } return $total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function package() {\n\t\treturn $this->package;\n\t}", "private function packageFilter()\n {\n $packagesItems = $this->packageItems();\n foreach ($packagesItems as $item) {\n $entityId = $item->getData('entity_id');\n }\n\n $packageFilter[] = $this->filterBuilder\n ->setField('package_id')\n ->setValue($entityId)\n ->setConditionType('eq')\n ->create();\n\n $searchCriteriaBuilder = $this->searchCriteria;\n $searchCriteria = $searchCriteriaBuilder\n ->addFilters($packageFilter)\n ->create();\n $versionFile = $this->versionRepository->getList($searchCriteria);\n $itemsPackageVersion = $versionFile->getItems();\n $lastItem = end($itemsPackageVersion);\n\n return $lastItem;\n }", "private function getPackage() {\n $objModulo = new Modulo($this->dbAdapter);\n $lista_modulos = $objModulo->getPackage();\n\n $returnValue = array();\n if (count($lista_modulos) > 0) {\n foreach ($lista_modulos as $index => $modulo) {\n $returnValue[$modulo['id']] = $modulo['chr_nombre_publico'];\n }\n }\n //var_dump($returnValue);\n return $returnValue;\n }", "public function &getValue()\n {\n return $this->getChildren()->getControl($this->name . '_items', true)->getValue();\n }", "function getPackaging() {\n\t\treturn $this->_packaging;\n\t}", "public function get_repo(){\n $this->pg_db->select(\"cfg_value\");\n $this->pg_db->from(\"configuration\");\n $this->pg_db->where(\"cfg_sub_category\", \"ppe.id\");\n $result = $this->pg_db->get();\n $data = '';\n foreach ($result->result() as $rows) {\n $data = $rows->cfg_value;\n }\n return $data;\n }", "private function packageItems()\n {\n /**\n * Defined variables\n */\n $request = $this->getRequest();\n $paramNameRequest = $request->getParam('m');\n\n $packageName = str_replace('_', '/', $paramNameRequest);\n\n $searchCriteriaBuilder = $this->searchCriteria;\n $searchCriteria = $searchCriteriaBuilder->addFilter(\n 'name',\n $packageName,\n 'eq'\n )->create();\n $packagesFiles = $this->packagesRepository->getList($searchCriteria);\n $packagesItems = $packagesFiles->getItems();\n\n return $packagesItems;\n }", "public static function getValue()\n {\n return self::getInstance()->getValue(func_get_args());\n }", "public function product() {\n\t\treturn array_product($this->_value);\n\t}", "function getSystemMoneyValue()\n\t\t{\n\t\t\t$system_value = $this->_BLL_obj->manage_content->getLastValue('system_money_info', '*', 1, 1, 'id');\n\t\t\treturn $system_value[0]['system_balance'];\n\t\t}", "public function getValue()\r\n\t{\r\n\t\treturn $this->getValues(true);\r\n\t}", "public function getAll()\n {\n return $this->_combined;\n }", "private function get_package() {\n\t\t$translation = $this->get_item_from_api();\n\t\tif ( $translation && isset( $translation['package'] ) ) {\n\t\t\treturn $translation['package'];\n\t\t}\n\n\t\t// Fallback.\n\t\treturn \"{$this->api_url}/{$this->slug}/{$this->slug}-{$this->lang}.zip\";\n\t}", "function getValue() {\n global ${$this->name}, ${$this->name.\"_name\"}, ${$this->name.\"_old\"}; // ${$this->name} = ${\"surname\"} = $surname\n $ext=substr(${$this->name.\"_name\"},-3);\n if ($ext==\"\") $ext=${$this->name.\"_old\"};\n if ($ext==\"\") $ext=$this->value;\n return $ext;\n }", "public function getPackage()\n {\n return $this->package;\n }", "public function getPackage()\n {\n return $this->package;\n }", "public function getPackageInfo()\n {\n return $this->getConfig()->getPackageInfo();\n }", "public function getSum()\n {\n return array_sum($this->values);\n }", "public function value()\n {\n return implode(' ', $this->all());\n }", "public function getAdditional();", "protected function getTotalPackages() {\n\t\t$totalPrice = array_reduce($this->items, function($total, $current) {\n\t\t\t$total += $current->getPrice();\n\n\t\t\treturn $total;\n\t\t});\n\n\t\t$totalPackages = ceil($totalPrice/self::MAX_TOTAL_PACKAGE_PRICE);\n\n\t\treturn $totalPackages;\n\t}", "function _getPackageFromFolder()\n {\n $p_dir = JRequest::getString('install_directory');\n $p_dir = JPath::clean( $p_dir );\n\n // Did you give us a valid directory?\n if( !is_dir($p_dir) ) {\n JError::raiseWarning(100, JText::_('Please enter a package directory'));\n return false;\n }\n\n // Detect the package type\n $type = JInstallerHelper::detectType( $p_dir );\n\n // Did you give us a valid package?\n if( !$type || ($type != 'sef_ext') ) {\n JError::raiseWarning(100, JText::_('Path does not have a valid sef_ext package'));\n return false;\n }\n\n $package['packagefile'] = null;\n $package['extractdir'] = null;\n $package['dir'] = $p_dir;\n $package['type'] = $type;\n\n return $package;\n }", "function showValuesByEntity() {\n global $DB;\n\n $budgets_id = $this->fields['id'];\n\n if (!$this->can($budgets_id, READ)) {\n return false;\n }\n\n $types_iterator = Infocom::getTypes(\n [\n 'budgets_id' => $budgets_id\n ] + getEntitiesRestrictCriteria('glpi_infocoms', 'entities_id')\n );\n\n $total = 0;\n $totalbytypes = [];\n\n $itemtypes = [];\n\n $entities_values = [];\n $entitiestype_values = [];\n $found_types = [];\n\n while ($types = $types_iterator->next()) {\n $itemtypes[] = $types['itemtype'];\n }\n\n $itemtypes[] = 'Contract';\n $itemtypes[] = 'Ticket';\n $itemtypes[] = 'Problem';\n $itemtypes[] = 'Project';\n $itemtypes[] = 'Change';\n\n foreach ($itemtypes as $itemtype) {\n if (!($item = getItemForItemtype($itemtype))) {\n continue;\n }\n\n $table = getTableForItemType($itemtype);\n switch ($itemtype) {\n case 'Contract' :\n $criteria = [\n 'SELECT' => [\n $table . '.entities_id',\n 'SUM' => 'glpi_contractcosts.cost AS sumvalue'\n ],\n 'FROM' => 'glpi_contractcosts',\n 'INNER JOIN' => [\n $table => [\n 'ON' => [\n $table => 'id',\n 'glpi_contractcosts' => 'contracts_id'\n ]\n ]\n ],\n 'WHERE' => [\n 'glpi_contractcosts.budgets_id' => $budgets_id\n ] + getEntitiesRestrictCriteria($table, 'entities_id'),\n 'GROUPBY' => [\n $table . '.entities_id'\n ]\n ];\n break;\n\n case 'Project' :\n $costtable = getTableForItemType($item->getType().'Cost');\n $criteria = [\n 'SELECT' => [\n $table . '.entities_id',\n 'SUM' => 'glpi_projectcosts.cost AS sumvalue'\n ],\n 'FROM' => 'glpi_projectcosts',\n 'INNER JOIN' => [\n $table => [\n 'ON' => [\n $table => 'id',\n 'glpi_projectcosts' => 'projects_id'\n ]\n ]\n ],\n 'WHERE' => [\n 'glpi_projectcosts.budgets_id' => $budgets_id\n ] + getEntitiesRestrictCriteria($table, 'entities_id'),\n 'GROUPBY' => [\n $item->getTable() . '.entities_id'\n ]\n ];\n break;\n\n case 'Ticket' :\n case 'Problem' :\n case 'Change' :\n $costtable = getTableForItemType($item->getType().'Cost');\n $sum = new QueryExpression(\n \"SUM(\" . $DB->quoteName(\"$costtable.actiontime\") . \" * \" . $DB->quoteName(\"$costtable.cost_time\") . \"/\".HOUR_TIMESTAMP.\"\n + \" . $DB->quoteName(\"$costtable.cost_fixed\") . \"\n + \" . $DB->quoteName(\"$costtable.cost_material\") . \") AS \" . $DB->quoteName('sumvalue')\n );\n $criteria = [\n 'SELECT' => [\n $item->getTable() . '.entities_id',\n $sum\n ],\n 'FROM' => $costtable,\n 'INNER JOIN' => [\n $table => [\n 'ON' => [\n $table => 'id',\n $costtable => $item->getForeignKeyField()\n ]\n ]\n ],\n 'WHERE' => [\n $costtable . '.budgets_id' => $budgets_id\n ] + getEntitiesRestrictCriteria($table, 'entities_id'),\n 'GROUPBY' => [\n $item->getTable() . '.entities_id'\n ]\n ];\n break;\n\n default :\n $criteria = [\n 'SELECT' => [\n $table . '.entities_id',\n 'SUM' => 'glpi_infocoms.value AS sumvalue',\n ],\n 'FROM' => $table,\n 'INNER JOIN' => [\n 'glpi_infocoms' => [\n 'ON' => [\n $table => 'id',\n 'glpi_infocoms' => 'items_id'\n ]\n ]\n ],\n 'WHERE' => [\n 'glpi_infocoms.itemtype' => $itemtype,\n 'glpi_infocoms.budgets_id' => $budgets_id\n ] + getEntitiesRestrictCriteria($table, 'entities_id'),\n 'GROUPBY' => [\n $table . '.entities_id'\n ]\n ];\n if ($item->maybeTemplate()) {\n $criteria['WHERE'][$table . '.is_template'] = 0;\n }\n break;\n }\n\n $iterator = $DB->request($criteria);\n $nb = count($iterator);\n if ($nb) {\n $found_types[$itemtype] = $item->getTypeName(1);\n $totalbytypes[$itemtype] = 0;\n //Store, for each entity, the budget spent\n while ($values = $iterator->next()) {\n\n if (!isset($entities_values[$values['entities_id']])) {\n $entities_values[$values['entities_id']] = 0;\n }\n if (!isset($entitiestype_values[$values['entities_id']][$itemtype])) {\n $entitiestype_values[$values['entities_id']][$itemtype] = 0;\n }\n $entities_values[$values['entities_id']] += $values['sumvalue'];\n $entitiestype_values[$values['entities_id']][$itemtype] += $values['sumvalue'];\n $total += $values['sumvalue'];\n $totalbytypes[$itemtype] += $values['sumvalue'];\n }\n }\n\n }\n\n $budget = new self();\n $budget->getFromDB($budgets_id);\n\n $colspan = count($found_types)+2;\n echo \"<div class='spaced'><table class='tab_cadre_fixehov'>\";\n echo \"<tr class='noHover'><th colspan='$colspan'>\".__('Total spent on the budget').\"</th></tr>\";\n echo \"<tr><th>\".__('Entity').\"</th>\";\n if (count($found_types)) {\n foreach ($found_types as $type => $typename) {\n echo \"<th>$typename</th>\";\n }\n }\n echo \"<th>\".__('Total').\"</th>\";\n echo \"</tr>\";\n\n // get all entities ordered by names\n $allentities = getAllDataFromTable('glpi_entities', ['ORDER' => 'completename'], true);\n\n foreach (array_keys($allentities) as $entity) {\n if (isset($entities_values[$entity])) {\n echo \"<tr class='tab_bg_1'>\";\n echo \"<td class='b'>\".Dropdown::getDropdownName('glpi_entities', $entity).\"</td>\";\n if (count($found_types)) {\n foreach ($found_types as $type => $typename) {\n echo \"<td class='numeric'>\";\n $typevalue = 0;\n if (isset($entitiestype_values[$entity][$type])) {\n $typevalue = $entitiestype_values[$entity][$type];\n }\n echo Html::formatNumber($typevalue);\n echo \"</td>\";\n }\n }\n\n echo \"<td class='right b'>\".Html::formatNumber($entities_values[$entity]).\"</td>\";\n echo \"</tr>\";\n }\n }\n if (count($found_types)) {\n echo \"<tr class='tab_bg_1'>\";\n echo \"<td class='right b'>\".__('Total').\"</td>\";\n foreach ($found_types as $type => $typename) {\n echo \"<td class='numeric b'>\";\n echo Html::formatNumber($totalbytypes[$type]);\n echo \"</td>\";\n }\n echo \"<td class='numeric b'>\".Html::formatNumber($total).\"</td>\";\n echo \"</tr>\";\n }\n echo \"<tr class='tab_bg_1 noHover'><th colspan='$colspan'><br></th></tr>\";\n echo \"<tr class='tab_bg_1 noHover'>\";\n echo \"<td class='right' colspan='\".($colspan-1).\"'>\".__('Total spent on the budget').\"</td>\";\n echo \"<td class='numeric b'>\".Html::formatNumber($total).\"</td></tr>\";\n if ($_SESSION['glpiactive_entity'] == $budget->fields['entities_id']) {\n echo \"<tr class='tab_bg_1 noHover'>\";\n echo \"<td class='right' colspan='\".($colspan-1).\"'>\".__('Total remaining on the budget').\n \"</td>\";\n echo \"<td class='numeric b'>\".Html::formatNumber($budget->fields['value'] - $total).\n \"</td></tr>\";\n }\n echo \"</table></div>\";\n }", "public function getPackages()\n {\n return $this->file->get(self::SETTING_PACKAGES);\n }", "function get_value_preferences_by_group_name($params) {\n $sql = \"SELECT * FROM com_preferences\n WHERE pref_group = ? AND pref_nm = ?\n ORDER BY pref_nm ASC\";\n $query = $this->db->query($sql, $params);\n if ($query->num_rows() > 0) {\n $result = $query->row_array();\n $query->free_result();\n return $result['pref_value'];\n } else {\n return '';\n }\n }", "public function getPrice() {\n $sum = parent::getPrice();\n foreach ($this->extraItems as $extraItem) {\n $sum += $extraItem->getPrice();\n }\n return $sum;\n }", "public static function getValues()\n {\n return Hash::extract(self::getConstants(), '{s}.value');\n }", "abstract public function getPackage();", "public function getPackagesByApp() {\n // create entity and set its values\n $entity = new Package();\n $entity->setApp($this->app);\n $entity->setLang($this->lang);\n $entity->setState($this->state);\n $entity->setType($this->type);\n\n // call mapper for data\n $data = $this->packagesMapper->getPackagesByApp($entity);\n\n // return data\n return $data;\n }", "public function getSummary()\n {\n return $this->getNodeText('/p:package/p:summary');\n }", "public function &getValue();", "protected function _getValueFromConfig()\n {\n return $this->_scopeConfig->getValue(\n \\Magento\\GiftMessage\\Helper\\Message::XPATH_CONFIG_GIFT_MESSAGE_ALLOW_ITEMS,\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n }", "function getIncludedValues()\n{\n $includedValue = \"\";\n $includedValue .= getIncludedValueByName(\"Process_Rewrite\");\n $includedValue .= getIncludedValueByName(\"Process_Extension\");\n $includedValue .= getIncludedValueByName(\"Process_StranglerPattern\");\n $includedValue .= getIncludedValueByName(\"Process_ContinuousEvolution\");\n $includedValue .= getIncludedValueByName(\"Process_Split\");\n $includedValue .= getIncludedValueByName(\"Process_Others\");\n $includedValue .= getIncludedValueByName(\"Decomposition_DDD\");\n $includedValue .= getIncludedValueByName(\"Decomposition_FunctionalDecomposition\");\n $includedValue .= getIncludedValueByName(\"Decomposition_ExistingStructure\");\n $includedValue .= getIncludedValueByName(\"Decomposition_Others\");\n $includedValue .= getIncludedValueByName(\"Technique_SCA\");\n $includedValue .= getIncludedValueByName(\"Technique_MDA\");\n $includedValue .= getIncludedValueByName(\"Technique_WDA\");\n $includedValue .= getIncludedValueByName(\"Technique_DMC\");\n $includedValue .= getIncludedValueByName(\"Technique_Others\");\n $includedValue .= getIncludedValueByName(\"Applicability_GR\");\n $includedValue .= getIncludedValueByName(\"Applicability_MO\");\n $includedValue .= getIncludedValueByName(\"Input_SourceCode\");\n $includedValue .= getIncludedValueByName(\"Input_UseCase\");\n $includedValue .= getIncludedValueByName(\"Input_SystemSpecification\");\n $includedValue .= getIncludedValueByName(\"Input_API\");\n $includedValue .= getIncludedValueByName(\"Input_Others\");\n $includedValue .= getIncludedValueByName(\"Output_List\");\n $includedValue .= getIncludedValueByName(\"Output_Archi\");\n $includedValue .= getIncludedValueByName(\"Output_Others\");\n $includedValue .= getIncludedValueByName(\"Validation_Experiment\");\n $includedValue .= getIncludedValueByName(\"Validation_Example\");\n $includedValue .= getIncludedValueByName(\"Validation_CaseStudy\");\n $includedValue .= getIncludedValueByName(\"Validation_NoValidation\");\n $includedValue .= getIncludedValueByName(\"Quality_Maintainability\");\n $includedValue .= getIncludedValueByName(\"Quality_Performance\");\n $includedValue .= getIncludedValueByName(\"Quality_Reliability\");\n $includedValue .= getIncludedValueByName(\"Quality_Scalability\");\n $includedValue .= getIncludedValueByName(\"Quality_Security\");\n $includedValue .= getIncludedValueByName(\"Quality_Others\");\n\n return $includedValue;\n}", "public function get_single_package_detail($package_id) {\n $this->db->select('*');\n $this->db->from('business_programs');\n $this->db->where('id', $package_id);\n $query = $this->db->get();\n $query_result = $query->result();\n $package_details = array();\n if (!empty($query_result)) {\n $package_details['package'] = $query_result[0];\n } else {\n $package_details['package'] = $query_result;\n }\n $this->db->select('business_services.*,business_services_details.*');\n $this->db->from('business_services');\n $this->db->join('business_services_details', 'business_services.id = business_services_details.service_id');\n $this->db->where('business_services.program_id', $package_details['package']->id);\n $query1 = $this->db->get();\n $query_result1 = $query1->result();\n\n if (!empty($query_result1)) {\n $package_details['service'] = $query_result1;\n }\n return $package_details;\n }", "public function sum() {\n\t\treturn array_sum($this->_value);\n\t}", "public function getCalculateOnItems() {\r\n return Mage::getStoreConfig('giftwrap/calculation/amount_on_number_items');\r\n }", "public static function getPackageName() {\n\t\treturn self::$_packageName;\n\t}", "public function getPackage() {}", "public function getValue(){\n return $this->getData();\n }", "function getDataValue($namespace=null,$join=\" \") {\n\t\tif ($namespace==null) \n\t\t\treturn $this->getDataValues();\n\t\telse\n\t\t\treturn $this->getData($namespace,true,$join);\n\t}", "public function giftwrapAll() {\r\n return Mage::getStoreConfig('giftwrap/general/all_item', $this->getStoreId());\r\n }", "protected function value()\n {\n return $this->row($this->row);\n }", "public function getValue()\n {\n return $this->objects;\n }", "public function get_value(Entities\\Item_Metadata_Entity $item_metadata) {\n $unique = ! $item_metadata->is_multiple();\n \n $field_type = $item_metadata->get_field()->get_field_type_object();\n if ($field_type->core) {\n $item = $item_metadata->get_item();\n \n $get_method = 'get_' . $field_type->related_mapped_prop;\n return $item->$get_method();\n \n } else {\n return get_post_meta($item_metadata->item->get_id(), $item_metadata->field->get_id(), $unique);\n }\n \n }", "public function getPackageName(): string;", "public function getPack()\n {\n return $this->get(self::_PACK);\n }", "public function extractCurrentValue()\n {\n $pathParts = $this->getPathParts();\n return $this->findConfigPathValue($this->source ? $this->source : Yii::$app, $pathParts);\n }", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "function _find_extras_value($dataset, $name) {\n $extras = $dataset['extras'];\n foreach ($extras as $extra) {\n if ($name == $extra['key']) {\n return $extra['value'];\n }\n }\n}", "function getConfigValue($key) {\r\n\t\t$db = & JFactory::getDBO() ;\r\n\t\t$sql = 'SELECT config_value FROM #__osmembership_configs WHERE config_key=\"'.$key.'\"';\r\n\t\t$db->setQuery($sql) ;\t\t\r\n\t\treturn $db->loadResult();\r\n\t}", "public function getAdditionalBundleQty($args)\n {\n $repo = $this->entityManager->getRepository('ZSELEX_Entity_Bundle');\n $qty = $args ['qty'];\n $type = $args ['type'];\n $shop_id = $args ['shop_id'];\n\n $additional = $repo->getAll(array(\n 'entity' => 'ZSELEX_Entity_ServiceBundle',\n 'where' => array(\n 'a.bundle_type' => 'additional',\n 'a.shop' => $shop_id\n ),\n 'joins' => array(\n 'JOIN a.bundle b'\n ),\n 'fields' => array(\n 'a.quantity',\n 'b.bundle_id'\n )\n ));\n\n // echo \"<pre>\"; print_r($additional); echo \"</pre>\"; exit;\n // $qty = 0;\n if ($additional) {\n foreach ($additional as $key) {\n\n $additional_qty = $repo->get(array(\n 'entity' => 'ZSELEX_Entity_BundleItem',\n 'where' => array(\n 'a.servicetype' => $type,\n 'a.bundle' => $key ['bundle_id']\n ),\n 'fields' => array(\n 'a.qty',\n 'a.qty_based'\n )\n ));\n //echo \"<pre>\"; print_r($additional_qty); echo \"</pre>\"; exit;\n // if ($additional_qty) {\n if ($additional_qty && $additional_qty ['qty_based']) {\n $qty += $additional_qty ['qty'] * $key ['quantity'];\n }\n }\n }\n\n //echo \"qty :\".$qty; exit;\n\n return $qty;\n }", "public function getData()\n {\n if ($this->configIsValid('common')) {\n return $this->Config['common']; \n }\n }", "public function getPackageName()\n {\n return $this->package_name;\n }", "public function get($key) {\n\t\t\tif(!is_object($this->package) || !($this->package instanceof Object))\n\t\t\t\t$this->package = $this->getPackage();\n\t\t\t\n\t\t\treturn $this->package->get($key);\n\t\t}", "public function val() {\n\t\t$str = '';\n\n\t\tforeach($this->valuesArray as $value) {\n\t\t\t$str .= $value->val();\n\t\t}\n\n\t\treturn $str;\n\t}", "public function getValue()\n\t{\n\t\t$data = array();\n\t\tforeach($this->_collection as $subform)\n\t\t{\n\t\t\tforeach($subform->_collection as $name => $item)\n\t\t\t{\n\t\t\t\t$data[$name] = $item->getValue();\n\t\t\t}\n\t\t}\n\t\treturn $data;\n\t}", "function get_package_item_qty( $package ) {\r\n\t\t$total_quantity = 0;\r\n\t\tforeach ( $package['contents'] as $item_id => $values ) {\r\n\t\t\tif ( $values['quantity'] > 0 && $values['data']->needs_shipping() ) {\r\n\t\t\t\t$total_quantity += $values['quantity'];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $total_quantity;\r\n\t}", "public function getValues()\n {\n\n\t\t$record = ProductAttributeValues::whereIn('avid',[1,6])->get();\n\t\t$rec = $record->pluck('pro_att_value');\n\t\treturn $rec;\n }", "public function getSingleData()\n\t{\n\t\t$calculatedData = $this->getCalculatedData();\n\t\t$result = [\n\t\t\t'value' => $calculatedData['withoutGrouping'],\n\t\t];\n\n\t\t$calculateField = $this->getFormElement('calculate');\n\t\t$calculateValue = $calculateField ? $calculateField->getValue() : null;\n\n\t\tswitch ($calculateValue)\n\t\t{\n\t\t\tcase self::WHAT_WILL_CALCULATE_DEAL_SUM:\n\t\t\tcase self::WHAT_WILL_CALCULATE_DEAL_WON_SUM:\n\t\t\tcase self::WHAT_WILL_CALCULATE_RETURN_DEAL_WON_SUM:\n\t\t\t\t$resultItem['value'] = \\CCrmCurrency::MoneyToString(\n\t\t\t\t\t$calculatedData['withoutGrouping'],\n\t\t\t\t\t$calculatedData['currencyId']\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $result;\n\t}", "public function sum() {\r\n $summedData = 123;\r\n\r\n return $summedData;\r\n }", "function PKG_getPackageParams($id)\n{ \nreturn(PKG_getInfoFromPackageID($id,\"params\"));\n}", "function getAppRelatedListUnitValue($clientListValue) {\n global $clientID;\n\n $typesListID = getAppListID('stepUnitType');\n\n //Get the id of the list client related\n $clientListID = getClientListID_RelatedWith($typesListID, $clientID);\n\n //Get all the values for this list and client\n $ClientValues = getListValues($clientListID, $clientID);\n\n //for every system list value, get the client list value\n for ($i = 0; $i < count($ClientValues); $i++) {\n if ($ClientValues[$i]['value'] == $clientListValue) {\n //get the client id value\n $AppValueID = getAppListValueID_RelatedWith($ClientValues[$i]['valueID'], $clientID);\n\n if ($AppValueID > 0) {\n //Get the app value and add to client values\n return getAppValue($AppValueID);\n } else {\n //Not related. Add an empty value\n return '';\n }\n }\n }\n\n //If not found, return empty value\n return '';\n}", "public function getCollectionSumGross() {\n \n $sumGross = 0.00;\n \n if (is_array($this->itemsArr)) {\n foreach($this->itemsArr as $orderWrapperObj) {\n $sumGross += $orderWrapperObj->get_sumGross();\n }\n }\n \n return $sumGross;\n \n }", "function PKG_getSpecialPackageInfo($package,$infoTyp,$distr)\n{\n\n\n//generate the full path to the package\n$fullpath = \"/m23/data+scripts/packages/\".$package.\"Install.php\";\n\nif (!file_exists($fullpath))\n\t$fullpath = \"/m23/data+scripts/packages/userPackages/\".$package.\"Install.php\";\n\nif (!file_exists($fullpath))\n\t$fullpath = \"/m23/inc/distr/$distr/packages/\".$package.\"Install.php\";\n\nif (!file_exists($fullpath))\n\treturn(false);\n\n//grep only the line with our info\n$cmd=\"grep -i '$infoTyp:' $fullpath | cut -d':' -f2\";\n\n//open pipe\n$file=popen($cmd, \"r\");\n//get the line\n$result=fgets($file,10000);\n\npclose($file);\nreturn($result);\n}", "public function getValue(){\n return $this->value2 ? $this->value2 : $this->value1;\n }", "public function getSum()\n {\n $balance = 0;\n\n foreach ($this->getEntries() as $entry) {\n $balance += ($entry->getAmount() * ((double) $entry->getAccount()->getType()->getValue().'1'));\n }\n\n return $balance;\n }", "public function getPriceByBSId($batch_slot_id,$package_id=''){\n\t\t$this->db->select('slot_package_price');\n\t\t$this->db->from('tbl_slot_package_price');\n\t\t$this->db->where('batch_slot_id', $batch_slot_id);\n\t\tif($package_id!=''){\n\t\t$this->db->where('package_id', $package_id);\n\t}\n\t\t$query = $this->db->get();\n $result = $query->result();\n\t\tif ($query->num_rows()>0) {\n\t\t\treturn $result[0]->slot_package_price;\n\t\t}else{\n\t\t\treturn '';\n\t\t}\n\t}", "public function getSubtotal()\n {\n $price = 0;\n\n foreach ($this->order_configurations as $config) {\n $products = EntityUtils::getRepository(\"Product\")->getProducts($config->configuration, true);\n foreach ($products as $product) {\n $price += $product->getDiscountedPrice($this->program->id) * $config->quantity;\n }\n }\n\n return number_format($price, 2, \".\", \",\");\n }", "public function getValue()\n {\n return $this->value instanceof TypedMoneyBuilder ? $this->value->build() : $this->value;\n }", "function get_all_package_details($dis)\n {\n $query = $this->db->query(\"SELECT \n PACKAGE.*, group_concat(DISTINCT PACKFILE.imagename order by PACKFILE.imagename separator ',' ) AS packageImages,\n group_concat(DISTINCT LOCFILE.imagepath order by LOCFILE.imagepath separator ',' ) AS locationImages,\n group_concat(DISTINCT LOCAMENITIES.name order by LOCAMENITIES.name separator ',' ) AS locstionamineties, \n group_concat(DISTINCT PACKAMENITIES.name order by PACKAMENITIES.name separator ',' ) AS packaageamineties \n FROM `package` AS PACKAGE \n LEFT JOIN packageimage AS PACKIMAGE ON PACKIMAGE.package = PACKAGE.id \n LEFT JOIN file AS PACKFILE ON PACKFILE.id = PACKIMAGE.file \n LEFT JOIN location AS LOC ON LOC.id=PACKAGE.location \n LEFT JOIN address AS ADDRESS ON ADDRESS.id = LOC.locationaddress \n LEFT JOIN locationimage AS LOCIMAGE ON LOCIMAGE.location = LOC.id \n LEFT JOIN file AS LOCFILE ON LOCFILE.id = LOCIMAGE.id \n LEFT JOIN locationamenities AS LOCAMENITIESMAP ON LOCAMENITIESMAP.location = LOC.id LEFT JOIN amenities AS LOCAMENITIES ON LOCAMENITIES.id = LOCAMENITIESMAP.amenities LEFT JOIN packageamenities AS PACKMENITIESMAP ON PACKMENITIESMAP.package = PACKAGE.id \n LEFT JOIN amenities AS PACKAMENITIES ON PACKAMENITIES.id = PACKMENITIESMAP.amenities WHERE PACKAGE.id =$dis\");\n return $query->result_array();\n }", "public function get_values(){\n $value_str = '';\n if (is_array($this->value)){\n foreach ($this->value as $val){\n $value_str .= $val.' ';\n }\n } else {\n $value_str .= $this->value;\n }\n\n return $value_str;\n }", "function getPackagePath() ;", "public function getCss()\n {\n $result = $this->_css;\n foreach ($this->_packages as $package) {\n $config = $this->getConfig($package);\n if (!empty($config['css'])) {\n foreach ($config['css'] as $item) {\n $result[] = $item;\n }\n }\n }\n return $result;\n }", "public function getValue()\n {\n if (is_array($this->value)) {\n if (0 == count($this->value)) {\n return;\n } elseif (1 === count($this->value)) {\n return $this->value[0];\n } else {\n return $this->getRawMimeDirValue();\n }\n } else {\n return $this->value;\n }\n }", "public function extraPortfolioItemInfo()\n\t{\n\t\t$extraInfo = array();\n\t\t\n\t\t$extraInfo['total_text'] \t= $this->lang->words['global_shares_owned'];\n\t\t$extraInfo['cost'] \t\t \t= $this->caches['ibEco_stocks'][ $this->cartItem['p_type_id'] ]['s_value'];\n\t\t$extraInfo['total']\t \t \t= $this->caches['ibEco_stocks'][ $this->cartItem['p_type_id'] ]['total_share_value'];\n\t\t$extraInfo['total_bought']\t= $this->currencySymbolForSums().$this->registry->getClass('class_localization')->formatNumber( $extraInfo['total'], $this->decimalPlacesForSums());\n\t\t\n\t\treturn $extraInfo;\n\t}", "function getValue($app, $key)\n {\n $name = $app . \"-\" . $key;\n if ( $this->isEntitySet($name) )\n {\n $this->fDebug->add(get_class($this) . \"::getValue(): Returning values for $name\", 4);\n $out = $this->$name;\n // Check to make sure we're actually something that is serialized\n if ( strstr($out, '{') )\n {\n $temp = unserialize($out);\n if ( is_array($temp) ) return $temp;\n }\n return $out;\n }\n return false;\n }", "public function get(){\n\n //return source\n return [\"__projectName__ repository __bundleName__ __srcName__\"];\n }", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}" ]
[ "0.52693653", "0.5214378", "0.52136624", "0.52045447", "0.517181", "0.5077028", "0.50730354", "0.50366914", "0.50334644", "0.49897408", "0.49690583", "0.49688557", "0.49678406", "0.4940028", "0.49381188", "0.49381188", "0.49375528", "0.49107492", "0.49072695", "0.4904715", "0.49021417", "0.4887219", "0.48779997", "0.48745635", "0.48727348", "0.4861621", "0.4834626", "0.48286813", "0.4825988", "0.48208228", "0.4816985", "0.4812405", "0.48110846", "0.4810641", "0.48101196", "0.48042944", "0.4802283", "0.47926655", "0.47901988", "0.47747084", "0.47572914", "0.4752117", "0.474278", "0.47324544", "0.4720748", "0.4719964", "0.4717029", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.47161752", "0.46979898", "0.46950436", "0.469272", "0.46891567", "0.46797058", "0.46743158", "0.46718583", "0.4670227", "0.46689278", "0.46648377", "0.46593162", "0.46560296", "0.46506867", "0.46495205", "0.46456432", "0.46392772", "0.46355098", "0.4633334", "0.4626068", "0.46252775", "0.46189392", "0.46120346", "0.46051416", "0.46004942", "0.45965758", "0.45918578", "0.45856586", "0.45790854", "0.45773104", "0.45737016", "0.45737016", "0.45737016" ]
0.6173997
0
Create a new policy instance.
public function __construct() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createPolicy() {\n\t\tthrow new CmisNotImplementedException(\"createPolicy\");\n\t}", "public function testPolicyCanBeCreated()\n {\n $policy = factory(App\\Models\\Policy::class)->create([\n 'title' => 'Administrator',\n ]);\n\n $this->assertEquals($policy->title, 'Administrator');\n\n $this->seeInDatabase('policies', ['id' => '1', 'title' => 'Administrator']);\n }", "public function toPolicy()\n {\n return new Policy($this->calls);\n }", "public function addPolicy(Policy $policy)\n {\n $this->policies[] = $policy;\n return $this;\n }", "public function policy(Policy $policy = null)\n {\n if(null === $policy)\n {\n return $this->child('policy');\n }\n return $this->child('policy', $policy);\n }", "public function __construct($childPolicy) { }", "public function getPolicy()\n {\n return Controllers\\PolicyController::getInstance();\n }", "public function create()\n {\n return view('policy.create');\n }", "public function create()\n {\n return view('admin.policy.create');\n }", "public function create(Request $request)\n {\n $policy = new Policy();\n\n $now = Carbon::now();\n $next_year = Carbon::now()->addYear()->subDay();\n\n $policy->date_from = $now->format('d.m.Y');\n $policy->time_from = $now->addHour()->format('H').':00';\n $policy->date_to = $next_year->format('d.m.Y');\n $policy->time_to = '24:00';\n $policy->sign_date = $now->format('d.m.Y');\n $policy->same_client_owner = true;\n $policy->p_base = 4118;\n $policy->p_k1 = 1.8;\n $policy->p_k2 = 1.0;\n $policy->p_k3 = 1.0;\n $policy->p_k4 = 1.0;\n $policy->p_k5 = 1.0;\n $policy->p_k6 = 1.0;\n $policy->p_k7 = 1.0;\n $policy->p_k8 = 1.0;\n $policy->policy_serial = 'EEE';\n $policy->dk_date = $next_year->format('d.m.Y');\n $policy->t_amount = 500.0;\n $policy->f_amount = 2000.0;\n\n $max_policy_number = Policy::all()->max('policy_number');\n if(!$max_policy_number){\n $max_policy_number = '0724573036';\n }\n $max_receipt_number = Policy::all()->max('receipt_number');\n if(!$max_receipt_number){\n $max_receipt_number = '1711116';\n }\n $policy->policy_number = str_pad((int)$max_policy_number + 1, 10, '0', STR_PAD_LEFT);\n $policy->receipt_number = (int)$max_receipt_number + 1;\n\n $vehicles = [];\n $client = Client::find($request->get('client_id'));\n if($client){\n $policy->client = $client;\n $policy->drivers = $client->drivers;\n $vehicles = $client->vehicles;\n //if(!empty($vehicles)){\n // $policy->vehicle = $client->vehicles()->first();\n //}\n }\n $policy->company_name = trans('policy.Company Megaruss');\n $policy->owner_company = false;\n\n session()->put('url.intended', URL::previous());\n\n $companies = Policy::getCompanyOptionsForSelect();\n $makers = Vehicle::getMakeOptionsForSelect();\n\n return view('policies.create', compact('policy','vehicles','companies','makers'));\n }", "public function policy($force_new = false)\n\t{\n\t\tif ((! $force_new) && (! is_null($this->policy))) {\n\t\t\treturn $this->policy;\n\t\t}\n\n\t\treturn $this->policy = policy($this->policy_class);\n\t}", "public function create(PolicyCreateResponseModel $responseModel): ViewModel;", "public function __construct() {\n parent::__construct();\n $this->setOdataType('#microsoft.graph.stsPolicy');\n }", "protected function getCreateNewObjectPolicy() {\n return PhabricatorPolicies::POLICY_NOONE;\n }", "public function run()\n\t{\n\t\t/** Access policy for admin\n\t\t */\n\t\tApp\\Model\\Base\\Policy::create([\n\t\t\t'name' => 'Admin',\n\t\t\t'description' => 'Access policy for admin',\n\t\t]);\n\n\t\t/** Access policy for manager\n\t\t */\n\t\tApp\\Model\\Base\\Policy::create([\n\t\t\t'name' => 'Manager',\n\t\t\t'description' => 'Access policy for manager',\n\t\t]);\n\n\t\t/** Access policy for simple member\n\t\t */\n\t\tApp\\Model\\Base\\Policy::create([\n\t\t\t'name' => 'Member',\n\t\t\t'description' => 'Access policy for simple member',\n\t\t]);\n\t}", "public function store(Request $request)\n {\n\n $rules = [\n 'sub_broker_name',\n 'policy_holder_name',\n 'category',\n 'product_name',\n 'policy_amount',\n 'issuing_status',\n ];\n\n $this->validate($request, $rules);\n\n $policy = new Policy;\n\n $policy->sub_broker_id = $request->sub_broker_name;\n $policy->policy_holder_name = $request->policy_holder_name;\n $policy->category = $request->category;\n $policy->product_name = $request->product_name;\n $policy->policy_amount = $request->policy_amount;\n $policy->issuing_status = $request->issuing_status;\n\n $policy->save();\n\n// $data = $request->all();\n// $subbroker = Policy::create($data);\n\n return redirect()->route('policy.index');\n }", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public function createPolicy(\n $repositoryId,\n PropertiesInterface $properties,\n $folderId = null,\n array $policies = [],\n AclInterface $addAces = null,\n AclInterface $removeAces = null,\n ExtensionDataInterface $extension = null\n ) {\n // TODO: Implement createPolicy() method.\n }", "public function create() {}", "public function newInstance();", "public function newInstance();", "public function store(Request $request, PrivacyPolicy $PrivacyPolicy)\n {\n //dd(10);\n $inputArr['title'] = $request->get('title');\n $inputArr['description'] = $request->get('description');\n $PrivacyPolicy = $PrivacyPolicy->saveNewPolicy($inputArr);\n if(!$PrivacyPolicy){\n return redirect()->back()->with('error', 'Unable to add questionnaire. Please try again later.');\n }\n\n return redirect()->route('admin.privacypolicy.index')->with('success_message', 'New Privacy & Policy created successfully.');\n }", "public function createPolicy(User $user)\n {\n return $user->may(static::PERMISSION_CREATE);\n }", "public function createPolicy(User $user)\n {\n return $user->may(static::PERMISSION_CREATE);\n }", "public function Create()\n\t{\n\t\treturn new self;\n\t}", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n\t{\n\t\treturn new self;\n\t}", "public function store(Request $request)\n {\n $this->validate($request, $this->rules);\n $mytime = Carbon\\Carbon::now();\n $policy = PrivacyPolicy::create($request->all() + [\n 'created_by' => Auth::user()->id,\n 'created_at' => $mytime->toDateTimeString()\n ]);\n \\Session::flash('flash_message','You have just created new Privacy Policy.');\n return redirect()->route('privacyPolicy.index');\n }", "public static function create() {\n return new self();\n }", "public static function create() {\n\t\treturn new self();\n\t}", "public function create()\n {\n $id = DB::table('policies')->max('id');\n\n $id += 1;\n\n return view('admin.policies.create', compact('id'));\n }", "public function create()\n {\n return new $this->class;\n }", "public static function create()\n\t\t{\n\t\t\treturn new self();\n\t\t}", "private function createCollectionPolicy() {\n module_load_include('inc', 'fedora_repository', 'api/fedora_item');\n $fedora_item = new fedora_item($this->contentModelPid);\n $datastreams = $fedora_item->get_datastreams_list_as_array();\n if (isset($datastreams['COLLECTION_POLICY_TMPL'])) {\n $collection_policy_template = $fedora_item->get_datastream_dissemination('COLLECTION_POLICY_TMPL');\n $collection_policy_template_dom = DOMDocument::loadXML($collection_policy_template);\n $collection_policy_template_root = $collection_policy_template_dom->getElementsByTagName('collection_policy');\n if ($collection_policy_template_root->length > 0) {\n $collection_policy_template_root = $collection_policy_template_root->item(0);\n $node = $this->importNode($collection_policy_template_root, TRUE);\n $datastream = $this->createDatastreamElement('COLLECTION_POLICY', 'A', 'X');\n $version = $this->createDatastreamVersionElement('COLLECTION_POLICY.0', 'Collection Policy', 'text/xml');\n $content = $this->createDatastreamContentElement();\n $this->root->appendChild($datastream)->appendChild($version)->appendChild($content)->appendChild($node);\n }\n }\n }", "public function create()\n\t{\n\t\t//Permissions are created via code\n\t}", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public static function create(): self\n {\n return new self();\n }", "public static function create(): self\n {\n return new self();\n }", "public function create(){}", "public function addToPolicyID($policyID)\n {\n $this->policyID[] = $policyID;\n return $this;\n }", "public static function newInstance()\n {\n $instance = new self;\n return $instance;\n }", "public function store(StorePolicyRequest $request)\n {\n\n $client = Client::find($request->input('client.id'));\n\n if(!$client){\n $client = new Client();\n }\n $client->fill($request->input('client'));\n $client->save();\n\n if($request->has('vehicle.id')){\n $vehicle = Vehicle::find($request->input('vehicle.id'));\n }else{\n $vehicle = new Vehicle();\n }\n $vehicle->fill($request->input('vehicle'));\n $vehicle->client()->associate($client);\n $vehicle->save();\n\n $policy = new Policy($request->all());\n $policy->client()->associate($client);\n if($request->input('same_client_owner')){\n $policy->setOwnerData($client);\n }\n $policy->vehicle()->associate($vehicle);\n $policy->save();\n\n $drivers_sync = [];\n foreach($request->input('drivers') as $key => $driver){\n if(!empty($driver['name'])){\n $d = Driver::find($driver['id']);\n if(!$d){\n $d = new Driver();\n }\n $d->fill($driver);\n $d->client()->associate($client);\n $d->save();\n array_push($drivers_sync, $d->id);\n }\n }\n $policy->drivers()->sync($drivers_sync);\n\n flash()->success('Policy has been created successfully.');\n return Redirect::intended('/');\n }", "protected function policy()\n {\n return $this->gate()->getPolicyFor($this);\n }", "public function run()\n {\n PrivacyPolicy::create([\n\n 'main_text'=>[\n 'ar'=>'نص رئيسي',\n 'en'=>'main',\n ],\n 'text_one'=>[\n 'ar'=>'نص رئيسي',\n 'en'=>'main',\n ],\n 'text_two'=>[\n 'ar'=>'نص رئيسي',\n 'en'=>'main',\n ],\n 'text_three'=>[\n 'ar'=>'نص رئيسي',\n 'en'=>'main',\n ],\n 'text_four'=>[\n 'ar'=>'نص رئيسي',\n 'en'=>'main',\n ],\n 'text_five'=>[\n 'ar'=>'نص رئيسي',\n 'en'=>'main',\n ],\n 'text_six'=>[\n 'ar'=>'نص رئيسي',\n 'en'=>'main',\n ],\n 'text_seven'=>[\n 'ar'=>'نص رئيسي',\n 'en'=>'main',\n ],\n 'text_eight'=>[\n 'ar'=>'نص رئيسي',\n 'en'=>'main',\n ],\n ]);\n }", "public function create()\n {}", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }", "public function create(ReturnPolicyRequest $Model): SetReturnPolicyResponse\n {\n return $this->client->request('createReturnPolicy', 'POST', 'return_policy',\n [\n 'json' => $Model->getArrayCopy(),\n ]\n );\n }", "public function create() {\n\t\t\t//\n\t\t}", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public static function create()\n {\n return new static();\n }", "public function create()\n {\n $this->cpAuthorize();\n }", "public static function create()\n {\n return new static;\n }", "public static function create()\n {\n return new static;\n }", "public static function create()\n {\n return new static;\n }", "public static function create()\n {\n return new static;\n }" ]
[ "0.69238234", "0.63803977", "0.63180053", "0.6157489", "0.59963197", "0.5828844", "0.5753017", "0.5750766", "0.57240343", "0.5712267", "0.57120466", "0.5633073", "0.5629794", "0.5476492", "0.5414451", "0.536653", "0.5354097", "0.5354097", "0.5354097", "0.53313726", "0.5293763", "0.5292304", "0.5292304", "0.52784693", "0.52376395", "0.52376395", "0.52274543", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.5222868", "0.52038455", "0.5195074", "0.5190787", "0.5188793", "0.51716197", "0.5159273", "0.5158003", "0.51553255", "0.5153394", "0.51464254", "0.51464254", "0.51464254", "0.51464254", "0.51464254", "0.51464254", "0.51464254", "0.51464254", "0.51464254", "0.51464254", "0.51464254", "0.51383084", "0.51383084", "0.51305", "0.5099971", "0.5092445", "0.5087874", "0.50853986", "0.5082831", "0.5065765", "0.50374144", "0.503741", "0.50371057", "0.50312907", "0.50312907", "0.50312907", "0.50312907", "0.50312907", "0.50312907", "0.50312907", "0.50312907", "0.50312907", "0.50312907", "0.50312907", "0.50312907", "0.50312907", "0.50312907", "0.50312907", "0.50312907", "0.50251085", "0.5007391", "0.5007391", "0.5007391", "0.5007391" ]
0.0
-1
only moderators can view moderation page
public static function show(){ return Auth::check() && Auth::user()->isAdmin(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isModerator()\n {\n }", "public function isModerador(){ return false; }", "private function isNotModerator()\n {\n if (Auth::user() == null || Auth::user()->users_status != \"moderator\") {\n return true;\n }\n }", "public function testAccessWithModerator(): void {\n $this->logInModerator();\n $this->getClient()->request(\"GET\", \"/sadmin/contact\");\n\n $this->assertEquals(403, $this->getClient()->getResponse()->getStatusCode(), \"The status code expected is not ok.\");\n }", "public static function show_moderator() {\n\t\tglobal $post;\n\n\t\tif ( ! $post || 'publish' !== $post->post_status ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$moderator_link = Photo::get_moderator_link( $post );\n\t\tif ( $moderator_link ) {\n\t\t\techo '<div class=\"misc-pub-section curtime misc-pub-curtime\">';\n\t\t\tprintf( __( 'Moderated by: %s', 'wporg-photos' ), $moderator_link );\n\t\t\techo '</div>';\n\t\t}\n\t}", "function isModerated()\r\n {\r\n $ret = false;\r\n if ( $this->IsModerated == 1 )\r\n $ret = true;\r\n\r\n return $ret;\r\n }", "public function checkForModerationRedirect() {\n $moderated = $this->checkForModeration();\n if (!empty($moderated)) {\n $moderatedResourceId = $this->controller->getProperty('moderatedResourceId','');\n if (!empty($moderatedResourceId)) {\n if ($this->controller->getProperty('redirectUnsetDefaultParams') == false) {\n $persistParams = array_merge($this->persistParams,array(\n 'username' => $this->user->get('username'),\n 'fullname' => $this->profile->get('fullname'),\n 'email' => $this->profile->get('email'),\n ));\n }\n $url = $this->modx->makeUrl($moderatedResourceId,'',$persistParams,'full');\n if (!$this->login->inTestMode) {\n $this->modx->sendRedirect($url);\n }\n return true;\n }\n }\n return false;\n }", "public static function isModerator() {\n return (int)$_SESSION['user']['moderator'] === 1;\n }", "function publisher_userIsModerator($itemObj)\r\n{\r\n $publisher = PublisherPublisher::getInstance();\r\n $categoriesGranted = $publisher->getHandler('permission')->getGrantedItems('category_moderation');\r\n return (is_object($itemObj) && in_array($itemObj->categoryid(), $categoriesGranted));\r\n}", "public function manage_comments_page_access() {\n\t\tif ( ! current_user_can( 'moderate_comments' ) ) {\n\t\t\twp_die(\n\t\t\t\t__( 'You do not have permission to moderate comments.', 'wpcampus-network' ),\n\t\t\t\t__( 'Moderating Comments', 'wpcampus-network' ),\n\t\t\t\t[ 'back_link' => true ]\n\t\t\t);\n\t\t}\n\t}", "function _isModerator($a_ref_id, $a_usr_id)\n\t{\n\t\treturn in_array($a_usr_id, ilForum::_getModerators($a_ref_id));\n\t}", "function user_can_access_admin_page()\n {\n }", "public function isModerated()\n {\n return $this->attribute('state') == self::STATUS_MODERATED;\n }", "public function isModerator()\n\t{\n\t\tif( $this->permission != array_search( 'moderator', $this->permissions ) )\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "public static function showModeratedTopics()\n {\n \t$ini = eZINI::instance('site.ini.append.php');\n \tif ( !$ini->variable('SiteAccessSettings', 'ShowModeratedForumItems') )\n \t{\n \t\treturn false;\n \t}\n \t\n \treturn true;\n }", "function VisibleToAdminUser()\n {\n\tinclude (\"dom.php\");\n return $this->CheckPermission($pavad.' Use');\n }", "private function allowModify()\n { \n if($this->viewVar['loggedUserRole'] <= 40 )\n {\n return TRUE;\n }\n else\n {\n return FALSE;\n }\n }", "public function page_test() {\n\n\t\tprint_r($this->permissions->check(\"can_view_admin\"));\n\t}", "public static function isMod(): bool\n {\n $user = self::getUser();\n\n // Check if is logged in and (check if user is moderator in database - set to 1)\n if (!$user || !$user->moderator) {\n return false;\n }\n\n return true;\n }", "public function isModerator() : bool\n\t{\n\t\tif ($this->isSuperAdmin()) {\n\t\t\treturn true;\n\t\t}\n\n\t\t$this->loadUsergroups();\n\t\tif (in_array(App::USERGROUPS['moderators'], $this->usergroup_ids)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "function visible_to_admin_user()\n\t{\n\t\treturn true;\n\t}", "public function isModerator()\n {\n return in_array(Role::MODERATORS_SYSTEM_ROLE, $this->getRoleNamesForCurrentViewer());\n }", "protected function matchHideForNonAdminsCondition() {}", "function authorizedAdminOnly(){\n global $authenticatedUser;\n if(!$authenticatedUser['admin']){\n header(\"HTTP/1.1 403 Forbidden\");\n header(\"Location: https://eso.vse.cz/~frim00/marvelous-movies/error-403\");\n exit();\n }\n }", "public function adminOnly();", "public function adminOnly();", "function isModerator($moderator,$usertype='')\r\n\t{\r\n \t$my = JFactory::getUser();\r\n\r\n \tif (!$usertype)\r\n\t\t\treturn (in_array(JOSC_utils::getJOSCUserType($my->usertype), $moderator));\r\n\t\telse\r\n\t\t\treturn (in_array(JOSC_utils::getJOSCUserType($usertype), $moderator));\r\n\t}", "public function showModerations()\n {\n $moderationRepo = $this->getDoctrine()->getRepository(Moderation::class);\n $moderations = $moderationRepo->findAll();\n\n return $this->render('admin/list-of-moderations.html.twig', [\n 'moderations' => $moderations\n ]);\n }", "function allowed() {\n $this->model('invitation');\n \n if ($_SESSION['user']->guest) {\n $sql = \"SELECT * FROM invitations WHERE id = {$_SESSION['user']->id}\";\n $invite = $this->invitation->one($sql);\n if (!$invite) {\n $this->message('Ungültige Einladung');\n unset($_SESSION['user']);\n $this->redirect('/');\n }\n \n if ($_SESSION['user']->object_type == 'topic') { \n if (count($this->path) < 3) {\n $this->message('FALSCHE URL');\n return FALSE;\n }\n $photo_id = $this->path[2];\n \n $sql = \"SELECT * FROM photos WHERE id = {$photo_id} LIMIT 1\";\n $photo = $this->photo->one($sql);\n if (!$photo) {\n $this->message('FALSCHE URL');\n return FALSE;\n }\n \n if ($photo->topic_id != $_SESSION['user']->object_id) {\n $this->message('Sie haben kein Zugriff auf diese Inhalte');\n return FALSE;\n }\n \n return TRUE;\n }\n }\n return parent::allowed();\n }", "function isAdmin() {\n\t\t$me = $_SESSION[\"me\"];\n\t\t$check = mf(mq(\"select `id`,`url` from `[p]musicplayer` where `id`='{$me}' limit 1\"));\n\t\tif ($check[\"url\"] == \"admin\") {\n\t\t\treturn true;\n\t\t}\n\t}", "public function isModerated()\n {\n return $this->accepted !== null;\n }", "protected function isCurrentUserAdmin() {}", "protected function isCurrentUserAdmin() {}", "private static function requireViewPermission() {\n\t\t$filter = [];\n\t\tif(Session::isAuthor())\n\t\t\t$filter[] = '`accesslevel` IN ('.ACCESS_PUBLIC.','.ACCESS_REGISTERED.','.ACCESS_ADMIN.')';\n\t\telseif(Session::isRegistered())\n\t\t\t$filter[] = '`accesslevel` IN ('.ACCESS_PUBLIC.','.ACCESS_REGISTERED.')';\n\t\telse\n\t\t\t$filter[] = '`accesslevel` IN ('.ACCESS_PUBLIC.','.ACCESS_GUEST.')';\n\t\t$filter[] = \"`status`=\".STATUS_PUBLISHED;\n\t\treturn implode(' AND ',$filter) ?? '1';\n\t}", "function check_permission()\n {\n // Make sure the user is logged-in\n require_course_login($this->course, true, $this->cm);\n\n add_to_log($this->course->id, 'sloodle', 'view sloodle module', \"view.php?id={$this->cm->id}\", \"{$this->sloodle->id}\", $this->cm->id);\n \n // Check for permissions\n $this->module_context = get_context_instance(CONTEXT_MODULE, $this->cm->id);\n $this->course_context = get_context_instance(CONTEXT_COURSE, $this->course->id);\n if (has_capability('moodle/course:manageactivities', $this->module_context)) $this->canedit = true;\n\n // If the module is hidden, then can the user still view it?\n if (empty($this->cm->visible) && !has_capability('moodle/course:viewhiddenactivities', $this->module_context)) notice(get_string('activityiscurrentlyhidden'));\n }", "function jmw_customize_profile_visibility( $allowed_visibilities ) {\n\n\t$allowed_visibilities[ 'moderated' ] = array(\n\t\t'id'\t=> 'moderated',\n\t\t'label'\t=> _x( 'No-one - In Moderation', 'Visibility level setting', 'bp-extended-profile-visibility' )\n\t);\n\n\treturn $allowed_visibilities;\n}", "public function is_admin_only()\n\t{\n\t\treturn false;\n\t}", "public function isAdministrador(){ return false; }", "public function pageIsNotLockedForEditors()\n {\n return $this->getBackendUser()->isAdmin() || ($this->CALC_PERMS & Permission::PAGE_EDIT) === Permission::PAGE_EDIT && !$this->pageinfo['editlock'];\n }", "public function adminModerateComments() {\n $coManager = new CommentsManager();\n $comments = $coManager->getComments();\n require ('src/View/admin/moderateComments.php');\n }", "public function responsableDashboard()\n{\n $this->denyAccessUnlessGranted('ROLE_RESPONSABLE');\n\n // or add an optional message - seen by developers\n $this->denyAccessUnlessGranted('ROLE_RESPONSABLE', null, 'User tried to access a page without having ROLE_RESPONSABLE');\n}", "function forum_mod_status ($forum_id)\n{\n\tglobal $db;\n\t// Gather list of moderators for this forums and store them in an array\n\t// that then can be searched for while displaying posts. This will only need\n\t// to be called once per viewtopic ;-)\n\t//\n\n\t$sql = \"SELECT u.user_id, u.username \n\t FROM \" . AUTH_ACCESS_TABLE . \" aa, \" . USER_GROUP_TABLE . \" ug, \" . GROUPS_TABLE . \" g, \" . USERS_TABLE . \" u\n\t\tWHERE aa.forum_id = $forum_id \n\t\t AND aa.auth_mod = \" . TRUE . \" \n\t\t \tAND g.group_single_user = 1\n\t\t \tAND ug.group_id = aa.group_id \n\t\t\tAND g.group_id = aa.group_id \n\t\t\tAND u.user_id = ug.user_id \n\t GROUP BY u.user_id, u.username \n\t\tORDER BY u.user_id\";\n\tif ( !($result = $db->sql_query($sql)) )\n\t{\n\t message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql);\n\t}\n\n\t$moderators = array();\n\twhile( $row = $db->sql_fetchrow($result) )\n\t{\n\t $moderators[] = $row['user_id'];\n\t}\n\treturn $moderators;\n}", "protected function restrict() {\n $this->restrict_to_permission('blog');\n }", "public function canManagePages();", "public function contentIsNotLockedForEditors()\n {\n return $this->getBackendUser()->isAdmin() || ($this->CALC_PERMS & Permission::CONTENT_EDIT) === Permission::CONTENT_EDIT && !$this->pageinfo['editlock'];\n }", "public static function isSuperModerator() {\n return (int)$_SESSION['user']['supermoderator'] === 1;\n }", "public function relatorio4(){\n $this->isAdmin();\n }", "public function adminPanel()\n {\n $userManager = new UserManager;\n $infoUser = $userManager->getInfo($_SESSION['id_user']);\n if ($_SESSION['id_user'] == $infoUser['id'] and $infoUser['rank_id'] == 1) {\n $postManager = new PostManager;\n $commentManager = new CommentManager;\n $findPost = $postManager->getPosts();\n $commentReport = $commentManager->getReport();\n $unpublished = $commentManager->getUnpublished();\n require('Views/Backend/panelAdminView.php');\n } else {\n throw new Exception('Vous n\\'êtes pas autorisé à faire cela');\n }\n }", "public function getIndexModerated()\n {\n // Get all the videos\n $videos = $this->video->where('moderated', true)->orderBy('created_at', 'DESC')->paginate(8);\n\n // Show the page\n return View::make('site/video/index', compact('videos'));\n }", "protected function _hasModPermission(){\n global $auth;\n return $auth->acl_get('m_inttree');\n }", "function isAdmin(){\n$user = $this->loadUser(Yii::app()->user->user_id);\nreturn intval($user->user_role_id) == 1;\n}", "function is_contest_modifiable($cid) {\n if (is_admins())\n return true;\n if (is_manager()) {\n // This is a manager. \n $contest = new ContestsTbl($cid);\n if (!$contest->Get())\n return false;\n if (!$contest->detail['avail'])\n return false;\n $perm = $contest->detail['perm'];\n if ($perm == \"user\" || $perm == 'manager' || $perm == 'temp') {\n global $login_uid;\n return ($contest->detail['owner'] == $login_uid);\n }\n }\n return false;\n}", "function canEdit() {\r\n\t\tif($this->owner->ID == Member::currentUserID())\r\n\t\t\treturn true;\r\n\r\n\t\t$member = Member::currentUser();\r\n\t\tif($member)\r\n\t\t\treturn $member->isAdmin();\r\n\r\n\t\treturn false;\r\n\t}", "public function canModifyVisibilityOfUsers();", "function show_post_moderation_links(\n $config, $logged_in_user, $post, $forum, $tokens\n){\n $moderators_allowed_to_ban = parse_bool($config, \"moderators_allowed_to_ban\"); \n $moderators_vote_to_ban = parse_bool($config, \"moderators_vote_to_ban\");\n\n if ($post->hidden) {\n show_button(\"forum_moderate_post_action.php?action=unhide&amp;id=\".$post->id.\"$tokens\", tra(\"Unhide\"), tra(\"Unhide this post\"));\n } else {\n show_button(\"forum_moderate_post.php?action=hide&amp;id=\".$post->id.\"$tokens\", tra(\"Hide\"), tra(\"Hide this post\"), \"btn\");\n }\n\n show_button(\n \"forum_moderate_post.php?action=move&amp;id=\".$post->id.\"$tokens\",\n tra(\"Move\"), tra(\"Move post to a different thread\",\"btn\")\n );\n\n if ($forum->parent_type == 0) {\n if ($logged_in_user->prefs->privilege(S_ADMIN) || ($logged_in_user->prefs->privilege(S_MODERATOR) && $moderators_allowed_to_ban)) {\n show_button(\"forum_moderate_post.php?action=banish_user&amp;id=\".$post->id.\"&amp;userid=\".$post->user.\"$tokens\", tra(\"Banish author\"),\"btn\");\n }\n if ($logged_in_user->prefs->privilege(S_MODERATOR) && $moderators_vote_to_ban) {\n require_once(\"../inc/forum_banishment_vote.inc\");\n if (vote_is_in_progress($post->user)) {\n show_button(\n \"forum_banishment_vote.php?action=yes&amp;userid=\".$post->user,\n tra(\"Vote to banish author\")\n );\n show_button(\n \"forum_banishment_vote.php?action=no&amp;userid=\".$post->user,\n tra(\"Vote not to banish author\")\n );\n } else {\n show_button(\n \"forum_banishment_vote.php?action=start&amp;userid=\".$post->user,\n tra(\"Start vote to banish author\")\n );\n }\n }\n }\n}", "public function isModerator() {\n if (!isset($this->groups)) {\n $this->groups = explode(',', $this->config['moderator']);\n array_walk($this->groups, 'trim');\n }\n\n return $this->modx->user->isMember($this->groups);\n }", "public function canUserManageUsage()\n {\n return $this->getUser()->hasAccess('manage', 'newsUsage');\n }", "public function adminPermisionListing()\n\t\t\t{\n\t\t\t\t$cls\t\t\t=\tnew adminUser();\n\t\t\t\t$cls->unsetSelectionRetention(array($this->getPageName()));\n\t\t\t\t $_SESSION['pid']\t=\t$_GET['id'];\n\t\t\t\t \n\t\t\t}", "function publisher_userIsAdmin()\r\n{\r\n global $xoopsUser;\r\n $publisher = PublisherPublisher::getInstance();\r\n\r\n static $publisher_isAdmin;\r\n\r\n if (isset($publisher_isAdmin)) {\r\n return $publisher_isAdmin;\r\n }\r\n\r\n if (!$xoopsUser) {\r\n $publisher_isAdmin = false;\r\n } else {\r\n $publisher_isAdmin = $xoopsUser->isAdmin($publisher->getModule()->getVar('mid'));\r\n }\r\n\r\n return $publisher_isAdmin;\r\n}", "public function testNotModerated() {\n $this->drupalLogin($this->adminUser);\n $this->createContentTypeFromUi('Not moderated', 'not_moderated');\n $this->assertSession()->pageTextContains('The content type Not moderated has been added.');\n $this->grantUserPermissionToCreateContentOfType($this->adminUser, 'not_moderated');\n $this->drupalGet('node/add/not_moderated');\n $this->assertSession()->pageTextContains('Save');\n $this->submitForm([\n 'title[0][value]' => 'Test',\n ], 'Save');\n $this->assertSession()->pageTextContains('Not moderated Test has been created.');\n }", "function _get_moderators () {\n\t\tif (!is_array(module('forum')->_forum_moderators)) {\n\t\t\treturn false;\n\t\t}\n\t\tforeach ((array)module('forum')->_forum_moderators as $moderator_info) {\n\t\t\t$replace = array(\n\t\t\t\t'user_profile_link'\t=> module('forum')->_user_profile_link($moderator_info['member_id']),\n\t\t\t\t'user_name'\t\t\t=> _prepare_html($moderator_info['member_name']),\n\t\t\t);\n\t\t\tforeach (explode(',', $moderator_info['forums_list']) as $_forum_id) {\n\t\t\t\t$mods_array[$_forum_id][$moderator_info['member_id']] = tpl()->parse('forum'.'/view_home_moderator_item', $replace);\n\t\t\t}\n\t\t}\n\t\tforeach ((array)$mods_array as $forum_id => $moderators_infos) {\n\t\t\t$moderators_by_forums[$forum_id] = implode(', ', $moderators_infos);\n\t\t}\n\t\treturn $moderators_by_forums;\n\t}", "function auth_can_edit_user($user, $target)\n{\n global $min_user_editing_level;\n \n // Always allowed to modify your own stuff\n if(strcasecmp($user, $target) == 0)\n {\n return 1;\n }\n\n if(authGetUserLevel($user) >= $min_user_editing_level)\n {\n return 1;\n }\n\n // Unathorised access\n return 0;\n}", "public function restricted()\n {\n $site = new SiteContainer($this->db);\n\n $site->printHeader();\n if (isset($_SESSION['type']))\n $site->printNav($_SESSION['type']);\n echo \"You are not allowed to access this resource. Return <a href=\\\"index.php\\\">Home</a>\";\n $site->printFooter();\n\n }", "public function pageIsNotLockedForEditors() {}", "function restrict_menus() {\n if (!current_user_can('manage_options') && is_user_logged_in()) {\n $path = get_site_url();\n $screen = get_current_screen();\n $base = $screen->id;\n\n if( 'profile' == $base || 'edit-contact' == $base || 'contact' == $base || 'edit-category' == $base ) {\n // only load these pages\n } else {\n wp_redirect($path.'/wp-admin/edit.php?post_type=contact');\n }\n }\n}", "function IsAdmin()\n{\n\treturn false;\n}", "function userCanEditPage()\n\t{\n\t\t// use Yawp::authUsername() instead of $this->username because\n\t\t// we need to know if the user is authenticated or not.\n\t\treturn $this->acl->pageEdit(Yawp::authUsername(), $this->area, \n\t\t\t$this->page);\n\t}", "public function getModerator()\n {\n $mod = false;\n\n if (\\Auth::check() && \\Auth::user()->isCommunity()) {\n $mod = true;\n }\n\n return json_encode(['mod' => $mod]);\n }", "public function isAdmin()\n {\n $p = User::getUser();\n if($p)\n {\n if($p->canAccess('Edit products') === TRUE)\n {\n return TRUE;\n }\n }\n return FALSE;\n }", "function isCommentModerator($moderatorlist, $userid=0)\r\n\t{\r\n \t$my = JFactory::getUser();\r\n\r\n \t\t/* is $my moderator ? */\r\n \t$ismoderator = JOSC_utils::isModerator($moderatorlist);\r\n \tif ($ismoderator) return true;\r\n\r\n \tif (!$userid || !isset($my->id)) return false;\r\n \t/* is comment userid = to $my userid ? */\r\n \treturn ($my->id==$userid);\r\n\t}", "public function isAdmin();", "function btwp_restrict_admin_access() {\n\t\n\tglobal $current_user;\n\tget_currentuserinfo();\n\t\n\tif( !array_key_exists( 'administrator', $current_user->caps ) ) {\n\t\twp_redirect( get_bloginfo( 'url' ) );\n\t\texit;\n\t}\n\n}", "function effect() {\n\t\t// Get the user\n\t\t$user =& $this->_request->getUser();\n\t\tif (!is_a($user, 'PKPUser')) return AUTHORIZATION_DENY;\n\n\t\t// Get the section editor submission.\n\t\t$sectionEditorSubmission =& $this->getAuthorizedContextObject(ASSOC_TYPE_ARTICLE);\n\t\tif (!is_a($sectionEditorSubmission, 'SectionEditorSubmission')) return AUTHORIZATION_DENY;\n\n\t\t// Section editors can only access submissions in their series\n\t\t// that they have been explicitly assigned to.\n\n\t\t// 1) Retrieve the edit assignments\n\t\t$editAssignmentDao =& DAORegistry::getDAO('EditAssignmentDAO');\n\t\t$editAssignments =& $editAssignmentDao->getEditAssignmentsByArticleId($sectionEditorSubmission->getId());\n\t\tif (!is_a($editAssignments, 'DAOResultFactory')) return AUTHORIZATION_DENY;\n\t\t$editAssignmentsArray =& $editAssignments->toArray();\n\n\t\t// 2) Check whether the user is the article's editor,\n\t\t// otherwise deny access.\n\t\t$foundAssignment = false;\n\t\tforeach ($editAssignmentsArray as $editAssignment) {\n\t\t\tif ($editAssignment->getEditorId() == $user->getId()) {\n\t\t\t\tif ($editAssignment->getCanEdit()) $foundAssignment = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif ($foundAssignment) {\n\t\t\treturn AUTHORIZATION_PERMIT;\n\t\t} else {\n\t\t\treturn AUTHORIZATION_DENY;\n\t\t}\n\t}", "function restrict($id_module='0', $teh=null)\r\n\t{\r\n\t\tif($this->is_logged_in() === FALSE) {\r\n\r\n\t\t\tredirect(base_url());\r\n\r\n\t\t} else if($id_module != 0 && $this->izin($id_module, $teh) === FALSE) {\r\n\r\n\t\t\tredirect(base_url('admin/access_forbidden'));\r\n\r\n\t\t\tdie();\r\n\r\n\t\t}\r\n\t}", "public function authorize()\n {\n return auth()->user()->ability('admin','update_pages');\n }", "protected function _isAllowed()\n {\n switch ($this->getRequest()->getActionName()) {\n case 'new':\n case 'save':\n return Mage::getSingleton('gri_cms/config')->canCurrentUserSaveVersion();\n break;\n case 'delete':\n return Mage::getSingleton('gri_cms/config')->canCurrentUserDeleteVersion();\n break;\n case 'massDeleteRevisions':\n return Mage::getSingleton('gri_cms/config')->canCurrentUserDeleteRevision();\n break;\n default:\n return Mage::getSingleton('admin/session')->isAllowed('cms/page');\n break;\n }\n }", "public function moderatorBasicTest()\n {\n $response = $this->get('moderate');\n\n $response->assertStatus(401);\n }", "function AdminVisible(){\n if(!LoggedIn()){\n if(isset($_SESSION['level'])){\n if($_SESSION['level'] == 1){\n return 1;\n }\n }\n }\n }", "protected function isAdminUser() {}", "public function isAdmin(){\n\t\tparent::isAdmin();\n\t}", "function rordb_can_user_view_items(){\n return current_user_can('rordb_view_items');\n}", "function userIsPageAdmin() {\n\t\t// use Yawp::authUsername() instead of $this->username because\n\t\t// we need to know if the user is authenticated or not.\n\t\treturn $this->acl->pageAdmin(Yawp::authUsername(), $this->area, $this->page);\n\t}", "function visible () {\n\t\treturn isadmin();\n\t}", "public function isAdmin() {}", "public function isModuleAdmin($username,$module);", "protected function _isAllowed()\r\n\t{\r\n\t\treturn Mage::getSingleton('admin/session')->isAllowed('system/tools/modulesmanager');\r\n\t}", "public function check_admin() {\n return current_user_can('administrator');\n }", "public function is_admin() {\n return $this->session->get(\"niveau_acces\") >= 2;\n }", "protected function _isAllowed()\n {\n \treturn true;\n }", "function show_deny() {\n\t\t\tshow_error(\n\t\t\t\t'403 Forbidden',\n\t\t\t\t'You do not have sufficient clearance to view this page.'\n\t\t\t);\n\t\t}", "private function checkPageAllowed() {\n\n if (!$this->user->isPersonnalManager()) {\n\n header('Location: ./index.php');\n exit();\n }\n }", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('bs_material/coursedoc');\n }", "function isRestricted() {\t\n\n\t\tif (isset($_SESSION['logged-in']) && $_SESSION['isAdmin']) {\n\t\t}\n\t\telse\n\t\t{\n\t\t\theader(\"Location: restricted.php\");//Instant Re direct to Restricted due to lack of permissions.\n\t\t}\t\t\t\n\t}", "public function requireAdmin(){\n if( ! Authentifiacation::isAdmin()){\n Authentifiacation::rememberRequestedPage();\n Flash::addMessage('You need to have admin status to access this page', Flash::INFO);\n self::redirect('/login/new');\n }\n }", "public function get_announcement_permissions_check() {\n return current_user_can( 'manage_options' );\n }", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('bs_material/curriculumdoc');\n }", "public function moderation()\n {\n return $this->belongsTo('App\\Models\\Ticket\\MultiMod', 'multi_mod');\n }", "public function permissionedControlled() {\r\n return [\r\n '#markup' => $this->t('This menu entry will not show and the page will not be accessible without the \"access protected menu example\" permission to current user.'),\r\n ];\r\n }", "public function viewableByOwnerOnly();", "function is_course_modifiable($course_id) {\n if (is_admins())\n return true;\n if (is_manager()) {\n // This is a manager. \n $courseTbl = new CourseTbl($course_id);\n if (!$courseTbl->Get())\n return false;\n if (!$courseTbl->detail['avail'])\n return false;\n global $login_uid;\n return ($courseTbl->detail['owner'] == $login_uid);\n }\n return false;\n}" ]
[ "0.76452386", "0.7261019", "0.7098022", "0.70626557", "0.7000842", "0.6957744", "0.6912857", "0.6890111", "0.6875813", "0.6774686", "0.6739141", "0.6733475", "0.669187", "0.6689403", "0.6625679", "0.6583938", "0.6541505", "0.65337175", "0.6530123", "0.6497809", "0.64632916", "0.64506924", "0.6445595", "0.64275265", "0.6384766", "0.6384766", "0.63739884", "0.63363093", "0.6306105", "0.63036937", "0.6302255", "0.62949485", "0.6289302", "0.6260732", "0.6259008", "0.6257492", "0.624856", "0.6239239", "0.6237054", "0.615902", "0.6147544", "0.6139666", "0.6137746", "0.61290425", "0.61247236", "0.6119039", "0.6113921", "0.6111883", "0.6110206", "0.6103609", "0.60972613", "0.60942364", "0.60866624", "0.6083742", "0.6081133", "0.60780704", "0.60777545", "0.60583913", "0.6046492", "0.60428405", "0.6038848", "0.60314", "0.6026236", "0.60252523", "0.60243034", "0.6023591", "0.60170066", "0.6016489", "0.6006917", "0.60058594", "0.6005551", "0.600237", "0.6000289", "0.59998554", "0.599033", "0.5990188", "0.5988551", "0.59707326", "0.5968125", "0.5960925", "0.5956524", "0.59494394", "0.5937037", "0.59325397", "0.59287333", "0.59245574", "0.59134585", "0.5905487", "0.5898536", "0.58962953", "0.58857334", "0.5884318", "0.5877327", "0.5875446", "0.58689725", "0.58667415", "0.5861614", "0.5860228", "0.58573335", "0.58519185" ]
0.6142284
41
echo "Email :".$foto_email." ";
function alterFotoFisi($conexao, $foto_coment, $foto_nome, $foto_tel, $foto_cel, $foto_cpf, $foto_end, $foto_num, $foto_estado, $foto_cidade, $foto_email, $foto_especi, $foto_img,$foto_emp='', $foto_cep=''){ echo "<br/>Dentro do foto_especi: ".print_r($foto_especi)."<br/>"; $sql_update = sprintf(" update fotografo f, fotografo_fisico fs, localizacao_foto lf set f.foto_comentario = '%s', f.foto_img_perf = '%s', fs.foto_fisi_nome = '%s', fs.foto_fisi_tel = '%s', fs.foto_fisi_cel = '%s', fs.foto_fisi_cpf = '%s', lf.loca_end_foto = '%s',lf.loca_num_foto = '%s', lf.loca_estado_foto = %u, lf.loca_cidade_foto = %u, fs.foto_fisi_nome_emp = '%s', lf.loca_cep_foto = '%s' where f.foto_cod = fs.foto_cod and f.foto_cod = lf.foto_cod and fs.foto_fisi_email = '%s' ", $foto_coment, $foto_img,$foto_nome, $foto_tel, $foto_cel, $foto_cpf, $foto_end, $foto_num, $foto_estado, $foto_cidade, $foto_emp, $foto_cep, $foto_email); $resultado_update = mysqli_query($conexao, $sql_update) or die(mysqli_error($conexao)."<br/>".$sql_update); $resulUpEspeci = atualizarEspecialidadeFotografo($conexao,$foto_email,$foto_especi); if($resultado_update){ return true; }else{ return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function teste($email){\n list($usuario, $dominio) = explode('@', $email);\n echo(($dominio));\n die('opa');\n }", "function get_profile_email($email){\r\n\t\r\n}", "public function email($email) {\n\t\n\t\n\t\n\t\treturn $email;\n\t\n\t}", "function getUserEmail($id_utente) {\n\n $query = sprintf(\"SELECT email FROM scuola.utenti_scuola WHERE id_utente = %s\", $id_utente);\n\n // Perform Query\n $result = mysql_query($query);\n\n while ($row = mysql_fetch_assoc($result)) {\n $email = $row['email'];\n }\n return $email;\n }", "public function getCrearFoto(){\n\t\treturn 'formulario de de crear Albumes';\n\t}", "function getAds_email($email)\n\t\t{\n\t\t\t$seachValues = $this->manage_content->getValue_email('company_info','*','company_email',$email);\n\t\t\tif($seachValues != \"\")\n\t\t\t{\n\t\t\t\tforeach($seachValues as $searchValue)\n\t\t\t\t{\n\t\t\t\t\techo '<!--container for adds to be repeated-->\n\t\t\t\t\t\t<a href=\"manage_ads.php?comp_name='.$searchValue['company_name'].'\">\n\t\t\t\t\t\t\t<div class=\"a_content\">\n\t\t\t\t\t\t\t\t<div class=\"a_image\">\n\t\t\t\t\t\t\t\t\t<img src=\"'.$searchValue['company_logo'].'\" alt=\"grafti cartt\" /> \n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"a_company_name\">'.$searchValue['company_name'].'</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</a>';\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo \"No se encontraron resultados para la busqueda realizada\";\n\t\t\t}\n\t\t}", "public function getEmail(){\n return $this->email;\n }", "public function getEmail(){\n return $this->email;\n }", "public function getEmail(){\n\t\treturn $this->email;\n\t}", "public function getEmail()\n {\n \treturn $this->email;\n }", "function PicAsEmailbody($web_link,$pic_link)\n{\n\tif($web_link != \"\" && $pic_link != \"\")\n\t{\n\t//\t$email_body = '<p>Forward to USTC friends, share the link-<a href=\"'.$web_link.'\">'.$web_link.'</a></p>'.'<p><a href=\"'.$web_link.'\"><img src=\"'.$pic_link.'\"></a></p>';\n \t$email_body = '<p>If you have difficulty viewing this message, please try the <a href=\"' . $web_link .'\"> online version</a>.</p>'. '<p><a href=\"'.$web_link.'\"><img src=\"'.$pic_link.'\"></a></p>';\n\treturn $email_body;\n\t}\n\telse\n\t{\t\n\t\tfile_put_contents(\"result.txt\",\"网页链接或者图片链接为空\\n\",FILE_APPEND);\n\t\texit(\"网页链接或者图片链接为空\");\n\t}\n}", "public function get_email() \n {\n return $this->email;\n }", "function getEmail($form){\n $email = '';\n \n if (isset($form)\n && $form != ''){\n foreach ($form as $field){\n if ($field['is_email'] == 'true'){\n $email = $field['value'];\n break;\n }\n }\n }\n \n return $email;\n }", "function msng_email() {\n\n $title = \"<title>Eksik bilgi var veya geçersiz giriş yapılmış!</title>\";\n $errormessage = \"<h2>Epostanın formatı geçersiz veya eksik bilgi var.</h2><b>Eposta adresi geçerli bir adres olmalı!</b>\";\n\n echo \"$title\";\n echo \"$errormessage\";\n echo \"$backbutton\";\n echo \"$footer\";\n exit;\n\n}", "public function getEmail() {}", "public function getEmail() {}", "public function getEmail() {}", "public function getEmail() {}", "public function getEmail() {}", "public function getEmail(){\n\t\t\t\t\t\t\t$sql = \"SELECT email from users \";\n\t\t\t\t\t\t\t$statement = $this->db->prepare($sql);\n\t\t\t\t\t\t\t$statement->execute();\n\t\t\t\t\t\t\t$result = $statement->fetch();\n\t\t\t\t\t\t\t// $result = $statement->fetchAll();\n\n\t\t\t\t\t\t\tprint_r($result);\n\t\t\t\t\t\n\t\t\t\t\t}", "public function getEmail() {\r\n return $this->email;\r\n }", "function print_user($result){\n\textract($result);\n\t$img_src = '\"data:image/*;base64,'.base64_encode($PHOTO).'\"';\n\techo <<<_END\n\t<html><body>\n\t\t<table style='margin-top:5%'>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\t<img src=$img_src height='400px' width='400px' />\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<table>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td><h4>First name: </h4></td>\n\t\t\t\t\t\t\t<td><h5>$FNAME</h5></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td><h4>Last name: </h4></td>\n\t\t\t\t\t\t\t<td><h5>$LNAME</h5></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td><h4>Nick name: </h4></td>\n\t\t\t\t\t\t\t<td><h5>$NICK</h5></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td><h4>Phone number:&nbsp;&nbsp;&nbsp;&nbsp;</h4></td>\n\t\t\t\t\t\t\t<td><h5>$PHN</h5></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td><h4>Email address: </h4></td>\n\t\t\t\t\t\t\t<td><h5>$EMAIL</h5></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t</body></html>\n_END;\n}", "function errorMailExiste(){\n\t\t$content='\n\t\t\t<div><h3>'.htmlspecialchars($this->pi_getLL(\"txt_error_mail\")).'<br/></h3><hr/></div>';\n\t\t$content .=$this->getFormulaireVide();\n\t\treturn $content;\n\t}", "public function getEmail(){\n return $this->email;\n }", "public function getFoto()\r\n {\r\n return $this->Foto;\r\n }", "public function getEmail() : string\r\n\t{\r\n\t\treturn $this->email;\r\n\t}", "public function getEmail(){\r\n\t\t\treturn $this->email;\r\n\t\t}", "public function getEmailAuteur() {\n return $this->emailAuteur;\n }", "function sEmail( $email )\r\n\t\t{\r\n\t\t return filter_var( $email, FILTER_SANITIZE_EMAIL );\r\n\t\t \r\n\t\t}", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmailEmpresa()\n {\n return $this->emailEmpresa;\n }", "public function getEmail(): string\n\t{\n\t\treturn $this->email->getEmail();\n\t}", "public function message()\n {\n return 'Endereço de email já cadastrado para essa lista.';\n }", "public function getFoto()\n {\n return $this->foto;\n }", "public function getFoto()\n {\n return $this->foto;\n }", "function showEmail($id) {\n\t\t$email = $this->getConfig ( 'email', $id );\n\t\t$emailsize = strlen ( $email );\n\t\t$partialemail = substr ( $email, 0, 1 );\n\t\t$temp = strrpos ( $email, \"@\" );\n\t\t$endemail = substr ( $email, $temp - 1, $emailsize );\n\t\tfor($i = 1; $i < $temp; $i ++) {\n\t\t\t$partialemail = $partialemail . 'x';\n\t\t}\n\t\t$showemail = $partialemail . $endemail;\n\t\t\n\t\treturn $showemail;\n\t}", "function getUserEmail(){\n\t//follow this example, add session variable to the sql select statement using a where clause\n\t$result = queryDB(\"Select * from user limit 1\");\n\t$row = mysql_fetch_array($result);\n\techo $row['email'];\n\treturn $row['email'];\n}", "public function getEmail(){\n\t\t\treturn $this->email;\n\t\t}", "public function getEmail():string\n {\n return $this->email;\n }", "function get_avatar_url($email, $size = 25)\r\n{\r\n return \"http://fr.gravatar.com/avatar/\".md5(strtolower(e(trim($email)))).\"?s=\".$size;//trim used to delete spaces\r\n}", "public function get_author_email()\n\t{\n\t\treturn '';\n\t}", "function getEmail() {\n\t\treturn $this->getData('email');\n\t}", "public function get_email() {\r\n return $this->email;\r\n }", "public function getEmail()\n {\n return $this->email;\n }", "public static function email($email) {\n\t\treturn str_replace('@', '&#64;', static::obfuscate($email));\n\t}", "function storefront_current_user_email()\n {\n // if (is_user_logged_in()) :\n // $current_user = wp_get_current_user();\n ?>\n <div class=\"current-user-email\">\n <span><?php \n // echo $current_user->user_email; \n echo get_option('admin_email');\n ?></span>\n </div>\n <?php\n // endif;\n }", "public function m_Euser(){\n\t\tif ($this -> e_user !== '') {\n\t\t\techo $this -> E_inicio.$this -> e_user.$this -> E_fin;\n\t\t}\n\t}", "function getFieldEmailAddress($value = null){\n\t\t$form_ret = '';\n\t\t$dataField = get_option('axceleratelink_srms_opt_emailAddress');\n\t\t$dataTitle = get_option('axceleratelink_srms_opt_tit_emailAddress');\n\t\t$message = get_option('axceleratelink_set_emailadd_msg');\n\t\t$tooltip = setToolTipNotification('email');\n\t\tif ($dataField == 'true'){\n\t\t\t$form_ret .= \"</br><label>\".$dataTitle.\"<span class='red'>*</span>\".$tooltip.\"</label><br><input type='text' name='emailAddress' value='\".$value.\"' class='' id='email' data-value='\".($message ? $message : '').\"'></br><div id='email_err_con'></div><div id='email_label'></div>\";\t\t\n\t\t\t$form_ret .= \"<div class='email-massage'></div>\";\n\t\t}\n\t\treturn $form_ret;\n\t}", "public function getEmail()\n\t\t{\n\t\treturn $this->email;\n\t\t}", "public function feide_email() {\n\t\t\t$this->feide_email = mb_strtolower($this->attributes['mail'][0]);\n\n\t\t\treturn $this->feide_email;\n\t\t}", "public function getAvatarAttribute()\n {\n return 'https://i.pravatar.cc/50?u='.$this->email;\n }", "function dibujar_foto_mi_cuenta()\n{\n\n $cadena = '';\n $ruta = 'assets/fotos/';\n $foto = '';\n if(is_null(Auth::user()->foto)){\n $sexo = Auth::user()->sexo;\n if($sexo == 'Hombre'){\n $foto = 'avatar-hombre.png';\n }else{\n $foto = 'avatar-mujer.png';\n }\n\n }else{\n $foto = Auth::user()->foto; \n }\n\n $ruta = $ruta . $foto;\n $cadena = '<img src=\"' . asset($ruta) . '\" class=\"img-responsive center-block\"/>';\n\n return $cadena;\n}", "public function getEmail(): string;", "public function getEmail(): string;", "public function getEmail(): string;", "public function getEmail()\n\t{\n\t\treturn $this->correo;\n\t}", "public function menu_usuario_foto(){\n\t\t$empresa = '';\n\t\tif($this->tipo_usuario == 'empresa'){\n\t\t\t$empresa = '<h3>'.$this->Usuario->empresa.'</h3>';\n\t\t}\n\t\t$return ='<div class=\"sidebar-header\">';\n\t\tif($this->tipo_usuario != 'particular'){\n\t\t\t$logo = $this->Modulos->Perfil->sacar_logo();\t\n\t\t\tif(!empty($logo)){\t$return .= $logo;\n\t\t\t}else{\t\t\t\t$return .='<img src=\"http://placehold.it/80x80\" />';\t}\t\n\t\t}\t\t\n\t\t$return .=\t'<h2>'.$_SESSION['username'].'</h2>';\t\t\n\t\t'';\n\t\t$return .= $empresa;\n\t\t$return .='</div>';\n\n\t\treturn $return;\n\t}", "function dibujar_foto()\n{\n\n $cadena = '';\n $ruta = 'assets/fotos/';\n $foto = '';\n if(is_null(Auth::user()->foto)){\n $sexo = Auth::user()->sexo;\n if($sexo == 'Hombre'){\n $foto = 'avatar-hombre.png';\n }else{\n $foto = 'avatar-mujer.png';\n }\n\n }else{\n $foto = Auth::user()->foto; \n }\n\n $ruta = $ruta . $foto;\n $cadena = '<img src=\"' . asset($ruta) . '\" class=\"img-logueado\"/>';\n\n return $cadena;\n}", "public function getEmail()\n {\n return $this->email;\n }", "public function utenteMail($idu,$password){\r\n $idu = self::$conn->real_escape_string($idu);\r\n $password = self::$conn->real_escape_string($password);\r\n $query = \"SELECT email FROM \".$this->tables['utentetable'].\r\n \" WHERE nickname='$idu' AND password ='$password'\";\r\n\t\t$result = self::$conn->query($query);\r\n if(!$result || $result->num_rows != 1)\r\n return ''; \r\n $row = $result->fetch_array(MYSQLI_NUM);\r\n return $row[0];\r\n }", "public function getEmail()\r\n {\r\n if ($this->getChatHelper()->allowEmail() && strlen(Mage::helper('customer')->getCurrentCustomer()->getEmail()) > 0) {\r\n return \"\\$zopim.livechat.setEmail('\" . $this->jsQuoteEscape(Mage::helper('customer')->getCurrentCustomer()->getEmail()) . \"');\" . \"\\n\";\r\n }\r\n return null;\r\n }", "function getEmail() {\n return $this->email;\n }", "function getEmail() {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->getValue('nb_icontact_prospect_email');\n }", "public static function getEmail()\n {\n return self::$email;\n }", "public function getGiftcardSenderEmail();", "public static function sendEmail($nome,$email, $user)\n {\n $CI = &get_instance();\n\n $CI->load->library(['Fo_email']);\n\n\n $msg = '<div style=\"width: 800px\">\n<img style=\"margin-left: 160px; height: 125px; width: 250px\" src=\"https://gtxsports.com.br/wp-content/uploads/2017/07/gtxSports_blk.png\">\n\n <div style=\"\n padding: 30px 0px;\n font-size: 3rem;\n font-weight: bold;\n width: 100%;\n margin-left: 120px;\n height: auto;\n color: #4682B4;\n font-family:Multicolore;\">\n Seja bem vindo\n </div>\n <img height=\"290\" width=\"600\" style=\"margin-left 100px; border-radius: 20px\" src=\"https://gtxsports.com.br/wp-content/uploads/2017/07/slide_20estados.jpg\">\n'\n .'<div style=\" widt:80%; padding: 20px 0px;\">'\n . '<p style=\"color:#696969;font-size:15px;font-family:Multicolore;margin:0px;display: inline-flex\"\"> Olá <div style=\"color: #4682B4; font-weight: bold;display: inline-flex; \"> &nbsp;'.$nome.'</div></p>'\n . '<p style=\"color:#696969;font-size:15px;font-family:Multicolore;margin:0px; display: inline-flex\">Seja bem vindo a <div style=\"color: #4682B4; font-weight: bold;display: inline-flex \"> &nbsp; GTX</div></p>'\n . '<p style=\"color:#696969;font-size:15px;font-family:Multicolore;margin:0px;\"> Seu usuário foi cadastrado em nosso sistema,</p>'\n . '<p style=\"color:#696969;font-size:15px;font-family:Multicolore;margin:0px;\"> logo seu pedido estará disponivel para acesso em: </p>' . base_url('home/cliente')\n . '</p></div>'\n . '<p style=\"color:#696969; padding: 0px 20px 20px 0px;font-weight: bold;font-size:20px;font-family:Multicolore;margin:0px;\"><b>Seu acesso:</b></p>\t'\n . '<div style=\" display: flex; justify-content: center; width: 100%; height: auto\">'\n .'<div style=\" width:550px; background-color:#e1efbc;border-radius: 10px; padding: 20px;\">'\n . '<p style=\"color:#696969;font-size:15px;font-family:Multicolore;margin:0px;\"><b>Usuário:</b> ' . $user . ' ou seu E-mail </p>'\n . '<p style=\"color:#696969;font-size:15px;font-family:Multicolore;margin:0px;\"><b>Senha: </b> Seu nome e sobrenome (sem espaço e sem letras maiusculas )</p>'\n .'</div></div></div>';\n $Data['to'] = $email;\n $Data['name'] = 'GTX';\n $Data['html'] = $msg;\n $Data['subject'] = 'Parabéns, você foi cadastrado em nosso sistema!';\n\n $resp_email = Fo_email::from_system($Data);\n\n }", "public function getEmail(): string\n {\n return $this->email;\n }", "public function getEmail(): string\n {\n return $this->email;\n }", "public function getEmail(): string\n {\n return $this->email;\n }", "public function getEmail(): string\n {\n return $this->email;\n }", "public function getEmail()\r\n {\r\n return $this->email;\r\n }", "public function getEmail()\n {\n return $this->__get(\"email\");\n }", "public function getEmail(){\n \n return $this->_email;\n \n }", "public function getEmail()\n {\n return $this->email;\n\n }", "public static function RetornarEmail() : ?string\n {\n if (self::$obj_entidade instanceof OBJ_Entidade) {\n return self::$obj_entidade->get_usuario()->get_email();\n } else {\n return null;\n }\n }", "public function getEmail() \n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->getData('label');\n }", "protected function _getGravatar() {\n\n $hash = md5(strtolower(trim($this->email)));\n return sprintf($this->gravatar . '%s?s=%d&d=%s', $hash, $this->size, 'wavatar');\n }", "public function paddleEmail()\n {\n return $this->email;\n }", "public function getEmail() {\n return $this->email;\n }", "public function getEmail() { return $this->email; }", "public function getEmail() {\n return $this->getValue('email');\n }", "public function getShowEmail()\n\t{\n\t\treturn $this->show_email;\n\t}", "function retourne_email($login_u) {\n global $mysqli;\n $sql_call = \"SELECT email FROM utilisateurs WHERE login = '$login_u'\";\n \t\n $resultat = mysqli_query($mysqli, $sql_call);\n $obj_call = $resultat->fetch_object();\n $email = $obj_call->email;\n $resultat->close();\n return $email;\n\n}", "public function getEmail() {\n\t\treturn($this->email);\n\t}", "public function filterEmail($email) {\n \n $email = filter_var($email, FILTER_SANITIZE_EMAIL);\n \n if (filter_var($email, FILTER_VALIDATE_EMAIL)) {\n return \"$email\"; \n } else {\n die(\"$email is Invalid email\");\n }\n\n }", "public function getGiftcardRecipientEmail();", "public function getMail():string\n { \n return $this->mail;\n }", "public function getEmail()\n {\n return $this->getParameter('email');\n }", "public function getEmail()\n {\n return $this->getParameter('email');\n }" ]
[ "0.62283033", "0.594536", "0.59347975", "0.5903587", "0.5883652", "0.5826872", "0.565002", "0.565002", "0.56483376", "0.5617294", "0.5585516", "0.558309", "0.55813366", "0.55726314", "0.55668485", "0.55668485", "0.55668485", "0.55662894", "0.55662894", "0.5564007", "0.5551115", "0.55472577", "0.5532692", "0.55221254", "0.5519535", "0.5482571", "0.5478503", "0.5474786", "0.5471836", "0.54707825", "0.54707825", "0.54707825", "0.54707825", "0.54707825", "0.54707825", "0.54707825", "0.54707825", "0.54707825", "0.54707825", "0.54707825", "0.5469071", "0.5463396", "0.5440121", "0.54319096", "0.54184765", "0.540778", "0.5402535", "0.540245", "0.539995", "0.5398718", "0.5395862", "0.53922486", "0.53809816", "0.53757477", "0.53753424", "0.5365123", "0.5360821", "0.53596824", "0.5358966", "0.5347999", "0.5342431", "0.5341766", "0.5339581", "0.5339581", "0.5339581", "0.53308713", "0.5324631", "0.5317335", "0.5315762", "0.53153217", "0.5311743", "0.5311225", "0.5311225", "0.5309046", "0.5303107", "0.53015983", "0.5299781", "0.5298449", "0.5298449", "0.5298449", "0.5298449", "0.52973557", "0.52912897", "0.5290527", "0.528775", "0.5287729", "0.52847207", "0.5281847", "0.5281575", "0.5279981", "0.52779275", "0.5274033", "0.52723175", "0.5271305", "0.5270724", "0.5270366", "0.52683043", "0.52658653", "0.5263002", "0.5261441", "0.5261441" ]
0.0
-1
Run the database seeds.
public function run() { Location::truncate(); Location::insert($this->locations); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n factory('App\\User', 10 )->create();\n\n $users= \\App\\User::all();\n $users->each(function($user){ factory('App\\Category', 1)->create(['user_id'=>$user->id]); });\n $users->each(function($user){ factory('App\\Tag', 3)->create(['user_id'=>$user->id]); });\n\n\n $users->each(function($user){\n factory('App\\Post', 10)->create([\n 'user_id'=>$user->id,\n 'category_id'=>rand(1,20)\n ]\n );\n });\n\n $posts= \\App\\Post::all();\n $posts->each(function ($post){\n\n $post->tags()->attach(array_unique([rand(1,20),rand(1,20),rand(1,20)]));\n });\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => '[email protected]', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"[email protected]\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // MyList::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n MyList::create([\n 'title' => 'List-'.($i+1),\n 'color' => $faker->sentence,\n 'icon' => $faker->randomDigitNotNull,\n 'index' => $faker->randomDigitNotNull,\n 'user_id' => 1,\n ]);\n }\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Products::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few products in our database:\n for ($i = 0; $i < 50; $i++) {\n Products::create([\n 'name' => $faker->word,\n 'sku' => $faker->randomNumber(7, false),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Pablo Rosales',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'status' => 1,\n 'role_id' => 1,\n 'movil' => 0\n ]);\n\n User::create([\n 'name' => 'Usuario Movil',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'status' => 1,\n 'role_id' => 3,\n 'movil' => 1\n ]);\n\n Roles::create([\n 'name' => 'Administrador'\n ]);\n Roles::create([\n 'name' => 'Operaciones'\n ]);\n Roles::create([\n 'name' => 'Comercial'\n ]);\n Roles::create([\n 'name' => 'Aseguramiento'\n ]);\n Roles::create([\n 'name' => 'Facturación'\n ]);\n Roles::create([\n 'name' => 'Creditos y Cobros'\n ]);\n\n factory(App\\Customers::class, 100)->create();\n }", "public function run()\n {\n // php artisan db:seed --class=StoreTableSeeder\n\n foreach(range(1,20) as $i){\n $faker = Faker::create();\n Store::create([\n 'name' => $faker->name,\n 'desc' => $faker->text,\n 'tags' => $faker->word,\n 'address' => $faker->address,\n 'longitude' => $faker->longitude($min = -180, $max = 180),\n 'latitude' => $faker->latitude($min = -90, $max = 90),\n 'created_by' => '1'\n ]);\n }\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'[email protected]'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => '[email protected]',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create([\n 'name' => 'Qwerty',\n 'email' => '[email protected]',\n 'password' => bcrypt('secretpassw'),\n ]);\n\n factory(User::class, 59)->create([\n 'password' => bcrypt('secretpassw'),\n ]);\n\n for ($i = 1; $i < 11; $i++) {\n factory(Category::class)->create([\n 'name' => 'Category ' . $i,\n ]);\n }\n\n for ($i = 1; $i < 101; $i++) {\n factory(Product::class)->create([\n 'name' => 'Product ' . $i,\n ]);\n }\n }", "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> '[email protected]',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n Lista::create([\n 'name' => $faker->sentence(2),\n 'description' => $faker->sentence(10), \n ]);\n } \n\n foreach (range(1,20) as $index) {\n $n = $faker->sentence(2);\n \tTarea::create([\n \t\t'name' => $n,\n \t\t'description' => $faker->sentence(10),\n 'lista_id' => $faker->numberBetween(1,5),\n 'slug' => Str::slug($n),\n \t\t]);\n } \n }", "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n DB::table('users')->insert([\n 'name' => 'user',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n\n foreach (range(1,100) as $val)\n DB::table('authors')->insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n \n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\n\n\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Flight::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n\n\n Flight::create([\n 'flightNumber' => $faker->randomNumber(5),\n 'depAirport' => $faker->city,\n 'destAirport' => $faker->city,\n 'reservedWeight' => $faker->numberBetween(1000 - 10000),\n 'deptTime' => $faker->dateTime('now'),\n 'arrivalTime' => $faker->dateTime('now'),\n 'reservedVolume' => $faker->numberBetween(1000 - 10000),\n 'airlineName' => $faker->colorName,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\n\n }", "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n\n Medicamento::factory(50)->create();\n Reporte::factory(5)->create();\n Cliente::factory(200)->create();\n Asigna_valor::factory(200)->create();\n Carga::factory(200)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n \\App\\Models\\Article::factory(20)->create();\n \\App\\Models\\Category::factory(5)->create();\n \\App\\Models\\Comment::factory(40)->create();\n\n \\App\\Models\\User::create([\n \"name\"=>\"Alice\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n \\App\\Models\\User::create([\n \"name\"=>\"Bob\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = [email protected]\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(\n \tfunction($user)\n \t{\n \t\t$user->questions()\n \t\t->saveMany(\n \t\t\tfactory(App\\Question::class, rand(2,6))->make()\n \t\t)\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(1,5))->make());\n })\n \t}\n );\n }\n}", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "public function run()\n\t{\n\t\tDB::table('libros')->truncate();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tfor ($i=0; $i < 10; $i++) { \n\t\t\tLibro::create([\n\n\t\t\t\t'titulo'\t\t=> $faker->text(40),\n\t\t\t\t'isbn'\t\t\t=> $faker->numberBetween(100,999),\n\t\t\t\t'precio'\t\t=> $faker->randomFloat(2,3,150),\n\t\t\t\t'publicado'\t\t=> $faker->numberBetween(0,1),\n\t\t\t\t'descripcion'\t=> $faker->text(400),\n\t\t\t\t'autor_id'\t\t=> $faker->numberBetween(1,3),\n\t\t\t\t'categoria_id'\t=> $faker->numberBetween(1,3)\n\n\t\t\t]);\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\t// DB::table('libros')->insert($libros);\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create()->each(function ($user) {\n // Seed the relation with 5 purchases\n // $videos = factory(App\\Video::class, 5)->make();\n // $user->videos()->saveMany($videos);\n // $user->videos()->each(function ($video){\n // \t$video->videometa()->save(factory(App\\VideoMeta::class)->make());\n // \t// :( \n // });\n factory(App\\User::class, 10)->create()->each(function ($user) {\n\t\t\t factory(App\\Video::class, 5)->create(['user_id' => $user->id])->each(function ($video) {\n\t\t\t \tfactory(App\\VideoMeta::class, 1)->create(['video_id' => $video->id]);\n\t\t\t // $video->videometa()->save(factory(App\\VideoMeta::class)->create(['video_id' => $video->id]));\n\t\t\t });\n\t\t\t});\n\n });\n }", "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker=Faker\\Factory::create();\n\n for($i=0;$i<100;$i++){\n \tApp\\Blog::create([\n \t\t'title' => $faker->catchPhrase,\n 'description' => $faker->text,\n 'showns' =>true\n \t\t]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(BusinessTableSeeder::class);\n $this->call(PrinterTableSeeder::class);\n factory(App\\Tag::class,10)->create();\n factory(App\\Category::class,10)->create();\n factory(App\\Subcategory::class,50)->create();\n factory(App\\Provider::class,10)->create();\n factory(App\\Product::class,24)->create()->each(function($product){\n\n $product->images()->saveMany(factory(App\\Image::class, 4)->make());\n\n });\n\n\n factory(App\\Client::class,10)->create();\n }", "public function run()\n {\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'name' => $faker->sentence,\n 'sku' => $faker->paragraph,\n 'price' => $faker->number,\n ]);\n }\n }", "public function run()\n {\n Storage::deleteDirectory('public/products');\n Storage::makeDirectory('public/products');\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n $this->call(ProductSeeder::class);\n Order::factory(4)->create();\n Order_Detail::factory(4)->create();\n Size::factory(100)->create();\n }", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n\t{\n\t\t\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\t$faker = \\Faker\\Factory::create();\n\n\t\tTodolist::truncate();\n\n\t\tforeach(range(1, 50) as $index)\n\t\t{\n\n\t\t\t$user = User::create([\n\t\t\t\t'name' => $faker->name,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 'password',\n\t\t\t\t'confirmation_code' => mt_rand(0, 9),\n\t\t\t\t'confirmation' => rand(0,1) == 1\n\t\t\t]);\n\n\t\t\t$list = Todolist::create([\n\t\t\t\t'name' => $faker->sentence(2),\n\t\t\t\t'description' => $faker->sentence(4),\n\t\t\t]);\n\n\t\t\t// BUILD SOME TASKS FOR EACH LIST ITEM\n\t\t\tforeach(range(1, 10) as $index) \n\t\t\t{\n\t\t\t\t$task = new Task;\n\t\t\t\t$task->name = $faker->sentence(2);\n\t\t\t\t$task->description = $faker->sentence(4);\n\t\t\t\t$list->tasks()->save($task);\n\t\t\t}\n\n\t\t}\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n\n\t}", "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n \\App\\User::create([\n 'name'=>'PAPE SAMBA NDOUR',\n 'email'=>'[email protected]',\n 'password'=>bcrypt('Admin1122'),\n ]);\n\n $faker = Faker::create();\n\n for ($i = 0; $i < 100 ; $i++)\n {\n $firstName = $faker->firstName;\n $lastName = $faker->lastName;\n $niveau = \\App\\Niveau::inRandomOrder()->first();\n \\App\\Etudiant::create([\n 'prenom'=>$firstName,\n 'nom'=>$lastName,\n 'niveau_id'=>$niveau->id\n ]);\n }\n\n\n }", "public function run()\n {\n //\n DB::table('foods')->delete();\n\n Foods::create(array(\n 'name' => 'Chicken Wing',\n 'author' => 'Bambang',\n 'overview' => 'a deep-fried chicken wing, not in spicy sauce'\n ));\n\n Foods::create(array(\n 'name' => 'Beef ribs',\n 'author' => 'Frank',\n 'overview' => 'Slow baked beef ribs rubbed in spices'\n ));\n\n Foods::create(array(\n 'name' => 'Ice cream',\n 'author' => 'Lou',\n 'overview' => ' A sweetened frozen food typically eaten as a snack or dessert.'\n ));\n\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 3)->create();\n factory(App\\Models\\Category::class, 3)\n ->create()\n ->each(function ($u) {\n $u->courses()->saveMany(factory(App\\Models\\Course::class,3)->make())->each(function ($c){\n $c->exams()->saveMany(factory(\\App\\Models\\Exam::class,3)->make())->each(function ($e){\n $e->questions()->saveMany(factory(\\App\\Models\\Question::class,4)->make())->each(function ($q){\n $q->answers()->saveMany(factory(\\App\\Models\\Answer::class,4)->make())->each(function ($a){\n $a->correctAnswer()->save(factory(\\App\\Models\\Correct_answer::class)->make());\n });\n });\n });\n });\n\n });\n\n }", "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\n ]);\n }\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Category::factory(4)->create();\n \\App\\Models\\View::factory(6)->create();\n \\App\\Models\\Room::factory(8)->create();\n \n $rooms = \\App\\Models\\Room::all();\n // \\App\\Models\\User::all()->each(function ($user) use ($rooms) { \n // $user->rooms()->attach(\n // $rooms->random(rand(1, \\App\\Models\\Room::max('id')))->pluck('id')->toArray()\n // ); \n // });\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => '[email protected]']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'[email protected]',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','[email protected]')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => '[email protected]']);\n\n factory(Category::class, 5)->create();\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "public function run()\n {\n\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => '[email protected]',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n $user_ids = [1,2,3];\n $faker = app(\\Faker\\Generator::class);\n $posts = factory(\\App\\Post::class)->times(50)->make()->each(function($post) use ($user_ids,$faker){\n $post->user_id = $faker->randomElement($user_ids);\n });\n \\App\\Post::insert($posts->toArray());\n }", "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "public function run()\n\t{\n\t\t$this->call(ProductsTableSeeder::class);\n\t\t$this->call(CategoriesTableSeeder::class);\n\t\t$this->call(BrandsTableSeeder::class);\n\t\t$this->call(ColorsTableSeeder::class);\n\n\t\t$products = \\App\\Product::all();\n \t$categories = \\App\\Category::all();\n \t$brands = \\App\\Brand::all();\n \t$colors = \\App\\Color::all();\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->colors()->sync($colors->random(3));\n\n\t\t\t$product->category()->associate($categories->random(1)->first());\n\t\t\t$product->brand()->associate($brands->random(1)->first());\n\n\t\t\t$product->save();\n\t\t}\n\n\t\t// for ($i = 0; $i < count($products); $i++) {\n\t\t// \t$cat = $categories[rand(0,5)];\n\t\t// \t$bra = $brands[rand(0,7)];\n\t\t// \t$cat->products()->save($products[$i]);\n\t\t// \t$bra->products()->save($products[$i]);\n\t\t// }\n\n\t\t// $products = factory(App\\Product::class)->times(20)->create();\n\t\t// $categories = factory(App\\Category::class)->times(6)->create();\n\t\t// $brands = factory(App\\Brand::class)->times(8)->create();\n\t\t// $colors = factory(App\\Color::class)->times(15)->create();\n\t}", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1,200) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'phone' => $faker->randomDigitNotNull,\n 'address'=> $faker->streetAddress,\n 'password' => bcrypt('secret'),\n ]);\n }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n echo PHP_EOL , 'seeding roles...';\n\n Role::create(\n [\n 'name' => 'Admin',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Principal',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Teacher',\n 'deletable' => false,\n ]\n );\n\n Role::create(\n [\n 'name' => 'Student',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Parents',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Accountant',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Librarian',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Receptionist',\n 'deletable' => false,\n ]\n );\n\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Runner::create([\n 'external_id' => $faker->uuid,\n 'name' => $faker->name,\n 'race_id' =>rand(1,5),\n 'age' => rand(30, 45),\n 'sex' => $faker->randomElement(['male', 'female']),\n 'color' => $faker->randomElement(['#ecbcb4', '#d1a3a4']),\n ]);\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "public function run()\n {\n Eloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // $this->call([\n // CountriesTableSeeder::class,\n // ]);\n\n factory(App\\User::class, 100)->create();\n factory(App\\Type::class, 10)->create();\n factory(App\\Item::class, 100)->create();\n factory(App\\Order::class, 1000)->create();\n\n $items = App\\Item::all();\n\n App\\Order::all()->each(function($order) use ($items) {\n\n $n = rand(1, 10);\n\n $order->items()->attach(\n $items->random($n)->pluck('id')->toArray()\n , ['quantity' => $n]);\n\n $order->total = $order->items->sum(function($item) {\n return $item->price * $item->pivot->quantity;\n });\n\n $order->save();\n\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'izzanni',\n \n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'aina',\n\n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'sab',\n\n ]\n );\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n //Acá se define lo que el seeder va a hacer.\n //insert() para insertar datos.\n //Array asociativo. La llave es el nombre de la columna.\n// DB::table('users')->insert([\n// //Para un solo usuario.\n// 'name' => 'Pedrito Perez',\n// 'email' => '[email protected]',\n// 'password' => bcrypt('123456')\n// ]);//Se indica el nombre de la tabla.\n\n //Crea 50 usuarios (sin probar)\n// factory(App\\User::class, 50)->create()->each(function($u) {\n// $u->posts()->save(factory(App\\Post::class)->make());\n// });\n\n factory(App\\User::class, 10)->create(); //Así se ejecuta el model factory creado en ModelFactory.php\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //nhập liệu mẫu cho bảng users\n DB::table('users')->insert([\n \t['id'=>'1001', 'name'=>'Phan Thị Hiền', 'email'=>'[email protected]', 'password'=>'123456', 'isadmin'=>1],\n \t['id'=>'1002', 'name'=>'Phan Thị Hà', 'email'=>'[email protected]', 'password'=>'111111', 'isadmin'=>0]\n ]);\n\n\n //nhập liệu mẫu cho bảng suppliers\n DB::table('suppliers')->insert([\n \t['name'=>'FPT', 'address'=>'151 Hùng Vương, TP. Đà Nẵng', 'phonenum'=>'0971455395'],\n \t['name'=>'Điện Máy Xanh', 'address'=>'169 Phan Châu Trinh, TP. Đà Nẵng', 'phonenum'=>'0379456011']\n ]);\n\n\n //Bảng phiếu bảo hành\n }", "public function run()\n {\n \t// DB::table('categories')->truncate();\n // factory(App\\Models\\Category::class, 10)->create();\n Schema::disableForeignKeyConstraints();\n Category::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['SAMSUNG','NOKIA','APPLE','BLACK BERRY'];\n foreach ($categories as $key => $value) {\n Category::create([\n 'name'=>$value,\n 'description'=> 'This is '.$value,\n 'markup'=> rand(10,100),\n 'category_id'=> null,\n 'UUID' => $faker->uuid,\n ]);\n }\n }" ]
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.7841468", "0.7834583", "0.7827792", "0.7819104", "0.78088796", "0.7802872", "0.7802348", "0.78006834", "0.77989215", "0.7795819", "0.77903426", "0.77884805", "0.77862066", "0.7778816", "0.7777486", "0.7765202", "0.7762492", "0.77623445", "0.77621746", "0.7761383", "0.77606887", "0.77596676", "0.7757001", "0.7753607", "0.7749522", "0.7749292", "0.77466977", "0.7729947", "0.77289546", "0.772796", "0.77167094", "0.7714503", "0.77140456", "0.77132195", "0.771243", "0.77122366", "0.7711113", "0.77109736", "0.7710777", "0.7710086", "0.7705484", "0.770464", "0.7704354", "0.7704061", "0.77027386", "0.77020216", "0.77008796", "0.7698617", "0.76985973", "0.76973504", "0.7696405", "0.7694293", "0.7692694", "0.7691264", "0.7690576", "0.76882726", "0.7687433", "0.7686844", "0.7686498", "0.7685065", "0.7683827", "0.7679184", "0.7678287", "0.76776296", "0.76767945", "0.76726556", "0.76708084", "0.76690495", "0.766872", "0.76686716", "0.7666299", "0.76625943", "0.7662227", "0.76613766", "0.7659881", "0.7656644", "0.76539344", "0.76535016", "0.7652375", "0.7652313", "0.7652022" ]
0.0
-1
/ This file is responsible of mapping the type in Dspace to the equivalent type in ORCID. Parameters : $type : item type ( work ). Created by : Yasmeen Alsaedy institute : King Abdullah University of Science and Technology | KAUST Date : 7 October 2019 10:30 AM
function convertToORCIDWorkType($type) { global $ioi; $type = getValues($ioi, "SELECT `orcidField` FROM `mappings` WHERE `source` = 'dspace' AND sourceField = '$type' AND `entryType` = 'workType'", array('orcidField'), 'singleValue'); if(empty($type)) { $type = 'other'; } return $type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setType(){\n switch($this->security){\n case 'H':\n case 'L':\n case '0.0':\n $typeId = 2; // k-space\n break;\n case 'A':\n $typeId = 3; // a-space\n break;\n default:\n $typeId = 1; // w-space\n }\n\n /**\n * @var $type MapTypeModel\n */\n $type = $this->rel('typeId');\n $type->getById($typeId);\n $this->typeId = $type;\n }", "public function item($type, $data)\n {\n $remap= array(\n 'DOCUMENT_TYPE'=>'doctype',\n 'TAG'=>'tag',\n 'FILTER'=>'filter',\n 'INCLUDE'=>'include',\n 'SCRIPT'=>'code',\n 'ID'=>'id',\n 'CLASS'=>'class',\n 'TEXT'=>'text',\n 'ATTRIBUTE'=>'attributes'\n );\n\n $index = 0;\n if ($type == 'INCLUDE') {\n $index = 1;\n }\n if ($type == 'DOCUMENT_TYPE') {\n $index = 1;\n }\n if ($type == 'TEXT') {\n $index = 1;\n }\n if ($type == 'ATTRIBUTE') {\n return $data;\n }\n\n return (object) array('type'=>$remap[$type], 'value'=>$data[$index]);\n }", "private function get_type() {\n\n\t}", "function getDatatypesMapping() {\n return ['Protein' => ['pdb','swissprot','datacitesbgrid'],\n 'Phenotype' => ['clinvar','dbgap','mpd','datacitemorphobank'],\n 'Gene Expression' => ['geo', 'arrayexpress', 'gemma','nursadatasets','lsdb','genenetwork','gtexldacc'],\n 'Nucleotide Sequence' => ['sra','datacitebgi'],\n 'Morphology'=>['neuromorpho'],\n 'Clinical Trials'=>['clinicaltrials','ctn'],\n 'Proteomics Data'=>['peptideatlas','proteomexchange','yped'],\n 'Physiological Signals'=>['physiobank'],\n 'Epigenetic Data'=>['epigenomics'],\n 'Data from Papers'=>['datacitepeerj','ndarpapers'],\n\n 'Omics Data'=>['omicsdi'],\n 'Survey Data'=> ['datacitefdz'],\n 'Cell Signaling'=>['datacitesdscsg'],\n 'Imaging Data'=>['cvrg','neuromorpho','cia','openfmri','cil','bmrb','retina','emdb', 'nitrcir','neurovaultatlases','neurovaultcols','neurovaultnidm','datacitecxidb','datacitembf','datacitecandi'],\n 'Unspecified' => ['lincs','bioproject','dryad','dataverse','niddkcr','icpsr','gdc','rgd','vectorbase','datacitegnd','datacitezenodo',\n 'datacitecrcns','immport','datacitedatabrary','datacitelshtm','datacitejhu',\n 'simtk',\n 'datacitebils',\n 'dataciteada',\n 'dataciteukda',\n 'dataciteadaptive',\n 'datacitemit',\n 'datacitectsi',\n 'datacitenimh',\n 'nsrr','naturedata','datacitethieme','datacitefigshare','dataciteccdc','wormbase','metabolomics'],\n ];\n}", "private function update_type($new_type) { \n\n\t\tif ($this->_update_item('type',$new_type,'50')) { \n\t\t\t$this->type = $new_type;\n\t\t}\n\n\t}", "public function TypeConverter($type){\n switch($type){\n case \"aim_in_life\":\n return \"Aim In Life\";\n break;\n case \"12_file\":\n return \"12th Certificate\";\n break;\n case \"10_file\":\n return \"1oth Certificate\";\n break;\n case \"photo_file\":\n return \"Photograph\";\n break;\n case \"tu_fee\":\n return \"Tution Fee\";\n break;\n case \"bona_file\":\n return \"Bonafite\";\n break;\n case \"in_file\":\n return \"Income Certificate\";\n break;\n case \"last_mark\":\n return \"Last Sem/Year Marksheet\";\n break;\n case \"ec_aim\":\n return \"EC Aim In Life\";\n break;\n case \"ec_vo_cert\":\n return \"EC Volunteering Certificate\";\n break;\n case \"ec_cert\":\n return \"EC Achivement Certificate\";\n break;\n }\n }", "function aiccItem($type='config',$params) {\r\n \tif(isset($params))\r\n \t{\r\n \t\tswitch($type){\r\n \t\t\tcase 'db':\r\n \t\t\t\tparent::learnpathItem($params,api_get_user_id());\r\n \t\t\t\t$this->aicc_contact = false;\r\n \t\t\t\t//TODO implement this way of metadata object creation\r\n \t\t\t\treturn false;\r\n \t\t\tcase 'config': //do the same as the default\r\n \t\t\tdefault:\r\n\t\t\t \t//if($first_item->type == XML_ELEMENT_NODE) this is already check prior to the call to this function\r\n\t\t\t \tforeach($params as $a => $value)\r\n\t\t\t \t{\r\n\t\t\t \t\tswitch($a)\r\n\t\t\t \t\t{\r\n \t\t\t\tcase 'system_id':\r\n \t\t\t\t\t$this->identifier = mysql_real_escape_string(strtolower($value));\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase 'type':\r\n \t\t\t\t\t$this->au_type = mysql_real_escape_string($value);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase 'command_line':\r\n \t\t\t\t\t$this->command_line = mysql_real_escape_string($value);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase 'max_time_allowed':\r\n \t\t\t\t\t$this->maxtimeallowed = mysql_real_escape_string($value);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase 'time_limit_action':\r\n \t\t\t\t\t$this->timelimitaction = mysql_real_escape_string($value);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase 'max_score':\r\n \t\t\t\t\t$this->max_score = mysql_real_escape_string($value);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase 'core_vendor':\r\n \t\t\t\t\t$this->core_vendor = mysql_real_escape_string($value);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase 'system_vendor':\r\n \t\t\t\t\t$this->system_vendor = mysql_real_escape_string($value);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase 'file_name':\r\n \t\t\t\t\t$this->path = mysql_real_escape_string($value);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase 'mastery_score':\r\n \t\t\t\t\t$this->masteryscore = mysql_real_escape_string($value);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase 'web_launch':\r\n \t\t\t\t\t$this->parameters = mysql_real_escape_string($value);\r\n \t\t\t\t\tbreak;\r\n\t\t\t \t\t}\r\n\t\t\t \t}\r\n\t\t\t\t\treturn true;\r\n \t\t}\r\n \t}\r\n \treturn false;\r\n }", "public function setup_types()\n {\n }", "abstract protected function getType();", "function getType() ;", "function getType() ;", "function getType() ;", "private function type($type) {\n\t\t$t = $this->api_map[$type];\n\t\t$t[\"url\"] = $this->get(\"store_url\") . $t[\"url\"] . \"?api_key=\".$this->get(\"api_key\");\n\t\treturn $t;\n\t}", "abstract public function type();", "abstract public function type();", "public function get_type(){ return $this->_type;}", "abstract public function getType();", "abstract public function getType();", "abstract public function getType();", "abstract public function getType();", "abstract public function getType();", "abstract public function getType();", "function objCreateType($dbh, $name, $title, $appid = null)\r\n{\r\n\t$otid = 0;\r\n\r\n\t// Prepend with 'co' (custom object) to prevent system object name collision\r\n\t$obj_name = \"co_\".$name;\r\n\r\n\t// Test to make sure object name does not already exist\r\n\tif ($dbh->GetNumberRows($dbh->Query(\"select id from app_object_types where name='$obj_name'\")))\r\n\t\treturn $otid; // fail\r\n\r\n\t$def = new \\Netric\\EntityDefinition($obj_name);\r\n\t$def->title = $title;\r\n\t$def->applicationId = $appid;\r\n\t$def->system = false;\r\n\r\n\t// Save the new object type\r\n $sl = ServiceLocatorLoader::getInstance($dbh)->getServiceLocator();\r\n\t$dm = $sl->get(\"EntityDefinition_DataMapper\");\r\n\t$dm->save($def);\r\n\r\n\t/*\r\n\t// Create new object table and insert into app_object_types\r\n\t$dbh->Query(\"CREATE TABLE objtbl_\".$obj_name.\" (id serial, CONSTRAINT objtbl_\".$obj_name.\"s_pkey PRIMARY KEY (id));\");\r\n\t$results = $dbh->Query(\"insert into app_object_types(name, title, object_table, application_id) \r\n\t\t\t\t\t\t\t values('\".$obj_name.\"', '$title', 'objtbl_\".$obj_name.\"', \".$dbh->EscapeNumber($appid).\");\r\n\t\t\t\t\t\t\t select currval('app_object_types_id_seq') as id;\");\r\n\tif ($dbh->GetNumberRows($results))\r\n\t{\r\n\t\t$otid = $dbh->GetValue($results, 0, \"id\");\r\n\r\n\t\tif ($otid)\r\n\t\t{\r\n\t\t\t// Make sure default feilds are in place\r\n\t\t\t$odef = new CAntObject($dbh, $obj_name);\r\n\t\t\t$odef->fields->verifyDefaultFields();\r\n\r\n\t\t\t// Associate object with application\r\n\t\t\tif ($appid)\r\n\t\t\t\tobjAssocTypeWithApp($dbh, $otid, $appid);\r\n\r\n\t\t\t// Create associations partition\r\n\t\t\t$tblName = \"object_assoc_$otid\";\r\n\t\t}\r\n\t}\r\n\t*/\r\n\r\n\treturn $otid;\r\n}", "function process_type(&$list)\n{\n\tforeach ($list as $index => $row) {\n\t\tif ($row['climb_type'] == 'Lead')\n\t\t\t$list[$index]['climb_type'] = 'L';\n\t\telse\n\t\t\t$list[$index]['climb_type'] = '';\n\t}\n}", "function getType()\t { return $this->type;\t }", "function pa_type_DEP_130707() \n\t\t\t{\n\t\t\t\t$edit_pid = (int)UTIL::get_post('edit_pid');\n\t\t\t\t//-- haben wir keine edit-id, gibts eine seiten-tabelle zur auswahl\n\t\t\t\tif (!$edit_pid) return $this->pa();\n\t\t\t\t$this->set_var('edit_pid', $edit_pid);\n\t\t\t\t//-- der seitenpfad erscheint immer\n\t\t\t\t$this->set_var('show_path',$this->show_path($edit_pid));\n\t\t\t\t//-- vorhandene module lesen\n\t\t\t\t$mods = $this->MC->get_mods();\n\t\t\t\t//-- auslesen, fuer welche module rechte vergeben wurden\n\t\t\t\t$known_mods = $this->MC->get_page_mods($edit_pid);\n\t\t\t\t//-- seitenbaum auslesen\n\t\t\t\t$root_id = (int)$this->root_id;\n\t\t\t\t$set = new NestedSet();\n\t\t\t\t$set->set_table_name($this->mod_tbl);\n\t\t\t\t$nodes = $set->getNodes($root_id, '*', $this->DB->table_restriction($this->mod_tbl));\n\t\t\t\t$this->set_var('page_nodes', $nodes);\n\t\t\t\t$this->set_var('known_mods', $known_mods);\n\t\t\t\t$this->set_var('mod_list', $mods);\n\t\t\t\t$this->set_var('table_name', $this->mod_tbl);\n\t\t\t\t$this->set_var('title',e::o('v_title_2'));\n\t\t\t\t$this->OPC->generate_view($this->tpl_dir . 'pa_type.php');\n\t\t\t}", "abstract protected function get_typestring();", "function ooffice_write_item( $item ) {\r\n global $odt;\r\n if ($item){\r\n $code = $item->code_item;\r\n $description_item = $item->description_item;\r\n $ref_referentiel = $item->ref_referentiel;\r\n $ref_competence = $item->ref_competence;\r\n\t\t\t$type_item = $item->type_item;\r\n\t\t\t$poids_item = $item->poids_item;\r\n\t\t\t$empreinte_item = $item->empreinte_item;\r\n\t\t\t$num_item = $item->num_item;\r\n $odt->SetFont('Arial','B',9); \r\n \t $odt->Write(0, recode_utf8_vers_latin1(trim(stripslashes($code))));\r\n \t \t$odt->Ln(1);\r\n \t \t$odt->SetFont('Arial','I',9);\r\n \t $odt->Write(0, recode_utf8_vers_latin1(trim(stripslashes($description_item))));\r\n \t $odt->Ln(1);\r\n \t $odt->SetFont('Arial','',9);\r\n $odt->Write(0, recode_utf8_vers_latin1(trim(get_string('t_item','referentiel').\" : \".$type_item.\", \".get_string('p_item','referentiel').\" : \".$poids_item.\", \".get_string('e_item','referentiel').\" : \".$empreinte_item)));\r\n $odt->Ln(1);\r\n } \r\n }", "private static function loadItems($type)\n\t{\n\t\tself::$_items[$type]=array();\n\t\t$models=self::model()->findAll();\n\t\tforeach($models as $model)\n\t\t\tself::$_items[$type][$model->id]=$model->productType->name;\n\t}", "public function declareOldItems() {\n // Old itemtypes\n define(\"GENERAL_TYPE\", 0);\n define(\"COMPUTER_TYPE\", 1);\n define(\"NETWORKING_TYPE\", 2);\n define(\"PRINTER_TYPE\", 3);\n define(\"MONITOR_TYPE\", 4);\n define(\"PERIPHERAL_TYPE\", 5);\n define(\"SOFTWARE_TYPE\", 6);\n define(\"CONTACT_TYPE\", 7);\n define(\"ENTERPRISE_TYPE\", 8);\n define(\"INFOCOM_TYPE\", 9);\n define(\"CONTRACT_TYPE\", 10);\n define(\"CARTRIDGEITEM_TYPE\", 11);\n define(\"TYPEDOC_TYPE\", 12);\n define(\"DOCUMENT_TYPE\", 13);\n define(\"KNOWBASE_TYPE\", 14);\n define(\"USER_TYPE\", 15);\n define(\"TRACKING_TYPE\", 16);\n define(\"CONSUMABLEITEM_TYPE\", 17);\n define(\"CONSUMABLE_TYPE\", 18);\n define(\"CARTRIDGE_TYPE\", 19);\n define(\"SOFTWARELICENSE_TYPE\", 20);\n define(\"LINK_TYPE\", 21);\n define(\"STATE_TYPE\", 22);\n define(\"PHONE_TYPE\", 23);\n define(\"DEVICE_TYPE\", 24);\n define(\"REMINDER_TYPE\", 25);\n define(\"STAT_TYPE\", 26);\n define(\"GROUP_TYPE\", 27);\n define(\"ENTITY_TYPE\", 28);\n define(\"RESERVATION_TYPE\", 29);\n define(\"AUTHMAIL_TYPE\", 30);\n define(\"AUTHLDAP_TYPE\", 31);\n define(\"OCSNG_TYPE\", 32);\n define(\"REGISTRY_TYPE\", 33);\n define(\"PROFILE_TYPE\", 34);\n define(\"MAILGATE_TYPE\", 35);\n define(\"RULE_TYPE\", 36);\n define(\"TRANSFER_TYPE\", 37);\n define(\"BOOKMARK_TYPE\", 38);\n define(\"SOFTWAREVERSION_TYPE\", 39);\n define(\"PLUGIN_TYPE\", 40);\n define(\"COMPUTERDISK_TYPE\", 41);\n define(\"NETWORKING_PORT_TYPE\", 42);\n define(\"FOLLOWUP_TYPE\", 43);\n define(\"BUDGET_TYPE\", 44);\n\n // Old devicetypes\n define(\"MOBOARD_DEVICE\", 1);\n define(\"PROCESSOR_DEVICE\", 2);\n define(\"RAM_DEVICE\", 3);\n define(\"HDD_DEVICE\", 4);\n define(\"NETWORK_DEVICE\", 5);\n define(\"DRIVE_DEVICE\", 6);\n define(\"CONTROL_DEVICE\", 7);\n define(\"GFX_DEVICE\", 8);\n define(\"SND_DEVICE\", 9);\n define(\"PCI_DEVICE\", 10);\n define(\"CASE_DEVICE\", 11);\n define(\"POWER_DEVICE\", 12);\n }", "private function loadTypes() : void {\n\t\t$this->types[DuelType::DUEL_TYPE_1V1] = new DuelType($this, DuelType::DUEL_TYPE_1V1, LanguageUtils::translateColors(\"&l&31v1\"), Item::get(Item::MOB_HEAD, Skull::TYPE_HUMAN, 1), \"http://jacknoordhuis.net/minecraft/icons/items/397-3.png\", 2, 2);\n\t\t$this->types[DuelType::DUEL_TYPE_2v2] = new DuelType($this, DuelType::DUEL_TYPE_2v2, LanguageUtils::translateColors(\"&l&32v2\"), Item::get(Item::MOB_HEAD, Skull::TYPE_HUMAN, 2), \"http://jacknoordhuis.net/minecraft/icons/items/397-3.png\", 4, 4);\n\t\t$this->types[DuelType::DUEL_TYPE_FFA] = new DuelType($this, DuelType::DUEL_TYPE_FFA, LanguageUtils::translateColors(\"&l&3FFA\"), Item::get(Item::MOB_HEAD, Skull::TYPE_DRAGON, 1), \"http://jacknoordhuis.net/minecraft/icons/items/397-5.png\", 24, 2);\n\t}", "private function replaceDocumentTypeToAccessibleType(): void\n\t{\n\t\t$replaces = [\n\t\t\tStoreDocumentTable::TYPE_ARRIVAL => StoreDocumentTable::TYPE_STORE_ADJUSTMENT,\n\t\t\tStoreDocumentTable::TYPE_STORE_ADJUSTMENT => StoreDocumentTable::TYPE_ARRIVAL,\n\t\t];\n\n\t\tforeach ($replaces as $baseType => $anotherType)\n\t\t{\n\t\t\t$can = $this->accessController->checkByValue(ActionDictionary::ACTION_STORE_DOCUMENT_MODIFY, $baseType);\n\t\t\tif (!$can)\n\t\t\t{\n\t\t\t\t$this->canSelectDocumentType = false;\n\n\t\t\t\t// change current type\n\t\t\t\tif ($this->documentType === $baseType)\n\t\t\t\t{\n\t\t\t\t\t$can = $this->accessController->checkByValue(ActionDictionary::ACTION_STORE_DOCUMENT_MODIFY, $anotherType);\n\t\t\t\t\tif ($can)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->documentType = $anotherType;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function getTypeMapper();", "public function exporter($type, $language) {\n $map = array();\n $salutation_map = [\n 'fam' => t('Family'),\n 'mrs' => t('Mrs'),\n 'mr' => t('Mr'),\n 'org' => t('Organisation'),\n ];\n $address_field = new WrapperField('field_address');\n switch ($type) {\n case 'cleverreach':\n $map['email'] = new WrapperField('email');\n $map['salutation'] = new MappedWrapperField('field_salutation', $salutation_map, FALSE);\n $map['firstname'] = new SingleValueField('first_name');\n $map['lastname'] = new SingleValueField('last_name');\n $map['title'] = new WrapperField('field_title');\n $map['gender'] = new WrapperField('field_gender');\n $map['date_of_birth'] = new DateField('field_date_of_birth', '%Y-%m-%d');\n $map['street'] = new SubField($address_field, 'thoroughfare');\n $map['street2'] = new SubField($address_field, 'premise');\n $map['country'] = new SubField($address_field, 'country');\n $map['zip'] = new SubField($address_field, 'postal_code');\n $map['city'] = new SubField($address_field, 'locality');\n $map['region'] = new SubField($address_field, 'administrative_area');\n $map['language'] = new WrapperField('field_preferred_language');\n $map['created'] = new DateField('created', '%Y-%m-%d');\n $map['updated'] = new DateField('updated', '%Y-%m-%d');\n $map['source'] = new TagField('source_tag');\n $map['campaign'] = new TagField('campaign_tag');\n $map['tags'] = new TagsField('supporter_tags', TRUE);\n $map['phoneopt'] = new BooleanField('field_opt_in_phone');\n $map['postopt'] = new BooleanField('field_opt_in_post');\n $map['oneoffval'] = new WrapperField('donation_latest_one_off.donation_value');\n $map['oneoffdate'] = new DateField('donation_latest_one_off.donation_date', '%Y-%m-%d');\n $map['regval'] = new WrapperField('donation_latest_regular.donation_value');\n $map['regdate'] = new DateField('donation_latest_regular.donation_date', '%Y-%m-%d');\n break;\n\n case 'mailchimp':\n // MailChimp merge tags have a maximum of 10 characters.\n $map['EMAIL'] = new WrapperField('email');\n $map['FNAME'] = new SingleValueField('first_name');\n $map['LNAME'] = new SingleValueField('last_name');\n $map['SALUTATION'] = new MappedWrapperField('field_salutation', $salutation_map, FALSE);\n $map['TITLE'] = new WrapperField('field_title');\n $map['GENDER'] = new WrapperField('field_gender');\n $map['DOB'] = new DateField('field_date_of_birth', '%Y-%m-%d');\n $map['STREET'] = new SubField($address_field, 'thoroughfare');\n $map['STREET2'] = new SubField($address_field, 'premise');\n $map['COUNTRY'] = new SubField($address_field, 'country');\n $map['ZIP'] = new SubField($address_field, 'postal_code');\n $map['CITY'] = new SubField($address_field, 'locality');\n $map['REGION'] = new SubField($address_field, 'administrative_area');\n $map['LANGUAGE'] = new WrapperField('field_preferred_language');\n $map['CREATED'] = new DateField('created', '%Y-%m-%d');\n $map['UPDATED'] = new DateField('updated', '%Y-%m-%d');\n $map['SOURCE'] = new TagField('source_tag');\n $map['CAMPAIGN'] = new TagField('campaign_tag');\n $map['TAGS'] = new TagsField('supporter_tags', TRUE);\n $map['PHONEOPT'] = new BooleanField('field_opt_in_phone');\n $map['POSTOPT'] = new BooleanField('field_opt_in_post');\n $map['ONEOFFVAL'] = new WrapperField('donation_latest_one_off.donation_value');\n $map['ONEOFFDATE'] = new DateField('donation_latest_one_off.donation_date', '%Y-%m-%d');\n $map['REGVAL'] = new WrapperField('donation_latest_regular.donation_value');\n $map['REGDATE'] = new DateField('donation_latest_regular.donation_date', '%Y-%m-%d');\n break;\n\n case 'dadiapi':\n $map['email'] = new WrapperField('email');\n $map['vorname'] = new SingleValueField('first_name');\n $map['name'] = new SingleValueField('last_name');\n $map['titel'] = new WrapperField('field_title');\n $genderMap = array('m' => 'M', 'f' => 'W');\n $map['geschlecht'] = new MappedWrapperField('field_gender', $genderMap);\n $map['geburtsdatum'] = new DateField('field_date_of_birth', '%Y%m%d');\n $map['strasse'] = new SubField($address_field, 'thoroughfare');\n $map['land'] = new SubField($address_field, 'country');\n $map['plz'] = new SubField($address_field, 'postal_code');\n $map['ort'] = new SubField($address_field, 'locality');\n break;\n\n case 'campaignion_manage':\n $address_mapping = array(\n 'address' => 'thoroughfare',\n 'address2' => 'premise',\n 'country' => 'country',\n 'zip' => 'postal_code',\n 'city' => 'locality',\n 'region' => 'administrative_area',\n );\n\n $map['redhen_contact_email'] = new WrapperField('email');\n $map['field_salutation'] = new MappedWrapperField('field_salutation', $salutation_map, FALSE);\n $map['first_name'] = new SingleValueField('first_name');\n $map['middle_name'] = new SingleValueField('middle_name');\n $map['last_name'] = new SingleValueField('last_name');\n $map['field_title'] = new WrapperField('field_title');\n $map['field_gender'] = new WrapperField('field_gender');\n $map['field_date_of_birth'] = new DateField('field_date_of_birth', '%Y-%m-%d');\n $map['field_address'] = new AddressField('field_address', $address_mapping);\n $map['created'] = new DateField('created', '%Y-%m-%d');\n $map['updated'] = new DateField('updated', '%Y-%m-%d');\n $map['field_ip_adress'] = new WrapperField('field_ip_adress');\n $map['field_phone_number'] = new WrapperField('field_phone_number');\n $map['field_social_network_links'] = new WrapperField('field_social_network_links');\n $map['source_tag'] = new TagField('source_tag');\n $map['campaign_tag'] = new TagField('campaign_tag');\n $map['supporter_tags'] = new TagsField('supporter_tags');\n $map['field_preferred_language'] = new WrapperField('field_preferred_language');\n $map['field_opt_in_phone'] = new BooleanField('field_opt_in_phone');\n $map['field_opt_in_post'] = new BooleanField('field_opt_in_post');\n $map['donation_latest_one_off.donation_value'] = new WrapperField('donation_latest_one_off.donation_value');\n $map['donation_latest_one_off.donation_date'] = new DateField('donation_latest_one_off.donation_date', '%Y-%m-%d');\n $map['donation_latest_regular.donation_value'] = new WrapperField('donation_latest_regular.donation_value');\n $map['donation_latest_regular.donation_date'] = new DateField('donation_latest_regular.donation_date', '%Y-%m-%d');\n break;\n\n case 'csv':\n $labels = new LabelFactory('redhen_contact', 'contact');\n $address = $labels->fromExporter(new WrapperField('field_address'));\n $map['contact_id'] = new Label(t('Contact ID'), new SingleValueField('contact_id'));\n $map['redhen_contact_email'] = new Label(t('Email'), new WrapperField('email'));\n $map['field_salutation'] = $labels->fromExporter(new MappedWrapperField('field_salutation', $salutation_map, FALSE));\n $map['first_name'] = new Label(t('Forename'), new SingleValueField('first_name'));\n $map['middle_name'] = new Label(t('Middle name'), new SingleValueField('middle_name'));\n $map['last_name'] = new Label(t('Surname'), new SingleValueField('last_name'));\n $map['field_title'] = $labels->fromExporter(new WrapperField('field_title'));\n $map['field_gender'] = $labels->fromExporter(new WrapperField('field_gender'));\n $map['field_date_of_birth'] = $labels->fromExporter(new DateField('field_date_of_birth', '%Y-%m-%d'));\n $map['field_address.thoroughfare'] = new SubField($address, 'thoroughfare', t('Address line 1'));\n $map['field_address.premise'] = new SubField($address, 'premise', t('Address line 2'));\n $map['field_address.country'] = new SubField($address, 'country', t('Country'));\n $map['field_address.postal_code'] = new SubField($address, 'postal_code', t('Postcode'));\n $map['field_address.locality'] = new SubField($address, 'locality', t('Locality'));\n $map['field_address.area'] = new SubField($address, 'administrative_area', t('Administrative area'));\n $map['created'] = new Label(t('Created'), new DateField('created', '%Y-%m-%d'));\n $map['updated'] = new Label(t('Updated'), new DateField('updated', '%Y-%m-%d'));\n $map['field_ip_adress'] = $labels->fromExporter(new WrapperField('field_ip_adress'));\n $map['field_phone_number'] = $labels->fromExporter(new WrapperField('field_phone_number'));\n $map['field_social_network_links'] = $labels->fromExporter(new WrapperField('field_social_network_links'));\n $map['source_tag'] = $labels->fromExporter(new TagField('source_tag'));\n $map['campaign_tag'] = $labels->fromExporter(new TagField('campaign_tag'));\n $map['supporter_tags'] = $labels->fromExporter(new TagsField('supporter_tags'));\n $map['field_preferred_language'] = $labels->fromExporter(new WrapperField('field_preferred_language'));\n $map['field_opt_in_phone'] = $labels->fromExporter(new BooleanField('field_opt_in_phone'));\n $map['field_opt_in_post'] = $labels->fromExporter(new BooleanField('field_opt_in_post'));\n $map['donation_latest_one_off.donation_value'] = new Label(t('Latest one-off donation value'), new WrapperField('donation_latest_one_off.donation_value'));\n $map['donation_latest_one_off.donation_date'] = new Label(t('Latest one-off donation date'), new DateField('donation_latest_one_off.donation_date', '%Y-%m-%d'));\n $map['donation_latest_regular.donation_value'] = new Label(t('Latest regular donation value'), new WrapperField('donation_latest_regular.donation_value'));\n $map['donation_latest_regular.donation_date'] = new Label(t('Latest regular donation deto'), new DateField('donation_latest_regular.donation_date', '%Y-%m-%d'));\n return new CsvExporter($map);\n\n case 'optivo':\n $map['email'] = new WrapperField('email');\n $map['anrede'] = new MappedWrapperField('field_salutation', $salutation_map, FALSE);\n $map['vorname'] = new SingleValueField('first_name');\n $map['nachname'] = new SingleValueField('last_name');\n $map['titel'] = new WrapperField('field_title');\n $map['geburtsdatum'] = new DateField('field_date_of_birth', '%Y-%m-%d');\n $map['straße'] = new SubField($address_field, 'thoroughfare');\n $map['straße_und_hausnummer'] = new SubField($address_field, 'thoroughfare');\n $map['land'] = new SubField($address_field, 'country');\n $map['plz'] = new SubField($address_field, 'postal_code');\n $map['ort'] = new SubField($address_field, 'locality');\n $map['bundesland'] = new SubField($address_field, 'administrative_area');\n $map['sprache'] = new WrapperField('field_preferred_language');\n $map['created'] = new DateField('created', '%Y-%m-%d');\n $map['updated'] = new DateField('updated', '%Y-%m-%d');\n $map['source'] = new TagField('source_tag');\n $map['campaign'] = new TagField('campaign_tag');\n $map['tags'] = new TagsField('supporter_tags', TRUE);\n $map['phoneopt'] = new BooleanField('field_opt_in_phone');\n $map['postopt'] = new BooleanField('field_opt_in_post');\n $map['oneoffval'] = new WrapperField('donation_latest_one_off.donation_value');\n $map['oneoffdate'] = new DateField('donation_latest_one_off.donation_date', '%Y-%m-%d');\n $map['regval'] = new WrapperField('donation_latest_regular.donation_value');\n $map['regdate'] = new DateField('donation_latest_regular.donation_date', '%Y-%m-%d');\n break;\n\n case 'dotmailer':\n $map['salutation'] = new MappedWrapperField('field_salutation', $salutation_map, FALSE);\n $map['firstname'] = new SingleValueField('first_name');\n $map['lastname'] = new SingleValueField('last_name');\n $map['title'] = new WrapperField('field_title');\n $map['dob'] = new DateField('field_date_of_birth', '%Y-%m-%d');\n $map['gender'] = new WrapperField('field_gender');\n $map['address'] = new SubField($address_field, 'thoroughfare');\n $map['address2'] = new SubField($address_field, 'premise');\n $map['country'] = new SubField($address_field, 'country');\n $map['postcode'] = new SubField($address_field, 'postal_code');\n $map['town'] = new SubField($address_field, 'locality');\n $map['county'] = new SubField($address_field, 'administrative_area');\n $map['phone'] = new WrapperField('field_phone_number');\n $map['source'] = new TagField('source_tag');\n $map['campaign'] = new TagField('campaign_tag');\n $map['tags'] = new TagsField('supporter_tags', TRUE);\n $map['phoneopt'] = new BooleanField('field_opt_in_phone');\n $map['postopt'] = new BooleanField('field_opt_in_post');\n $map['oneoffval'] = new WrapperField('donation_latest_one_off.donation_value');\n $map['oneoffdate'] = new DateField('donation_latest_one_off.donation_date', '%Y-%m-%d');\n $map['regval'] = new WrapperField('donation_latest_regular.donation_value');\n $map['regdate'] = new DateField('donation_latest_regular.donation_date', '%Y-%m-%d');\n break;\n }\n if ($map) {\n return new ExporterBase($map);\n }\n }", "protected function extractType($dbType)\n\t{\n\t\t$this->type=$this->extractOraType($dbType);\n\t}", "private static function loadItems($type)\n {\n \tself::$_items[$type]=array();\n \t$models=self::model()->findAll();\n \tforeach($models as $model)\n \t\tself::$_items[$type][$model->id]=$model->name;\n }", "function _mongo_node_update_type($old_entity_type, $entity_type) {\n // Update collection names.\n _mongo_node_rename_collection($old_entity_type, $entity_type);\n\n // Update bundle name in mongo entities.\n $collection = mongodb_collection('fields_current', $entity_type);\n $result = $collection->update(\n array('_type' => $old_entity_type),\n array('$set' => array('_type' => $entity_type, 'type' => $entity_type))\n );\n}", "protected abstract function getType();", "public abstract function export($type);", "function getTypeConverter() ;", "protected function getMapping($type)\n {\n switch ($type) {\n case 'article':\n return [\n 'txtArtikel' => 'name',\n 'txtshortdescription' => 'description',\n 'txtlangbeschreibung' => 'descriptionLong',\n 'txtshippingtime' => 'shippingTime',\n 'txtzusatztxt' => 'additionalText',\n 'txtkeywords' => 'keywords',\n 'txtpackunit' => 'packUnit',\n ];\n case 'variant':\n return [\n 'txtshippingtime' => 'shippingTime',\n 'txtzusatztxt' => 'additionalText',\n 'txtpackunit' => 'packUnit',\n ];\n case 'link':\n return [\n 'linkname' => 'description',\n ];\n case 'download':\n return [\n 'downloadname' => 'description',\n ];\n case 'config_countries':\n return [\n 'countryname' => 'name',\n 'notice' => 'description',\n ];\n case 'config_units':\n return [\n 'description' => 'name',\n ];\n case 'config_dispatch':\n return [\n 'dispatch_name' => 'name',\n 'dispatch_description' => 'description',\n 'dispatch_status_link' => 'statusLink',\n ];\n default:\n return false;\n }\n }", "public function setTyp( $type );", "protected function findType() {\n switch ($this->part->type) {\n case IMAP::ATTACHMENT_TYPE_MESSAGE:\n $this->type = 'message';\n break;\n case IMAP::ATTACHMENT_TYPE_APPLICATION:\n $this->type = 'application';\n break;\n case IMAP::ATTACHMENT_TYPE_AUDIO:\n $this->type = 'audio';\n break;\n case IMAP::ATTACHMENT_TYPE_IMAGE:\n $this->type = 'image';\n break;\n case IMAP::ATTACHMENT_TYPE_VIDEO:\n $this->type = 'video';\n break;\n case IMAP::ATTACHMENT_TYPE_MODEL:\n $this->type = 'model';\n break;\n case IMAP::ATTACHMENT_TYPE_TEXT:\n $this->type = 'text';\n break;\n case IMAP::ATTACHMENT_TYPE_MULTIPART:\n $this->type = 'multipart';\n break;\n default:\n $this->type = 'other';\n break;\n }\n }", "abstract public function register_type();", "abstract public function getType(): int;", "function setType($a_type)\n\t{\n\t\t$this->il_type = $a_type;\n\t}", "public function setType($type){ }", "private function get_type(){\n\t\treturn $this->_type;\n\t}", "public function setType($type) {}", "function mDATATYPE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DATATYPE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:241:3: ( 'datatype' ) \n // Tokenizer11.g:242:3: 'datatype' \n {\n $this->matchString(\"datatype\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function OBJECTTYPE ($id,$ticks) {\n global $Ticks; // time since start of mission in 1/50 sec ticks\n global $ID; // object ID\n global $TYPE; // type of object in this context\n global $objecttype; // object type from PID/AID/TID\n global $numgobjects; // number of game objects involved\n global $GOline; // lines defining game objects\n \n // T:36590 AType:12 ID:223250 TYPE:Albatros D.III COUNTRY:501 NAME:Plane PID:-1^M\n $objecttype = \"\";\n $found = \"0\";\n for ($i = 0; $i < $numgobjects; ++$i) {\n $j = $GOline[$i];\n if ((\"$ID[$j]\" == \"$id\") && ($Ticks[$j] <= $ticks)) {\n $objecttype = $TYPE[$j];\n $found = \"1\";\n }\n }\n if ( $id == \"-1\") {\n $objecttype = \"Intrinsic\";\n } elseif (!$found) { // if not an object, must be a player\n $objecttype = \"Player\";\n }\n}", "function get_type($type,$lang_id = NULL)\n\t{\n\t\t$list = $this->cache_get($type);\n\n\t\t// Loc danh sach cat theo cat hien tai\n\t\tif ($lang_id == NULL)// neu truyen lang\n\t\t{\n\t\t\t$lang_id = lang_get_cur()->id;\n\t\t}\n\t\t//pr($lang_id);\n\t\t//pr($list);\n\t\t// Them ten cua cac the content vao de tien lay thong tin\n\t\tforeach ($list as $row)\n\t\t{\n\t\t\t// lay lang mac dinh\n\t\t\tif(isset($row->_content[$lang_id])) {\n\t\t\t\t$content = (array)$row->_content[$lang_id];\n\t\t\t\tforeach ($content as $k => $v)\n\t\t\t\t\t$row->$k = $v;\n\t\t\t}\n\t\t}\n\t\treturn $list;\n\t}", "function editItemType() {\n\t\tglobal $page;\n\t\tglobal $HTML;\n\t\t$HTML->details(1);\n\n\t\t$_ = '';\n\t\t$_ .= '<div class=\"c init:form form:action:'.$page->url.'\" id=\"container:itemtype\">';\n\t\t\t$_ .= $this->getTypeObject()->editItem();\n\t\t$_ .= '</div>';\n\n\t\treturn $_;\n\t}", "public function getType()\n\t{\n\n\t}", "public function getType()\n\t{\n\n\t}", "abstract protected function get_typeid();", "function setContentType() {\n\n\t// GET START TIME\n\t$start = microtime_float();\n\tglobal $mg2;\n\n\t$writeOK = false;\n\n\t// READ DATABASE\n\tlist($readFolders, $readItems) = $mg2->readDB();\n\n\t// ARE THERE ITEM RECORDS?\n\tif ($readItems > 0) {\n\n\t\t// SET CONTENT TYPE\n\t\tforeach ($mg2->all_images as $key=>$record) {\n\t\t\t$mg2->all_images[$key][16] &= ~2047;\n\t\t\t$mg2->all_images[$key][16] |= $mg2->getContentCode(substr(strrchr($mg2->all_images[$key][6], '.'), 1));\n\t\t}\n\n\t\t// WRITE ITEM DATABASE\n\t\t$writeOK = $mg2->write_iDB('all');\n\t}\n\n\t// BUILD STATUS MESSAGE\n\t$takes = round(microtime_float() - $start,3);\n\t$message = 'Content type set in each item database record';\n\t$message.= ($writeOK)? ', it took '. $takes .' sek.':', Error!';\n\n\t// DISPLAY STATUS MESSAGE\n\t$mg2->displaystatus($message);\n}", "function getType();", "function getType();", "function getType();", "function getType();", "function getType();", "static function GetItemType() { return \"\"; }", "public function getDataWithTypeLll() {}", "function _token_rules_map_type($type) {\r\n if (($data_type = rules_get_data_types($type)) && isset($data_type['token type'])) {\r\n return $data_type['token type'];\r\n }\r\n return $type;\r\n}", "public abstract function type();", "public abstract function type();", "function postflight($type, $parent)\n\t{\n\t\t// Adding Category \"uncategorized\" if installing or discovering.\n\t\tif ($type != 'update')\n\t\t{\n\t\t\t$this->_addCategory();\n\t\t}\n\n\t\t// Adding content_type for tags\n\t\t$table = JTable::getInstance('Contenttype', 'JTable');\n\t\tif(!$table->load(array('type_alias' => 'com_sermonspeaker.sermon')))\n\t\t{\n\t\t\t$common\t= new stdClass;\n\t\t\t$common->core_content_item_id\t= 'id';\n\t\t\t$common->core_title\t\t\t\t= 'title';\n\t\t\t$common->core_state\t\t\t\t= 'state';\n\t\t\t$common->core_alias\t\t\t\t= 'alias';\n\t\t\t$common->core_created_time\t\t= 'created';\n\t\t\t$common->core_modified_time\t\t= 'modified';\n\t\t\t$common->core_body\t\t\t\t= 'notes';\n\t\t\t$common->core_hits\t\t\t\t= 'hits';\n\t\t\t$common->core_publish_up\t\t= null;\n\t\t\t$common->core_publish_down\t\t= null;\n\t\t\t$common->core_access\t\t\t= null;\n\t\t\t$common->core_params\t\t\t= null;\n\t\t\t$common->core_featured\t\t\t= null;\n\t\t\t$common->core_metadata\t\t\t= null;\n\t\t\t$common->core_language\t\t\t= 'language';\n\t\t\t$common->core_images\t\t\t= 'picture'; // Does this work?\n\t\t\t$common->core_urls\t\t\t\t= null;\n\t\t\t$common->core_version\t\t\t= null;\n\t\t\t$common->core_ordering\t\t\t= 'ordering';\n\t\t\t$common->core_metakey\t\t\t= 'metakey';\n\t\t\t$common->core_metadesc\t\t\t= 'metadesc';\n\t\t\t$common->core_catid\t\t\t\t= 'catid';\n\t\t\t$common->core_xreference\t\t= null;\n\t\t\t$common->asset_id\t\t\t\t= null;\n\n\t\t\t$field_mappings\t= new stdClass;\n\t\t\t$field_mappings->common[]\t\t= $common;\n\t\t\t$field_mappings->special\t\t= array();\n\n\t\t\t$special\t= new stdClass;\n\t\t\t$special->dbtable\t\t= '#__sermon_sermons';\n\t\t\t$special->key\t\t\t= 'id';\n\t\t\t$special->type\t\t\t= 'Sermon';\n\t\t\t$special->prefix\t\t= 'SermonspeakerTable';\n\t\t\t$special->config\t\t= 'array()';\n\n\t\t\t$table_object\t= new stdClass;\n\t\t\t$table_object->special\t= $special;\n\n\t\t\t$contenttype['type_title']\t\t= 'Sermon';\n\t\t\t$contenttype['type_alias']\t\t= 'com_sermonspeaker.sermon';\n\t\t\t$contenttype['table']\t\t\t= json_encode($table_object);\n\t\t\t$contenttype['rules']\t\t\t= '';\n\t\t\t$contenttype['router']\t\t\t= 'SermonspeakerHelperRoute::getSermonRoute';\n\t\t\t$contenttype['field_mappings']\t= json_encode($field_mappings);\n\n\t\t\t$table->save($contenttype);\n\t\t}\n\n\t\t// Setting some default values for columns on install\n\t\tif ($type == 'install')\n\t\t{\n\t\t\t$params\t= array();\n\t\t\t$params['col']\t\t\t='\"col\":['\n\t\t\t\t\t.'\"sermons:scripture\",\"sermons:speaker\",\"sermons:date\",\"sermons:series\",\"sermons:player\"'\n\t\t\t\t\t.',\"sermon:scripture\",\"sermon:speaker\",\"sermon:date\",\"sermon:series\",\"sermon:player\",\"sermon:notes\",\"sermon:addfile\"'\n\t\t\t\t\t.',\"serie:scripture\",\"serie:speaker\",\"serie:date\",\"serie:player\"'\n\t\t\t\t\t.',\"speaker:scripture\",\"speaker:date\",\"speaker:series\",\"speaker:player\"'\n\t\t\t\t\t.',\"seriessermon:scripture\",\"seriessermon:speaker\",\"seriessermon:date\"'\n\t\t\t\t.']';\n\t\t\t$params['col_serie']\t= '\"col_serie\":['\n\t\t\t\t\t.'\"series:speaker\"'\n\t\t\t\t\t.',\"serie:description\",\"serie:speaker\"'\n\t\t\t\t\t.',\"speaker:description\"'\n\t\t\t\t\t.',\"seriessermon:description\",\"seriessermon:speaker\"'\n\t\t\t\t.']';\n\t\t\t$params['col_speaker']\t= '\"col_speaker\":[\"speakers:bio\",\"speaker:bio\",\"speaker:intro\"]';\n\n\t\t\t$db = JFactory::getDBO();\n\t\t\t$query = $db->getQuery(true);\n\t\t\t$query->update($db->quoteName('#__extensions'));\n\t\t\t$query->set($db->quoteName('params').' = '.$db->quote('{'.implode(',', $params).'}'));\n\t\t\t$query->where($db->quoteName('name').' = '.$db->quote('com_sermonspeaker'));\n\t\t\t$db->setQuery($query);\n\t\t\t$db->execute();\n\t\t}\n\n\t\t// Migrate tags on update if table exists\n\t\tif ($type == 'update')\n\t\t{\n\t\t\t$db = JFactory::getDBO();\n\t\t\t$tables\t= $db->getTableList();\n\t\t\t$prefix\t= $db->getPrefix();\n\t\t\tif (in_array($prefix.'sermon_tags', $tables))\n\t\t\t{\n\t\t\t\trequire_once(JPATH_ADMINISTRATOR.'/components/com_sermonspeaker/tables/sermon.php');\n\t\t\t\t$sermontable = new SermonspeakerTableSermon($db);\n\t\t\t\t$query\t= $db->getQuery(true);\n\t\t\t\t$query->select($db->quoteName('sermon_id'));\n\t\t\t\t$query->select('GROUP_CONCAT(CONCAT('.$db->quote('#new#').','.$db->quoteName('t.title').') SEPARATOR \\'\",\"\\') AS tagtitles');\n\t\t\t\t$query->from($db->quoteName('#__sermon_sermons_tags').' AS s');\n\t\t\t\t$query->join('LEFT', $db->quoteName('#__sermon_tags').' AS t ON '.$db->quoteName('s.tag_id').' = '.$db->quoteName('t.id'));\n\t\t\t\t$query->group($db->quoteName('sermon_id'));\n\t\t\t\t$db->setQuery($query);\n\t\t\t\t$result = $db->loadObjectList('sermon_id');\n\t\t\t\tforeach ($result as $sermon)\n\t\t\t\t{\n\t\t\t\t\t$sermontable->load($sermon->sermon_id);\n\t\t\t\t\t$sermontable->metadata = '{\"tags\":[\"'.$sermon->tagtitles.'\"]}';\n\t\t\t\t\t$sermontable->store();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$db->dropTable('#__sermon_tags');\n\t\t\t\t$db->dropTable('#__sermon_sermons_tags');\n\t\t\t\t$this->app->enqueueMessage(JText::sprintf('COM_SERMONSPEAKER_TAGS_MIGRATED', count($result)), 'notice');\n\t\t\t}\n\t\t}\n\n\t\t$this->app->enqueueMessage(JText::_('COM_SERMONSPEAKER_POSTFLIGHT'), 'warning');\n\t}", "public function get_type(): string;", "function com_load_typelib($typelib_name, $case_insensitive = true) {}", "public function type($type);", "public function list_of($type)\n {\n }", "private function getTypeDescription()\n {\n switch($this->_type)\n {\n case 'Mountain':\n return \"Mountains are peaceful places. Your ships don't do any damage here, while your tanks will do 10% less damage. Flying weapons (airplanes and helicopters) do normal damage.\" . PHP_EOL;\n case 'Water':\n return \"Water is what you drink. It's also the place where your tanks will be completely useless, but your ships will do 1000% more damage. o7\" . PHP_EOL;\n case 'Open land':\n return \"Who doesn't like the smell of grass in the morning, with a hint of blood from your enemy? Your tanks will do 1000% more damage here, while ships will do none. Good luck!\" . PHP_EOL;\n case 'Woods':\n return \"All you can do is hide, and sometimes it's the best option. Your tanks will do 40% less damage, your ships wont do any damage at all, your air vehicles will do 10% more, and your foot soldiers will do 30% more, so use them wisely. This is your chance, fella!\" . PHP_EOL;\n }\n }", "public function getDataWithTypeRegister() {}", "public abstract function getType();", "public function setType( $type )\n {\n }", "public function install_pt_fieldtypes()\n {\n // Run all the time, make sure these tables are updated.\n $field_types = array('matrix', 'playa', 'assets');\n\n require_once PATH_THIRD .'publisher/libraries/Publisher/Publisher_fieldtype.php';\n\n foreach ($field_types as $field_type)\n {\n $class_name = 'Publisher_'. $field_type;\n\n // Initialize the fieldtype class, and set necessary properties\n require_once PATH_THIRD .'publisher/libraries/Publisher/fieldtypes/'. $class_name .'.php';\n ee()->$class_name = new $class_name();\n ee()->$class_name->install();\n }\n\n ee()->session->set_flashdata('message_success', lang('publisher_install_pt_success'));\n ee()->publisher_helper_url->redirect(ee()->publisher_helper_cp->mod_link('settings'));\n }", "function __construct($type) {\n\t$this->type = $type;\n\t}", "public function get_type();", "function entity_rewrite($entity_type, &$entity)\n{\n $translate = entity_type_translate_array($entity_type);\n\n // By default, fill $entity['entity_name'] with name_field contents.\n if (isset($translate['name_field'])) { $entity['entity_name'] = $entity[$translate['name_field']]; }\n\n // By default, fill $entity['entity_shortname'] with shortname_field contents. Fallback to entity_name when field name is not set.\n if (isset($translate['shortname_field'])) { $entity['entity_shortname'] = $entity[$translate['name_field']]; } else { $entity['entity_shortname'] = $entity['entity_name']; }\n\n // By default, fill $entity['entity_descr'] with descr_field contents.\n if (isset($translate['descr_field'])) { $entity['entity_descr'] = $entity[$translate['descr_field']]; }\n\n // By default, fill $entity['entity_id'] with id_field contents.\n if (isset($translate['id_field'])) { $entity['entity_id'] = $entity[$translate['id_field']]; }\n\n switch($entity_type)\n {\n case \"bgp_peer\":\n // Special handling of name/shortname/descr for bgp_peer, since it combines multiple elements.\n\n if (Net_IPv6::checkIPv6($entity['bgpPeerRemoteAddr']))\n {\n $addr = Net_IPv6::compress($entity['bgpPeerRemoteAddr']);\n } else {\n $addr = $entity['bgpPeerRemoteAddr'];\n }\n\n $entity['entity_name'] = \"AS\".$entity['bgpPeerRemoteAs'] .\" \". $addr;\n $entity['entity_shortname'] = $addr;\n $entity['entity_descr'] = $entity['astext'];\n break;\n\n case \"sla\":\n $entity['entity_name'] = 'SLA #' . $entity['sla_index'];\n if (!empty($entity['sla_target']) && ($entity['sla_target'] != $entity['sla_tag']))\n {\n if (get_ip_version($entity['sla_target']) === 6)\n {\n $sla_target = Net_IPv6::compress($entity['sla_target'], TRUE);\n } else {\n $sla_target = $entity['sla_target'];\n }\n $entity['entity_name'] .= ' (' . $entity['sla_tag'] . ': ' . $sla_target . ')';\n } else {\n $entity['entity_name'] .= ' (' . $entity['sla_tag'] . ')';\n }\n $entity['entity_shortname'] = \"#\". $entity['sla_index'] . \" (\". $entity['sla_tag'] . \")\";\n break;\n\n case \"pseudowire\":\n $entity['entity_name'] = $entity['pwID'] . ($entity['pwDescr'] ? \" (\". $entity['pwDescr'] . \")\" : '');\n $entity['entity_shortname'] = $entity['pwID'];\n break;\n }\n}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public static function cpt_init() {\n\t\tforeach ( self::$types as $type ) {\n\t\t\tself::evo_custom_post_type( $type['type'] );\n\t\t}\n\t}", "function convert_card_type($type){\n\t\tswitch ( strtolower($type) ){\n\t\t\tcase 'visa':\n\t\t\t\t$code = 'vs';\n\t\t\t\tbreak;\n\t\t\tcase 'mastercard':\n\t\t\t\t$code = 'mc';\n\t\t\t\tbreak;\n\t\t\tcase 'amex':\n\t\t\t\t$code = 'ax';\n\t\t\t\tbreak;\n\t\t\tcase 'discover':\n\t\t\t\t$code = 'ds';\n\t\t\t\tbreak;\n\t\t\tdefault: \n\t\t\t\t$code = strtolower($type);\n\t\t}\n\t\t\n\t\treturn $code;\n\t}", "protected function getType(){\r\n return 'Aro';\r\n }", "public function type() { }", "public function getTargetType($type) {\n $retObj = array();\n switch ($type) {\n case 'Brand':\n $retObj[] = new ProductBrand($this->targetData);\n $retObj[] = new ProductBrand();\n \n return $retObj;\n break;\n case 'Condition':\n $retObj[] = new ProductCanonicalCondition($this->targetData);\n $retObj[] = new ProductCanonicalCondition();\n \n return $retObj;\n break;\n case 'Category':\n $retObj[] = new ProductBiddingCategory('BIDDING_CATEGORY_L1', $this->targetData);\n $retObj[] = new ProductBiddingCategory('BIDDING_CATEGORY_L1');\n \n return $retObj;\n break;\n case 'Channel':\n $retObj[] = new ProductChannel($this->targetData);\n $retObj[] = new ProductChannel();\n \n return $retObj;\n break;\n case 'Item ID':\n $retObj[] = new ProductOfferId($this->targetData);\n $retObj[] = new ProductOfferId();\n \n return $retObj;\n break;\n case 'Product type':\n $retObj[] = new ProductType('PRODUCT_TYPE_L1', $this->targetData);\n $retObj[] = new ProductType('PRODUCT_TYPE_L1');\n \n return $retObj;\n break;\n case 'Channel exclusivity':\n $retObj[] = new ProductChannelExclusivity($this->targetData);\n $retObj[] = new ProductChannelExclusivity();\n \n return $retObj;\n break;\n case 'CUSTOM_ATTRIBUTE_0':\n $retObj[] = new ProductCustomAttribute($type, $this->targetData);\n $retObj[] = new ProductCustomAttribute($type);\n $retObj[] = new ProductCustomAttribute();\n \n return $retObj;\n break;\n case 'CUSTOM_ATTRIBUTE_1':\n $retObj[] = new ProductCustomAttribute($type, $this->targetData);\n $retObj[] = new ProductCustomAttribute($type);\n $retObj[] = new ProductCustomAttribute();\n \n return $retObj;\n break;\n case 'CUSTOM_ATTRIBUTE_2':\n $retObj[] = new ProductCustomAttribute($type, $this->targetData);\n $retObj[] = new ProductCustomAttribute($type);\n $retObj[] = new ProductCustomAttribute();\n \n return $retObj;\n break;\n case 'CUSTOM_ATTRIBUTE_3':\n $retObj[] = new ProductCustomAttribute($type, $this->targetData);\n $retObj[] = new ProductCustomAttribute($type);\n $retObj[] = new ProductCustomAttribute();\n \n return $retObj;\n break;\n case 'CUSTOM_ATTRIBUTE_4':\n $retObj[] = new ProductCustomAttribute($type, $this->targetData);\n $retObj[] = new ProductCustomAttribute($type);\n $retObj[] = new ProductCustomAttribute();\n \n return $retObj;\n break;\n \n default:\n break;\n }\n }" ]
[ "0.60802364", "0.5843018", "0.57895386", "0.56398183", "0.56058216", "0.5594462", "0.55847037", "0.5557621", "0.55421543", "0.55088824", "0.55086017", "0.5508563", "0.5486671", "0.5486093", "0.5486093", "0.54793674", "0.5447359", "0.5447359", "0.5447359", "0.5447359", "0.5447359", "0.5447359", "0.5446007", "0.54334736", "0.5430737", "0.5425905", "0.54246664", "0.54042715", "0.5403666", "0.53915834", "0.5384253", "0.53686714", "0.53263116", "0.5320331", "0.5307546", "0.53050756", "0.5299515", "0.52876794", "0.5287032", "0.5285412", "0.52634203", "0.5261623", "0.5253752", "0.5241004", "0.52381927", "0.5223665", "0.5219977", "0.5197773", "0.51827693", "0.51727945", "0.51548386", "0.51533574", "0.514438", "0.51407075", "0.51407075", "0.51388365", "0.51310325", "0.51259583", "0.51259583", "0.51259583", "0.51259583", "0.51259583", "0.51235247", "0.5115808", "0.5107059", "0.51028574", "0.51028574", "0.5085382", "0.5084396", "0.5076124", "0.50696546", "0.5067346", "0.5060846", "0.50570875", "0.50540465", "0.5053964", "0.5045644", "0.5034676", "0.50291395", "0.5026314", "0.50237185", "0.50237185", "0.50237185", "0.50237185", "0.50237185", "0.50237185", "0.50237185", "0.50237185", "0.50237185", "0.50237185", "0.5023341", "0.5023341", "0.50233084", "0.50233084", "0.50233084", "0.5021352", "0.50207067", "0.5016018", "0.50153804", "0.5012391" ]
0.6364823
0
/ wrapper para o retorno de getCampo que permite definir sem enumerar um switch (isso pode ser mais lento?)
protected function campos($coluna, $itens) { return $itens[$coluna]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _multiOptions($switch = '', $var = null) {\n\t\t$options = array('' => 'Select...');\n\n\t\tswitch($switch) {\n\t\t\tcase 'group_id':\n\t\t\t\t$goptions \t= Core_Acl_Roles::getGroupOptions();\n\t\t\t\t$options \t= $goptions;\n\t\t\tbreak;\n\t\t}\n\n\t\treturn $options;\n\t}", "function find_cadets_get_vals($which){\n\nswitch($which) {\n case \"months\":\n $retval = array('','January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');\n break;\n case \"monthAbbrev\":\n $retval = array('','January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');\n break;\n case \"days\":\n $retval = array('', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');\n break;\n default:\n $retval = \"\";\n}\n\nreturn($retval);\n}", "abstract function &getArgumentControl();", "function ola(){\n\n$argumentos = func_get_args();// recupera todos os argumentos da variavel que é um array \nreturn $argumentos;\n}", "function valorCampo($nombreCampo){\n\t if($this->val!=\"\")\n\t\tforeach($this->val as $indice => $valor){\n\t\t\tif($nombreCampo==$indice){\n\t\t\t\treturn $valor;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public function stringTipoCargo($parametro)\n{\n\n switch ($parametro) {\n case 1:\n # code...\n return \"Vendedor\";\n break;\n\n\n case 2:\n # code...\n return \"Vendedor Externo\";\n break;\n\n\n case 3:\n # code...\n return \"Administrativo\";\n break;\n\n case 4:\n # code...\n return \"Otro\";\n break;\n \n default:\n # code...\n return \"No definido\";\n break;\n }\n\n}", "function get_input ($ary, $name, $default)\n{\n\tif (isset($ary[$name]))\n\t{\n\t\t$return_value = $ary[$name];\n\t\tsettype($return_value, gettype($default));\n\t}\n\telse\n\t{\n\t\t$return_value = $default;\n\t}\n\treturn $return_value;\n}", "function getEnumValues($table,$column, &$default) \n{\n\t\n\t$retval = NULL;\n\t\n\tglobal $dbHandle;\n\n\t/********\n\t$dbHandle = new mysqlj(MYSQL_SERVER, MYSQL_USERNAME, MYSQL_PASSWORD, MYSQL_DATABASE)\n\t\t or die(\"Could not connect to server: MYSQL_SERVER : Database MYSQL_DATABASE \" . mysqlj_error($this->dbHandle));\n **************/\n\t$queryString = \"SHOW COLUMNS FROM `\" . $table . \"` LIKE '\" . $column . \"'\";\n\t$query=mysql_query($queryString);\n\t\n\tif(mysql_num_rows($query) > 0)\n\t{\n\t\t$row=mysql_fetch_assoc($query);\n\t\t$retval=explode(\"','\",preg_replace(\"/(enum|set)\\('(.+?)'\\)/\",\"\\\\2\",$row['Type']));\n\t\t$default = $row['Default'];\t// Default is passed by reference offset 4 of the row array is the default value\n\t\t\t\t\t\t\t\t\t\t\t\t // of the enumerated field\n\t}\t\n\t\n\tmysql_freeresult($query);\n\n\t\n\treturn $retval;\n\t\t\n}", "function init($arr){\n if (checkInput($arr)){\n return getValueByString($arr);\n }else{\n return \"fill all checkboxes\";\n }\n}", "function acf_walk_select_input($choices = array(), $values = array(), $depth = 0)\n{\n}", "function getEstadoRp($fEstado, $opt){\r\nconnect();\r\n switch($opt){\r\n\tcase 0:\r\n\t $status[0] = 'PE'; $d_status[0] = 'Pendiente';\r\n\t\t $status[1] = 'PA'; $d_status[1] = 'Pagado';\r\n\t\t $cant = 2;\r\n\t\t for($i=0;$i<$cant;$i++){\r\n\t\t if($status[$i]==$fEstado) echo\"<option value='$status[$i]' selected>$d_status[$i]</option>\";\r\n\t\t\telse echo\"<option value='$status[$i]'> $d_status[$i]</option>\";\r\n\t\t }\r\n }\r\n}", "function getCode($opts, $codes)\n{\n if(isset($opts['2']))\n {\n $method = 'getByAlpha2';\n }\n elseif(isset($opts['3']))\n {\n $method = 'getByAlpha3';\n }\n elseif(isset($opts['n']))\n {\n $method = 'getByNumeric';\n }\n else\n {\n $method = 'getByCode';\n }\n\n echo \"$method():\" . PHP_EOL;\n printArray($codes->$method($opts['c']));\n}", "function CampoEnum($tabla,$campo,$Comentario,$valor=\"\"){\n\t\t$sql = \"DESCRIBE $tabla $campo\";\n\t\t$result = mysql_query($sql);\n\t\techo \"\\t<tr><td>$Comentario</td>\\n\";\n\t\twhile ($ligne = mysql_fetch_array($result)) {\n\t\t\textract($ligne, EXTR_PREFIX_ALL, \"IN\");\n\t\t\tif (substr($IN_Type,0,4)=='enum'){\n\t\t\t\t$liste = substr($IN_Type,5,strlen($IN_Type));\n\t\t\t\t$liste = substr($liste,0,(strlen($liste)-2));\n\t\t\t\t$enums = explode(',',$liste);\n\t\t\t\tif (sizeof($enums)>0){\n\t\t\t\t\t\n\t\t\t\t\techo \"\\t<td><select name='$campo' >\\n\";\n\t\t\t\t\tfor ($i=0; $i<sizeof($enums);$i++){\n\t\t\t\t\t\t$elem = trim(strtr($enums[$i],\"'\",\" \"));\n\t\t\t\t\t\tif(trim($elem)==trim($valor))$seleccionar=\"selected\";\n\t\t\t\t\t \telse $seleccionar=\"\";\n\t\t\t\t\t\techo \"\\t\\t<option $seleccionar value='\".$elem.\"'>\".$elem.\"</option>\\n\";\n\t\t\t\t\t}\n\t\t\t\t\techo \"\\t</select>\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\techo \"\\t</td></tr>\\n\";\n\t}", "function obtenerParametros() {\n\t\t$cuerpo = file_get_contents('php://input');\n\t\tif (isset($cuerpo) == false && $cuerpo !== \"\") {\n\t\t\treturn '';\n\t\t}\t\t\t\n\t\tswitch($_SERVER['REQUEST_METHOD']) {\n\t\t\tcase 'GET':\t\n\t\t\t\t$esLlave = true;\n\t\t\t\t$resultado = array();\n\t\t\t\tfor ($i = 2; $i < sizeof($this->_parametros); $i++) {\n\t\t\t\t\tif ($esLlave) {\n\t\t\t\t\t\t$llave = $this->_parametros[$i];\n\t\t\t\t\t\t$esLlave = !$esLlave;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$resultado[$llave] = $this->_parametros[$i];\n\t\t\t\t\t\t$esLlave = !$esLlave;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t\t$resultado = (object)$resultado;\n\t\t\t\treturn $resultado;\n\t\t\t\tbreak;\n\t\t\tcase 'POST':\n\t\t\tcase 'PUT':\n\t\t\tcase 'DELETE':\n\t\t\t\treturn json_decode($cuerpo);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn '';\n\t\t\t\tbreak;\n\t\t}\n\t}", "function loadSelectValores($tabla, $codigo, $opt) {\r\n\tswitch ($tabla) {\r\n\t\tcase \"ESTADO\":\r\n\t\t\t$c[0] = \"A\"; $v[0] = \"Activo\";\r\n\t\t\t$c[1] = \"I\"; $v[1] = \"Inactivo\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-CONTROL-CIERRE\":\r\n\t\t\t$c[0] = \"A\"; $v[0] = \"Abierto\";\r\n\t\t\t$c[1] = \"C\"; $v[1] = \"Cerrado\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"TIPO-REGISTRO\":\r\n\t\t\t$c[0] = \"AB\"; $v[0] = \"Periodo Abierto\";\r\n\t\t\t$c[1] = \"AC\"; $v[1] = \"Periodo Actual\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-VOUCHER\":\r\n\t\t\t$c[0] = \"AB\"; $v[0] = \"Abierto\";\r\n\t\t\t$c[1] = \"AP\"; $v[1] = \"Aprobado\";\r\n\t\t\t$c[2] = \"MA\"; $v[2] = \"Mayorizado\";\r\n\t\t\t$c[3] = \"AN\"; $v[3] = \"Anulado\";\r\n\t\t\t$c[4] = \"RE\"; $v[4] = \"Rechazado\";\r\n\t\t\tbreak;\r\n\t}\r\n\t\r\n\t$i = 0;\r\n\tswitch ($opt) {\r\n\t\tcase 0:\r\n\t\t\tforeach ($c as $cod) {\r\n\t\t\t\tif ($cod == $codigo) echo \"<option value='\".$cod.\"' selected>\".($v[$i]).\"</option>\";\r\n\t\t\t\telse echo \"<option value='\".$cod.\"'>\".($v[$i]).\"</option>\";\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase 1:\r\n\t\t\tforeach ($c as $cod) {\r\n\t\t\t\tif ($cod == $codigo) echo \"<option value='\".$cod.\"' selected>\".($v[$i]).\"</option>\";\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t}\r\n}", "function davajparame() {\n foreach (func_get_args() as $key => $value) {\n if(is_array($value)){\n print_r(func_get_arg($key));\n echo \" je tipa \". gettype($value).\" <br>\";\n }\n else{\n echo func_get_arg($key).\" je tipa \". gettype($value).\" <br>\"; \n }\n }\n}", "function inputChecker($input){\n \n // il valore che deve essere restituito\n $ret = true;\n \n foreach($input as $key => $value){\n \n switch ($key){\n case 'file': // echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break; \n case 'id_cinguettio': // echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n $ret = idFormat($value);// echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'utente_seguace': \n case 'utente_seguito':\n case 'utente_segnalato':\n case 'utente_giudicato': \n case 'utente_luogo': \n case 'email_utente':\n $ret = emailFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\"; \n break;\n case 'password_conferma': \n case 'password':\n $ret = pwdFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'nickname':\n $ret = nickFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'nome':\n $ret = nameFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break; \n case 'cognome':\n $ret = nameFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break; \n case 'sesso':\n $ret = sexFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break; \n case 'giorno':\n $ret = dayFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'mese':\n $ret = monthFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'anno':\n $ret = yearFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'nazione_nascita':\n case 'regione_nascita':\n case 'citta_residenza':\n $ret = placeFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'hobby_1':\n $ret = hobbyFormat($value, VALID_HOBBY_1_FORMAT); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'hobby_2':\n $ret = hobbyFormat($value, VALID_HOBBY_2_FORMAT); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'hobby_3':\n $ret = hobbyFormat($value, VALID_HOBBY_3_FORMAT); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break; \n case 'hobby_4':\n $ret = hobbyFormat($value, VALID_HOBBY_4_FORMAT); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'hobby_5':\n $ret = hobbyFormat($value, VALID_HOBBY_5_FORMAT); // echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'hobby_6':\n $ret = hobbyFormat($value, VALID_HOBBY_6_FORMAT); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'hobby_7':\n $ret = hobbyFormat($value, VALID_HOBBY_7_FORMAT); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'hobby_8':\n $ret = hobbyFormat($value, VALID_HOBBY_8_FORMAT); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'hobby_9':\n $ret = hobbyFormat($value, VALID_HOBBY_9_FORMAT); // echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'hobby_10':\n $ret = hobbyFormat($value, VALID_HOBBY_10_FORMAT); // echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break; \n case 'commento':\n case 'messaggio':\n $ret = textFormat($value); // echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'descrizione_foto':\n $ret = descrFormat($value);// echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'gradi_lat':\n $ret = gradiLatFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'gradi_lng': \n $ret = gradiLngFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'minuti_lat':\n case 'minuti_lng': \n $ret = secMinFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break; \n case 'secondi_lat':\n case 'secondi_lng': \n $ret = secMinFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break; \n case 'direzione_lat':\n $ret = direzioneLatFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n case 'direzione_lng':\n $ret = direzioneLngFormat($value); //echo '('. $key .')' . $value . ': ' .$ret .\"\\n\";\n break;\n default:\n return false;\n } \n \n if($ret == false){\n break;\n }\n } \n return $ret;\n}", "public function construct2(){\n // break;\n // case 2 : self::getFName();\n // break;\n // case 3 : self::setLName($last);\n // break;\n // case 4 : self::getLName();\n // break;\n // case 5 : self::setAddress($add);\n // break;\n // case 6 : self::getAddress();\n // break; \n // case 7 : self::setCity($cName);\n // break;\n // case 8 : self::getCity();\n // break;\n // case 9 : self::setState($stateN);\n // break;\n // case 10 : self::getState();\n // break; \n // case 9 : self::setZip($code);\n // break;\n // case 10 : self::getZip();\n // break; \n // case 9 : self::setPhone($no);\n // break;\n // case 10 : self::getPhone();\n // break; \n }", "function serendipity_guessInput($type, $name, $value='', $default='') {\n $data = array();\n $curOptions = array();\n\n switch ($type) {\n case 'bool':\n $value = serendipity_get_bool($value);\n if ($value === null) {\n $value = $default;\n }\n break;\n\n case 'multilist':\n $default = (array)$default;\n $value = (array)$value;\n foreach ($default as $k => $v) {\n $selected = false;\n foreach($value AS $vk => $vv) {\n if ($vv['confkey'] == $v['confkey']) {\n $selected = true;\n }\n }\n $curOptions[$name][$k]['selected'] = $selected;\n }\n break;\n\n case 'list':\n $default = (array)$default;\n foreach ($default as $k => $v) {\n $selected = ($k == $value);\n if (empty($value) && ((string)$k === 'false' || (string)$k === null)) {\n $selected = true;\n }\n $curOptions[$name][$k]['selected'] = $selected;\n }\n break;\n }\n\n $data['type'] = $type;\n $data['name'] = $name;\n $data['value'] = $value;\n $data['default'] = $default;\n $data['selected'] = $curOptions;\n\n return serendipity_smarty_show('admin/guess_input.tpl', $data);\n}", "function printValores($tabla, $codigo) {\r\n\tswitch ($tabla) {\r\n\t\tcase \"ESTADO\":\r\n\t\t\t$c[0] = \"A\"; $v[0] = \"Activo\";\r\n\t\t\t$c[1] = \"I\"; $v[1] = \"Inactivo\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-CONTROL-CIERRE\":\r\n\t\t\t$c[0] = \"A\"; $v[0] = \"Abierto\";\r\n\t\t\t$c[1] = \"C\"; $v[1] = \"Cerrado\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"TIPO-REGISTRO\":\r\n\t\t\t$c[0] = \"AB\"; $v[0] = \"Periodo Abierto\";\r\n\t\t\t$c[1] = \"AC\"; $v[1] = \"Periodo Actual\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-VOUCHER\":\r\n\t\t\t$c[0] = \"AB\"; $v[0] = \"Abierto\";\r\n\t\t\t$c[1] = \"AP\"; $v[1] = \"Aprobado\";\r\n\t\t\t$c[2] = \"MA\"; $v[2] = \"Mayorizado\";\r\n\t\t\t$c[3] = \"AN\"; $v[3] = \"Anulado\";\r\n\t\t\t$c[4] = \"RE\"; $v[4] = \"Rechazado\";\r\n\t\t\tbreak;\r\n\t}\r\n\t\r\n\t$i=0;\r\n\tforeach ($c as $cod) {\r\n\t\tif ($cod == $codigo) return ($v[$i]);\r\n\t\t$i++;\r\n\t}\r\n}", "function getCampo($campo)\n{\n if (!empty($_POST[$campo])) {\n return test_input($_POST[$campo]);\n }\n return \"\";\n}", "function broj()\n {\n $parametar = func_get_args();\n foreach ($parametar as $broj) {\n if (is_int($broj)) {\n echo $broj.' je broj<br>';\n } else {\n echo $broj.' je string <br>';\n }\n }\n }", "function get_nombre_dia($dia)\n{\n $nombre = '';\n\n switch ($dia) {\n case '0':\n $nombre = 'Domingo';\n break;\n case '1':\n $nombre = 'Lunes';\n break;\n case '2':\n $nombre = 'Martes';\n break;\n case '3':\n $nombre = 'Miércoles';\n break;\n case '4':\n $nombre = 'Jueves';\n break;\n case '5':\n $nombre = 'Viernes';\n break;\n case '6':\n $nombre = 'Sábado';\n break; \n default:\n $nombre = 'Día no existe';\n break;\n }\n\n return $nombre;\n}", "function dataMes($mes){\n switch($mes){\n case 1:\n $mes = 'Janeiro';\n break;\n case 2:\n $mes = 'Fevereiro';\n break;\n case 3:\n $mes = 'Março';\n break;\n case 4:\n $mes = 'Abril';\n break;\n case 5:\n $mes = 'Maio';\n break;\n case 6:\n $mes = 'Junho';\n break;\n case 7:\n $mes = 'Julho';\n break;\n case 8:\n $mes = 'Agosto';\n break;\n case 9:\n $mes = 'Setembro';\n break;\n case 10:\n $mes = 'Outubro';\n break;\n case 11:\n $mes = 'Novembro';\n break;\n case 12:\n $mes = 'Dezembro';\n break;\n }\n\n return $mes;\n}", "public final function & switchType () {\n \t$this->varContainer = !($this->varContainer);\n // Return to chain;\n return $this->returnToChain ();\n }", "function loadSelectValores($tabla, $codigo, $opt) {\r\n\tswitch ($tabla) {\r\n\t\tcase \"ORDENAR-PROCESOS\":\r\n\t\t\t$c[0] = \"p.CodProceso\"; $v[0] = \"C&oacute;digo\";\r\n\t\t\t$c[1] = \"p.Descripcion\"; $v[1] = \"Descripci&oacute;n\";\r\n\t\t\t$c[2] = \"p.Estado\"; $v[2] = \"Estado\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ORDENAR-FASES\":\r\n\t\t\t$c[0] = \"f.CodFase\"; $v[0] = \"C&oacute;digo\";\r\n\t\t\t$c[1] = \"f.Descripcion\"; $v[1] = \"Descripci&oacute;n\";\r\n\t\t\t$c[2] = \"f.Estado\"; $v[2] = \"Estado\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ORDENAR-TIPOACTUACION\":\r\n\t\t\t$c[0] = \"taf.CodTipoActuacion\"; $v[0] = \"C&oacute;digo\";\r\n\t\t\t$c[1] = \"taf.Descripcion\"; $v[1] = \"Descripci&oacute;n\";\r\n\t\t\t$c[2] = \"taf.Estado\"; $v[2] = \"Estado\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-ACTUACION-DETALLE\":\r\n\t\t\t$c[0] = \"PE\"; $v[0] = \"Pendiente\";\r\n\t\t\t$c[1] = \"EJ\"; $v[1] = \"En Ejecución\";\r\n\t\t\t$c[2] = \"AN\"; $v[2] = \"Anulada\";\r\n\t\t\t$c[3] = \"TE\"; $v[3] = \"Terminada\";\r\n\t\t\t$c[4] = \"CE\"; $v[4] = \"Cerrada\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ORDENAR-ACTUACION-DETALLE\":\r\n\t\t\t$c[0] = \"a.CodFase, af.Anio, af.Secuencia, af.CodActuacion\"; $v[0] = \"C&oacute;digo\";\r\n\t\t\t$c[1] = \"oe.Organismo, de.Dependencia\"; $v[1] = \"Ente Externo\";\r\n\t\t\t$c[2] = \"a.Descripcion\"; $v[2] = \"Actividad\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-ACTUACION-PRORROGA\":\r\n\t\t\t$c[0] = \"PR\"; $v[0] = \"En Preparación\";\r\n\t\t\t$c[1] = \"RV\"; $v[1] = \"Revisada\";\r\n\t\t\t$c[2] = \"AP\"; $v[2] = \"Aprobada\";\r\n\t\t\t$c[3] = \"AN\"; $v[3] = \"Anulada\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ORDENAR-ACTUACION-PRORROGA\":\r\n\t\t\t$c[0] = \"p.CodProrroga\"; $v[0] = \"Prorroga\";\r\n\t\t\t$c[1] = \"p.Motivo\"; $v[1] = \"Motivo\";\r\n\t\t\t$c[2] = \"a.Descripcion\"; $v[2] = \"Actividad\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ORDENAR-VALORACION-DETALLE\":\r\n\t\t\t$c[0] = \"a.CodFase, vj.Anio, vj.Secuencia, vj.CodValJur\"; $v[0] = \"C&oacute;digo\";\r\n\t\t\t$c[1] = \"oe.Organismo, de.Dependencia\"; $v[1] = \"Ente Externo\";\r\n\t\t\t$c[2] = \"a.Descripcion\"; $v[2] = \"Actividad\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ORDENAR-POTESTAD-DETALLE\":\r\n\t\t\t$c[0] = \"a.CodFase, vj.Anio, vj.Secuencia, vj.CodPotestad\"; $v[0] = \"C&oacute;digo\";\r\n\t\t\t$c[1] = \"oe.Organismo, de.Dependencia\"; $v[1] = \"Ente Externo\";\r\n\t\t\t$c[2] = \"a.Descripcion\"; $v[2] = \"Actividad\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ORDENAR-DETERMINACION-DETALLE\":\r\n\t\t\t$c[0] = \"a.CodFase, vj.Anio, vj.Secuencia, vj.CodDeterminacion\"; $v[0] = \"C&oacute;digo\";\r\n\t\t\t$c[1] = \"oe.Organismo, de.Dependencia\"; $v[1] = \"Ente Externo\";\r\n\t\t\t$c[2] = \"a.Descripcion\"; $v[2] = \"Actividad\";\r\n\t\t\tbreak;\r\n\t}\r\n\t\r\n\t$i = 0;\r\n\tswitch ($opt) {\r\n\t\tcase 0:\r\n\t\t\tforeach ($c as $cod) {\r\n\t\t\t\tif ($cod == $codigo) echo \"<option value='\".$cod.\"' selected>\".$v[$i].\"</option>\";\r\n\t\t\t\telse echo \"<option value='\".$cod.\"'>\".$v[$i].\"</option>\";\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase 1:\r\n\t\t\tforeach ($c as $cod) {\r\n\t\t\t\tif ($cod == $codigo) echo \"<option value='\".$cod.\"' selected>\".$v[$i].\"</option>\";\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t}\r\n}", "public function seleccionar($default=\"\",$value=''){\n $nombre_defecto = $default==\"\"?\":: Seleccione ::\":$default;\n $arreglo = array($value=>$nombre_defecto);\n foreach($this->listar() as $indice=>$valor)\n {\n $indice1 = $valor->cod_argumento;\n $valor1 = $valor->Des_larga;\n $arreglo[$indice1] = $valor1;\n }\n return $arreglo;\n }", "public function getAction ($switch = TRUE);", "public function datosCliente($idCliente, $vector)\n{\n conectar::conexiones();\n $sql=\"SELECT * FROM clientes WHERE id='\".intval($idCliente).\"'\";\n $query=mysql_query($sql);\n $rs=mysql_fetch_array($query);\n switch ($vector) \n {\n case \"nombresApellidos\":\n # code...\n return $rs[\"nombresApellidos\"];\n break;\n\n\n case \"identificacion\":\n # code...\n return $rs[\"identificacion\"];\n break;\n\n case \"telefonos\":\n # code...\n return $rs[\"telefonos\"];\n break;\n\n\n case \"email\":\n # code...\n return $rs[\"email\"];\n break;\n\n\n \n\n }\n conectar::desconectar();\n\n}", "function get_param($key, $default=false){\n if (is_array($key)){\n foreach ($key as $onekey){\n $ret = get_param($onekey);\n if ($ret)\n return $ret;\n }\n }else{ \n \n if ($_GET)\n if (array_key_exists($key,$_GET))\n return $_GET[$key];\n if ($_POST)\n if (array_key_exists($key,$_POST))\n return $_POST[$key]; \n }\n \n return $default;\n}", "function InputSelectFromArray($List,$VariableName,$default,$autres='')\t{\n\t\t// gestion readonly\n\t\tif($_SESSION[\"readonly\"]==\"true\")\n\t\t\t$cache=\"disabled\";\n\n\t\t// check taille \n\t\tif ($taille > 1)\n\t\t\t$_taille=\"WIDTH='$taille' STYLE='width: \".$taille.\"px'\";\n\t\t\n\t \t$res= \"<select name='\".$VariableName.\"' class=form \".$autres.\">\";\n\t \tforeach($List as $i=>$val){\n\t \t\tif ($default==$i)\n\t\t \t\t$res.= \"<option value='$i' selected>\".$val.\"</option>\";\n\t\t \telse\n\t\t \t\t$res.= \"<option value='$i' >\".$val.\"</option>\";\n\t\t}\n\t\t$res.= \"</select>\";\n\t\treturn $res;\n\t}", "function printValores($tabla, $codigo) {\r\n\tswitch ($tabla) {\r\n\t\tcase \"ESTADO-ACTUACION-DETALLE\":\r\n\t\t\t$c[0] = \"PE\"; $v[0] = \"Pendiente\";\r\n\t\t\t$c[1] = \"EJ\"; $v[1] = \"En Ejecución\";\r\n\t\t\t$c[2] = \"AN\"; $v[2] = \"Anulada\";\r\n\t\t\t$c[3] = \"TE\"; $v[3] = \"Terminada\";\r\n\t\t\t$c[4] = \"CE\"; $v[4] = \"Cerrada\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-ACTUACION-PRORROGA\":\r\n\t\t\t$c[0] = \"PR\"; $v[0] = \"En Preparación\";\r\n\t\t\t$c[1] = \"RV\"; $v[1] = \"Revisada\";\r\n\t\t\t$c[2] = \"AP\"; $v[2] = \"Aprobada\";\r\n\t\t\t$c[3] = \"AN\"; $v[3] = \"Anulada\";\r\n\t\t\tbreak;\r\n\t}\r\n\t\r\n\t$i=0;\r\n\tforeach ($c as $cod) {\r\n\t\tif ($cod == $codigo) return $v[$i];\r\n\t\t$i++;\r\n\t}\r\n}", "function get_data_request_options()\r\n{\r\n\t//kijk wat het abstractie niveau is van de huidige opties\r\n\t$current_abstraction_level_query = 'select option_type from Requestable_data where option_name == \":current_selected_option\"';\r\n\t$current_abstraction_level = execute_sql_extract_data($current_abstraction_level_query);\r\n\t\r\n\t//haal de opties maar op uit de DB\r\n\t$requestable_data_descriptions = 'select option_name from Requestable_data where option_type = ' . $current_abstraction_level;\r\n\texecute_sql_extract_data($requestable_data_descriptions);\r\n}", "public function stringTipoContacto($parametro)\n{\n\n if (is_numeric($parametro)==TRUE) {\n # code...\n if ($parametro==0) {\n # code...\n return 'Cliente';\n }\n elseif ($parametro==1) {\n # code...\n return 'Provedor';\n }\n\n elseif ($parametro==2) {\n # code...\n return 'Cliente y Provedor';\n }\n }\n else\n {\n return \"Error En Parámetro :/\";\n }\n}", "function select01($nombreSelect,$arrayOpciones){\n\t$i = '0';\n\t$arrayResultado[$i++] = \"<select name=\\\"$nombreSelect\\\">\";\n\tforeach( $arrayOpciones as $value ){\n\t\tif( $i == '1' ){\n\t\t\t$arrayResultado[$i++] = \"<option value=\\\"\".$value.\"\\\" selected=\\\"selected\\\">\".$value.\"</option>\";\n\t\t} else {\n\t\t\t$arrayResultado[$i++] = \"<option value=\\\"\".$value.\"\\\">\".$value.\"</option>\";\n\t\t}\n\t}\n\t$arrayResultado[$i++] = \"</select>\";\n\treturn $arrayResultado;\n/*\nforeach( $arrayResultado as $value){\n\techo $value.\"<br />\\n\";\n}\n*/\n}", "function a(){ \n return $arg_list = func_get_args(); \n \n }", "function CategorySelect($data)\n{\n switch ($data['Type']) {\n case 'Read':\n $response = ReadSelect($data);\n break;\n case 'Update':\n $response = UpdateSelect($data);\n break;\n case 'Delete':\n $response = DeleteSelect($data);\n break;\n }\n\n return $response;\n}", "function chooseFile($gender,$education,$height,$age){\n $result[0]=gender($gender);\n $result[1]=education($education);\n $result[2]=height($height);\n $result[3]=age($age);\n return $result;\n}", "public function __construct($opt = \"\")\r\t\t{\r\t\t\tif($opt == \"POST\"){\r\t\t\t\tforeach($_POST as $fldname => $value)\r\t\t\t\t{\r\t\t\t\t\t$this->params[$fldname] = $value;\r\t\t\t\t}\r\t\t\t\t\r\t\t\t\treturn $_POST;\r\t\t\t\t\r\t\t\t}else if($opt == \"GET\"){\r\t\t\t\tforeach($_GET as $fldname => $value)\r\t\t\t\t{\r\t\t\t\t\t$this->params[$fldname] = $value;\r\t\t\t\t}\r\t\t\t\treturn $_GET;\r\t\t\t}else if($opt == \"REQUEST\"){\r\t\t\t\t\r\t\t\t\tforeach($_REQUEST as $fldname => $value)\r\t\t\t\t{\r\t\t\t\t\t$this->params[$fldname] = $value;\r\t\t\t\t}\r\t\t\t\treturn $_REQUEST;\r\t\t\t\t\r\t\t\t}else if($opt == \"FILES\"){\r\t\t\t\tforeach($_FILES as $fldname => $value)\r\t\t\t\t{\r\t\t\t\t\t$this->params[$fldname] = $value;\r\t\t\t\t}\r\t\t\t\treturn $_FILES;\r\t\t\t}else if($opt == \"SERVER\"){\r\t\t\t\tforeach($_SERVER as $fldname => $value)\r\t\t\t\t{\r\t\t\t\t\t$this->params[$fldname] = $value;\r\t\t\t\t}\r\t\t\t\t\r\t\t\t\treturn $_SERVER;\r\t\t\t}\r\t\t}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n\n\n\n}", "protected function _getInput($args)\n {\n extract($args);\n switch($type) {\n case 'checkbox-switch':\n return $this->switch($fieldName, $options);\n// case 'date':\n// return $this->date();\n default:\n return parent::_getInput($args);\n }\n }", "public function gets($what, $param = NULL){\n $result = '';\n \n switch ($what) {\n \n case 'session':\n \n $result = $this->pay_mdl->gets('session');\n \n break;\n \n \n \n case 'pay_merchant':\n \n $result = $this->pay_mdl->gets('merchant');\n break;\n \n \n \n case 'pay_head':\n \n $result = $this->pay_mdl->gets('pay_head');\n break;\n \n \n \n case 'college':\n \n $result = $this->pay_mdl->gets('college');\n break;\n \n \n \n case 'programmes':\n \n $result = $this->pay_mdl->gets('programmes');\n break;\n \n \n case 'departments':\n \n $result = $this->pay_mdl->gets('departments');\n break;\n \n \n \n case 'pay_schedule':\n \n if(isset($param) && $param != NULL){\n\n $result = $this->pay_mdl->gets('pay_schedule', $param);\n \n }else{\n \n $result = $this->pay_mdl->gets('pay_schedule');\n }\n \n break;\n \n \n case 'pay_instalment':\n \n $result = $this->pay_mdl->gets('pay_instalments');\n break;\n \n \n case 'pay_exceptions':\n \n $result = $this->pay_mdl->gets('pay_exception');\n break;\n \n \n case 'student_details':\n \n $result = $this->pay_mdl->gets('student_details', $this->main->get('user_type_id'));\n \n break;\n \n \n// case 'what_to_pay':\n// if(isset($param) && is_array($param)){\n// \n// $result = $this->pay_mdl->gets('what_to_pay', $param );\n// }\n// \n// break;\n// \n\n \n// case 'new_schedule':\n// \n// if(isset($param) && is_array($param)){\n// \n// $result = $this->pay_mdl->gets('new_schedule', $param);\n// }\n// break;\n// \n \n// case 'my_pay_exception':\n// \n// if(isset($param) && is_array($param)){\n// \n// $result = $this->pay_mdl->gets('my_pay_exception', $param );\n// }\n// \n// break;\n \n \n// case 'my_pay_history': \n// \n// if(isset($param) && is_array($param)){\n// \n// $result = $this->pay_mdl->gets('my_pay_history', $param );\n// }\n// \n// break;\n// \n \n// case 'my_schedule':\n// \n// $result = $this->pay_mdl->gets('my_schedule');\n// break;\n \n default:\n break;\n }\n \n return $result;\n }", "function comboNiveles() {\n $opciones = \"\";\n $nvS = new Servicio();\n $niveles = $nvS->listarNivel(); //RETORNA UN ARREGLO\n\n while ($nivel = array_shift($niveles)) {\n $opciones .=\" <option value='\" . $nivel->getId_nivel() . \"'>\" . $nivel->getNombre() . \"</option>\";\n }\n return $opciones;\n}", "function select02($nombreSelect,$arrayOpciones){\n\t$i = '0';\n\t$arrayResultado[$i++] = \"<select name=\\\"$nombreSelect\\\">\";\n\tforeach( $arrayOpciones as $key => $value ){\n\t\tif( $i == '1' ){\n\t\t\t$arrayResultado[$i++] = \"<option value=\\\"\".$key.\"\\\" selected=\\\"selected\\\">\".$value.\"</option>\";\n\t\t} else {\n\t\t\t$arrayResultado[$i++] = \"<option value=\\\"\".$key.\"\\\">\".$value.\"</option>\";\n\t\t}\n\t}\n\t$arrayResultado[$i++] = \"</select>\";\n\treturn $arrayResultado;\n/*\nforeach( $arrayResultado as $value){\n\techo $value.\"<br />\\n\";\n}\n*/\n}", "public function get(...$param){\n \n $count = count($param);\n if ($count === 0)\n throw new \\Exception(\"need set one or two params\", 0);\n \n $name = $param[0]; \n\n if ( !isset($this->param[$name]) ){\n if ($count === 1) \n throw new \\Exception(\"param [$name] is not exists\", 0);\n return $param[1];\n };\n\n return $this->param[$name];\n }", "function db_enum($_table,$_field,$_type=\"select\",$_pick=null,$_isnull=null,$_style=NULL) {\n\t$_render = \"\";\n\t$_result = mysql_query(\"describe $_table $_field\");\n $_row = mysql_fetch_array($_result); \n $_value = $_row[\"Type\"];\n\tmysql_free_result($_result);\n preg_match_all(\"/'([^']+)'/\", $_value, $_matches, PREG_SET_ORDER); \n\t$_count = count($_matches);\n\t\t\n\tif ($_type == \"array\") {\t\n\t\tforeach($_matches as $_v) {\t\n\t\t\t$_render[$_v[1]] = $_v[1];\t\t\t\n\t\t\t}\n\t\t} \n\telseif ($_type == \"checkbox\") {\n\t\tforeach($_matches as $_v) {\t\n\t\t\t$_render .= '<input type=\"checkbox\" name=\"'.$_field.'[]\" value=\"'.$_v[1].'\" id=\"'.$_field.'_'.$_v[1].'\"';\n\t\t\tif ($_v[1] == $_pick) { $_render .= ' checked'; }\t\t\n\t\t\t$_render .= ' /><label for=\"'.$_field.'_'.$_v[1].'\" class=\"checkbox\">'.$_v[1].'</label>\n\t\t\t'; \n\t\t\t\n\t\t\t}\n\t\t} \n\telseif ($_type == \"radio\") {\n\t\tforeach($_matches as $_v) {\t\n\t\t\t$_render .= '<input type=\"radio\" name=\"'.$_field.'\" value=\"'.$_v[1].'\" id=\"'.$_field.'_'.$_v[1].'\"';\n\t\t\tif ($_v[1] == $_pick) { $_render .= ' checked'; }\n\t\t\t$_render .= ' /><label for=\"'.$_field.'_'.$_v[1].'\" class=\"radio\">'.$_v[1].' </label>\n\t\t\t';\t\t\t\n\t\t\t}\n\t\t} \n\telseif ($_type == \"select\") {\n\t\t// insert a blank option (or allow blank option is no option is previously select)\n\t\tif ($_isnull && !isset($_pick)) {\n\t\t\t$_render .= '<option value=\"\"></option>\n\t\t\t';\n\t\t\t}\n\t\tforeach($_matches as $_v) {\t\n\t\t\t$_render .= '<option value=\"'.$_v[1].'\"';\n\t\t\tif ($_v[1] == $_pick) { $_render .= ' selected'; }\n\t\t\t$_render .= '>'.$_v[1].'</option>\n\t\t\t'; \n\t\t\t}\n\t\t$_render = '<select name=\"'.$_field.'\" '.$_style.'>'.$_render.'</select>\n\t\t';\n\t\t}\n\t\n\treturn $_render;\n\tunset($_table,$_where,$_query,$_result,$_row,$_v,$_value,$_matches,$_render,$_count,$_isnull);\n\t}", "function printLetter($params)\n{\n extract($params);\n if ($value == \"1\") {\n $form = \"Interview\";\n } elseif ($value == \"2\") {\n $form = \"Driver\";\n } else {\n $form = \"\";\n }\n return $form;\n}", "public function defineWorkflowParameter(){\r\n\r\n// /* start define hod */\r\n// include_once \"../hr/class/Employee.php\";\r\n// $emp = new Employee();\r\n//\r\n\r\n switch ($this->window_workflow){\r\n\r\n CASE \"LEAVE\":\r\n include_once \"../hr/class/Leave.php\";\r\n $lev = new Leave();\r\n $lev->leave_id=$this->primarykey_value;\r\n $lev->person_id=$this->person_id;\r\n $lev->window_workflow= $this->window_workflow;\r\n return $lev->defineWorkflowParameter();\r\n break;\r\n\r\n CASE \"GENERCLAIM\":\r\n\r\n include_once \"../hr/class/Generalclaim.php\";\r\n $gen = new Generalclaim();\r\n $gen->generalclaim_id=$this->primarykey_value;\r\n $gen->person_id=$this->person_id;\r\n $gen->window_workflow= $this->window_workflow;\r\n return $gen->defineWorkflowParameter();\r\n break;\r\n\r\n CASE \"MEDICCLAIM\":\r\n\r\n include_once \"../hr/class/Medicalclaim.php\";\r\n $me = new Medicalclaim();\r\n $me->medicalclaim_id=$this->primarykey_value;\r\n $me->person_id=$this->person_id;\r\n $me->window_workflow= $this->window_workflow;\r\n return $me->defineWorkflowParameter();\r\n break;\r\n\r\n CASE \"OVERCLAIM\":\r\n\r\n include_once \"../hr/class/Overtimeclaim.php\";\r\n\r\n $ov = new Overtimeclaim();\r\n\r\n $ov->overtimeclaim_id=$this->primarykey_value;\r\n $ov->person_id=$this->person_id;\r\n $ov->window_workflow= $this->window_workflow;\r\n\r\n return $ov->defineWorkflowParameter();\r\n break;\r\n\r\n CASE \"TRAVECLAIM\":\r\n\r\n include_once \"../hr/class/Travellingclaim.php\";\r\n $tr = new Travellingclaim();\r\n $tr->travellingclaim_id=$this->primarykey_value;\r\n $tr->person_id=$this->person_id;\r\n $tr->window_workflow= $this->window_workflow;\r\n return $tr->defineWorkflowParameter();\r\n break;\r\n \r\n CASE \"LEAVEADJ\":\r\n\r\n include_once \"../hr/class/Leaveadjustment.php\";\r\n $led = new Leaveadjustment();\r\n $led->leaveadjustment_id=$this->primarykey_value;\r\n $led->person_id=$this->person_id;\r\n $led->window_workflow= $this->window_workflow;\r\n return $led->defineWorkflowParameter();\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n\r\n }", "abstract function &getArgumentAltControl();", "function InputOptSelect($Listes,$VariableName,$default,$taille=\"\",$autres=\"\")\t{\n\t\t\tif($_SESSION[\"readonly\"]==\"true\")\n\t\t\t\t$cache=\"disabled\";\n\t\t\tif ($taille > 1)\n\t\t\t\t$_taille=\"WIDTH='$taille' STYLE='width: \".$taille.\"px'\";\n\t\t\t\n\t\t \t$res= \"<select $_taille name=\".$VariableName.\" id=\".$VariableName.\" $autres $cache>\";\n\t\t \t\n\t\t \tif(count($Listes) > 1 ){\n\t\t\t\t$res.= \"<option value='' selected>Selectionnez</option>\";\n\t\t\t}\n\t\t\t// boucle sur chaque OPT group\n\t\t\t$compteur=0;\n\t\t\tforeach ($Listes as $key => $value)\n\t\t\t{\n\t\t\t\t//fermer l'ancien opt group\n\t\t\t\tif($compteur > 0)\n\t\t\t\t\t$res.=\"</optgroup>\"; \n\t\t\t\t$compteur++;\n\t\t\t\t//ouverutre d'un nouveau opt group\t\n\t\t\t\t$res.=\"<optgroup label='\".$key.\"'>\"; \n\t\t\t\t$modelname=$value;\t\t\t\t\n\t\t\t \tfor($i=0;$i < count($modelname);$i++){\n\t\t\t \t\tlist($val,$libelle)=explode(\"|\",$modelname[$i]);\n\t\n\t\t\t \t\tif ($default==$val)\n\t\t\t\t \t\t$res.= \"<option value='$val' selected>\".htmlentities($libelle).\"</option>\";\n\t\t\t\t \telse\n\t\t\t\t \t\t$res.= \"<option value='$val' >\".htmlentities($libelle).\"</option>\";\n\t\t\t\t \t\n\t\t\t\t}\n\t\t\t}\n\t\t\t//fermer le dernière opt group\n\t\t\tif($compteur > 0)\n\t\t\t\t$res.=\"</optgroup>\"; \n\t \t\t$res.= \"</select>\";\n\t\t\treturn $res;\n\t}", "function filtrer ($name)\r\n{\r\n // SECURITE: ?? \"\" => SI LE NAVIGATEUR N'ENVOIE PAS L'INFO, ON PREND COMME VALEUR PAR DEFAUT \"\"\r\n $info = $_REQUEST[$name] ?? \"\";\r\n // ON POURRA RAJOUTER PLUS DE SECURITE\r\n // ...\r\n\r\n return $info;\r\n}", "function switchCC(&$cctype){\n switch ($cctype) {\n\tcase \"V\":\n\t$cctype = \"VISA\";\n\tbreak;\n\tcase \"M\":\n\t$cctype = \"MASTERCARD\";\n\tbreak;\n\tcase \"DI\":\n\t$cctype = \"DINERS CLUB\";\n\tbreak;\n\tcase \"D\":\n\t$cctype = \"DISCOVER\";\n\tbreak;\n\tcase \"A\":\n\t$cctype = \"AMEX\";\n\tbreak;\n\tcase \"PP\":\n\t$cctype = \"PAYPAL\";\n\tbreak;\n} \n}", "function get_menu($rol){\n $menu = array();\nswitch($rol){ \n // O haces un swith\n \ncase 0:\n $menu = array('gestion_estudiante.php','noticia.php','logeado.php','institucional.php','contacto_vista.php', 'ofertaacademica.php', 'sin_acceso.php','inicio.php','login.php','registro.php','ofertaacademica.php',\n'consultarinscripcion.php', 'reporte_inscripcion.php', 'pruebas.php' ,'reporte_inscripcion.php', 'pruebas.php' );\n return $menu; \n break;\n\ncase 1:\n $menu = array('gestion_estudiante.php','institucional.php', 'logeado.php','oferta.php', 'sin_acceso.php','inicio.php','login.php' , 'reporte_inscripcion.php', 'pruebas.php', 'reporte_inscripcion.php', 'pruebas.php' );\n\treturn $menu; \n \tbreak;\n\ncase 2:\n\t$menu = array('gestion_estudiante.php', 'noticia.php', 'registro.php','logeado.php', 'sin_acceso.php','login.php',\n\t\t\t'institucional.php', 'oferta.php', 'sin_acceso.php','inicio.php','login.php','registro.php','ofertaacademica.php','consultarinscripcion.php',\n\t'reporte_inscripcion.php' , 'pruebas.php');\n \treturn $menu; \n \tbreak;\n\ncase 3;\n \treturn $menu; \nbreak;\n\ncase 4;\n \treturn $menu; \nbreak;\n\ncase 5;\n \treturn $menu; \nbreak;\n\ncase 6:\n\t$menu = array('gestion_estudiante.php','registro.php','logeado.php', 'sin_acceso.php','login.php'.\n\t\t\t'institucional.php', 'oferta.php', 'sin_acceso.php','inicio.php','login.php','registro.php','ofertaacademica.php',\n\t\t\t'consultarinscripcion.php'\n\t);\n \treturn $menu; \n \tbreak;\n return $menu; \n}//fin suitch\n }", "function getInputValues();", "function C() {\n $arr = func_get_args();\n return Carr($arr);\n }", "function zz(&...$params)\n{\n foreach($params as &$param)\n if ($param)\n return $param;\n return null;\n}", "Function traduz_mes($english_mes)\n{\n switch($english_mes)\n {\n case \"Jan\":\n $portuguese_mes = \"Janeiro\";\n break;\n case \"Feb\":\n $portuguese_mes = \"Fevereiro\";\n break;\n case \"Mar\":\n $portuguese_mes = \"Marco\";\n break;\n case \"Apr\":\n $portuguese_mes = \"Abril\";\n break;\n case \"May\":\n $portuguese_mes = \"Maio\";\n break;\n case \"Jun\":\n $portuguese_mes = \"Junho\";\n break;\n case \"Jul\":\n $portuguese_mes = \"Julho\";\n break;\n case \"Aug\":\n $portuguese_mes = \"Agosto\";\n break;\n case \"Sep\":\n $portuguese_mes = \"Setembro\";\n break;\n case \"Oct\":\n $portuguese_mes = \"Outubro\";\n break;\n case \"Nov\":\n $portuguese_mes = \"Novembro\";\n break; \n case \"Dec\":\n $portuguese_mes = \"Dezembro\";\n break;\n }\n return ($portuguese_mes);\n}", "abstract protected function getCaseValue($value);", "private function convert($val,$how){\r\n // 'enum' fields as array present only in filter and we have to handle them separately\r\n\r\n if(is_array($val) && $this->type!==BitrixORMDataTypes::ENUM){\r\n $arr = array();\r\n foreach($val as $v){\r\n $arr[] = call_user_func(array($this, $how.'_'.$this->type),$v);\r\n }\r\n\r\n return $arr;\r\n }else\r\n return call_user_func(array($this,$how.'_'.$this->type),$val);\r\n\r\n }", "function getElaboradoPor($forganismo,$opt){\r\nconnect();\r\nswitch ($opt) {\r\ncase 0:\r\n\t$sql=\"SELECT * FROM pv_antepresupuesto where Organismo = '\".$forganismo.\"'\";\r\n\t$query=mysql_query($sql) or die ($sql.mysql_error());\r\n\t$rows=mysql_num_rows($query);\r\n\tfor ($i=0; $i<$rows; $i++) {\r\n\t\t$field=mysql_fetch_array($query);\r\n\t\tif ($field['PreparadoPor']==$valor) echo \"<option value='\".$field['PreparadoPor'].\"' selected>\".htmlentities($field['PreparadoPor']).\"</option>\"; \r\n\t\telse echo \"<option value='\".$field['PreparadoPor'].\"'>\".htmlentities($field['PreparadoPor']).\"</option>\";\r\n\t}\r\n\tbreak;\r\n}\t \r\n}", "function PARAMETROS() {\r\n\t$sql = \"SELECT * FROM mastparametros\";\r\n\t$query_parametro = mysql_query($sql) or die ($sql.mysql_error());\r\n\twhile ($field_parametro = mysql_fetch_array($query_parametro)) {\r\n\t\t$id = $field_parametro['ParametroClave'];\r\n\t\t$_PARAMETRO[$id] = $field_parametro['ValorParam'];\r\n\t}\r\n\treturn $_PARAMETRO;\r\n}", "function maquetador_array( $c, $a, $i=\"\" ) {\n $aTemp = array ( \"c\" =>$c, \"a\" => $a );\n if ( $i!=\"\") {\n $aTemp[\"i\"] = $i ;\n }\n return $aTemp;\n}", "function _get(&$key){\n switch($key){\n case 'value': case 'val': $key = $this->get(); return TRUE;\n case 'settings': $key = $this->set; return TRUE;\n case 'isset': case 'key': $key = $this->$key; return TRUE;\n case 'status': case 'isok': case 'msg': \n $key = $this->$key(); return TRUE;\n case 'val_init': \n $key = $this->s_get($key); return TRUE;\n\n }\n return FALSE;\n }", "private function ArrayToGet($array, $switch) {\r\n if ($switch == Constans::PART_HEAD) {\r\n $this->_title = $array[Constans::ELEMENT_TITLE];\r\n $this->_keywords = \"\";\r\n foreach ($array[Constans::ELEMENT_KEYWORDS] as $value) {\r\n if ($value != end($array[Constans::ELEMENT_KEYWORDS])) {\r\n $this->_keywords .= $value . \", \";\r\n } else {\r\n $this->_keywords .= $value;\r\n }\r\n }\r\n $this->_description = $array[Constans::ELEMENT_DESCRIPTION];\r\n }\r\n }", "function __param($array, $name, $default, $integer = false, $posted = false)\n{\n if ((!isset($array[$name])) || ($array[$name] === false) || (($integer) && ($array[$name] === ''))) {\n if ($default !== false) {\n return $default;\n }\n\n require_code('failure');\n improperly_filled_in($name, $posted, $array);\n }\n\n $val = $array[$name];\n if (is_array($val)) {\n $val = trim(implode(',', $val), ' ,');\n }\n\n static $mq = null;\n if ($mq === null) {\n $mq = get_magic_quotes_gpc();\n }\n if ($mq) {\n $val = stripslashes($val);\n }\n\n return $val;\n}", "private function _paramArrGenerator( $funcParam, $args )\n\t{\n\t\t$paramArray = array();\n\n\t\tforeach ($funcParam as $key => $value) \n\t\t{\n\t\t\tif( isset( $args[ $value ] ) )\n\t\t\t\t$paramArray[] = $args[ $value ];\n\t\t}\n\n\t\treturn $paramArray;\n\t}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function obtenMes($numMes){\n $MESES= array (\n \"1\"=>\"Enero\",\n \"2\"=>\"Febrero\",\n \"3\"=>\"Marzo\",\n \"4\"=>\"Abril\",\n \"5\"=>\"Mayo\",\n \"6\"=>\"Junio\",\n \"7\"=>\"Julio\",\n \"8\"=>\"Agosto\",\n \"9\"=>\"Septiembre\",\n \"10\"=>\"Octubre\",\n \"11\"=>\"Noviembre\",\n \"12\"=>\"Diciembre\"\n );\n if ($numMes=='')\n return $MESES;\n return $MESES[''.$numMes];\n}", "function obtener_campo($sql, $campo=false){\n $datos = consulta($sql,true);\n if (!$datos) {\n return false;\n }else {\n if($campo==false){\n $datos = array_shift ($datos['resultado'][0]);\n }else{\n $datos = $datos['datos'][0][$campo];\n }\n return $datos;\n }\n}", "function item_translate_to_array(int $item_id, int $amount = 1, int $info_id = NULL)\r\n{\r\n\tswitch($item_id)\r\n\t{\r\n\t\tcase 1000:\r\n\t\tcase 1001:\r\n\t\t{\r\n\t\t\tif($info_id === NULL)\r\n\t\t\t\treturn NULL;\r\n\t\t\t\r\n\t\t\treturn [\r\n\t\t\t\t'item_id' => $info_id,\r\n\t\t\t\t'add_type' => $item_id,\r\n\t\t\t\t'amount' => $amount,\r\n\t\t\t\t'item_category_id' => 0\r\n\t\t\t];\r\n\t\t}\r\n\t\tcase 3000:\r\n\t\t{\r\n\t\t\treturn [\r\n\t\t\t\t'item_id' => 3,\r\n\t\t\t\t'add_type' => $item_id,\r\n\t\t\t\t'amount' => $amount,\r\n\t\t\t\t'item_category_id' => 3\r\n\t\t\t];\r\n\t\t}\r\n\t\tcase 3001:\r\n\t\t{\r\n\t\t\treturn [\r\n\t\t\t\t'item_id' => 4,\r\n\t\t\t\t'add_type' => $item_id,\r\n\t\t\t\t'amount' => $amount,\r\n\t\t\t\t'item_category_id' => 4\r\n\t\t\t];\r\n\t\t}\r\n\t\tcase 3002:\r\n\t\t{\r\n\t\t\treturn [\r\n\t\t\t\t'item_id' => 2,\r\n\t\t\t\t'add_type' => $item_id,\r\n\t\t\t\t'amount' => $amount,\r\n\t\t\t\t'item_category_id' => 2\r\n\t\t\t];\r\n\t\t}\r\n\t\tcase 5100:\r\n\t\tcase 5200:\r\n\t\t{\r\n\t\t\tif($info_id === NULL)\r\n\t\t\t\treturn NULL;\r\n\t\t\t\r\n\t\t\treturn [\r\n\t\t\t\t'item_id' => $info_id,\r\n\t\t\t\t'add_type' => $item_id,\r\n\t\t\t\t'amount' => 1,\r\n\t\t\t\t'item_category_id' => 0\r\n\t\t\t];\r\n\t\t}\r\n\t\tdefault:\r\n\t\t{\r\n\t\t\treturn NULL;\r\n\t\t}\r\n\t}\r\n}", "abstract protected function getFormTypeParams();", "function get_select_options($select_data_array, $value_field, $display_field, $selected, $show_instr='Y', $instr_txt='Select One')\n{\n $drop_HTML = \"\";\n #Determine whether to show the instruction option\n if($show_instr == 'Y'){\n $drop_HTML = \"<option value='' \";\n # Select by default if there is no selected option\n if($selected == '')\n {\n $drop_HTML .= \" selected\";\n }\n\n $drop_HTML .= \">- \".$instr_txt.\" -</option>\";\n }\n\n foreach($select_data_array AS $data_row)\n {\n $drop_HTML .= \" <option value='\".addslashes($data_row[$value_field]).\"' \";\n\n # Show as selected if value matches the passed value\n #check if passed value is an array\n if(is_array($selected)){\n if(in_array($data_row[$value_field], $selected)) $drop_HTML .= \" selected\";\n\n }elseif(!is_array($selected)){\n if($selected == $data_row[$value_field]) $drop_HTML .= \" selected\";\n }\n\n $display_array = array();\n # Display all data given based on whether what is passed is an array\n if(is_array($display_field))\n {\n $drop_HTML .= \">\";\n\n foreach($display_field AS $display)\n {\n array_push($display_array, $data_row[$display]);\n }\n\n $drop_HTML .= implode(' - ', $display_array).\"</option>\";\n }\n else\n {\n $drop_HTML .= \">\".$data_row[$display_field].\"</option>\";\n }\n }\n\n return $drop_HTML;\n}", "function get_i($i = 0)\n {\n }", "public function __get($name_function){//this nameok\n foreach ($this->check_array() as $key => $value):\n if($this->check_val===$key)://check val==key were is the key??\n return preg_match( $value,$this->name);\n endif;\n endforeach;\n \n}", "function sommeOptionnelle (int $a = 1 , int $b = 2 )\n{\n return $a + $b;\n}", "function get($key, $default = null)\n{\n if (is_array($key)) {\n foreach ($key as $val) {\n if (isset($_GET[$val])) {\n return $_GET[$val];\n }\n }\n } elseif (isset($_GET[$key])) {\n return $_GET[$key];\n }\n return $default;\n}", "function option($c){\n\tswitch($c){\n\tcase 'A':\n\t\treturn 1;\n\tcase 'B':\n\t\treturn 2;\n\tcase 'C':\n\t\treturn 4;\n\tcase 'D':\n\t\treturn 8;\n\tcase 'AB':\n\t\treturn 3;\n\tcase 'AC':\n\t\treturn 5;\n\tcase 'AD':\n\t\treturn 9;\n\tcase 'BC':\n\t\treturn 6;\n\tcase 'BD':\n\t\treturn 10;\n\tcase 'CD':\n\t\treturn 12;\n\tcase 'ABC':\n\t\treturn 7;\n\tcase 'ABD':\n\t\treturn 11;\n\tcase 'ACD':\n\t\treturn 13;\n\tcase 'BCD':\n\t\treturn 14;\n\tcase 'ABCD':\n\t\treturn 15;\n\tdefault: return 0;\n\t}\n}", "function getCamposToQuery($nombre_tabla, $key_value, $as_tabla=\"\"/*, ...*/){\r\n $cadena=\"\";\r\n global $$nombre_tabla;//si o si para que el array se pueda usar en esta funcion\r\n if($key_value=='key'){\r\n foreach ($$nombre_tabla as $key => $value) { $cadena.=$as_tabla.$key.\",\"; }\r\n }\r\n if($key_value=='value'){\r\n foreach ($$nombre_tabla as $key => $value) { $cadena.=$as_tabla.$value.\",\"; }\r\n }\r\n $cadena=trim($cadena,\",\");\r\n return $cadena;\r\n}", "function lapa_compiler_switch($act, $parser)\n{\n if ( 1 == $act) {\n $plugin_name = 'switch';\n \n $attr = $parser->parseDirectiveAttributes();\n $result = $parser->_parseExpression();\n $parser->openBlock($plugin_name, false);\n if ('' != $result ) {\n return 'switch (' . $result . '):' . \"\\n\";\n }else {\n throw new LapaEngineException('Укажите параметры для SWITCH в строке %s.', $parser->templateLine());\n }\n }else {\n return lapa_compiler_endswitch($act, $parser);\n }\n}", "static function get($data /*key subkey ...*/){\n $ar = func_get_args();\n array_shift($ar);\n if(is_array($ar[0])) {\n $def = def($ar,1);\n $ar = $ar[0];\n } else $def = NULL;\n while($ck = array_shift($ar)){\n if(isset($data[$ck])) $data = $data[$ck]; \n else return($def);\n } \n return($data);\n }", "abstract public function getInput();", "function limpieza_uno($value=''){\n\treturn \"Hola\";\n}", "abstract protected function get_args();", "function testeNomes($name, $middleName, $lastName) {\n \n // here we get the values of the parameters\n $nomes = func_get_args();\n \n var_dump($nomes);\n \n // and here we loop through the values and print each one\n foreach ($nomes as $nome) {\n echo $nome . PHP_EOL;\n }\n \n}", "public function multiple($mode = null){\n }", "public function getInputValues();", "function _getInputCLI()\r\n{\r\n $opt = _read();\r\n $opt = strtoupper (trim($opt));\r\n return $opt;\r\n}", "function DIAS_SUELDO_BASICO($_ARGS) {\r\n\t$_PARAMETROS = PARAMETROS();\r\n\t$estado = ESTADO($_ARGS);\r\n\t$fegreso = FECHA_EGRESO($_ARGS);\r\n\t\r\n\tif ($estado == \"A\") {\r\n\t\tif ($_ARGS['FECHA_INGRESO'] < $_ARGS['DESDE']) return DIAS_FECHA($_ARGS['DESDE'], $_ARGS['HASTA']);\r\n\t\telse return DIAS_FECHA($_ARGS['FECHA_INGRESO'], $_ARGS['HASTA']);\r\n\t} else {\r\n\t\tif ($fegreso < $_ARGS['DESDE']) return 0;\r\n\t\telse return DIAS_FECHA($_ARGS['DESDE'], $fegreso);\r\n\t}\r\n}", "public function get_input()\n {\n }", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "abstract public function getParameters();", "private function getRequest( $value, $default = null, $from = '' ) {\n\t\t$from\t= strtolower( $from );\n\t\t$ret\t= $default;\n\n\t\tif( $from && isset( $this->request->{$from}[$value] ) ) {\n\t\t\t$ret = $this->request->{$from}[$value];\n\t\t}else{\n\t\t\tif( isset( $this->request->post[$value] ) ) {\n\t\t\t\t$ret = $this->request->post[$value];\n\t\t\t}elseif( isset( $this->request->get[$value] ) ) {\n\t\t\t\t$ret = $this->request->get[$value];\n\t\t\t}\n\t\t}\n\n\t\treturn $ret;\n\t}", "function InputSelect($modelname1,$VariableName,$default,$taille=\"\",$autres=\"\")\t{\n\n\t\t$modelname=&$modelname1;\n\n\t\t// gestion readonly\n\t\tif($_SESSION[\"readonly\"]==\"true\")\n\t\t\t$cache=\"disabled\";\n\n\t\t// check taille \n\t\tif ($taille > 1)\n\t\t\t$_taille=\"WIDTH='$taille' STYLE='width: \".$taille.\"px'\";\n\t\t\n\t \t$res= \"<select $_taille name='\".$VariableName.\"' id='\".$VariableName.\"' $autres $cache>\";\n\n\t\t// check nbr elements et proposee selectionne par default\t \t\n\t \tif(count($modelname) >1 ){\n\t\t\t$res.= \"<option value='' selected>Selectionnez</option>\";\n\t\t}\n\t \tfor($i=0;$i < count($modelname);$i++){\n\t \t\tlist($val,$libelle)=explode(\"|\",$modelname[$i]);\n\n\t \t\tif ($default==$val)\n\t\t \t\t$res.= \"<option value='$val' selected>\".htmlentities($libelle).\"</option>\";\n\t\t \telse\n\t\t \t\t$res.= \"<option value='$val' >\".htmlentities($libelle).\"</option>\";\n\t\t \t\n\t\t}\n\t\t \t\t$res.= \"</select>\";\n\t\treturn $res;\n\t}", "function getMessage($i){\n $options = array('My Skillset', 'Projects I have done', 'Past Work Places');\n switch($i){\n case 0:\n $msg = $options[0];\n break;\n case 1;\n $msg = $options[1];\n break;\n case 2:\n $msg = $options[2];\n break;\n default:\n \n break; \n }\n return $msg;\n }", "public function filtrarCampos()\n {\n $array_filter = array();\n\n foreach ($this->validations as $propriedade => $tipo) {\n\n if ($this->data[$propriedade] === NULL) {\n throw new \\Exception('O valor nao pode ser Nulo');\n }\n\n // valor do input\n $value = $this->data[$propriedade];\n\n $valueTypeOf = gettype($value);\n\n // anti-hacker\n $value = trim($value); # Limpar espacos\n $value = stripslashes($value); # remove barras invertidas\n $value = htmlspecialchars($value); # converte caracteres especiais para realidade HTML -> <a href='test'>Test</a> -> &lt;a href=&#039;test&#039;&gt;Test&lt;/a&gt;\n\n // valor do tipo, usando como metodo existente da classe Sanitize\n $method = $tipo;\n\n $validator = call_user_func(array('Inovuerj\\ADO\\TValidator', $method), $value);\n\n // se nao passar no Validator, retorno erro\n if (!$validator && $method != 'texto') {\n $msg = \"O campo {$propriedade} nao foi validado\";\n throw new \\Exception($msg);\n } else {\n // injetando valor no $this->$propriedade\n $this->{$propriedade} = call_user_func(array('Inovuerj\\ADO\\TSanitizer', $method), $value);\n }\n\n// Util::mostrar($propriedade .' - Tipo: '.$tipo, __LINE__);\n// Util::mostrar($this->{$propriedade},__LINE__);\n\n }\n\n\n # filtrado\n return $this;\n\n }", "function _vaxia_dice_roller_get_dropdown($option_set) {\n $options = array('-1' => '<none>');\n foreach ($option_set as $option_key => $option_value) {\n $options[$option_key] = $option_value;\n }\n return $options;\n}" ]
[ "0.5559356", "0.5518372", "0.5336464", "0.5159771", "0.5024516", "0.5024139", "0.49873334", "0.49680614", "0.49659958", "0.49494338", "0.49416578", "0.49375835", "0.49267817", "0.48908454", "0.48825794", "0.48620865", "0.48429686", "0.48304135", "0.4811838", "0.4807702", "0.48067015", "0.4779976", "0.47680333", "0.4767619", "0.47350907", "0.4731119", "0.4703445", "0.47016016", "0.4692108", "0.46883923", "0.46711016", "0.46702132", "0.4665026", "0.46503955", "0.46272984", "0.46190816", "0.4607242", "0.45863438", "0.4568059", "0.45650467", "0.4559507", "0.45590085", "0.4537487", "0.45368332", "0.45338917", "0.45092943", "0.4506943", "0.4501569", "0.44963986", "0.4489278", "0.44844922", "0.44834828", "0.44750652", "0.44742244", "0.4471631", "0.44597456", "0.44571614", "0.44424936", "0.44380847", "0.4435136", "0.44273502", "0.4418555", "0.4395892", "0.4393668", "0.4389508", "0.4387083", "0.43816498", "0.43816498", "0.43816498", "0.43807268", "0.4376275", "0.43752104", "0.43679672", "0.43673038", "0.43660843", "0.43565965", "0.4349647", "0.43446052", "0.43411505", "0.433899", "0.4334475", "0.43329993", "0.43316388", "0.43266356", "0.43252483", "0.4322361", "0.43211567", "0.43201566", "0.43140602", "0.43135104", "0.43106925", "0.4304193", "0.4304193", "0.4304193", "0.4304193", "0.4299674", "0.42979848", "0.4297566", "0.42936158", "0.4287051", "0.4284339" ]
0.0
-1
Create a new command instance.
public function __construct() { parent::__construct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun= true; }\n public function wasRun() { return self::$wasRun; }\n }');\n }", "public function createCommand()\r\n\t{\r\n\t\t$obj = new DbCommand($this,$this->dbms);\r\n\t\treturn $obj;\r\n\t}", "public function createCommand() {\n\t\treturn new UnboxedCommand( $this );\n\t}", "protected function createCommand($args) {\n $command = new Command();\n $command->id = ifseta($args, 'id');\n $command->name = ifseta($args, 'name');\n $command->url = ifseta($args, 'url');\n $command->description = ifseta($args, 'description');\n $command->uses = ifseta($args, 'uses');\n $command->creationDate = ifseta($args, 'creation_date');\n $command->lastUseDate = ifseta($args, 'last_use_date');\n $command->goldenEggDate = ifseta($args, 'golden_egg_date');\n return $command;\n }", "static public function create($cmd = null, $args = null)\n {\n return new self($cmd, $args);\n }", "public function createCommand($kernel, string $commandName = null, string $commandDescription = null): Command;", "public function makeCommand() \n {\n if($this->CrontabCommandObject === NULL)\n {\n $this->CrontabCommandObject = new \\root\\library\\Crontab\\CrontabCommand\\CrontabCommand();\n }\n \n return $this->CrontabCommandObject;\n }", "public function testInstantiation()\n {\n $command = new CreateRule('dummy name');\n }", "public function command(Command $command);", "public function __construct($command)\n {\n $this->command = $command;\n }", "public static function create(array $data)\n {\n $command = new static();\n $command->exchangeArray($data);\n return $command;\n }", "protected function getCreateCommand()\n {\n $command = new IndexCreateCommand();\n $command->setContainer($this->getContainer());\n\n return $command;\n }", "public function createCommand($string = '')\n {\n return $this->createStringable($string);\n }", "public function createCommand($type) {\r\n $command = $this->xml->createElement('command');\r\n $command->setAttribute('xsi:type', $type);\r\n $command->setAttribute('xmlns', '');\r\n $this->xmlSchema($command);\r\n return $command;\r\n }", "public function __construct()\n {\n // We will go ahead and set the name, description, and parameters on console\n // commands just to make things a little easier on the developer. This is\n // so they don't have to all be manually specified in the constructors.\n if (isset($this->signature)) {\n $this->configureUsingFluentDefinition();\n } else {\n parent::__construct($this->name);\n }\n\n // Once we have constructed the command, we'll set the description and other\n // related properties of the command. If a signature wasn't used to build\n // the command we'll set the arguments and the options on this command.\n $this->setDescription((string) $this->description);\n\n $this->setHelp((string) $this->help);\n\n $this->setHidden($this->isHidden());\n\n if (! isset($this->signature)) {\n $this->specifyParameters();\n }\n }", "public function make(string $name, PreprocessorInterface $preprocessor = null): CommandInterface;", "private function _getCommandByClassName($className)\n {\n return new $className;\n }", "public function newCommand($regex, $callable) {\n $cmd = new Command();\n $cmd->regex = $regex;\n $cmd->callable = $callable;\n return $this->addCommand($cmd);\n }", "public static function create($commandID, ...$args)\n {\n $arguments = func_get_args();\n\n return new static(array_shift($arguments), $arguments);\n }", "private function __construct($command = null)\n {\n $this->command = $command;\n }", "public static function factory(string $command, string $before = '', string $after = ''): self\n {\n return new self($command, $before, $after);\n }", "public function getCommand() {}", "protected function buildCommand()\n {\n $command = new Command(\\Tivie\\Command\\ESCAPE);\n $command\n ->chdir(realpath($this->repoDir))\n ->setCommand($this->gitDir)\n ->addArgument(new Argument('tag', null, null, false))\n ->addArgument(new Argument($this->tag, null, null, true));\n\n return $command;\n }", "public function testCanBeInstantiated()\n {\n $command = $this->createInstance();\n $this->assertInstanceOf('\\\\Dhii\\\\ShellInterop\\\\CommandInterface', $command, 'Command must be an interoperable command');\n $this->assertInstanceOf('\\\\Dhii\\\\ShellCommandInterop\\\\ConfigurableCommandInterface', $command, 'Command must be a configurable command');\n $this->assertInstanceOf('\\\\Dhii\\\\ShellCommandInterop\\\\MutableCommandInterface', $command, 'Command must be a mutable command');\n }", "public function getCommand();", "protected function createCommand($name, array $parameters = [])\n {\n return new Fluent(\n array_merge(\n compact('name'),\n $parameters)\n );\n }", "public function testCanPassCommandStringToConstructor()\n {\n $command = new Command('/bin/ls -l');\n\n $this->assertEquals('/bin/ls -l', $command->getExecCommand());\n }", "public function makeCommandInstanceByType(...$args): CommandInterface\n {\n $commandType = array_shift($args);\n\n switch ($commandType) {\n case self::PROGRAM_READ_MODEL_FETCH_ONE_COMMAND:\n return $this->makeFetchOneCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_FIND_COMMAND:\n return $this->makeFindCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_FIND_LITE_COMMAND:\n return $this->makeFindLiteCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_CREATE_TASK_COMMAND:\n return $this->makeItemCreateTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_CREATE_COMMAND:\n return $this->makeItemCreateCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_UPDATE_TASK_COMMAND:\n return $this->makeItemUpdateTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_UPDATE_COMMAND:\n return $this->makeItemUpdateCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_DELETE_TASK_COMMAND:\n return $this->makeItemDeleteTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_DELETE_COMMAND:\n return $this->makeItemDeleteCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_ADD_ID_COMMAND:\n return $this->makeItemAddIdCommand(...$args);\n\n default:\n throw new FactoryException(sprintf('Command bus for type `%s` not found!', (string) $commandType));\n }\n }", "public function __construct($cmd)\n {\n $this->cmd = $cmd;\n }", "public function getCommand()\n {\n }", "public function command($class)\n {\n $runnable = $this->resolveClass($class);\n\n if ( ! $runnable instanceof Command) {\n throw new InvalidArgumentException(get_class($runnable).' must be an instance of '.Command::class.'.');\n }\n\n $command = $runnable;\n\n if ($runnable instanceof Taggable) {\n $command = new Cached($command, $this);\n }\n\n if ($runnable instanceof Transactional) {\n $command = new Transaction($command, $this, $this->makeFromContainer(ConnectionInterface::class));\n }\n\n if ($runnable instanceof Eventable) {\n $command = new Evented($command, $this);\n }\n\n return $this->newBuilder($command);\n }", "protected function createCommandFactory(): CommandFactory\n {\n return new CommandFactory([\n 'CLOSE' => Command\\CLOSE::class,\n ]);\n }", "public static function register() {\n\n if ( !defined( 'WP_CLI' ) || !WP_CLI ) {\n return;\n }\n \n $instance = new static;\n if(empty( $instance->namespace )) {\n throw new \\Exception(\"Command namespace not defined\", 1);\n \n }\n\t\t\\WP_CLI::add_command( $instance->namespace, $instance, $instance->args ?? null );\n\t}", "public function addCommand($command);", "public function add(Command $command);", "abstract protected function getCommand();", "public function createCommand()\r\n\t{\r\n\t\t//start the string\r\n\t\t$command = '';\r\n\t\t\r\n\t\t//add the java command or the path to java\r\n\t\t$command .= $this->java_path;\r\n\t\t\r\n\t\t//add the class path\r\n\t\t$command .= ' -cp \"'. $this->stanford_path . $this->seperator . '*\" ';\r\n\t\t\r\n\t\t//add options\r\n\t\t$options = implode(' ', $this->java_options);\r\n\t\t$command .= '-'.$options;\r\n\t\t\r\n\t\t//add the call to the pipeline object\r\n\t\t$command .= ' edu.stanford.nlp.pipeline.StanfordCoreNLP ';\r\n\r\n\t\t//add the annotators\r\n\t\t$command .= '-annotators '. $this->listAnnotators();\r\n\t\t\r\n\t\t//add the input and output directors\r\n\t\t$command .= ' -file '. $this->tmp_file . ' -outputDirectory '. $this->tmp_path;\r\n\t\t\r\n\t\t//this is for testing purposes\r\n\t\t//$command .= ' -file '. $this->tmp_path .'\\\\nlp3F25.tmp' . ' -outputDirectory '. $this->tmp_path;\r\n\t\t\r\n\t\t//if using regexner add this to the command string\r\n\t\tif($this->annotators['regexner'] === true)\r\n\t\t{\r\n\t\t\t$command .=' -regexner.mapping '. $this->regexner_path . $this->seperator . $this->regexner_file;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn $command;\r\n\t}", "protected function createCommand(string $name, array $parameters = []): Fluent\n {\n return new Fluent(array_merge(compact('name'), $parameters));\n }", "public function __construct()\n {\n parent::__construct(static::NAME, static::VERSION);\n $this->add(new DefaultCommand());\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->command_name = config(\"custom-commands.command_name\");\n\n parent::__construct($this->signature = $this->command_name);\n\n $this->commands = (array) config(\"custom-commands.commands\");\n \n $this->table = config(\"custom-commands.table\");\n\n $this->row = config(\"custom-commands.row\");\n\n $this->changeEnv = (boolean) config(\"custom-commands.change_env\");\n\n }", "protected function createCommandFile()\n {\n $command_file_full_path = $this->command_dir_path . DIRECTORY_SEPARATOR . $this->arg->getCommandFileName();\n\n // Check if the command already exists\n if (file_exists($command_file_full_path)) {\n throw new Exception('Command already exists.');\n }\n\n // Create the file for the new command\n $command_file = fopen($command_file_full_path, 'w');\n\n // TODO: Create Script Generator to generate the PHP scripts for the new command.\n\n fclose($command_file);\n\n $this->console->getOutput()->println('File created at: ' . $command_file_full_path);\n $this->console->getOutput()->success('Command ' . $this->arg->getSignature() . ' created successfully.');\n }", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public static function create(InteropContainer $container)\n {\n $middleware = $container->get('cmd.middleware');\n return new CommandBusFactory($middleware);\n }", "private function createCli() {\n $this->cli = new Cli();\n $this->commands = $this->commandParser->getAllCommands();\n\n foreach ($this->commands as $command) {\n if ($command->isDefault()) {\n $this->cli->command(\"*\");\n foreach ($command->getOptions() as $option) {\n $this->cli->opt($option->getName(), $option->getDescription(), $option->isRequired(), $option->getType());\n }\n foreach ($command->getArguments() as $argument) {\n if (!$argument->isVariadic())\n $this->cli->arg($argument->getName(), $argument->getDescription(), $argument->isRequired());\n }\n }\n if ($command->getName() != \"\") {\n $this->cli->command($command->getName())->description($command->getDescription());\n foreach ($command->getOptions() as $option) {\n $this->cli->opt($option->getName(), $option->getDescription(), $option->isRequired(), $option->getType());\n }\n foreach ($command->getArguments() as $argument) {\n if (!$argument->isVariadic())\n $this->cli->arg($argument->getName(), $argument->getDescription(), $argument->isRequired());\n }\n }\n }\n\n\n }", "public function testInstantiation()\n {\n $this->assertInstanceOf('Contao\\ManagerBundle\\Command\\InstallWebDirCommand', $this->command);\n }", "public function command(string $command): self\n {\n $this->addCommands[] = $command;\n\n return $this;\n }", "public function create() {}", "protected function createProcess($cmd)\n {\n return new Process(explode(' ', $cmd));\n }", "public function create(){}", "protected function getCommandFactory(): Command\\Factory\n {\n return new Command\\RedisFactory();\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->commandData = new CommandData($this, CommandData::$COMMAND_TYPE_API);\n }", "public function testNewCommand() : void\n {\n $this->assertFalse($this->command->hasArguments());\n $this->assertEquals(\"\", $this->command->getArguments());\n }", "protected function createCommandBuilder()\n\t{\n\t\treturn new CSqliteCommandBuilder($this);\n\t}", "public function __construct($command, $config = [])\n {\n $this->command = $command;\n $this->_output = $this->getDefaultOutput();\n parent::__construct($config);\n }", "public function __construct(){\n\n global $argv;\n\n if(!isset($argv[1])){\n echo 'You must supply a command!' . PHP_EOL;\n exit;\n }//if\n\n $args = $argv;\n\n $scriptName = array_shift($args);\n $method = array_shift($args);\n\n $method = explode('-',$method);\n foreach($method as $k => $v){\n if($k != 0){\n $method[$k] = ucwords($v);\n }//if\n }//foreach\n\n $method = implode('',$method);\n\n $resolved = false;\n\n if(method_exists($this,$method)){\n call_user_func(Array($this,$method), $args);\n $resolved = true;\n }//if\n else {\n foreach(static::$extendedCommands as $commandClass){\n if(method_exists($commandClass,$method)){\n call_user_func(Array($commandClass,$method), $args);\n $resolved = true;\n break;\n }//if\n }//foreach\n }//el\n\n if(!$resolved){\n echo \"`{$method}` is not a valid CLI command!\";\n }//if\n\n echo PHP_EOL;\n exit;\n\n }", "public function forCommand($command)\n {\n $this->command = $command;\n $this->pipe = new NullPipe();\n $this->manager = new InteractiveProcessManager($this->userInteraction);\n\n return $this;\n }", "public function __construct()\n {\n parent::__construct('pwman', '0.1.0');\n\n $getCommand = new Get();\n $this->add($getCommand);\n\n $setCommand = new Set();\n $this->add($setCommand);\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }", "public function createCommand(?string $sql = null, array $params = []): Command;", "public function __construct($command = NULL, $name = NULL)\n {\n $args = func_get_args();\n\n switch ($command) {\n case self::CONSTR_CMD_POPULATE_SYNCED_ARRAY:\n case self::CONSTR_CMD_POP_FROM_ARR:\n case self::CONSTR_CMD_POP_FROM_OBJ:\n case self::CONSTR_CMD_POP_FROM_DB:\n case self::CONSTR_CMD_NEW:\n $this->setup_name = $name;\n\n # shift off known args\n array_shift($args);\n array_shift($args);\n break;\n }\n\n switch ($command) {\n case self::CONSTR_CMD_POP_FROM_ARR:\n $this->applyArray($args[0]);\n break;\n case self::CONSTR_CMD_POP_FROM_OBJ:\n break;\n case self::CONSTR_CMD_POP_FROM_DB:\n break;\n case self::CONSTR_CMD_POPULATE_SYNCED_ARRAY:\n $this->applyArray($args[0]);\n $this->setAllLoaded();\n break;\n default:\n throw new OrmInputException('Guessing not supported, please explicitly specify construction type');\n self::constructGuess($args);\n }\n\n $this->ensureObjectInDb();\n }", "public function generateCommands();", "protected function newInstanceCommand($commandClass)\n {\n $class = new ReflectionClass($commandClass);\n\n return $class->newInstanceArgs($this->resolveCommandParameters($class));\n }", "protected function buildCommand()\n {\n return $this->command;\n }", "public function makeItemCreateCommand(string $processUuid, array $item): ItemCreateCommand\n {\n $processUuid = ProcessUuid::fromNative($processUuid);\n $uuid = Uuid::fromNative(null);\n $item = Item::fromNative($item);\n\n return new ItemCreateCommand($processUuid, $uuid, $item);\n }", "public function __construct($commandName, $args = [], $description = '') {\n if (!$this->setName($commandName)) {\n $this->setName('--new-command');\n }\n $this->addArgs($args);\n\n if (!$this->setDescription($description)) {\n $this->setDescription('<NO DESCRIPTION>');\n }\n }", "public function getCommand($name, array $args = array())\n {\n return parent::getCommand($name, $args)\n ->setRequestSerializer(RequestSerializer::getInstance());\n }", "protected function buildCommand()\n {\n $command = new Command(\\Tivie\\Command\\DONT_ADD_SPACE_BEFORE_VALUE);\n $command\n ->chdir(realpath($this->repoDir))\n ->setCommand($this->gitDir)\n ->addArgument(new Argument('rev-parse'))\n ->addArgument(new Argument('HEAD'));\n\n return $command;\n }", "protected function instantiateCommand(Request $request, $args)\n {\n $command = new DeletePackageCustomerCommand($args);\n\n $requestBody = $request->getParsedBody();\n\n $this->setCommandFields($command, $requestBody);\n\n return $command;\n }", "public function createCommand($sql = null, $params = [])\n {\n $command = new Command([\n 'db' => $this,\n 'sql' => $sql,\n ]);\n\n return $command->bindValues($params);\n }", "protected function setCommand($value) {\n\t\t$this->_command = trim($value);\n\t\treturn $this;\n\t}", "public function setCommand($command)\n {\n $this->command = $command;\n\n return $this;\n }", "public function buildCommand()\n {\n return parent::buildCommand();\n }", "private function registerMakeModuleCommand()\n {\n $this->app->singleton('command.make.module', function($app) {\n return $app['Caffeinated\\Modules\\Console\\Generators\\MakeModuleCommand'];\n });\n\n $this->commands('command.make.module');\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->currentDirectory = getcwd();\n $this->baseIndentLevel = 0;\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\HelpCommand\", \"help\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\InitializePlanetCommand\", \"init\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PackAndPushUniToolCommand\", \"packpushuni\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PackLightPluginCommand\", \"packlightmap\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PushCommand\", \"push\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PushUniverseSnapshotCommand\", \"pushuni\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\UpdateSubscriberDependenciesCommand\", \"updsd\");\n\n }", "public function getCommand(string $command);", "protected function registerCommand(){\n\t\t$this->app->singleton('fakeid.command.setup', function ($app){\n\t\t\treturn new SetupCommand();\n\t\t});\n\n\t\t$this->commands('fakeid.command.setup');\n\t}", "public function addCommand($command, $args = [], $data = [])\n {\n $item = new ScreenCommand();\n $item->screen_id = $this->id;\n $item->command = $command;\n $item->arguments = $args;\n $item->fill($data);\n $item->save();\n\n return $item;\n }", "public function test_creating_command_from_container()\n {\n $now = new \\DateTime();\n $this->container->add('DateTime', $now);\n $command = 'Spekkionu\\DomainDispatcher\\Test\\Commands\\CommandWithConstructor';\n $result = $this->dispatcher->dispatch($command);\n $this->assertSame($now, $result);\n }", "protected function createProcess(): Process\n {\n $command = [\n $this->settings['executable']\n ];\n\n $command[] = $this->from;\n $command[] = $this->to;\n\n // Set the margins if needed.\n if ($this->settings['marginsType'] !== self::MARGIN_TYPE_NO_MARGINS) {\n $command[] = '--marginsType=' . $this->settings['marginsType'];\n }\n\n // If we need to proxy with node we just need to prepend the $command with `node`.\n if ($this->settings['proxyWithNode']) {\n array_unshift($command, 'node');\n }\n\n // If there's no graphical environment we need to prepend the $command with `xvfb-run\n // --auto-servernum`.\n if (! $this->settings['graphicalEnvironment']) {\n array_unshift($command, '--auto-servernum');\n array_unshift($command, 'xvfb-run');\n }\n\n return new Process($command);\n }", "private function registerCommand()\n {\n $this->app->singleton('command.shenma.push', function () {\n return new \\Larva\\Shenma\\Push\\Commands\\Push();\n });\n\n $this->app->singleton('command.shenma.push.retry', function () {\n return new \\Larva\\Shenma\\Push\\Commands\\PushRetry();\n });\n }", "public function __construct(string $command, string $before = '', string $after = '')\n {\n $this->command = $command;\n $this->before = $before;\n $this->after = $after;\n }", "public function generateCommand($singleCommandDefinition);", "public function create() {\n }", "public function create() {\n }", "public function create() {\r\n }", "public function create() {\n\n\t}", "private function getImportCommand()\n {\n return new IndexImportCommand(self::getContainer());\n }", "public function __construct($command)\n {\n $this->command = $command;\n\n $this->command->line('Installing Images: <info>✔</info>');\n }", "public function __construct()\n {\n self::$instance =& $this;\n\n $commanddir = Config::main('directory');\n $excludes = Config::main('exclude');\n\n if(is_null($commanddir))\n die('Could not find commands directory. It should be specified in the main config.');\n\n //The directory where commands reside should be relative\n //to the directory with the clip executable.\n $dir = realpath(__DIR__.\"/{$commanddir}\");\n\n $cmdfiles = scandir($dir);\n //Loop through each file in the commands directory\n foreach($cmdfiles as $file)\n {\n //Assume that each file uses the standard '.php' file extension.\n $command = substr($file, 0, -4);\n\n //Ignore the unnecessary directories as commands and anything that\n //has been marked for exclusion then attempt to include the valid ones.\n if($file !== '.' && $file !== '..' && array_search($command, $excludes) === false && include(\"{$dir}/{$file}\"))\n {\n if(class_exists($command, false))\n {\n $obj = new $command;\n //Only load commands that use the clip command interface\n if($obj instanceof Command)\n $this->commands[strtolower($command)] = $obj;\n }\n }\n }\n }", "public function __construct($action, $command = null) {\n parent::__construct($action, self::NAME);\n\n $fieldFactory = FieldFactory::getInstance();\n\n $commandField = $fieldFactory->createField(FieldFactory::TYPE_STRING, self::FIELD_COMMAND, $command);\n\n $this->addField($commandField);\n }", "public function createCommand($db = null, $action = 'get')\n {\n if ($db === null) {\n $db = Yii::$app->get(Connection::getDriverName());\n }\n $this->addAction($action);\n $commandConfig = $db->getQueryBuilder()->build($this);\n\n return $db->createCommand($commandConfig);\n }", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();" ]
[ "0.8010746", "0.7333379", "0.72606754", "0.7164165", "0.716004", "0.7137585", "0.6748632", "0.67234164", "0.67178184", "0.6697025", "0.6677973", "0.66454077", "0.65622073", "0.65437883", "0.64838654", "0.64696646", "0.64292693", "0.6382209", "0.6378306", "0.63773245", "0.6315901", "0.6248427", "0.6241929", "0.6194334", "0.6081284", "0.6075819", "0.6069913", "0.60685146", "0.6055616", "0.6027874", "0.60132784", "0.60118896", "0.6011778", "0.5969603", "0.59618074", "0.5954538", "0.59404427", "0.59388787", "0.5929363", "0.5910562", "0.590651", "0.589658", "0.589658", "0.589658", "0.58692765", "0.58665586", "0.5866528", "0.58663124", "0.5852474", "0.5852405", "0.58442044", "0.58391577", "0.58154446", "0.58055794", "0.5795853", "0.5780188", "0.57653266", "0.57640004", "0.57584697", "0.575748", "0.5742612", "0.5739361", "0.5732979", "0.572247", "0.5701043", "0.5686879", "0.5685233", "0.56819254", "0.5675983", "0.56670785", "0.56606543", "0.5659307", "0.56567776", "0.56534046", "0.56343585", "0.56290466", "0.5626615", "0.56255764", "0.5608852", "0.5608026", "0.56063116", "0.56026554", "0.5599553", "0.5599351", "0.55640906", "0.55640906", "0.5561977", "0.5559745", "0.5555084", "0.5551485", "0.5544597", "0.55397296", "0.5529626", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908" ]
0.0
-1
Get the console command arguments.
protected function getArguments() { return array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getArgs()\n {\n return $this->meta[Cli::ARGS] ?? [];\n }", "private function getArguments() {\n return array_slice($argv, 1);\n }", "public function getArgs() {\n return $this->commandArgs;\n }", "public function getCommandLineArguments()\n {\n return $this->commandLineArguments;\n }", "public function args()\n {\n return $this->arguments->get();\n }", "public function getArgs()\n {\n if ($this['args']) {\n return $this['args'];\n }\n\n return [];\n }", "public function getArgs()\n {\n return $this->args;\n }", "public function getArgs()\n {\n return $this->args;\n }", "public function getArgs()\n {\n return $this->args;\n }", "public function getArgs()\n {\n return $this->args;\n }", "public function getArgs()\n {\n return $this->args;\n }", "public function getArgs();", "public function getArgs();", "public function getArgs() {\n return $this->args;\n }", "public function getArgs()\n {\n return $this->args;\n }", "public function getArguments()\n {\n return sprintf(\n \"--%s %s \\\"%s\\\" %s %s %s\",\n $this->name,\n $this->getBoxOptionToString(),\n $this->message,\n $this->height,\n $this->width,\n $this->default\n );\n }", "protected function getArguments()\r\n\t{\r\n\t\treturn isset($this->arguments) ? $this->arguments : array();\r\n\t}", "public function args()\n {\n return [];\n }", "public function getArgs(): array\n {\n return $this->args;\n }", "public function getArguments()\n {\n return sprintf(\n \"--%s %s \\\"%s\\\" %s %s %s %s\",\n $this->name,\n $this->getBoxOptionToString(),\n $this->message,\n $this->height,\n $this->width,\n $this->height - 8,\n $this->getListString()\n );\n }", "public function getArgs() {\n\t\treturn $this->args;\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\n\t\treturn array(\n\t\t\tarray('run', InputArgument::REQUIRED, 'An example argument.'),\n\t\t);\n\t}", "protected function getArguments()\n {\n return [\n ['name', InputArgument::REQUIRED, 'The name of the command.'],\n ];\n }", "public function getArguments() {\n return $this->args;\n }", "public function getArgs() : array\n {\n return $this->args;\n }", "protected function getArguments()\n {\n return [\n ['name', InputArgument::REQUIRED, 'The name of the command.'],\n ['alias', InputArgument::OPTIONAL, 'The alias of module will be used.'],\n ];\n }", "public function getArgs()\n {\n return $this->noramlizeArgs($this->_args);\n }", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t['connection', InputArgument::OPTIONAL, 'Database connection name', Config::get('database.default')],\n\t\t];\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t//\tarray('example', InputArgument::REQUIRED, 'An example argument.'),\n\t\t);\n\t}", "public function getArgs()\n {\n return $this->parsedArgs;\n }", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\t// array('example', InputArgument::REQUIRED, 'An example argument.'),\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\t// array('example', InputArgument::REQUIRED, 'An example argument.'),\n\t\t);\n\t}", "protected function getArguments()\n {\n return array(\n //array('example', InputArgument::REQUIRED, 'An example argument.'),\n );\n }", "public function getArguments() : array\n {\n return $this->args;\n }", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t/*['example', InputArgument::REQUIRED, 'An example argument.'],*/\n\t\t];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t//array('example', InputArgument::REQUIRED, 'An example argument.'),\n\t\t];\n\t}", "protected function getArguments()\n {\n return array( //\t\t\tarray('example', InputArgument::REQUIRED, 'An example argument.'),\n );\n }", "protected function getArguments()\n {\n return array( //\t\t\tarray('example', InputArgument::REQUIRED, 'An example argument.'),\n );\n }", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t['example', InputArgument::OPTIONAL, 'An example argument.'],\n\t\t];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t['example', InputArgument::OPTIONAL, 'An example argument.'],\n\t\t];\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\t//array('example', InputArgument::REQUIRED, 'An example argument.'),\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\t//array('example', InputArgument::REQUIRED, 'An example argument.'),\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\t//array('example', InputArgument::REQUIRED, 'An example argument.'),\n\t\t);\n\t}", "protected function getArguments()\n {\n return array(//\t\t\tarray('example', InputArgument::REQUIRED, 'An example argument.'),\n );\n }", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t#array('example', InputArgument::REQUIRED, 'An example argument.'),\n\t\t];\n\t}", "protected function getArguments()\n {\n return array(\n array('example', InputArgument::OPTIONAL, 'An example argument.'),\n );\n }", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t//['example', InputArgument::REQUIRED, 'An example argument.'],\n\t\t];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t//['example', InputArgument::REQUIRED, 'An example argument.'],\n\t\t];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t//['example', InputArgument::REQUIRED, 'An example argument.'],\n\t\t];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t//['example', InputArgument::REQUIRED, 'An example argument.'],\n\t\t];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t//['example', InputArgument::REQUIRED, 'An example argument.'],\n\t\t];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t//['example', InputArgument::REQUIRED, 'An example argument.'],\n\t\t];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t//['example', InputArgument::REQUIRED, 'An example argument.'],\n\t\t];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t//['example', InputArgument::REQUIRED, 'An example argument.'],\n\t\t];\n\t}", "public function getArguments() {}", "public function getArguments() {}", "public function getArguments() {}", "public function getArguments() {}", "protected function getArguments()\n {\n return [\n // ['example', InputArgument::REQUIRED, 'An example argument.'],\n ];\n }", "protected function getArguments()\n {\n return [\n // ['example', InputArgument::REQUIRED, 'An example argument.'],\n ];\n }", "protected function getArguments()\n {\n return [\n // ['example', InputArgument::REQUIRED, 'An example argument.'],\n ];\n }", "protected function getArguments()\n {\n return [\n//\t\t\t['example', InputArgument::REQUIRED, 'An example argument.'],\n ];\n }", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\tarray('example', InputArgument::OPTIONAL, 'An example argument.'),\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\tarray('example', InputArgument::OPTIONAL, 'An example argument.'),\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\tarray('example', InputArgument::OPTIONAL, 'An example argument.'),\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\tarray('example', InputArgument::OPTIONAL, 'An example argument.'),\n\t\t);\n\t}", "public static function getArguments()\n {\n return func_get_args();\n }", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\t//TODO argument to do a single facade. Must be a valid facade\n\t\t\tarray('example', InputArgument::OPTIONAL, 'An example argument.'),\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n {\n return [];\n /*\t\treturn [\n ['example', InputArgument::REQUIRED, 'An example argument.'],\n ];\n */\n }", "protected function getArguments()\n {\n return [\n ['commit', InputArgument::OPTIONAL, 'A descricão do commit.'],\n // ['commit', InputArgument::REQUIRED, 'A descricão do commit.'],\n ];\n }", "protected function getArguments()\n {\n return [\n ['module', InputArgument::OPTIONAL, 'The module for the language file'],\n ['langFile', InputArgument::OPTIONAL, 'The language file to work on'],\n ['targetLocale', InputArgument::OPTIONAL, 'The target locale for which to add missing keys'],\n ];\n }", "protected function getArguments() {\n\t\treturn array();\n\t}", "protected function getArguments()\n {\n return [\n ['db_name', InputArgument::REQUIRED, 'Database name'],\n ];\n }", "public function getArguments()\n {\n return $this->arguments;\n }", "public function getArguments()\n {\n return $this->arguments;\n }", "public function getArguments()\n {\n return $this->arguments;\n }", "protected function getArguments()\n {\n return [\n ['name', InputArgument::REQUIRED, 'The name of the command.'],\n ['component', InputArgument::OPTIONAL, 'The name of component will be used.'],\n ];\n }", "protected function getArguments()\r\n\t{\r\n\t\treturn array();\r\n\t}", "protected function getArguments()\r\n\t{\r\n\t\treturn array();\r\n\t}", "protected function getArguments()\n {\n return [\n ['example', InputArgument::REQUIRED, 'An example argument.'],\n ];\n }", "protected function getArguments() {\n\t\treturn array(\n\t\t);\n\t}" ]
[ "0.7929734", "0.79042095", "0.7831461", "0.7587314", "0.75166816", "0.70980483", "0.7015334", "0.7015334", "0.7015334", "0.7015334", "0.7015334", "0.7011597", "0.7011597", "0.6969377", "0.6941954", "0.6919662", "0.69183534", "0.6889421", "0.6861143", "0.68576336", "0.6853908", "0.68240553", "0.68163955", "0.6801406", "0.6779744", "0.6773187", "0.6766259", "0.6718356", "0.66868067", "0.6682031", "0.6665992", "0.6665992", "0.6662437", "0.6646087", "0.6639124", "0.66325283", "0.6631554", "0.6631554", "0.663134", "0.663134", "0.6630261", "0.6630261", "0.6630261", "0.6629428", "0.66274405", "0.66246825", "0.6616279", "0.6616279", "0.6616279", "0.6616279", "0.6616279", "0.6616279", "0.6616279", "0.6616279", "0.6593955", "0.6593955", "0.6593955", "0.6593955", "0.6580068", "0.6580068", "0.6580068", "0.65620434", "0.6558061", "0.6558061", "0.6558061", "0.6558061", "0.6557318", "0.65526676", "0.65485007", "0.65485007", "0.65485007", "0.65485007", "0.65485007", "0.65485007", "0.65485007", "0.65485007", "0.65436697", "0.6535705", "0.65260065", "0.6516756", "0.65142566", "0.6511927", "0.6511927", "0.6511927", "0.6510059", "0.65032375", "0.65032375", "0.6496519", "0.6488758" ]
0.6550134
78
Get the console command options.
protected function getOptions() { return array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getOptions() {\n return [\n ['env', null, InputOption::VALUE_OPTIONAL, 'The environment the command should run under.', null],\n ];\n }", "protected function getOptions()\n {\n return [\n ['command', null, InputOption::VALUE_OPTIONAL, 'The terminal command that should be assigned', 'command:name'],\n ];\n }", "protected function getOptions()\n\t{\n\t\treturn [\n\t\t\t['testMode', null, InputOption::VALUE_OPTIONAL, 'Runs the command in Test Mode.', false],\n\t\t];\n\t}", "protected function getOptions()\n {\n $options = [];\n\n // Here we will gather all of the command line options that have been specified with\n // the double hyphens in front of their name. We will make these available to the\n // Blade task file so they can be used in echo statements and other structures.\n foreach ($_SERVER['argv'] as $argument) {\n if (! Str::startsWith($argument, '--') || in_array($argument, $this->ignoreOptions)) {\n continue;\n }\n\n $option = explode('=', substr($argument, 2), 2);\n\n if (count($option) == 1) {\n $option[1] = true;\n }\n\n $optionKey = $option[0];\n\n $options[Str::camel($optionKey)] = $option[1];\n $options[Str::snake($optionKey)] = $option[1];\n }\n\n return $options;\n }", "protected function getOptions()\n {\n return [\n ['database', null, InputOption::VALUE_OPTIONAL, 'The database connection to use.'],\n ['force', null, InputOption::VALUE_NONE, 'Force the operation to run when in production.'],\n ['path', null, InputOption::VALUE_OPTIONAL, 'The path of migrations files to be executed.'],\n ['pretend', null, InputOption::VALUE_NONE, 'Dump the SQL queries that would be run.'],\n\n ];\n }", "protected function getOptions()\n {\n return [\n ['database', null, InputOption::VALUE_OPTIONAL, 'The database connection to use.'],\n ];\n }", "protected function getOptions()\n {\n return [\n ['database', null, InputOption::VALUE_OPTIONAL, 'The database connection to use'],\n ];\n }", "protected function getOptions()\n {\n return [\n ['database', null, InputOption::VALUE_OPTIONAL, 'The database connection to use.'],\n ['native-import', null, InputOption::VALUE_NONE, 'Use the native importer'],\n ];\n }", "protected function getOptions()\n {\n return array(\n array('database', null, InputOption::VALUE_OPTIONAL, 'The database connection to use.'),\n array('pretend', null, InputOption::VALUE_NONE, 'Dump the SQL queries that would be run.'),\n array('seed', null, InputOption::VALUE_NONE, 'Indicates if the seed task should be re-run.'),\n array('force', null, InputOption::VALUE_NONE, 'Force the operation to run while in production.'),\n );\n }", "protected function getOptions()\n {\n return [\n ['port', null, InputOption::VALUE_OPTIONAL, 'The server port to use.', \\config('minions-server.port', 8085)],\n ];\n }", "protected function getOptions()\n {\n return [\n ['facade', '', InputOption::VALUE_NONE, 'Generate facade for current repository'],\n\n ['model', 'm', InputOption::VALUE_REQUIRED, 'Generate a resource repository for the given model'],\n ];\n }", "protected function getOptions()\n\t{\n\t\treturn [\n\t\t\t['attach', '-a', InputOption::VALUE_OPTIONAL, 'The pipes to attach to the workflow.', null],\n\t\t\t['unguard', '-u', InputOption::VALUE_NONE, 'Do not make this workflow validate data.', null],\n\t\t];\n\t}", "protected function getOptions()\n\t{\n\t\treturn [\n\t\t];\n\t}", "public final function getOptions()\n {\n return $this->_getOptions();\n }", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions() {}", "public function getOptions() {}", "public function getOptions() {}", "public function options()\n\t{\n\t\treturn [];\n\t}", "protected static abstract function getOptions();", "public function options()\n {\n return $this->options ?: [];\n }", "protected function getOptions() {\n\t\treturn array(\n\t\t);\n\t}", "protected function getOptions()\n {\n\n return [\n ['dry-run' , 'd', InputOption::VALUE_NONE, 'Dry Run'],\n ['payment' , 'p', InputOption::VALUE_NONE, 'Payment Address Only'],\n ['public' , 'u', InputOption::VALUE_NONE, 'Public Address Only'],\n ];\n }", "public function options()\n {\n return $this->options;\n }", "public function options()\n {\n return $this->options;\n }", "public function options()\n {\n return $this->options;\n }", "protected function getOptions()\r\n\t{\r\n\t\treturn isset($this->options) ? $this->options : array();\r\n\t}", "function get_options()\n{\n return php_sapi_name() == 'cli' ? get_options_cli() : get_options_url();\n}", "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "protected function getOptions()\n {\n return [\n ['format', 'f', InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'The names of formats you would like to generate.', null],\n ['regenerate', 'r', InputOption::VALUE_NONE, 'Whether all files must be regenerated even if exist.', null],\n ['temp', 't', InputOption::VALUE_NONE, 'Whether the temporary storage must be processed.', null],\n ];\n }", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t\tarray('dry-run', null, InputOption::VALUE_NONE, 'Displays the new cron without making any changes.', null),\n\t\t);\n\t}", "protected function _getCliOptions()\n {\n $cliOptions = array();\n\n foreach ($_SERVER['argv'] as $arg) {\n if (substr($arg, 0, 2) == '--' && strpos($arg, '=') !== false) {\n $option = substr($arg, 2);\n $option = explode('=', $option);\n\n $cliOptions[$option[0]] = $option[1];\n }\n }\n\n return $cliOptions;\n }", "protected function getOptions() {\n\t\treturn array();\n\t}", "public function getOpts(): array\n {\n return $this->opts;\n }", "public function getOpts(): array\n {\n return $this->opts;\n }", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "protected function getOptions()\n {\n return [\n ['model', 'm', InputOption::VALUE_OPTIONAL, 'Generate a repository for the given model.'],\n ];\n }", "public function getOptions()\n {\n return $this->options->getOptions();\n }", "protected function getOptions()\r\n\t{\r\n\t\treturn array();\r\n\t}", "protected function getOptions()\n {\n return [\n ['model', 'm', InputOption::VALUE_OPTIONAL, 'Inject a model to the controller.'],\n ['repository', 'r', InputOption::VALUE_OPTIONAL, 'Inject a repository to the controller.'],\n ['view', '', InputOption::VALUE_OPTIONAL, 'Generate a view controller class.'],\n ];\n }", "protected function getOptions()\n {\n return [\n ['show', null, InputOption::VALUE_NONE, 'Simply display the key instead of modifying files.'],\n ];\n }", "protected function getOptions()\n {\n return array(\n array('dry-run', null, InputOption::VALUE_NONE, 'Only shows which files would have been modified.'),\n array('force', 'f', InputOption::VALUE_NONE, 'Do not confirm before editing files.'),\n array('path', null, InputOption::VALUE_OPTIONAL, 'Path containing the files to be fixed.', 'app')\n );\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }" ]
[ "0.7800682", "0.77591324", "0.751765", "0.7345173", "0.73404354", "0.7306238", "0.72790045", "0.7268271", "0.7237944", "0.71917665", "0.715652", "0.7155546", "0.7137", "0.71122515", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.70998144", "0.70998144", "0.7099153", "0.7092979", "0.7084178", "0.70818704", "0.70631355", "0.7055609", "0.7040382", "0.7040382", "0.7040382", "0.7036282", "0.70356953", "0.70315164", "0.70315164", "0.70315164", "0.70315164", "0.70315164", "0.70315164", "0.70315164", "0.70315164", "0.70315164", "0.70281166", "0.70248216", "0.7022473", "0.70166355", "0.70108926", "0.70108926", "0.70083207", "0.70083207", "0.70083207", "0.70083207", "0.70083207", "0.70083207", "0.70083207", "0.6996981", "0.6996434", "0.6994164", "0.6993292", "0.6984455", "0.69844353", "0.69752616", "0.69752616", "0.69752616", "0.69752616", "0.69752616", "0.69752616", "0.69752616", "0.69752616", "0.69752616", "0.69752616", "0.69752616", "0.69752616", "0.69752616", "0.69752616", "0.69752616", "0.69752616", "0.69752616" ]
0.70230496
63
Execute the console command.
public function fire() { if (!is_dir(base_path('vendor/angel'))) { $this->error('The vendor/angel directory does not exist.'); return; } $this->info('Publishing Angel package assets...'); chdir(base_path()); foreach (glob(base_path('vendor/angel/*')) as $dir) { if (!is_dir($dir)) { $this->error('Not a directory: ' . $dir); continue; } preg_match('/vendor\/(.+)/', $dir, $matches); $package = $matches[1]; $this->exec('php artisan asset:publish ' . $package); } $this->info('...all Angel package assets have been published.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "public function handle()\n {\n //get us the Converter class instance and call the convert() method on it.\n $this->info(\n \\Aregsar\\Converter\\ConverterFacade::convert($this->argument(\"currency\"))\n );\n }", "public function handle()\n {\n $this->locale = $this->argument('locale');\n\n $this->loadGroupLines();\n\n $this->loadNameSpacedLines();\n\n $this->info('Complete');\n }", "public function handle()\n {\n $this->importUser($this->argument('username'));\n $this->call('ldap:show-user', $this->arguments());\n }", "public function handle() {\n $user = User::where('id', $this->argument('userId'))->first();\n $this->info($user->email);\n }", "public function handle()\n {\n $translations = collect(json_decode(file_get_contents('https://raw.githubusercontent.com/getbible/Bibles/master/translations.json')))->flatten();\n switch($this->argument('action')) {\n case 'fetch':\n $this->fetchBibles($translations);\n break;\n case 'convert':\n $this->convertBibles($translations);\n break;\n }\n }", "public function handle()\n {\n try {\n $evalstr = $this->evaluater->evaluate($this->argument('evalString'));\n $this->info($evalstr);\n } catch (ForbiddenSymbolsException $exception) {\n $this->error($exception->getMessage());\n } catch (IncorrectSymbolsException $exception) {\n $this->error($exception->getMessage());\n }\n }", "public function handle()\n {\n\n $settings = Setting::fetch();\n $id = $this->argument('id');\n $this->scrape_game_data($id);\n }", "public function handle()\n {\n // env('CALENDARINDEX_TOKEN', '6f2bd927201ba4b22bb57df08db0c517e51732de')\n $this->getData($this->argument('country'), $this->argument('region'));\n }", "public function handle()\n {\n $email = $this->argument('email');\n $name = $this->argument('name');\n\n $this->info(\"starting to generate users details\");\n\n }", "public function handle()\n {\n\t\t$this->info('Importing translations...');\n\n\t\t$this->manager->importTranslations(true);\n }", "public function handle()\n {\n $user = null;\n\n if ($email = $this->option(\"email\", false)) {\n $user = $this->findByEmail($email);\n }\n\n if ($id = $this->option(\"id\", false)) {\n $user = $this->findById($id);\n }\n\n if (empty($user)) {\n $this->warn(\"User no found\");\n }\n else {\n $this->setRoleToUser($user);\n }\n }", "public function handle()\n {\n $name = ucwords($this->argument('name'));\n $this->call('repository:contract', [ 'name' => $name ]);\n $this->call('repository:class', [ 'name' => $name, '--driver' => $this->option('driver') ]);\n }", "public function handle()\n\t{\n\t\t// Superuser\n\t\tif( ! $this->option('no-superuser'))\n\t\t\t$this->call('setup:superuser');\n\n\t\t// Countries\n\t\tif( ! $this->option('no-countries'))\n\t\t\t$this->call('setup:countries', ['country' => array_filter(explode(',', $this->option('countries')))]);\n\n\t\t// Languages\n\t\tif( ! $this->option('no-languages'))\n\t\t\t$this->call('setup:languages', ['language' => array_filter(explode(',', $this->option('languages')))]);\n\n\t\t// Currencies\n\t\tif( ! $this->option('no-currencies'))\n\t\t\t$this->call('setup:currencies', ['currency' => array_filter(explode(',', $this->option('currencies')))]);\n\n\t\t// Clear cache\n\t\t$this->call('cache:clear');\n\t}", "public function handle()\n\t{\n\t\t$name = $this->argument('name');\n\t\t\n\t\t$this->info(\"Searching eve api for {$name}\");\n\t\t$result = Corporation::searchEVEAPI($name);\n\n\t\t$this->info(\"results\");\n\t\tforeach($result as $corp)\n\t\t{\n\t\t\tprint $corp->name . \" \" . $corp->id . \"\\r\\n\";\n\t\t}\n\t}", "public function handle()\n {\n $user = $this->argument('user');\n $this->info('Display this on the screen, user ' . $user);\n return 0;\n }", "public function handle()\n {\n $this->userVectors->test($this->option('force'));\n }", "public function handle()\n {\n $mapping = $this->formatMappingName((string)$this->argument('mapping'));\n \n $model = $this->option('model') ? $this->formatModelName($this->option('model')) : null;\n \n $this->filesystem->put(\n $this->buildMappingFilePath($mapping),\n $this->buildMapping(\n $this->getDefaultStub(),\n $mapping,\n $model\n )\n );\n \n $this->composer->dumpAutoloads();\n }", "public function handle()\n {\n switch ($this->argument('type')) {\n case 'dns':\n $this->dnscheck->run($this->option('dry-run') ? true : false, $this->argument('domain'));\n break;\n case 'whois':\n $this->whoischeck->run($this->option('dry-run') ? true : false, $this->argument('domain'));\n break;\n }\n }", "public function handle()\n {\n $option = $this->argument('option');\n\n if (! in_array($option, ['expired', 'all'])) {\n return $this->error('Invalid option supplied to command...');\n }\n\n $this->comment('Beginning pruning process...');\n\n $this->comment($this->pruneDatabase($option) . ' deleted from database...');\n\n $this->comment($this->pruneFiles($option) . ' deleted from files...');\n\n $this->info('Nonces pruned successfully!');\n }", "public function handle()\n {\n $subscriptionUpdateService = new SubscriptionUpdateService();\n $subscriptionUpdateService->runUpdates();\n }", "public function handle()\n\t{\n\t\t\n\t\t$source_directory = $this->argument( 'source_directory' );\n\t\t$target_directory = $this->argument( 'target_directory' );\n\t\t$template = (string) $this->option( 'template' );\n\n\t\t$statik = new \\App\\Statik\\Statik;\n\n\t\t$statik->generateHTMLFiles( $this, $source_directory, $target_directory, $template ) && $this->info( \"\\e[1;32mDONE!\" );\n\n\t}", "public function handle()\n {\n if (!$this->argument('file')) {\n $this->info('Please specify file to call.');\n }\n\n $file = $this->argument('file');\n\n if (!$this->fileHandler->exists($file)) {\n $this->info('Wrong path or file not exist.');\n }\n\n $this->executeFile($file);\n }", "public function handle()\n {\n $user = $this->argument('user');\n $this->scanner->setUserName($user);\n $this->scanner->scanUser();\n }", "public function handle()\n {\n if ($this->argument('user')) {\n $userId = $this->argument('user');\n\n $this->info(\"Liquidate affiliate commission for user \" . $userId);\n\n $user = $this->userService->findById($userId);\n\n if ($user) {\n $this->walletService->liquidateUserBalance($user);\n } else {\n $this->error(\"User not found\");\n }\n\n $this->info(\"Done\");\n } else {\n $this->info(\"Liquidate all commissions\");\n\n $this->walletService->liquidateAllUsersBalance();\n\n $this->info(\"Done\");\n }\n }", "public function handle()\n {\n $action = $this->choice('what action do you have on mind', [\n 'add-relation', 'remove-columns', 'column-type', 'rename-column'\n ]);\n switch ($action) {\n case 'add-relation':\n $this->addRelation();\n break;\n\n case 'remove-columns':\n $this->removeColumns();\n break;\n case 'column-type':\n $this->columnType();\n break;\n case 'rename-column':\n $this->renameColumn();\n break;\n default:\n $this->error('Unsupported action requested...');\n }\n $this->info('Command executed successfully');\n }", "public function handle()\n {\n $arguments = $this->arguments();\n $storageDir = $arguments['storageDir'];\n $localStorageDir = $arguments['localStorageDir'];\n $url = $arguments['url'];\n $cmd = sprintf(\"./app/Console/Commands/ShellScripts/screen_shot.sh %s %s %s\", $storageDir, $localStorageDir, $url);\n\n while (true) {\n $result = shell_exec($cmd);\n print_r($result);\n sleep(3);\n }\n }", "public function handle()\n {\n $city = $this->argument('city');\n\n $weatherService = new CurrentWeatherService();\n try {\n $weather = $weatherService->getByCity($city);\n } catch (WeatherException $e) {\n $this->error($e->getMessage());\n return;\n }\n\n $this->info('Weather for city '.$city);\n dump($weather->toArray());\n }", "public function handle()\n {\n $this->getModels($this->argument('model'));\n $this->getLanguages($this->argument('locale'));\n $this->createMultiLanguageRecords();\n }", "public function handle()\n {\n $this->processOptions();\n\n echo json_encode( $this->dateTimeRange ) . \"\\n\";\n\n $this->dispatch( new ProcessNewActionsJob(\n $this->dateTimeRange ,\n str_random( 16 ),\n $this->option('runtime-threshold')\n ) );\n }", "public function handle()\n {\n $fightId = $this->argument('fight_id');\n $metricId = $this->argument('metric_id');\n //$strategyName = 'App\\\\'.$this->argument('metric_name');\n\n $metric = BossMetric::find($metricId);\n if ($metric === null) {\n $this->error(\"Error: no metric with id: $metricId found!\");\n return;\n }\n\n $fight = Fight::find($fightId);\n\n if ($fight === null) {\n $this->error(\"Error: no fight with id: $fightId found!\");\n return;\n }\n\n $strategy = $metric->getStrategy();\n $strategy->setFight($fight);\n $strategy->run();\n }", "public function handle()\n {\n\t\t$this->call('vendor:publish');\n\t\t$this->call('migrate');\n\t\t$this->call('db:seed');\n\t\t$this->call('factotum:storage');\n\t\t$this->call('factotum:storage');\n }", "public function handle()\n {\n $user_id = $this->argument('user') ?? null;\n\n if (is_null($user_id)) {\n $users = User::all();\n\n foreach ($users as $user) {\n $this->showUserBalance($user);\n }\n } else {\n $user = User::find($user_id);\n\n $this->showUserBalance($user);\n }\n }", "public function handle()\n {\n $this->capsuleService->getAll();\n $this->line('Command Worked');\n }", "public function handle()\n {\n $platform_wechat_id = $this->argument('id');\n $customer_id = $this->argument('customer_id');\n $this->info(\"Starting at \".date('Y-m-d H:i:s').\". Running initial for 【{$this->signature}】\");\n $this->getUserInfoList($platform_wechat_id,$customer_id);\n $this->info(\"End at \".date('Y-m-d H:i:s').\". over for 【{$this->signature}】\");\n }", "public function handle()\n {\n $this->publishAssets();\n $this->call('twill:flush-manifest');\n $this->call('view:clear');\n }", "public function handle()\n {\n \n $argument = $this->argument('data');\n \n $this->prepare( $argument );\n \n $this->make();\n \n $this->info( 'migration has been created : '. $this->fileName );\n \n }", "public function handle()\n {\n chdir(resource_path('assets/ts'));\n $path = $this->argument(\"path\");\n if(isset($path))\n {\n Logger::info('execute '.$path);\n Command::executeRaw('tsc', [\"-p\", $path]);\n }else\n Logger::info('execute tsc');\n Command::executeRaw('tsc');\n }", "public function handle()\n {\n $this->info('Starting date change command.');\n\n Word::where('language_id', 1)->update(array('created_at' => '1970-01-01 00:00:01'));\n Word::where('language_id', 2)->update(array('created_at' => '1970-01-01 00:00:01'));\n\n $this->info('Dates have been changed to 1970-01-01 00:00:01');\n }", "public function handle()\n {\n $this->info($this->slugger->encode($this->argument('id')));\n }", "public function handle()\n {\n $this->line(static::$logo);\n $this->line('Neat admin current version:' . Neat::version());\n\n $this->comment('');\n $this->comment('Available commands:');\n\n $this->listAvailableCommands();\n }", "public function handle()\n {\n $this->revisions->updateListFiles();\n }", "public function handle(): void\n {\n // Set argument\n $this->url = $this->argument(self::URL_ARGUMENT);\n\n // Handler takes care of computation\n (new CommandHandler($this))->compute();\n }", "public function handle()\n {\n try\n {\n $filename = $this->argument('filename');\n Excel::import(new ObjectsImport, $filename);\n\n $this->info('Data import is now completed');\n }\n catch(Exception $ex)\n {\n $this->error($ex->getMessage());\n }\n }", "public function handle() {\n $entity = $this->validateEntity($this->argument('entity'));\n $job = new DataProcessingJob($entity, str_random(16));\n $this->dispatch($job);\n }", "public function handle()\n {\n $isProductionMode = 'prod' == $this->argument('mode');\n\n if ($isProductionMode) {\n if (!$this->confirm('Are you sure to run in production mode? Running this command may cause critical issues?')) {\n exit(1);\n }\n }\n\n $this->_recalculate($isProductionMode);\n }", "public function handle()\n {\n if(!$this->verify()) {\n $rank = $this->createRankSuperAdmin();\n $user = $this->createUserSuperAdmin();\n $user->Ranks()->attach($rank);\n $this->line('Felicitaciones');\n } else {\n $this->error('No se puede ejecutar');\n }\n }", "public function handle()\n {\n // Get CLI Input\n $user_id = $this->option(\"uid\");\n\n // User Products\n ( new CommandManager() )->showUserProducts( $user_id );\n }", "public function handle()\n {\n $force = $this->option('force');\n\n if($this->option('without-bulk')){\n $this->withoutBulk = true;\n }\n\n if ($this->generateClass($force)){\n $this->info('Generating permissions for '.$this->modelBaseName.' finished');\n }\n }", "public function handle()\n {\n $tournaments = Tournament::all()->toArray();\n foreach ($tournaments as $tournament) {\n $slug = $this->tournamentRepoObj->generateSlug($tournament['name'].Carbon::createFromFormat('d/m/Y', $tournament['start_date'])->year,'');\n DB::table('tournaments')\n ->where('id', $tournament['id'])\n ->update([\n 'slug' => $slug\n ]);\n }\n $this->info('Script executed.');\n }", "public function handle()\n {\n $userId = $this->argument('user');\n\n /** @var User $user */\n $user = User::findOrFail($userId);\n\n // Get token.\n $info = (new Client())->auth();\n\n // Save to db.\n $user->access_token = $info['access_token'];\n $user->access_secret = $info['access_secret'];\n $user->save();\n\n $this->line(\"Saved access token and secret for user: {$user->email}\");\n }", "public function handle()\n {\n $m = new MemberFromText;\n $m->train();\n $id = $m->predict($this->argument('text'));\n dump(Miembro::find($id)->toArray());\n }", "public function handle()\n {\n $this->generator\n ->setConsole($this)\n ->run();\n }", "public function handle()\n {\n $this->createController();\n $this->createServiceDir();\n\n exit;\n $args = [\n '--provider' => TestProvider::class\n ];\n $className = $this->argument('className');\n if (!$className) {\n $className = 'MethodsList';\n }\n $className = ucwords($className);\n $this->call('vendor:publish', $args);\n $this->info('Display this on the screen ' . $className);\n }", "public function handle()\n {\n $this->createDirectories();\n\n $this->publishTests();\n\n $this->info('Authentication tests generated successfully.');\n }", "public function handle()\n {\n $this->setDbConnection(\n $this->input->getOption('database') ?: config('ghost-database.default_connection')\n );\n\n $native = $this->input->getOption('native-import') ?: config('ghost-database.use_native_importer');\n\n $snapshot = $this->import($native);\n\n $this->info(\"Snapshot `{$snapshot->name}` loaded!\");\n }", "public function handle()\n {\n $exec = $this->argument('exec');\n\n switch ($exec) {\n case 'download' :\n $this->download();\n break;\n\n case 'generate' :\n $this->generate();\n break;\n\n default :\n echo \"Choose 'download' or 'generate' for this command\";\n break;\n }\n }", "public function handle()\n {\n $this->call('ziggy:generate', ['path' => './resources/js/ziggy-admin.js', '--group' => 'admin']);\n $this->call('ziggy:generate', ['path' => './resources/js/ziggy-frontend.js', '--group' => 'frontend']);\n $this->call(TranslationsGenerateCommand::class);\n }", "public function handle()\n {\n $tenantName = $this->argument('tenant');\n\n $tenant = Tenant::where('name', $tenantName)->orWhere('subdomain', $tenantName)->first();\n\n if ($tenant) {\n $tenant->setActive();\n \\Artisan::call('tinker');\n } else {\n $this->error('Error: Tenant not found');\n }\n }", "public function handle()\n {\n try {\n if (!empty($userId = $this->argument('user'))) {\n $user = User::find($userId);\n } else {\n $user = User::inRandomOrder()->first();\n }\n\n if (empty($user)) {\n throw new \\Exception('User not found');\n }\n\n echo JWTAuth::fromUser($user);\n } catch (\\Exception $e) {\n echo $e->getMessage();\n }\n\n }", "public function handle()\n {\n $this->fetchAndSetToken();\n $imagesToDownload = $this->peekImages(WatchedApp::pluck('package_name'));\n $this->fetchImages($imagesToDownload);\n\n if ($this->option('dont-optimize')) {\n return;\n }\n\n $this->runOptimizeCommand();\n }", "public function handle()\n {\n $this->setCryptIVFromUrl($this->argument('url'));\n\n $participant = URLParser::parseByName('santa.index', $this->argument('url'))->participant;\n if($participant) {\n $draw = $participant->draw;\n } else {\n $draw = URLParser::parseByName('organizer.index', $this->argument('url'))->draw;\n }\n\n $this->table(\n ['ID', 'Name', 'Email'],\n $draw->participants()->get(['id', 'name', 'email'])->toArray()\n );\n }", "public function handle()\n {\n // if you are on the local environment\n if (!(app()->isLocal() || app()->runningUnitTests())) {\n $this->error('This command is only available on the local environment.');\n return;\n }\n\n $fqdn = $this->argument('fqdn');\n if ($tenant = Tenant::retrieveBy($fqdn)){\n $tenant->delete($fqdn);\n $this->info(\"Tenant {$fqdn} successfully deleted.\");\n }else {\n $this->error('This fqdn doesn\\'t exist.');\n }\n\n }", "public function handle()\n {\n $user_from = $this->option('from');\n $user_to = $this->option('to');\n $sum = $this->option('sum');\n\n CreateTransaction::dispatch($this->usersRepository->getByID($user_from), $this->usersRepository->getByID($user_to), $sum, true);\n $this->transactionsRepository->getAll()->each(function ($transaction){\n \tExecuteTransaction::dispatch($transaction);\n });\n }", "public function handle()\n {\n $this->warn('Starting Retrieve Data');\n\n PeopleService::retrieveData();\n\n $this->info('Retrieve Data Completed');\n }", "public function handle()\n {\n \n $period = $this->option('period');\n \n switch ($period) {\n\n case 'half_month':\n $this->info('Grabing Half Month Income...');\n $this->halfMonth();\n break;\n\n case 'monthly':\n $this->info('Grabing Monthly Income...');\n $this->monthly();\n break;\n \n default:\n $this->info('Grabing Daily Income...');\n $this->daily();\n break;\n\n }\n\n \n }", "public function handle()\n {\n $countryFiles = $this->getFiles();\n\n foreach ($countryFiles as $fileName) {\n $this->seed($fileName);\n }\n\n $this->info('End.');\n }", "public function fire()\n {\n $entityName = $this->argument('entityName');\n $startEntityId = $this->argument('startEntityId');\n $endEntityId = $this->argument('endEntityId');\n $depth = $this->argument('depth');\n\n $this->fixturePath = $this->option('outputPath');\n\n $this->info(\"Generating fixtures for $entityName in {$this->fixturePath}...\");\n \n $this->generateFixtures($entityName, $startEntityId, $endEntityId, $depth);\n }", "public function handle()\n {\n $check = PublishTraitsService::publishTraits();\n\n if ($check)\n {\n $this->info('All files have been published');\n }\n\n $this->info('Failed to publish');\n }", "public function handle()\n {\n $user = User::where('username', $this->argument('user'))\n ->orWhere('email', $this->argument('user'))\n ->first();\n\n if ($user != null) {\n $user->assign('admin');\n $this->line(\"{$user->email} was successfully made an admin.\");\n } else {\n $this->line(\"No user found where username or email is '{$this->argument('user')}'\");\n }\n }", "public function handle()\n {\n event( 'laraview:compile' );\n $this->checkForSelectedViewGeneration();\n\n app( RegisterBlueprint::class )\n ->console( $this )\n ->generate();\n }", "public function handle()\n {\n $project = Project::with(['team.admins', 'team.members'])->findOrFail($this->option('project-id'));\n $user = User::findOrFail($this->option('user-id'));\n if ($this->option('admin')) {\n $project->team->admins()->syncWithoutDetaching($user);\n } else {\n $project->team->members()->syncWithoutDetaching($user);\n }\n return Command::SUCCESS;\n }", "public function handle() {\n try {\n $this->roomService->loadRoomOccupations();\n Log::notice('untis:occupations executed successfully.');\n $this->line('Loaded room occupations from WebUntis.');\n } catch (Exception $e) {\n Log::error('Error loading room occupations.', ['exception' => $e]);\n $this->error('Error loading room occupations: ' . $e->getMessage());\n }\n }", "public function handle()\n {\n $this->loadIxList();\n $this->loadIxMembersList();\n $this->updateIxInfo();\n $this->updateIxMembersInfo();\n }", "public function handle()\n {\n $this->call('vendor:publish', [\n '--provider' => \"Qoraiche\\MailEclipse\\MailEclipseServiceProvider\",\n ]);\n }", "public function handle()\n\t{\n\t\tif ($this->option('dev')) {\n\t\t\tsystem('php '.base_path('.deploy/deploy-dev.php'));\n\t\t} else {\n\t\t\tsystem('php '.base_path('.deploy/deploy.php'));\n\t\t}\n\t}", "public function handle(Command $command);", "public function handle(Command $command);", "public function handle()\n {\n $date_from = $this->argument('date_from');\n\t\t$date_to = $this->argument('date_to');\n\t\tif(!$date_from) {\n\t\t\t$date_from = Carbon::today()->subDays(5);\n\t\t}\n\t\tif(!$date_to) {\n\t\t\t$date_to = Carbon::yesterday();\n\t\t}\n\t\tStats::computeMembers($this->argument('venue_id'), $date_from, $date_to);\n }", "public function handle()\n {\n switch ($this->argument('type')){\n case 'fih':\n $scrapper = new Scrappers\\FederationScrapper();\n $scrapper->get($this->option('level'));\n print $scrapper->message();\n break;\n }\n }", "public function handle()\n {\n Log::info(\"seed:dash Command is working fine!\");\n $this->info('Dashboard Database seeding completed successfully.');\n }", "public function handle()\n {\n $originalId = $this->argument('original_id');\n\n $status = true;\n if ($this->option('status') === 'false') {\n $status = false;\n }\n\n if ($video = Video::where('original_id', $originalId)->first()) {\n $video->dmca_claim = $status;\n $video->save();\n\n $this->info('Video\\'s dmca_claim set to: ' . json_encode($status));\n return ;\n }\n\n $this->error('No video found with original_id of: ' . $originalId);\n return;\n }", "public function handle()\n {\n $this->call('config:clear');\n\n $this->call('config:update');\n\n $this->info('Configuration cached successfully!');\n }", "public function handle()\n {\n //\n $modelName = $this->argument('model');\n $column = $this->argument('column');\n $this->generateMutation($modelName, $column);\n\n }", "public function handle()\n {\n $filePath = 'public/' . $this->argument('fileName');\n $count = $this->argument('count');\n \n $fileData = array_slice(file($filePath), 0, $count);\n $this->info(implode('', $fileData));\n }", "public function handle()\n {\n $email = $this->argument('email');\n\n Mail::to($email)->send(new SendMailable('Test Mail'));\n\n if (Mail::failures()) {\n $this->info('Email failed to send');\n } else {\n $this->info('Email successfully sent');\n }\n }", "public function handle()\n {\n $this->call('route:trans:clear');\n\n $this->cacheRoutesPerLocale();\n\n $this->info('Routes cached successfully for all locales!');\n }", "public function handle()\n {\n $this->info('Welcome to command for Bantenprov\\WilayahIndonesia package');\n }", "public function handle()\n {\n if($this->hasOption('no_dump') && $this->option('no_dump')){\n $this->composer_dump = false;\n }\n $this->readyDatas();\n $this->datas['startSymbol']='{{';\n $this->datas['endSymbol']='}}';\n $this->create();\n }", "public function handle()\n {\n $repository = new OglasiCrawlerRepository();\n $ads = $repository->getAds();\n $repository->saveAds($ads);\n\n echo 'Ads were successfully retrieved' . PHP_EOL;\n }", "public function handle()\n {\n $this->makeDir($this->basePath . $this->kebabPlural());\n\n $this->exportViews();\n\n $this->info('Resource views generated successfully.');\n }", "public function handle()\n {\n $movies = \\App\\Models\\Movie::whereNull('meta')->take(40)->orderBy('id')->get();\n $movies->each(function($movie){ sleep(1); $movie->getMeta(); });\n return Command::SUCCESS;\n }", "public function handle()\n {\n $this->packageGenerator->setConsole($this)\n ->setPackage($this->argument('package'))\n ->setType('shipping')\n ->setForce($this->option('force'))\n ->generate();\n }", "public function handle()\n {\n $test = $this->argument('test');\n\n $dir = config('speed-test.dir');\n\n $className = ucfirst(\\Str::camel($test));\n\n $namespace = config('speed-test.namespace');\n\n $class = class_entity($className)\n ->namespace($namespace);\n\n $class->method('speed1')\n ->line($this->option('line'))->doc(function ($doc) use ($className) {\n /** @var DocumentorEntity $doc */\n $doc->tagCustom('times', $this->option('times'));\n $doc->description($this->option('description') ?: \"{$className} Speed 1\");\n });\n\n if (! is_dir($dir)) {\n mkdir($dir, 0777, 1);\n }\n\n file_put_contents(\n $dir.'/'.$className.'.php',\n $class->wrap('php')\n );\n\n $this->info('Speed created!');\n\n return 0;\n }", "public function handle()\n {\n $message = $this->GenerateRandomUser($this->argument('count'));\n $this->info($message);\n }", "public function handle()\n {\n $host = Cache::get('executingHost', null);\n $this->info(\"Host: ${host}\");\n\n if ($host === null) {\n $this->info('実行するホストが選択されていません');\n return;\n }\n\n if (Schema::hasTable('companies') && Company::count() !== 0) {\n $this->info('マイグレーションが既に1回以上実行されています');\n return;\n }\n\n $should_execute = $host === $this->argument('executingHost');\n\n if ($should_execute) {\n Artisan::call('migrate:fresh', ['--seed' => true]);\n $this->info('マイグレーションが完了しました');\n\n Cache::forget('executingHost');\n } else {\n $this->info('別ホストにてマイグレーションが行われます');\n }\n }", "public function handle()\n {\n // Configuration...\n $this->callSilent('vendor:publish', ['--tag' => 'model-login-config']);\n\n // Migrations\n $this->callSilent('vendor:publish', ['--tag' => 'model-login-migrations']);\n\n $this->info('Model Login resources published.');\n }", "public function handle()\n {\n if ($this->validation()) {\n $money = $this->argument('money');\n Cache::increment('amount', $money);\n }\n }", "public function handle()\n {\n $this->info('Publishing stuff..');\n\n $this->publishFiles();\n\n $this->info('Setup complete. Enjoy!');\n }", "public function handle()\n {\n $this->publishConfig();\n $this->publishClassStub();\n $this->generateAndStoreKey();\n\n $this->info('Use the details below for your \"Lead delivery options\" in Google Ads.');\n $this->info('Webhook URL: ' . route('GoogleAdsLeadExtensionController@index'));\n $this->info('Key: ' . $this->generated_key);\n }", "public function handle()\n {\n $opts = $this->options();\n $args = $this->arguments();\n #print_r($opts);\n #print_r($args);\n\n # Redundant as argument validation handled by Laravel\n #\n if (!isset($args['destination'])) {\n printf(\"Usage: php artisan %s\\n\", $this->signature);\n exit(1);\n }\n\n # Default to normal message type\n #\n if (!isset($opts['type'])) {\n $opts['type'] = 'normal';\n }\n\n $uac = new UserApiController();\n\n if ($opts['type'] == 'normal') {\n if (!isset($opts['message'])) {\n printf(\"Usage: php artisan %s\\n\\n\", $this->signature);\n printf(\"ERROR: Message must be specified for type 'normal'\\n\");\n exit(1);\n }\n $result = $uac->sendSms(\n $args['destination'],\n $opts['message'],\n $opts['route']\n );\n }\n else if ($opts['type'] == 'otp') {\n $result = $uac->sendVerificationSms(\n $args['destination'],\n '<code>',\n '<name>',\n $opts['route'],\n '<appName>'\n );\n }\n\n if ($result === true) {\n printf(\"INFO: SMS message to %s sent successfully (%s)\\n\",\n $args['destination'], $opts['type']);\n }\n else {\n printf(\"INFO: SMS message to %s failed to send (%s)\\n\", \n $args['destination'], $opts['type']);\n printf(\"ERROR: %s\\n\", $result);\n }\n\n return;\n }" ]
[ "0.6469962", "0.6463639", "0.64271367", "0.635053", "0.63190264", "0.62747604", "0.6261977", "0.6261908", "0.6235821", "0.62248456", "0.62217945", "0.6214421", "0.6193356", "0.61916095", "0.6183878", "0.6177804", "0.61763877", "0.6172579", "0.61497146", "0.6148907", "0.61484164", "0.6146793", "0.6139144", "0.61347336", "0.6131662", "0.61164206", "0.61144686", "0.61109483", "0.61082935", "0.6105106", "0.6103338", "0.6102162", "0.61020017", "0.60962653", "0.6095482", "0.6091584", "0.60885274", "0.6083864", "0.6082142", "0.6077832", "0.60766655", "0.607472", "0.60739267", "0.607275", "0.60699606", "0.6069931", "0.6068753", "0.6067665", "0.6061175", "0.60599935", "0.6059836", "0.605693", "0.60499364", "0.60418284", "0.6039709", "0.6031963", "0.6031549", "0.6027515", "0.60255647", "0.60208166", "0.6018581", "0.60179937", "0.6014668", "0.60145515", "0.60141796", "0.6011772", "0.6008498", "0.6007883", "0.60072047", "0.6006732", "0.60039204", "0.6001778", "0.6000803", "0.59996396", "0.5999325", "0.5992452", "0.5987503", "0.5987503", "0.5987477", "0.5986996", "0.59853584", "0.5983282", "0.59804505", "0.5976757", "0.5976542", "0.5973796", "0.5969228", "0.5968169", "0.59655035", "0.59642595", "0.59635514", "0.59619296", "0.5960217", "0.5955025", "0.5954439", "0.59528315", "0.59513766", "0.5947869", "0.59456027", "0.5945575", "0.5945031" ]
0.0
-1
$full_url = $url.'?'.( $_SERVER['QUERY_STRING'] ? $_SERVER['QUERY_STRING'] : '1=1');
private function load_pagination($url, $total_rows, $show_rows, $offset, $cur_count, $sortby = null, $sortas = null){ $full_url = $url.'?1=1'; if($sortby) $full_url .= '&sortby='.$sortby; if($sortas) $full_url .= '&sortas='.$sortas; $page_data['links'] = self::get_pagination($full_url, $total_rows, $show_rows); $page_data['from_offset'] = $offset + 1; $page_data['to_offset'] = $offset + $cur_count; $page_data['total'] = $total_rows; $this->load->view('admin/pagination', $page_data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function extend_url(&$url, $append)\n{\n if (($append != '') && (strpos($url, '?' . $append) === false) && (strpos($url, '&' . $append) === false)) {\n $url .= ((strpos($url, '?') === false) ? '?' : '&') . $append;\n }\n}", "function addURLQuery($query){\n\t\t$query = \"?\".$query.\"&\";\n\t\tforeach($_GET as $k=>$v){\n\t\t\t$query .= \"$k=$v\".\"&\";\n\t\t}\n\t\t$query = substr($query, 0, -1);//chop last ampersand off\n\t\t$curl = preg_replace('/\\?.*/', '', curPageURL()); //get current URL and remove the query string\n\t\treturn $curl.$query;\n\t}", "private function _buildUri(): string {\n return !empty($this->query) ? $this->uri.'?'.http_build_query($this->query) : $this->uri;\n }", "function getURLString(){\n $url = $_SERVER['REQUEST_URI'];\n $aurl = explode('?', $url);\n if(count($aurl) > 1)\n { \n $query = $aurl[1];\n parse_str($query, $params);\n return $params;\n }\n return array();\n}", "function mergeQueryString($options, $prepend = \"?\")\n{\n // Parse querystring into array\n $query = [];\n parse_str($_SERVER[\"QUERY_STRING\"], $query);\n\n // Merge query string with new options\n $query = array_merge($query, $options);\n\n // Build and return the modified querystring as url\n return $prepend . http_build_query($query);\n}", "function rebuild_url($add = array(), $remove = array(), $open_ended = false) {\n $url_parts = parse_url(URL);\n if(!empty($url_parts['query'])) {\n parse_str($url_parts['query'],$query_string);\n foreach($remove AS $key) {\n unset($query_string[$key]);\n }\n } else {\n $query_string = array();\n }\n $query_string = array_merge($query_string,$add);\n $replace = '';\n if(count($query_string)) {\n $replace = '?'.http_build_query($query_string);\n if($open_ended) {\n $replace .= '&';\n }\n } elseif($open_ended) {\n $replace .= '?';\n }\n return URL_NOQUERY.$replace;\n}", "function sa_dev_qstring($arg=null,$value=null,$qstring=null){\n // null value removes arg from querystring\n $query_string = array();\n if($qstring==null) $qstring = $_SERVER['QUERY_STRING'];\n parse_str($qstring, $query_string); \n if(!empty($arg)) $query_string[$arg] = $value;\n $new_str = http_build_query($query_string,'','&amp;');\n return $new_str;\n}", "function CreateURL($url,$querystring='',$encode=false,$redirect=false)\n{\n\t$url = ROOTURL.'/'.$url;\n\tif($querystring)\n\t{\n\t\tif($encode)\n\t\t{\n\t\t\treturn $url.'?'.Encode($querystring);\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $url.'?'.$querystring;\t\t\n\t\t}\n\t}\n\telse\n\t{\n\t\treturn $url;\n\t}\n\treturn false;\n}", "private static function getUrlQueryString() {\n // The variable $_SERVER['QUERY_STRING'] is set by the server and can differ, e.g. it might hold additional\n // parameters or it might be empty (nginx).\n\n if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING'])) {\n $query = $_SERVER['QUERY_STRING'];\n }\n else {\n $query = strRightFrom($_SERVER['REQUEST_URI'], '?');\n }\n return $query;\n }", "function getCurrentURL() {\r\n\t$currentURL = basename($_SERVER[\"PHP_SELF\"]);\r\n\t$i = 0;\r\n\tforeach($_GET as $key => $value) {\r\n\t\t$i++;\r\n\t\tif($i == 1) { $currentURL .= \"?\"; }\r\n\t\telse { $currentURL .= \"&amp;\"; }\r\n\t\t$currentURL .= $key.\"=\".$value;\r\n\t}\r\n\treturn $currentURL;\r\n}", "public static function setQueryString(): void\n\t{\n\n\t\tif (strpos(static::$fullUrl, '?')) {\n\t\t\tstatic::$queryString = substr(static::$fullUrl, strpos(static::$fullUrl, '?') + 1, strlen(static::$fullUrl));\n\t\t} else {\n\t\t\tstatic::$queryString = '';\n\t\t}\n\n\t}", "function emr_maybe_remove_query_string( $url ) {\n\t$parts = explode( '?', $url );\n\n\treturn reset( $parts );\n}", "function getFullCacheUrl($url, $params) {\n\n //Sorting query params by key (acts by reference)\n ksort($params);\n\n //Transforming the query array to query string\n $queryString = http_build_query($params);\n\n $fullUrl = \"{$url}?{$queryString}\";\n\n return $fullUrl;\n\n}", "public function full($query = false)\n {\n $uri = $_SERVER['REQUEST_URI'];\n\n if ($query === false)\n $uri = strtok($uri, '?');\n\n $url = sprintf(\n \"%s://%s%s\",\n isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https' : 'http',\n $_SERVER['SERVER_NAME'],\n $uri\n );\n\n return rtrim($url, '/');\n }", "function am2_append_query_string( $url, $post, $leavename ) {\n\t\n\t\n\t$vanity_urls = get_option('am2_vanity_urls'); \n\tif(!empty($vanity_urls[$post->post_type.\"_\".$post->ID]['url'])){\n\t\t$url = site_url().'/'.$vanity_urls[$post->post_type.\"_\".$post->ID]['url'];\n\t}\n return $url; \n\t\n}", "function getQueryString($options, $prepend='?') {\n // parse query string into array\n $query = array();\n parse_str($_SERVER['QUERY_STRING'], $query);\n \n // Modify the existing query string with new options\n $query = array_merge($query, $options);\n \n // Return the modified querystring\n return $prepend . http_build_query($query);\n}", "protected static function get_new_url()\n {\n return parse_url($_SERVER['REQUEST_URI'])['path'] . '?' . $_SERVER['QUERY_STRING'];\n }", "function get_query_string($key) {\n $val = null;\n if (!empty($_GET[$key])) {\n $val = $_GET[$key];\n }\n return $val;\n}", "function full_url() {\n\t$s = empty($_SERVER[\"HTTPS\"]) ? '' : ($_SERVER[\"HTTPS\"] == \"on\") ? \"s\" : \"\";\n\t$protocol = substr(strtolower($_SERVER[\"SERVER_PROTOCOL\"]), 0, strpos(strtolower($_SERVER[\"SERVER_PROTOCOL\"]), \"/\")) . $s;\n\t$port = ($_SERVER[\"SERVER_PORT\"] == \"80\" || $_SERVER[\"SERVER_PORT\"] == \"443\") ? \"\" : (\":\".$_SERVER[\"SERVER_PORT\"]);\n\n\t$quotes = array('\\'', '\"');\n\t$encoded = array('%27', '%22');\n\n\treturn $protocol . \"://\" . $_SERVER['SERVER_NAME'] . $port . str_replace($quotes, $encoded, $_SERVER['REQUEST_URI']);\n}", "function addQuery($url, $params)\n{\n if (is_array($params)){\n if (count($params) > 0){\n $url .= '?';\n foreach ($params as $key => $value):\n $url .= $key . '=' . $value . '&';\n endforeach;\n $url = substr($url, 0, -1);\n }\n } \n return $url;\n}", "private function get_query_string()\n {\n $query_string = '';\n foreach (explode('&', $_SERVER['QUERY_STRING']) as $key)\n {\n if( !preg_match('/org_openpsa_qbpager/', $key)\n && $key != '')\n {\n $query_string .= '&amp;'.$key;\n }\n }\n return $query_string;\n }", "function fielding_youtube_params( $url ) {\n\treturn ((strpos($url, \"?\") < -1) ? \"?\" : \"&\") . \"autoplay=1&fs=1&rel=0\";\n}", "public static function addQueryArg() {\n\t\t$ret = '';\n\t\tif ( is_array( func_get_arg(0) ) ) {\n\t\t\tif ( @func_num_args() < 2 || false === @func_get_arg( 1 ) )\n\t\t\t\t$uri = $_SERVER['REQUEST_URI'];\n\t\t\telse\n\t\t\t\t$uri = @func_get_arg( 1 );\n\t\t} else {\n\t\t\tif ( @func_num_args() < 3 || false === @func_get_arg( 2 ) )\n\t\t\t\t$uri = $_SERVER['REQUEST_URI'];\n\t\t\telse\n\t\t\t\t$uri = @func_get_arg( 2 );\n\t\t}\n\t\n\t\tif ( $frag = strstr( $uri, '#' ) )\n\t\t\t$uri = substr( $uri, 0, -strlen( $frag ) );\n\t\telse\n\t\t\t$frag = '';\n\t\n\t\tif ( preg_match( '|^https?://|i', $uri, $matches ) ) {\n\t\t\t$protocol = $matches[0];\n\t\t\t$uri = substr( $uri, strlen( $protocol ) );\n\t\t} else {\n\t\t\t$protocol = '';\n\t\t}\n\t\n\t\tif ( strpos( $uri, '?' ) !== false ) {\n\t\t\t$parts = explode( '?', $uri, 2 );\n\t\t\tif ( 1 == count( $parts ) ) {\n\t\t\t\t$base = '?';\n\t\t\t\t$query = $parts[0];\n\t\t\t} else {\n\t\t\t\t$base = $parts[0] . '?';\n\t\t\t\t$query = $parts[1];\n\t\t\t}\n\t\t} elseif ( !empty( $protocol ) || strpos( $uri, '=' ) === false ) {\n\t\t\t$base = $uri . '?';\n\t\t\t$query = '';\n\t\t} else {\n\t\t\t$base = '';\n\t\t\t$query = $uri;\n\t\t}\n\t\n\t\tparse_str( $query, $qs );\n\t\t//$qs = urlencode_deep( $qs ); // this re-URL-encodes things that were already in the query string\n\t\tif ( is_array( func_get_arg( 0 ) ) ) {\n\t\t\t$kayvees = func_get_arg( 0 );\n\t\t\t$qs = array_merge( $qs, $kayvees );\n\t\t} else {\n\t\t\t$qs[func_get_arg( 0 )] = func_get_arg( 1 );\n\t\t}\n\t\n\t\tforeach ( (array) $qs as $k => $v ) {\n\t\t\tif ( $v === false )\n\t\t\t\tunset( $qs[$k] );\n\t\t}\n\t\n\t\t$ret = http_build_query( $qs );\n\t\t$ret = trim( $ret, '?' );\n\t\t$ret = preg_replace( '#=(&|$)#', '$1', $ret );\n\t\t$ret = $protocol . $base . $ret . $frag;\n\t\t$ret = rtrim( $ret, '?' );\n\t\treturn $ret;\n\t}", "public function getFullUrl(){\n return 'http://'. $_SERVER['HTTP_HOST'] .'/'. implode('/', self::$_request_vars);\n }", "function include_query_string() {\n\t// Check the URI for a question mark.\n\t$position = strpos($_SERVER['REQUEST_URI'], '?');\n\n\t// When the mark is found, get the query string and parse it into the _GET array.\n\tif ($position !== false) {\n\t\t$query_string = substr($_SERVER['REQUEST_URI'], $position + 1);\n\t\tparse_str($query_string, $_GET);\n\t}\n}", "function current_url()\n{\n if (empty($_SERVER['QUERY_STRING'])) {\n $query_string = '';\n } else {\n $query_string = '?' . $_SERVER['QUERY_STRING'];\n }\n\n return $_SERVER['PHP_SELF'] . $query_string;\n}", "function getURL($url, $prams)\n {\n return $url . '?' . http_build_query($prams);\n }", "function modify_url($mod) { \n $url = \"http://\" .$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; \n $query = explode(\"&\", $_SERVER['QUERY_STRING']); \n // modify/delete data \n foreach($query as $q) { \n @list($key, $value) = explode(\"=\", $q); \n if(array_key_exists($key, $mod)) \n { \n if($mod[$key]) \n { \n $url = preg_replace('/' .$key. '=' .$value. '/', $key. '=' .$mod[$key], $url); \n } \n else \n { \n $url = preg_replace('/&?'.$key.'='.$value.'/', '', $url); \n } \n } \n } \n // add new data \n foreach($mod as $key => $value) { \n if($value && !preg_match('/' .$key. '=/', $url)) \n { \n $url .= '&' .$key. '=' .$value; \n } \n }\n \n \tfor ($i=0; $_SERVER['QUERY_STRING'] == \"\" && $i != 1; $i++)\n \t$url = str_replace(\"&\", \"?\", $url);\n \n \n return $url; \n}", "function rebuildURL($remove){\n\t\t$curl = preg_replace('/\\?.*/', '', curPageURL()); //get current URL and remove the query string\n\t\t$query = constructQuery(removeURLQuery($remove));\n\t\treturn $curl.$query;\n\t\t\n\t\t\n\t}", "function buildurl($params, $facet=NULL, $newvalue=NULL, $facet2=NULL, $newvalue2=NULL, $facet3=NULL, $newvalue3=NULL, $facet4=NULL, $newvalue4=NULL) {\n\n\tif ($facet) {\n\t\t$params[$facet]=$newvalue;\n\t}\n\n\tif ($facet2) {\n\t\t$params[$facet2]=$newvalue2;\n\t}\n\n\tif ($facet3) {\r\n\t\t$params[$facet3]=$newvalue3;\r\n\t}\n\t\r\n\tif ($facet4) {\r\n\t\t$params[$facet4]=$newvalue4;\r\n\t}\r\n\t\n\t// if param false, delete it\n\tforeach ($params as $key=>$value) {\n\n\t\tif ($value==false) {\n\t\t\tunset($params[$key]);\n\t\t}\n\n\t}\n\n\t$uri = \"?\".http_build_query($params);\n\n\treturn $uri;\n\n}", "private function buildQueryString(){\n if(count($this->querystrings) == 0){\n return \"\";\n }\n else{\n $querystring = \"?\";\n\n foreach($this->querystrings as $index => $value){\n if($index > 0){\n $querystring .= \"&\";\n }\n $querystring .= $value;\n }\n\n return $querystring;\n }\n }", "function getQueryString(){\n\tglobal $query_string;\n\t$query_string = array();\n\t$new_query_string = array();\n\tif(isset($_SERVER) && isset($_SERVER['REQUEST_URI'])){\n\t\tif(strpos($_SERVER['REQUEST_URI'], '?')){\n\t\t\t$query_string = explode('?', $_SERVER['REQUEST_URI']);\n\n\t\t\tif(strpos($query_string[1], '&')){\n\t\t\t\t$query_string = explode('&', $query_string[1]);\n\t\t\t\tforeach ($query_string as $value) {\n\t\t\t\t\t$value_array = explode('=', $value);\n\t\t\t\t\t$new_query_string[urldecode($value_array[0])] = urldecode($value_array[1]);\n\t\t\t\t}\n\t\t\t\t$query_string = $new_query_string;\n\t\t\t}else{\n\t\t\t\t$value_array = explode('=', $query_string[1]);\n\t\t\t\t$new_query_string[urldecode($value_array[0])] = urldecode($value_array[1]);\n\t\t\t}\n\t\t}\n\t}\n\t$query_string = $new_query_string;\n}", "private function getThisPageFullURL()\n {\n return 'http' . ( ! empty($_SERVER['HTTPS']) ? 's' : '' ) . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'] . ( ( empty($_GET) ) ? '' : '?' . http_build_query($_GET) );\n }", "function current_request_with_params($params) {\n\t\t$all_params = $_GET;\n\t\tforeach ($params as $key => $value) {\n\t\t\t$all_params[$key] = $value;\n\t\t}\n\t\t$request = $_SERVER['REQUEST_URI'];\n\t\t$query = $_SERVER['QUERY_STRING'];\n\t\tif (strlen($query)) {\n\t\t\t$request = str_replace( $query, \"\", $request);\n\t\t}\n\t\t$sep = \"\";\n\t\tforeach ($all_params as $key => $value) {\n\t\t\t$request = $request . $sep;\n\t\t\t$sep = '&';\n\t\t\t$request = $request . $key . \"=\" . $value;\n\t\t}\n\n\t\treturn $request;\n\t}", "protected function getUrl()\n {\n return str_replace('?' . $_SERVER['QUERY_STRING'], '', $_SERVER['REQUEST_URI']);\n }", "function get_current_url() {\n $get = $_GET;\n unset($get['request_uri']);\n $qs = http_build_query($get);\n return Router::$page_url . (!empty($qs) ? \"?$qs\" : null);\n}", "private function sanitized_url() {\n $url = $_SERVER['SCRIPT_NAME'] . \"?\";\n /* the GET vars used by git-php */\n $git_get = array('p', 'dl', 'b', 'a', 'h', 't');\n foreach ($_GET as $var => $val) {\n if(!in_array($var, $git_get)){\n $get[$var] = $val;\n $url.=\"{$var}={$val}&amp;\";\n }\n }\n return $url;\n }", "function appendQueryString($url, $qs) {\n $parsed = parse_url($url);\n\n // Add trailing slash to original URL if only a root URL is given\n // eg. www.example.com --> www.example.com/\n if ($parsed['path'] == NULL) {\n $url = $url . '/';\n }\n\n // Add the query string separator\n if ($parsed['query'] == NULL) {\n $url = $url . '?';\n } else {\n $url = $url . '&';\n }\n\n return $url . $qs;\n}", "function cp_url($path, $qs)\n{\n return $path.'?'.$qs;\n}", "function url_build(string $base, string $params = ''): string\n{\n if ($params) {\n $params = ((false === strpos($base, '?')) ? '?' : '&') . $params;\n }\n return \\get_site_url() . '/' . $base . $params;\n}", "private function rebuildGet()\n {\n $url = $_SERVER['REQUEST_URI'];\n $pos = strpos($url, '?');\n \n if ($pos !== false)\n {\n parse_str(substr($url, $pos+1, (strlen($url)-($pos+1))), $_GET);\n }\n }", "function current_url(array $params = array())\n{\n // Get the URL before the ?.\n $request = Zend_Controller_Front::getInstance()->getRequest();\n $urlParts = explode('?', $request->getRequestUri());\n $url = $urlParts[0];\n if ($params) {\n // Merge $_GET and passed parameters to build the complete query.\n $query = array_merge($_GET, $params);\n $queryString = http_build_query($query);\n $url .= \"?$queryString\";\n }\n return $url;\n}", "private function getUrl() {\n $queryArr = array();\n\n $uri = filter_input(INPUT_SERVER, 'REQUEST_URI');\n\n //get uri as a array\n $uriArr = parse_url($uri);\n\n //get query parameter string\n $queryStr = isset($uriArr['query']) ? $uriArr['query'] : '';\n\n //get query parameters as a array\n parse_str($queryStr, $queryArr);\n\n //remove 'page' parameter if it is set\n if (isset($queryArr['page'])) {\n unset($queryArr['page']);\n }\n\n //rebuild the uri and return \n $returnUri = $uriArr['path'] . '?' . http_build_query($queryArr);\n\n return $returnUri;\n }", "function url($url){\n $url=ereg_replace(\"[&?]+$\", \"\", $url);\n \n $url .= ( strpos($url, \"?\") != false ? \"&\" : \"?\" ).urlencode($this->name).\"=\".$this->id;\n \n return $url;\n }", "function url_current()\n{\n return url(@$_GET['GET_VARS']);\n}", "private function _url($par = array()) {\n\t\t$get = $_GET;\n\t\t\n\t\tforeach ((array) $par AS $key => $val) { //overide value\n\t\t\tif ($key == 'path') //if path, encode\n\t\t\t\t$get['path'] = \\Crypt::encrypt($val);\n\t\t\telse\n\t\t\t\t$get[$key] = $val;\n\t\t}\n\t\t\n\t\t$url = '//';\n\t\t\n\t\t$url .= $this->_sanitize(g($_SERVER, 'HTTP_HOST').'/'.strtok(g($_SERVER, 'REQUEST_URI'), '?'));\n\t\t\n\t\treturn $url.'?'.http_build_query($get);\n\t}", "function query_vars($vars) {\n $vars[] = 'hcard_url';\n\n return $vars;\n }", "public static function getFull($asArray = false) {\r\n $uri = $_SERVER['SCRIPT_URI'] . '?' . $_SERVER['QUERY_STRING'];\r\n if ($asArray) {\r\n $uri = parse_url($uri);\r\n }\r\n return $uri;\r\n }", "function url_query_append( $url, $vars=array()){\n\t\t\n\t\t//vars\n\t\t$url = parse_url($url);\n\t\t$query_vars = array();\n\t\tparse_str(@$url['query'], $query_vars);\n\t\t$query_vars = array_merge($query_vars, $vars);\n\t\t//build and return new string\n\t\treturn \"{$url['scheme']}://{$url['host']}{$url['path']}\"\n\t\t\t. \"?\" . http_build_query($query_vars);\n\t}", "function build_url_params ($url_params, $params = '')\n{\n\tforeach ($url_params as $k=>$v)\n\t{\n\t\t$params .= (strlen($params) ? '&' : '?') . $k . '=' . urlencode($v);\n\t}\n\t\n\treturn $params;\n}", "function getURL(string $location, array $param = []){\n $base_url = getBaseURL();\n $path = !empty($param) || $location !== \"index\" ? \"{$location}.php\" : \"\";\n if(!empty($param)){\n $query_params = http_build_query($param);\n $path .= \"?{$query_params}\";\n // var_dump($query_params);\n // exit();\n }\n return \"{$base_url}/{$path}\";\n}", "function getRequestUri(){\n\tif (isset($_SERVER['REQUEST_URI'])) {\n\t\t$uri = $_SERVER['REQUEST_URI'];\n\t} else {\n\t\tif (isset($_SERVER['argv'])) {\n\t\t\t $uri = $_SERVER['PHP_SELF'] .'?'. $_SERVER['argv'][0];\n\t\t} else {\n\t\t\t$uri = $_SERVER['PHP_SELF'] .'?'. $_SERVER['QUERY_STRING'];\n\t\t}\n\t}\n\treturn $uri;\n}", "function _remove_query_strings_1( $src ){\n\t$rqs = explode( '?ver', $src );\n return $rqs[0];\n}", "function merge_query($newquery) {\r\n foreach (array_merge($_GET,$newquery) as $k=>$v) $temparr[] = urlencode($k).'='.urlencode($v);\r\n return implode('&amp;',$temparr);\r\n}", "function router_add_query($url, array $qp = array())\n{\n if (empty($qp)) {\n return $url;\n }\n if (strpos($url, '?') !== false) {\n list($url, $query_str) = explode('?', $url, 2);\n parse_str($query_str, $old_qp);\n $qp = array_merge($old_qp, $qp);\n }\n if (!empty($qp)) {\n $url .= '?' . http_build_query($qp);\n }\n return $url;\n}", "function rebuild($to_unset=\"block\"){\n\t\t\tglobal $_GET;\n\t\t\tunset($_GET[$to_unset]);\n\t\t\t\t\n\t\t\t$glue = \"?\";\n\t\t\treset($_GET);\n\t\t\twhile(list($key,$val)=each($_GET)){\n\t\t\t\t$val = str_replace(\" \",\"%20\",$val);\n\t\t\t\t$glue .= $key . \"=\" . $val . \"&\";\n\t\t\t}\n\t\t\treturn $glue;\n\t\t}", "function http_build_url($url = null, $parts = null, $flags = null, ?array &$new_url = null) {}", "public function get_url_with_query( $url ) {\n\t\treturn self::build_url( $url, $this->query );\n\t}", "function getURL()\n{\n\t$url = $_SERVER['REQUEST_URI'];\n\t$url = strtok($url, '?');\n\t\n\treturn $url;\n}", "function url($url, $params = null) {\n $url = cfg()->root_url . $url;\n $url = str_replace('//', '/', $url);\n if ($params) {\n $url .= '?' . http_build_query($params);\n }\n return $url;\n}", "function get_options_url()\n{\n parse_str($_SERVER['QUERY_STRING'], $query);\n return $query;\n}", "function set_page_link($newqs = array(), $newpath = null) {\n $get = $_GET;\n unset($get['request_uri']);\n $allqet = array_merge($get, $newqs);\n if (empty($newpath)) {\n $qs = http_build_query($allqet);\n return Router::$page_url . (!empty($qs) ? \"?$qs\" : null);\n }\n $qs = http_build_query($allqet);\n return \"$newpath\" . (!empty($qs) ? \"?$qs\" : null);\n}", "function build_url($base_url, $params) {\r\n $url = $base_url;\r\n if (!empty($params)) {\r\n $url .= '?' . implode('&', $params);\r\n }\r\n return $url;\r\n }", "function get_url_query() {\r\n $query = array();\r\n\r\n // get the URL query string\r\n $query_str = $_SERVER['QUERY_STRING'];\r\n\r\n // parse the URL query string to array\r\n parse_str($query_str, $query);\r\n\r\n return $query;\r\n}", "protected static function removeQueryString($url)\n {\n // echo $url;\n if($url)\n {\n $params = explode('&', $url, 2); // debug($params);\n if(strpos($params[0], '=') === false) // page/part1..\n {\n return rtrim($params[0], '/');\n }else{ // page = something\n return '';\n }\n }\n\n }", "function getFullUrl() {\n /*** check for https ***/ /*** return the full address ***/\n return 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];\n }", "function urlComplete(){\n$url=\"http://\".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];\nreturn $url;\n}", "function url($url = false, $attrs = false, $encode = true, $full = true)\n {\n\t\n if ($url === false)\n $url = $_SERVER['SCRIPT_NAME'];\n elseif (substr($url, 0, 1) == '/') {\n\n $url = DOC_ROOT . substr($url, 1);\n\t \t\t\n if ($full) {\n $scheme = 'http';\n\t\tif(isset($_SERVER['HTTPS']))\n\t\t\t{\n if ($_SERVER['HTTPS'] == 'on'){ $scheme .= 's';}}\n $url = \"$scheme://\" . $_SERVER['HTTP_HOST'] . \"$url\";\n }\n }\n\n\n if ($encode) {\n $url = rawurlencode($url);\n $url = str_replace('%2F', '/', $url);\n $url = str_replace('%23', '#', $url);\n $url = str_replace('%3A', ':', $url);\n $url = str_replace('%7E', '~', $url);\n }\n $query = '';\n if (!empty($attrs))\n $query = '?' . $this->array_to_query($attrs);\n\t\n return $url . $query;\n }", "public static function fullUrl() {\n\t\t\t$s = empty($_SERVER['HTTPS']) ? '' : ($_SERVER['HTTPS'] == 'on') ? 's' : '';\n\t\t\t$protocol = substr(strtolower($_SERVER['SERVER_PROTOCOL']), 0, strpos(strtolower($_SERVER['SERVER_PROTOCOL']), '/')) . $s;\n\t\t\t$port = ($_SERVER['SERVER_PORT'] == '80') ? '' : (\":\".$_SERVER['SERVER_PORT']);\n\t\t\treturn $protocol . \"://\" . $_SERVER['HTTP_HOST'] . $port . $_SERVER['REQUEST_URI'];\n\t\t}", "function fabric_request_filter($query_vars) {\n if (isset($_GET['s']) && empty($_GET['s'])) {\n $query_vars['s'] = ' ';\n }\n\n return $query_vars;\n}", "function remove_query_strings( $src ) {\n if( strpos( $src, '?ver=' ) )\n $src = remove_query_arg( 'ver', $src );\n return $src;\n}", "function url_with_auth_token($url) {\n // use global $query_params that was initialized during auth check on page load\n global $query_params;\n\n // no auth info, return original url\n if ($query_params['token'] == \"\" || $query_params['uuid'] == \"\") {\n echo $url;\n return;\n }\n\n $uri_parts = explode('?', $url, 2);\n if (isset($uri_parts[1]) && ($uri_parts[1] == \"\")) {\n $url .= \"?\";\n } else {\n $url .= \"&\";\n }\n\n $url .= \"token=\".$query_params['token'].\"&uuid=\".$query_params['uuid'];\n echo $url;\n}", "function qs_url($url, $qs = [])\n {\n if ($qs) {\n if (function_exists('http_build_query')) {\n $qs = escape_array($qs);\n return sprintf('%s?%s', $url, http_build_query($qs, null, '&'));\n }\n return $url . array_to_query_string($qs);\n }\n return $url;\n }", "function qualify_url($url, $url_base, $base_is_full_url = false)\n{\n require_code('urls2');\n return _qualify_url($url, $url_base, $base_is_full_url);\n}", "function location_query_arg( $link ) {\r\n\r\n\tif (isset($_GET['location']) && $_GET['location']) :\r\n\r\n\t\t$location = wp_strip_all_tags($_GET['location']);\r\n\t\t$link = add_query_arg('location', urlencode( utf8_uri_encode( $location ) ), $link);\r\n\r\n\tendif;\r\n\r\n\treturn $link;\r\n}", "public function get_corrected_query_string() {\n\t\treturn '';\n\t}", "function turl_ffull_url()\n{\n\t//$GLOBALS[\"content\"].=$_SERVER[\"SERVER_PORT\"];\n\t\n\tif ($_SERVER[\"SERVER_PORT\"]==443)\n\t{\n\t\t$full_url=\"https://\".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];\n\t}\n\telse\n\t{\n\t\t//$full_url=\"http://\".$_SERVER['HTTP_HOST'].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER['REQUEST_URI'];\n\t\t$full_url=\"http://\".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];\n\t}\n\t\n\t//$GLOBALS[\"content\"].=$full_url;\n\t\n\tpj_deb_flog3(__LINE__, __FILE__, $full_url, \"tuti\");\n\t\n\treturn $full_url;\n}", "function GetSelfUrl($with_get_param = true) {\n\tif (isset($_SERVER[\"HTTPS\"]) && 'on' == $_SERVER[\"HTTPS\"])\n\t\t$url = 'https://';\n\telse\n\t\t$url = 'http://';\n\n\t$s_t = ($with_get_param) ? $_SERVER['REQUEST_URI'] : $_SERVER[\"SCRIPT_NAME\"];\n\n\t$url .= $_SERVER[\"HTTP_HOST\"] . $s_t;\n\treturn $url;\n}", "public static function setFullUrl(): void\n\t{\n\t\t$requestUri = urldecode(Server::get('REQUEST_URI'));\n\t\tstatic::$fullUrl = rtrim(preg_replace('#^' . static::$scriptDirectory . '#', '', $requestUri), '/');\n\t}", "function get_url_param( $variable, $default='' )\n {\n return !empty( $_GET[ $variable ] )?$_GET[ $variable ]:$default;\n }", "function url($array = false, $keep=false, $validate = true, $SiteUrlOnEmptyParamSet = false, $getAliases = true) {\n if(is_string($array) && !is_numeric($array) && strtolower(substr($array, 0, 4)) == 'www.') return 'http://'.$array;\n\n $pass = array();\n if($array == false) $array = array();\n if(!is_array($array)) $array = array('id' => $array);\n if($keep === true) {\n $keep = $_GET->keys();\n }\n elseif($keep !== false && !is_array($keep)) $keep = array($keep);\n if(!is_array($keep)) $keep = array();\n foreach($_REQUEST as $g => $v) {\n if(!in_array($g, $keep)) continue;\n elseif(is_array($v)) {\n foreach($v as $a => $b) {\n if(!empty($b)) $pass[$g][$a] = $b;\n }\n }\n else $pass[$g] = $v;\n }\n $parts = array_merge($pass,$array);\n $validParts = array();\n foreach($parts as $key => $val) {\n if($key == '#') continue;\n if(!$validate || ($_REQUEST->validate($key, $val) || $_GET->validate($key, $val))) {\n $validParts[$key] = $val;\n }\n }\n $url = '';\n //FIXME: Config\n // Short-URL\n if(true && isset($validParts['id'])) {\n global $Controller;\n if(is_numeric($validParts['id']) && $getAliases) {\n if($obj = $Controller->get($validParts['id'], OVERRIDE))\n if($alias = $obj->alias) $validParts['id'] = $alias;\n } elseif(is_object($validParts['id'])) {\n if($alias = $validParts['id']->alias) $validParts['id'] = $alias;\n else $validParts['id'] = $validParts['id']->ID;\n }\n $url = '/'.($validParts['id'] != 'frontpage'?$validParts['id']:'');\n unset($validParts['id']);\n }\n $query = http_build_query($validParts,'','&amp;');\n if(!empty($query)) $url .= '?'.$query;\n if(isset($array['#'])) $url.='#'.$array['#'];\n if((!empty($url) || $SiteUrlOnEmptyParamSet) && $SiteUrlOnEmptyParamSet != -1) {\n global $SITE;\n $url = $SITE->URL.$url;\n }\n return $url;\n}", "function getLink($url,$params=array(),$use_existing_arguments=false) {\n if($use_existing_arguments) $params = $params + $_GET;\n if(!$params) return $url;\n $link = $url;\n if(strpos($link,'?') === false) $link .= '?'; //If there is no '?' add one at the end\n elseif(!preg_match('/(\\?|\\&(amp;)?)$/',$link)) $link .= '&amp;'; //If there is no '&' at the END, add one.\n \n $params_arr = array();\n foreach($params as $key=>$value) {\n if(gettype($value) == 'array') { //Handle array data properly\n foreach($value as $val) {\n $params_arr[] = $key . '[]=' . urlencode($val);\n }\n } else {\n $params_arr[] = $key . '=' . urlencode($value);\n }\n }\n $link .= implode('&',$params_arr);\n \n return $link;\n}", "function _fetch_uri_string()\n\t{\n\t\tif (strtoupper($this->config->item('uri_protocol')) == 'AUTO')\n\t\t{\n\t\t\t// If the URL has a question mark then it's simplest to just\n\t\t\t// build the URI string from the zero index of the $_GET array.\n\t\t\t// This avoids having to deal with $_SERVER variables, which\n\t\t\t// can be unreliable in some environments\n\t\t\tif (is_array($_GET) && count($_GET) == 1 && trim(key($_GET), '/') != '')\n\t\t\t{\n\t\t\t\t$this->uri_string = key($_GET);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Is there a PATH_INFO variable?\n\t\t\t// Note: some servers seem to have trouble with getenv() so we'll test it two ways\n\t\t\t$path = (isset($_SERVER['PATH_INFO'])) ? $_SERVER['PATH_INFO'] : @getenv('PATH_INFO');\n\t\t\tif (trim($path, '/') != '' && $path != \"/\".SELF)\n\t\t\t{\n\t\t\t\t$this->uri_string = $path;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// No PATH_INFO?... What about QUERY_STRING?\n\t\t\t$path = (isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : @getenv('QUERY_STRING');\n\t\t\tif (trim($path, '/') != '')\n\t\t\t{\n\t\t\t\t$this->uri_string = $path;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// No QUERY_STRING?... Maybe the ORIG_PATH_INFO variable exists?\n\t\t\t$path = (isset($_SERVER['ORIG_PATH_INFO'])) ? $_SERVER['ORIG_PATH_INFO'] : @getenv('ORIG_PATH_INFO');\n\t\t\tif (trim($path, '/') != '' && $path != \"/\".SELF)\n\t\t\t{\n\t\t\t\t// remove path and script information so we have good URI data\n\t\t\t\t$this->uri_string = str_replace($_SERVER['SCRIPT_NAME'], '', $path);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// We've exhausted all our options...\n\t\t\t$this->uri_string = '';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$uri = strtoupper($this->config->item('uri_protocol'));\n\n\t\t\tif ($uri == 'REQUEST_URI')\n\t\t\t{\n\t\t\t\t$this->uri_string = $this->_parse_request_uri();\n\t\t\t\treturn;\n\t\t\t}\n\n elseif($uri == 'PATH_INFO'){\n if(@getenv($uri)){\n $this->uri_string = (isset($_SERVER[$uri])) ? $_SERVER[$uri] : @getenv($uri);\n }else{\n $this->uri_string = $this->_parse_pathinfo_uri();\n }\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$this->uri_string = (isset($_SERVER[$uri])) ? $_SERVER[$uri] : @getenv($uri);\n\t\t}\n\n\t\t// If the URI contains only a slash we'll kill it\n\t\tif ($this->uri_string == '/')\n\t\t{\n\t\t\t$this->uri_string = '';\n\t\t}\n\t}", "function shFinalizeURL($url)\n{\n\t// V 1.2.4.t fixed bug, was checking for vmcchk instead of vmchk\n\tif (shIsSearchEngine() && (strpos($url, 'vmchk') !== false))\n\t{\n\t\t$url = str_replace('vmchk/', '', $url); // remove check,\n\t\t//cookie will be forced if user agent is searchengine\n\t}\n\t$url = str_replace('&amp;', '&', $url); // when Joomla wil turn that into &amp; we are sur we won't have &amp;amp;\n\treturn $url;\n}", "private function getQueryString() : string\n {\n return http_build_query($this->parameters);\n }", "function site_url($url='',$full=false)\n{\n\t$params = $_REQUEST['CFSystem'];\n\t$uri = (!empty($_SERVER['HTTPS'])) ? \"https://\".$_SERVER['SERVER_NAME']: \"http://\".$_SERVER['SERVER_NAME'];\n\t$uri .= rtrim(isset($_REQUEST['CFSystem']['baseurl']) ? $_REQUEST['CFSystem']['baseurl'] : '','/');\n\tif(empty($url))\n\t{\n\t\tif(!$full)\n\t\t{\n\t\t\treturn '/'.trim($params['baseurl'],'/');\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $uri.'/'.trim($params['baseurl'],'/');\n\t\t}\n\t}\n\telse\n\t{\n\t\t$arr = explode('/',$url);\n\t\t$out = '';\n\t\tif($_REQUEST['CFSystem']['url_friendly']==0)\n\t\t{\n\t\t\t$str_out = 'index.php?';\n\t\t\tfor($i=0;$i<count($arr);$i++)\n\t\t\t{\n\t\t\t\tif($i==0)\n\t\t\t\t$str_out.='cfo='.$arr[$i].'&';\n\t\t\t\telseif($i==1)\n\t\t\t\tif($i==0)\n\t\t\t\t$str_out.='cfu='.$arr[$i].'&';\n\t\t\t\telse\n\t\t\t\t$str_out.='cfparams_'.$i.'='.$arr[$i].'&';\n\t\t\t}\n\t\t\t$out = trim($str_out,'&');\n\t\t}\n\t\telseif($_REQUEST['CFSystem']['url_friendly']==1)\n\t\t{\n\t\t\t$out = $url;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$out = 'index.php/'.$url;\n\t\t}\n\t\tif(!$full)\n\t\t{\n\t\t\treturn $out;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $uri.'/'.trim($out,'/');\n\t\t\t#return $uri.str_replace('//','/','/'.basename($_REQUEST['CFSystem']['baseurl']).'/'.trim($out,'/'));\n\t\t}\n\t}\n}", "function waves_shop_req(){\n global $wp;\n $output='';\n if(count($_GET)){\n foreach ( $_GET as $key => $value ) {\n if($key!=='shop_load'&&$key!=='_'){\n $output.=(empty($output)?'?':'&').$key.'='.$value;\n }\n }\n }\n return home_url( $wp->request ).$output;\n}", "function set_last_page_url() {\r\n $page_root = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];\t\r\n if (empty($_SERVER['QUERY_STRING'])) {\r\n $_SESSION['LAST_PAGE'] = $page_root;\r\n } else {\r\n $_SESSION['LAST_PAGE'] = $page_root.'?'.$_SERVER['QUERY_STRING'];\r\n }\t\r\n}", "function shRebuildVars($appendString, &$uri)\n{\n\tif (empty($uri))\n\t\treturn;\n\t$string = empty($appendString) ? '' : JString::ltrim($appendString, '?');\n\t$uri->setQuery($string);\n}", "function ghostpool_validate_url() {\n\t\tglobal $post;\n\t\t$gp_page_url = esc_url( home_url() );\n\t\t$gp_urlget = strpos( $gp_page_url, '?' );\n\t\tif ( $gp_urlget === false ) {\n\t\t\t$gp_concate = \"?\";\n\t\t} else {\n\t\t\t$gp_concate = \"&\";\n\t\t}\n\t\treturn $gp_page_url . $gp_concate;\n\t}", "private function _create_query_string( $url, $query ) {\n\t\t$query_string = '';\n\n\t\tforeach ( $query as $var => $value ) {\n\n\t\t\tif( $var ) {\n\n\t\t\t\t// check, if required vars have a value\n\t\t\t\tif( $var[0] == '*' && $value === null ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t// only add to query if there is a value\n\t\t\t\tif( $value !== null && $value !== '' ) {\n\t\t\t\t\t$query_string .= '&' . ltrim( $var, '*' ) . '=' . urlencode( $value );\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\treturn $url . ltrim( $query_string, '&' );\n\t}", "protected static function removeQueryString($url)\n {\n if ($url != ''){\n $parts = explode('&', $url, 2);\n if (strpos($parts[0], '=') === false){\n $url = $parts[0];\n } else {\n if (strpos($parts[0], '?') === false){\n $url = '';\n } else {\n $url = explode('?', $parts[0]);\n }\n }\n } else {\n $url = \"/\";\n }\n return is_array($url)?$url[0]:$url;\n }", "private static function loadUrl(){\n\n $uri = $_SERVER['REQUEST_URI'];\n\n if (ENCRYPTURL == '1')\n $uri = CR::decrypt($uri);\n\n BASEDIR == '/' || $uri = str_replace(BASEDIR,'', $uri);\n $uri = explode('/', $uri);\n\n array_walk($uri, function(&$item){\n strpos($item, '?') == false ||\n $item = substr($item, 0, strpos($item, '?'));\n });\n\n return $uri;\n }", "function cjpopups_remove_querystring_var($url, $key) {\n\t$url = preg_replace('/(.*)(?|&)' . $key . '=[^&]+?(&)(.*)/i', '$1$2$4', $url . '&');\n\t$url = substr($url, 0, -1);\n\treturn $url;\n}", "static function filtrarUrl($url) {\n if (strpos($url, \"?\") !== false) {\n $parts = explode(\"?\", $url);\n return $parts[0];\n } else\n return $url;\n }", "public function buildQueryString();", "function add_query( $key, $value ) {\r\n\t\t\t$this->current_url = add_query_arg( $key, $value, $this->get_current_url() );\r\n\t\t\treturn $this->current_url;\r\n\t\t}", "function GetQueryString($name, $default=\"\") {\n return ValidRequiredQueryString($name) ? $_GET[$name] : $default;\n}", "function getUrl(){\n return (!empty($_SERVER['HTTPS'])) ? \"https://\".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : \"http://\".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];\n}", "function urlGET($url, $params)\n{\n\treturn $url.'?'.http_build_query($params);\n\t$url .= '?';\n\tforeach ($params as $param => $value) {\n\t\t$url.= urlencode($param).'='.urlencode($value).'&';\n\t}\n\t$url = mb_substr($url, 0, -1);\n\treturn htmlentities($url);\n}", "function getUri(){\n $uri=explode(\"/\",$_SERVER['REQUEST_URI']);\n\n //get rid of extra directory depth\n array_shift($uri);\n array_shift($uri);\n array_shift($uri);\n array_shift($uri);\n array_shift($uri);\n $uri=join(\"/\",$uri);\n\n //get rid of param string\n $uri=explode(\"?\",$uri);\n\n $params=\"\";\n if(count($uri)>1){\n $params=$uri[1];\n }\n $uri=$uri[0];\n\n //get GET params\n if(strlen($params)>0){\n $params=explode(\"&\",$params);\n foreach($params as $param){\n $param=explode(\"=\",$param);\n $_GET[$param[0]]=$param[1];\n }\n }\n\n $method=$_SERVER['REQUEST_METHOD'];\n return \"$method:$uri\";\n }" ]
[ "0.70151067", "0.67655206", "0.6722118", "0.6720354", "0.67138314", "0.6688218", "0.6679927", "0.664276", "0.66391605", "0.6609986", "0.65713614", "0.6569732", "0.6569312", "0.6563534", "0.6558533", "0.6555676", "0.65327966", "0.65245897", "0.65028787", "0.64941216", "0.6489979", "0.64862216", "0.6474525", "0.64743006", "0.64571875", "0.64555675", "0.64482284", "0.6426268", "0.6417074", "0.641421", "0.63966566", "0.6378827", "0.63589275", "0.635606", "0.63512415", "0.6327227", "0.63185406", "0.6316818", "0.6314109", "0.6312116", "0.6308551", "0.6305974", "0.6296524", "0.62870836", "0.62846786", "0.6283517", "0.6280864", "0.6278203", "0.62564075", "0.6247003", "0.6241155", "0.6235409", "0.62329614", "0.6227627", "0.6219916", "0.6214966", "0.62128776", "0.62077105", "0.6194944", "0.6179756", "0.61793214", "0.61762094", "0.6166437", "0.61389875", "0.6129039", "0.6118057", "0.6114301", "0.611139", "0.6109368", "0.6090893", "0.6089978", "0.608026", "0.6078077", "0.6072968", "0.60704017", "0.6067687", "0.606734", "0.60628825", "0.60552186", "0.60498506", "0.6045162", "0.60393685", "0.6027318", "0.60250956", "0.60063446", "0.60051686", "0.6001983", "0.599696", "0.5994553", "0.5992155", "0.59824276", "0.59719914", "0.5963341", "0.5954159", "0.5939029", "0.5933741", "0.5932705", "0.59295577", "0.59248453", "0.5923523", "0.59225386" ]
0.0
-1
Display a listing of the resource.
public function index() { $Category = Category::with('products')->get(); return view('admin.categories.categories',compact('Category')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $this->validate($request, [ 'category_name' => 'required|string|max:255', 'category_description' => 'required|max:1000', 'shop_id' => 'required', ]); try { $Category= Category::create([ 'category_name'=>$request->category_name, 'category_description'=>$request->category_description, 'shop_id'=>$request->shop_id, 'position'=>1, ]); $Category = $request->all(); if($request->has('parent_id')){ if($Category['parent_id'] != 0) { $this->validate($request, [ 'parent_id' => 'required|exists:categories.id', ]); } else { $Category['parent_id'] = 0; } } return redirect()->route('categories.show',$request->shop_id)->with('flash_success', 'Category added!'); } catch (Exception $e) { return redirect()->route('categories.show',$request->shop_id)->with('flash_error', trans('form.whoops')); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
0.0
-1
Display the specified resource.
public function show($id) { $Category = Category::with('products')->where('shop_id',$id)->get(); if ($Category->isEmpty()) { $sid=Shop::latest()->first(); $id=$sid->id; return view('admin.categories.add_category',compact('id')); } return view('admin.categories.categories',compact('Category')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { $category=Category::find($id); return view('admin.categories.edit_category',compact('category')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $category=Category::find($id); $category->category_name=$request->get('name'); $category->category_description=$request->get('description'); $category->save(); return redirect()->route('categories.show',$category->shop_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { $Category = Category::with('products')->where('id',$id)->first(); Category::destroy($id); return redirect()->route('categories.show',$Category->shop_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Create a new DateRange object from start and end date as Ymd formatted strings
public static function fromYmd(string $start, string $end): DateRange { return new DateRange(JustDate::fromYmd($start), JustDate::fromYmd($end)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\r\n{\r\n $begin = new DateTime($startDate);\r\n $end = new DateTime($endDate);\r\n \r\n $interval = new DateInterval('P1D'); \r\n $dateRange = new DatePeriod($begin, $interval, $end);\r\n \r\n $range = [];\r\n \r\n for($i=$begin;$i<=$end;$i->modify('+1 day')) {\r\n $range[] = $i->format($format);\r\n \r\n }\r\n return $range; \r\n}", "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\n {\n $begin = new DateTime($startDate);\n $end = new DateTime($endDate);\n\n $interval = new DateInterval('P1D'); // 1 Day\n $dateRange = new DatePeriod($begin, $interval, $end);\n\n $range = [];\n foreach ($dateRange as $date) {\n $range[] = $date->format($format);\n }\n array_push($range, $endDate);\n return $range;\n }", "function createRangeStat($start, $end, $format = 'Y-m-d') {\n \t\tdate_default_timezone_set(\"Europe/London\");\n\t\t$start = new DateTime($start);\n\t\t$end = new DateTime($end);\n\t\t$invert = $start > $end;\n\n\t\t$dates = array();\n\t\t$dates[] = $start->format($format);\n\t\twhile ($start != $end) {\n\t\t\t$start->modify(($invert ? '-' : '+') . '1 day');\n\t\t\t$dates[] = $start->format($format);\n\t\t}\n\t\treturn $dates;\n\t}", "function datePeriod_start_end($begin, $end)\n{\n $begin = new DateTime($begin);\n\n $end = new DateTime($end.' +1 day');\n\n $daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);\n\n foreach ($daterange as $date) {\n $dates[] = $date->format(\"Y-m-d\");\n }\n return $dates;\n}", "function getDatesFromRange($start, $end, $format = 'Y-m-d')\n {\n $array = array();\n $interval = new \\DateInterval('P1D');\n $realEnd = new \\DateTime($end);\n $realEnd->add($interval);\n $period = new \\DatePeriod(new \\DateTime($start), $interval, $realEnd);\n foreach ($period as $date) {\n $array[] = $date->format($format);\n }\n\n return $array;\n }", "public static function from_array($d)\r\n {\r\n $newstart = !empty($d['start']) ? $d['start'] : NULL;\r\n $newend = !empty($d['end']) ? $d['end'] : NULL;\r\n if($newstart) {\r\n $newstart = PiplApi_Utils::piplapi_str_to_date($newstart);\r\n }\r\n if($newend){\r\n $newend = PiplApi_Utils::piplapi_str_to_date($newend);\r\n }\r\n return new PiplApi_DateRange($newstart, $newend);\r\n }", "function FormatDateTimeRange ($start, $end) {\n\t\n\t\t$full_format='F jS, Y g:i A';\n\t\t$no_year_format='F jS';\n\t\t$month_format='F';\n\t\t$day_format='jS';\n\t\t$year_format='Y';\n\t\t$time_format='g:i A';\n\t\t$date_format='F jS, Y';\n\t\t$time_format_no_ampm='g:i';\n\t\n\t\t//\tIf both are missing/improper, fail\n\t\t//\tby returning the empty string\n\t\tif (!is_date($start) && !is_date($end)) return '';\n\t\t\n\t\t//\tOne is missing/improper, treat it as\n\t\t//\ta \"range\" between start and start or\n\t\t//\tend and end\n\t\tif (!is_date($start)) $start=$end;\n\t\telse if (!is_date($end)) $end=$start;\n\t\t\n\t\t//\tThey're in the same year\n\t\tif ($start->format('Y')===$end->format('Y')) {\n\t\t\n\t\t\t//\tThey're in the same month\n\t\t\tif ($start->format('n')===$end->format('n')) {\n\t\t\t\n\t\t\t\t//\tThey're on the same day\n\t\t\t\tif ($start->format('j')===$end->format('j')) {\n\t\t\t\t\n\t\t\t\t\t//\tThey're both in the afternoon/morning\n\t\t\t\t\tif ($start->format('A')===$end->format('A')) {\n\t\t\t\t\t\n\t\t\t\t\t\t//\tThey're at the same time\n\t\t\t\t\t\tif ($start->format('g:i')===$end->format('g:i')) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\treturn $start->format($full_format);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn sprintf(\n\t\t\t\t\t\t\t'%s %s - %s',\n\t\t\t\t\t\t\t$start->format($date_format),\n\t\t\t\t\t\t\t$start->format($time_format_no_ampm),\n\t\t\t\t\t\t\t$end->format($time_format)\n\t\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn sprintf(\n\t\t\t\t\t\t'%s - %s',\n\t\t\t\t\t\t$start->format($full_format),\n\t\t\t\t\t\t$end->format($time_format)\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn sprintf(\n\t\t\t\t\t'%s %s %s - %s %s %s',\n\t\t\t\t\t$start->format($month_format),\n\t\t\t\t\t$start->format($day_format),\n\t\t\t\t\t$start->format($time_format),\n\t\t\t\t\t$end->format($day_format),\n\t\t\t\t\t$end->format($time_format),\n\t\t\t\t\t$end->format($year_format)\n\t\t\t\t);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn sprintf(\n\t\t\t\t'%s %s - %s %s %s',\n\t\t\t\t$start->format($no_year_format),\n\t\t\t\t$start->format($time_format),\n\t\t\t\t$end->format($no_year_format),\n\t\t\t\t$end->format($time_format),\n\t\t\t\t$end->format($year_format)\n\t\t\t);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn sprintf(\n\t\t\t'%s - %s',\n\t\t\t$start->format($full_format),\n\t\t\t$end->format($full_format)\n\t\t);\n\t\n\t}", "function date_range($first, $last, $step = '+1 day', $output_format = 'd/m/Y' ) {\n\n $dates = array();\n $current = strtotime($first);\n $last = strtotime($last);\n\n while( $current <= $last ) {\n\n $dates[] = date($output_format, $current);\n $current = strtotime($step, $current);\n }\n\n return $dates;\n }", "function GetDates(DateRange $startingDates);", "function createDateRangeArray( $strDateFrom,$strDateTo,$format ) {\n \n $aryRange=array();\n if ( $format == \"european\" ) {\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,3,2),substr($strDateFrom,0,2),substr($strDateFrom,6,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,3,2),substr($strDateTo,0,2),substr($strDateTo,6,4));\n\t} else if ( $format == \"american\" ) {\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,0,2),substr($strDateFrom,3,2),substr($strDateFrom,6,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,0,2),substr($strDateTo,3,2),substr($strDateTo,6,4));\n\t}\n\n\t\n if ($iDateTo>=$iDateFrom) {\n if ( $format == \"european\" ) {\n\t\t\tarray_push($aryRange, date('d-m-Y',$iDateFrom)); \n\t\t} else if ( $format == \"american\" ) {\n\t\t\tarray_push($aryRange,date('m/d/Y',$iDateFrom)); \n\t\t}\n while ($iDateFrom<$iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n if ( $format == \"european\" ) {\n\t\t\t\tarray_push($aryRange,date('d-m-Y',$iDateFrom)); \n\t\t\t} else if ( $format == \"american\" ) {\n\t\t\t\tarray_push($aryRange,date('m/d/Y',$iDateFrom)); \n\t\t\t}\n }\n }\n\t\n return $aryRange;\n}", "public static function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\n {\n $begin = new \\DateTime($startDate);\n\n $_end = self::dateAdd($endDate, UnitDay::DAY, 1);\n\n $end = new \\DateTime($_end);\n\n $interval = new \\DateInterval('P1D'); // 1 Day\n $dateRange = new \\DatePeriod($begin, $interval, $end);\n\n $range = [];\n foreach ($dateRange as $date) {\n if ($format == null) {\n $range[] = $date;\n } else {\n $range[] = $date->format($format);\n }\n\n }\n\n\n return $range;\n }", "function FormatDateRange ($start, $end) {\n\t\n\t\t$full_format='F jS, Y';\n\t\t$no_year_format='F jS';\n\t\t$month_format='F';\n\t\t$day_format='jS';\n\t\t$year_format='Y';\n\t\t\n\t\t//\tThey're both null/missing/improper\n\t\tif (!is_date($start) && !is_date($end)) return '';\n\t\t\n\t\t//\tThe first is missing/null/improper\n\t\tif (!is_date($start)) $start=$end;\n\t\telse if (!is_date($end)) $end=$start;\n\t\t\n\t\t//\tThey're both the same\n\t\t/*if ($start->format(DateTime::ISO8601)===$end->format(DateTime::ISO8601)) {\n\t\t\n\t\t\t//\tJust output one of them\n\t\t\treturn $start->format($full_format);\n\t\t\n\t\t}*/\n\t\t\n\t\t//\tThey're in the same year\n\t\tif ($start->format('Y')===$end->format('Y')) {\n\t\t\n\t\t\t//\tThey're in the same month\n\t\t\tif ($start->format('n')===$end->format('n')) {\n\t\t\t\n\t\t\t\t//\tThey're on the same day\n\t\t\t\tif ($start->format('j')===$end->format('j')) {\n\t\t\t\t\n\t\t\t\t\treturn $start->format($full_format);\n\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\n\t\t\t\t\treturn sprintf(\n\t\t\t\t\t\t'%1$s %2$s - %3$s, %4$s',\n\t\t\t\t\t\t$start->format($month_format),\n\t\t\t\t\t\t$start->format($day_format),\n\t\t\t\t\t\t$end->format($day_format),\n\t\t\t\t\t\t$start->format($year_format)\n\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t} else {\n\t\t\t\n\t\t\t\treturn sprintf(\n\t\t\t\t\t'%1$s - %2$s, %3$s',\n\t\t\t\t\t$start->format($no_year_format),\n\t\t\t\t\t$end->format($no_year_format),\n\t\t\t\t\t$start->format($year_format)\n\t\t\t\t);\n\t\t\t\n\t\t\t}\n\t\t\n\t\t} else {\n\t\t\n\t\t\treturn sprintf(\n\t\t\t\t'%1$s - %1$s',\n\t\t\t\t$start->format($full_format),\n\t\t\t\t$end->format($full_format)\n\t\t\t);\n\t\t\n\t\t}\n\t\n\t}", "public function rangesToDates(){\n //Rangos::\n }", "public function getDateRange()\n {\n $format = $this->arguments['dateFormat'];\n if ($format === '') {\n $format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] ?: 'Y-m-d';\n }\n\n $timestamps = array();\n $dateRange = '';\n /** @var Performance $performance */\n foreach ($this->performances as $performance) {\n $timestamps[] = $performance->getDate()->getTimestamp();\n }\n sort($timestamps);\n if (strpos($format, '%') !== false) {\n $dateRange = strftime($format, $timestamps[0]);\n $dateRange .= ' - ' . strftime($format, end($timestamps));\n } else {\n $dateRange = date($format, $timestamps[0]);\n $dateRange .= ' - ' . date($format, end($timestamps));\n }\n\n return $dateRange;\n }", "function getDatesFromRange($start, $end, $format = 'Y-m-d') { \n $GLOBALS['labelDates'] = array();\n // Declare an empty array \n $dates = array(); \n \n // Variable that store the date interval \n // of period 1 day \n $interval = new DateInterval('P1D'); \n \n $realEnd = new DateTime($end); \n $realEnd->add($interval); \n \n $period = new DatePeriod(new DateTime($start), $interval, $realEnd); \n // Use loop to store date into array \n foreach($period as $date) { \n $dates[] = $date->format($format); \n if($date->format($format) == date('Y-m-d'))\n $GLOBALS['labelDates'][] = \"Today\";\n else\n $GLOBALS['labelDates'][] = $date->format('M-d');\n } \n $dates = array_reverse($dates) ;\n $GLOBALS['labelDates'] = array_reverse( $GLOBALS['labelDates']) ;\n\n \n \n // Return the array elements \n return $dates; \n }", "function getDatesFromRange($start, $end, $format = 'Y-m-d') {\r\n $array = array();\r\n // Variable that store the date interval\r\n // of period 1 day\r\n $interval = new DateInterval('P1D');\r\n $realEnd = new DateTime($end);\r\n $realEnd->add($interval);\r\n $period = new DatePeriod(new DateTime($start), $interval, $realEnd);\r\n // Use loop to store date into array\r\n foreach($period as $date) {\r\n $array[] = $date->format($format);\r\n }\r\n // Return the array elements\r\n return $array;\r\n}", "private function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n}", "function erp_get_dates_in_range($first, $last, $step = '+1 day', $output_format = 'Y-m-d' ) {\n\n $dates = array();\n $current = strtotime($first);\n $last = strtotime($last);\n\n while( $current <= $last ) {\n\n $dates[] = date($output_format, $current);\n $current = strtotime($step, $current);\n }\n\n return $dates;\n}", "public function toDateTimeRange()\n {\n $minDateTime = new \\DateTime();\n $minDateTime->setDate($this->year, $this->month ?? 1, $this->day ?? 1);\n $minDateTime->setTime($this->hours ?? 0, $this->minutes ?? 0, $this->seconds ?? 0, 0);\n\n /*\n * Calculating maximum date\n */\n $maxDateTime = new \\DateTime();\n if ($this->month === null) {\n $maxDateTime->setDate($this->year + 1, 1, 0);\n } elseif ($this->month !== null && $this->day === null) {\n $maxDateTime->setDate($this->year, $this->month + 1, 0);\n } elseif ($this->month !== null && $this->day !== null) {\n $maxDateTime->setDate($this->year, $this->month, $this->day);\n }\n\n $maxDateTime->setTime($this->hours ?? 23, $this->minutes ?? 59, $this->seconds ?? 59, 999999);\n\n return new DateTimeRange($minDateTime, $maxDateTime);\n }", "function dateRange($first, $last, $format = 'm/d/Y' ) { \n\t$dates = array();\n\t$current = strtotime($first);\n\t$last = strtotime($last);\n\n\twhile( $current <= $last ) { \n\t\t$dates[] = date($format, $current);\n\t\t$current = strtotime('+1 day', $current);\n\t}\n\t\n\treturn $dates;\n}", "public static function listDatesInRange($dateFrom, $dateTo = null, $format = 'Y-m-d')\n {\n if($dateTo === null){\n $dateTo = date($format);\n }\n\n //check if is valid date\n $objDateFrom = \\DateTime::createFromFormat($format, $dateFrom);\n if(!$objDateFrom || $objDateFrom->format($format) != $dateFrom){\n throw new \\yii\\base\\InvalidArgumentException($dateFrom.' is invalid');\n }\n\n $objDateTo = \\DateTime::createFromFormat($format, $dateTo);\n if(!$objDateTo || $objDateTo->format($format) != $dateTo){\n throw new \\yii\\base\\InvalidArgumentException($dateFrom.' is invalid');\n }\n\n $period = new \\DatePeriod(\n $objDateFrom,\n new \\DateInterval('P1D'),\n $objDateTo\n );\n foreach($period as $key => $value){\n $range[] = $value->format($format);\n }\n $range[] = $objDateTo->format($format);\n\n return $range;\n }", "function getDatesFromRange($start, $end, $format = 'Y-m-d') { \n \n // Declare an empty array \n $array = array(); \n \n // Variable that store the date interval \n // of period 1 day \n $interval = new DateInterval('P1D'); \n \n $realEnd = new DateTime($end); \n $realEnd->add($interval); \n \n $period = new DatePeriod(new DateTime($start), $interval, $realEnd); \n \n // Use loop to store date into array \n foreach($period as $date) { \n $array[] = $date->format($format); \n } \n \n // Return the array elements \n return $array; \n}", "public static function from_years_range($start_year, $end_year)\r\n {\r\n $newstart = new DateTime($start_year . '-01-01', new DateTimeZone('GMT'));\r\n $newend = new DateTime($end_year . '-12-31', new DateTimeZone('GMT'));\r\n return new PiplApi_DateRange($newstart, $newend);\r\n }", "function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n}", "function createDateRangeArray($strDateFrom, $strDateTo) {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange, date('Y-m-d', $iDateFrom));\n }\n }\n return $aryRange;\n}", "function createDateRangeArray($strDateFrom, $strDateTo) {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry\n\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange, date('Y-m-d', $iDateFrom));\n }\n }\n return $aryRange;\n}", "function createDateRangeArray($strDateFrom,$strDateTo)\n {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing that in the main script\n \n $aryRange=array();\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date(DATE_FORMAT,$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date(DATE_FORMAT,$iDateFrom));\n }\n }\n \n return $aryRange;\n }", "public function createFromDatePeriodProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = 9;\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n ) {\n return [\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n $option,\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n );\n }", "public function getByStartDateAndEndDate(\n DateTime $start_date,\n DateTime $end_date\n );", "function dateRange($begin, $end, $interval = null){\n $begin = new DateTime($begin);\n $end = new DateTime($end);\n // Because DatePeriod does not include the last date specified.\n $end = $end->modify('+1 day');\n $interval = new DateInterval($interval ? $interval : 'P1D');\n\n return iterator_to_array(new DatePeriod($begin, $interval, $end));\n}", "function the_date_range($start_dt,$end_dt, $one_day = false){\r\n\t\r\n\t$duration = $start_dt->diff($end_dt);\r\n\t$start = explode(\" \",$start_dt->format('l F j Y g i a'));\r\n\t$end = explode(\" \",$end_dt->format('l F j Y g i a'));\r\n\t\r\n\t//happening at the same time\r\n\tif($start == $end){\r\n\t\treturn array(\r\n\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\"%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2] //day of month\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\teo_is_all_day() ? 'all day' : time_compact_ap_format($start[4],$start[5],$start[6])\r\n\t\t);\r\n\t}\t\r\n\t//happening on the same day\r\n\telseif($start[2] == $end[2] || ($duration->days < 1 && $duration->h < 24)){\r\n\t\t//Monday, March 4; 9:00 p.m.\r\n\t\treturn array(\r\n\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\"%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2] //day of month\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\teo_is_all_day() ? 'all day' : sprintf(\r\n\t\t\t\t\"%s&ndash;%s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\t //formatted date\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n\t//happening in the same month\r\n\t//check if happening all day; if not, return eo_all_day ? : \r\n\telseif($start[1] == $end[1]){\r\n\t\treturn (eo_is_all_day() || $one_day) ? \r\n\t\tsprintf(\r\n\t\t\t\"%s %s&ndash;%s\",\r\n\t\t\t$start[1], //month\r\n\t\t\t$start[2], //day of month\r\n\t\t\t$end[2]\r\n\t\t)\r\n\t\t: \r\n\t\tarray(\r\n\t\t\t\"date\" => sprintf(\r\n\t\t\t\t\"%s %s&ndash;%s\",\r\n\t\t\t\t$start[1],\r\n\t\t\t\t$start[2],\r\n\t\t\t\t$end[2]\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\"datetime\" => sprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t$start[1],\r\n\t\t\t\t$start[2],\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\tsprintf(\r\n\t\t\t\t\"%s&ndash;%s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\t//happening in the same year\r\n\telseif($start[3] == $end[3]){\r\n\t\treturn (eo_is_all_day() || $one_day) ?\r\n\t\t\tsprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2], //day of month\r\n\t\t\t\t$end[0],\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\r\n\t\t\t)\r\n\t\t\t:\r\n\t\t\tarray(\r\n\t\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s %s&ndash;%s %s\",\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"datetime\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s, %s %s&ndash;%s, %s, %s %s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\t\"time\"\t=>\tsprintf(\"%s&ndash;%s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n\t//just plain happening\r\n\r\n\telse{\r\n\t\treturn (eo_is_all_day() || $one_day) ? \r\n\t\t\tsprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2], //day of month\r\n\t\t\t\t$end[0],\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\r\n\t\t\t)\r\n\t\t\t:\r\n\t\t\tarray(\r\n\t\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"datetime\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s, %s %s&ndash;%s, %s, %s %s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\t\"time\"\t=>\tsprintf(\"%s&ndash;%s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n}", "function __construct($start, $end)\r\n {\r\n\r\n // For creating a DateRange object for an exact date (like if exact\r\n // date-of-birth is known) just pass the same value for `start` and `end`.\r\n\r\n if (!empty($start))\r\n {\r\n $this->start = $start;\r\n }\r\n if (!empty($end))\r\n {\r\n $this->end = $end;\r\n }\r\n\r\n if (empty($this->start) && empty($this->end))\r\n {\r\n throw new InvalidArgumentException('Start/End parameters missing');\r\n }\r\n\r\n if (($this->start && $this->end) && ($this->start > $this->end))\r\n {\r\n $t = $this->end;\r\n $this->end = $this->start;\r\n $this->start = $t;\r\n }\r\n }", "function format_daterange($start_date, $end_date, $format = 'd', $full_text, $start_text, $end_text, $culture = null, $charset = null)\n{\n if ($start_date != '' && $end_date != '')\n {\n return sprintf($full_text, format_date($start_date, $format, $culture, $charset), format_date($end_date, $format, $culture, $charset));\n }\n else if ($start_date != '')\n {\n return sprintf($start_text, format_date($start_date, $format, $culture, $charset));\n }\n else if ($end_date != '')\n {\n return sprintf($end_text, format_date($end_date, $format, $culture, $charset));\n }\n}", "public function dateRange($startDate = null, $endDate = null, $field = null)\n {\n $start = $startDate ? Utils::date2timestamp($startDate) : null;\n $end = $endDate ? Utils::date2timestamp($endDate) : null;\n\n $date_range = [];\n foreach ($this->items as $path => $slug) {\n $page = $this->pages->get($path);\n if (!$page) {\n continue;\n }\n\n $date = $field ? strtotime($page->value($field)) : $page->date();\n\n if ((!$start || $date >= $start) && (!$end || $date <= $end)) {\n $date_range[$path] = $slug;\n }\n }\n\n $this->items = $date_range;\n\n return $this;\n }", "function tradeoff_date_range($definition)\n {\n return app(Models\\Problem\\Range\\DateRange::class)->setData($definition);\n }", "public function leadsInDates($start, $end, $data = []);", "public static function getDates($start, $end, $format = \"Y-m-d\")\n {\n $start = new \\DateTime($start);\n $end = new \\DateTime($end);\n $interval = \\DateInterval::createFromDateString('1 day');\n $period = new \\DatePeriod($start, $interval, $end->modify('+1 day'));\n\n $dates = [];\n\n foreach ($period as $dt) {\n $dates[] = $dt->format($format);\n }\n\n return $dates;\n }", "private function createDateRangeArray($strDateFrom, $strDateTo) {\n\t\t// takes two dates formatted as YYYY-MM-DD and creates an\n\t\t// inclusive array of the dates between the from and to dates.\n\t\t\n\t\t// could test validity of dates here but I'm already doing\n\t\t// that in the main script\n\t\t$aryRange = array ();\n\t\t\n\t\t$iDateFrom = mktime ( 1, 0, 0, substr ( $strDateFrom, 5, 2 ), substr ( $strDateFrom, 8, 2 ), substr ( $strDateFrom, 0, 4 ) );\n\t\t$iDateTo = mktime ( 1, 0, 0, substr ( $strDateTo, 5, 2 ), substr ( $strDateTo, 8, 2 ), substr ( $strDateTo, 0, 4 ) );\n\t\t\n\t\tif ($iDateTo >= $iDateFrom) {\n\t\t\tarray_push ( $aryRange, date ( 'Y-m-d', $iDateFrom ) ); // first entry\n\t\t\twhile ( $iDateFrom < $iDateTo ) {\n\t\t\t\t$iDateFrom += 86400; // add 24 hours\n\t\t\t\tarray_push ( $aryRange, date ( 'Y-m-d', $iDateFrom ) );\n\t\t\t}\n\t\t}\n\t\treturn $aryRange;\n\t}", "public function dateRange($strDateFrom,$strDateTo) {\n $aryRange=array();\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n }", "function fechas($start, $end) {\n\t\t$range = array();\n\t\n\t\tif (is_string($start) === true) $start = strtotime($start);\n\t\tif (is_string($end) === true ) $end = strtotime($end);\n\t\n\t\tif ($start > $end) return createDateRangeArray($end, $start);\n\t\n\t\tdo {\n\t\t\t$range[] = date('Y-m-d', $start);\n\t\t\t$start = strtotime(\"+ 1 day\", $start);\n\t\t} while($start <= $end);\n\t\n\t\treturn $range;\n\t}", "public function dateRanges(): DateRangeCollection;", "public function createDateRangeArray($strDateFrom,$strDateTo)\n {\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('d-m-Y',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('d-m-Y',$iDateFrom));\n }\n }\n return $aryRange;\n }", "public static function from_age_range($start_age, $end_age)\r\n {\r\n // suitable for him.\r\n if (!($start_age >= 0 && $end_age >= 0))\r\n {\r\n throw new InvalidArgumentException('start_age and end_age can\\'t be negative');\r\n }\r\n\r\n if ($start_age > $end_age)\r\n {\r\n $t = $end_age;\r\n $end_age = $start_age;\r\n $start_age = $t;\r\n }\r\n\r\n $start_date = new DateTime('now', new DateTimeZone('GMT'));\r\n $end_date = new DateTime('now', new DateTimeZone('GMT'));\r\n\r\n $start_date->modify('-' . $end_age . ' year');\r\n $start_date->modify('-1 year');\r\n $start_date->modify('+1 day');\r\n $end_date->modify('-' . $start_age . ' year');\r\n\r\n $date_range = new PiplApi_DateRange($start_date, $end_date);\r\n return (new PiplApi_DOB(array('date_range' => $date_range)));\r\n }", "function getMonthRange( $start, $end ){\n\n\t$current = $start;\n\t$ret = array();\n\n\t// date iteration method via: https://gist.github.com/daithi-coombes/9779776\n\twhile( $current<$end ){\n\t\t$next = date('Y-M-01', $current) . \"+1 month\";\n\t\t$current = strtotime($next);\n\t\t$ret[] = $current;\n\t}\n\t$ret = array_reverse($ret);\n\n\t// convert timestamp into expected date format array\n\tforeach ($ret as $key => $value) {\n\t\t$ret[$key] = date('F Y', $value);\n\t}\n\treturn $ret;\n}", "function test_range() {\n\t\t// Check range\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2018, 1 );\n\t\t$this->assertEquals( '2018-01-01 00:00:00', $start );\n\t\t$this->assertEquals( '2018-01-31 23:59:59', $end );\n\t\t// Check leap year\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2004, 2 );\n\t\t$this->assertEquals( '2004-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '2004-02-29 23:59:59', $end );\n\t\t// Check exceptional leap year.\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 1900, 2 );\n\t\t$this->assertEquals( '1900-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '1900-02-28 23:59:59', $end );\n\t}", "public static function daterange($strDateFrom,$strDateTo)\r\n\t{\r\n\t\t// inclusive array of the dates between the from and to dates.\r\n\t\r\n\t\t// could test validity of dates here but I'm already doing\r\n\t\t// that in the main script\r\n\t\r\n\t\t$aryRange=array();\r\n\t\r\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\r\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\r\n\t\r\n\t\tif ($iDateTo>=$iDateFrom)\r\n\t\t{\r\n\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\r\n\t\t\twhile ($iDateFrom<$iDateTo)\r\n\t\t\t{\r\n\t\t\t\t$iDateFrom+=86400; // add 24 hours\r\n\t\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $aryRange;\r\n\t}", "private function date_range(Carbon $from, Carbon $to, $inclusive = true)\n {\n if ($from->gt($to)) {\n return null;\n }\n\n // Clone the date objects to avoid issues, then reset their time\n $from = $from->copy()->startOfDay();\n $to = $to->copy()->startOfDay();\n\n // Include the end date in the range\n if ($inclusive) {\n $to->addDay();\n }\n\n $step = CarbonInterval::day();\n $period = new DatePeriod($from, $step, $to);\n\n // Convert the DatePeriod into a plain array of Carbon objects\n $range = [];\n\n foreach ($period as $day) {\n $range[] = new Carbon($day);\n }\n\n return ! empty($range) ? $range : null;\n }", "function calc_date_range_years($start, $end)\n{\n\t$years = array();\n\t\n\t$start_prts = explode('-', $start);\n\t$end_prts = explode('-', $end);\n\t\n\t$years[] = $start_prts[0];\n\t\n\tfor ($i=$start_prts[0]; $i<$end_prts[0]; $i++)\n\t{\n\t\t$years[] = $i + 1;\n\t}\n\t\n\treturn $years;\n}", "function createDateRangeArray($strDateFrom,$strDateTo,$id_tamu)\n\t{\n\t\t// inclusive array of the dates between the from and to dates.\n\n\t\t// could test validity of dates here but I'm already doing\n\t\t// that in the main script\n\n\t\t$aryRange=array();\n\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n\t\tif ($iDateTo>=$iDateFrom)\n\t\t{\n\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom).\"_\".$id_tamu); // first entry\n\t\t\twhile ($iDateFrom<$iDateTo)\n\t\t\t{\n\t\t\t\t$iDateFrom+=86400; // add 24 hours\n\t\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom).\"_\".$id_tamu);\n\t\t\t}\n\t\t}\n\t\treturn $aryRange;\n\t}", "public static function getDateRange($user, $timePeriod, $startDate = null, $endDate = null, $format = 'Y-m-d H:i:s')\n {\n switch ($timePeriod) {\n case 'week to date':\n if ($format === 'unixTimestamp') {\n $startTime = UnixTimestamp::createFromString(date('Y-m-d H:i:s', strtotime('this week midnight')), $user->profile->timezone, 'UTC');\n } else {\n $startTime = date($format, strtotime('this week midnight'));\n }\n break;\n case 'month to date':\n if ($format === 'unixTimestamp') {\n $startTime = UnixTimestamp::createFromString(date('Y-m-d H:i:s', strtotime('first day of this month midnight')), $user->profile->timezone, 'UTC');\n } else {\n $startTime = date($format, strtotime('first day of this month midnight'));\n }\n break;\n case 'quarter to date':\n // quarters are Jan 1, Apr 1, Jul 1, Oct 1\n $quarters = ['January 1 midnight', 'April 1 midnight', 'July 1 midnight', 'October 1 midnight'];\n $today = new Carbon();\n foreach ($quarters as $quarter) {\n $quarterDate = new Carbon($quarter);\n if ($quarterDate < $today && $today->diffInDays($quarter) < 100) {\n if ($format === 'unixTimestamp') {\n $startTime = UnixTimestamp::createFromString(date('Y-m-d H:i:s', strtotime($quarter)), $user->profile->timezone, 'UTC');\n } else {\n $startTime = date($format, strtotime($quarter));\n }\n break;\n }\n }\n break;\n case 'year to date':\n if ($format === 'unixTimestamp') {\n $startTime = UnixTimestamp::createFromString(date('Y-m-d H:i:s', strtotime('first day of January midnight')), env('USER_DEFAULT_TZ'), 'UTC');\n } else {\n $startTime = date($format, strtotime('first day of January midnight'));\n }\n break;\n case 'date range':\n if ($startDate) {\n if ($format === 'unixTimestamp') {\n $startTime = UnixTimestamp::createFromString($startDate, $user->profile->timezone, 'UTC');\n } else {\n $startTime = date($format, strtotime($startDate));\n }\n }\n if ($endDate) {\n if ($format === 'unixTimestamp') {\n $endTime = UnixTimestamp::createFromString($endDate, $user->profile->timezone, 'UTC');\n } else {\n $startTime = date($format, strtotime($endDate));\n }\n }\n break;\n default:\n if ($format === 'unixTimestamp') {\n $startTime = UnixTimestamp::createFromString(date('Y-m-d H:i:s', strtotime($timePeriod . ' midnight')), $user->profile->timezone, 'UTC');\n } else {\n $startTime = date($format, strtotime($timePeriod . ' midnight'));\n }\n }\n\n $dateRange = [];\n if (isset($startTime)) {\n $dateRange['start'] = $startTime;\n }\n if (isset($endTime)) {\n $dateRange['end'] = $endTime;\n }\n\n return $dateRange;\n }", "public function __construct(JustDate $start, JustDate $end)\n {\n if ($start->isAfter($end)) {\n throw new InvalidArgumentException(\"Start date cannot be after end date\");\n }\n $this->start = clone $start;\n $this->end = clone $end;\n }", "public function setValidDateRange ($startOffset = -1, $endOffset = 12)\n\t{\n\t\t$this->validDates = array();\n\t\t$startDate = clone $this->now;\n\t\t$abs = abs($startOffset);\n\t\t$startMonth = $startDate->add(DateInterval::createFromDateString($startOffset.' month'));\n\n\t\t$startNum = intval($startMonth->format(\"m\"));\n\t\t$key_fmt = datefmt_create ($this->locale, null, null, null, IntlDateFormatter::GREGORIAN, 'MMMM yyyy');\n\t\t$value_fmt = datefmt_create ($this->locale, null, null, null, IntlDateFormatter::GREGORIAN, 'MMM- yyyy');\n\t\t$key = datefmt_format( $key_fmt , strtotime($startMonth->format('r')));\n\t\t\n\t\t$this->validDates[$key] = datefmt_format( $key_fmt , strtotime($startMonth->format('r')));\n\t\tfor ($i = $startNum; $i <= ($startNum + $endOffset); $i ++) {\n\t\t \n\t\t $month = $startDate->add(DateInterval::createFromDateString('1 month'));\n\t\t $str = datefmt_format( $key_fmt , strtotime($month->format('r')));\n\t\t\t$this->validDates[$str] = $str;\n\t\t}\n\t\tunset($startDate);\n\t\tunset($startMonth);\n\t\tunset($startNum);\n\t}", "public function splitRange($start, $end) {\n \t$series = [];\n \t$ranges = [];\n\n \t// start is the same as min page; make standalone number\n \tif ( intval($start) === $this->_min_page ) {\n \t\t$series[] = $start;\n \t}\n \telse {\n\t\t\t$range = $start . $this->_range_delimiter . strval($this->_min_page);\n\t\t\t$series[] = $this->processRange($range);\n \t}\n\n \t// end only one more than min_page; make standalone number after stepping\n \tif ( intval($end) - $this->_min_page === 1 ) {\n \t\t$series[] = $this->step($end);\n \t}\n \telse {\n\t\t\t$range = strval($this->_min_page + 1). $this->_range_delimiter . $end;\n\t\t\t$series[] = $this->processRange($range);\n \t}\n\n \treturn implode($this->_series_delimiter, $series);\n }", "public function get_dates($start_date,$end_date){\r\n\t $date1 = date_format(date_create($start_date), 'Y-m-d');\r\n\t $date2 = date_format(date_create($end_date), 'Y-m-d');\r\n\t\t$dates = $this->date_manager->getAllDatesBetweenTwoDates($date1,$date2);\r\n\t\t$dates2 = $this->date_manager->exclude_weekends($dates);\r\n\t\tforeach($dates2 as $dat){\r\n\t\t\t$dates3[] = date_format(date_create($dat), 'm/d/Y');\r\n\t\t\t}\r\n\t return $dates3;\r\n\t }", "public function datePeriod($begin, $end, $daysInterval = 1)\n {\n # Dates : String pour DateTime::modify or DateTime directly\n if (is_string($begin)) {\n $begin = new \\Datetime($begin);\n } else {\n $dateBegin = $begin;\n }\n\n $dateEnd = clone $dateBegin;\n if (is_string($end)) {\n $dateEnd->modify($end);\n } else {\n $dateEnd = $end;\n }\n\n # Interval\n $interval = new \\DateInterval('P'.$daysInterval.'D');\n\n # Periode\n $period = new \\DatePeriod($dateBegin, $interval, $dateEnd);\n\n return $period;\n }", "static public function getRange($initialDate, $finalDate){\n\t\tif(!is_object($initialDate)){\n\t\t\t$initialDate = new Date($initialDate);\n\t\t}\n\t\tif(is_object($finalDate)){\n\t\t\t$finalDate = (string) $finalDate;\n\t\t}\n\t\t$initialTime = $initialDate->getTimestamp();\n\t\t$date = (string) $initialDate;\n\t\t$range = array($date);\n\t\twhile($date!=$finalDate){\n\t\t\t$initialTime+=86400;\n\t\t\t$date = date('Y-m-d', $initialTime);\n\t\t\t$range[] = $date;\n\t\t}\n\t\treturn $range;\n\t}", "private function generateDateRange(Carbon $start_date, DateInterval $interval, int $recurrences, int $exclusive = 1): array\n {\n $period = new DatePeriod($start_date, $interval, $recurrences, $exclusive);\n $dates = collect();\n\n foreach ($period as $date) {\n $dates->push($date->format('Y-m-d'));\n }\n\n return $dates->toArray();\n }", "function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n $i=0;\n $aryRange=array();\n\n//$aryRange[] = array(\"DATA\"=>\"\");\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n// array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n// array_push($aryRange[\"DATA\"],date('Y-m-d',$iDateFrom)); // first entry\n$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom), 'KEY=>'.$i);\n$i=$i+1;\n\n//$array[] = $var;\n\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n// array_push($aryRange,date('Y-m-d',$iDateFrom));\n// array_push($aryRange[\"DATA\"],date('Y-m-d',$iDateFrom));\n//$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom));\n$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom), 'KEY=>'.$i);\n$i=$i+1;\n\n }\n }\n$aryRange=array_reverse($aryRange);\n\n return $aryRange;\n}", "private function getPostDateRange() {\n \n switch($this->validFilter['postDate']) {\n case 'today' :\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'yesterday':\n $dateStart = new \\DateTime('yesterday');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime('yesterday');\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'thisWeek':\n $today = new \\DateTime();\n if('Sunday' == $today->format('l')) {\n $dateStart = clone $today;\n $dateStart->modify('Monday last week');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = $today;\n $dateEnd->setTime(23, 59, 59);\n } else {\n $dateStart = clone $today;\n $dateStart->modify('Monday this week');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = clone $today;\n $dateEnd->modify('Sunday this week');\n $dateEnd->setTime(23, 59, 59);\n }\n break;\n\n case 'lastWeek':\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateStart->sub(new \\DateInterval('P7D'));\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'pastMonth':\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateStart->sub(new \\DateInterval('P1M'));\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n default :\n $dateStart = new \\DateTime($this->validFilter['postDate']);\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime($this->validFilter['postDate']);\n $dateEnd->setTime(23, 59, 59);\n break;\n } // end of switch\n \n return array($dateStart, $dateEnd);\n }", "function monthPeriod_start_end($begin, $end)\n{\n $begin = (new DateTime($begin.'-01-01'))->modify('first day of this month');\n $end = (new DateTime($end.'-12-01 +1 month'))->modify('first day of this month');\n $daterange = new DatePeriod($begin, new DateInterval('P1M'), $end);\n\n foreach ($daterange as $date) {\n $dates[] = $date->format(\"m\");\n }\n return $dates;\n}", "public function validateDates(&$start, &$end) {\n $sixMonthsAgo = strtotime(\"-6 months\");\n $day = 86400;\n $end = time();\n \n if (!$start) {\n $start = strtotime(\"-7 days\");\n }\n \n $gap = $end - $start; \n \n //Don't mess the dates!\n switch ($gap) {\n case $gap < ($day * 31) :\n $gap = $day * 7;\n break;\n\n case $gap < ($day * 180) ://6 months\n $gap = $day * 31;\n break;\n \n case $gap >= ($day * 180) : \n default : \n $gap = $day * 180; \n break;\n }\n \n $end = time();\n $start = $end - $gap;\n }", "function DatesBetween($startDate, $endDate){\r\n\t$days = (strtotime($endDate) - strtotime($startDate)) / 86400 + 1;\r\n\t$startMonth = date(\"m\", strtotime($startDate));\r\n\t$startDay = date(\"d\", strtotime($startDate));\r\n\t$startYear = date(\"Y\", strtotime($startDate));\r\n\t$dates;//the array of dates to be passed back\r\n\tfor($i=0; $i<$days; $i++){\r\n\t\t$dates[$i] = date(\"m/d/Y\", mktime(0, 0, 0, $startMonth , ($startDay+$i), $startYear));\r\n\t}\r\n\treturn $dates;\r\n}", "protected function convertDateTypeToDateRange($dateType)\n {\n // Determine start & end date.\n $cetTimezone = new \\DateTimeZone('CET');\n $label = '';\n switch ($dateType) {\n case 'today':\n $startDate = new \\DateTime('now', $cetTimezone);\n $endDate = new \\DateTime('now', $cetTimezone);\n $label = 'Vandaag';\n break;\n\n case 'tomorrow':\n $startDate = new \\DateTime('+1 day', $cetTimezone);\n $endDate = new \\DateTime('+1 day', $cetTimezone);\n $label = 'Morgen';\n break;\n\n case 'thisweekend':\n $now = new \\DateTime();\n // Check if we are already in a weekend or not.\n if ($now->format('N') == 6) {\n $startDate = $now;\n $endDate = new \\DateTime('next Sunday', $cetTimezone);\n } elseif ($now->format('N') == 7) {\n $startDate = $now;\n $endDate = $now;\n } else {\n $startDate = new \\DateTime('next Saturday', $cetTimezone);\n $endDate = new \\DateTime('next Sunday', $cetTimezone);\n }\n\n $label = 'Dit weekend';\n break;\n\n case 'next7days':\n $startDate = new \\DateTime('now', $cetTimezone);\n $endDate = new \\DateTime('+7 days', $cetTimezone);\n $label = 'Volgende 7 dagen';\n break;\n\n case 'next14days':\n $startDate = new \\DateTime('now', $cetTimezone);\n $endDate = new \\DateTime('+14 days', $cetTimezone);\n $label = 'Volgende 14 dagen';\n break;\n\n case 'next30days':\n $startDate = new \\DateTime('now', $cetTimezone);\n $endDate = new \\DateTime('+30 days', $cetTimezone);\n $label = 'Volgende 30 dagen';\n break;\n\n default:\n return;\n }\n\n // Set time and format to ISO-8601 and set correct start and end hour.\n $startDate->setTime(0, 0, 0);\n $endDate->setTime(23, 59, 59);\n\n return [\n 'query' => '[' . $startDate->format('c') . ' TO ' . $endDate->format('c') . ']',\n 'label' => $label,\n ];\n }", "function erp_extract_dates( $start_date, $end_date ) {\n // if start date has no time set, then add 00:00:00 or 12:00 AM\n if ( ! preg_match( '/\\d{2}:\\d{2}:\\d{2}$/', $start_date ) ) {\n $start_date = $start_date . ' 00:00:00';\n }\n\n // if end date has no time set, then add 23:59:59 or 11:59 PM\n if ( ! preg_match( '/\\d{2}:\\d{2}:\\d{2}$/', $end_date ) ) {\n $end_date = $end_date . ' 23:59:59';\n }\n\n if ( $start_date > $end_date ) {\n $temp = $start_date;\n $start_date = $end_date;\n $end_date = $temp;\n }\n\n $start_date = new DateTime( $start_date );\n $end_date = new DateTime( $end_date );\n $diff = $start_date->diff( $end_date );\n\n // we got a negative date\n if ( $diff->invert ) {\n return new WP_Error( 'invalid-date', __( 'Invalid date provided', 'erp' ) );\n }\n\n $interval = DateInterval::createFromDateString( '1 day' );\n $period = new DatePeriod( $start_date, $interval, $end_date );\n\n // prepare the periods\n $dates = array();\n foreach ( $period as $dt ) {\n $dates[] = $dt->format( 'Y-m-d' );\n }\n\n return $dates;\n}", "function findDatesFromDateRange($dateStart, $dateEnd){\r\n $foundDates = array($dateStart);\r\n while(end($foundDates) < $dateEnd){\r\n $foundDates[] = date('Y-m-d', strtotime(end($foundDates).' +1 day'));\r\n }\r\n// Array of foundDates\r\nreturn $foundDates;\r\n}", "private function createDateRangeArray($dateFrom, $dateTo)\n {\n $dateRange = array();\n $tsFrom = strtotime($dateFrom);\n $tsTo = strtotime($dateTo);\n\n if ($tsTo >= $tsFrom)\n {\n $dateRange[] = date('Y-m-d', $tsFrom);\n while ($tsFrom < $tsTo)\n {\n $tsFrom += 60 * 60 * 24;\n $dateRange[] = date('Y-m-d', $tsFrom);\n }\n }\n\n return $dateRange;\n }", "function byDateRange(Datetime $start, Datetime $end) {\n $params = 'from=' . urlencode($start->format('Ymd')) . '&to=' . urlencode($end->format('Ymd'));\n\n return $this->listFromApiCall($this->connector->apiCall(\n 'time.api/list?' . $params,\n function($result) { return isset($result['Times']['Time']) ? $result['Times']['Time'] : []; }\n ));\n }", "public function SetDateRange($aStart, $aEnd)\n\t{\n\t\t// Adjust the start and end so that the indicate the\n\t\t// begining and end of respective start and end days\n\t\tif (strpos($aStart, ':') === false) {\n\t\t\t$aStart = date('Y-m-d 00:00', strtotime($aStart));\n\t\t}\n\n\t\tif (strpos($aEnd, ':') === false) {\n\t\t\t$aEnd = date('Y-m-d 23:59', strtotime($aEnd));\n\t\t}\n\n\t\t$this->scale->SetRange($aStart, $aEnd);\n\t}", "public static function failsafeDateScope($startYmd, $endYmd, $defaultTimestamp)\n {\n $startDate = self::failsafeDate($startYmd, $defaultTimestamp);\n $endDate = self::failsafeDate($endYmd, $defaultTimestamp);\n\n if ($startDate > $endDate) {\n /**\n * End date is earlier, not good, let's fix it.\n */\n $holdDate = $endDate;\n $endDate = $startDate;\n $startDate = $holdDate;\n }\n\n $nDays = $endDate->diffInDays($startDate);\n\n /**\n * Same start and end date means 1 day. Let's adjust.\n */\n $nDays += 1;\n\n return [$startDate, $endDate, $nDays];\n }", "function active_range() {\n\t\treturn new DateRange(\n\t\t\t$this->attribute(\"start date\"),\n\t\t\t$this->attribute(\"end date\"),\n\t\t\t$this\n\t\t);\n\t}", "public function renderDateRange() {\n\t\tif(!empty($this->dateRange)) {\n\t\t\t$date_range_data = array(\n\t\t\t\t'from' => $this->dateRange->from->format(\"d.m.Y\"),\n\t\t\t\t'to' => $this->dateRange->to->format(\"d.m.Y\")\n\t\t\t);\n\t\t\t\n\t\t\t$this->template->date_range_data = $date_range_data;\n\t\t}\n\t}", "public function getDateRange()\n {\n return $this->date_range;\n }", "public function datePeriodFilter($start, $end, $interval = '1 day')\n {\n\n $interval = DateInterval::createFromDateString($interval);\n $datePeriod = new \\DatePeriod($start, $interval, $end);\n\n return $datePeriod;\n }", "public function searchBookListBetweenDate($start, $end)\n {\n return $this->bookDao->searchBookListBetweenDate($start, $end);\n }", "public function range($start, $end, $step = null): static;", "public function updateDateRange($date,$range = false){\r\r\n\t\t\t// $range in format array keys - 'd' 'm' 'y'\r\r\n\t\t\tlist($month, $day, $year) = split(\"/\", $date);\r\r\n\t\t\t$month = (int)$month;\r\r\n\t\t\t$day = (int)$day;\r\r\n\t\t\t$year = (int)$year;\r\r\n\t\t\tif(!$range || empty($range) ){\r\r\n\t\t\t\t$range['low'] = array(\r\r\n\t\t\t\t\t'd' => $day,\r\r\n\t\t\t\t\t'm' => $month,\r\r\n\t\t\t\t\t'y' => $year,\r\r\n\t\t\t\t);\r\r\n\t\t\t\t$range['high']= array(\r\r\n\t\t\t\t\t'd' => $day,\r\r\n\t\t\t\t\t'm' => $month,\r\r\n\t\t\t\t\t'y' => $year,\r\r\n\t\t\t\t);\r\r\n\t\t\t}else{\r\r\n\t\t\t\t$l = $range['low'];\r\r\n\t\t\t\t$h = $range['high'];\r\r\n\t\t\t\t$higher = false;\r\r\n\t\t\t\t$lower = false;\r\r\n\r\r\n\t\t\t\t//check higher\r\r\n\t\t\t\tif ($year > $h['y']){\r\r\n\t\t\t\t\t$higher =true;\r\r\n\t\t\t\t}elseif($year == $h['y']){\r\r\n\t\t\t\t\tif($month > $h['m']){\r\r\n\t\t\t\t\t\t$higher = true;\r\r\n\t\t\t\t\t}elseif($month == $h['m']){\r\r\n\t\t\t\t\t\tif($day > $h['d']){\r\r\n\t\t\t\t\t\t\t$higher = true;\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t\t//check lower\r\r\n\t\t\t\tif ($year < $l['y']){\r\r\n\t\t\t\t\t$lower =true;\r\r\n\t\t\t\t}elseif($year == $l['y']){\r\r\n\t\t\t\t\tif($month < $l['m']){\r\r\n\t\t\t\t\t\t$lower = true;\r\r\n\t\t\t\t\t}elseif($month == $l['m']){\r\r\n\t\t\t\t\t\tif($day < $l['d']){\r\r\n\t\t\t\t\t\t\t$lower = true;\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\r\r\n\t\t\t\tif($higher){\r\r\n\t\t\t\t\t$range['high']= array(\r\r\n\t\t\t\t\t\t'd' => $day,\r\r\n\t\t\t\t\t\t'm' => $month,\r\r\n\t\t\t\t\t\t'y' => $year,\r\r\n\t\t\t\t\t);\r\r\n\t\t\t\t}\r\r\n\t\t\t\tif($lower){\r\r\n\t\t\t\t\t$range['low']= array(\r\r\n\t\t\t\t\t\t'd' => $day,\r\r\n\t\t\t\t\t\t'm' => $month,\r\r\n\t\t\t\t\t\t'y' => $year,\r\r\n\t\t\t\t\t);\r\r\n\t\t\t\t}\r\r\n\t\t\t}\r\r\n\t\t\treturn $range;\r\r\n\t\t}", "function compute_date_diff($start, $end)\n{\n $date1 = new DateTime($start->format(\"Y-m-d\"));\n $date2 = new DateTime($end->format(\"Y-m-d\"));\n\n $interval = $date1->diff($date2);\n\n $day1 = intval($date1->format(\"d\"));\n $day2 = intval($date2->format(\"d\"));\n if ($day1 <= 28 || $day1 <= $day2)\n {\n return $interval;\n }\n\n $year1 = intval($date1->format(\"Y\"));\n $month1 = intval($date1->format(\"m\"));\n\n $year2 = intval($date2->format(\"Y\"));\n $month2 = intval($date2->format(\"m\"));\n\n $date3 = $date2->add(new DateInterval('P1D'));\n $month3 = intval($date3->format(\"m\"));\n if ($month2 != $month3)\n {\n $interval->d = 0;\n if ($interval->m == 11)\n {\n $interval->m = 0;\n $interval->y = $interval->y + 1;\n }\n else\n {\n $interval->m = $interval->m + 1;\n }\n return $interval;\n }\n\n $interval->d = $day2;\n $interval->m = $month2 - $month1 - 1;\n if ($interval->m < 0)\n {\n $interval->y = $year2 - $year1 - 1;\n $interval->m = $interval->m + 12;\n }\n return $interval;\n}", "public function _constructProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = 9;\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n ) {\n return [\n $start,\n $interval,\n $end,\n $option,\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n );\n }", "public function setDateRestrictions($start, $end)\n\t{\n\t\t$this->setStartDate($start);\n\t\t$this->setEndDate($end);\n\t}", "public function definition()\n {\n $start_date = $this->faker->dateTimeThisYear();\n $start_date_clone = clone $start_date;\n $end_date = $this->faker->dateTimeBetween($start_date, $start_date_clone->modify('+1 year'));\n\n $start_date_string = $start_date->format('Y-m-d H:i:s');\n $end_date_string = $end_date->format('Y-m-d H:i:s');\n\n //dd($start_date->format('Y-m-d H:i:s'));\n\n return [\n 'title' => $start_date->format('Y').'-'.$end_date->format('Y'),\n 'begin' => $start_date_string,\n 'end' => $end_date_string,\n 'owner_id' => auth()->user()->id,\n\n ];\n }", "public function between(Carbon $start, Carbon $end)\n {\n return $this->formatResults($this->query($start, $end)->get());\n }", "private function createDateRangeKeyArray($strDateFrom, $strDateTo, $fillAt = null, $format = 'Y-m-d') {\r\n $aryRange = array();\r\n\r\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\r\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\r\n\r\n if ($iDateTo >= $iDateFrom) {\r\n $aryRange[date($format, $iDateFrom)] = $fillAt;\r\n\r\n while ($iDateFrom < $iDateTo) {\r\n $iDateFrom+=86400; // add 24 hours\r\n $aryRange[date($format, $iDateFrom)] = $fillAt;\r\n }\r\n }\r\n return $aryRange;\r\n }", "private function createDateRangeKeyArray($strDateFrom, $strDateTo, $fillAt = null, $format = 'Y-m-d') {\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n $aryRange[date($format, $iDateFrom)] = $fillAt;\n\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n $aryRange[date($format, $iDateFrom)] = $fillAt;\n }\n }\n return $aryRange;\n }", "public function getResAppAcademicYearStartEndDates( $currentYear=null, $formatStr=\"Y-m-d\", $asDateTimeObject=false ) {\n //$userServiceUtil = $this->container->get('user_service_utility');\n\n //$startEndDates = $userServiceUtil->getAcademicYearStartEndDates($currentYear,true); //return dates as Date object\n $startEndDates = $this->getAcademicYearStartEndDates($currentYear,true); //return dates as Date object\n\n $startDateObject = $startEndDates['startDate'];\n $endDateObject = $startEndDates['endDate'];\n\n if( $asDateTimeObject ) {\n $resArr['Season Start Date'] = $startDateObject;\n $resArr['Season End Date'] = $endDateObject;\n\n //duplicate with legacy key from getAcademicYearStartEndDates 'startDate'\n $resArr['startDate'] = $startDateObject;\n $resArr['endDate'] = $endDateObject;\n } else {\n $startDate = $startDateObject->format($formatStr);\n $endDate = $endDateObject->format($formatStr);\n //echo \"startDate=\".$startDate.\"<br>\";\n //echo \"endDate=\".$endDate.\"<br>\";\n //exit('111');\n\n $resArr['Season Start Date'] = $startDate;\n $resArr['Season End Date'] = $endDate;\n\n //duplicate with legacy key from getAcademicYearStartEndDates 'startDate'\n $resArr['startDate'] = $startDate;\n $resArr['endDate'] = $endDate;\n }\n\n $startDateObject->add(new \\DateInterval('P1Y')); //P1Y = +1 year\n $endDateObject->add(new \\DateInterval('P1Y'));\n\n if( $asDateTimeObject ) {\n $resArr['Residency Start Date'] = $startDateObject; //Application Season Start Year + 1 year\n $resArr['Residency End Date'] = $endDateObject;\n } else {\n $residencyStartDate = $startDateObject->format($formatStr);\n $residencyEndDate = $endDateObject->format($formatStr);\n\n $resArr['Residency Start Date'] = $residencyStartDate; //Application Season Start Year + 1 year\n $resArr['Residency End Date'] = $residencyEndDate;\n }\n\n return $resArr;\n }", "public function getPageRange($start, $end)\n {\n $pages = [];\n\n for ($page = $start; $page <= $end; $page++)\n {\n // If the current page is equal to the page we're iterating on, we will create a\n // disabled link for that page. Otherwise, we can create a typical active one\n // for the link. These views use the \"Twitter Bootstrap\" styles by default.\n if ($this->currentPage == $page)\n {\n $pages[] = '<li class=\"current\"><a href=\"#\">'.$page.'</a></li>';\n }\n else\n {\n $pages[] = $this->getLink($page);\n }\n }\n\n return implode('', $pages);\n }", "function set( $start = 0, $end = NULL )\n {\n $this->setStart( $start );\n \n if ( NULL === $end )\n {\n $this->setEnd( $start );\n }\n else\n {\n switch ( $end )\n {\n \tcase 'year': \n // add one year to end\n \t\tbreak;\n \tcase 'month':\n \t\t// add one month\n \t\tbreak;\n \tcase 'week': \n // add one year to end\n \t\tbreak;\n \tcase 'day': \n // add one year to end\n \t\tbreak;\n \tcase 'calendarweek': \n // set start and end date to start and end of week for current date\n $this->start->date->setToStartOfWeek();\n $this->setEnd( $start );\n $this->end->date->setToEndOfWeek();\n \t\tbreak;\n \tdefault:\n $this->setEnd( $end );\n } // switch\n }\n \n //$this->updatePorperties();\n }", "public static function CreateFromDates($oStart, $oStop) {\n\t\tif (!($oStart instanceof Date)) throw new InvalidArgumentException('Start is not Date');\n\t\tif (!($oStop instanceof Date)) throw new InvalidArgumentException('Stop is not Date');\n\t\t\n\t\t$ts1 = $oStart->getTimestamp();\n\t\t$ts2 = $oStop->getTimestamp();\n\t\t$days = ($ts2 - $ts1) / (3600 * 24);\n\t\t\n\t\treturn self::Create(DateUnit::DAY, $days);\n\t}", "public function setDateRange($from, $to)\n {\n $this->_from = $from;\n $this->_to = $to;\n\n return $this;\n }", "function get_year_dates($year = null, $start_month = 12, $end_month = 11)\n{\n if (!isset($year)) {\n $year = date('Y');\n }\n $start_date = $year - 1 . '-' . $start_month . '-01';\n $end_date = $year . '-' . $end_month . '-30';\n return [\n 'start_date' => $start_date,\n 'end_date' => $end_date\n ];\n}", "public function mergeRange($start, $end = null)\n {\n if ($end === null) {\n $end = $this->getNumParts() - 1;\n }\n\n if ($end <= $start) {\n return $this;\n }\n\n $mergedParts = implode(\n array_slice($this->identifierParts, $start, $end)\n );\n array_splice($this->identifierParts, $start, $end, $mergedParts);\n\n return $this;\n }", "public function getPeriodDatesProperty()\n {\n $now = Carbon::now()->timezone(\"America/Bogota\");\n $min = $now->copy();\n $max = $now->copy();\n\n switch ($this->period) {\n case 'today':\n break;\n case 'yesterday':\n $min->subDay();\n $max->subDay();\n break;\n case 'thisWeek':\n $min->startOfWeek();\n $max->endOfWeek();\n break;\n case 'lastWeek':\n $min->subWeek()->startOfWeek();\n $max->subWeek()->endOfWeek();\n break;\n case 'thisFortnight':\n if ($min->day > 15) {\n $min->day(16);\n $max->endOfMonth();\n } else {\n $min->startOfMonth();\n $max->startOfMonth()->addDays(14);\n }\n break;\n case 'lastFortnight':\n if ($min->day > 15) {\n $min->startOfMonth();\n $max->startOfMonth()->addDays(14);\n } else {\n $min->subMonth()->day(16);\n $max->subMonth()->endOfMonth();\n }\n break;\n case 'thisMonth':\n $min->startOfMonth();\n $max->endOfMonth();\n break;\n case 'lastMonth':\n $min->subMonth()->startOfMonth();\n $max->subMonth()->endOfMonth();\n break;\n\n default:\n # code...\n break;\n }\n\n $min->startOfDay();\n $max->endOfDay();\n $format = 'd-m-y H:i:s';\n\n return [\n 'min' => $min,\n 'minView' => $min->format($format),\n 'max' => $max,\n 'maxView' => $max->format($format),\n ];\n }", "public static function getDatesFromRange(DateTime $start, DateTime $end): array\n {\n $array = [];\n\n // Variable that store the date interval\n // of period 1 day\n $interval = new DateInterval('P1D');\n\n $end->add($interval);\n\n $period = new DatePeriod($start, $interval, $end);\n\n // Use loop to store date into array\n foreach ($period as $date) {\n $array[] = $date;\n }\n\n // Return the array elements\n return $array;\n }", "protected function set_date_range_parameters($adjust_empty_vals = TRUE)\n\t{\n\t\tif ($this->P->value('date_range_start') !== FALSE AND\n\t\t\t$this->P->value('date_range_end') === FALSE)\n\t\t{\n\t\t\t$this->CDT->change_ymd($this->P->value('date_range_start', 'ymd'));\n\n\t\t\tif ($this->P->value('show_years') > 0 OR\n\t\t\t\t$this->P->value('show_months') > 0 OR\n\t\t\t\t$this->P->value('show_weeks') > 0 OR\n\t\t\t\t$this->P->value('show_days') > 0)\n\t\t\t{\n\t\t\t\t$this->P->set('date_range_end', $this->P->params['date_range_start']['value']);\n\n\t\t\t\tif ($this->P->value('show_years') > 0)\n\t\t\t\t{\n\t\t\t\t\t $this->CDT->add_year($this->P->value('show_years') -1, TRUE, 'forward');\n\t\t\t\t}\n\t\t\t\telse if ($this->P->value('show_months') > 0)\n\t\t\t\t{\n\t\t\t\t\t$this->CDT->add_month(($this->P->value('show_months') - 1), TRUE, 'forward');\n\t\t\t\t}\n\t\t\t\telse if ($this->P->value('show_weeks') > 0)\n\t\t\t\t{\n\t\t\t\t\t//get the current day of week (1-7)\n\t\t\t\t\t$dow\t\t= $this->CDT->get_day_of_week(\n\t\t\t\t\t\t$this->CDT->year,\n\t\t\t\t\t\t$this->CDT->month,\n\t\t\t\t\t\t$this->CDT->day\n\t\t\t\t\t) + 1;\n\n\t\t\t\t\t//first day of week\n\t\t\t\t\t$fdow \t\t= $this->get_first_day_of_week();\n\n\t\t\t\t\t//we need to calculate 2 weeks backwards, counting today (-1) removing the remaining\n\t\t\t\t\t//days of the week, MINUS the first day of the week...\n\t\t\t\t\t//this will give is first day of the week, x weeks forward, counting this week as a full\n\t\t\t\t\t//week regardless of the day\n\n\t\t\t\t\t$this->CDT->add_day(( 7 * $this->P->value('show_weeks') ) - ($dow - $fdow));\n\t\t\t\t}\n\t\t\t\telse if ($this->P->value('show_days') > 0)\n\t\t\t\t{\n\t\t\t\t\t$this->CDT->add_day($this->P->value('show_days') - 1);\n\t\t\t\t}\n\n\t\t\t\t$end = $this->CDT->datetime_array();\n\n\t\t\t\t$end[\"time\"]\t= \"2359\";\n\t\t\t\t$end[\"hour\"]\t= '23';\n\t\t\t\t$end[\"minute\"]\t= '59';\n\n\t\t\t\t$this->P->set('date_range_end', $end);\n\t\t\t}\n\t\t}\n\t\telseif ($this->P->value('date_range_start') === FALSE AND\n\t\t\t\t$this->P->value('date_range_end') !== FALSE)\n\t\t{\n\t\t\t$this->CDT->change_ymd($this->P->value('date_range_end', 'ymd'));\n\n\t\t\tif ($this->P->value('show_years') > 0 OR\n\t\t\t\t$this->P->value('show_months') > 0 OR\n\t\t\t\t$this->P->value('show_weeks') > 0 OR\n\t\t\t\t$this->P->value('show_days') > 0)\n\t\t\t{\n\t\t\t\tif ($this->P->value('show_years') > 0)\n\t\t\t\t{\n\t\t\t\t\t$this->CDT->add_year(-$this->P->value('show_years') + 1, TRUE, 'backward');\n\t\t\t\t}\n\t\t\t\telse if ($this->P->value('show_months') > 0)\n\t\t\t\t{\n\t\t\t\t\t$this->CDT->add_month(-$this->P->value('show_months') + 1, TRUE, 'backward');\n\t\t\t\t}\n\t\t\t\telse if ($this->P->value('show_weeks') > 0)\n\t\t\t\t{\n\t\t\t\t\t//get the current day of week (1-7)\n\t\t\t\t\t$dow\t\t= $this->CDT->get_day_of_week(\n\t\t\t\t\t\t$this->CDT->year,\n\t\t\t\t\t\t$this->CDT->month,\n\t\t\t\t\t\t$this->CDT->day\n\t\t\t\t\t) + 1;\n\n\t\t\t\t\t//first day of week\n\t\t\t\t\t$fdow \t\t= $this->get_first_day_of_week();\n\n\t\t\t\t\t//we need to calculate 2 weeks backwards, counting today (+1) removing the remaining\n\t\t\t\t\t//days of the week, MINUS the first day of the week...\n\t\t\t\t\t//this will give is first day of the week, x weeks back, counting this week as a full\n\t\t\t\t\t//week regardless of the day\n\t\t\t\t\t$this->CDT->add_day(( -7 * $this->P->value('show_weeks') ) + 1 + (7 - ($dow - $fdow)));\n\t\t\t\t}\n\t\t\t\telse if ($this->P->value('show_days') > 0)\n\t\t\t\t{\n\t\t\t\t\t$this->CDT->add_day(-$this->P->value('show_days') + 1);\n\t\t\t\t}\n\n\t\t\t\t$this->P->set('date_range_start', $this->CDT->datetime_array());\n\t\t\t}\n\t\t}\n\t\telseif ($adjust_empty_vals === TRUE AND\n\t\t\t\t$this->P->value('date_range_start') === FALSE AND\n\t\t\t\t$this->P->value('date_range_end') === FALSE)\n\t\t{\n\t\t\t$this->P->set('date_range_start', $this->CDT->datetime_array());\n\n\t\t\tif ($this->P->value('show_years') > 0 OR\n\t\t\t\t$this->P->value('show_months') > 0 OR\n\t\t\t\t$this->P->value('show_weeks') > 0 OR\n\t\t\t\t$this->P->value('show_days') > 0)\n\t\t\t{\n\t\t\t\tif ($this->P->value('show_years') > 0)\n\t\t\t\t{\n\t\t\t\t\t $this->CDT->add_year($this->P->value('show_years') -1, TRUE, 'forward');\n\t\t\t\t}\n\t\t\t\telse if ($this->P->value('show_months') > 0)\n\t\t\t\t{\n\t\t\t\t\t$this->CDT->add_month(($this->P->value('show_months') - 1), TRUE, 'forward');\n\t\t\t\t}\n\t\t\t\telse if ($this->P->value('show_weeks') > 0)\n\t\t\t\t{\n\t\t\t\t\t//get the current day of week (1-7)\n\t\t\t\t\t$dow\t\t= $this->CDT->get_day_of_week(\n\t\t\t\t\t\t$this->CDT->year,\n\t\t\t\t\t\t$this->CDT->month,\n\t\t\t\t\t\t$this->CDT->day\n\t\t\t\t\t) + 1;\n\n\t\t\t\t\t//first day of week\n\t\t\t\t\t$fdow \t\t= $this->get_first_day_of_week();\n\n\t\t\t\t\t//we need to calculate 2 weeks backwards, counting today (-1) removing the remaining\n\t\t\t\t\t//days of the week, MINUS the first day of the week...\n\t\t\t\t\t//this will give is first day of the week, x weeks forward, counting this week as a full\n\t\t\t\t\t//week regardless of the day\n\n\t\t\t\t\t$this->CDT->add_day(( 7 * $this->P->value('show_weeks') ) - ($dow - $fdow));\n\t\t\t\t}\n\t\t\t\telse if ($this->P->value('show_days') > 0)\n\t\t\t\t{\n\t\t\t\t\t$this->CDT->add_day($this->P->value('show_days') - 1);\n\t\t\t\t}\n\n\t\t\t\t$end = $this->CDT->datetime_array();\n\n\t\t\t\t$end[\"time\"]\t= \"2359\";\n\t\t\t\t$end[\"hour\"]\t= '23';\n\t\t\t\t$end[\"minute\"]\t= '59';\n\n\t\t\t\t$this->P->set('date_range_end', $end);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$end = $this->P->params['date_range_start']['value'];\n\n\t\t\t\t$end[\"time\"]\t= \"2359\";\n\t\t\t\t$end[\"hour\"]\t= '23';\n\t\t\t\t$end[\"minute\"]\t= '59';\n\n\t\t\t\t$this->P->set('date_range_end', $end);\n\n\t\t\t\t//$this->P->set('date_range_end', $this->P->value('date_range_start'));\n\t\t\t}\n\t\t}\n\t}", "function createDateArray($start_dt, $end_dt)\n\t{\n\t\t$arr_dates = array();\n\t\t$arr_dates[] = $start_dt = strtotime($start_dt);\n\t\twhile(1)\n\t\t{ \n\t\t\t$start_dt = strtotime(\"+1 day\", $start_dt);\n\t\t\tif($start_dt <= strtotime($end_dt))\n\t\t\t{\n\t\t\t\t$arr_dates[] = $start_dt;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $arr_dates;\n\t}", "function NiceFromToDate() {\r\n\t\tif (!$this->ToDate && $this->FromDate) return '';\r\n\t\t\r\n\t\t$from_date = new Date();\r\n\t\t$to_date = new Date();\r\n\t\t$from_date->setValue($this->FromDate);\r\n\t\t$to_date->setValue($this->ToDate);\r\n\t\t\t\t\r\n\t\tif (!$this->ToDate && $this->FromDate) return $from_date->FormatI18N('%e. %B %Y');\r\n\r\n\t\t$from_month = $from_date->FormatI18N('%B');\r\n\t\t$to_month = $to_date->FormatI18N('%B');\r\n\t\t\r\n\t\t$from_year = $from_date->Format('Y');\r\n\t\t$to_year = $from_date->Format('Y');\r\n\t\t\r\n\t\tif($from_month == $to_month) {\r\n\t\t\t$long_from_to_date = $from_date->Format('j. - ').$to_date->Format('j. ').$to_month.' '.$to_year;\r\n\t\t}\r\n\t\telseif($from_year == $to_year) {\r\n\t\t\t$long_from_to_date = $from_date->Format('j. ').$from_month.' - '.$to_date->Format('j. ').$to_month.' '.$to_year;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$long_from_to_date = $from_date->FormatI18N('%e. %B %Y') . ' - ' . $to_date->FormatI18N('%e. %B %Y');\r\n\t\t}\r\n\t\treturn $long_from_to_date;\r\n\t\t//$this->FromDate->setConfig('dateformat','dd/MM/y');//.FormatI18N('%e. %B %Y');\r\n\t}", "protected function _getDateRange()\n {\n if (is_null($this->_dateRange)) {\n $this->_dateRange = array();\n $rules = $this->getAttributeObject()->getValidateRules();\n if (isset($rules[self::MIN_DATE_RANGE_KEY])) {\n $this->_dateRange[self::MIN_DATE_RANGE_KEY] = $rules[self::MIN_DATE_RANGE_KEY];\n }\n if (isset($rules[self::MAX_DATE_RANGE_KEY])) {\n $this->_dateRange[self::MAX_DATE_RANGE_KEY] = $rules[self::MAX_DATE_RANGE_KEY];\n }\n }\n return $this->_dateRange;\n }", "public function purchase_list_date_to_date($start, $end) {\n $this->db->select('a.*,b.supplier_name');\n $this->db->from('product_purchase a');\n $this->db->join('supplier_information b', 'b.supplier_id = a.supplier_id');\n $this->db->order_by('a.purchase_date', 'desc');\n $this->db->where('a.purchase_date >=', $start);\n $this->db->where('a.purchase_date <=', $end);\n $query = $this->db->get();\n\n $last_query = $this->db->last_query();\n if ($query->num_rows() > 0) {\n return $query->result_array();\n }\n return false;\n }", "function getAllDates($from,$to)\n{\n $dates = array();\n $fromdate = new DateTime($from);\n $todate = new DateTime($to);\n $datePeriod = new \\DatePeriod(\n $fromdate,\n new \\DateInterval('P1D'),\n $todate->modify('+1 day')\n );\n \n \n foreach($datePeriod as $date) {\n $dates[] = $date->format('Y-m-d');\n } \n \n return $dates;\n}", "function getDatesPeriod($startDate, $endDate, $format = null)\n {\n $allowedDateFormats = [\n 'Y-m-d',\n 'Y-m-d H:i:s',\n 'Y-m-d\\TH:i:s',\n 'd/m/Y',\n 'd/m/Y H:i:s',\n 'd.m.Y',\n 'd.m.Y H:i:s',\n ];\n\n $startDate = !is_object($startDate) ? new \\DateTime($startDate) : $startDate;\n $endDate = !is_object($endDate) ? new \\DateTime($endDate) : $endDate;\n\n $period = new \\DatePeriod(\n $startDate,\n new \\DateInterval('P1D'),\n $endDate\n );\n\n $dates = [];\n foreach ($period as $key => $value) {\n $dates[$key] = isset($format) && in_array((string)$format, $allowedDateFormats) ? $value->format($format) : $value;\n }\n\n return $dates;\n }", "public function prepare_data_for_chart_by_days($start, $end) {\n\t\tglobal $wpdb;\n\t\t\n\n\t\t$sql = \"SELECT * FROM `\" . $wpdb->prefix . \"tr_characters`\";\n\t\t$characters = $wpdb->get_results ( \"$sql\", ARRAY_A );\n\t\t\n\t\tif ($characters != null) {\n\t\t\t\n\t\t\t$chars_by_days = null;\n\t\t\t\n\t\t\tforeach ( $characters as $char ) {\n\t\t\t\t// run trough each char and create this array of date->amount for selected time period FOR EACH DAY WITHIN\n\t\t\t\t$character_data = $this->prepare_character_data_by_days_for_chart ( $start, $end, $char ['owner_id'] );\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif ($character_data != null) {\n\t\t\t\t //BY CHAR ID NOT NAME\n\t\t\t\t\t$chars_by_days [$char ['ownerName2']] = $character_data;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t/*\n\t\t\t * data should be sorted by main chars here.\n\t\t\t */\n\t\t\t\n\t\t\t$chars_by_days = $this->calculate_chart_data_by_mains ( $chars_by_days );\n\t\t\t\n\t\t\tif ($chars_by_days == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * mold the array in a sutable format for google charts\n\t\t\t */\n\t\t\t$prepared_array = null;\n\t\t\t// add first row of the array\n\t\t\t$prepared_array [0] [0] = 'Date';\n\t\t\t\n\t\t\tforeach ( $chars_by_days as $key => $value ) {\n\t\t\t\t// echo $key;\n\t\t\t\t$prepared_array [0] [] = $key;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t$start2 = new DateTime ( $start );\n\t\t\t$end2 = date ( \"Y-m-d H:i:s\", strtotime ( $end . \" +1 day\" ) );\n\t\t\t$end3 = new DateTime ( $end2 );\n\t\t\t\n\t\t\t$interval = DateInterval::createFromDateString ( '1 day' );\n\t\t\t\n\t\t\t$period = new DatePeriod ( $start2, $interval, $end3 );\n\t\t\t\n\t\t\t$a = 1;\n\t\t\t// run trough all dates\n\t\t\tforeach ( $period as $dt ) {\n\t\t\t\t$date = $dt->format ( \"Y-m-d\" );\n\t\t\t\t// add a date in begining\n\t\t\t\t$prepared_array [$a] [] = $date;\n\t\t\t\t// run trough each char and add a value from current day\n\t\t\t\tforeach ( $chars_by_days as $char ) {\n\t\t\t\t\t$prepared_array [$a] [] = $char [$date];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$a ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $prepared_array;\n\t\n\t}" ]
[ "0.6808518", "0.6543902", "0.64143616", "0.62102777", "0.61962414", "0.6132356", "0.60825056", "0.60556024", "0.60520893", "0.6047223", "0.60471934", "0.60014397", "0.59789485", "0.5965888", "0.5922588", "0.5893837", "0.58787143", "0.5875287", "0.5864332", "0.5861786", "0.5842731", "0.5827214", "0.5734033", "0.5699951", "0.5681016", "0.5664292", "0.56009454", "0.5586689", "0.55354935", "0.553276", "0.5527578", "0.5493975", "0.5487609", "0.5487584", "0.54691774", "0.5457557", "0.54508585", "0.54482716", "0.5446991", "0.5431933", "0.54293394", "0.5408235", "0.540109", "0.53984296", "0.53957", "0.53686684", "0.5367829", "0.53588146", "0.53409654", "0.53271294", "0.5323228", "0.53119135", "0.5251067", "0.5233877", "0.52193344", "0.5213948", "0.5209408", "0.51990294", "0.51980096", "0.51471215", "0.51448834", "0.5112569", "0.5110013", "0.5109463", "0.5107054", "0.5099031", "0.5088381", "0.5063061", "0.50461435", "0.502867", "0.50182", "0.50173575", "0.5004113", "0.5001868", "0.49962935", "0.49914008", "0.49832892", "0.49816567", "0.49803945", "0.49746254", "0.49462208", "0.49447954", "0.49434844", "0.49414104", "0.4932832", "0.4922919", "0.49093765", "0.4899397", "0.48963287", "0.48917744", "0.48889318", "0.4870406", "0.48657215", "0.4863914", "0.48620844", "0.48598316", "0.4853546", "0.48498273", "0.48433328", "0.4830912" ]
0.7626535
0
Create a new DateRange object which is the intersection of $r1 and $r2 If $r1 and $r2 have no intersection and are totally separate, then this function returns null
public static function intersection(DateRange $r1, DateRange $r2): ?DateRange { $start = JustDate::latest($r1->start, $r2->start); $end = JustDate::earliest($r1->end, $r2->end); if ($start->isAfter($end)) { // There's no intersection return null; } return new DateRange($start, $end); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function intersections(): self\n {\n $current = null;\n $isPreviouslyContained = false;\n $reducer = function (Sequence $sequence, Period $period) use (&$current, &$isPreviouslyContained): Sequence {\n if (null === $current) {\n $current = $period;\n\n return $sequence;\n }\n\n /** @var Period $current */\n $isContained = $current->contains($period);\n if ($isContained && $isPreviouslyContained) {\n $sequence->push($current->intersect($period));\n\n return $sequence;\n }\n\n if ($current->overlaps($period)) {\n $sequence->push($current->intersect($period));\n }\n\n $isPreviouslyContained = $isContained;\n if (!$isContained) {\n $current = $period;\n }\n\n return $sequence;\n };\n\n return $this\n ->sorted($this->sortByStartDate(...))\n ->reduce($reducer, new self());\n }", "public function intersect(Period $period)\n {\n if (! $this->overlaps($period)) {\n throw new LogicException('Both object should at least overlaps');\n }\n\n return new static(\n ($period->getStartDate() > $this->startDate) ? $period->getStartDate() : $this->startDate,\n ($period->getEndDate() < $this->endDate) ? $period->getEndDate() : $this->endDate\n );\n }", "public function intersect(Period $period)\n {\n if ($this->abuts($period)) {\n throw new LogicException('Both object should not abuts');\n }\n\n return new static(\n ($period->getStartDate() > $this->startDate) ? $period->getStartDate() : $this->startDate,\n ($period->getEndDate() < $this->endDate) ? $period->getEndDate() : $this->endDate\n );\n }", "public function getEventsForRange($dt1, $dt2) {\n $events = $this->_machine->plugin(\"DB\")->getEventsFromDB(\"AND events.active = 1\", \"\", false, \"time_to DESC\");\n $events = array_filter($events, function($ev) use ($dt1, $dt2) {\n $from = new \\DateTime($ev[\"time_from\"]);\n $to = new \\DateTime($ev[\"time_to\"]);\n $from->setTime(0,0);\n $to->setTime(23,59);\n $dt1->setTime(0,0);\n $dt2->setTime(23,59);\n \n /*\n echo \"================================= \\r\\n\";\n echo \"ev: \" . ($ev[\"id\"]) . \"\\r\\n\";\n echo \"from: \" . $from->getTimestamp() . \"\\r\\n\";\n echo \"to: \" . $to->getTimestamp() . \"\\r\\n\";\n echo \"dt1: \" . $dt1->getTimestamp() . \"\\r\\n\";\n echo \"dt2: \" . $dt2->getTimestamp() . \"\\r\\n\";\n var_dump( ($dt1->getTimestamp() < $from->getTimestamp() && $dt2->getTimestamp() < $from->getTimestamp()) || ($dt1->getTimestamp() > $to->getTimestamp() && $dt2->getTimestamp() > $to->getTimestamp()) );\n */\n \n //echo \"from: \" . $from->getTimestamp() . \"\\r\\n\";\n // 20/4 <= 19/4 && 19/4 <= 20/4 || 20/4 <= 21/4 && 21/4 <= 20/4 \n //if (($from <= $dt1 && $dt1 <= $to) || ($from <= $dt2 && $dt2 <= $to)) {\n //if (($dt1 <= $from && $from <= $dt2) || ($dt1 <= $to && $to <= $dt2)) { \n // return true;\n //}\n //return false;\n if (($dt1 < $from && $dt2 < $from) || ($dt1 > $to && $dt2 > $to)) {\n return false;\n }\n return true;\n });\n return $events;\n }", "protected static function createFromDatepoints($datePoint1, $datePoint2)\n {\n $startDate = static::filterDatePoint($datePoint1);\n $endDate = static::filterDatePoint($datePoint2);\n if ($startDate > $endDate) {\n return new static($endDate, $startDate);\n }\n\n return new static($startDate, $endDate);\n }", "protected static function createFromEndpoints($datePoint1, $datePoint2)\n {\n $startDate = static::filterDatePoint($datePoint1);\n $endDate = static::filterDatePoint($datePoint2);\n if ($startDate > $endDate) {\n return new static($endDate, $startDate);\n }\n\n return new static($startDate, $endDate);\n }", "function mindist($r1) {\r\n $debug = 0;\r\n if (($this->max->x() >= $r1->min->x()) and ($this->min->x() <= $r1->max->x())) { // Les X s'intersectent\r\n if (($this->max->y() >= $r1->min->y()) and ($this->min->y() <= $r1->max->y())) { // Les Y s'intersectent\r\n if ($debug) echo \"cas 1 : les 2 rectangles s'intersectent\\n\";\r\n return 0; // cas 1 : les 2 rectangles s'intersectent\r\n } else { // Les Y ne s'intersectent pas\r\n if ($debug) echo \"cas 3 : X s'intersectent mais pas les Y \\n\";\r\n return min (abs($this->max->y() - $r1->min->y()), abs($r1->max->y() - $this->min->y())); // cas 3: X s'intersectent mais pas les Y \r\n }\r\n } elseif (($this->max->y() >= $r1->min->y()) and ($this->min->y() <= $r1->max->y())) { // Les Y s'intersectent\r\n if ($debug) echo \"cas 2: Y s'intersectent mais pas les X\\n\";\r\n return min (abs($this->max->x() - $r1->min->x()), abs($r1->max->x() - $this->min->x())); // cas 2: Y s'intersectent mais pas les X\r\n } elseif ($this->min->x() < $r1->min->x()) {\r\n if ($this->min->y() < $r1->min->y()) { // cas 4a : r1 au NE de this\r\n if ($debug) echo \"cas 4a : r1 au NE de this\\n\";\r\n return $this->max->distance($r1->min);\r\n } else { // cas 4b : r1 au SE de this\r\n if ($debug) echo \"cas 4b : r1 au SE de this\\n\";\r\n return sqrt(square($r1->min->x() - $this->max->x()) + square($this->min->y() - $r1->max->y()));\r\n }\r\n } else {\r\n if ($this->min->y() < $r1->min->y()) { // cas 4d : r1 au NW de this\r\n if ($debug) echo \"cas 4d : r1 au NW de this\\n\";\r\n return sqrt(square($r1->max->x() - $this->min->x()) + square($this->max->y() - $r1->min->y()));\r\n } else { // cas 4c : r1 au SW de this\r\n if ($debug) echo \"cas 4c : r1 au SW de this\\n\";\r\n return $this->min->distance($r1->max);\r\n }\r\n }\r\n die(\"erreur\");\r\n }", "private function CheckDateOverlapping()\n\t{\n\t\t$rid = MicroGrid::GetParameter('rid');\n\t\t$start_date = MicroGrid::GetParameter('start_date', false);\n\t\t$finish_date = MicroGrid::GetParameter('finish_date', false);\n\t\t$hotel_id = MicroGrid::GetParameter('hotel_id', false);\n\n\t\t$sql = 'SELECT * FROM '.TABLE_HOTEL_PERIODS.'\n\t\t\t\tWHERE\n\t\t\t\t\tid != '.(int)$rid.' AND\n\t\t\t\t\thotel_id = '.(int)$hotel_id.' AND\n\t\t\t\t\t(((\\''.$start_date.'\\' >= start_date) AND (\\''.$start_date.'\\' <= finish_date)) OR\n\t\t\t\t\t((\\''.$finish_date.'\\' >= start_date) AND (\\''.$finish_date.'\\' <= finish_date))) ';\t\n\t\t$result = database_query($sql, DATA_AND_ROWS, FIRST_ROW_ONLY);\n\t\tif($result[1] > 0){\n\t\t\t$this->error = _TIME_PERIOD_OVERLAPPING_ALERT;\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function intersect(): self;", "private function date_range(Carbon $from, Carbon $to, $inclusive = true)\n {\n if ($from->gt($to)) {\n return null;\n }\n\n // Clone the date objects to avoid issues, then reset their time\n $from = $from->copy()->startOfDay();\n $to = $to->copy()->startOfDay();\n\n // Include the end date in the range\n if ($inclusive) {\n $to->addDay();\n }\n\n $step = CarbonInterval::day();\n $period = new DatePeriod($from, $step, $to);\n\n // Convert the DatePeriod into a plain array of Carbon objects\n $range = [];\n\n foreach ($period as $day) {\n $range[] = new Carbon($day);\n }\n\n return ! empty($range) ? $range : null;\n }", "public static function eitherWayRound(JustDate $a, JustDate $b): DateRange\n {\n return new DateRange(JustDate::earliest($a, $b), JustDate::latest($a, $b));\n }", "public static function checkTravelOverlapping($travel)\n {\n if($travel['nb_days'] < 2) {\n return $travel;\n }\n\n //The departure day is included into the travel duration.\n $nbDays = $travel['nb_days'] - 1;\n //Get the end date of the travel.\n $endDate = UtilityHelper::getLimitDate($nbDays, $travel['date_picker']);\n\n //No overlapping.\n if($endDate <= $travel['date_time_2']) {\n return $travel;\n }\n\n //Compute the number of days for each period.\n $travel['nb_days_period_1'] = UtilityHelper::getRemainingDays($travel['date_time_2'], $travel['date_picker']);\n //The departure day is included into the travel duration.\n $travel['nb_days_period_1'] = $travel['nb_days_period_1'] + 1;\n $travel['nb_days_period_2'] = $travel['nb_days'] - $travel['nb_days_period_1'];\n\n //Get the second overlapping period.\n $db = JFactory::getDbo();\n $query = $db->getQuery(true);\n $query->select('step_id, dpt_id, date_time, date_time_2')\n ->from('#__odyssey_departure_step_map')\n\t ->where('date_time > '.$db->quote($travel['date_time_2']))\n\t ->where('step_id='.(int)$travel['dpt_step_id'])\n\t ->order('date_time ASC')\n\t ->setLimit('1');\n $db->setQuery($query);\n $period2 = $db->loadAssoc();\n\n //There is no second overlapping period or this period starts after the end of the travel.\n //Note: Add the seconds parameter to endDate or the comparison won't work properly.\n if($period2 === null || $period2['date_time'] > $endDate.':00') {\n return $travel;\n }\n\n //In case there is a gap between the end of the period 1 and the start of the period 2.\n for($i = 1; $i < $travel['nb_days']; $i++) {\n if($period2['date_time'] > UtilityHelper::getLimitDate($i, $travel['date_time_2'], true, 'Y-m-d H:i:s')) {\n\t//Readjust the days for each period.\n\t$travel['nb_days_period_1']++;\n\t$travel['nb_days_period_2']--;\n }\n else {\n\tbreak;\n }\n }\n\n $travel['period_2_dpt_id'] = $period2['dpt_id'];\n $travel['overlapping'] = 1;\n\n return $travel;\n }", "function compute_date_diff($start, $end)\n{\n $date1 = new DateTime($start->format(\"Y-m-d\"));\n $date2 = new DateTime($end->format(\"Y-m-d\"));\n\n $interval = $date1->diff($date2);\n\n $day1 = intval($date1->format(\"d\"));\n $day2 = intval($date2->format(\"d\"));\n if ($day1 <= 28 || $day1 <= $day2)\n {\n return $interval;\n }\n\n $year1 = intval($date1->format(\"Y\"));\n $month1 = intval($date1->format(\"m\"));\n\n $year2 = intval($date2->format(\"Y\"));\n $month2 = intval($date2->format(\"m\"));\n\n $date3 = $date2->add(new DateInterval('P1D'));\n $month3 = intval($date3->format(\"m\"));\n if ($month2 != $month3)\n {\n $interval->d = 0;\n if ($interval->m == 11)\n {\n $interval->m = 0;\n $interval->y = $interval->y + 1;\n }\n else\n {\n $interval->m = $interval->m + 1;\n }\n return $interval;\n }\n\n $interval->d = $day2;\n $interval->m = $month2 - $month1 - 1;\n if ($interval->m < 0)\n {\n $interval->y = $year2 - $year1 - 1;\n $interval->m = $interval->m + 12;\n }\n return $interval;\n}", "public function getByStartDateAndEndDate(\n DateTime $start_date,\n DateTime $end_date\n );", "private function checkDate($start_date, $end_date, $start_date_2, $end_date_2) {\n // Convert to timestamp\n $date['start'] = strtotime($start_date);\n $date['end'] = strtotime($end_date);\n $date2['start'] = strtotime($start_date_2);\n $date2['end'] = strtotime($end_date_2);\n \n // check if intervals overlap\n if(($date['start'] <= $date2['end']) && ($date['end'] >= $date2['start'])) {\n return FALSE;\n }\n \n return TRUE;\n }", "public function leadsInDates($start, $end, $data = []);", "public function merge(self ...$periods): self\n {\n $reducer = function (Period $carry, Period $period): Period {\n if ($carry->startDate > $period->startDate) {\n $carry = new self(\n $period->startDate,\n $carry->endDate,\n $period->bounds[0].$carry->bounds[1]\n );\n }\n\n if ($carry->endDate < $period->endDate) {\n $carry = new self(\n $carry->startDate,\n $period->endDate,\n $carry->bounds[0].$period->bounds[1]\n );\n }\n\n return $carry;\n };\n\n return array_reduce($periods, $reducer, $this);\n }", "private function GetBetweenArray()\n {\n for(reset($this->dataArray); (list($key,$val)=each($this->dataArray)) !== false;)\n {\n if (($this->Date2MoreDate1($this->startPoint['Arrival']['Date'] . ' ' . $this->startPoint['Arrival']['Time'], $val['Arrival']['Date'] .' '. $val['Arrival']['Time']))\n && ($this->Date2MoreDate1($val['Arrival']['Date'] .' '. $val['Arrival']['Time'], $this->endPoint['Arrival']['Date'] . ' ' . $this->endPoint['Arrival']['Time'])))\n $this->BetweenStartEnd[] = $val;\n }\n }", "public function isRangeIntoOtherRange(RangeDates $rangeCompare, //rango a buscar\n RangeDates $rangeSearch, //rANGO A COMPARAR \n $withBorder=true){\n yii::error($this->intofisrtCondition($rangeCompare, $rangeSearch, $withBorder));\n yii::error($this->intoSecondCondition($rangeCompare, $rangeSearch));\n yii::error( $this->intoThirdCondition($rangeCompare, $rangeSearch));\n yii::error($this->intoFourthCondition($rangeCompare, $rangeSearch) );\n return (\n $this->intofisrtCondition($rangeCompare, $rangeSearch, $withBorder) &&\n (\n $this->intoSecondCondition($rangeCompare, $rangeSearch) or\n $this->intoThirdCondition($rangeCompare, $rangeSearch) or\n $this->intoFourthCondition($rangeCompare, $rangeSearch)\n )\n );\n }", "public function intersect($otherRect) {}", "function getDateFilterSelectedRange() {\n $from = $this->getAdditionalProperty('date_filter_from');\n $to = $this->getAdditionalProperty('date_filter_to');\n \n return $from && $to ? array(new DateValue($from), new DateValue($to)) : array(null, null);\n }", "public function overlapsAnother()\n {\n /**\n * Get overlapping logs for this user with the tsrange function on the index we created\n * The parenthesises/brackets syntax for defining bounds is slightly confusing\n * The square brackets are inclusive and parenthesises are exclusive.\n * Thus '[)' includes the start and excludes the end.\n * This prevents 13:00 - 14:00 and 14:00 - 15:00 from being considered as overlapping.\n * More info here: http://www.postgresql.org/docs/9.4/static/rangetypes.html\n */\n return LogEntry::whereUserId(user()->id)\n ->where('id', '<>', $this->id)\n ->whereRaw(\n \"tsrange(started_at, ended_at, '[)') && tsrange('{$this->started_at}', '{$this->ended_at}')\"\n )->exists();\n }", "function CalculateWeeklyRecurrancesInRange($startTime, $endTime, $event, $recurrance, $absoluteEnd)\r\n{\r\n\t$ret = array();\r\n\t\t\r\n\tif(strpos($recurrance,\"Every week\") === false || $endTime < $event->startTime || $absoluteEnd < $startTime){\r\n\t\treturn $ret;\r\n\t}\r\n\r\n\t$searchDate1 = clone $startTime;\r\n\t$searchDate2;\r\n\t\r\n\tfor($i = 0; $i < 7; $i++){\r\n\t\tif($searchDate1 > $endTime)\r\n\t\t\tbreak;\r\n\t\tif(strpos($recurrance,$searchDate1->format(\"l\")) !== false)\r\n\t\t{\r\n\t\t\t$searchDate2 = clone $searchDate1;\r\n\t\t\twhile($searchDate2 <= $endTime){\r\n\t\t\t\tif($searchDate2 > $endTime)\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t$newEvent = clone $event;\r\n\t\t\t\t$newEvent->startTime = date_create_from_format(\"Y-m-d H:i:s\", $searchDate2->format(\"Y-m-d\").\" \".$event->startTime->format(\"H:i:s\"));\r\n\t\t\t\t$newEvent->endTime = date_create_from_format(\"Y-m-d H:i:s\", $searchDate2->format(\"Y-m-d\").\" \".$event->endTime->format(\"H:i:s\"));\r\n\t\t\t\t//Checks: don't duplicate the original event, verify start & end time range\r\n\t\t\t\tif($newEvent->startTime->format(\"Y-m-d\") != $event->startTime->format(\"Y-m-d\") && $newEvent->startTime < $endTime && $newEvent->endTime > $startTime && !isException($newEvent->startTime, $event) && $newEvent->startTime > $event->startTime && $newEvent->endTime <= $absoluteEnd)\r\n\t\t\t\t\tarray_push($ret, $newEvent);\r\n\t\t\t\t$searchDate2->add(date_interval_create_from_date_string('7 days'));\r\n\t\t\t}\r\n\t\t}\r\n\t\t$searchDate1->add(date_interval_create_from_date_string('1 day'));\r\n\t}\r\n\treturn $ret;\r\n}", "public function getPrecedingDateRange()\n {\n return $this->preceding_date_range;\n }", "function active_range() {\n\t\treturn new DateRange(\n\t\t\t$this->attribute(\"start date\"),\n\t\t\t$this->attribute(\"end date\"),\n\t\t\t$this\n\t\t);\n\t}", "public function testBookingCannotOverlapStartOfAnotherBooking()\n {\n $previous = factory(Booking::class)->create([\n 'start_time' => Carbon::parse('2017-01-01 13:00:00'),\n 'end_time' => Carbon::parse('2017-01-01 14:00:00'),\n ]);\n\n $booking = factory(Booking::class)->create([\n 'resource_id' => $previous->resource_id,\n 'start_time' => Carbon::parse('2017-01-01 12:00:00'),\n 'end_time' => Carbon::parse('2017-01-01 13:15:00'),\n ]);\n\n $availableRule = new Available($booking->start_time, $booking->end_time, $booking->id);\n\n $this->assertFalse($availableRule->passes('resource_id', $booking->resource_id));\n }", "function the_date_range($start_dt,$end_dt, $one_day = false){\r\n\t\r\n\t$duration = $start_dt->diff($end_dt);\r\n\t$start = explode(\" \",$start_dt->format('l F j Y g i a'));\r\n\t$end = explode(\" \",$end_dt->format('l F j Y g i a'));\r\n\t\r\n\t//happening at the same time\r\n\tif($start == $end){\r\n\t\treturn array(\r\n\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\"%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2] //day of month\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\teo_is_all_day() ? 'all day' : time_compact_ap_format($start[4],$start[5],$start[6])\r\n\t\t);\r\n\t}\t\r\n\t//happening on the same day\r\n\telseif($start[2] == $end[2] || ($duration->days < 1 && $duration->h < 24)){\r\n\t\t//Monday, March 4; 9:00 p.m.\r\n\t\treturn array(\r\n\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\"%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2] //day of month\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\teo_is_all_day() ? 'all day' : sprintf(\r\n\t\t\t\t\"%s&ndash;%s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\t //formatted date\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n\t//happening in the same month\r\n\t//check if happening all day; if not, return eo_all_day ? : \r\n\telseif($start[1] == $end[1]){\r\n\t\treturn (eo_is_all_day() || $one_day) ? \r\n\t\tsprintf(\r\n\t\t\t\"%s %s&ndash;%s\",\r\n\t\t\t$start[1], //month\r\n\t\t\t$start[2], //day of month\r\n\t\t\t$end[2]\r\n\t\t)\r\n\t\t: \r\n\t\tarray(\r\n\t\t\t\"date\" => sprintf(\r\n\t\t\t\t\"%s %s&ndash;%s\",\r\n\t\t\t\t$start[1],\r\n\t\t\t\t$start[2],\r\n\t\t\t\t$end[2]\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\"datetime\" => sprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t$start[1],\r\n\t\t\t\t$start[2],\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\tsprintf(\r\n\t\t\t\t\"%s&ndash;%s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\t//happening in the same year\r\n\telseif($start[3] == $end[3]){\r\n\t\treturn (eo_is_all_day() || $one_day) ?\r\n\t\t\tsprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2], //day of month\r\n\t\t\t\t$end[0],\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\r\n\t\t\t)\r\n\t\t\t:\r\n\t\t\tarray(\r\n\t\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s %s&ndash;%s %s\",\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"datetime\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s, %s %s&ndash;%s, %s, %s %s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\t\"time\"\t=>\tsprintf(\"%s&ndash;%s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n\t//just plain happening\r\n\r\n\telse{\r\n\t\treturn (eo_is_all_day() || $one_day) ? \r\n\t\t\tsprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2], //day of month\r\n\t\t\t\t$end[0],\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\r\n\t\t\t)\r\n\t\t\t:\r\n\t\t\tarray(\r\n\t\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"datetime\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s, %s %s&ndash;%s, %s, %s %s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\t\"time\"\t=>\tsprintf(\"%s&ndash;%s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n}", "public static function between(array $options )\r\n {\r\n extract($options);\r\n $query = self::where('start_time', '>=', $start_time)\r\n ->where('end_time', '<=', $end_time);\r\n if( ! empty($employee_id) )\r\n {\r\n $query->where('employee_id', $employee_id);\r\n }\r\n return $query->get();\r\n }", "private function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n}", "public function checkOverlap()\n {\n\n $args = array('pre_burn_id'=>null,'start_date'=>null,'end_date'=>null);\n extract(merge_args(func_get_args(), $args));\n\n $result = false;\n\n if (empty($end_date)) {\n $end_date = $start_date;\n }\n\n if (empty($start_date)) {\n $start_date = $end_date;\n }\n\n $overlaps = fetch_one(\n \"SELECT COUNT(burn_id) as overlaps\n FROM burns\n WHERE pre_burn_id = ?\n AND (\n ? BETWEEN start_date AND end_date\n OR ? BETWEEN start_date AND end_date\n );\",\n array($pre_burn_id, $start_date, $end_date)\n );\n\n if ($overlaps > 0) {\n $result = true;\n }\n\n return json_encode($result);\n }", "private static function usortByStartDate(Doctrine_Temporal_TimePeriod $t1, Doctrine_Temporal_TimePeriod $t2) {\n if ($t1->eff_date == $t2->eff_date) {\n return 0;\n }\n if ($t1->eff_date > $t2->eff_date) {\n return 1;\n }\n return -1;\n }", "function createRangeStat($start, $end, $format = 'Y-m-d') {\n \t\tdate_default_timezone_set(\"Europe/London\");\n\t\t$start = new DateTime($start);\n\t\t$end = new DateTime($end);\n\t\t$invert = $start > $end;\n\n\t\t$dates = array();\n\t\t$dates[] = $start->format($format);\n\t\twhile ($start != $end) {\n\t\t\t$start->modify(($invert ? '-' : '+') . '1 day');\n\t\t\t$dates[] = $start->format($format);\n\t\t}\n\t\treturn $dates;\n\t}", "public function diff(DateRange $arg)\n {\n if (!$this->overlaps($arg)) {\n throw new OutOfRangeException('Argument must overlap this range');\n }\n\n if ($this->getStart() < $arg->getStart()\n && $this->getEnd() > $arg->getEnd()\n ) {\n throw new OutOfRangeException('Argument must not be exclusively contained within this range');\n }\n\n if ($this->getStart() < $arg->getStart()) {\n return new static(\n clone $this->getStart(),\n date_modify(clone $arg->getStart(), '-1 second')\n );\n }\n\n return new static(\n date_modify(clone $arg->getEnd(), '+1 second'),\n clone $this->getEnd()\n );\n }", "function range_to_cidr($a, $b) {\n\t$c = null;\n\t$bitmask1 = 0x80000000;\n\t$bitmask0 = 0x7fffffff;\n\t$cidr = 1;\n\t$best = array(null, 32);\n\n\t$c = $a & $bitmask1;\n\t$same_start = $c == ($b & $bitmask1);\n\t$same_end = ($a & $bitmask0) ^ ($b & $bitmask0) == $bitmask0;\n\twhile ($cidr < 32 && $same_start) {\n\t\tif ($same_end) {\n\t\t\t$best = array($c, $cidr);\n\t\t}\n\t\t$cidr += 1;\n\t\t$bitmask1 = ($bitmask1 >> 1) | 0x80000000;\n\t\t$bitmask0 = ($bitmask0 >> 1) & 0x7fffffff;\n\t\t$c = $a & $bitmask1;\n\t\t$same_start = $c == ($b & $bitmask1);\n\t\t$same_end = ($a & $bitmask0) ^ ($b & $bitmask0) == $bitmask0;\n\t}\n\n\treturn $best;\n}", "function GetDates(DateRange $startingDates);", "public function dateRanges(): DateRangeCollection;", "public function dateRange($field, $date1, $date2 = '') {\n\t\t$date1 = date('Y-m-d 00:00:00', strtotime($date1));\n\t\t$date2 = date('Y-m-d 23:59:59', strtotime($date2));\n\t\treturn array($field.' >= ' => $date1, $field.' <= ' => $date2);\n\t}", "function intervalGreaterThan($interval1,$interval2)\n{\n\n $e = new DateTime('00:00');\n $f = clone $e;\n $e->add($interval1);\n $f->add($interval2);\n\n return $e>$f;\n}", "function between($x, $y, $y2, ...$args)\n {\n $expression = array();\n array_push($expression, $x, _BETWEEN,$y, $y2, ...$args);\n return $expression;\n }", "function between($x, $y, $y2, ...$args)\n {\n $expression = array();\n array_push($expression, $x, _BETWEEN,$y, $y2, ...$args);\n return $expression;\n }", "function FirstCompareDates($SenStart, $SenEnd, $uStart, $uEnd){\n\t$boolOut = \"FALSE\";\n\tif((strtotime($uStart) >= strtotime($SenStart))&&(strtotime($uEnd) <= strtotime($SenEnd))){\n\t\t$boolOut = \"TRUE\";\n\t}\n\telse {\n\t\t$boolOut = \"FALSE\";\n\t}\n\treturn \t$boolOut;\n}", "public function findByDatesQuery($date1, $date2, $unwantedIds = array()) {\n\n $em = $this->getEntityManager();\n if ($date1 > $date2) {\n $temp = $date2;\n $date2 = $date1;\n $date1 = $temp;\n }\n $dql = \"select e.id, e.date_from, e.date_to\n from Vibby\\Bundle\\BookingBundle\\Entity\\Event e\n where\n not(\n (\n e.date_from > '\" . $date1->format('Y-m-d') . \"'\n and\n e.date_from > '\" . $date2->format('Y-m-d') . \"'\n ) or (\n e.date_to < '\" . $date1->format('Y-m-d') . \"'\n and\n e.date_to < '\" . $date2->format('Y-m-d') . \"'\n )\n ) and (\n e.is_validated = 1\n )\";\n// echo $dql;\n if (count($unwantedIds)) {\n $dql .= \"\n and (\n e.id NOT IN (\" . implode(',', $unwantedIds) . \")\n )\n \";\n }\n\n return $em->createQuery($dql);\n }", "public function reservationValidation($reservation, $start, $end)\n {\n $usedTables = DB::table('individual_reservations')->where('table_id', $reservation->table_id)->where('id', '!=', $reservation->id)/*->where('start_date', '>', $date)*/\n ->get();\n\n\n foreach ($usedTables as $res)\n {\n if (($res->start_date >= $start && $res->start_date <= $end) || ($res->end_date >= $start && $res->end_date <= $end))\n {\n return ['start' => $res->start_date, 'end' => $res->end_date];\n }\n }\n\n return null;\n }", "public function createFromDatePeriodProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = 9;\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n ) {\n return [\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n $option,\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n );\n }", "public function _constructProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = 9;\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n ) {\n return [\n $start,\n $interval,\n $end,\n $option,\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n );\n }", "public function findByDates($date1, $date2, $unwantedIds = array()) {\n \n return $this->findByDatesQuery($date1, $date2, $unwantedIds)->getResult();\n \n }", "public function between($val1, $val2) \n {\n // Alittle cleaning\n $val1 = $this->clean($val1);\n $val2 = $this->clean($val2);\n \n // Build our statement\n $this->sql .= \" BETWEEN `\". $val1 .\"` AND `\". $val2 .\"`\";\n return $this;\t\n }", "public function between($left, $right)\n {\n return new Expression($this, \n new ExpressionList(array($this->checkLiteral($left), $this->checkLiteral($right))), \n Operators::BETWEEN);\n }", "function get_occurs_within_where_clause($table_name, $rel_table, $start_ts_obj, $end_ts_obj, $field_name='date_start', $view){\n\t\tglobal $timedate;\n\t\n\t\t$start = clone $start_ts_obj;\n\t\t$end = clone $end_ts_obj;\n\n\t\t$field_date = $table_name.'.'.$field_name;\n\t\t$start_day = $GLOBALS['db']->convert(\"'{$start->asDb()}'\",'datetime');\n\t\t$end_day = $GLOBALS['db']->convert(\"'{$end->asDb()}'\",'datetime');\n\n\t\t$where = \"($field_date >= $start_day AND $field_date < $end_day\";\n\t\tif($rel_table != ''){\n\t\t\t$where .= \" AND $rel_table.accept_status != 'decline'\";\n\t\t}\n\n\t\t$where .= \")\";\n\t\treturn $where;\n\t}", "public function toDateTimeRange()\n {\n $minDateTime = new \\DateTime();\n $minDateTime->setDate($this->year, $this->month ?? 1, $this->day ?? 1);\n $minDateTime->setTime($this->hours ?? 0, $this->minutes ?? 0, $this->seconds ?? 0, 0);\n\n /*\n * Calculating maximum date\n */\n $maxDateTime = new \\DateTime();\n if ($this->month === null) {\n $maxDateTime->setDate($this->year + 1, 1, 0);\n } elseif ($this->month !== null && $this->day === null) {\n $maxDateTime->setDate($this->year, $this->month + 1, 0);\n } elseif ($this->month !== null && $this->day !== null) {\n $maxDateTime->setDate($this->year, $this->month, $this->day);\n }\n\n $maxDateTime->setTime($this->hours ?? 23, $this->minutes ?? 59, $this->seconds ?? 59, 999999);\n\n return new DateTimeRange($minDateTime, $maxDateTime);\n }", "function dateCompare($a, $b) { \n\t\t\t\t\t\tif(sameDate($a->startDate, $b->startDate)) {\n\t\t\t\t\t\t\treturn 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn ($a->startDate->getTimestamp() < $b->startDate->getTimestamp()) ? -1 : 1;\n\t\t\t\t\t}", "public static function checkDatesDontOverlap($start_date_hour, $ending_date_hour) {\n $results = DB::select(\n 'SELECT * FROM events \n\t\t\tWHERE ( start_date_hour BETWEEN ? AND ? OR\n\t\t\tending_date_hour BETWEEN ? AND ? ) OR\n\t\t\t( start_date_hour < ? AND ending_date_hour > ? )', array(\n $start_date_hour, $ending_date_hour,\n $start_date_hour, $ending_date_hour,\n $start_date_hour, $ending_date_hour,\n ));\n if ($results != NULL) {\n $response['fail'] = array(\n 'event' => [trans('fail.event.overlap')],\n );\n } else {\n $response = true;\n }\n return $response;\n }", "function intervalAdd($interval1,$interval2)\n{\n\n $e = new DateTime('00:00');\n $f = clone $e;\n $e->add($interval1);\n $e->add($interval2); \n\n return $f->diff($e);\n}", "function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n}", "function specified_time_intervals($p)\n{\n $patient = \\Session::get('active_patient');\n if (empty($patient->dob)) {\n return true;\n }\n $dob = \\Carbon\\Carbon::parse($patient->dob);\n\n $interval = null;\n $patient_age = null;\n $search = '-';\n\n $gender_specific = ReferenceRange::whereProcedure($p->id)\n ->where('age', 'LIKE', '%' . $search . '%')\n ->whereGender(strtolower($patient->sex))\n ->get();\n\n\n $ranges_default = ReferenceRange::whereProcedure($p->id)\n ->where('age', 'LIKE', '%' . $search . '%')\n ->whereGender('both')\n ->get();\n\n if ($gender_specific->count() > 0) {\n $interval = get_interval($gender_specific, $dob);\n } else {\n $interval = get_interval($ranges_default, $dob);\n }\n\n if (!empty($interval)) {\n return $interval;\n } else {\n return false;\n }\n}", "public function getParticipationsByRangeDate($startDate='', $endDate='')\r\n\t{\r\n\t\t$em = $this->getServiceManager()->get('doctrine.entitymanager.orm_default');\r\n\r\n\t\t$startDateTime = \\DateTime::createFromFormat('d/m/Y', $startDate);\r\n\t\t$endDateTime = \\DateTime::createFromFormat('d/m/Y', $endDate);\r\n\r\n\t\tif ($startDate != '' && $endDate != '') {\r\n\t\t\t$dateRange = \"(e.created_at >='\" . $startDateTime->format('Y-m-d') . \" 0:0:0' AND e.created_at <= '\" . $endDateTime->format('Y-m-d') . \" 0:0:0')\";\r\n\t\t} elseif ($startDate == '' && $endDate != '') {\r\n\t\t\t$dateRange = \"e.created_at <= '\" . $endDateTime->format('Y-m-d') . \" 0:0:0'\";\r\n\t\t} elseif ($startDate != '' && $endDate == '') {\r\n\t\t\t$dateRange = \"e.created_at >='\" . $startDateTime->format('Y-m-d') . \" 0:0:0'\";\r\n\t\t} else {\r\n\t\t\t$dateRange = \"e.created_at IS NOT NULL\";\r\n\t\t}\r\n\r\n\t\t$query = $em->createQuery('\r\n\t\t\tSELECT COUNT(e.id) FROM PlaygroundGame\\Entity\\Entry e\r\n\t\t\tWHERE ' . $dateRange . '\r\n\t\t\tAND e.active=0\r\n\t\t');\r\n\t\t$count = $query->getSingleScalarResult();\r\n\t\treturn $count;\r\n\t}", "private function createDateRangeArray($strDateFrom, $strDateTo) {\n\t\t// takes two dates formatted as YYYY-MM-DD and creates an\n\t\t// inclusive array of the dates between the from and to dates.\n\t\t\n\t\t// could test validity of dates here but I'm already doing\n\t\t// that in the main script\n\t\t$aryRange = array ();\n\t\t\n\t\t$iDateFrom = mktime ( 1, 0, 0, substr ( $strDateFrom, 5, 2 ), substr ( $strDateFrom, 8, 2 ), substr ( $strDateFrom, 0, 4 ) );\n\t\t$iDateTo = mktime ( 1, 0, 0, substr ( $strDateTo, 5, 2 ), substr ( $strDateTo, 8, 2 ), substr ( $strDateTo, 0, 4 ) );\n\t\t\n\t\tif ($iDateTo >= $iDateFrom) {\n\t\t\tarray_push ( $aryRange, date ( 'Y-m-d', $iDateFrom ) ); // first entry\n\t\t\twhile ( $iDateFrom < $iDateTo ) {\n\t\t\t\t$iDateFrom += 86400; // add 24 hours\n\t\t\t\tarray_push ( $aryRange, date ( 'Y-m-d', $iDateFrom ) );\n\t\t\t}\n\t\t}\n\t\treturn $aryRange;\n\t}", "function o_le($a, $b) {\n\t\t\treturn Obj::singleton()->lessThanOrEqual($a, $b);\n\t\t}", "function createDateRangeArray($strDateFrom,$strDateTo)\n {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing that in the main script\n \n $aryRange=array();\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date(DATE_FORMAT,$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date(DATE_FORMAT,$iDateFrom));\n }\n }\n \n return $aryRange;\n }", "function checkOverlap($aStartX,$aStartY,$aEndX,$aEndY,$bStartX,$bStartY,$bEndX,$bEndY){\n if(($aStartX<$bEndX) && ($aEndX >$bStartX) && ($aStartY<$bEndY) && ($aEndY> $bStartY))\n {\n return false;\n }else{\n return true;\n }\n}", "public function boundedWith(string $bounds): self\n {\n if ($bounds === $this->bounds) {\n return $this;\n }\n\n return new self($this->startDate, $this->endDate, $bounds);\n }", "public function overlaps(Range $range) {\n return $range->contains($this->start) || $range->contains($this->end) || $this->includes($range);\n }", "function comparedates($a, $b)\n\t{\n\n\t\tif (!array_key_exists('DTSTART', $a) || !array_key_exists('DTSTART', $b))\n\t\t{\n\t\t\techo \"help<br/>\";\n\t\t}\n\t\tif ($a['DTSTART'] == $b['DTSTART']) return 0;\n\n\t\treturn ($a['DTSTART'] > $b['DTSTART']) ? +1 : -1;\n\t}", "public function selectBetween( $sStartDate, $sStopDate, Inx_Api_Recipient_RecipientContext $rc, $aAttributes );", "protected function dates_filter(){\n \t//+Constraint Isgi: only one year data\n \t$temporal = $this->get_temporal();\n \tif( strtolower($temporal->end) == \"now\"){\n \t\t$now = new \\DateTime();\n \t\t$temporal->end = $now->format(\"Y-m-d\");\n \t}\n \t\n \t\n \t//change start and end\n \tif( $this->start < $temporal->start){\n \t\t$this->start = $temporal->start;\n \t}\n \tif( $this->end > $temporal->end){\n \t\t$this->end = $temporal->end;\n \t}\n \t$update = $this->get_update();\n \tif( !empty( $update) && $update < $this->end){\n \t\t$this->end = $update;\n \t}\n \t// diff between start and end\n \t$start = new \\DateTime( $this->start);\n \t$end = new \\DateTime( $this->end);\n \t$interval = $start->diff( $end);\n \tif( $interval->invert){\n \t\t//end < start\n \t\t$this->error = \"NO_DATA\";\n \t}else{\n\t \tif( $interval->days > 365){\n\t \t\t$start = clone $end;\n\t \t\t$start->sub( new \\DateInterval(\"P364D\"));\n\t \t\t$this->start = $start->format(\"Y-m-d\");\n\t \t}\n \t}\n }", "public function cidrIntersect($a, $b)\n {\n\n $ip1 = $a;\n $ip2 = $b;\n $regex = '~(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)/(\\d+)~';\n\n preg_match($regex, $ip1, $ip1);\n preg_match($regex, $ip2, $ip2);\n if (! isset($ip1[5]) && ! isset($ip2[5])) {\n return $a === $b;\n } elseif (! isset($ip1[5])) {\n return $this->ipCidrCheck($a, $b);\n } elseif (! isset($ip2[5])) {\n return $this->ipCidrCheck($b, $a);\n }\n $mask = min($ip1[5], $ip2[5]);\n\n $ip1 = substr(\n $this->binPad($ip1[1]) . $this->binPad($ip1[2]) .\n $this->binPad($ip1[3]) . $this->binPad($ip1[4]),\n 0,\n $mask\n );\n\n $ip2 = substr(\n $this->binPad($ip2[1]) . $this->binPad($ip2[2]) .\n $this->binPad($ip2[3]) . $this->binPad($ip2[4]),\n 0,\n $mask\n );\n return $ip1 === $ip2;\n }", "public static function before(\n DatePoint|DateTimeInterface $endDate,\n Period|Duration|DateInterval $duration,\n string $bounds = self::INCLUDE_START_EXCLUDE_END\n ): self {\n $endDate = self::filterDatePoint($endDate);\n\n return new self($endDate->sub(self::filterDuration($duration)), $endDate, $bounds);\n }", "public static function inputDatePickersGetLeftAndRight($labelA, $labelB, $modelA, $modelB, $minDate, $maxDate, $onChange = '')\n {\n $out = new \\stdClass();\n $out->left = Html::inputDatePickerDependente($labelA, $modelA, $minDate, $modelB, $onChange);\n $out->right = Html::inputDatePickerDependente($labelB, $modelB, $modelA, $maxDate, $onChange);\n return $out;\n }", "public function checkOverlap()\n {\n global $zdb;\n\n try {\n $select = $zdb->select(self::TABLE, 'c');\n $select->columns(\n array('date_debut_cotis', 'date_fin_cotis')\n )->join(\n array('ct' => PREFIX_DB . ContributionsTypes::TABLE),\n 'c.' . ContributionsTypes::PK . '=ct.' . ContributionsTypes::PK,\n array()\n )->where(Adherent::PK . ' = ' . $this->_member)\n ->where(array('cotis_extension' => new Expression('true')))\n ->where->nest->nest\n ->greaterThanOrEqualTo('date_debut_cotis', $this->_begin_date)\n ->lessThan('date_debut_cotis', $this->_end_date)\n ->unnest\n ->or->nest\n ->greaterThan('date_fin_cotis', $this->_begin_date)\n ->lessThanOrEqualTo('date_fin_cotis', $this->_end_date);\n\n if ( $this->id != '' ) {\n $select->where(self::PK . ' != ' . $this->id);\n }\n\n $results = $zdb->execute($select);\n $result = $results->current();\n if ( $result !== false ) {\n $d = new \\DateTime($result->date_debut_cotis);\n\n return _T(\"- Membership period overlaps period starting at \") .\n $d->format(_T(\"Y-m-d\"));\n }\n return true;\n } catch (\\Exception $e) {\n Analog::log(\n 'An error occured checking overlaping fee. ' . $e->getMessage(),\n Analog::ERROR\n );\n return false;\n }\n }", "function __construct($start, $end)\r\n {\r\n\r\n // For creating a DateRange object for an exact date (like if exact\r\n // date-of-birth is known) just pass the same value for `start` and `end`.\r\n\r\n if (!empty($start))\r\n {\r\n $this->start = $start;\r\n }\r\n if (!empty($end))\r\n {\r\n $this->end = $end;\r\n }\r\n\r\n if (empty($this->start) && empty($this->end))\r\n {\r\n throw new InvalidArgumentException('Start/End parameters missing');\r\n }\r\n\r\n if (($this->start && $this->end) && ($this->start > $this->end))\r\n {\r\n $t = $this->end;\r\n $this->end = $this->start;\r\n $this->start = $t;\r\n }\r\n }", "public function traslapeRange(RangeDates $rangeCompare, \n RangeDates $rangeSearch){\n return !($rangeSearch->initialDate->greaterThan($rangeCompare->finalDate) or\n $rangeCompare->initialDate->greaterThan($rangeSearch->finalDate));\n }", "function test_range() {\n\t\t// Check range\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2018, 1 );\n\t\t$this->assertEquals( '2018-01-01 00:00:00', $start );\n\t\t$this->assertEquals( '2018-01-31 23:59:59', $end );\n\t\t// Check leap year\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2004, 2 );\n\t\t$this->assertEquals( '2004-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '2004-02-29 23:59:59', $end );\n\t\t// Check exceptional leap year.\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 1900, 2 );\n\t\t$this->assertEquals( '1900-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '1900-02-28 23:59:59', $end );\n\t}", "public function age_range()\r\n {\r\n if (empty($this->date_range)){\r\n return array(NULL, NULL);\r\n }\r\n if(empty($this->date_range->start) || empty($this->date_range->end)){\r\n return array($this->age(), $this->age());\r\n }\r\n\r\n $start_date = new PiplApi_DateRange($this->date_range->start, $this->date_range->start);\r\n $end_date = new PiplApi_DateRange($this->date_range->end, $this->date_range->end);\r\n $start_age = new PiplApi_DOB(array('date_range' => $start_date));\r\n $start_age = $start_age->age();\r\n $end_age = new PiplApi_DOB(array('date_range' => $end_date));\r\n $end_age = $end_age->age();\r\n\r\n return (array($end_age, $start_age));\r\n }", "protected function _getDateRange()\n {\n if (is_null($this->_dateRange)) {\n $this->_dateRange = array();\n $rules = $this->getAttributeObject()->getValidateRules();\n if (isset($rules[self::MIN_DATE_RANGE_KEY])) {\n $this->_dateRange[self::MIN_DATE_RANGE_KEY] = $rules[self::MIN_DATE_RANGE_KEY];\n }\n if (isset($rules[self::MAX_DATE_RANGE_KEY])) {\n $this->_dateRange[self::MAX_DATE_RANGE_KEY] = $rules[self::MAX_DATE_RANGE_KEY];\n }\n }\n return $this->_dateRange;\n }", "function createDateRangeArray($strDateFrom, $strDateTo) {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry\n\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange, date('Y-m-d', $iDateFrom));\n }\n }\n return $aryRange;\n}", "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\r\n{\r\n $begin = new DateTime($startDate);\r\n $end = new DateTime($endDate);\r\n \r\n $interval = new DateInterval('P1D'); \r\n $dateRange = new DatePeriod($begin, $interval, $end);\r\n \r\n $range = [];\r\n \r\n for($i=$begin;$i<=$end;$i->modify('+1 day')) {\r\n $range[] = $i->format($format);\r\n \r\n }\r\n return $range; \r\n}", "function createDateRangeArray($strDateFrom,$strDateTo,$id_tamu)\n\t{\n\t\t// inclusive array of the dates between the from and to dates.\n\n\t\t// could test validity of dates here but I'm already doing\n\t\t// that in the main script\n\n\t\t$aryRange=array();\n\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n\t\tif ($iDateTo>=$iDateFrom)\n\t\t{\n\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom).\"_\".$id_tamu); // first entry\n\t\t\twhile ($iDateFrom<$iDateTo)\n\t\t\t{\n\t\t\t\t$iDateFrom+=86400; // add 24 hours\n\t\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom).\"_\".$id_tamu);\n\t\t\t}\n\t\t}\n\t\treturn $aryRange;\n\t}", "function createDateRangeArray($strDateFrom, $strDateTo) {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange, date('Y-m-d', $iDateFrom));\n }\n }\n return $aryRange;\n}", "public function dateTimeRange($field, $date1, $date2 = '') {\n\t\t$date1 = date('Y-m-d H:i:s', strtotime($date1));\n\t\t$date2 = date('Y-m-d H:i:s', strtotime($date2));\n\t\treturn array($field.' >= ' => $date1, $field.' <= ' => $date2);\n\t}", "public static function getRange($datetime, $opts = array())\n {\n $datetime = self::getDateTime($datetime);\n $opts = \\array_merge(array(\n 'range' => 'day', // hour, day, week, month, or year\n 'format' => null,\n 'weekStartDay'=> 0,\n ), $opts);\n $return = false;\n switch ($opts['range']) {\n case 'hour':\n $strStart = $datetime->format('Y-m-d H:00:00');\n $dateInterval = new \\DateInterval('PT1H');\n break;\n case 'day':\n $strStart = $datetime->format('Y-m-d');\n $dateInterval = new \\DateInterval('P1D');\n break;\n case 'week':\n $days = $datetime->format('w') - $opts['weekStartDay'];\n if ($days < 0) {\n $days = $days + 7;\n }\n $dtTemp = clone $datetime;\n $dtTemp->setTime(0, 0)->sub(new \\DateInterval('P'.$days.'D'));\n $strStart = $dtTemp->format('Y-m-d');\n $dateInterval = new \\DateInterval('P1W');\n break;\n case 'month':\n $strStart = $datetime->format('Y-m-01');\n $dateInterval = new \\DateInterval('P1M');\n break;\n case 'year':\n $strStart = $datetime->format('Y-01-01');\n $dateInterval = new \\DateInterval('P1Y');\n break;\n }\n $dtStart = new \\DateTime($strStart);\n $dtStartAtom = $dtStart->format(\\DateTime::ATOM);\n /*\n DateTimeImmutable is php 5.5\n (clone $datetime)->add() is a php 7 thing\n */\n $return = array(\n 'passed'=> $datetime,\n 'start' => $dtStart,\n 'end' => (new \\DateTime($dtStartAtom))\n ->add($dateInterval)\n ->sub(new \\DateInterval('PT1S')),\n 'prev' => (new \\DateTime($dtStartAtom))->sub($dateInterval),\n 'next' => (new \\DateTime($dtStartAtom))->add($dateInterval),\n 'minus' => (new \\DateTime($datetime->format(\\DateTime::ATOM)))->sub($dateInterval),\n 'plus' => (new \\DateTime($datetime->format(\\DateTime::ATOM)))->add($dateInterval),\n );\n if ($opts['range'] == 'month') {\n if ($return['plus']->format('j') !== $datetime->format('j')) {\n $return['plus']->modify('last day of last month');\n }\n if ($return['minus']->format('j') !== $datetime->format('j')) {\n $return['minus']->modify('last day of last month');\n }\n }\n return \\array_map(function ($datetime) use ($opts) {\n if (!$opts['format']) {\n return $datetime;\n }\n $val = $datetime->format($opts['format']);\n if ($opts['format'] == 'U') {\n $val = (float) $val;\n }\n return $val;\n }, $return);\n }", "public function startingOn(DatePoint|DateTimeInterface $startDate): self\n {\n $startDate = self::filterDatePoint($startDate);\n if ($startDate == $this->startDate) {\n return $this;\n }\n\n return new self($startDate, $this->endDate, $this->bounds);\n }", "public function __construct(&$events, $rangeLowerBound, $rangeUpperBound, $workdayLowerBound = 0, $workdayUpperBound = 24, $length, $topSlots = 5){\n\n\t\tif($workdayLowerBound > $workdayUpperBound || $workdayUpperBound > 1440)\n\t\t\tdie(\"ERROR: Invalid workday interval.\");\n\t\t\n\t\telse{\n\t\t\t$this->workdayLowerBound = $workdayLowerBound;\n\t\t\t$this->workdayUpperBound = $workdayUpperBound;\n\t\t\t$this->rangeLowerBound = $rangeLowerBound;\n\t\t\t$this->rangeUpperBound = $rangeUpperBound;\n\t\t\t$this->topSlots = $topSlots;\n\n\t\t\t$this->root = new IntervalObject(0, 1E9, 'ROOT');\n\t\t\t\n\t\t\tself::$length = $length;\n\n //echo json_encode($rangeLowerBound);\n\n // $workdayLowerBound += $rangeLowerBound;\n // $workdayUpperBound += $rangeLowerBound;\n\n\n foreach($events as $email => $intervals) {\n for($j = 0; $j < count($events[$email]); $j++) {\n $events[$email][$j]['startTime'] += $rangeLowerBound;\n $events[$email][$j]['endTime'] += $rangeLowerBound;\n }\n }\n\n\t\t\tforeach($events as $email => $intervals) {\n $a = new ArrayIterator($intervals);\n\t\t\t\tforeach($a as $interval){\n\n // echo json_encode(\"BEFORE -> \").json_encode($interval).\"\\n\";\n\n if( ($interval['startTime'] % 1440) > $workdayUpperBound){\n $interval['startTime'] = 1440*(floor($interval['startTime']/1440)+1) + $workdayLowerBound;\n }\n else if( ($interval['startTime'] % 1440) < $workdayLowerBound ){\n $interval['startTime'] = 1440*floor($interval['startTime']/1440) + $workdayLowerBound;\n }\n\n //if( ($interval['endTime'] % 1440) < $workdayLowerBound){\n // $interval['endTime'] = 1440*(floor($interval['startTime']/1440)-1) + $workdayLowerBound;\n //}\n //else\n if( ($interval['endTime'] % 1440) > $workdayUpperBound ){\n $interval['endTime'] = 1440*floor($interval['endTime']/1440) + $workdayUpperBound;\n }\n\n //echo json_encode(\"AFTER -> \").json_encode($interval).\"\\n\";\n\n\t\t\t\t\tif( $interval['endTime'] - $interval['startTime'] < $length) {\n // echo json_encode(\"INVALID RANGE => \").json_encode($interval).\"\\n\";\n continue;\n }\n\n\t\t\t\t\t// instead of more than a day apart, divide by 1440 and see if the day matches\n\t\t\t\t\tif(floor($interval['startTime']/1440) < floor($interval['endTime']/1440)){\n //$c = 0;\n\t\t\t\t\t\tdo {\n // var_dump($interval);\n $tempEnd = 1440*floor($interval['startTime']/1440) + $workdayUpperBound;\n\n if($tempEnd > $interval['endTime'])\n $tempEnd = $interval['endTime'];\n\n $a->append(array('startTime' => $interval['startTime'],\n 'endTime' => $tempEnd));\n\n $interval['startTime'] = 1440*(floor($interval['startTime']/1440)+1) + $workdayLowerBound;\n\n //if($c >= 5)\n // break;\n //$c++;\n }\n\t\t\t\t\t\twhile ($interval['startTime'] / 1440 < $interval['endTime'] / 1440);\n\n //die();\n\n\t\t\t\t\t\t// insert the final range\n\t\t\t\t\t\t$a->append(array('startTime' => $interval['startTime'], 'endTime' => $interval['endTime']));\n\t\t\t\t\t}\n else{\n // echo json_encode(\"Inserting: $email -> \").\"\\n\";\n // echo json_encode($interval).\"\\n\";\n $this->root->insertInterval($email, $interval['startTime'], $interval['endTime']);\n }\n\n\n /*\n if( $interval['endTime'] - $interval['startTime'] < 1440 ) {\n echo json_encode(\"Inserting: $email -> \").\"\\n\";\n echo json_encode($interval).\"\\n\";\n $this->root->insertInterval($email, $interval['startTime'], $interval['endTime']);\n }\n else{\n echo json_encode(\"TOO LARGE RANGE => \").json_encode($interval).\"\\n\";\n\n \n }*/\n\n\t\t\t\t}\n\n\t\t\t}\n\n // echo json_encode($events);\n\t\t}\n\n\t}", "function erp_check_date_range_in_range_exist( $start_date, $end_date, $user_date_start, $user_date_end ) {\n\n if ( erp_check_date_in_range( $start_date, $end_date, $user_date_start ) ) {\n return true;\n }\n\n if ( erp_check_date_in_range( $start_date, $end_date, $user_date_end ) ) {\n return true;\n }\n\n return false;\n}", "public function getBetween($start, $end)\n {\n return $this->query()\n ->whereBetween('start_time', [$start, $end])\n ->get();\n }", "public static function is_reservtion_possible(DateTime $date1, DateTime $date2, Room $room_for_check){\r\n if ($date1>$date2) return false;\r\n \r\n $unavailable_dates = (new self)->all_unavailable_dates($room_for_check);\r\n// var_dump($unavailable_dates); \r\n $unav_dates_between = array();\r\n foreach($unavailable_dates as $the_date){\r\n if (self::is_date_greater($the_date, $date1) && self::is_date_greater($date2, $the_date)){\r\n $unav_dates_between[] = $the_date;\r\n// var_dump($the_date);\r\n break;\r\n \r\n }\r\n }\r\n// var_dump($unav_dates_between);\r\n return empty($unav_dates_between);\r\n}", "public function inclusive()\n {\n if (func_num_args() == 0) {\n return $this->getInclusive();\n }\n\n $this->setInclusive(func_get_arg(0));\n\n return $this;\n }", "private function getPostDateRange() {\n \n switch($this->validFilter['postDate']) {\n case 'today' :\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'yesterday':\n $dateStart = new \\DateTime('yesterday');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime('yesterday');\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'thisWeek':\n $today = new \\DateTime();\n if('Sunday' == $today->format('l')) {\n $dateStart = clone $today;\n $dateStart->modify('Monday last week');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = $today;\n $dateEnd->setTime(23, 59, 59);\n } else {\n $dateStart = clone $today;\n $dateStart->modify('Monday this week');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = clone $today;\n $dateEnd->modify('Sunday this week');\n $dateEnd->setTime(23, 59, 59);\n }\n break;\n\n case 'lastWeek':\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateStart->sub(new \\DateInterval('P7D'));\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'pastMonth':\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateStart->sub(new \\DateInterval('P1M'));\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n default :\n $dateStart = new \\DateTime($this->validFilter['postDate']);\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime($this->validFilter['postDate']);\n $dateEnd->setTime(23, 59, 59);\n break;\n } // end of switch\n \n return array($dateStart, $dateEnd);\n }", "function date_dates_between( $date1, $date2 ) {\n\tif ( is_int( $date1 ) ) {\n\t\t$date1 = date( 'Y-m-d H:i:s', $date1 );\n\t\t$date2 = date( 'Y-m-d H:i:s', $date2 );\n\t}\n\t$dates = array();\n\t$date = substr( $date1, 0, 10 );\n\n\twhile ( $date <= $date2 ) {\n\t\t$dates[] = $date;\n\t\t$date = date( 'Y-m-d', mktime( 0, 0, 0, substr( $date, 5, 2 ), substr( $date, 8, 2 ) + 1, substr( $date, 0, 4 ) ) );\n\t}\n\n\treturn $dates;\n}", "public function GetByDate($initialDate, $endDate);", "public function getIteratorProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n $expect[0] = [\n $start[0],\n ($start[0])->add(new DateIntervalObject('P1M')),\n ($start[0])->add(new DateIntervalObject('P2M')),\n ($start[0])->add(new DateIntervalObject('P3M')),\n ($start[0])->add(new DateIntervalObject('P4M')),\n ($start[0])->add(new DateIntervalObject('P5M')),\n ];\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n $expect[1] = [\n ($start[1])->add(new DateIntervalObject('P1M')),\n ($start[1])->add(new DateIntervalObject('P2M')),\n ($start[1])->add(new DateIntervalObject('P3M')),\n ($start[1])->add(new DateIntervalObject('P4M')),\n ($start[1])->add(new DateIntervalObject('P5M')),\n ];\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n $expect[2] = [\n $start[2],\n ($start[2])->add(new DateIntervalObject('P1M')),\n ($start[2])->add(new DateIntervalObject('P2M')),\n ($start[2])->add(new DateIntervalObject('P3M')),\n ($start[2])->add(new DateIntervalObject('P4M')),\n ($start[2])->add(new DateIntervalObject('P5M')),\n ($start[2])->add(new DateIntervalObject('P6M')),\n ($start[2])->add(new DateIntervalObject('P7M')),\n ($start[2])->add(new DateIntervalObject('P8M')),\n ($start[2])->add(new DateIntervalObject('P9M')),\n ];\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[3] = new DateObject('2021-05-01');\n $end[3] = 9;\n $interval[3] = new DateIntervalObject('P1M');\n $option[3] = DatePeriod::EXCLUDE_START_DATE;\n $expect[3] = [\n ($start[3])->add(new DateIntervalObject('P1M')),\n ($start[3])->add(new DateIntervalObject('P2M')),\n ($start[3])->add(new DateIntervalObject('P3M')),\n ($start[3])->add(new DateIntervalObject('P4M')),\n ($start[3])->add(new DateIntervalObject('P5M')),\n ($start[3])->add(new DateIntervalObject('P6M')),\n ($start[3])->add(new DateIntervalObject('P7M')),\n ($start[3])->add(new DateIntervalObject('P8M')),\n ($start[3])->add(new DateIntervalObject('P9M')),\n ];\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n $expect\n ) {\n return [\n $start,\n $interval,\n $end,\n $option,\n $expect,\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n $expect,\n );\n }", "function visible_range() {\n\t\treturn new DateRange(\n\t\t\t$this->attribute(\"show date\"),\n\t\t\t$this->attribute(\"hide date\"),\n\t\t\t$this\n\t\t);\n\t}", "public function between(Carbon $start, Carbon $end)\n {\n return $this->formatResults($this->query($start, $end)->get());\n }", "public function validTimeRange()\n {\n return new ValidTimeRange(\n $this->input('start_time'), $this->input('end_time')\n );\n }", "function datePeriod_start_end($begin, $end)\n{\n $begin = new DateTime($begin);\n\n $end = new DateTime($end.' +1 day');\n\n $daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);\n\n foreach ($daterange as $date) {\n $dates[] = $date->format(\"Y-m-d\");\n }\n return $dates;\n}", "public static function from_array($d)\r\n {\r\n $newstart = !empty($d['start']) ? $d['start'] : NULL;\r\n $newend = !empty($d['end']) ? $d['end'] : NULL;\r\n if($newstart) {\r\n $newstart = PiplApi_Utils::piplapi_str_to_date($newstart);\r\n }\r\n if($newend){\r\n $newend = PiplApi_Utils::piplapi_str_to_date($newend);\r\n }\r\n return new PiplApi_DateRange($newstart, $newend);\r\n }", "function is_valid_date_range($date_start, $date_end){\n $d1 = strtotime($date_start);\n $d2 = strtotime($date_end);\n\n if($d2 >= $d1){\n return true;\n }else{\n return false;\n }\n\n}", "public function get_first_rate_list_between_date($start_date = '', $end_date = '')\n {\n if ('' == strval($start_date)\n || '' == strval($end_date))\n {\n return FALSE;\n }\n\n // check date format\n $format = 'Ymd';\n $start_date = date($format, strtotime($start_date));\n $end_date = date($format, strtotime($end_date));\n if (empty($start_date)\n || empty($end_date))\n {\n return FALSE;\n }\n\n $i = 1;\n $rs = array();\n do\n {\n $date_rs = $this->get_rate_change_list($start_date);\n if (!is_array($date_rs))\n {\n //set log?\n $rs[$start_date] = $this->field_list;\n }\n else\n {\n $rs[$start_date] = array_shift($date_rs);\n }\n\n $start_date = date($format, strtotime($start_date . ' +1 days'));\n }while ($start_date <= $end_date);\n\n return $rs;\n }", "function validateDateRange($date1, $date2){\n\treturn ( strtotime($date1) - strtotime($date2) ) <= 0;\t//should be a negative number, or 0 if posts=expiration\n}", "public function getIncludedRanges(): Range\n {\n return API::ffi()->ts_parser_included_ranges($this->data);\n }", "public static function listDatesInRange($dateFrom, $dateTo = null, $format = 'Y-m-d')\n {\n if($dateTo === null){\n $dateTo = date($format);\n }\n\n //check if is valid date\n $objDateFrom = \\DateTime::createFromFormat($format, $dateFrom);\n if(!$objDateFrom || $objDateFrom->format($format) != $dateFrom){\n throw new \\yii\\base\\InvalidArgumentException($dateFrom.' is invalid');\n }\n\n $objDateTo = \\DateTime::createFromFormat($format, $dateTo);\n if(!$objDateTo || $objDateTo->format($format) != $dateTo){\n throw new \\yii\\base\\InvalidArgumentException($dateFrom.' is invalid');\n }\n\n $period = new \\DatePeriod(\n $objDateFrom,\n new \\DateInterval('P1D'),\n $objDateTo\n );\n foreach($period as $key => $value){\n $range[] = $value->format($format);\n }\n $range[] = $objDateTo->format($format);\n\n return $range;\n }" ]
[ "0.59411556", "0.5741939", "0.5698685", "0.5618078", "0.542498", "0.5314924", "0.5284847", "0.52704847", "0.52466756", "0.52130294", "0.51295507", "0.5080017", "0.50422937", "0.4999948", "0.49621534", "0.49485636", "0.49474338", "0.4931763", "0.48952556", "0.48939675", "0.48867795", "0.484671", "0.48416582", "0.4800304", "0.4798211", "0.4791642", "0.47588235", "0.47505242", "0.47423798", "0.47400904", "0.47359386", "0.47247377", "0.47170627", "0.4716274", "0.47115913", "0.47012046", "0.46894684", "0.46847498", "0.4677117", "0.4677117", "0.46687594", "0.46599287", "0.46429232", "0.4623043", "0.46011716", "0.45936424", "0.45933634", "0.4584956", "0.45841926", "0.45763263", "0.4575364", "0.45692912", "0.45649385", "0.45483083", "0.45463678", "0.45438272", "0.45374453", "0.45326683", "0.45278767", "0.45168486", "0.45133585", "0.45090353", "0.45084462", "0.4507629", "0.45065904", "0.45035487", "0.4482879", "0.44746986", "0.4464888", "0.4455729", "0.44498417", "0.44439945", "0.44431272", "0.44416636", "0.44374722", "0.44305864", "0.4429477", "0.4428498", "0.44214693", "0.44207725", "0.44205448", "0.44204015", "0.44168976", "0.4415469", "0.4409169", "0.44059563", "0.44041297", "0.43935597", "0.4385461", "0.43850756", "0.438028", "0.4372709", "0.43713787", "0.43638316", "0.43600273", "0.43573454", "0.43556207", "0.43549985", "0.4351369", "0.43511856" ]
0.7978074
0
Create a new DateRange object from start and end dates
public function __construct(JustDate $start, JustDate $end) { if ($start->isAfter($end)) { throw new InvalidArgumentException("Start date cannot be after end date"); } $this->start = clone $start; $this->end = clone $end; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\r\n{\r\n $begin = new DateTime($startDate);\r\n $end = new DateTime($endDate);\r\n \r\n $interval = new DateInterval('P1D'); \r\n $dateRange = new DatePeriod($begin, $interval, $end);\r\n \r\n $range = [];\r\n \r\n for($i=$begin;$i<=$end;$i->modify('+1 day')) {\r\n $range[] = $i->format($format);\r\n \r\n }\r\n return $range; \r\n}", "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\n {\n $begin = new DateTime($startDate);\n $end = new DateTime($endDate);\n\n $interval = new DateInterval('P1D'); // 1 Day\n $dateRange = new DatePeriod($begin, $interval, $end);\n\n $range = [];\n foreach ($dateRange as $date) {\n $range[] = $date->format($format);\n }\n array_push($range, $endDate);\n return $range;\n }", "public function toDateTimeRange()\n {\n $minDateTime = new \\DateTime();\n $minDateTime->setDate($this->year, $this->month ?? 1, $this->day ?? 1);\n $minDateTime->setTime($this->hours ?? 0, $this->minutes ?? 0, $this->seconds ?? 0, 0);\n\n /*\n * Calculating maximum date\n */\n $maxDateTime = new \\DateTime();\n if ($this->month === null) {\n $maxDateTime->setDate($this->year + 1, 1, 0);\n } elseif ($this->month !== null && $this->day === null) {\n $maxDateTime->setDate($this->year, $this->month + 1, 0);\n } elseif ($this->month !== null && $this->day !== null) {\n $maxDateTime->setDate($this->year, $this->month, $this->day);\n }\n\n $maxDateTime->setTime($this->hours ?? 23, $this->minutes ?? 59, $this->seconds ?? 59, 999999);\n\n return new DateTimeRange($minDateTime, $maxDateTime);\n }", "function GetDates(DateRange $startingDates);", "public static function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\n {\n $begin = new \\DateTime($startDate);\n\n $_end = self::dateAdd($endDate, UnitDay::DAY, 1);\n\n $end = new \\DateTime($_end);\n\n $interval = new \\DateInterval('P1D'); // 1 Day\n $dateRange = new \\DatePeriod($begin, $interval, $end);\n\n $range = [];\n foreach ($dateRange as $date) {\n if ($format == null) {\n $range[] = $date;\n } else {\n $range[] = $date->format($format);\n }\n\n }\n\n\n return $range;\n }", "function datePeriod_start_end($begin, $end)\n{\n $begin = new DateTime($begin);\n\n $end = new DateTime($end.' +1 day');\n\n $daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);\n\n foreach ($daterange as $date) {\n $dates[] = $date->format(\"Y-m-d\");\n }\n return $dates;\n}", "public function dateRanges(): DateRangeCollection;", "public static function from_array($d)\r\n {\r\n $newstart = !empty($d['start']) ? $d['start'] : NULL;\r\n $newend = !empty($d['end']) ? $d['end'] : NULL;\r\n if($newstart) {\r\n $newstart = PiplApi_Utils::piplapi_str_to_date($newstart);\r\n }\r\n if($newend){\r\n $newend = PiplApi_Utils::piplapi_str_to_date($newend);\r\n }\r\n return new PiplApi_DateRange($newstart, $newend);\r\n }", "function dateRange($begin, $end, $interval = null){\n $begin = new DateTime($begin);\n $end = new DateTime($end);\n // Because DatePeriod does not include the last date specified.\n $end = $end->modify('+1 day');\n $interval = new DateInterval($interval ? $interval : 'P1D');\n\n return iterator_to_array(new DatePeriod($begin, $interval, $end));\n}", "function getDatesFromRange($start, $end, $format = 'Y-m-d')\n {\n $array = array();\n $interval = new \\DateInterval('P1D');\n $realEnd = new \\DateTime($end);\n $realEnd->add($interval);\n $period = new \\DatePeriod(new \\DateTime($start), $interval, $realEnd);\n foreach ($period as $date) {\n $array[] = $date->format($format);\n }\n\n return $array;\n }", "function createRangeStat($start, $end, $format = 'Y-m-d') {\n \t\tdate_default_timezone_set(\"Europe/London\");\n\t\t$start = new DateTime($start);\n\t\t$end = new DateTime($end);\n\t\t$invert = $start > $end;\n\n\t\t$dates = array();\n\t\t$dates[] = $start->format($format);\n\t\twhile ($start != $end) {\n\t\t\t$start->modify(($invert ? '-' : '+') . '1 day');\n\t\t\t$dates[] = $start->format($format);\n\t\t}\n\t\treturn $dates;\n\t}", "public static function from_years_range($start_year, $end_year)\r\n {\r\n $newstart = new DateTime($start_year . '-01-01', new DateTimeZone('GMT'));\r\n $newend = new DateTime($end_year . '-12-31', new DateTimeZone('GMT'));\r\n return new PiplApi_DateRange($newstart, $newend);\r\n }", "private function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n}", "public static function fromYmd(string $start, string $end): DateRange\n {\n return new DateRange(JustDate::fromYmd($start), JustDate::fromYmd($end));\n }", "public function createFromDatePeriodProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = 9;\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n ) {\n return [\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n $option,\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n );\n }", "public function dateRange($startDate = null, $endDate = null, $field = null)\n {\n $start = $startDate ? Utils::date2timestamp($startDate) : null;\n $end = $endDate ? Utils::date2timestamp($endDate) : null;\n\n $date_range = [];\n foreach ($this->items as $path => $slug) {\n $page = $this->pages->get($path);\n if (!$page) {\n continue;\n }\n\n $date = $field ? strtotime($page->value($field)) : $page->date();\n\n if ((!$start || $date >= $start) && (!$end || $date <= $end)) {\n $date_range[$path] = $slug;\n }\n }\n\n $this->items = $date_range;\n\n return $this;\n }", "private function date_range(Carbon $from, Carbon $to, $inclusive = true)\n {\n if ($from->gt($to)) {\n return null;\n }\n\n // Clone the date objects to avoid issues, then reset their time\n $from = $from->copy()->startOfDay();\n $to = $to->copy()->startOfDay();\n\n // Include the end date in the range\n if ($inclusive) {\n $to->addDay();\n }\n\n $step = CarbonInterval::day();\n $period = new DatePeriod($from, $step, $to);\n\n // Convert the DatePeriod into a plain array of Carbon objects\n $range = [];\n\n foreach ($period as $day) {\n $range[] = new Carbon($day);\n }\n\n return ! empty($range) ? $range : null;\n }", "public static function from_age_range($start_age, $end_age)\r\n {\r\n // suitable for him.\r\n if (!($start_age >= 0 && $end_age >= 0))\r\n {\r\n throw new InvalidArgumentException('start_age and end_age can\\'t be negative');\r\n }\r\n\r\n if ($start_age > $end_age)\r\n {\r\n $t = $end_age;\r\n $end_age = $start_age;\r\n $start_age = $t;\r\n }\r\n\r\n $start_date = new DateTime('now', new DateTimeZone('GMT'));\r\n $end_date = new DateTime('now', new DateTimeZone('GMT'));\r\n\r\n $start_date->modify('-' . $end_age . ' year');\r\n $start_date->modify('-1 year');\r\n $start_date->modify('+1 day');\r\n $end_date->modify('-' . $start_age . ' year');\r\n\r\n $date_range = new PiplApi_DateRange($start_date, $end_date);\r\n return (new PiplApi_DOB(array('date_range' => $date_range)));\r\n }", "function __construct($start, $end)\r\n {\r\n\r\n // For creating a DateRange object for an exact date (like if exact\r\n // date-of-birth is known) just pass the same value for `start` and `end`.\r\n\r\n if (!empty($start))\r\n {\r\n $this->start = $start;\r\n }\r\n if (!empty($end))\r\n {\r\n $this->end = $end;\r\n }\r\n\r\n if (empty($this->start) && empty($this->end))\r\n {\r\n throw new InvalidArgumentException('Start/End parameters missing');\r\n }\r\n\r\n if (($this->start && $this->end) && ($this->start > $this->end))\r\n {\r\n $t = $this->end;\r\n $this->end = $this->start;\r\n $this->start = $t;\r\n }\r\n }", "function getDatesFromRange($start, $end, $format = 'Y-m-d') {\r\n $array = array();\r\n // Variable that store the date interval\r\n // of period 1 day\r\n $interval = new DateInterval('P1D');\r\n $realEnd = new DateTime($end);\r\n $realEnd->add($interval);\r\n $period = new DatePeriod(new DateTime($start), $interval, $realEnd);\r\n // Use loop to store date into array\r\n foreach($period as $date) {\r\n $array[] = $date->format($format);\r\n }\r\n // Return the array elements\r\n return $array;\r\n}", "public function rangesToDates(){\n //Rangos::\n }", "function active_range() {\n\t\treturn new DateRange(\n\t\t\t$this->attribute(\"start date\"),\n\t\t\t$this->attribute(\"end date\"),\n\t\t\t$this\n\t\t);\n\t}", "public function getByStartDateAndEndDate(\n DateTime $start_date,\n DateTime $end_date\n );", "function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n}", "public static function getDateRange($startDate = NULL,$endDate = NULL/*, $timeZone = null*/)\n {\n// $toTZ = new DateTimeZone($timeZone ?: date_default_timezone_get());\n// $begin = new DateTime( $startDate, $toTZ );\n// $end = new DateTime( $endDate, $toTZ );\n \n $begin = new DateTime( $startDate );\n $end = new DateTime( $endDate );\n $end->modify('+1 day');\n $interval = DateInterval::createFromDateString('1 day');\n return new DatePeriod($begin, $interval, $end);\n }", "function getDatesFromRange($start, $end, $format = 'Y-m-d') { \n \n // Declare an empty array \n $array = array(); \n \n // Variable that store the date interval \n // of period 1 day \n $interval = new DateInterval('P1D'); \n \n $realEnd = new DateTime($end); \n $realEnd->add($interval); \n \n $period = new DatePeriod(new DateTime($start), $interval, $realEnd); \n \n // Use loop to store date into array \n foreach($period as $date) { \n $array[] = $date->format($format); \n } \n \n // Return the array elements \n return $array; \n}", "function createDateRangeArray($strDateFrom, $strDateTo) {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange, date('Y-m-d', $iDateFrom));\n }\n }\n return $aryRange;\n}", "function createDateRangeArray($strDateFrom, $strDateTo) {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry\n\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange, date('Y-m-d', $iDateFrom));\n }\n }\n return $aryRange;\n}", "public static function listDatesInRange($dateFrom, $dateTo = null, $format = 'Y-m-d')\n {\n if($dateTo === null){\n $dateTo = date($format);\n }\n\n //check if is valid date\n $objDateFrom = \\DateTime::createFromFormat($format, $dateFrom);\n if(!$objDateFrom || $objDateFrom->format($format) != $dateFrom){\n throw new \\yii\\base\\InvalidArgumentException($dateFrom.' is invalid');\n }\n\n $objDateTo = \\DateTime::createFromFormat($format, $dateTo);\n if(!$objDateTo || $objDateTo->format($format) != $dateTo){\n throw new \\yii\\base\\InvalidArgumentException($dateFrom.' is invalid');\n }\n\n $period = new \\DatePeriod(\n $objDateFrom,\n new \\DateInterval('P1D'),\n $objDateTo\n );\n foreach($period as $key => $value){\n $range[] = $value->format($format);\n }\n $range[] = $objDateTo->format($format);\n\n return $range;\n }", "function createDateRangeArray($strDateFrom,$strDateTo)\n {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing that in the main script\n \n $aryRange=array();\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date(DATE_FORMAT,$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date(DATE_FORMAT,$iDateFrom));\n }\n }\n \n return $aryRange;\n }", "function dateRange($first, $last, $format = 'm/d/Y' ) { \n\t$dates = array();\n\t$current = strtotime($first);\n\t$last = strtotime($last);\n\n\twhile( $current <= $last ) { \n\t\t$dates[] = date($format, $current);\n\t\t$current = strtotime('+1 day', $current);\n\t}\n\t\n\treturn $dates;\n}", "public function leadsInDates($start, $end, $data = []);", "function erp_get_dates_in_range($first, $last, $step = '+1 day', $output_format = 'Y-m-d' ) {\n\n $dates = array();\n $current = strtotime($first);\n $last = strtotime($last);\n\n while( $current <= $last ) {\n\n $dates[] = date($output_format, $current);\n $current = strtotime($step, $current);\n }\n\n return $dates;\n}", "private function createDateRangeArray($strDateFrom, $strDateTo) {\n\t\t// takes two dates formatted as YYYY-MM-DD and creates an\n\t\t// inclusive array of the dates between the from and to dates.\n\t\t\n\t\t// could test validity of dates here but I'm already doing\n\t\t// that in the main script\n\t\t$aryRange = array ();\n\t\t\n\t\t$iDateFrom = mktime ( 1, 0, 0, substr ( $strDateFrom, 5, 2 ), substr ( $strDateFrom, 8, 2 ), substr ( $strDateFrom, 0, 4 ) );\n\t\t$iDateTo = mktime ( 1, 0, 0, substr ( $strDateTo, 5, 2 ), substr ( $strDateTo, 8, 2 ), substr ( $strDateTo, 0, 4 ) );\n\t\t\n\t\tif ($iDateTo >= $iDateFrom) {\n\t\t\tarray_push ( $aryRange, date ( 'Y-m-d', $iDateFrom ) ); // first entry\n\t\t\twhile ( $iDateFrom < $iDateTo ) {\n\t\t\t\t$iDateFrom += 86400; // add 24 hours\n\t\t\t\tarray_push ( $aryRange, date ( 'Y-m-d', $iDateFrom ) );\n\t\t\t}\n\t\t}\n\t\treturn $aryRange;\n\t}", "public static function getDatesFromRange(DateTime $start, DateTime $end): array\n {\n $array = [];\n\n // Variable that store the date interval\n // of period 1 day\n $interval = new DateInterval('P1D');\n\n $end->add($interval);\n\n $period = new DatePeriod($start, $interval, $end);\n\n // Use loop to store date into array\n foreach ($period as $date) {\n $array[] = $date;\n }\n\n // Return the array elements\n return $array;\n }", "static public function getRange($initialDate, $finalDate){\n\t\tif(!is_object($initialDate)){\n\t\t\t$initialDate = new Date($initialDate);\n\t\t}\n\t\tif(is_object($finalDate)){\n\t\t\t$finalDate = (string) $finalDate;\n\t\t}\n\t\t$initialTime = $initialDate->getTimestamp();\n\t\t$date = (string) $initialDate;\n\t\t$range = array($date);\n\t\twhile($date!=$finalDate){\n\t\t\t$initialTime+=86400;\n\t\t\t$date = date('Y-m-d', $initialTime);\n\t\t\t$range[] = $date;\n\t\t}\n\t\treturn $range;\n\t}", "public function setDateRange($from, $to)\n {\n $this->_from = $from;\n $this->_to = $to;\n\n return $this;\n }", "private function createDateRangeArray($dateFrom, $dateTo)\n {\n $dateRange = array();\n $tsFrom = strtotime($dateFrom);\n $tsTo = strtotime($dateTo);\n\n if ($tsTo >= $tsFrom)\n {\n $dateRange[] = date('Y-m-d', $tsFrom);\n while ($tsFrom < $tsTo)\n {\n $tsFrom += 60 * 60 * 24;\n $dateRange[] = date('Y-m-d', $tsFrom);\n }\n }\n\n return $dateRange;\n }", "function date_range($first, $last, $step = '+1 day', $output_format = 'd/m/Y' ) {\n\n $dates = array();\n $current = strtotime($first);\n $last = strtotime($last);\n\n while( $current <= $last ) {\n\n $dates[] = date($output_format, $current);\n $current = strtotime($step, $current);\n }\n\n return $dates;\n }", "public function SetDateRange($aStart, $aEnd)\n\t{\n\t\t// Adjust the start and end so that the indicate the\n\t\t// begining and end of respective start and end days\n\t\tif (strpos($aStart, ':') === false) {\n\t\t\t$aStart = date('Y-m-d 00:00', strtotime($aStart));\n\t\t}\n\n\t\tif (strpos($aEnd, ':') === false) {\n\t\t\t$aEnd = date('Y-m-d 23:59', strtotime($aEnd));\n\t\t}\n\n\t\t$this->scale->SetRange($aStart, $aEnd);\n\t}", "public function createDateRangeArray($strDateFrom,$strDateTo)\n {\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('d-m-Y',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('d-m-Y',$iDateFrom));\n }\n }\n return $aryRange;\n }", "private function getPostDateRange() {\n \n switch($this->validFilter['postDate']) {\n case 'today' :\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'yesterday':\n $dateStart = new \\DateTime('yesterday');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime('yesterday');\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'thisWeek':\n $today = new \\DateTime();\n if('Sunday' == $today->format('l')) {\n $dateStart = clone $today;\n $dateStart->modify('Monday last week');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = $today;\n $dateEnd->setTime(23, 59, 59);\n } else {\n $dateStart = clone $today;\n $dateStart->modify('Monday this week');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = clone $today;\n $dateEnd->modify('Sunday this week');\n $dateEnd->setTime(23, 59, 59);\n }\n break;\n\n case 'lastWeek':\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateStart->sub(new \\DateInterval('P7D'));\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'pastMonth':\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateStart->sub(new \\DateInterval('P1M'));\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n default :\n $dateStart = new \\DateTime($this->validFilter['postDate']);\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime($this->validFilter['postDate']);\n $dateEnd->setTime(23, 59, 59);\n break;\n } // end of switch\n \n return array($dateStart, $dateEnd);\n }", "protected function _getDateRange()\n {\n if (is_null($this->_dateRange)) {\n $this->_dateRange = array();\n $rules = $this->getAttributeObject()->getValidateRules();\n if (isset($rules[self::MIN_DATE_RANGE_KEY])) {\n $this->_dateRange[self::MIN_DATE_RANGE_KEY] = $rules[self::MIN_DATE_RANGE_KEY];\n }\n if (isset($rules[self::MAX_DATE_RANGE_KEY])) {\n $this->_dateRange[self::MAX_DATE_RANGE_KEY] = $rules[self::MAX_DATE_RANGE_KEY];\n }\n }\n return $this->_dateRange;\n }", "public static function eitherWayRound(JustDate $a, JustDate $b): DateRange\n {\n return new DateRange(JustDate::earliest($a, $b), JustDate::latest($a, $b));\n }", "function fechas($start, $end) {\n\t\t$range = array();\n\t\n\t\tif (is_string($start) === true) $start = strtotime($start);\n\t\tif (is_string($end) === true ) $end = strtotime($end);\n\t\n\t\tif ($start > $end) return createDateRangeArray($end, $start);\n\t\n\t\tdo {\n\t\t\t$range[] = date('Y-m-d', $start);\n\t\t\t$start = strtotime(\"+ 1 day\", $start);\n\t\t} while($start <= $end);\n\t\n\t\treturn $range;\n\t}", "private function generateDateRange(Carbon $start_date, DateInterval $interval, int $recurrences, int $exclusive = 1): array\n {\n $period = new DatePeriod($start_date, $interval, $recurrences, $exclusive);\n $dates = collect();\n\n foreach ($period as $date) {\n $dates->push($date->format('Y-m-d'));\n }\n\n return $dates->toArray();\n }", "function findDatesFromDateRange($dateStart, $dateEnd){\r\n $foundDates = array($dateStart);\r\n while(end($foundDates) < $dateEnd){\r\n $foundDates[] = date('Y-m-d', strtotime(end($foundDates).' +1 day'));\r\n }\r\n// Array of foundDates\r\nreturn $foundDates;\r\n}", "public static function CreateFromDates($oStart, $oStop) {\n\t\tif (!($oStart instanceof Date)) throw new InvalidArgumentException('Start is not Date');\n\t\tif (!($oStop instanceof Date)) throw new InvalidArgumentException('Stop is not Date');\n\t\t\n\t\t$ts1 = $oStart->getTimestamp();\n\t\t$ts2 = $oStop->getTimestamp();\n\t\t$days = ($ts2 - $ts1) / (3600 * 24);\n\t\t\n\t\treturn self::Create(DateUnit::DAY, $days);\n\t}", "public function setDateRestrictions($start, $end)\n\t{\n\t\t$this->setStartDate($start);\n\t\t$this->setEndDate($end);\n\t}", "function byDateRange(Datetime $start, Datetime $end) {\n $params = 'from=' . urlencode($start->format('Ymd')) . '&to=' . urlencode($end->format('Ymd'));\n\n return $this->listFromApiCall($this->connector->apiCall(\n 'time.api/list?' . $params,\n function($result) { return isset($result['Times']['Time']) ? $result['Times']['Time'] : []; }\n ));\n }", "function createDateRangeArray($strDateFrom,$strDateTo,$id_tamu)\n\t{\n\t\t// inclusive array of the dates between the from and to dates.\n\n\t\t// could test validity of dates here but I'm already doing\n\t\t// that in the main script\n\n\t\t$aryRange=array();\n\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n\t\tif ($iDateTo>=$iDateFrom)\n\t\t{\n\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom).\"_\".$id_tamu); // first entry\n\t\t\twhile ($iDateFrom<$iDateTo)\n\t\t\t{\n\t\t\t\t$iDateFrom+=86400; // add 24 hours\n\t\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom).\"_\".$id_tamu);\n\t\t\t}\n\t\t}\n\t\treturn $aryRange;\n\t}", "function createDateArray($start_dt, $end_dt)\n\t{\n\t\t$arr_dates = array();\n\t\t$arr_dates[] = $start_dt = strtotime($start_dt);\n\t\twhile(1)\n\t\t{ \n\t\t\t$start_dt = strtotime(\"+1 day\", $start_dt);\n\t\t\tif($start_dt <= strtotime($end_dt))\n\t\t\t{\n\t\t\t\t$arr_dates[] = $start_dt;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $arr_dates;\n\t}", "public static function daterange($strDateFrom,$strDateTo)\r\n\t{\r\n\t\t// inclusive array of the dates between the from and to dates.\r\n\t\r\n\t\t// could test validity of dates here but I'm already doing\r\n\t\t// that in the main script\r\n\t\r\n\t\t$aryRange=array();\r\n\t\r\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\r\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\r\n\t\r\n\t\tif ($iDateTo>=$iDateFrom)\r\n\t\t{\r\n\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\r\n\t\t\twhile ($iDateFrom<$iDateTo)\r\n\t\t\t{\r\n\t\t\t\t$iDateFrom+=86400; // add 24 hours\r\n\t\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $aryRange;\r\n\t}", "function createDateRangeArray( $strDateFrom,$strDateTo,$format ) {\n \n $aryRange=array();\n if ( $format == \"european\" ) {\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,3,2),substr($strDateFrom,0,2),substr($strDateFrom,6,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,3,2),substr($strDateTo,0,2),substr($strDateTo,6,4));\n\t} else if ( $format == \"american\" ) {\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,0,2),substr($strDateFrom,3,2),substr($strDateFrom,6,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,0,2),substr($strDateTo,3,2),substr($strDateTo,6,4));\n\t}\n\n\t\n if ($iDateTo>=$iDateFrom) {\n if ( $format == \"european\" ) {\n\t\t\tarray_push($aryRange, date('d-m-Y',$iDateFrom)); \n\t\t} else if ( $format == \"american\" ) {\n\t\t\tarray_push($aryRange,date('m/d/Y',$iDateFrom)); \n\t\t}\n while ($iDateFrom<$iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n if ( $format == \"european\" ) {\n\t\t\t\tarray_push($aryRange,date('d-m-Y',$iDateFrom)); \n\t\t\t} else if ( $format == \"american\" ) {\n\t\t\t\tarray_push($aryRange,date('m/d/Y',$iDateFrom)); \n\t\t\t}\n }\n }\n\t\n return $aryRange;\n}", "public function dateRange($strDateFrom,$strDateTo) {\n $aryRange=array();\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n }", "function visible_range() {\n\t\treturn new DateRange(\n\t\t\t$this->attribute(\"show date\"),\n\t\t\t$this->attribute(\"hide date\"),\n\t\t\t$this\n\t\t);\n\t}", "public function _constructProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = 9;\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n ) {\n return [\n $start,\n $interval,\n $end,\n $option,\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n );\n }", "function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n $i=0;\n $aryRange=array();\n\n//$aryRange[] = array(\"DATA\"=>\"\");\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n// array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n// array_push($aryRange[\"DATA\"],date('Y-m-d',$iDateFrom)); // first entry\n$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom), 'KEY=>'.$i);\n$i=$i+1;\n\n//$array[] = $var;\n\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n// array_push($aryRange,date('Y-m-d',$iDateFrom));\n// array_push($aryRange[\"DATA\"],date('Y-m-d',$iDateFrom));\n//$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom));\n$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom), 'KEY=>'.$i);\n$i=$i+1;\n\n }\n }\n$aryRange=array_reverse($aryRange);\n\n return $aryRange;\n}", "public function between(Carbon $start, Carbon $end)\n {\n return $this->formatResults($this->query($start, $end)->get());\n }", "public function datePeriodFilter($start, $end, $interval = '1 day')\n {\n\n $interval = DateInterval::createFromDateString($interval);\n $datePeriod = new \\DatePeriod($start, $interval, $end);\n\n return $datePeriod;\n }", "public static function getDates($start, $end, $format = \"Y-m-d\")\n {\n $start = new \\DateTime($start);\n $end = new \\DateTime($end);\n $interval = \\DateInterval::createFromDateString('1 day');\n $period = new \\DatePeriod($start, $interval, $end->modify('+1 day'));\n\n $dates = [];\n\n foreach ($period as $dt) {\n $dates[] = $dt->format($format);\n }\n\n return $dates;\n }", "public static function range($lowerBound, $upperBound, $unit = DAY) {\n\t\t\tif(is_string($lowerBound)) {\n\t\t\t\t$lowerBound = strtotime($lowerBound);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(empty($upperBound)) {\n\t\t\t\t$upperBound = self::now();\n\t\t\t}\n\t\t\t\n\t\t\tif(is_string($upperBound)) {\n\t\t\t\t$upperBound = strtotime($upperBound);\n\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t$range = range($lowerBound, $upperBound, $unit);\n\t\t\t\n\t\t\treturn array_map(function($date) { return date('Y-m-d', $date); }, $range);\n\t\t}", "public function validateDates(&$start, &$end) {\n $sixMonthsAgo = strtotime(\"-6 months\");\n $day = 86400;\n $end = time();\n \n if (!$start) {\n $start = strtotime(\"-7 days\");\n }\n \n $gap = $end - $start; \n \n //Don't mess the dates!\n switch ($gap) {\n case $gap < ($day * 31) :\n $gap = $day * 7;\n break;\n\n case $gap < ($day * 180) ://6 months\n $gap = $day * 31;\n break;\n \n case $gap >= ($day * 180) : \n default : \n $gap = $day * 180; \n break;\n }\n \n $end = time();\n $start = $end - $gap;\n }", "function getDatesFromRange($start, $end, $format = 'Y-m-d') { \n $GLOBALS['labelDates'] = array();\n // Declare an empty array \n $dates = array(); \n \n // Variable that store the date interval \n // of period 1 day \n $interval = new DateInterval('P1D'); \n \n $realEnd = new DateTime($end); \n $realEnd->add($interval); \n \n $period = new DatePeriod(new DateTime($start), $interval, $realEnd); \n // Use loop to store date into array \n foreach($period as $date) { \n $dates[] = $date->format($format); \n if($date->format($format) == date('Y-m-d'))\n $GLOBALS['labelDates'][] = \"Today\";\n else\n $GLOBALS['labelDates'][] = $date->format('M-d');\n } \n $dates = array_reverse($dates) ;\n $GLOBALS['labelDates'] = array_reverse( $GLOBALS['labelDates']) ;\n\n \n \n // Return the array elements \n return $dates; \n }", "public function searchBookListBetweenDate($start, $end)\n {\n return $this->bookDao->searchBookListBetweenDate($start, $end);\n }", "public function getDateRange()\n {\n return $this->date_range;\n }", "function test_range() {\n\t\t// Check range\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2018, 1 );\n\t\t$this->assertEquals( '2018-01-01 00:00:00', $start );\n\t\t$this->assertEquals( '2018-01-31 23:59:59', $end );\n\t\t// Check leap year\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2004, 2 );\n\t\t$this->assertEquals( '2004-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '2004-02-29 23:59:59', $end );\n\t\t// Check exceptional leap year.\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 1900, 2 );\n\t\t$this->assertEquals( '1900-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '1900-02-28 23:59:59', $end );\n\t}", "public function range($start, $end, $step = null): static;", "public function setDateRange(Carbon $from, Carbon $to) {\n\t\t$this->from_date = new Carbon($from);\n\t\t$this->to_date = new Carbon($to);\n\t}", "function tradeoff_date_range($definition)\n {\n return app(Models\\Problem\\Range\\DateRange::class)->setData($definition);\n }", "function DatesBetween($startDate, $endDate){\r\n\t$days = (strtotime($endDate) - strtotime($startDate)) / 86400 + 1;\r\n\t$startMonth = date(\"m\", strtotime($startDate));\r\n\t$startDay = date(\"d\", strtotime($startDate));\r\n\t$startYear = date(\"Y\", strtotime($startDate));\r\n\t$dates;//the array of dates to be passed back\r\n\tfor($i=0; $i<$days; $i++){\r\n\t\t$dates[$i] = date(\"m/d/Y\", mktime(0, 0, 0, $startMonth , ($startDay+$i), $startYear));\r\n\t}\r\n\treturn $dates;\r\n}", "public function get_dates($start_date,$end_date){\r\n\t $date1 = date_format(date_create($start_date), 'Y-m-d');\r\n\t $date2 = date_format(date_create($end_date), 'Y-m-d');\r\n\t\t$dates = $this->date_manager->getAllDatesBetweenTwoDates($date1,$date2);\r\n\t\t$dates2 = $this->date_manager->exclude_weekends($dates);\r\n\t\tforeach($dates2 as $dat){\r\n\t\t\t$dates3[] = date_format(date_create($dat), 'm/d/Y');\r\n\t\t\t}\r\n\t return $dates3;\r\n\t }", "function calc_date_range_years($start, $end)\n{\n\t$years = array();\n\t\n\t$start_prts = explode('-', $start);\n\t$end_prts = explode('-', $end);\n\t\n\t$years[] = $start_prts[0];\n\t\n\tfor ($i=$start_prts[0]; $i<$end_prts[0]; $i++)\n\t{\n\t\t$years[] = $i + 1;\n\t}\n\t\n\treturn $years;\n}", "public function getArticlesByRangeDate($startDate='', $endDate='')\r\n\t{\r\n\t\t$em = $this->getServiceManager()->get('doctrine.entitymanager.orm_default');\r\n\r\n\t\t$startDateTime = \\DateTime::createFromFormat('d/m/Y', $startDate);\r\n\t\t$endDateTime = \\DateTime::createFromFormat('d/m/Y', $endDate);\r\n\r\n\t\tif ($startDate != '' && $endDate != '') {\r\n\t\t\t$dateRange = \"(p.publicationDate >='\" . $startDateTime->format('Y-m-d') . \" 0:0:0' AND p.publicationDate <= '\" . $endDateTime->format('Y-m-d') . \" 0:0:0')\";\r\n\t\t} elseif ($startDate == '' && $endDate != '') {\r\n\t\t\t$dateRange = \"p.publicationDate <= '\" . $endDateTime->format('Y-m-d') . \" 0:0:0'\";\r\n\t\t} elseif ($startDate != '' && $endDate == '') {\r\n\t\t\t$dateRange = \"p.publicationDate >='\" . $startDateTime->format('Y-m-d') . \" 0:0:0'\";\r\n\t\t} else {\r\n\t\t\t$dateRange = \"p.publicationDate IS NOT NULL\";\r\n\t\t}\r\n\r\n\t\t$query = $em->createQuery('\r\n\t\t\tSELECT COUNT(p.id) FROM PlaygroundCms\\Entity\\Page p\r\n\t\t\tWHERE ' . $dateRange . '\r\n\t\t\tAND p.active=1\r\n\t\t');\r\n\t\t$count = $query->getSingleScalarResult();\r\n\t\treturn $count;\r\n\t}", "public function __construct($startDate, $endDate)\n {\n $startDate = static::filterDatePoint($startDate);\n $endDate = static::filterDatePoint($endDate);\n if ($startDate > $endDate) {\n throw new LogicException(\n 'The ending datepoint must be greater or equal to the starting datepoint'\n );\n }\n $this->startDate = $startDate;\n $this->endDate = $endDate;\n }", "public function splitRange($start, $end) {\n \t$series = [];\n \t$ranges = [];\n\n \t// start is the same as min page; make standalone number\n \tif ( intval($start) === $this->_min_page ) {\n \t\t$series[] = $start;\n \t}\n \telse {\n\t\t\t$range = $start . $this->_range_delimiter . strval($this->_min_page);\n\t\t\t$series[] = $this->processRange($range);\n \t}\n\n \t// end only one more than min_page; make standalone number after stepping\n \tif ( intval($end) - $this->_min_page === 1 ) {\n \t\t$series[] = $this->step($end);\n \t}\n \telse {\n\t\t\t$range = strval($this->_min_page + 1). $this->_range_delimiter . $end;\n\t\t\t$series[] = $this->processRange($range);\n \t}\n\n \treturn implode($this->_series_delimiter, $series);\n }", "public function getByStartDateRange(int $timestampStart, int $timestampEnd): array\n {\n return $this->responseMapper->getObjects(\n $this->soapClient->getByStartDateRange([\n 'from' => $timestampStart,\n 'to' => $timestampEnd\n ]),\n 'getByStartDateRangeResult',\n $this->hydratorConfigFactory->createResourceInformationConfig()\n );\n }", "function getDateFilterSelectedRange() {\n $from = $this->getAdditionalProperty('date_filter_from');\n $to = $this->getAdditionalProperty('date_filter_to');\n \n return $from && $to ? array(new DateValue($from), new DateValue($to)) : array(null, null);\n }", "public static function getByDateRange(DateTime $rangeStart, DateTime $rangeEnd)\n {\n $startFinancialYear = self::getByDate($rangeStart);\n $endFinancialYear = self::getByDate($rangeEnd);\n\n if ($startFinancialYear > $endFinancialYear) {\n throw new \\Exception('End date is before start date');\n }\n\n $startYear = $startFinancialYear->getStartDate()->format('Y');\n $endYear = $endFinancialYear->getStartDate()->format('Y');\n\n $financialYears = array();\n\n for ($i = $startYear; $i <= $endYear; $i += 1) {\n $financialYears[] = self::getByDate(\n DateTime::createFromFormat('Y-m-d H:i:s', $i . '-07-01 00:00:00')\n );\n }\n\n return $financialYears;\n }", "protected function _applyDateRangeFilter()\n {\n // Remember that field PERIOD is a DATE(YYYY-MM-DD) in all databases including Oracle\n\n if ($this->_from !== null) {\n $this->getSelect()->where('created_time >= ?', $this->_from .' 00:00:00');\n }\n if ($this->_to !== null) {\n $this->getSelect()->where('created_time <= ?', $this->_to .' 23:59:59');\n }\n\n return $this;\n\n }", "function the_date_range($start_dt,$end_dt, $one_day = false){\r\n\t\r\n\t$duration = $start_dt->diff($end_dt);\r\n\t$start = explode(\" \",$start_dt->format('l F j Y g i a'));\r\n\t$end = explode(\" \",$end_dt->format('l F j Y g i a'));\r\n\t\r\n\t//happening at the same time\r\n\tif($start == $end){\r\n\t\treturn array(\r\n\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\"%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2] //day of month\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\teo_is_all_day() ? 'all day' : time_compact_ap_format($start[4],$start[5],$start[6])\r\n\t\t);\r\n\t}\t\r\n\t//happening on the same day\r\n\telseif($start[2] == $end[2] || ($duration->days < 1 && $duration->h < 24)){\r\n\t\t//Monday, March 4; 9:00 p.m.\r\n\t\treturn array(\r\n\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\"%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2] //day of month\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\teo_is_all_day() ? 'all day' : sprintf(\r\n\t\t\t\t\"%s&ndash;%s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\t //formatted date\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n\t//happening in the same month\r\n\t//check if happening all day; if not, return eo_all_day ? : \r\n\telseif($start[1] == $end[1]){\r\n\t\treturn (eo_is_all_day() || $one_day) ? \r\n\t\tsprintf(\r\n\t\t\t\"%s %s&ndash;%s\",\r\n\t\t\t$start[1], //month\r\n\t\t\t$start[2], //day of month\r\n\t\t\t$end[2]\r\n\t\t)\r\n\t\t: \r\n\t\tarray(\r\n\t\t\t\"date\" => sprintf(\r\n\t\t\t\t\"%s %s&ndash;%s\",\r\n\t\t\t\t$start[1],\r\n\t\t\t\t$start[2],\r\n\t\t\t\t$end[2]\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\"datetime\" => sprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t$start[1],\r\n\t\t\t\t$start[2],\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\tsprintf(\r\n\t\t\t\t\"%s&ndash;%s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\t//happening in the same year\r\n\telseif($start[3] == $end[3]){\r\n\t\treturn (eo_is_all_day() || $one_day) ?\r\n\t\t\tsprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2], //day of month\r\n\t\t\t\t$end[0],\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\r\n\t\t\t)\r\n\t\t\t:\r\n\t\t\tarray(\r\n\t\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s %s&ndash;%s %s\",\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"datetime\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s, %s %s&ndash;%s, %s, %s %s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\t\"time\"\t=>\tsprintf(\"%s&ndash;%s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n\t//just plain happening\r\n\r\n\telse{\r\n\t\treturn (eo_is_all_day() || $one_day) ? \r\n\t\t\tsprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2], //day of month\r\n\t\t\t\t$end[0],\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\r\n\t\t\t)\r\n\t\t\t:\r\n\t\t\tarray(\r\n\t\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"datetime\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s, %s %s&ndash;%s, %s, %s %s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\t\"time\"\t=>\tsprintf(\"%s&ndash;%s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n}", "function getMonthRange( $start, $end ){\n\n\t$current = $start;\n\t$ret = array();\n\n\t// date iteration method via: https://gist.github.com/daithi-coombes/9779776\n\twhile( $current<$end ){\n\t\t$next = date('Y-M-01', $current) . \"+1 month\";\n\t\t$current = strtotime($next);\n\t\t$ret[] = $current;\n\t}\n\t$ret = array_reverse($ret);\n\n\t// convert timestamp into expected date format array\n\tforeach ($ret as $key => $value) {\n\t\t$ret[$key] = date('F Y', $value);\n\t}\n\treturn $ret;\n}", "protected static function createFromEndpoints($datePoint1, $datePoint2)\n {\n $startDate = static::filterDatePoint($datePoint1);\n $endDate = static::filterDatePoint($datePoint2);\n if ($startDate > $endDate) {\n return new static($endDate, $startDate);\n }\n\n return new static($startDate, $endDate);\n }", "public function datePeriod($begin, $end, $daysInterval = 1)\n {\n # Dates : String pour DateTime::modify or DateTime directly\n if (is_string($begin)) {\n $begin = new \\Datetime($begin);\n } else {\n $dateBegin = $begin;\n }\n\n $dateEnd = clone $dateBegin;\n if (is_string($end)) {\n $dateEnd->modify($end);\n } else {\n $dateEnd = $end;\n }\n\n # Interval\n $interval = new \\DateInterval('P'.$daysInterval.'D');\n\n # Periode\n $period = new \\DatePeriod($dateBegin, $interval, $dateEnd);\n\n return $period;\n }", "function createDateInterval($dateStart,$dateStop){\n $ONE_DAY=3600*24;\n $start=strtotime($dateStart);\n $stop=strtotime($dateStop);\n $giorni=array();\n for ($giorno=$start; $giorno<=$stop; $giorno+=$ONE_DAY){\n $giorni[]=date(\"Y-m-d\",$giorno);\n }\n return $giorni;\n }", "public function getSelectDatesForEventId($eventId, \\DateTime $rangeStart = null, \\DateTime $rangeEnd = null)\n {\n if (!$eventId) {\n return array();\n }\n\n $conditions = array();\n $params = array();\n\n if ($rangeStart) {\n $conditions[] = 'date >= :rangeStart';\n $params[':rangeStart'] = $rangeStart->format('Y-m-d');\n }\n\n if ($rangeEnd) {\n $conditions[] = 'date <= :rangeEnd';\n $params[':rangeEnd'] = $rangeEnd->format('Y-m-d');\n }\n\n $selectDateRecords = Calendar_SelectDateRecord::model()->findAllByAttributes(\n array('eventId' => $eventId),\n implode(' AND ', $conditions),\n $params\n );\n\n $selectDateModels = Calendar_SelectDateModel::populateModels($selectDateRecords);\n\n usort(\n $selectDateModels,\n function (Calendar_SelectDateModel $dateA, Calendar_SelectDateModel $dateB) {\n if ($dateA->date < $dateB->date) {\n return -1;\n } elseif ($dateA->date > $dateB->date) {\n return 1;\n }\n\n return 0;\n }\n );\n\n return $selectDateModels;\n }", "protected function dates_filter(){\n \t//+Constraint Isgi: only one year data\n \t$temporal = $this->get_temporal();\n \tif( strtolower($temporal->end) == \"now\"){\n \t\t$now = new \\DateTime();\n \t\t$temporal->end = $now->format(\"Y-m-d\");\n \t}\n \t\n \t\n \t//change start and end\n \tif( $this->start < $temporal->start){\n \t\t$this->start = $temporal->start;\n \t}\n \tif( $this->end > $temporal->end){\n \t\t$this->end = $temporal->end;\n \t}\n \t$update = $this->get_update();\n \tif( !empty( $update) && $update < $this->end){\n \t\t$this->end = $update;\n \t}\n \t// diff between start and end\n \t$start = new \\DateTime( $this->start);\n \t$end = new \\DateTime( $this->end);\n \t$interval = $start->diff( $end);\n \tif( $interval->invert){\n \t\t//end < start\n \t\t$this->error = \"NO_DATA\";\n \t}else{\n\t \tif( $interval->days > 365){\n\t \t\t$start = clone $end;\n\t \t\t$start->sub( new \\DateInterval(\"P364D\"));\n\t \t\t$this->start = $start->format(\"Y-m-d\");\n\t \t}\n \t}\n }", "function getMinMaxForRange($date_start, $date_end) {\n $query = \"SELECT MIN(price) AS minPrice,\n MAX(price) AS maxPrice\n FROM np_data\n WHERE (\n (date BETWEEN '$date_start' AND '$date_end' AND hour != '23')\n OR (date = ($date_start - INTERVAL 1 DAY) AND hour = '23')\n )\";\n if ($result = $this->link->query($query)) {\n /* free result set */\n $row = mysqli_fetch_array($result);\n $result->close();\n $resultArray = array (\n 'min' => $row['minPrice'],\n 'max' => $row['maxPrice']\n );\n return $resultArray;\n }\n }", "public function GetByDate($initialDate, $endDate);", "public function setRange($start, $stop)\n {\n $this->start = $start;\n $this->stop = $stop;\n\n return $this;\n }", "public static function getDateRange($user, $timePeriod, $startDate = null, $endDate = null, $format = 'Y-m-d H:i:s')\n {\n switch ($timePeriod) {\n case 'week to date':\n if ($format === 'unixTimestamp') {\n $startTime = UnixTimestamp::createFromString(date('Y-m-d H:i:s', strtotime('this week midnight')), $user->profile->timezone, 'UTC');\n } else {\n $startTime = date($format, strtotime('this week midnight'));\n }\n break;\n case 'month to date':\n if ($format === 'unixTimestamp') {\n $startTime = UnixTimestamp::createFromString(date('Y-m-d H:i:s', strtotime('first day of this month midnight')), $user->profile->timezone, 'UTC');\n } else {\n $startTime = date($format, strtotime('first day of this month midnight'));\n }\n break;\n case 'quarter to date':\n // quarters are Jan 1, Apr 1, Jul 1, Oct 1\n $quarters = ['January 1 midnight', 'April 1 midnight', 'July 1 midnight', 'October 1 midnight'];\n $today = new Carbon();\n foreach ($quarters as $quarter) {\n $quarterDate = new Carbon($quarter);\n if ($quarterDate < $today && $today->diffInDays($quarter) < 100) {\n if ($format === 'unixTimestamp') {\n $startTime = UnixTimestamp::createFromString(date('Y-m-d H:i:s', strtotime($quarter)), $user->profile->timezone, 'UTC');\n } else {\n $startTime = date($format, strtotime($quarter));\n }\n break;\n }\n }\n break;\n case 'year to date':\n if ($format === 'unixTimestamp') {\n $startTime = UnixTimestamp::createFromString(date('Y-m-d H:i:s', strtotime('first day of January midnight')), env('USER_DEFAULT_TZ'), 'UTC');\n } else {\n $startTime = date($format, strtotime('first day of January midnight'));\n }\n break;\n case 'date range':\n if ($startDate) {\n if ($format === 'unixTimestamp') {\n $startTime = UnixTimestamp::createFromString($startDate, $user->profile->timezone, 'UTC');\n } else {\n $startTime = date($format, strtotime($startDate));\n }\n }\n if ($endDate) {\n if ($format === 'unixTimestamp') {\n $endTime = UnixTimestamp::createFromString($endDate, $user->profile->timezone, 'UTC');\n } else {\n $startTime = date($format, strtotime($endDate));\n }\n }\n break;\n default:\n if ($format === 'unixTimestamp') {\n $startTime = UnixTimestamp::createFromString(date('Y-m-d H:i:s', strtotime($timePeriod . ' midnight')), $user->profile->timezone, 'UTC');\n } else {\n $startTime = date($format, strtotime($timePeriod . ' midnight'));\n }\n }\n\n $dateRange = [];\n if (isset($startTime)) {\n $dateRange['start'] = $startTime;\n }\n if (isset($endTime)) {\n $dateRange['end'] = $endTime;\n }\n\n return $dateRange;\n }", "function getAllDates($from,$to)\n{\n $dates = array();\n $fromdate = new DateTime($from);\n $todate = new DateTime($to);\n $datePeriod = new \\DatePeriod(\n $fromdate,\n new \\DateInterval('P1D'),\n $todate->modify('+1 day')\n );\n \n \n foreach($datePeriod as $date) {\n $dates[] = $date->format('Y-m-d');\n } \n \n return $dates;\n}", "public function getDateRange()\n {\n $format = $this->arguments['dateFormat'];\n if ($format === '') {\n $format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] ?: 'Y-m-d';\n }\n\n $timestamps = array();\n $dateRange = '';\n /** @var Performance $performance */\n foreach ($this->performances as $performance) {\n $timestamps[] = $performance->getDate()->getTimestamp();\n }\n sort($timestamps);\n if (strpos($format, '%') !== false) {\n $dateRange = strftime($format, $timestamps[0]);\n $dateRange .= ' - ' . strftime($format, end($timestamps));\n } else {\n $dateRange = date($format, $timestamps[0]);\n $dateRange .= ' - ' . date($format, end($timestamps));\n }\n\n return $dateRange;\n }", "function erp_extract_dates( $start_date, $end_date ) {\n // if start date has no time set, then add 00:00:00 or 12:00 AM\n if ( ! preg_match( '/\\d{2}:\\d{2}:\\d{2}$/', $start_date ) ) {\n $start_date = $start_date . ' 00:00:00';\n }\n\n // if end date has no time set, then add 23:59:59 or 11:59 PM\n if ( ! preg_match( '/\\d{2}:\\d{2}:\\d{2}$/', $end_date ) ) {\n $end_date = $end_date . ' 23:59:59';\n }\n\n if ( $start_date > $end_date ) {\n $temp = $start_date;\n $start_date = $end_date;\n $end_date = $temp;\n }\n\n $start_date = new DateTime( $start_date );\n $end_date = new DateTime( $end_date );\n $diff = $start_date->diff( $end_date );\n\n // we got a negative date\n if ( $diff->invert ) {\n return new WP_Error( 'invalid-date', __( 'Invalid date provided', 'erp' ) );\n }\n\n $interval = DateInterval::createFromDateString( '1 day' );\n $period = new DatePeriod( $start_date, $interval, $end_date );\n\n // prepare the periods\n $dates = array();\n foreach ( $period as $dt ) {\n $dates[] = $dt->format( 'Y-m-d' );\n }\n\n return $dates;\n}", "public static function between(int $min, int $max, bool $inclusive = true): self\n {\n return new self($min, $max, $inclusive);\n }", "public function __construct($startDate, $endDate)\n {\n $startDate = static::filterDatePoint($startDate);\n $endDate = static::filterDatePoint($endDate);\n if ($startDate > $endDate) {\n throw new LogicException('the ending endpoint must be greater or equal to the starting endpoint');\n }\n $this->startDate = $startDate;\n $this->endDate = $endDate;\n }", "public function diff(DateRange $arg)\n {\n if (!$this->overlaps($arg)) {\n throw new OutOfRangeException('Argument must overlap this range');\n }\n\n if ($this->getStart() < $arg->getStart()\n && $this->getEnd() > $arg->getEnd()\n ) {\n throw new OutOfRangeException('Argument must not be exclusively contained within this range');\n }\n\n if ($this->getStart() < $arg->getStart()) {\n return new static(\n clone $this->getStart(),\n date_modify(clone $arg->getStart(), '-1 second')\n );\n }\n\n return new static(\n date_modify(clone $arg->getEnd(), '+1 second'),\n clone $this->getEnd()\n );\n }", "public function getGuardsWithScheduleRange(string $startDate, string $endDate)\n {\n return $this->model->with(['schedules' => function ($query) use ($startDate, $endDate) {\n $query->whereBetween('date', [$startDate, $endDate])->orderBy('date', 'ASC');\n }])\n ->get();\n }", "public function __construct($start, $end) {\n $this->assertValidRange($start, $end);\n $this->start = $start;\n $this->end = $end;\n }", "public function getParticipationsByRangeDate($startDate='', $endDate='')\r\n\t{\r\n\t\t$em = $this->getServiceManager()->get('doctrine.entitymanager.orm_default');\r\n\r\n\t\t$startDateTime = \\DateTime::createFromFormat('d/m/Y', $startDate);\r\n\t\t$endDateTime = \\DateTime::createFromFormat('d/m/Y', $endDate);\r\n\r\n\t\tif ($startDate != '' && $endDate != '') {\r\n\t\t\t$dateRange = \"(e.created_at >='\" . $startDateTime->format('Y-m-d') . \" 0:0:0' AND e.created_at <= '\" . $endDateTime->format('Y-m-d') . \" 0:0:0')\";\r\n\t\t} elseif ($startDate == '' && $endDate != '') {\r\n\t\t\t$dateRange = \"e.created_at <= '\" . $endDateTime->format('Y-m-d') . \" 0:0:0'\";\r\n\t\t} elseif ($startDate != '' && $endDate == '') {\r\n\t\t\t$dateRange = \"e.created_at >='\" . $startDateTime->format('Y-m-d') . \" 0:0:0'\";\r\n\t\t} else {\r\n\t\t\t$dateRange = \"e.created_at IS NOT NULL\";\r\n\t\t}\r\n\r\n\t\t$query = $em->createQuery('\r\n\t\t\tSELECT COUNT(e.id) FROM PlaygroundGame\\Entity\\Entry e\r\n\t\t\tWHERE ' . $dateRange . '\r\n\t\t\tAND e.active=0\r\n\t\t');\r\n\t\t$count = $query->getSingleScalarResult();\r\n\t\treturn $count;\r\n\t}" ]
[ "0.7348077", "0.7264475", "0.7014908", "0.692878", "0.6863448", "0.6811478", "0.6756907", "0.6736324", "0.66860235", "0.6634026", "0.66281056", "0.6619495", "0.6506294", "0.64767903", "0.6465834", "0.6448261", "0.6442491", "0.64201474", "0.64168197", "0.6357456", "0.6343263", "0.6325409", "0.6312909", "0.6289193", "0.6284568", "0.6268981", "0.62467647", "0.62351984", "0.6223337", "0.62155247", "0.6163838", "0.6150893", "0.6118577", "0.6103605", "0.60808206", "0.6053526", "0.60394955", "0.6027979", "0.6017484", "0.60112727", "0.6005664", "0.59982437", "0.59731704", "0.59722453", "0.597222", "0.59668493", "0.5955604", "0.59368336", "0.5919576", "0.5911735", "0.5897267", "0.5870053", "0.5864965", "0.5846391", "0.58264476", "0.5774753", "0.57742274", "0.5761513", "0.5761214", "0.5742348", "0.5734123", "0.5718013", "0.5716129", "0.5704022", "0.56994444", "0.569924", "0.56874543", "0.5672216", "0.564693", "0.56466657", "0.56298184", "0.5621675", "0.5616256", "0.560705", "0.5603037", "0.5594013", "0.55915964", "0.5590206", "0.5576512", "0.5555616", "0.55505824", "0.55438685", "0.5538324", "0.5536821", "0.55110735", "0.5493613", "0.546544", "0.5461755", "0.54518616", "0.54506135", "0.544593", "0.5444826", "0.54394895", "0.5420795", "0.53880084", "0.5383033", "0.5375671", "0.5375669", "0.536625", "0.53608376" ]
0.6027889
38
Create a new DateRange objects from start and end dates specified in any order The start date will be whichever of the 2 dates is earliest and the end date whichever of the 2 dates is latest.
public static function eitherWayRound(JustDate $a, JustDate $b): DateRange { return new DateRange(JustDate::earliest($a, $b), JustDate::latest($a, $b)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\n {\n $begin = new DateTime($startDate);\n $end = new DateTime($endDate);\n\n $interval = new DateInterval('P1D'); // 1 Day\n $dateRange = new DatePeriod($begin, $interval, $end);\n\n $range = [];\n foreach ($dateRange as $date) {\n $range[] = $date->format($format);\n }\n array_push($range, $endDate);\n return $range;\n }", "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\r\n{\r\n $begin = new DateTime($startDate);\r\n $end = new DateTime($endDate);\r\n \r\n $interval = new DateInterval('P1D'); \r\n $dateRange = new DatePeriod($begin, $interval, $end);\r\n \r\n $range = [];\r\n \r\n for($i=$begin;$i<=$end;$i->modify('+1 day')) {\r\n $range[] = $i->format($format);\r\n \r\n }\r\n return $range; \r\n}", "public function getByStartDateAndEndDate(\n DateTime $start_date,\n DateTime $end_date\n );", "public static function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\n {\n $begin = new \\DateTime($startDate);\n\n $_end = self::dateAdd($endDate, UnitDay::DAY, 1);\n\n $end = new \\DateTime($_end);\n\n $interval = new \\DateInterval('P1D'); // 1 Day\n $dateRange = new \\DatePeriod($begin, $interval, $end);\n\n $range = [];\n foreach ($dateRange as $date) {\n if ($format == null) {\n $range[] = $date;\n } else {\n $range[] = $date->format($format);\n }\n\n }\n\n\n return $range;\n }", "function datePeriod_start_end($begin, $end)\n{\n $begin = new DateTime($begin);\n\n $end = new DateTime($end.' +1 day');\n\n $daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);\n\n foreach ($daterange as $date) {\n $dates[] = $date->format(\"Y-m-d\");\n }\n return $dates;\n}", "function getDatesFromRange($start, $end, $format = 'Y-m-d')\n {\n $array = array();\n $interval = new \\DateInterval('P1D');\n $realEnd = new \\DateTime($end);\n $realEnd->add($interval);\n $period = new \\DatePeriod(new \\DateTime($start), $interval, $realEnd);\n foreach ($period as $date) {\n $array[] = $date->format($format);\n }\n\n return $array;\n }", "function dateRange($begin, $end, $interval = null){\n $begin = new DateTime($begin);\n $end = new DateTime($end);\n // Because DatePeriod does not include the last date specified.\n $end = $end->modify('+1 day');\n $interval = new DateInterval($interval ? $interval : 'P1D');\n\n return iterator_to_array(new DatePeriod($begin, $interval, $end));\n}", "function createRangeStat($start, $end, $format = 'Y-m-d') {\n \t\tdate_default_timezone_set(\"Europe/London\");\n\t\t$start = new DateTime($start);\n\t\t$end = new DateTime($end);\n\t\t$invert = $start > $end;\n\n\t\t$dates = array();\n\t\t$dates[] = $start->format($format);\n\t\twhile ($start != $end) {\n\t\t\t$start->modify(($invert ? '-' : '+') . '1 day');\n\t\t\t$dates[] = $start->format($format);\n\t\t}\n\t\treturn $dates;\n\t}", "function GetDates(DateRange $startingDates);", "private function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n}", "function __construct($start, $end)\r\n {\r\n\r\n // For creating a DateRange object for an exact date (like if exact\r\n // date-of-birth is known) just pass the same value for `start` and `end`.\r\n\r\n if (!empty($start))\r\n {\r\n $this->start = $start;\r\n }\r\n if (!empty($end))\r\n {\r\n $this->end = $end;\r\n }\r\n\r\n if (empty($this->start) && empty($this->end))\r\n {\r\n throw new InvalidArgumentException('Start/End parameters missing');\r\n }\r\n\r\n if (($this->start && $this->end) && ($this->start > $this->end))\r\n {\r\n $t = $this->end;\r\n $this->end = $this->start;\r\n $this->start = $t;\r\n }\r\n }", "function dateRange($first, $last, $format = 'm/d/Y' ) { \n\t$dates = array();\n\t$current = strtotime($first);\n\t$last = strtotime($last);\n\n\twhile( $current <= $last ) { \n\t\t$dates[] = date($format, $current);\n\t\t$current = strtotime('+1 day', $current);\n\t}\n\t\n\treturn $dates;\n}", "public static function fromYmd(string $start, string $end): DateRange\n {\n return new DateRange(JustDate::fromYmd($start), JustDate::fromYmd($end));\n }", "function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n}", "function erp_get_dates_in_range($first, $last, $step = '+1 day', $output_format = 'Y-m-d' ) {\n\n $dates = array();\n $current = strtotime($first);\n $last = strtotime($last);\n\n while( $current <= $last ) {\n\n $dates[] = date($output_format, $current);\n $current = strtotime($step, $current);\n }\n\n return $dates;\n}", "public static function from_age_range($start_age, $end_age)\r\n {\r\n // suitable for him.\r\n if (!($start_age >= 0 && $end_age >= 0))\r\n {\r\n throw new InvalidArgumentException('start_age and end_age can\\'t be negative');\r\n }\r\n\r\n if ($start_age > $end_age)\r\n {\r\n $t = $end_age;\r\n $end_age = $start_age;\r\n $start_age = $t;\r\n }\r\n\r\n $start_date = new DateTime('now', new DateTimeZone('GMT'));\r\n $end_date = new DateTime('now', new DateTimeZone('GMT'));\r\n\r\n $start_date->modify('-' . $end_age . ' year');\r\n $start_date->modify('-1 year');\r\n $start_date->modify('+1 day');\r\n $end_date->modify('-' . $start_age . ' year');\r\n\r\n $date_range = new PiplApi_DateRange($start_date, $end_date);\r\n return (new PiplApi_DOB(array('date_range' => $date_range)));\r\n }", "public function toDateTimeRange()\n {\n $minDateTime = new \\DateTime();\n $minDateTime->setDate($this->year, $this->month ?? 1, $this->day ?? 1);\n $minDateTime->setTime($this->hours ?? 0, $this->minutes ?? 0, $this->seconds ?? 0, 0);\n\n /*\n * Calculating maximum date\n */\n $maxDateTime = new \\DateTime();\n if ($this->month === null) {\n $maxDateTime->setDate($this->year + 1, 1, 0);\n } elseif ($this->month !== null && $this->day === null) {\n $maxDateTime->setDate($this->year, $this->month + 1, 0);\n } elseif ($this->month !== null && $this->day !== null) {\n $maxDateTime->setDate($this->year, $this->month, $this->day);\n }\n\n $maxDateTime->setTime($this->hours ?? 23, $this->minutes ?? 59, $this->seconds ?? 59, 999999);\n\n return new DateTimeRange($minDateTime, $maxDateTime);\n }", "private function createDateRangeArray($strDateFrom, $strDateTo) {\n\t\t// takes two dates formatted as YYYY-MM-DD and creates an\n\t\t// inclusive array of the dates between the from and to dates.\n\t\t\n\t\t// could test validity of dates here but I'm already doing\n\t\t// that in the main script\n\t\t$aryRange = array ();\n\t\t\n\t\t$iDateFrom = mktime ( 1, 0, 0, substr ( $strDateFrom, 5, 2 ), substr ( $strDateFrom, 8, 2 ), substr ( $strDateFrom, 0, 4 ) );\n\t\t$iDateTo = mktime ( 1, 0, 0, substr ( $strDateTo, 5, 2 ), substr ( $strDateTo, 8, 2 ), substr ( $strDateTo, 0, 4 ) );\n\t\t\n\t\tif ($iDateTo >= $iDateFrom) {\n\t\t\tarray_push ( $aryRange, date ( 'Y-m-d', $iDateFrom ) ); // first entry\n\t\t\twhile ( $iDateFrom < $iDateTo ) {\n\t\t\t\t$iDateFrom += 86400; // add 24 hours\n\t\t\t\tarray_push ( $aryRange, date ( 'Y-m-d', $iDateFrom ) );\n\t\t\t}\n\t\t}\n\t\treturn $aryRange;\n\t}", "public function get_dates($start_date,$end_date){\r\n\t $date1 = date_format(date_create($start_date), 'Y-m-d');\r\n\t $date2 = date_format(date_create($end_date), 'Y-m-d');\r\n\t\t$dates = $this->date_manager->getAllDatesBetweenTwoDates($date1,$date2);\r\n\t\t$dates2 = $this->date_manager->exclude_weekends($dates);\r\n\t\tforeach($dates2 as $dat){\r\n\t\t\t$dates3[] = date_format(date_create($dat), 'm/d/Y');\r\n\t\t\t}\r\n\t return $dates3;\r\n\t }", "function fechas($start, $end) {\n\t\t$range = array();\n\t\n\t\tif (is_string($start) === true) $start = strtotime($start);\n\t\tif (is_string($end) === true ) $end = strtotime($end);\n\t\n\t\tif ($start > $end) return createDateRangeArray($end, $start);\n\t\n\t\tdo {\n\t\t\t$range[] = date('Y-m-d', $start);\n\t\t\t$start = strtotime(\"+ 1 day\", $start);\n\t\t} while($start <= $end);\n\t\n\t\treturn $range;\n\t}", "public function dateRange($startDate = null, $endDate = null, $field = null)\n {\n $start = $startDate ? Utils::date2timestamp($startDate) : null;\n $end = $endDate ? Utils::date2timestamp($endDate) : null;\n\n $date_range = [];\n foreach ($this->items as $path => $slug) {\n $page = $this->pages->get($path);\n if (!$page) {\n continue;\n }\n\n $date = $field ? strtotime($page->value($field)) : $page->date();\n\n if ((!$start || $date >= $start) && (!$end || $date <= $end)) {\n $date_range[$path] = $slug;\n }\n }\n\n $this->items = $date_range;\n\n return $this;\n }", "function createDateRangeArray($strDateFrom, $strDateTo) {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange, date('Y-m-d', $iDateFrom));\n }\n }\n return $aryRange;\n}", "function createDateRangeArray($strDateFrom,$strDateTo)\n {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing that in the main script\n \n $aryRange=array();\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date(DATE_FORMAT,$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date(DATE_FORMAT,$iDateFrom));\n }\n }\n \n return $aryRange;\n }", "function createDateRangeArray($strDateFrom, $strDateTo) {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry\n\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange, date('Y-m-d', $iDateFrom));\n }\n }\n return $aryRange;\n}", "public static function from_array($d)\r\n {\r\n $newstart = !empty($d['start']) ? $d['start'] : NULL;\r\n $newend = !empty($d['end']) ? $d['end'] : NULL;\r\n if($newstart) {\r\n $newstart = PiplApi_Utils::piplapi_str_to_date($newstart);\r\n }\r\n if($newend){\r\n $newend = PiplApi_Utils::piplapi_str_to_date($newend);\r\n }\r\n return new PiplApi_DateRange($newstart, $newend);\r\n }", "public function leadsInDates($start, $end, $data = []);", "public static function listDatesInRange($dateFrom, $dateTo = null, $format = 'Y-m-d')\n {\n if($dateTo === null){\n $dateTo = date($format);\n }\n\n //check if is valid date\n $objDateFrom = \\DateTime::createFromFormat($format, $dateFrom);\n if(!$objDateFrom || $objDateFrom->format($format) != $dateFrom){\n throw new \\yii\\base\\InvalidArgumentException($dateFrom.' is invalid');\n }\n\n $objDateTo = \\DateTime::createFromFormat($format, $dateTo);\n if(!$objDateTo || $objDateTo->format($format) != $dateTo){\n throw new \\yii\\base\\InvalidArgumentException($dateFrom.' is invalid');\n }\n\n $period = new \\DatePeriod(\n $objDateFrom,\n new \\DateInterval('P1D'),\n $objDateTo\n );\n foreach($period as $key => $value){\n $range[] = $value->format($format);\n }\n $range[] = $objDateTo->format($format);\n\n return $range;\n }", "public function searchBookListBetweenDate($start, $end)\n {\n return $this->bookDao->searchBookListBetweenDate($start, $end);\n }", "function date_range($first, $last, $step = '+1 day', $output_format = 'd/m/Y' ) {\n\n $dates = array();\n $current = strtotime($first);\n $last = strtotime($last);\n\n while( $current <= $last ) {\n\n $dates[] = date($output_format, $current);\n $current = strtotime($step, $current);\n }\n\n return $dates;\n }", "protected static function createFromEndpoints($datePoint1, $datePoint2)\n {\n $startDate = static::filterDatePoint($datePoint1);\n $endDate = static::filterDatePoint($datePoint2);\n if ($startDate > $endDate) {\n return new static($endDate, $startDate);\n }\n\n return new static($startDate, $endDate);\n }", "function byDateRange(Datetime $start, Datetime $end) {\n $params = 'from=' . urlencode($start->format('Ymd')) . '&to=' . urlencode($end->format('Ymd'));\n\n return $this->listFromApiCall($this->connector->apiCall(\n 'time.api/list?' . $params,\n function($result) { return isset($result['Times']['Time']) ? $result['Times']['Time'] : []; }\n ));\n }", "public static function getDatesFromRange(DateTime $start, DateTime $end): array\n {\n $array = [];\n\n // Variable that store the date interval\n // of period 1 day\n $interval = new DateInterval('P1D');\n\n $end->add($interval);\n\n $period = new DatePeriod($start, $interval, $end);\n\n // Use loop to store date into array\n foreach ($period as $date) {\n $array[] = $date;\n }\n\n // Return the array elements\n return $array;\n }", "public function createFromDatePeriodProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = 9;\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n ) {\n return [\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n $option,\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n );\n }", "public function setDateRestrictions($start, $end)\n\t{\n\t\t$this->setStartDate($start);\n\t\t$this->setEndDate($end);\n\t}", "public static function getDates($start, $end, $format = \"Y-m-d\")\n {\n $start = new \\DateTime($start);\n $end = new \\DateTime($end);\n $interval = \\DateInterval::createFromDateString('1 day');\n $period = new \\DatePeriod($start, $interval, $end->modify('+1 day'));\n\n $dates = [];\n\n foreach ($period as $dt) {\n $dates[] = $dt->format($format);\n }\n\n return $dates;\n }", "public function createDateRangeArray($strDateFrom,$strDateTo)\n {\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('d-m-Y',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('d-m-Y',$iDateFrom));\n }\n }\n return $aryRange;\n }", "function getDatesFromRange($start, $end, $format = 'Y-m-d') {\r\n $array = array();\r\n // Variable that store the date interval\r\n // of period 1 day\r\n $interval = new DateInterval('P1D');\r\n $realEnd = new DateTime($end);\r\n $realEnd->add($interval);\r\n $period = new DatePeriod(new DateTime($start), $interval, $realEnd);\r\n // Use loop to store date into array\r\n foreach($period as $date) {\r\n $array[] = $date->format($format);\r\n }\r\n // Return the array elements\r\n return $array;\r\n}", "public static function CreateFromDates($oStart, $oStop) {\n\t\tif (!($oStart instanceof Date)) throw new InvalidArgumentException('Start is not Date');\n\t\tif (!($oStop instanceof Date)) throw new InvalidArgumentException('Stop is not Date');\n\t\t\n\t\t$ts1 = $oStart->getTimestamp();\n\t\t$ts2 = $oStop->getTimestamp();\n\t\t$days = ($ts2 - $ts1) / (3600 * 24);\n\t\t\n\t\treturn self::Create(DateUnit::DAY, $days);\n\t}", "public function __construct(JustDate $start, JustDate $end)\n {\n if ($start->isAfter($end)) {\n throw new InvalidArgumentException(\"Start date cannot be after end date\");\n }\n $this->start = clone $start;\n $this->end = clone $end;\n }", "function findDatesFromDateRange($dateStart, $dateEnd){\r\n $foundDates = array($dateStart);\r\n while(end($foundDates) < $dateEnd){\r\n $foundDates[] = date('Y-m-d', strtotime(end($foundDates).' +1 day'));\r\n }\r\n// Array of foundDates\r\nreturn $foundDates;\r\n}", "public function dateRanges(): DateRangeCollection;", "function DatesBetween($startDate, $endDate){\r\n\t$days = (strtotime($endDate) - strtotime($startDate)) / 86400 + 1;\r\n\t$startMonth = date(\"m\", strtotime($startDate));\r\n\t$startDay = date(\"d\", strtotime($startDate));\r\n\t$startYear = date(\"Y\", strtotime($startDate));\r\n\t$dates;//the array of dates to be passed back\r\n\tfor($i=0; $i<$days; $i++){\r\n\t\t$dates[$i] = date(\"m/d/Y\", mktime(0, 0, 0, $startMonth , ($startDay+$i), $startYear));\r\n\t}\r\n\treturn $dates;\r\n}", "private function date_range(Carbon $from, Carbon $to, $inclusive = true)\n {\n if ($from->gt($to)) {\n return null;\n }\n\n // Clone the date objects to avoid issues, then reset their time\n $from = $from->copy()->startOfDay();\n $to = $to->copy()->startOfDay();\n\n // Include the end date in the range\n if ($inclusive) {\n $to->addDay();\n }\n\n $step = CarbonInterval::day();\n $period = new DatePeriod($from, $step, $to);\n\n // Convert the DatePeriod into a plain array of Carbon objects\n $range = [];\n\n foreach ($period as $day) {\n $range[] = new Carbon($day);\n }\n\n return ! empty($range) ? $range : null;\n }", "private function getPostDateRange() {\n \n switch($this->validFilter['postDate']) {\n case 'today' :\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'yesterday':\n $dateStart = new \\DateTime('yesterday');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime('yesterday');\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'thisWeek':\n $today = new \\DateTime();\n if('Sunday' == $today->format('l')) {\n $dateStart = clone $today;\n $dateStart->modify('Monday last week');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = $today;\n $dateEnd->setTime(23, 59, 59);\n } else {\n $dateStart = clone $today;\n $dateStart->modify('Monday this week');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = clone $today;\n $dateEnd->modify('Sunday this week');\n $dateEnd->setTime(23, 59, 59);\n }\n break;\n\n case 'lastWeek':\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateStart->sub(new \\DateInterval('P7D'));\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'pastMonth':\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateStart->sub(new \\DateInterval('P1M'));\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n default :\n $dateStart = new \\DateTime($this->validFilter['postDate']);\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime($this->validFilter['postDate']);\n $dateEnd->setTime(23, 59, 59);\n break;\n } // end of switch\n \n return array($dateStart, $dateEnd);\n }", "protected static function createFromDatepoints($datePoint1, $datePoint2)\n {\n $startDate = static::filterDatePoint($datePoint1);\n $endDate = static::filterDatePoint($datePoint2);\n if ($startDate > $endDate) {\n return new static($endDate, $startDate);\n }\n\n return new static($startDate, $endDate);\n }", "function getDatesFromRange($start, $end, $format = 'Y-m-d') { \n \n // Declare an empty array \n $array = array(); \n \n // Variable that store the date interval \n // of period 1 day \n $interval = new DateInterval('P1D'); \n \n $realEnd = new DateTime($end); \n $realEnd->add($interval); \n \n $period = new DatePeriod(new DateTime($start), $interval, $realEnd); \n \n // Use loop to store date into array \n foreach($period as $date) { \n $array[] = $date->format($format); \n } \n \n // Return the array elements \n return $array; \n}", "public static function getDateRange($startDate = NULL,$endDate = NULL/*, $timeZone = null*/)\n {\n// $toTZ = new DateTimeZone($timeZone ?: date_default_timezone_get());\n// $begin = new DateTime( $startDate, $toTZ );\n// $end = new DateTime( $endDate, $toTZ );\n \n $begin = new DateTime( $startDate );\n $end = new DateTime( $endDate );\n $end->modify('+1 day');\n $interval = DateInterval::createFromDateString('1 day');\n return new DatePeriod($begin, $interval, $end);\n }", "public static function from_years_range($start_year, $end_year)\r\n {\r\n $newstart = new DateTime($start_year . '-01-01', new DateTimeZone('GMT'));\r\n $newend = new DateTime($end_year . '-12-31', new DateTimeZone('GMT'));\r\n return new PiplApi_DateRange($newstart, $newend);\r\n }", "private function generateDateRange(Carbon $start_date, DateInterval $interval, int $recurrences, int $exclusive = 1): array\n {\n $period = new DatePeriod($start_date, $interval, $recurrences, $exclusive);\n $dates = collect();\n\n foreach ($period as $date) {\n $dates->push($date->format('Y-m-d'));\n }\n\n return $dates->toArray();\n }", "function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n $i=0;\n $aryRange=array();\n\n//$aryRange[] = array(\"DATA\"=>\"\");\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n// array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n// array_push($aryRange[\"DATA\"],date('Y-m-d',$iDateFrom)); // first entry\n$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom), 'KEY=>'.$i);\n$i=$i+1;\n\n//$array[] = $var;\n\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n// array_push($aryRange,date('Y-m-d',$iDateFrom));\n// array_push($aryRange[\"DATA\"],date('Y-m-d',$iDateFrom));\n//$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom));\n$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom), 'KEY=>'.$i);\n$i=$i+1;\n\n }\n }\n$aryRange=array_reverse($aryRange);\n\n return $aryRange;\n}", "public static function daterange($strDateFrom,$strDateTo)\r\n\t{\r\n\t\t// inclusive array of the dates between the from and to dates.\r\n\t\r\n\t\t// could test validity of dates here but I'm already doing\r\n\t\t// that in the main script\r\n\t\r\n\t\t$aryRange=array();\r\n\t\r\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\r\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\r\n\t\r\n\t\tif ($iDateTo>=$iDateFrom)\r\n\t\t{\r\n\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\r\n\t\t\twhile ($iDateFrom<$iDateTo)\r\n\t\t\t{\r\n\t\t\t\t$iDateFrom+=86400; // add 24 hours\r\n\t\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $aryRange;\r\n\t}", "public function SetDateRange($aStart, $aEnd)\n\t{\n\t\t// Adjust the start and end so that the indicate the\n\t\t// begining and end of respective start and end days\n\t\tif (strpos($aStart, ':') === false) {\n\t\t\t$aStart = date('Y-m-d 00:00', strtotime($aStart));\n\t\t}\n\n\t\tif (strpos($aEnd, ':') === false) {\n\t\t\t$aEnd = date('Y-m-d 23:59', strtotime($aEnd));\n\t\t}\n\n\t\t$this->scale->SetRange($aStart, $aEnd);\n\t}", "function createDateRangeArray($strDateFrom,$strDateTo,$id_tamu)\n\t{\n\t\t// inclusive array of the dates between the from and to dates.\n\n\t\t// could test validity of dates here but I'm already doing\n\t\t// that in the main script\n\n\t\t$aryRange=array();\n\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n\t\tif ($iDateTo>=$iDateFrom)\n\t\t{\n\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom).\"_\".$id_tamu); // first entry\n\t\t\twhile ($iDateFrom<$iDateTo)\n\t\t\t{\n\t\t\t\t$iDateFrom+=86400; // add 24 hours\n\t\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom).\"_\".$id_tamu);\n\t\t\t}\n\t\t}\n\t\treturn $aryRange;\n\t}", "function createDateArray($start_dt, $end_dt)\n\t{\n\t\t$arr_dates = array();\n\t\t$arr_dates[] = $start_dt = strtotime($start_dt);\n\t\twhile(1)\n\t\t{ \n\t\t\t$start_dt = strtotime(\"+1 day\", $start_dt);\n\t\t\tif($start_dt <= strtotime($end_dt))\n\t\t\t{\n\t\t\t\t$arr_dates[] = $start_dt;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $arr_dates;\n\t}", "function createDateRangeArray( $strDateFrom,$strDateTo,$format ) {\n \n $aryRange=array();\n if ( $format == \"european\" ) {\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,3,2),substr($strDateFrom,0,2),substr($strDateFrom,6,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,3,2),substr($strDateTo,0,2),substr($strDateTo,6,4));\n\t} else if ( $format == \"american\" ) {\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,0,2),substr($strDateFrom,3,2),substr($strDateFrom,6,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,0,2),substr($strDateTo,3,2),substr($strDateTo,6,4));\n\t}\n\n\t\n if ($iDateTo>=$iDateFrom) {\n if ( $format == \"european\" ) {\n\t\t\tarray_push($aryRange, date('d-m-Y',$iDateFrom)); \n\t\t} else if ( $format == \"american\" ) {\n\t\t\tarray_push($aryRange,date('m/d/Y',$iDateFrom)); \n\t\t}\n while ($iDateFrom<$iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n if ( $format == \"european\" ) {\n\t\t\t\tarray_push($aryRange,date('d-m-Y',$iDateFrom)); \n\t\t\t} else if ( $format == \"american\" ) {\n\t\t\t\tarray_push($aryRange,date('m/d/Y',$iDateFrom)); \n\t\t\t}\n }\n }\n\t\n return $aryRange;\n}", "public function between(Carbon $start, Carbon $end)\n {\n return $this->formatResults($this->query($start, $end)->get());\n }", "public function splitRange($start, $end) {\n \t$series = [];\n \t$ranges = [];\n\n \t// start is the same as min page; make standalone number\n \tif ( intval($start) === $this->_min_page ) {\n \t\t$series[] = $start;\n \t}\n \telse {\n\t\t\t$range = $start . $this->_range_delimiter . strval($this->_min_page);\n\t\t\t$series[] = $this->processRange($range);\n \t}\n\n \t// end only one more than min_page; make standalone number after stepping\n \tif ( intval($end) - $this->_min_page === 1 ) {\n \t\t$series[] = $this->step($end);\n \t}\n \telse {\n\t\t\t$range = strval($this->_min_page + 1). $this->_range_delimiter . $end;\n\t\t\t$series[] = $this->processRange($range);\n \t}\n\n \treturn implode($this->_series_delimiter, $series);\n }", "private function createDateRangeArray($dateFrom, $dateTo)\n {\n $dateRange = array();\n $tsFrom = strtotime($dateFrom);\n $tsTo = strtotime($dateTo);\n\n if ($tsTo >= $tsFrom)\n {\n $dateRange[] = date('Y-m-d', $tsFrom);\n while ($tsFrom < $tsTo)\n {\n $tsFrom += 60 * 60 * 24;\n $dateRange[] = date('Y-m-d', $tsFrom);\n }\n }\n\n return $dateRange;\n }", "public function __construct($startDate, $endDate)\n {\n $startDate = static::filterDatePoint($startDate);\n $endDate = static::filterDatePoint($endDate);\n if ($startDate > $endDate) {\n throw new LogicException(\n 'The ending datepoint must be greater or equal to the starting datepoint'\n );\n }\n $this->startDate = $startDate;\n $this->endDate = $endDate;\n }", "function getMonthRange( $start, $end ){\n\n\t$current = $start;\n\t$ret = array();\n\n\t// date iteration method via: https://gist.github.com/daithi-coombes/9779776\n\twhile( $current<$end ){\n\t\t$next = date('Y-M-01', $current) . \"+1 month\";\n\t\t$current = strtotime($next);\n\t\t$ret[] = $current;\n\t}\n\t$ret = array_reverse($ret);\n\n\t// convert timestamp into expected date format array\n\tforeach ($ret as $key => $value) {\n\t\t$ret[$key] = date('F Y', $value);\n\t}\n\treturn $ret;\n}", "public function dateRange($strDateFrom,$strDateTo) {\n $aryRange=array();\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n }", "public function getSelectDatesForEventId($eventId, \\DateTime $rangeStart = null, \\DateTime $rangeEnd = null)\n {\n if (!$eventId) {\n return array();\n }\n\n $conditions = array();\n $params = array();\n\n if ($rangeStart) {\n $conditions[] = 'date >= :rangeStart';\n $params[':rangeStart'] = $rangeStart->format('Y-m-d');\n }\n\n if ($rangeEnd) {\n $conditions[] = 'date <= :rangeEnd';\n $params[':rangeEnd'] = $rangeEnd->format('Y-m-d');\n }\n\n $selectDateRecords = Calendar_SelectDateRecord::model()->findAllByAttributes(\n array('eventId' => $eventId),\n implode(' AND ', $conditions),\n $params\n );\n\n $selectDateModels = Calendar_SelectDateModel::populateModels($selectDateRecords);\n\n usort(\n $selectDateModels,\n function (Calendar_SelectDateModel $dateA, Calendar_SelectDateModel $dateB) {\n if ($dateA->date < $dateB->date) {\n return -1;\n } elseif ($dateA->date > $dateB->date) {\n return 1;\n }\n\n return 0;\n }\n );\n\n return $selectDateModels;\n }", "static public function getRange($initialDate, $finalDate){\n\t\tif(!is_object($initialDate)){\n\t\t\t$initialDate = new Date($initialDate);\n\t\t}\n\t\tif(is_object($finalDate)){\n\t\t\t$finalDate = (string) $finalDate;\n\t\t}\n\t\t$initialTime = $initialDate->getTimestamp();\n\t\t$date = (string) $initialDate;\n\t\t$range = array($date);\n\t\twhile($date!=$finalDate){\n\t\t\t$initialTime+=86400;\n\t\t\t$date = date('Y-m-d', $initialTime);\n\t\t\t$range[] = $date;\n\t\t}\n\t\treturn $range;\n\t}", "public function getBetween($start, $end)\n {\n return $this->query()\n ->whereBetween('start_time', [$start, $end])\n ->get();\n }", "public function rangesToDates(){\n //Rangos::\n }", "public function merge(self ...$periods): self\n {\n $reducer = function (Period $carry, Period $period): Period {\n if ($carry->startDate > $period->startDate) {\n $carry = new self(\n $period->startDate,\n $carry->endDate,\n $period->bounds[0].$carry->bounds[1]\n );\n }\n\n if ($carry->endDate < $period->endDate) {\n $carry = new self(\n $carry->startDate,\n $period->endDate,\n $carry->bounds[0].$period->bounds[1]\n );\n }\n\n return $carry;\n };\n\n return array_reduce($periods, $reducer, $this);\n }", "public function getByStartDateRange(int $timestampStart, int $timestampEnd): array\n {\n return $this->responseMapper->getObjects(\n $this->soapClient->getByStartDateRange([\n 'from' => $timestampStart,\n 'to' => $timestampEnd\n ]),\n 'getByStartDateRangeResult',\n $this->hydratorConfigFactory->createResourceInformationConfig()\n );\n }", "public function validateDates(&$start, &$end) {\n $sixMonthsAgo = strtotime(\"-6 months\");\n $day = 86400;\n $end = time();\n \n if (!$start) {\n $start = strtotime(\"-7 days\");\n }\n \n $gap = $end - $start; \n \n //Don't mess the dates!\n switch ($gap) {\n case $gap < ($day * 31) :\n $gap = $day * 7;\n break;\n\n case $gap < ($day * 180) ://6 months\n $gap = $day * 31;\n break;\n \n case $gap >= ($day * 180) : \n default : \n $gap = $day * 180; \n break;\n }\n \n $end = time();\n $start = $end - $gap;\n }", "function getMinMaxForRange($date_start, $date_end) {\n $query = \"SELECT MIN(price) AS minPrice,\n MAX(price) AS maxPrice\n FROM np_data\n WHERE (\n (date BETWEEN '$date_start' AND '$date_end' AND hour != '23')\n OR (date = ($date_start - INTERVAL 1 DAY) AND hour = '23')\n )\";\n if ($result = $this->link->query($query)) {\n /* free result set */\n $row = mysqli_fetch_array($result);\n $result->close();\n $resultArray = array (\n 'min' => $row['minPrice'],\n 'max' => $row['maxPrice']\n );\n return $resultArray;\n }\n }", "function getDatesFromRange($start, $end, $format = 'Y-m-d') { \n $GLOBALS['labelDates'] = array();\n // Declare an empty array \n $dates = array(); \n \n // Variable that store the date interval \n // of period 1 day \n $interval = new DateInterval('P1D'); \n \n $realEnd = new DateTime($end); \n $realEnd->add($interval); \n \n $period = new DatePeriod(new DateTime($start), $interval, $realEnd); \n // Use loop to store date into array \n foreach($period as $date) { \n $dates[] = $date->format($format); \n if($date->format($format) == date('Y-m-d'))\n $GLOBALS['labelDates'][] = \"Today\";\n else\n $GLOBALS['labelDates'][] = $date->format('M-d');\n } \n $dates = array_reverse($dates) ;\n $GLOBALS['labelDates'] = array_reverse( $GLOBALS['labelDates']) ;\n\n \n \n // Return the array elements \n return $dates; \n }", "public static function getByDateRange(DateTime $rangeStart, DateTime $rangeEnd)\n {\n $startFinancialYear = self::getByDate($rangeStart);\n $endFinancialYear = self::getByDate($rangeEnd);\n\n if ($startFinancialYear > $endFinancialYear) {\n throw new \\Exception('End date is before start date');\n }\n\n $startYear = $startFinancialYear->getStartDate()->format('Y');\n $endYear = $endFinancialYear->getStartDate()->format('Y');\n\n $financialYears = array();\n\n for ($i = $startYear; $i <= $endYear; $i += 1) {\n $financialYears[] = self::getByDate(\n DateTime::createFromFormat('Y-m-d H:i:s', $i . '-07-01 00:00:00')\n );\n }\n\n return $financialYears;\n }", "protected function _getDateRange()\n {\n if (is_null($this->_dateRange)) {\n $this->_dateRange = array();\n $rules = $this->getAttributeObject()->getValidateRules();\n if (isset($rules[self::MIN_DATE_RANGE_KEY])) {\n $this->_dateRange[self::MIN_DATE_RANGE_KEY] = $rules[self::MIN_DATE_RANGE_KEY];\n }\n if (isset($rules[self::MAX_DATE_RANGE_KEY])) {\n $this->_dateRange[self::MAX_DATE_RANGE_KEY] = $rules[self::MAX_DATE_RANGE_KEY];\n }\n }\n return $this->_dateRange;\n }", "function active_range() {\n\t\treturn new DateRange(\n\t\t\t$this->attribute(\"start date\"),\n\t\t\t$this->attribute(\"end date\"),\n\t\t\t$this\n\t\t);\n\t}", "public function __construct($startDate, $endDate)\n {\n $startDate = static::filterDatePoint($startDate);\n $endDate = static::filterDatePoint($endDate);\n if ($startDate > $endDate) {\n throw new LogicException('the ending endpoint must be greater or equal to the starting endpoint');\n }\n $this->startDate = $startDate;\n $this->endDate = $endDate;\n }", "public function GetByDate($initialDate, $endDate);", "public function getByEndDateRange(int $timestampStart, int $timestampEnd): array\n {\n return $this->responseMapper->getObjects(\n $this->soapClient->getByEndateRange([\n 'from' => $timestampStart,\n 'to' => $timestampEnd\n ]),\n 'getByEndateRangeResult',\n $this->hydratorConfigFactory->createResourceInformationConfig()\n );\n }", "function compute_date_diff($start, $end)\n{\n $date1 = new DateTime($start->format(\"Y-m-d\"));\n $date2 = new DateTime($end->format(\"Y-m-d\"));\n\n $interval = $date1->diff($date2);\n\n $day1 = intval($date1->format(\"d\"));\n $day2 = intval($date2->format(\"d\"));\n if ($day1 <= 28 || $day1 <= $day2)\n {\n return $interval;\n }\n\n $year1 = intval($date1->format(\"Y\"));\n $month1 = intval($date1->format(\"m\"));\n\n $year2 = intval($date2->format(\"Y\"));\n $month2 = intval($date2->format(\"m\"));\n\n $date3 = $date2->add(new DateInterval('P1D'));\n $month3 = intval($date3->format(\"m\"));\n if ($month2 != $month3)\n {\n $interval->d = 0;\n if ($interval->m == 11)\n {\n $interval->m = 0;\n $interval->y = $interval->y + 1;\n }\n else\n {\n $interval->m = $interval->m + 1;\n }\n return $interval;\n }\n\n $interval->d = $day2;\n $interval->m = $month2 - $month1 - 1;\n if ($interval->m < 0)\n {\n $interval->y = $year2 - $year1 - 1;\n $interval->m = $interval->m + 12;\n }\n return $interval;\n}", "function FormatDateRange ($start, $end) {\n\t\n\t\t$full_format='F jS, Y';\n\t\t$no_year_format='F jS';\n\t\t$month_format='F';\n\t\t$day_format='jS';\n\t\t$year_format='Y';\n\t\t\n\t\t//\tThey're both null/missing/improper\n\t\tif (!is_date($start) && !is_date($end)) return '';\n\t\t\n\t\t//\tThe first is missing/null/improper\n\t\tif (!is_date($start)) $start=$end;\n\t\telse if (!is_date($end)) $end=$start;\n\t\t\n\t\t//\tThey're both the same\n\t\t/*if ($start->format(DateTime::ISO8601)===$end->format(DateTime::ISO8601)) {\n\t\t\n\t\t\t//\tJust output one of them\n\t\t\treturn $start->format($full_format);\n\t\t\n\t\t}*/\n\t\t\n\t\t//\tThey're in the same year\n\t\tif ($start->format('Y')===$end->format('Y')) {\n\t\t\n\t\t\t//\tThey're in the same month\n\t\t\tif ($start->format('n')===$end->format('n')) {\n\t\t\t\n\t\t\t\t//\tThey're on the same day\n\t\t\t\tif ($start->format('j')===$end->format('j')) {\n\t\t\t\t\n\t\t\t\t\treturn $start->format($full_format);\n\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\n\t\t\t\t\treturn sprintf(\n\t\t\t\t\t\t'%1$s %2$s - %3$s, %4$s',\n\t\t\t\t\t\t$start->format($month_format),\n\t\t\t\t\t\t$start->format($day_format),\n\t\t\t\t\t\t$end->format($day_format),\n\t\t\t\t\t\t$start->format($year_format)\n\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t} else {\n\t\t\t\n\t\t\t\treturn sprintf(\n\t\t\t\t\t'%1$s - %2$s, %3$s',\n\t\t\t\t\t$start->format($no_year_format),\n\t\t\t\t\t$end->format($no_year_format),\n\t\t\t\t\t$start->format($year_format)\n\t\t\t\t);\n\t\t\t\n\t\t\t}\n\t\t\n\t\t} else {\n\t\t\n\t\t\treturn sprintf(\n\t\t\t\t'%1$s - %1$s',\n\t\t\t\t$start->format($full_format),\n\t\t\t\t$end->format($full_format)\n\t\t\t);\n\t\t\n\t\t}\n\t\n\t}", "public function _constructProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = 9;\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n ) {\n return [\n $start,\n $interval,\n $end,\n $option,\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n );\n }", "public function range($start, $end, $step = null): static;", "public function getArticlesByRangeDate($startDate='', $endDate='')\r\n\t{\r\n\t\t$em = $this->getServiceManager()->get('doctrine.entitymanager.orm_default');\r\n\r\n\t\t$startDateTime = \\DateTime::createFromFormat('d/m/Y', $startDate);\r\n\t\t$endDateTime = \\DateTime::createFromFormat('d/m/Y', $endDate);\r\n\r\n\t\tif ($startDate != '' && $endDate != '') {\r\n\t\t\t$dateRange = \"(p.publicationDate >='\" . $startDateTime->format('Y-m-d') . \" 0:0:0' AND p.publicationDate <= '\" . $endDateTime->format('Y-m-d') . \" 0:0:0')\";\r\n\t\t} elseif ($startDate == '' && $endDate != '') {\r\n\t\t\t$dateRange = \"p.publicationDate <= '\" . $endDateTime->format('Y-m-d') . \" 0:0:0'\";\r\n\t\t} elseif ($startDate != '' && $endDate == '') {\r\n\t\t\t$dateRange = \"p.publicationDate >='\" . $startDateTime->format('Y-m-d') . \" 0:0:0'\";\r\n\t\t} else {\r\n\t\t\t$dateRange = \"p.publicationDate IS NOT NULL\";\r\n\t\t}\r\n\r\n\t\t$query = $em->createQuery('\r\n\t\t\tSELECT COUNT(p.id) FROM PlaygroundCms\\Entity\\Page p\r\n\t\t\tWHERE ' . $dateRange . '\r\n\t\t\tAND p.active=1\r\n\t\t');\r\n\t\t$count = $query->getSingleScalarResult();\r\n\t\treturn $count;\r\n\t}", "function calc_date_range_years($start, $end)\n{\n\t$years = array();\n\t\n\t$start_prts = explode('-', $start);\n\t$end_prts = explode('-', $end);\n\t\n\t$years[] = $start_prts[0];\n\t\n\tfor ($i=$start_prts[0]; $i<$end_prts[0]; $i++)\n\t{\n\t\t$years[] = $i + 1;\n\t}\n\t\n\treturn $years;\n}", "public function setDateRange($from, $to)\n {\n $this->_from = $from;\n $this->_to = $to;\n\n return $this;\n }", "public function mergeRange($start, $end = null)\n {\n if ($end === null) {\n $end = $this->getNumParts() - 1;\n }\n\n if ($end <= $start) {\n return $this;\n }\n\n $mergedParts = implode(\n array_slice($this->identifierParts, $start, $end)\n );\n array_splice($this->identifierParts, $start, $end, $mergedParts);\n\n return $this;\n }", "public function getEvents(DateTime $dateStart = null, DateTime $dateEnd = null)\n {\n $events = array();\n\n if ($dateStart === null) {\n $dateStart = new DateTime();\n }\n\n if ($dateEnd === null) {\n $dateEnd = clone $dateStart;\n $dateEnd->add(new DateInterval('P1Y'));\n }\n\n if (($this->repeatEndDate !== null) && ($this->repeatEndDate < $dateEnd)) {\n $dateEnd = $this->repeatEndDate;\n }\n\n $repeatDates = $this->getRepeatDates();\n\n for ($count = 0; true; ++$count) {\n if ($this->repeatCount > 0 && $count >= $this->repeatCount) {\n break;\n }\n /** @var DateTime[] $repeatDate */\n foreach ($repeatDates as $repeatDate) {\n if ($repeatDate['start'] <= $dateEnd && $repeatDate['end'] >= $dateStart && !$this->isRepeatException($repeatDate['start'])) {\n $events[] = $this->createEvent(clone $repeatDate['start'], clone $repeatDate['end']);\n }\n if (!$this->repeatInterval || $repeatDate['start'] > $dateEnd) {\n break 2;\n }\n $repeatDate['start']->add($this->repeatInterval);\n $repeatDate['end']->add($this->repeatInterval);\n }\n }\n\n return $events;\n }", "public static function getListofDatesBetweenTwoDates($date_from, $date_to) {\n // Convert date to a UNIX timestamp\n $date_from = strtotime($date_from);\n $date_to = strtotime($date_to);\n $list = array();\n for ($i = $date_from; $i <= $date_to; $i+=86400) {\n $list[] = date('m/d/Y', $i);\n }\n $date_range = implode(\",\", $list);\n return $date_range;\n }", "public function getEventsForRange($dt1, $dt2) {\n $events = $this->_machine->plugin(\"DB\")->getEventsFromDB(\"AND events.active = 1\", \"\", false, \"time_to DESC\");\n $events = array_filter($events, function($ev) use ($dt1, $dt2) {\n $from = new \\DateTime($ev[\"time_from\"]);\n $to = new \\DateTime($ev[\"time_to\"]);\n $from->setTime(0,0);\n $to->setTime(23,59);\n $dt1->setTime(0,0);\n $dt2->setTime(23,59);\n \n /*\n echo \"================================= \\r\\n\";\n echo \"ev: \" . ($ev[\"id\"]) . \"\\r\\n\";\n echo \"from: \" . $from->getTimestamp() . \"\\r\\n\";\n echo \"to: \" . $to->getTimestamp() . \"\\r\\n\";\n echo \"dt1: \" . $dt1->getTimestamp() . \"\\r\\n\";\n echo \"dt2: \" . $dt2->getTimestamp() . \"\\r\\n\";\n var_dump( ($dt1->getTimestamp() < $from->getTimestamp() && $dt2->getTimestamp() < $from->getTimestamp()) || ($dt1->getTimestamp() > $to->getTimestamp() && $dt2->getTimestamp() > $to->getTimestamp()) );\n */\n \n //echo \"from: \" . $from->getTimestamp() . \"\\r\\n\";\n // 20/4 <= 19/4 && 19/4 <= 20/4 || 20/4 <= 21/4 && 21/4 <= 20/4 \n //if (($from <= $dt1 && $dt1 <= $to) || ($from <= $dt2 && $dt2 <= $to)) {\n //if (($dt1 <= $from && $from <= $dt2) || ($dt1 <= $to && $to <= $dt2)) { \n // return true;\n //}\n //return false;\n if (($dt1 < $from && $dt2 < $from) || ($dt1 > $to && $dt2 > $to)) {\n return false;\n }\n return true;\n });\n return $events;\n }", "public function datePeriodFilter($start, $end, $interval = '1 day')\n {\n\n $interval = DateInterval::createFromDateString($interval);\n $datePeriod = new \\DatePeriod($start, $interval, $end);\n\n return $datePeriod;\n }", "public function getEventsByDate($start, $end){\n $this->db->query('SELECT * FROM events\n WHERE user_id = :user_id\n AND date >= :start\n AND date <= :end\n ORDER BY date DESC');\n $this->db->bind(':user_id', $_SESSION['user_id']);\n $this->db->bind(':start', $start);\n $this->db->bind(':end', $end);\n\n $events = $this->db->resultSet();\n return $events;\n }", "function date_list( $from_date, $to_date )\n {\n $from_time = strtotime(\"midnight\", is_numeric($from_date) ? $from_date : strtotime($from_date));\n $to_time = strtotime(\"midnight\", is_numeric($to_date ) ? $to_date : strtotime($to_date ));\n\n $dates = array();\n while( $from_time <= $to_time )\n {\n $dates[] = date(\"Y-m-d\", $from_time);\n $from_time = strtotime(\"+1 day\", $from_time);\n }\n\n return $dates;\n }", "public static function build_date_range( $date, $compare, $date2 = null, $compare2 = null ) {\n\t\tif ( isset( $date2 ) && isset( $compare2 ) ) {\n\t\t\treturn array_merge( self::build_date_range( $date, $compare ), self::build_date_range( $date2, $compare2 ) );\n\t\t}\n\n\t\t// To improve readability\n\t\t$upper_edge = true;\n\t\t$lower_edge = false;\n\n\t\tswitch ( $compare ) {\n\t\t\tcase '!=' :\n\t\t\tcase '=' :\n\t\t\t\treturn array(\n\t\t\t\t\t'gte' => self::build_datetime( $date, $lower_edge ),\n\t\t\t\t\t'lte' => self::build_datetime( $date, $upper_edge )\n\t\t\t\t);\n\n\t\t\tcase '>' :\n\t\t\t\treturn array( 'gt' => self::build_datetime( $date, $upper_edge ) );\n\t\t\tcase '>=' :\n\t\t\t\treturn array( 'gte' => self::build_datetime( $date, $lower_edge ) );\n\n\t\t\tcase '<' :\n\t\t\t\treturn array( 'lt' => self::build_datetime( $date, $lower_edge ) );\n\t\t\tcase '<=' :\n\t\t\t\treturn array( 'lte' => self::build_datetime( $date, $upper_edge ) );\n\t\t}\n\t}", "public function dateRange($field, $date1, $date2 = '') {\n\t\t$date1 = date('Y-m-d 00:00:00', strtotime($date1));\n\t\t$date2 = date('Y-m-d 23:59:59', strtotime($date2));\n\t\treturn array($field.' >= ' => $date1, $field.' <= ' => $date2);\n\t}", "function getDateFilterSelectedRange() {\n $from = $this->getAdditionalProperty('date_filter_from');\n $to = $this->getAdditionalProperty('date_filter_to');\n \n return $from && $to ? array(new DateValue($from), new DateValue($to)) : array(null, null);\n }", "function getOrderBetweenDates($date1, $date2)\n {\n $dataService = new OrderDataService();\n\n return $dataService->getOrderBetweenDates($date1, $date2);\n }", "function getDatesPeriod($startDate, $endDate, $format = null)\n {\n $allowedDateFormats = [\n 'Y-m-d',\n 'Y-m-d H:i:s',\n 'Y-m-d\\TH:i:s',\n 'd/m/Y',\n 'd/m/Y H:i:s',\n 'd.m.Y',\n 'd.m.Y H:i:s',\n ];\n\n $startDate = !is_object($startDate) ? new \\DateTime($startDate) : $startDate;\n $endDate = !is_object($endDate) ? new \\DateTime($endDate) : $endDate;\n\n $period = new \\DatePeriod(\n $startDate,\n new \\DateInterval('P1D'),\n $endDate\n );\n\n $dates = [];\n foreach ($period as $key => $value) {\n $dates[$key] = isset($format) && in_array((string)$format, $allowedDateFormats) ? $value->format($format) : $value;\n }\n\n return $dates;\n }", "public function __construct($start, $end) {\n $this->assertValidRange($start, $end);\n $this->start = $start;\n $this->end = $end;\n }", "function test_range() {\n\t\t// Check range\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2018, 1 );\n\t\t$this->assertEquals( '2018-01-01 00:00:00', $start );\n\t\t$this->assertEquals( '2018-01-31 23:59:59', $end );\n\t\t// Check leap year\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2004, 2 );\n\t\t$this->assertEquals( '2004-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '2004-02-29 23:59:59', $end );\n\t\t// Check exceptional leap year.\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 1900, 2 );\n\t\t$this->assertEquals( '1900-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '1900-02-28 23:59:59', $end );\n\t}", "function is_valid_date_range($date_start, $date_end){\n $d1 = strtotime($date_start);\n $d2 = strtotime($date_end);\n\n if($d2 >= $d1){\n return true;\n }else{\n return false;\n }\n\n}", "public function get_first_rate_list_between_date($start_date = '', $end_date = '')\n {\n if ('' == strval($start_date)\n || '' == strval($end_date))\n {\n return FALSE;\n }\n\n // check date format\n $format = 'Ymd';\n $start_date = date($format, strtotime($start_date));\n $end_date = date($format, strtotime($end_date));\n if (empty($start_date)\n || empty($end_date))\n {\n return FALSE;\n }\n\n $i = 1;\n $rs = array();\n do\n {\n $date_rs = $this->get_rate_change_list($start_date);\n if (!is_array($date_rs))\n {\n //set log?\n $rs[$start_date] = $this->field_list;\n }\n else\n {\n $rs[$start_date] = array_shift($date_rs);\n }\n\n $start_date = date($format, strtotime($start_date . ' +1 days'));\n }while ($start_date <= $end_date);\n\n return $rs;\n }", "function the_date_range($start_dt,$end_dt, $one_day = false){\r\n\t\r\n\t$duration = $start_dt->diff($end_dt);\r\n\t$start = explode(\" \",$start_dt->format('l F j Y g i a'));\r\n\t$end = explode(\" \",$end_dt->format('l F j Y g i a'));\r\n\t\r\n\t//happening at the same time\r\n\tif($start == $end){\r\n\t\treturn array(\r\n\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\"%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2] //day of month\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\teo_is_all_day() ? 'all day' : time_compact_ap_format($start[4],$start[5],$start[6])\r\n\t\t);\r\n\t}\t\r\n\t//happening on the same day\r\n\telseif($start[2] == $end[2] || ($duration->days < 1 && $duration->h < 24)){\r\n\t\t//Monday, March 4; 9:00 p.m.\r\n\t\treturn array(\r\n\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\"%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2] //day of month\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\teo_is_all_day() ? 'all day' : sprintf(\r\n\t\t\t\t\"%s&ndash;%s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\t //formatted date\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n\t//happening in the same month\r\n\t//check if happening all day; if not, return eo_all_day ? : \r\n\telseif($start[1] == $end[1]){\r\n\t\treturn (eo_is_all_day() || $one_day) ? \r\n\t\tsprintf(\r\n\t\t\t\"%s %s&ndash;%s\",\r\n\t\t\t$start[1], //month\r\n\t\t\t$start[2], //day of month\r\n\t\t\t$end[2]\r\n\t\t)\r\n\t\t: \r\n\t\tarray(\r\n\t\t\t\"date\" => sprintf(\r\n\t\t\t\t\"%s %s&ndash;%s\",\r\n\t\t\t\t$start[1],\r\n\t\t\t\t$start[2],\r\n\t\t\t\t$end[2]\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\"datetime\" => sprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t$start[1],\r\n\t\t\t\t$start[2],\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\tsprintf(\r\n\t\t\t\t\"%s&ndash;%s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\t//happening in the same year\r\n\telseif($start[3] == $end[3]){\r\n\t\treturn (eo_is_all_day() || $one_day) ?\r\n\t\t\tsprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2], //day of month\r\n\t\t\t\t$end[0],\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\r\n\t\t\t)\r\n\t\t\t:\r\n\t\t\tarray(\r\n\t\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s %s&ndash;%s %s\",\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"datetime\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s, %s %s&ndash;%s, %s, %s %s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\t\"time\"\t=>\tsprintf(\"%s&ndash;%s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n\t//just plain happening\r\n\r\n\telse{\r\n\t\treturn (eo_is_all_day() || $one_day) ? \r\n\t\t\tsprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2], //day of month\r\n\t\t\t\t$end[0],\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\r\n\t\t\t)\r\n\t\t\t:\r\n\t\t\tarray(\r\n\t\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"datetime\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s, %s %s&ndash;%s, %s, %s %s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\t\"time\"\t=>\tsprintf(\"%s&ndash;%s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n}" ]
[ "0.6744965", "0.66312975", "0.66079134", "0.64106256", "0.63804626", "0.63755304", "0.6314844", "0.6313261", "0.63101333", "0.6197595", "0.6177915", "0.61579424", "0.6022557", "0.60070676", "0.5999849", "0.5997851", "0.59589565", "0.59581095", "0.59552455", "0.5939556", "0.5930608", "0.5927448", "0.59269154", "0.5917533", "0.5916339", "0.590597", "0.5896754", "0.5890029", "0.5869352", "0.58226824", "0.581483", "0.5812964", "0.5807997", "0.5790685", "0.57827616", "0.5776685", "0.57620513", "0.5744455", "0.5734912", "0.5732639", "0.5711781", "0.56909966", "0.5685604", "0.5667596", "0.5666656", "0.5650566", "0.5646021", "0.5622003", "0.56169456", "0.5616695", "0.56158656", "0.55969185", "0.55781144", "0.55748194", "0.55595285", "0.55369467", "0.5536922", "0.551655", "0.550679", "0.5504238", "0.5482212", "0.5463161", "0.5455366", "0.5414429", "0.5413049", "0.54114145", "0.54033136", "0.5399039", "0.5369107", "0.53503674", "0.53239673", "0.5298382", "0.5296708", "0.5286972", "0.52808523", "0.5280523", "0.52801615", "0.5280138", "0.5247103", "0.5245027", "0.5226384", "0.52184904", "0.52141464", "0.5193528", "0.51783395", "0.5178268", "0.5176877", "0.5170848", "0.5164501", "0.51384246", "0.5128012", "0.51274353", "0.5116048", "0.5102036", "0.5100925", "0.5098374", "0.50947285", "0.5084604", "0.50845015", "0.5081996" ]
0.60257417
12
Getters start The start of the range end The end of the range span The number of nights between start and end (if start and end are same day, span is 0) num_nights Alias for span num_days The number of days in the range, including start end end (if start and end are same day, num_days is 1)
public function __get($name) { switch ($name) { case 'start': return $this->start; case 'end': return $this->end; case 'span': case 'num_nights': return JustDate::spanDays($this->start, $this->end); case 'num_days': return JustDate::spanDays($this->start, $this->end) + 1; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createRangeStat($start, $end, $format = 'Y-m-d') {\n \t\tdate_default_timezone_set(\"Europe/London\");\n\t\t$start = new DateTime($start);\n\t\t$end = new DateTime($end);\n\t\t$invert = $start > $end;\n\n\t\t$dates = array();\n\t\t$dates[] = $start->format($format);\n\t\twhile ($start != $end) {\n\t\t\t$start->modify(($invert ? '-' : '+') . '1 day');\n\t\t\t$dates[] = $start->format($format);\n\t\t}\n\t\treturn $dates;\n\t}", "public function getNumberOfNights()\n {\n $fromDate = new \\DateTime(date('Y-m-d', $this->getFromDate()));\n $toDate = new \\DateTime(date('Y-m-d', $this->getToDate()));\n return $fromDate->diff($toDate)->days;\n }", "function getDays($start,$end) {\n return (int)((strtotime($start) - strtotime($end))/(60*60*24*30.44*12));\n }", "public function range($start, $end, $step = null): static;", "public function calculateRangeKwhCosts($beginDate, $endDate){\n \t \n\t\treturn $this->calculateTimeRangeKwhCosts(date (\"Y-m-d 00:00:00\", strtotime($beginDate)),date (\"Y-m-d 00:00:00\", strtotime (\"+1 day\", strtotime($endDate))) );\n\n }", "public function leadsInDates($start, $end, $data = []);", "public function spans()\n {\n return $this->spans;\n }", "public static function countDays($range) {\n return round(self::countSeconds($range) / self::DAY);\n}", "function days_since_start()\n{\n\t$date_diff = time() - strtotime(START_DATE);\n\t$time_span = floor($date_diff/(60*60*24));\n\treturn $time_span;\n}", "function week_count($start, $end) {\n $diff_dates = $this->date_difference($start, $end);\n return floor($diff_dates / 7) + 1;\n }", "function numberRange($start, $end)\n{\n $number_range = range($start, $end);\n\n return $number_range;\n}", "public function get_num_work_days($date1='',$date2='') {\n if(empty($date1)) {\n $date1 = strtotime(date('Y-m-d', strtotime('-1 week')) . \" 00:00:00\");\n } else {\n $date1 = strtotime($date1 . \" 00:00:00\");\n }\n if(empty($date2)) {\n $date2 = strtotime(date('Y-m-d', time()) . \" 23:59:59\");\n } else {\n $date2 = strtotime($date2 . \" 23:59:59\");\n }\n \n if($date1 >= $date2) { $end_date = $date1; $start_date = $date2; }\n if($date2 > $date1) { $end_date = $date2; $start_date = $date1; }\n \n //echo \"Start Date: {$start_date} (\".date('Y-m-d H:i:s',$start_date).\") | End Date: {$end_date} (\".date('Y-m-d H:i:s',$end_date).\")<br />\";\n \n $num_days = abs(($end_date - $start_date)) / $this->sec_in_day;\n $num_weekdays = 0;\n for($i=0;$i<=$num_days;$i++) {\n $the_date = date('N',($start_date + ($this->sec_in_day * $i)));\n if($the_date >= 1 && $the_date <= 5)\n $num_weekdays++;\n }\n \n return $num_weekdays;\n }", "function findWeekStartEndFromDateRange($dateStart,$dateEnd,$weekStartOn = 6) {\r\n\t$arrayWeekStart = array();\r\n\t$arrayWeekEnd = array();\r\n\t$foundWeeksRough = array();\r\n\t$foundWeeks = array();\r\n\tfor ($i = strtotime($dateStart); $i <= strtotime($dateEnd); $i = strtotime('+1 day', $i)) {\r\n\t if (date('N', $i) == $weekStartOn){ //Default is Saturday == 6\r\n\t\t$arrayWeekStart[] = date('Y-m-d', $i); // if it's a Saturday\r\n\t }\r\n\t}\r\n\tforeach($arrayWeekStart as $valweekStartOn){\r\n\t\t$valWeekEnd = strtotime(\"+6 day\".$valweekStartOn);\r\n\t\tif($valWeekEnd <= strtotime($dateEnd)){\r\n\t\t\t$arrayWeekEnd[] = date('Y-m-d', strtotime(\"+6 day\".$valweekStartOn));\r\n\t\t}\r\n\t}\r\n\t$foundWeeksRough = array_map(function ($arrayWeekStart, $arrayWeekEnd) {\r\n\t\t\t\t\treturn ['Start' => $arrayWeekStart, 'End' => $arrayWeekEnd];\r\n\t\t\t\t\t}, $arrayWeekStart, $arrayWeekEnd);\t\r\n\t\r\n\tforeach($foundWeeksRough as $foundWeekRough){\t\r\n\t\tif(empty($foundWeekRough['End']))continue;\r\n\t\t$foundWeeks[] = $foundWeekRough['Start'].\",\".$foundWeekRough['End'];\r\n\t}\r\n// Array of WeekStartDate and WeekEndDate\r\nreturn $foundWeeks;\r\n}", "public static function range($lowerBound, $upperBound, $unit = DAY) {\n\t\t\tif(is_string($lowerBound)) {\n\t\t\t\t$lowerBound = strtotime($lowerBound);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(empty($upperBound)) {\n\t\t\t\t$upperBound = self::now();\n\t\t\t}\n\t\t\t\n\t\t\tif(is_string($upperBound)) {\n\t\t\t\t$upperBound = strtotime($upperBound);\n\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t$range = range($lowerBound, $upperBound, $unit);\n\t\t\t\n\t\t\treturn array_map(function($date) { return date('Y-m-d', $date); }, $range);\n\t\t}", "public function ranges(): array\n {\n return [\n 30 => '30 Days',\n 60 => '60 Days',\n 90 => '90 Days',\n 180 => '180 Days',\n 365 => '365 Days',\n ];\n }", "function get_in_interval($start, $end, $session_id = null, $type = null)\n {\n $this->db->where('time >=', $start);\n $this->db->where('time <', $end);\n $query = $this->db->get($this->table);\n return $query->result();\n }", "public function countDates($start, $end)\n {\n // make timestamps from the MySQL formatted time\n $startTimestamp = strtotime($start);\n $endTimestamp = strtotime($end);\n\n // First we need to break these dates into their constituent parts:\n $gd_a = getdate($startTimestamp);\n $gd_b = getdate($endTimestamp);\n\n // Now recreate these timestamps, based upon noon on each day\n // The specific time doesn't matter but it must be the same each day\n $a_new = mktime(12, 0, 0, $gd_a['mon'], $gd_a['mday'], $gd_a['year']);\n $b_new = mktime(12, 0, 0, $gd_b['mon'], $gd_b['mday'], $gd_b['year']);\n\n // Subtract these two numbers and divide by the number of seconds in a\n // day. Round the result since crossing over a daylight savings time\n // barrier will cause this time to be off by an hour or two.\n return round(abs($a_new - $b_new) / 86400);\n }", "public function ranges()\n {\n return [\n 30 => '30 Min',\n 60 => '60 Min',\n 180 => '3 Hrs',\n 720 => '12 Hrs',\n 1440 => '24 Hrs',\n ];\n }", "public function getWeeks() : int {\n $start = $this->getStartingDay();\n $end = $start->modify('+1 month -1 day');\n $startWeek = intval($start->format('W'));\n $endWeek =intval($end->format('W'));\n if ($endWeek ===1){\n $endWeek =intval($end ->modify('- 7 days')->format('W')) + 1;\n }\n $weeks = $endWeek - $startWeek + 1;\n if ($weeks < 0){\n $weeks = intval($end->format('W'));\n }\n return $weeks;\n }", "public function ranges(): array\n {\n return [\n 3 => '3 Weeks',\n 6 => '6 Weeks',\n 9 => '9 Weeks',\n 12 => '12 Weeks',\n ];\n }", "protected function get_time_range( ) {\n// Format is ddhhmmZ where dd = day, hh = hours, mm = minutes in UTC time.\n\n $found = 0;\n\n// date_default_timezone_set('UTC');\n\n $month_timestamp = date('m',$this->timestamp);\n $day_timestamp = date('d',$this->timestamp);\n $year_timestamp = date('Y',$this->timestamp);\n $hour_timestamp = date('H',$this->timestamp);\n $min_timestamp = date('i',$this->timestamp);\n\n $current_start_hour = $hour_timestamp;\n $current_start_min = $min_timestamp;\n $current_start_month = $month_timestamp;\n $current_start_year = $year_timestamp;\n\n $current_end_hour = $hour_timestamp;\n $current_end_min = $min_timestamp;\n $current_end_month = $month_timestamp;\n $current_end_year = $year_timestamp;\n// $day_start = $day_timestamp;\n// $day_end = $day_timestamp;\n\n\n//print \"$this->current_group_text\\n\";\n\n if (preg_match('#^FM([0-9]{2})([0-9]{2})([0-9]{2})$#',$this->current_group_text,$pieces)) {\n $this->wxInfo['ITEMS'][$this->tend]['CODE_DATE_RANGE'] = $this->current_group_text;\n\n $get_start_hour = $pieces[2];\n $get_start_minute = $pieces[3];\n $get_start_day = $pieces[1];\n\n $get_end_day = date(\"d\",$this->max_date_end);\n $get_end_hour = date(\"G\",$this->max_date_end);\n $get_end_minute = date(\"i\",$this->max_date_end);\n\n $found = 1;\n $this->current_ptr++;\n } else if (preg_match('#^([0-9]{2})([0-9]{2})([0-9]{2})$#',$this->current_group_text,$pieces)) {\n $this->wxInfo['ITEMS'][$this->tend]['CODE_DATE_RANGE'] = $this->current_group_text;\n\n $get_start_hour = $pieces[2];\n $get_start_minute = $pieces[3];\n $get_start_day = $pieces[1];\n\n $get_end_day = date(\"d\",$this->max_date_end);\n $get_end_hour = date(\"G\",$this->max_date_end);\n\n if ($day_timestamp>$start_day) {\n $current_start_month++;\n if ($current_start_month>12) {\n $current_start_month=1;\n $current_start_year++;\n }\n }\n\n\n $found = 1;\n $this->current_ptr++;\n } else if (preg_match('#^([0-9]{2})([0-9]{2})/([0-9]{2})([0-9]{2})$#',$this->current_group_text,$pieces)) {\n $get_start_day = $pieces[1];\n $get_start_hour = $pieces[2];\n $get_start_minute = 0;\n $get_end_day = $pieces[3];\n $get_end_hour = $pieces[4];\n $get_end_minute = 0;\n\n $this->wxInfo['ITEMS'][$this->tend]['CODE_DATE_RANGE'] = $this->current_group_text;\n\n $found = 1;\n $this->current_ptr++;\n }\n if ($found==1) {\n\n\n// print \"get_start_day: $get_start_day<br>\";\n// print \"get_start_hour: $get_start_hour<br>\";\n// print \"get_end_day: $get_end_day<br>\";\n// print \"get_end_time: $get_end_hour<br>\";\n\n if ($day_timestamp>$get_start_day) {\n $current_start_month++;\n if ($current_start_month>12) {\n $current_start_month=1;\n $current_start_year++;\n }\n }\n\n if ($day_timestamp>$get_end_day) {\n $current_end_month++;\n if ($current_end_month>12) {\n $current_end_month=1;\n $current_end_year++;\n }\n }\n\n if ($get_start_hour==24) {\n $get_start_hour=23;\n $get_start_minute=59;\n }\n\n if ($get_end_hour==24) {\n $get_end_hour=23;\n $get_end_minute=59;\n }\n\n\n $this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_START_TIMESTAMP'] = mktime( $get_start_hour, $get_start_minute, 0, $current_start_month, $get_start_day, $current_start_year);\n $this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_END_TIMESTAMP'] = mktime( $get_end_hour, $get_end_minute, 0, $current_end_month, $get_end_day, $current_end_year);\n\n\n// Calcule la date\n// $timestamp = strtotime($timestamp);\n// $month = date('m',$timestamp);\n// $startday = date('d',$timestamp);\n// $year = date('Y',$timestamp);\n\n// $startday = abs($this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_STARTDAY']-$startday);\n// $endday = abs($this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_ENDDAY']-$startday);\n\n $this->max_date_end = max($this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_END_TIMESTAMP'],$this->max_date_end);\n\n// $this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_START_DATETIME'] = date('Y-m-d H:i:s', $time_start);\n// $this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_END_DATETIME'] = date('Y-m-d H:i:s', $time_end);\n// print \"DATE_RANGE_END_TIMESTAMP: \".$this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_END_TIMESTAMP'].\" DATE_RANGE_END_TEXT: \". date(\"Y-m-d H:i\",$this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_END_TIMESTAMP']).\"\\n\";\n\n//print \"debut: \".$this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_START_TIMESTAMP'].\"\\n\";\n//print \"fin: \".$this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_END_TIMESTAMP'].\"\\n\";\n\n /*\n print \"before \".date('Y-m-d H:i:s',$timestamp ).\"\\n\";\n print \"$day\\n\";\n print \"startday \".$startday.\"\\n\";\n print \"endday \".$endday.\"\\n\";\n print \"result start \".$this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_START_DATETIME'].\"\\n\";\n print \"result end \".$this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_END_DATETIME'].\"\\n\";\n print \"\\n\\n\";\n exit;\n */\n\n\n// $this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_START_DATETIME'] = '0000-01-'.$this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_STARTDAY'].' '.$this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_STARTTIME'].':00';\n//$this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_END_DATETIME'] = '0000-01-'.$this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_ENDDAY'].' '.$this->wxInfo['ITEMS'][$this->tend]['DATE_RANGE_ENDTIME'].':00';\n }\n\n $this->current_group++;\n }", "abstract protected function get_interval();", "function the_date_range($start_dt,$end_dt, $one_day = false){\r\n\t\r\n\t$duration = $start_dt->diff($end_dt);\r\n\t$start = explode(\" \",$start_dt->format('l F j Y g i a'));\r\n\t$end = explode(\" \",$end_dt->format('l F j Y g i a'));\r\n\t\r\n\t//happening at the same time\r\n\tif($start == $end){\r\n\t\treturn array(\r\n\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\"%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2] //day of month\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\teo_is_all_day() ? 'all day' : time_compact_ap_format($start[4],$start[5],$start[6])\r\n\t\t);\r\n\t}\t\r\n\t//happening on the same day\r\n\telseif($start[2] == $end[2] || ($duration->days < 1 && $duration->h < 24)){\r\n\t\t//Monday, March 4; 9:00 p.m.\r\n\t\treturn array(\r\n\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\"%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2] //day of month\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\teo_is_all_day() ? 'all day' : sprintf(\r\n\t\t\t\t\"%s&ndash;%s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\t //formatted date\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n\t//happening in the same month\r\n\t//check if happening all day; if not, return eo_all_day ? : \r\n\telseif($start[1] == $end[1]){\r\n\t\treturn (eo_is_all_day() || $one_day) ? \r\n\t\tsprintf(\r\n\t\t\t\"%s %s&ndash;%s\",\r\n\t\t\t$start[1], //month\r\n\t\t\t$start[2], //day of month\r\n\t\t\t$end[2]\r\n\t\t)\r\n\t\t: \r\n\t\tarray(\r\n\t\t\t\"date\" => sprintf(\r\n\t\t\t\t\"%s %s&ndash;%s\",\r\n\t\t\t\t$start[1],\r\n\t\t\t\t$start[2],\r\n\t\t\t\t$end[2]\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\"datetime\" => sprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t$start[1],\r\n\t\t\t\t$start[2],\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\tsprintf(\r\n\t\t\t\t\"%s&ndash;%s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\t//happening in the same year\r\n\telseif($start[3] == $end[3]){\r\n\t\treturn (eo_is_all_day() || $one_day) ?\r\n\t\t\tsprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2], //day of month\r\n\t\t\t\t$end[0],\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\r\n\t\t\t)\r\n\t\t\t:\r\n\t\t\tarray(\r\n\t\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s %s&ndash;%s %s\",\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"datetime\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s, %s %s&ndash;%s, %s, %s %s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\t\"time\"\t=>\tsprintf(\"%s&ndash;%s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n\t//just plain happening\r\n\r\n\telse{\r\n\t\treturn (eo_is_all_day() || $one_day) ? \r\n\t\t\tsprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2], //day of month\r\n\t\t\t\t$end[0],\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\r\n\t\t\t)\r\n\t\t\t:\r\n\t\t\tarray(\r\n\t\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"datetime\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s, %s %s&ndash;%s, %s, %s %s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\t\"time\"\t=>\tsprintf(\"%s&ndash;%s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n}", "public function getSpan(): int {\n $span = (int) $this->getAttribute('span');\n return $span > 1 ? $span : 1;\n }", "public function sumCountOfReports($dateStart, $dateEnd);", "public function getRange() {\n\n }", "function datePeriod_start_end($begin, $end)\n{\n $begin = new DateTime($begin);\n\n $end = new DateTime($end.' +1 day');\n\n $daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);\n\n foreach ($daterange as $date) {\n $dates[] = $date->format(\"Y-m-d\");\n }\n return $dates;\n}", "function calc_date_range_years($start, $end)\n{\n\t$years = array();\n\t\n\t$start_prts = explode('-', $start);\n\t$end_prts = explode('-', $end);\n\t\n\t$years[] = $start_prts[0];\n\t\n\tfor ($i=$start_prts[0]; $i<$end_prts[0]; $i++)\n\t{\n\t\t$years[] = $i + 1;\n\t}\n\t\n\treturn $years;\n}", "public function getDaysOfEventsTakingDays()\n {\n $dateTimeUtility = new DateTimeUtility();\n\n $eventBegin = $dateTimeUtility->standardizeDateTimeObject($this->getEventBegin());\n $eventEnd = $dateTimeUtility->standardizeDateTimeObject($this->getEventEnd());\n if (!empty($eventEnd) && $eventEnd != $eventBegin) {\n $diff = $eventBegin->diff($eventEnd);\n // Example: 20.01.2013 - 23.01.2013 = 4 days but diff shows 3. So we have to add 1 day here\n return (int) $diff->format('%a') + 1;\n } else {\n return 0;\n }\n }", "function GetDates(DateRange $startingDates);", "public function splitRange($start, $end) {\n \t$series = [];\n \t$ranges = [];\n\n \t// start is the same as min page; make standalone number\n \tif ( intval($start) === $this->_min_page ) {\n \t\t$series[] = $start;\n \t}\n \telse {\n\t\t\t$range = $start . $this->_range_delimiter . strval($this->_min_page);\n\t\t\t$series[] = $this->processRange($range);\n \t}\n\n \t// end only one more than min_page; make standalone number after stepping\n \tif ( intval($end) - $this->_min_page === 1 ) {\n \t\t$series[] = $this->step($end);\n \t}\n \telse {\n\t\t\t$range = strval($this->_min_page + 1). $this->_range_delimiter . $end;\n\t\t\t$series[] = $this->processRange($range);\n \t}\n\n \treturn implode($this->_series_delimiter, $series);\n }", "function xstats_getDateDiff( $dateStart, $dateEnd) {\n $dateDiff = $dateEnd - $dateStart;\n $fullDays = floor($dateDiff/(60*60*24));\n $fullHours = floor(($dateDiff-($fullDays*60*60*24))/(60*60));\n $fullMinutes = floor(($dateDiff-($fullDays*60*60*24)-($fullHours*60*60))/60);\n $displayStr = \"\";\n if( $fullDays > 1 ) {\n $displayStr .= $fullDays.' Tage ';\n }else if( $fullDays > 0 ) {\n $displayStr .= $fullDays.' Tag ';\n }\n if( $fullHours > 1 ) {\n $displayStr .= $fullHours.' Stunden ';\n }else if( $fullHours > 0 ) {\n $displayStr .= $fullHours.' Stunde ';\n }\n if( $fullMinutes > 1 ) {\n $displayStr .= $fullMinutes.' Minuten ';\n }else if( $fullMinutes > 0 ) {\n $displayStr .= $fullMinutes.' Minute ';\n }\n if( $displayStr == \"\"){\n $displayStr = \"< 1 Minute\";\n }\n return( $displayStr );\n}", "function countTotalRegisteredUsersInBetween($startDate, $endDate, $limit = 0, $offsetStart = 0, $offsetEnd = 0)\n {\n\n // define all the global variables\n global $database, $message, $settings, $user;\n\n // check if current user has the required permission\n if (!$user->hasPermission(\"analytics_countRegisteredUsersInBetween\")) {\n $message->setError(\"You don't have the permission to perform this action\", Message::Error);\n return false;\n }\n\n // check if any limits are set\n if ($limit != 0) {\n $limitArgs = \" LIMIT \" . $limit;\n } else {\n $limitArgs = \"\";\n }\n\n // check if any offsets has been used\n if ($offsetEnd != 0 && $offsetEnd >= $offsetStart) {\n $limitArgs = \" LIMIT \" . $offsetStart . \",\" . $offsetEnd;\n }\n\n // call the database and get the results back\n $sql = \"SELECT * FROM \" . TBL_USERS . \" WHERE\n \" . TBL_USERS_DATE_JOINED . \" >= '$startDate' AND \n \" . TBL_USERS_DATE_JOINED . \" <= '$endDate'\" . $limitArgs;\n\n // get the sql results\n $result = $database->getQueryResults($sql);\n if ($database->anyError()) {\n return false;\n }\n\n $row = $database->getQueryNumRows($result, true);\n\n\n return $row;\n }", "public function reportsInPeriodScope($dateStart, $dateEnd);", "public function ranges()\n {\n return [\n 6 => '6 Months',\n 12 => '12 Months',\n ];\n }", "private function drawDateTimeIntervals() {\n\t\t$interval['sub'] = $this->grid['horizontal']['sub']['interval'];\n\t\t$interval['main'] = $this->grid['horizontal']['main']['interval'];\n\n\t\t// Sub interval title size.\n\t\t$element_size = imageTextSize(7, 90, 'WWW');\n\n\t\t$position = 0;\n\t\t$dt = [];\n\t\t$modifier = [];\n\t\t$format = [];\n\n\t\tforeach (['main', 'sub'] as $type) {\n\t\t\t$dt[$type] = new DateTime();\n\t\t\t$dt[$type]->setTimestamp($this->stime);\n\n\t\t\tif ($interval[$type] >= SEC_PER_YEAR) {\n\t\t\t\t$years = $interval[$type] / SEC_PER_YEAR;\n\t\t\t\t$year = (int) $dt[$type]->format('Y');\n\t\t\t\t$dt[$type]->modify('first day of January this year 00:00:00 -'.($year % $years).' year');\n\t\t\t\t$modifier[$type] = '+ '.$years.' year';\n\t\t\t\t$format[$type] = _x('Y', DATE_FORMAT_CONTEXT);\n\t\t\t}\n\t\t\telseif ($interval[$type] >= SEC_PER_MONTH) {\n\t\t\t\t$months = $interval[$type] / SEC_PER_MONTH;\n\t\t\t\t$month = (int) $dt[$type]->format('m');\n\t\t\t\t$dt[$type]->modify('first day of this month 00:00:00 -'.(($month - 1) % $months).' month');\n\t\t\t\t$modifier[$type] = '+ '.$months.' month';\n\t\t\t\t$format[$type] = ($type == 'main') ? _('m-d') : _('M');\n\t\t\t}\n\t\t\telseif ($interval[$type] >= SEC_PER_WEEK) {\n\t\t\t\t$weeks = $interval[$type] / SEC_PER_WEEK;\n\t\t\t\t$week = (int) $dt[$type]->format('W');\n\t\t\t\t$day_of_week = (int) $dt[$type]->format('w');\n\t\t\t\t$dt[$type]->modify('today -'.(($week - 1) % $weeks).' week -'.$day_of_week.' day');\n\t\t\t\t$modifier[$type] = '+ '.$weeks.' week';\n\t\t\t\t$format[$type] = _('m-d');\n\t\t\t}\n\t\t\telseif ($interval[$type] >= SEC_PER_DAY) {\n\t\t\t\t$days = $interval[$type] / SEC_PER_DAY;\n\t\t\t\t$day = (int) $dt[$type]->format('d');\n\t\t\t\t$dt[$type]->modify('today -'.(($day - 1) % $days).' day');\n\t\t\t\t$modifier[$type] = '+ '.$days.' day';\n\t\t\t\t$format[$type] = _('m-d');\n\t\t\t}\n\t\t\telseif ($interval[$type] >= SEC_PER_HOUR) {\n\t\t\t\t$hours = $interval[$type] / SEC_PER_HOUR;\n\t\t\t\t$hour = (int) $dt[$type]->format('H');\n\t\t\t\t$minute = (int) $dt[$type]->format('i');\n\t\t\t\t$second = (int) $dt[$type]->format('s');\n\t\t\t\t$dt[$type]->modify('-'.($hour % $hours).' hour -'.$minute.' minute -'.$second.' second');\n\t\t\t\t$modifier[$type] = '+ '.$hours.' hour';\n\t\t\t\t$format[$type] = TIME_FORMAT;\n\t\t\t}\n\t\t\telseif ($interval[$type] >= SEC_PER_MIN) {\n\t\t\t\t$minutes = $interval[$type] / SEC_PER_MIN;\n\t\t\t\t$minute = (int) $dt[$type]->format('i');\n\t\t\t\t$second = (int) $dt[$type]->format('s');\n\t\t\t\t$dt[$type]->modify('-'.($minute % $minutes).' minute -'.$second.' second');\n\t\t\t\t$modifier[$type] = '+ '.$minutes.' min';\n\t\t\t\t$format[$type] = ($type == 'main') ? _('H:i:s') : TIME_FORMAT;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$seconds = $interval[$type];\n\t\t\t\t$second = (int) $dt[$type]->format('s');\n\t\t\t\t$dt[$type]->modify('-'.($second % $seconds).' second');\n\t\t\t\t$modifier[$type] = '+ '.$seconds.' second';\n\t\t\t\t$format[$type] = _('H:i:s');\n\t\t\t}\n\t\t}\n\n\t\t// It is necessary to align the X axis after the jump from winter to summer time.\n\t\t$prev_dst = (bool) $dt['sub']->format('I');\n\t\t$dst_offset = $dt['sub']->getOffset();\n\t\t$do_align = false;\n\n\t\t$prev_time = $this->stime;\n\t\tif ($interval['main'] == SEC_PER_MONTH) {\n\t\t\t$dt_start = new DateTime();\n\t\t\t$dt_start->setTimestamp($this->stime);\n\t\t\t$prev_month = (int) $dt_start->format('m');\n\t\t}\n\n\t\twhile (true) {\n\t\t\t$dt['sub']->modify($modifier['sub']);\n\n\t\t\tif (SEC_PER_HOUR < $interval['sub'] && $interval['sub'] < SEC_PER_DAY) {\n\t\t\t\tif ($do_align) {\n\t\t\t\t\t$hours = $interval['sub'] / SEC_PER_HOUR;\n\t\t\t\t\t$hour = (int) $dt['sub']->format('H');\n\t\t\t\t\tif ($hour % $hours) {\n\t\t\t\t\t\t$dt['sub']->modify($dst_offset.' second');\n\t\t\t\t\t}\n\n\t\t\t\t\t$do_align = false;\n\t\t\t\t}\n\n\t\t\t\t$dst = (bool) $dt['sub']->format('I');\n\n\t\t\t\tif ($dst && $prev_dst != $dst) {\n\t\t\t\t\t$dst_offset -= $dt['sub']->getOffset();\n\t\t\t\t\t$do_align = $interval['sub'] > abs($dst_offset);\n\t\t\t\t\t$prev_dst = $dst;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($dt['main'] < $dt['sub']) {\n\t\t\t\t$dt['main']->modify($modifier['main']);\n\t\t\t}\n\n\t\t\tif ($interval['main'] == SEC_PER_MONTH) {\n\t\t\t\t$month = (int) $dt['sub']->format('m');\n\n\t\t\t\t$draw_main = ($month != $prev_month);\n\t\t\t\t$prev_month = $month;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$draw_main = ($dt['main'] == $dt['sub']);\n\t\t\t}\n\t\t\t$time = $dt['sub']->format('U');\n\n\t\t\t$delta_x = bcsub($time, $prev_time) * $this->sizeX / $this->period;\n\t\t\t$position += $delta_x;\n\n\t\t\t// First element overlaping check.\n\t\t\tif ($prev_time != $this->stime || $delta_x > $element_size['width']) {\n\t\t\t\t// Last element overlaping check.\n\t\t\t\tif ($position > $this->sizeX - $element_size['width']) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif ($draw_main) {\n\t\t\t\t\t$this->drawMainPeriod($dt['sub']->format($format['main']), $position);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$this->drawSubPeriod($dt['sub']->format($format['sub']), $position);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$prev_time = $time;\n\t\t}\n\t}", "public function getGranularity($startDate, $endDate) {\n $start = Carbon::createFromFormat('Y-m-d H:i:s', $startDate);\n $end = Carbon::createFromFormat('Y-m-d H:i:s', $endDate);\n $diff = $start->diffInDays($end)+1;\n\n if($diff > 30) {\n $granularity = 'month';\n } else {\n $granularity = 'day';\n }\n return $granularity;\n }", "public function getGranularity($startDate, $endDate) {\n $start = Carbon::createFromFormat('Y-m-d H:i:s', $startDate);\n $end = Carbon::createFromFormat('Y-m-d H:i:s', $endDate);\n $diff = $start->diffInDays($end)+1;\n\n if($diff > 30) {\n $granularity = 'month';\n } else {\n $granularity = 'day';\n }\n return $granularity;\n }", "public function wednesdays()\n {\n return $this->days(3);\n }", "public function ranges(): array\n {\n return [\n 7 => __(':days Days', ['days' => 7]),\n 14 => __(':days Days', ['days' => 14]),\n 30 => __(':days Days', ['days' => 30]),\n ];\n }", "function _date_diff($start, $end){\n $end = $end ? $end : date();\n \n $start = ($start instanceof DateTime) ? $start->format('Y-m-d H:i:s') : $start;\n $end = ($end instanceof DateTime) ? $end->format('Y-m-d H:i:s') : $end;\n \n $inv = $start > $end;\n $max = max($start, $end);\n $start = min($start, $end);\n $end = $max;\n \n $diff = strtotime($end) - strtotime($start);\n \n $interval = array();\n \n $interval['y'] = substr($end,0,4) - substr($start,0,4);\n $interval['m'] = substr($end,5,2) - substr($start,5,2);\n $interval['d'] = substr($end,8,2) - substr($start,8,2);\n $interval['h'] = substr($end,11,2) - substr($start,11,2);\n $interval['i'] = substr($end,14,2) - substr($start,14,2);\n $interval['s'] = substr($end,17,2) - substr($start,17,2);\n $interval['invert'] = $inv;\n \n // 1. При переходе с летнего времени на зимнее и наоборот возможны чудеса\n // 2. PHP5.3.2 вылетает с Fatal error при попытке изменить поле DateInterval::days\n // $interval['days'] = floor((strtotime($end) - strtotime($start)) / 86400);\n \n _date_diff_normalize($interval, substr($start,0,4), substr($start,5,2));\n \n $result = new DateInterval('P0Y');\n foreach ($interval as $key => $value){\n $result->{$key} = $value;\n }\n \n return $result;\n}", "public function getInterval()\n {\n return $this->getStartDate()->diff($this->getEndDate())->d;\n }", "function getWorkingDays($startDate, $endDate, $holidays) {\r\n\r\n // do strtotime calculations just once\r\n $endDate = strtotime($endDate);\r\n $startDate = strtotime($startDate);\r\n\r\n\r\n //The total number of days between the two dates. We compute the no. of seconds and divide it to 60*60*24\r\n //We add one to inlude both dates in the interval.\r\n $days = ($endDate - $startDate) / 86400;\r\n\r\n $no_full_weeks = floor($days / 7);\r\n $no_remaining_days = fmod($days, 7);\r\n\r\n //It will return 1 if it's Monday,.. ,7 for Sunday\r\n $the_first_day_of_week = date(\"N\", $startDate);\r\n $the_last_day_of_week = date(\"N\", $endDate);\r\n\r\n //---->The two can be equal in leap years when february has 29 days, the equal sign is added here\r\n //In the first case the whole interval is within a week, in the second case the interval falls in two weeks.\r\n if ($the_first_day_of_week <= $the_last_day_of_week) {\r\n if ($the_first_day_of_week <= 6 && 6 <= $the_last_day_of_week)\r\n $no_remaining_days--;\r\n if ($the_first_day_of_week <= 7 && 7 <= $the_last_day_of_week)\r\n $no_remaining_days--;\r\n }\r\n else {\r\n // (edit by Tokes to fix an edge case where the start day was a Sunday\r\n // and the end day was NOT a Saturday)\r\n // the day of the week for start is later than the day of the week for end\r\n if ($the_first_day_of_week == 7) {\r\n // if the start date is a Sunday, then we definitely subtract 1 day\r\n $no_remaining_days--;\r\n\r\n if ($the_last_day_of_week == 6) {\r\n // if the end date is a Saturday, then we subtract another day\r\n $no_remaining_days--;\r\n }\r\n } else {\r\n // the start date was a Saturday (or earlier), and the end date was (Mon..Fri)\r\n // so we skip an entire weekend and subtract 2 days\r\n $no_remaining_days -= 2;\r\n }\r\n }\r\n\r\n //The no. of business days is: (number of weeks between the two dates) * (5 working days) + the remainder\r\n//---->february in none leap years gave a remainder of 0 but still calculated weekends between first and last day, this is one way to fix it\r\n $workingDays = $no_full_weeks * 5;\r\n if ($no_remaining_days > 0) {\r\n $workingDays += $no_remaining_days;\r\n }\r\n\r\n //We subtract the holidays\r\n foreach ($holidays as $holiday) {\r\n $time_stamp = strtotime($holiday);\r\n //If the holiday doesn't fall in weekend\r\n if ($startDate <= $time_stamp && $time_stamp <= $endDate && date(\"N\", $time_stamp) != 6 && date(\"N\", $time_stamp) != 7)\r\n $workingDays--;\r\n }\r\n\r\n if ($workingDays < 0) {\r\n $workingDays = .01;\r\n }\r\n return $workingDays;\r\n\r\n\r\n ////Example:\r\n//\r\n//$holidays=array(\"2008-12-25\",\"2008-12-26\",\"2009-01-01\");\r\n//\r\n//echo getWorkingDays(\"2008-12-22\",\"2009-01-02\",$holidays)\r\n//// => will return 7\r\n//\r\n}", "function dateDiffInDays($startDate,$endDate,$holidays = array(\"2019-01-26\",\"2019-08-15\",\"2019-10-02\")){\r\n $endDate = strtotime($endDate);\r\n $startDate = strtotime($startDate);\r\n //The total number of days between the two dates. We compute the no. of seconds and divide it to 60*60*24\r\n //We add one to inlude both dates in the interval.\r\n $days = ($endDate - $startDate) / 86400 + 1;\r\n $no_full_weeks = floor($days / 7);\r\n $no_remaining_days = fmod($days, 7);\r\n //It will return 1 if it's Monday,.. ,7 for Sunday\r\n $the_first_day_of_week = date(\"N\", $startDate);\r\n $the_last_day_of_week = date(\"N\", $endDate);\r\n //---->The two can be equal in leap years when february has 29 days, the equal sign is added here\r\n //In the first case the whole interval is within a week, in the second case the interval falls in two weeks.\r\n if ($the_first_day_of_week <= $the_last_day_of_week) {\r\n if ($the_first_day_of_week <= 6 && 6 <= $the_last_day_of_week) $no_remaining_days--;\r\n if ($the_first_day_of_week <= 7 && 7 <= $the_last_day_of_week) $no_remaining_days--;\r\n }\r\n else {\r\n // (edit by Tokes to fix an edge case where the start day was a Sunday\r\n // and the end day was NOT a Saturday)\r\n // the day of the week for start is later than the day of the week for end\r\n if ($the_first_day_of_week == 7) {\r\n // if the start date is a Sunday, then we definitely subtract 1 day\r\n $no_remaining_days--;\r\n if ($the_last_day_of_week == 6) {\r\n // if the end date is a Saturday, then we subtract another day\r\n $no_remaining_days--;\r\n }\r\n }\r\n else {\r\n // the start date was a Saturday (or earlier), and the end date was (Mon..Fri)\r\n // so we skip an entire weekend and subtract 2 days\r\n $no_remaining_days -= 2;\r\n }\r\n }\r\n //The no. of business days is: (number of weeks between the two dates) * (5 working days) + the remainder\r\n//---->february in none leap years gave a remainder of 0 but still calculated weekends between first and last day, this is one way to fix it\r\n $workingDays = $no_full_weeks * 5;\r\n if ($no_remaining_days > 0 )\r\n {\r\n $workingDays += $no_remaining_days;\r\n }\r\n //We subtract the holidays\r\n foreach($holidays as $holiday){\r\n $time_stamp=strtotime($holiday);\r\n //If the holiday doesn't fall in weekend\r\n if ($startDate <= $time_stamp && $time_stamp <= $endDate && date(\"N\",$time_stamp) != 6 && date(\"N\",$time_stamp) != 7)\r\n $workingDays--;\r\n }\r\n return $workingDays;\r\n}", "public function calculateNumberOfDays(){\n list($startYear,$startMonth,$startDay) = explode(\"-\", $this->startDate);\n list($endYear,$endMonth,$endDay) = explode(\"-\", $this->endDate);\n\n //calculate days in years\n $noOfYears = ($startYear-$endYear);\n $yYearsdays = $noOfYears * 365;\n\n //calculate days in months\n $noOfMonths= ($startMonth-$endMonth);\n $noOfMonths= str_replace(\"-\",\"\", $noOfMonths);\n $dMonthsDays = $noOfMonths * 30;\n\n //calculate days\n $noOfDays= $startDay-$endDay;\n $noOfDays= str_replace(\"-\",\"\", $noOfDays);\n\n //add additional days from all months\n $months = array(31,28,31,30,31,30,31,31,30,31,30,31);\n $additionalMonthDays=0;\n for($m=0; $m <= $noOfMonths; $m++){\n $additionalMonthDays += ($months[$m]-30);\n }\n\n //add days from leap years\n $addLeapDaysInYear = 0;\n for($y=0; $y <= $noOfYears; $y++){\n $findYear = ($startYear-$y);\n $addLeapDaysInYear += $this->findLeapYear($findYear);\n }\n \n //add all days\n $total_days = $yYearsdays + $dMonthsDays + $noOfDays + $additionalMonthDays + $addLeapDaysInYear;\n \n return floor($total_days);\n }", "function fechas($start, $end) {\n\t\t$range = array();\n\t\n\t\tif (is_string($start) === true) $start = strtotime($start);\n\t\tif (is_string($end) === true ) $end = strtotime($end);\n\t\n\t\tif ($start > $end) return createDateRangeArray($end, $start);\n\t\n\t\tdo {\n\t\t\t$range[] = date('Y-m-d', $start);\n\t\t\t$start = strtotime(\"+ 1 day\", $start);\n\t\t} while($start <= $end);\n\t\n\t\treturn $range;\n\t}", "public function daterange_getholidays($start = false, $end = false, $limit = null)\n {\n $return = array();\n $mode = 0;\n if (!$start && !$end) {\n $query = 'SELECT `hid`, `hname`,`hdate` FROM '.$this->Tbl['cal_holiday'].' WHERE `uid` IN (0,'.$this->uid.') ORDER BY `hdate`ASC';\n if (is_array($limit)) {\n $query .= ' LIMIT '.doubleval($limit[0]).','.doubleval($limit[1]);\n } elseif (!is_null($limit) && 0 < $limit) {\n $query .= ' LIMIT '.doubleval($limit);\n }\n $mode = 1;\n } elseif (!$end) {\n $query = 'SELECT `hname`, `hdate` FROM '.$this->Tbl['cal_holiday'].' WHERE `uid` IN (0,'.$this->uid.') AND `hdate`=\"'.$this->esc($start).'\"';\n } else {\n $query = 'SELECT `hname`, `hdate` FROM '.$this->Tbl['cal_holiday']\n .' WHERE `uid` IN (0,'.$this->uid.') AND `hdate`>=\"'.$this->esc($start).'\" AND `hdate`<=\"'.$this->esc($end).'\"';\n }\n $res = $this->query($query);\n while ($line = $this->assoc($res)) {\n if (1 == $mode) {\n $return[$line['hid']] = array($line['hdate'], $line['hname']);\n } else {\n $return[$line['hdate']] = $line['hname'];\n }\n }\n return $return;\n }", "public function getMaxNights()\n {\n return isset($this->max_nights) ? $this->max_nights : 0;\n }", "function getTotalDays();", "public function getRange(int $start, int $stop, string $blocking = '')\n {\n $bookingStart = '' != $blocking ? $start - ($blocking * 86400) : $start;\n $bookingStop = '' != $blocking ? $stop + ($blocking * 86400) : $stop;\n\n return range($bookingStart, $bookingStop, 86400);\n }", "public function getSpan()\n {\n return $this->Span;\n }", "function get_days($startdate,$enddate){\r\n $begin = new DateTime(date(\"Y-m-d\", strtotime($startdate)));\r\n $end = new DateTime(date(\"Y-m-d\", strtotime($enddate)));\r\n\r\n $daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);\r\n\r\n foreach($daterange as $date){\r\n $adays[] =$date->format(\"Y-m-d\");\r\n }\r\n $adays[] =date(\"Y-m-d\", strtotime($enddate)) ;\r\n return $adays; \r\n }", "public function getRange(): string;", "function countTotalLoggedUsersInBetween($startDate, $endDate, $limit = 0, $offsetStart = 0, $offsetEnd = 0)\n {\n\n // define all the global variables\n global $database, $message, $settings, $user;\n\n // check if current user has the required permission\n if (!$user->hasPermission(\"analytics_countLoggedUsersInBetween\")) {\n $message->setError(\"You don't have the permission to perform this action\", Message::Error);\n return false;\n }\n\n // check if any limits are set\n if ($limit != 0) {\n $limitArgs = \" LIMIT \" . $limit;\n } else {\n $limitArgs = \"\";\n }\n\n // check if any offsets has been used\n if ($offsetEnd != 0 && $offsetEnd >= $offsetStart) {\n $limitArgs = \" LIMIT \" . $offsetStart . \",\" . $offsetEnd;\n }\n\n // call the database and get the results back\n $sql = \"SELECT * FROM \" . TBL_USERS . \" WHERE\n \" . TBL_USERS_LAST_LOGIN . \" >= '$startDate' AND \n \" . TBL_USERS_LAST_LOGIN . \" <= '$endDate'\" . $limitArgs;\n\n // get the sql results\n if (!$result = $database->getQueryResults($sql)) {\n return false;\n }\n\n return $database->getQueryNumRows($result, true);\n }", "public function getMinNights()\n {\n return isset($this->min_nights) ? $this->min_nights : 0;\n }", "protected function getrowspan(){\n\t\t$y_points=$this->GTemp->struct->YPoints;\n\t\treturn array_search($this->y2, $y_points)-array_search($this->y1, $y_points);\n\t}", "function tideways_span_timer_start($span)\n{\n}", "static public function getWebinarStatistics( DateTime $start, DateTime $end ) {\n $loc = __CLASS__ . '::' . __FUNCTION__;\n error_log($loc);\n error_log( print_r( $start, true ) );\n error_log( print_r( $end, true ) );\n \n global $wpdb;\n $sql = \"SELECT u.display_name as username\n , m.meta_key\n , m.meta_value as val\n FROM {$wpdb->prefix}usermeta m\n INNER JOIN {$wpdb->prefix}users u on u.ID = m.user_id\n where meta_key = '%s' \";\n $query = $wpdb->prepare( $sql, RecordUserWebinarProgress::META_KEY );\n $result = $wpdb->get_results( $query, ARRAY_A );\n\n $retval = array();\n foreach( Webinar::getWebinarDefinitions() as $webinar ) {\n $retval[$webinar['name']] = [RecordUserWebinarProgress::PENDING=>0\n ,RecordUserWebinarProgress::COMPLETED=>0];\n } \n // error_log(\"Webinar Definitions:\");\n // error_log( print_r($retval, true) ); \n // error_log(\"Query results:\");\n // error_log( print_r($result, true) ); \n\n error_log(\"Each query result:\");\n $ctr = 0;\n foreach( $result as $meta ) {\n ++$ctr;\n $webinars = maybe_unserialize( $meta['val'] );\n error_log( \"Meta value #{$ctr}:\" );\n error_log( print_r( $webinars, true ) );\n\n if( !is_array( $webinars ) ) continue;\n\n foreach( $webinars as $webinar ) {\n error_log( \"Webinar:\" );\n error_log( print_r( $webinar, true ) );\n $strStartDate = @$webinar['startDate'] ? $webinar['startDate'] : '1970-01-01';\n $strEndDate = @$webinar['endDate'] ? $webinar['endDate'] : $strStartDate;\n \n $webinarStartDate = DateTime::createFromFormat('Y-m-d', $strStartDate );\n if( false === $webinarStartDate ) {\n $webinarStartDate = DateTime::createFromFormat('d-m-Y', $strStartDate);\n if( false === $webinarStartDate ) {\n error_log( DateTime::getLastErrors(), \"Error processing start date\" );\n $webinarStartDate = DateTime::createFromFormat( 'Y-m-d', '1970-01-01');\n }\n }\n \n $webinarEndDate = DateTime::createFromFormat('Y-m-d', $strEndDate );\n if( false === $webinarEndDate ) {\n $webinarEndDate = DateTime::createFromFormat('d-m-Y', $strEndDate);\n if( false === $webinarEndDate ) {\n error_log( DateTime::getLastErrors(), \"Error processing end date\" );\n $webinarEndDate = $webinarStartDate;\n }\n }\n\n $showStart = $webinarStartDate->format('Y-m-d');\n $showEnd = $webinarEndDate->format('Y-m-d');\n error_log(\"Webinar start: {$showStart} end: {$showEnd}\");\n \n if( $webinarStartDate < $start || $webinarStartDate > $end ) continue;\n \n $status = @$webinar['status'] ? $webinar['status'] : RecordUserWebinarProgress::PENDING;\n switch( $status ) {\n case RecordUserWebinarProgress::COMPLETED:\n $retval[$webinar['name']][RecordUserWebinarProgress::COMPLETED]++;\n break;\n default:\n $retval[$webinar['name']][RecordUserWebinarProgress::PENDING]++;\n break;\n }\n }\n }\n error_log(\"Webinar Stats\");\n error_log( print_r( $retval, true ) );\n\n\t\treturn $retval;\n }", "public static function getStatisticFor($start, $end)\n {\n $incomeStats = Invoice::find_by_sql(\"SELECT \n SUBSTR(paid_date, 1, 7) as paid_date, \n SUM(`sum`) AS summary\n FROM\n ((SELECT \n paid_date AS `paid_date`, \n SUM(`sum`) AS `sum`\n FROM\n invoices\n WHERE\n `status` = 'Paid'\n AND \n `paid` = '0'\n AND \n `estimate` != 1\n AND \n paid_date BETWEEN '$start' AND '$end'\n GROUP BY \n SUBSTR(`paid_date`, 1, 7), paid_date \n ) \n UNION ALL (SELECT \n SUBSTR(T3.`date`, 1, 7) AS `paid_date`, \n SUM(T3.`amount`) AS `sum`\n FROM\n invoice_has_payments AS T3\n JOIN\n invoices AS T4\n ON \n T3.invoice_id = T4.id \n WHERE \n (T4.`status` = 'PartiallyPaid' OR (T4.`status` = 'Paid' AND T4.`paid` != '0'))\n AND \n T3.`date` BETWEEN '$start' AND '$end' \n GROUP BY \n SUBSTR(T3.`date`, 1, 7)\n ) )t1 \n GROUP BY \n SUBSTR(paid_date, 1, 7)\n \");\n\n return $incomeStats;\n }", "function compute_date_diff($start, $end)\n{\n $date1 = new DateTime($start->format(\"Y-m-d\"));\n $date2 = new DateTime($end->format(\"Y-m-d\"));\n\n $interval = $date1->diff($date2);\n\n $day1 = intval($date1->format(\"d\"));\n $day2 = intval($date2->format(\"d\"));\n if ($day1 <= 28 || $day1 <= $day2)\n {\n return $interval;\n }\n\n $year1 = intval($date1->format(\"Y\"));\n $month1 = intval($date1->format(\"m\"));\n\n $year2 = intval($date2->format(\"Y\"));\n $month2 = intval($date2->format(\"m\"));\n\n $date3 = $date2->add(new DateInterval('P1D'));\n $month3 = intval($date3->format(\"m\"));\n if ($month2 != $month3)\n {\n $interval->d = 0;\n if ($interval->m == 11)\n {\n $interval->m = 0;\n $interval->y = $interval->y + 1;\n }\n else\n {\n $interval->m = $interval->m + 1;\n }\n return $interval;\n }\n\n $interval->d = $day2;\n $interval->m = $month2 - $month1 - 1;\n if ($interval->m < 0)\n {\n $interval->y = $year2 - $year1 - 1;\n $interval->m = $interval->m + 12;\n }\n return $interval;\n}", "public function numberSundays($m1,$y1,$m2,$y2)\n {\n if ($y2 < $y1)\n {\n throw new Exception('Years out of order; y1='.$y1.\"; y2=\".$y2); \n }\n \n $numSundays = 0;\n for ($y=$y1; $y<=$y2; $y++)\n {\n if ($y1==$y2)\n {\n $m_min = $m1;\n $m_max = $m2; \n }\n if (($y2 > $y1) && ($y==$y1))\n {\n $m_min = $m1;\n $m_max = 12;\n }\n if (($y2 > $y1) && ($y > $y1) && ($y < $y2))\n {\n $m_min = 1;\n $m_max = 12;\n }\n if (($y2 > $y1) && ($y == $y2))\n {\n $m_min = 1;\n $m_max = $m2;\n } \n for ($m=$m_min; $m<=$m_max; $m++)\n {\n $numDays = $this->days1900ToDate($m, 1, $y);\n if ($numDays%7 == 0)\n {\n // Falls on Sunday\n echo 'year='.$y.'; month='.$m.\"\\n\";\n echo 'numDays='.$numDays.\"\\n\";\n $numSundays++;\n \n }\n }\n }\n return $numSundays;\n }", "function getWorkingDays($startDate,$endDate,$holidays){\n //We add one to inlude both dates in the interval.\n if($startDate!=NULL && $endDate!=NULL){\n $days = ($endDate->getTimestamp() - $startDate->getTimestamp()) / 86400 + 1;\n $no_full_weeks = floor($days / 7);\n $no_remaining_days = fmod($days, 7);\n //It will return 1 if it's Monday,.. ,7 for Sunday\n $the_first_day_of_week = date(\"N\",$startDate->getTimestamp());\n $the_last_day_of_week = date(\"N\",$endDate->getTimestamp());\n\n // echo $the_last_day_of_week;\n\n //---->The two can be equal in leap years when february has 29 days, the equal sign is added here\n\n //In the first case the whole interval is within a week, in the second case the interval falls in two weeks.\n\n if ($the_first_day_of_week <= $the_last_day_of_week){\n\n if ($the_first_day_of_week <= 6 && 6 <= $the_last_day_of_week) $no_remaining_days--;\n\n if ($the_first_day_of_week <= 7 && 7 <= $the_last_day_of_week) $no_remaining_days--;\n\n }\n else{\n\n if ($the_first_day_of_week <= 6) {\n\n //In the case when the interval falls in two weeks, there will be a Sunday for sure\n\n $no_remaining_days--;\n\n }\n\n }\n //The no. of business days is: (number of weeks between the two dates) * (5 working days) + the remainder\n\n//---->february in none leap years gave a remainder of 0 but still calculated weekends between first and last day, this is one way to fix it\n\n $workingDays = $no_full_weeks * 5;\n\n if ($no_remaining_days > 0 )\n\n {\n\n $workingDays += $no_remaining_days;\n\n }\n //We subtract the holidays\n\n/* foreach($holidays as $holiday){\n\n $time_stamp=strtotime($holiday);\n\n //If the holiday doesn't fall in weeken\n\n if (strtotime($startDate) <= $time_stamp && $time_stamp <= strtotime($endDate) && date(\"N\",$time_stamp) != 6 && date(\"N\",$time_stamp) != 7)\n\n $workingDays--;\n\n }*/\n return round ($workingDays-1);\n }\nreturn NULL;\n}", "public function getRangeUnit(): string;", "function erp_get_dates_in_range($first, $last, $step = '+1 day', $output_format = 'Y-m-d' ) {\n\n $dates = array();\n $current = strtotime($first);\n $last = strtotime($last);\n\n while( $current <= $last ) {\n\n $dates[] = date($output_format, $current);\n $current = strtotime($step, $current);\n }\n\n return $dates;\n}", "public function getDateDiffWeeks($startDate, $endDate) {\n $interval = $startDate->diff($endDate);\n $diff = floor(($interval->days) / 7);\n\n $today = new DateTime();\n\n if ($startDate > $today) {\n //$this->emDebug($startDate, \"NOT YET STARTED RETURN NULL\");\n return null;\n }\n\n //if sunday, add 1\n $day_of_week = $startDate->format('w');\n\n //if starts on a sunday, add 1\n if ($day_of_week=='0') {\n $diff = $diff + 1;\n }\n\n //$this->emDebug($diff, $startDate, \"START DATE\");\n //if it hasn't been a week yet, call it 1\n if ($diff == 0) {\n $diff = 1;\n }\n return $diff;\n }", "function getDifference($date1 ,$date2 , $in ='d'){\n \t$diff = abs(strtotime($date2) - strtotime($date1));\n \t$years = floor($diff / (365*60*60*24));\n\t$months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24));\n\t$days = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24));\n\t$hours = floor($diff / 60 / 60);\n\t$minites = floor($diff / 60 );\n\t\n\tswitch($in){\n \t\tcase 'd':\n \t\t\t$op_days = $years*365 + $months*30 + $days; \n\t\t\treturn $op_days ;\n \t\t\t/* Return No of Days Between Two Days*/\n\t\tbreak;\n\t\t\n\t\tcase 'h':\n \t\t\t$hours = $hours % 24;\n\t\t\t\n\t\t\tif($minites!=0){\n\t\t\t\treturn $hours +1;\n\t\t\t}\n\t\t\treturn $hours ;\n\t\t/* Return No of Hours After Day */\n\t\tbreak;\n\t}\n \t\n\tif($years){\n\t\treturn $years.\" years \" ;\n\t}\n\telseif($months){\n\t\treturn $months.\" months \"; \n\t}\n\telseif($days){\n\t\treturn $days.\" days \";\n\t}\n\telseif($hours){\n\t\treturn $hours.\" hours \";\n\t}\n\telse{\n\t\treturn $minites.\" minites \";\n\t} \n\t//printf(\"%d years, %d months, %d days\\n\", $years, $months, $days);\n}", "function get_counts( $results, $start, $end ) {\n $count = 0;\n\n foreach ( $results as $result ) {\n if ( $result['facet_value'] >= $start ) {\n if ( is_null( $end ) || $result['facet_value'] <= $end ) {\n $count += 1;\n }\n }\n }\n\n return $count;\n }", "public function getSpan(){\n return $this->_colspan;\n }", "function test_range() {\n\t\t// Check range\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2018, 1 );\n\t\t$this->assertEquals( '2018-01-01 00:00:00', $start );\n\t\t$this->assertEquals( '2018-01-31 23:59:59', $end );\n\t\t// Check leap year\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2004, 2 );\n\t\t$this->assertEquals( '2004-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '2004-02-29 23:59:59', $end );\n\t\t// Check exceptional leap year.\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 1900, 2 );\n\t\t$this->assertEquals( '1900-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '1900-02-28 23:59:59', $end );\n\t}", "public function getTotalWeekdays(Carbon $start, Carbon $end): int\n {\n //If start and end dates are the same\n if($start->eq($end)){\n return $start->isWeekday() ? 1 : 0;\n }\n\n return $start->diffInDaysFiltered(function(Carbon $date) {\n return !$date->isWeekend();\n }, $end);\n }", "public function sumScoreOfDefects($dateStart, $dateEnd);", "function calculate_graph_timeperiod($view, $start, $end)\n{\n $pnp_views = perfdata_pnp_views();\n $pnp_stamps = perfdata_pnp_timestamps();\n $timeperiod = \"\";\n \n // calculate all possible combos and return start/end string\n\n // default PNP views, no start/end defined \n if ($view !== \"\" && $start === \"\" && $end === \"\") {\n \n if (!empty($pnp_views[$view])) {\n $timeperiod = \" --start={$pnp_views[$view]} \";\n }\n }\n\n // specific date\n else if (!empty($start) && !empty($end)) {\n\n $start = escapeshellarg($start);\n $end = escapeshellarg($end);\n \n $timeperiod = \" --start={$start} --end={$end} \";\n \n }\n\n // specific start\n else if (!empty($start) && empty($end)) {\n \n $start = escapeshellarg($start);\n $timeperiod = \" --start={$start} \";\n\n }\n\n // end/view combo\n else if ($view !== \"\" && $end !== \"\" && $start === \"\") {\n\n if (!empty($pnp_stamps[$view])) {\n\n $end = intval($end);\n\n //calculate starting timestamp\n $start = $end - $pnp_stamps[$view];\n $timeperiod = \" --start={$start} --end={$end} \";\n }\n } \n\n return $timeperiod;\n}", "public function GetRegionNeighbours($region, $range=128, $scopeID='00000000-0000-0000-0000-000000000000', $start=0, $asArray=false){\n\t\t\tif(is_string($range) === true && ctype_digit($range) === true){\n\t\t\t\t$range = (integer)$range;\n\t\t\t}\n\n\t\t\tif(is_string($region) === false){\n\t\t\t\tthrow new InvalidArgumentException('Region ID must be specified as a string.');\n\t\t\t}else if(preg_match(self::regex_UUID, $region) != 1){\n\t\t\t\tthrow new InvalidArgumentException('Region ID must be a valid UUID.');\n\t\t\t}else if(is_string($scopeID) === false){\n\t\t\t\tthrow new InvalidArgumentException('ScopeID must be specified as a string.');\n\t\t\t}else if(preg_match(self::regex_UUID, $scopeID) != 1){\n\t\t\t\tthrow new InvalidArgumentException('ScopeID must be a valid UUID.');\n\t\t\t}else if(is_integer($range) === false){\n\t\t\t\tthrow new InvalidArgumentException('Range must be specified as integer.');\n\t\t\t}else if($range < 8){\n\t\t\t\tthrow new InvalidArgumentException('Range must be greater than or equal to 8');\n\t\t\t}\n\n\t\t\t$response = array();\n\t\t\t$has = WebUI\\GetRegionNeighbours::hasInstance($this, $region, $range=128, $scopeID='00000000-0000-0000-0000-000000000000');\n\t\t\tif($asArray === true || $has === false){\n\t\t\t\t$result = $this->makeCallToAPI('GetRegionNeighbours', true, array(\n\t\t\t\t\t\t'RegionID' => $region,\n\t\t\t\t\t\t'ScopeID' => $scopeID,\n\t\t\t\t\t\t'Range' => $range\n\t\t\t\t\t), array(\n\t\t\t\t\t\t'Regions' => array('array'=>array(static::GridRegionValidator())),\n\t\t\t\t\t\t'Total' => array('integer'=>array())\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\tforeach($result->Regions as $val){\n\t\t\t\t\t$response[] = WebUI\\GridRegion::fromEndPointResult($val);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $asArray ? $response : WebUI\\GetRegionNeighbours::r($this, $region, $range=128, $scopeID='00000000-0000-0000-0000-000000000000', $start, $has ? null : $result->Total, $response);\n\t\t}", "function createDateInterval($dateStart,$dateStop){\n $ONE_DAY=3600*24;\n $start=strtotime($dateStart);\n $stop=strtotime($dateStop);\n $giorni=array();\n for ($giorno=$start; $giorno<=$stop; $giorno+=$ONE_DAY){\n $giorni[]=date(\"Y-m-d\",$giorno);\n }\n return $giorni;\n }", "function daysDifference($beginDate, $endDate)\n {\n //explode the date by \"-\" and storing to array\n $date_parts1 = explode(\"-\", $beginDate);\n $date_parts2 = explode(\"-\", $endDate);\n //gregoriantojd() Converts a Gregorian date to Julian Day Count\n $start_date = gregoriantojd($date_parts1[1], $date_parts1[2], $date_parts1[0]);\n $end_date = gregoriantojd($date_parts2[1], $date_parts2[2], $date_parts2[0]);\n return $end_date - $start_date;\n }", "static function getRange()\n {\n return static::$range;\n }", "public function getDateRange()\n {\n return $this->date_range;\n }", "public function getParticipationsByRangeDate($startDate='', $endDate='')\r\n\t{\r\n\t\t$em = $this->getServiceManager()->get('doctrine.entitymanager.orm_default');\r\n\r\n\t\t$startDateTime = \\DateTime::createFromFormat('d/m/Y', $startDate);\r\n\t\t$endDateTime = \\DateTime::createFromFormat('d/m/Y', $endDate);\r\n\r\n\t\tif ($startDate != '' && $endDate != '') {\r\n\t\t\t$dateRange = \"(e.created_at >='\" . $startDateTime->format('Y-m-d') . \" 0:0:0' AND e.created_at <= '\" . $endDateTime->format('Y-m-d') . \" 0:0:0')\";\r\n\t\t} elseif ($startDate == '' && $endDate != '') {\r\n\t\t\t$dateRange = \"e.created_at <= '\" . $endDateTime->format('Y-m-d') . \" 0:0:0'\";\r\n\t\t} elseif ($startDate != '' && $endDate == '') {\r\n\t\t\t$dateRange = \"e.created_at >='\" . $startDateTime->format('Y-m-d') . \" 0:0:0'\";\r\n\t\t} else {\r\n\t\t\t$dateRange = \"e.created_at IS NOT NULL\";\r\n\t\t}\r\n\r\n\t\t$query = $em->createQuery('\r\n\t\t\tSELECT COUNT(e.id) FROM PlaygroundGame\\Entity\\Entry e\r\n\t\t\tWHERE ' . $dateRange . '\r\n\t\t\tAND e.active=0\r\n\t\t');\r\n\t\t$count = $query->getSingleScalarResult();\r\n\t\treturn $count;\r\n\t}", "function date_range($first, $last, $step = '+1 day', $output_format = 'd/m/Y' ) {\n\n $dates = array();\n $current = strtotime($first);\n $last = strtotime($last);\n\n while( $current <= $last ) {\n\n $dates[] = date($output_format, $current);\n $current = strtotime($step, $current);\n }\n\n return $dates;\n }", "public function validateDates(&$start, &$end) {\n $sixMonthsAgo = strtotime(\"-6 months\");\n $day = 86400;\n $end = time();\n \n if (!$start) {\n $start = strtotime(\"-7 days\");\n }\n \n $gap = $end - $start; \n \n //Don't mess the dates!\n switch ($gap) {\n case $gap < ($day * 31) :\n $gap = $day * 7;\n break;\n\n case $gap < ($day * 180) ://6 months\n $gap = $day * 31;\n break;\n \n case $gap >= ($day * 180) : \n default : \n $gap = $day * 180; \n break;\n }\n \n $end = time();\n $start = $end - $gap;\n }", "public static function getWorkingDays($startDate, $endDate)\n {\n $holidays = self::getHolidays('egypt');\n\n $begin = strtotime($startDate);\n $end = strtotime($endDate);\n if ($begin > $end) {\n echo 'startdate is in the future! <br />';\n\n return 0;\n }\n\n $no_days = 0;\n $weekends = 0;\n while ($begin <= $end) {\n ++$no_days; // no of days in the given interval\n $what_day = date('N', $begin);\n if (in_array($what_day, [5, 6])) { // 6 and 7 are weekend days\n ++$weekends;\n }\n $begin += 86400; // +1 day\n }\n $working_days = $no_days - $weekends;\n\n $holiday_days = 0;\n $beginDT = new DateTime($startDate);\n $endDT = new DateTime($endDate);\n foreach ($holidays as $holiday) {\n $dt = new DateTime($holiday[0]);\n $dtTimestamp = $dt->getTimestamp();\n if (($dtTimestamp >= $beginDT->getTimestamp())\n && ($dtTimestamp <= $endDT->getTimestamp())\n && (in_array($dt->format('N'), [5, 6], true))) {\n ++$holiday_days;\n }\n }\n $working_days -= $holiday_days;\n\n return $working_days;\n }", "public function getTotalPageViews($start = null, $end = null)\n {\n $query = \"SELECT count(*) AS count FROM \" . $this->tableName;\n\n if ((!is_null($start)) && (!is_null($end))) {\n $query .= \" WHERE stat_date BETWEEN '$start' AND '$end' \";\n }\n\n $data = $this->SelectData($query, PDO::FETCH_ASSOC);\n if (false === $data) {\n return false;\n } else {\n return $data[0]['count'];\n }\n }", "public function range($start = NULL, $length = NULL);", "function getGuardLeaveDays($guardid,$startdate,$enddate){\n\t$result = mysql_query(\"SELECT * FROM guardschedule\");\n\t$leavedays = 0;\n\t\n\t//Put all data into arrays if they are in between those dates specified\n\twhile($line = mysql_fetch_array($result, MYSQL_ASSOC)){\n\t\tif((strtotime($line['dateentered']) >= strtotime(trim($startdate,\"'\"))) && (strtotime($line['dateentered']) <= strtotime(trim($enddate,\"'\")))){\n\t\t\t$schedulearray = split(\",\",$line['schedule']);\n\t\t\t//Get all known guard statuses\n\t\t\t$statusarr = getAllScheduleStatus();\n\t\t\t\n\t\t\tfor($i=0;$i<count($schedulearray);$i++){\n\t\t\t\t$assgnarr = split(\"=\",$schedulearray[$i]);\n\t\t\t\tif($assgnarr[1] == \"Leave\" && $assgnarr[0] == $guardid){\n\t\t\t\t\t$leavedays++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn $leavedays;\n}", "public function workDays()\n {\n return $this->type->work_days;\n }", "function get_days($startdate,$enddate){\r\n\t$begin = new DateTime(date(\"Y-m-d\", strtotime($startdate)));\r\n$end = new DateTime(date(\"Y-m-d\", strtotime($enddate)));\r\n\r\n$daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);\r\n\r\nforeach($daterange as $date){\r\n $adays[] =$date->format(\"Y-m-d\");\r\n}\r\n$adays[] =date(\"Y-m-d\", strtotime($enddate)) ;\r\nreturn $adays; \r\n}", "public function days() {\n //TODO prediction\n }", "public function __construct(&$events, $rangeLowerBound, $rangeUpperBound, $workdayLowerBound = 0, $workdayUpperBound = 24, $length, $topSlots = 5){\n\n\t\tif($workdayLowerBound > $workdayUpperBound || $workdayUpperBound > 1440)\n\t\t\tdie(\"ERROR: Invalid workday interval.\");\n\t\t\n\t\telse{\n\t\t\t$this->workdayLowerBound = $workdayLowerBound;\n\t\t\t$this->workdayUpperBound = $workdayUpperBound;\n\t\t\t$this->rangeLowerBound = $rangeLowerBound;\n\t\t\t$this->rangeUpperBound = $rangeUpperBound;\n\t\t\t$this->topSlots = $topSlots;\n\n\t\t\t$this->root = new IntervalObject(0, 1E9, 'ROOT');\n\t\t\t\n\t\t\tself::$length = $length;\n\n //echo json_encode($rangeLowerBound);\n\n // $workdayLowerBound += $rangeLowerBound;\n // $workdayUpperBound += $rangeLowerBound;\n\n\n foreach($events as $email => $intervals) {\n for($j = 0; $j < count($events[$email]); $j++) {\n $events[$email][$j]['startTime'] += $rangeLowerBound;\n $events[$email][$j]['endTime'] += $rangeLowerBound;\n }\n }\n\n\t\t\tforeach($events as $email => $intervals) {\n $a = new ArrayIterator($intervals);\n\t\t\t\tforeach($a as $interval){\n\n // echo json_encode(\"BEFORE -> \").json_encode($interval).\"\\n\";\n\n if( ($interval['startTime'] % 1440) > $workdayUpperBound){\n $interval['startTime'] = 1440*(floor($interval['startTime']/1440)+1) + $workdayLowerBound;\n }\n else if( ($interval['startTime'] % 1440) < $workdayLowerBound ){\n $interval['startTime'] = 1440*floor($interval['startTime']/1440) + $workdayLowerBound;\n }\n\n //if( ($interval['endTime'] % 1440) < $workdayLowerBound){\n // $interval['endTime'] = 1440*(floor($interval['startTime']/1440)-1) + $workdayLowerBound;\n //}\n //else\n if( ($interval['endTime'] % 1440) > $workdayUpperBound ){\n $interval['endTime'] = 1440*floor($interval['endTime']/1440) + $workdayUpperBound;\n }\n\n //echo json_encode(\"AFTER -> \").json_encode($interval).\"\\n\";\n\n\t\t\t\t\tif( $interval['endTime'] - $interval['startTime'] < $length) {\n // echo json_encode(\"INVALID RANGE => \").json_encode($interval).\"\\n\";\n continue;\n }\n\n\t\t\t\t\t// instead of more than a day apart, divide by 1440 and see if the day matches\n\t\t\t\t\tif(floor($interval['startTime']/1440) < floor($interval['endTime']/1440)){\n //$c = 0;\n\t\t\t\t\t\tdo {\n // var_dump($interval);\n $tempEnd = 1440*floor($interval['startTime']/1440) + $workdayUpperBound;\n\n if($tempEnd > $interval['endTime'])\n $tempEnd = $interval['endTime'];\n\n $a->append(array('startTime' => $interval['startTime'],\n 'endTime' => $tempEnd));\n\n $interval['startTime'] = 1440*(floor($interval['startTime']/1440)+1) + $workdayLowerBound;\n\n //if($c >= 5)\n // break;\n //$c++;\n }\n\t\t\t\t\t\twhile ($interval['startTime'] / 1440 < $interval['endTime'] / 1440);\n\n //die();\n\n\t\t\t\t\t\t// insert the final range\n\t\t\t\t\t\t$a->append(array('startTime' => $interval['startTime'], 'endTime' => $interval['endTime']));\n\t\t\t\t\t}\n else{\n // echo json_encode(\"Inserting: $email -> \").\"\\n\";\n // echo json_encode($interval).\"\\n\";\n $this->root->insertInterval($email, $interval['startTime'], $interval['endTime']);\n }\n\n\n /*\n if( $interval['endTime'] - $interval['startTime'] < 1440 ) {\n echo json_encode(\"Inserting: $email -> \").\"\\n\";\n echo json_encode($interval).\"\\n\";\n $this->root->insertInterval($email, $interval['startTime'], $interval['endTime']);\n }\n else{\n echo json_encode(\"TOO LARGE RANGE => \").json_encode($interval).\"\\n\";\n\n \n }*/\n\n\t\t\t\t}\n\n\t\t\t}\n\n // echo json_encode($events);\n\t\t}\n\n\t}", "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\r\n{\r\n $begin = new DateTime($startDate);\r\n $end = new DateTime($endDate);\r\n \r\n $interval = new DateInterval('P1D'); \r\n $dateRange = new DatePeriod($begin, $interval, $end);\r\n \r\n $range = [];\r\n \r\n for($i=$begin;$i<=$end;$i->modify('+1 day')) {\r\n $range[] = $i->format($format);\r\n \r\n }\r\n return $range; \r\n}", "function getTotalRegisteredUsersInBetween($startDate, $endDate, $limit = 0, $offsetStart = 0, $offsetEnd = 0)\n {\n\n // define all the global variables\n global $database, $message, $settings, $user;\n\n // check if current user has the required permission\n if (!$user->hasPermission(\"analytics_registeredUsersInBetween\")) {\n $message->setError(\"You don't have the permission to perform this action\", Message::Error);\n return false;\n }\n\n // Set the required parameters\n $users = \"\";\n\n // check if any limits are set\n if ($limit != 0) {\n $limitArgs = \" LIMIT \" . $limit;\n } else {\n $limitArgs = \"\";\n }\n\n // check if any offsets has been used\n if ($offsetEnd != 0 && $offsetEnd >= $offsetStart) {\n $limitArgs = \" LIMIT \" . $offsetStart . \",\" . $offsetEnd;\n }\n\n // call the database and get the results back\n $sql = \"SELECT * FROM \" . TBL_USERS . \" WHERE\n \" . TBL_USERS_DATE_JOINED . \" >= '$startDate' AND \n \" . TBL_USERS_DATE_JOINED . \" <= '$endDate'\" . $limitArgs;\n\n // get the sql results\n if (!$results = $database->getQueryResults($sql)) {\n return false;\n }\n\n foreach ($database->getQueryEffectedRows($results, true) as $row) {\n $currentUser = new User();\n $currentUser->initInstance($row);\n\n $users[] = $currentUser;\n }\n\n return $users;\n }", "public function f_get_dateWise_revenewIncome($startDt, $endDt)\n {\n\n $sql = $this->db->query(\" SELECT SUM(amount) AS income FROM td_dm_bill_payment WHERE trans_dt >= '$startDt' AND trans_dt <= '$endDt' \n GROUP BY trans_dt \");\n return $sql->row();\n\n }", "public function getArticlesByRangeDate($startDate='', $endDate='')\r\n\t{\r\n\t\t$em = $this->getServiceManager()->get('doctrine.entitymanager.orm_default');\r\n\r\n\t\t$startDateTime = \\DateTime::createFromFormat('d/m/Y', $startDate);\r\n\t\t$endDateTime = \\DateTime::createFromFormat('d/m/Y', $endDate);\r\n\r\n\t\tif ($startDate != '' && $endDate != '') {\r\n\t\t\t$dateRange = \"(p.publicationDate >='\" . $startDateTime->format('Y-m-d') . \" 0:0:0' AND p.publicationDate <= '\" . $endDateTime->format('Y-m-d') . \" 0:0:0')\";\r\n\t\t} elseif ($startDate == '' && $endDate != '') {\r\n\t\t\t$dateRange = \"p.publicationDate <= '\" . $endDateTime->format('Y-m-d') . \" 0:0:0'\";\r\n\t\t} elseif ($startDate != '' && $endDate == '') {\r\n\t\t\t$dateRange = \"p.publicationDate >='\" . $startDateTime->format('Y-m-d') . \" 0:0:0'\";\r\n\t\t} else {\r\n\t\t\t$dateRange = \"p.publicationDate IS NOT NULL\";\r\n\t\t}\r\n\r\n\t\t$query = $em->createQuery('\r\n\t\t\tSELECT COUNT(p.id) FROM PlaygroundCms\\Entity\\Page p\r\n\t\t\tWHERE ' . $dateRange . '\r\n\t\t\tAND p.active=1\r\n\t\t');\r\n\t\t$count = $query->getSingleScalarResult();\r\n\t\treturn $count;\r\n\t}", "public function rangesToDates(){\n //Rangos::\n }", "public function getDayIntervals()\n {\n return $this->dayIntervals;\n }", "function getTotalLoggedUsersInBetween($startDate, $endDate, $limit = 0, $offsetStart = 0, $offsetEnd = 0)\n {\n\n // define all the global variables\n global $database, $message, $settings, $user;\n\n // check if current user has the required permission\n if (!$user->hasPermission(\"analytics_loggedUsersInBetween\")) {\n $message->setError(\"You don't have the permission to perform this action\", Message::Error);\n return false;\n }\n\n // Set the required parameters\n $users = \"\";\n\n // check if any limits are set\n if ($limit != 0) {\n $limitArgs = \" LIMIT \" . $limit;\n } else {\n $limitArgs = \"\";\n }\n\n // check if any offsets has been used\n if ($offsetEnd != 0 && $offsetEnd >= $offsetStart) {\n $limitArgs = \" LIMIT \" . $offsetStart . \",\" . $offsetEnd;\n }\n\n // call the database and get the results back\n $sql = \"SELECT * FROM \" . TBL_USERS . \" WHERE\n \" . TBL_USERS_LAST_LOGIN . \" >= '$startDate' AND \n \" . TBL_USERS_LAST_LOGIN . \" <= '$endDate'\" . $limitArgs;\n\n // get the sql results\n if (!$results = $database->getQueryResults($sql)) {\n return false;\n }\n\n foreach ($database->getQueryEffectedRows($results, true) as $row) {\n $currentUser = new User();\n $currentUser->initInstance($row);\n\n $users[] = $currentUser;\n }\n\n return $users;\n }", "function dateDiff($start, $end) {\n\t\n $start_ts = strtotime($start);\n $end_ts = strtotime($end);\n $diff = $end_ts - $start_ts;\n return round($diff / 86400);\n}", "public function sumOverAllScoreOfReport($dateStart, $dateEnd);", "public function getLengthInDays() : int\n\t{\n\t\treturn Date::diff( $this->End, $this->Start );\n\t}", "function difference_time($begin, $end) {\n $data_frek['frek'] = round(abs(strtotime($end)-strtotime($begin))/86400);\n return $data_frek;\n // end function dateDiff\n}", "function computeNetworkRange(&$start, &$end = null, $excludeBroadcastAndNetwork = '') {\n\n if (!is_bool($excludeBroadcastAndNetwork)) {\n if (isset($this->fields['addressable'])) {\n $excludeBroadcastAndNetwork = ($this->fields['addressable'] == 1);\n } else {\n $excludeBroadcastAndNetwork = false;\n }\n }\n\n self::computeNetworkRangeFromAdressAndNetmask($this->getAddress(), $this->getNetmask(),\n $start, $end, $excludeBroadcastAndNetwork);\n }" ]
[ "0.5748783", "0.56996125", "0.5636681", "0.53718233", "0.5361785", "0.53574705", "0.535241", "0.5332663", "0.5289612", "0.52521354", "0.52178186", "0.5201913", "0.51948565", "0.5189284", "0.51684874", "0.51594234", "0.5156481", "0.51450175", "0.51291806", "0.51058835", "0.510525", "0.510325", "0.510314", "0.507859", "0.5041361", "0.5006768", "0.5003792", "0.50033677", "0.500227", "0.49998364", "0.49636868", "0.49628618", "0.4962446", "0.4944557", "0.49284145", "0.49236542", "0.4923111", "0.4923111", "0.49196482", "0.4918011", "0.49113977", "0.49003306", "0.48827127", "0.48821262", "0.48546645", "0.48379785", "0.48343983", "0.48250777", "0.48115954", "0.47906113", "0.47890106", "0.47880733", "0.47848523", "0.4775606", "0.4771313", "0.47660244", "0.4764495", "0.47604194", "0.4757597", "0.47518307", "0.4741819", "0.47416013", "0.47349805", "0.47331664", "0.4727554", "0.4692713", "0.46660346", "0.4661626", "0.46587738", "0.46582994", "0.46574962", "0.4648466", "0.46419823", "0.46410123", "0.46396828", "0.4635399", "0.46278942", "0.46218875", "0.4614804", "0.46147168", "0.46135753", "0.46128157", "0.46116838", "0.4611475", "0.460834", "0.46072015", "0.4605966", "0.4605453", "0.45895776", "0.45826817", "0.45801488", "0.45790747", "0.4577327", "0.45741498", "0.4573416", "0.45717415", "0.45710325", "0.45634264", "0.45594856", "0.4557932" ]
0.48352253
46
Standard string representation is eg '20190421 to 20190425'
public function __toString(): string { return "{$this->start} to {$this->end}"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function to_s() {\n $format = \"%04d-%02d-%02d\";\n\n return sprintf($format, $this->year, $this->month, $this->day);\n }", "public function dateStartFriendly(): string\n {\n return Carbon::parse($this->date_start)->format('d-m-Y');\n }", "public function periodo() {\n $carbon = new Carbon($this->created_at);\n\n $string = $carbon->toFormattedDateString() . \" - \";\n if($this->created_at != $this->updated_at) {\n $carbon = new Carbon($this->updated_at);\n $string .= $carbon->toFormattedDateString();\n } else {\n $string .= \"Actual\";\n }\n return $string;\n }", "private function to_zruth_date($date) {\n if (strlen($date) >= 10 && substr($date, 4, 1) == '-' && substr($date, 7, 1) == '-')\n return substr($date, 8, 2) . '-' . substr($date, 5, 2) . '-' . substr($date, 0, 4);\n else\n return $date;\n }", "private function from_zruth_date($date) {\n if (strlen($date) == 10 && substr($date, 2, 1) == '-' && substr($date, 5, 1) == '-')\n return substr($date, 6, 4) . '-' . substr($date, 3, 2) . '-' . substr($date, 0, 2);\n else\n return $date;\n }", "function convertDate($date){\n\treturn implode('.', array_reverse(explode('-', $date)));\n}", "public static function StrToDate($date) {\n $ar = explode('/',$date);\n return $ar[2].'-'.$ar[1].'-'.$ar[0];\n }", "function get_date_literal($date) {\n\t$days = array(1 => 'lunes', 2 => 'martes', 3 => 'miércoles', 4 => 'jueves', 5 => 'viernes', 6 => 'sábado', 7 => 'domingo');\n\t$months = array(1 => 'enero', 2 => 'febrero', 3 => 'marzo', 4 => 'abril', 5 => 'mayo', 6 => 'junio', 7 => 'julio', 8 => 'agosto', 9 => 'septiembre', 10 => 'octubre', 11 => 'noviembre', 12 => 'diciembre');\n\t$day = $days[date('N', strtotime($date))];\n\t$date = explode('-', $date);\n\treturn $day . ' ' . intval($date[2]) . ' de ' . $months[intval($date[1])] . ' de ' . intval($date[0]);\n}", "function remove_day_from_date_and_format($date_in)\n{\n//print_r($date_ro);\n // $date_out = substr_replace($date_in, \"\", 4);\n $date_in = explode(' ', $date_in);\n $date_out = $date_in[3] . \"-\" . $date_in[2] . \"-\" . $date_in[1];\n return $date_out;\n}", "public function toString() : string {\n return $this-> months[$this->month - 1]. ' ' . $this->year;\n\n }", "function uwwtd_get_MM_DD_YYYY_from_YYYY_MM_DD_XXX($date) {\n $return = '';\n if (!empty($date)) {\n if (strlen($date) > 10) {\n $date = substr($date, 0, 10);\n }\n $dateObj = new DateTime($date);\n $return = $dateObj->format('m/d/Y');\n }\n return $return;\n}", "function humandate($varin) {\n list($yy,$mm,$dd)=split(\"-\",$varin);\n $varout=$dd.\"-\".$mm.\"-\".$yy;\n return $varout;\n}", "function uwwtd_get_DD_MM_YYYY_from_YYYY_MM_DD_XXX($date) {\n $return = '';\n if (!empty($date)) {\n if (strlen($date) > 10) {\n $date = substr($date, 0, 10);\n }\n $dateObj = new DateTime($date);\n $return = $dateObj->format('d/m/Y');\n }\n return $return;\n}", "function NiceFromToDate() {\r\n\t\tif (!$this->ToDate && $this->FromDate) return '';\r\n\t\t\r\n\t\t$from_date = new Date();\r\n\t\t$to_date = new Date();\r\n\t\t$from_date->setValue($this->FromDate);\r\n\t\t$to_date->setValue($this->ToDate);\r\n\t\t\t\t\r\n\t\tif (!$this->ToDate && $this->FromDate) return $from_date->FormatI18N('%e. %B %Y');\r\n\r\n\t\t$from_month = $from_date->FormatI18N('%B');\r\n\t\t$to_month = $to_date->FormatI18N('%B');\r\n\t\t\r\n\t\t$from_year = $from_date->Format('Y');\r\n\t\t$to_year = $from_date->Format('Y');\r\n\t\t\r\n\t\tif($from_month == $to_month) {\r\n\t\t\t$long_from_to_date = $from_date->Format('j. - ').$to_date->Format('j. ').$to_month.' '.$to_year;\r\n\t\t}\r\n\t\telseif($from_year == $to_year) {\r\n\t\t\t$long_from_to_date = $from_date->Format('j. ').$from_month.' - '.$to_date->Format('j. ').$to_month.' '.$to_year;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$long_from_to_date = $from_date->FormatI18N('%e. %B %Y') . ' - ' . $to_date->FormatI18N('%e. %B %Y');\r\n\t\t}\r\n\t\treturn $long_from_to_date;\r\n\t\t//$this->FromDate->setConfig('dateformat','dd/MM/y');//.FormatI18N('%e. %B %Y');\r\n\t}", "private function GetUanicDate(&$s, &$res) {\n $s = $this->substr($s, 0, 8);\t \n\tif ($s && (strlen($s) == 8) && @is_numeric($s)) {\n\t $res = @substr_replace(@substr_replace($s, \"-\", 4,0), \"-\", 7, 0);\n }\n }", "public function toDateString()\n {\n return $this->toLocalizedString('yyyy-MM-dd');\n }", "function formatDate($str, $reverse = FALSE, $separateur = \"-\", $forcerFormat = FALSE) {\n\tif(strlen($str) != 8 AND strlen($str) != 10)\n\t\treturn FALSE;\n\t\n\tif($reverse === FALSE) {\n\t\tif(strlen($str) == 8) {\n\t\t\tif($forcerFormat == 10) {\n\t\t\t\t$resultat = '20' . substr($str, 6) . $separateur . substr($str, 3, 2) . $separateur . substr($str, 0, 2);\n\t\t\t} else {\n\t\t\t\t$resultat = substr($str, 6) . $separateur . substr($str, 3, 2) . $separateur . substr($str, 0, 2);\n\t\t\t}\n\t\t}\n\t\telse if(strlen($str) == 10) {\n\t\t\tif($forcerFormat == 8) {\n\t\t\t\t$resultat = substr($str, 8) . $separateur . substr($str, 3, 2) . $separateur . substr($str, 0, 2);\n\t\t\t} else {\n\t\t\t\t$resultat = substr($str, 6) . $separateur . substr($str, 3, 2) . $separateur . substr($str, 0, 2);\n\t\t\t}\n\t\t}\n\t}\n\telse {\t// $reverse = TRUE\n\t\tif(strlen($str) == 8) {\n\t\t\tif($forcerFormat == 10) {\n\t\t\t\t$resultat = substr($str, 6) . $separateur . substr($str, 3, 2) . $separateur . '20' . substr($str, 0, 2);\n\t\t\t} else {\n\t\t\t\t$resultat = substr($str, 6) . $separateur . substr($str, 3, 2) . $separateur . substr($str, 0, 2);\n\t\t\t}\n\t\t} else if(strlen($str) == 10) {\n\t\t\tif($forcerFormat == 8) {\n\t\t\t\t$resultat = substr($str, 8) . $separateur . substr($str, 5, 2) . $separateur . substr($str, 2, 2);\n\t\t\t} else {\n\t\t\t\t$resultat = substr($str, 8) . $separateur . substr($str, 5, 2) . $separateur . substr($str, 0, 4);\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn $resultat;\n}", "public function format()\n {\n return sprintf('%d-%02d-%02d', $this->getYear(), $this->getMonth(), $this->getDay());\n }", "function conv_date($date)\n\t{\n\t\t$arr = explode(' ', $date);\n\t\t$y = $arr[2];\n\t\t$m = $this->convert_month_name('Eng-Num', str_replace(',','',$arr[0]));\n\t\t$d = $arr[1];\n\t\t\n\t\treturn $y.'-'.$m.'-'.$d; // output : 1986-1-24\n\t}", "function splitValidDate( $date ) {\n\t\n\t$year\t\t\t= substr( $date, 0, 4 );\n\t$month\t\t\t= substr( $date, 4, 2 );\n\t$day\t\t\t= substr( $date, 6, 2 );\n\t\n\t$datestr\t\t= $day.\".\".$month.\".\".$year;\n\t\n\treturn $datestr;\n}", "public function toString()\n {\n return vsprintf(\n '%08s-%04s-%04s-%02s%02s-%012s',\n $this->fields\n );\n }", "public function publishedString() \n {\n $time = time() - strtotime($this->publish_date);\n $tokens = array (\n 31536000 => 'year',\n 2592000 => 'month',\n 604800 => 'week',\n 86400 => 'day',\n 3600 => 'hour',\n 60 => 'minute',\n 1 => 'second'\n );\n foreach ($tokens as $unit => $text) {\n if ($time < $unit) continue;\n $numberOfUnits = floor($time / $unit);\n return $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':'') . ' ago';\n }\n }", "function join_ymd($y, $m, $d) {\n $y = str_pad($y, 4, \"0\", STR_PAD_LEFT); \n $m = str_pad($m, 2, \"0\", STR_PAD_LEFT); \n $d = str_pad($d, 2, \"0\", STR_PAD_LEFT); \n return $y.'-'.$m.'-'.$d;\n}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function dateToGoodFormat($date){\n\t\t$toTest = explode(\"/\",$date);\n\t\t$jj = intval($toTest[0]);\n\t\t$mm = intval($toTest[1]);\n\t\t$aaaa = intval($toTest[2]);\n\t\treturn ($aaaa.\"-\".$mm.\"-\".$jj);\n\t}", "public function getDate4String($date=null){\n\t\treturn $this->getDateLang(date_format($this->createDate($date),\"d M Y\"));\n\t}", "public function getHTMLDatePickerFormatValue(): string\n {\n return Carbon::parse($this->value)->format('Y-m-d');\n }", "function dbdate($date){\n\t\t$date=explode(\"-\",$date);\n\t\t$year=explode(\" \",$date[2]);\n\t\t$date1=$year[0].\"-\";\n\t\tif($date[1]<10 && (substr($date[1],0,1)!=0))\n\t\t\t$date1.=\"0\".$date[1].\"-\";\n\t\telse\n\t\t\t$date1.=$date[1].\"-\";\n\t\tif($date[0]<10 && (substr($date[0],0,1)!=0))\n\t\t\t$date1.=\"0\".$date[0].\" \".$year[1];\n\t\telse\n\t\t$date1.=$date[0].\" \".$year[1];\n\t\treturn $date1;\n\t}", "private static function convertNowString() {\n\n $date = new DateTime(null);\n return [$date, 'Y-m-d\\TH:i:sO', []];\n // return $date->format('Y-m-d\\TH:i:sO');\n\n }", "function codeDate ($date) \r\n\r\n{\r\n\r\n\t$tab = explode (\"-\", $date);\r\n\r\n\t$r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\r\n\treturn $r;\r\n\r\n}", "function fecha2largo($fecha) {\n $fecha = split(\"-\", $fecha);\n $dia = $fecha[2];\n $mes = $fecha[1];\n $anyo = $fecha[0];\n return \"$dia de \".strmes($mes).\" de $anyo\";\n}", "public function toString($start): string {\n $month = $start;\n $months =['Janvier','Fevrier','Mars','Avril','Mai','Juin','Juillet','Aout','Septembre','Octobre','Novembre','Decembre'];\n return $months[$month - 1] .' '.$this->year;\n\n }", "function formldatesimp2($gdate, $gcode, $tdate, $tcode, $go, $to)\n{\n if (!empty($go)) {\n $go = ' ' . $go;\n $go2 = '*' . $go;\n }\n if (!empty($to)) {\n $to = ' ' . $to;\n $to2 = ' &dagger;' . $to;\n }\n $code = 10 * $gcode + $tcode;\n\n switch ($code) {\n case 0:\n return substr($gdate, 8, 2) . '.' . substr($gdate, 5, 2) . '.' . substr($gdate, 0, 4) . $go . ' - ' . substr($tdate, 8, 2) . '.' . substr($tdate, 5, 2) . '.' . substr($tdate, 0, 4) . $to;\n case 1:\n return substr($gdate, 8, 2) . '.' . substr($gdate, 5, 2) . '.' . substr($gdate, 0, 4) . $go . ' - ' . substr($tdate, 0, 4) . $to;\n case 2:\n return substr($gdate, 8, 2) . '.' . substr($gdate, 5, 2) . '.' . substr($gdate, 0, 4) . $go . ' - ' . $to;\n case 8:\n return substr($gdate, 8, 2) . '.' . substr($gdate, 5, 2) . '.' . substr($gdate, 0, 4) . $go . $to;\n case 9:\n return '*' . substr($gdate, 8, 2) . '.' . substr($gdate, 5, 2) . '.' . substr($gdate, 0, 4) . $go . $to;\n case 10:\n return substr($gdate, 0, 4) . $go . ' - ' . substr($tdate, 8, 2) . '.' . substr($tdate, 5, 2) . '.' . substr($tdate, 0, 4) . $to;\n case 11:\n return substr($gdate, 0, 4) . $go . ' - ' . substr($tdate, 0, 4) . $to;\n case 12:\n return substr($gdate, 0, 4) . $go . ' - ' . $to;\n case 18:\n return substr($gdate, 0, 4) . $go . $to;\n case 19:\n return '*' . substr($gdate, 0, 4) . $go . $to;\n case 20:\n return $go2 . ' - ' . substr($tdate, 8, 2) . '.' . substr($tdate, 5, 2) . '.' . substr($tdate, 0, 4) . $to;\n case 21:\n return $go2 . ' - ' . substr($tdate, 0, 4) . $to;\n case 22:\n return $go2 . \" \" . $to2;\n case 28:\n return $go2 . \" \" . $to2;\n case 29:\n return $go2 . \" \" . $to2;\n }\n return date(\"d.m.Y\", strtotime($date));\n}", "public static function yersterday(): string\n {\n $d = new DateTime;\n $i = new DateInterval(\"P1D\");\n $d->sub($i);\n return $d->format(\"Y-m-d\");\n }", "function date_sql2en($date)\r\n\t{\r\n\t\tif (!empty($date))\r\n\t\t{\r\n\t\t\t$date = explode(\"-\", $date);\r\n\t\t\t$date_fr = $date[1].\"/\".$date[2].\"/\".$date[0];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$date_fr = \"\";\r\n\t\t}\r\n\t\treturn $date_fr;\r\n\t}", "public function __toString(): string\n {\n if ($next = $this->next()) {\n return $next->format('m/d/Y h:i a');\n }\n\n return '';\n }", "function convert_period_string($period) {\n\tswitch($period)\n\t{\n\t\tcase \"1\":\n\t\t\t$period = '1st';\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\t$period = '2nd';\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\t$period = '3rd';\n\t\t\tbreak;\n\t\tcase \"OT\":\n\t\t\t$period = 'Overtime';\n\t\t\tbreak;\n\t\tcase \"complete\":\n\t\t\t$period = 'Final';\n\t\t\tbreak;\n\t}\n\treturn $period;\n}", "function translate_date_to_ro($date_eng)\n{\n $days_of_week = ['Mon' => 'Luni,', 'Tue' => 'Marti,', 'Wed' => 'Miercuri,', 'Thu' => 'Joi,', 'Fri' => 'Vineri,', 'Sat' => 'Sambata,', 'Sun' => 'Duminica,'];\n $months_of_year = ['01' => 'Ian', '02' => 'Feb', '03' => 'Mar', '04' => 'Apr', '05' => 'Mai', '06' => 'Iun', '07' => 'Iul', '08' => 'Aug', '09' => 'Sep', '10' => 'Oct', '11' => 'Noi', '12' => 'Dec'];\n $date_eng = explode(\" \", $date_eng);\n $date_eng[0] = $days_of_week[$date_eng[0]];\n $date_eng[2] = $months_of_year[$date_eng[2]];\n $date_ro = implode(\" \", $date_eng);\n//print_r($date_ro);\n return $date_ro;\n}", "public function getFormattedEndAt(): string\n {\n\n return $this->endAt->format('d-m-Y');\n\n }", "function dateformatusa($date)\n{\n\t$ndate = explode(\"-\",$date);\n\t$year = $ndate[2];\n\t$day = $ndate[0];\n\t$month = $ndate[1];\n\t\n\treturn $year . \"-\" . $month . \"-\" . $day;\n}", "public function getDurationAsString() {\n $years = floor($this->months / 12);\n $extraMonths = $this->months % 12;\n if ($years<=0) {\n // code...\n return \"$extraMonths meses\";\n }if($extraMonths==0){\n return \"$years años\";\n }\n else {\n return \"$years años $extraMonths meses\";\n }\n \n }", "function fix_date($date) {\n\t$tc = 0;\n\t$tok = strtok($date, \"/\");\n\twhile ($tok) {\n\t\t$td[$tc] = $tok;\n\t\t$tc++; \t\t\t\n \t$tok = strtok(\"/\");\n }\n return ($td[2].\"-\".$td[0].\"-\".$td[1]);\n}", "function dateENtoFR($dateYMD) {\n $exp = explode('-', $dateYMD);\n return $exp[2] . '/' . $exp[1] . '/' . $exp[0];\n}", "function getFormattedCreatedDateExtended()\r\n {\r\n return $this->created_at->format('d').\" de \".$this->getMes_ptBR((int) $this->created_at->format('m') ).\" de \".$this->created_at->format('Y') ;\r\n }", "function tep_date_raw($date, $reverse = false) {\r\n if ($reverse) {\r\n return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);\r\n } else {\r\n return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);\r\n }\r\n}", "function buildDateString($date_array)\n{\n return $date_array[\"year\"].'-'.$date_array[\"mon\"].'-'.$date_array[\"mday\"];\n}", "public function getPassedString($full = false) {\n $today = new \\DateTime;\n $diff = $today->diff($this->date);\n\n $diff->w = floor($diff->d / 7);\n $diff->d -= $diff->w * 7;\n\n $string = [\n 'y' => 'year',\n 'm' => 'month',\n 'w' => 'week',\n 'd' => 'day',\n 'h' => 'hour',\n 'i' => 'minute',\n 's' => 'second'\n ];\n\n foreach ($string as $k => &$v) {\n if ($diff->$k) {\n $v = $diff->$k . ' ' . $v . ($diff->$k > 1 ? 's' : '');\n } else {\n unset($string[$k]);\n }\n }\n if (!$full) {\n $string = array_slice($string, 0, 1);\n }\n return $string ? implode(',', $string) . ' ago' : 'just now';\n }", "public static function genPhoneFormat($str) //from 0902244581 to 090-224-xxxx\n {\n $aNumbers = str_split($str);\n \n $result = '';\n $index = 0;\n for($i = count($aNumbers) - 1 ; $i >= 0; $i--)\n {\n $index++;\n \n if($index <= 4)\n {\n $result = 'x'.$result; \n if($index == 4)\n $result = '-'.$result;\n \n }else\n {\n $result = $aNumbers[$i].$result;\n if($index == 7)\n $result = '-'.$result; \n }\n }\n return $result;\n }", "public function getFormattedPaymentDate(): string;", "function date_fr($date_saisie){\n @list ($jour , $mois , $an) = split(\"[-./]\",$date_saisie);\n //inverse la date\n return($an.\"-\".$mois.\"-\".$jour);\n \n}", "function swapdate($temp){\n\t$d\t\t\t= explode(\"-\",$temp);\n\t$ndate \t= ($d[0] - 543).\"-\".$d[1].\"-\".$d[2];\n\treturn $ndate;\n}", "function FriendlyDateFromTo($p_from,$p_to) {\n\t$v_from=DateToSeconds($p_from);\n\t$v_to=DateToSeconds($p_to);\n\n\t/* SPLIT THE DATES ABOVER INTO AN ARRAY */\n\t$v_arr_from = split('[- :]', $p_from);\n\t$v_arr_to = split('[- :]', $p_to);\n\n\t/* CHECK IF IT'S TODAY */\n\t$v_yesterday=mktime(0, 0, 0, date(\"m\") , date(\"d\")-1, date(\"Y\"));\n\t$v_tomorrow=mktime(0, 0, 0, date(\"m\") , date(\"d\")+1, date(\"Y\"));\n\tif ($v_from>$v_yesterday && $v_to<$v_tomorrow && ($v_from-$v_to) < 86400) {\n\t\treturn \"Today \".$v_arr_from[3].\":\".$v_arr_from[4].\" to \".$v_arr_to[3].\":\".$v_arr_to[4];\n\t}\n\telse {\n\t\treturn Date(\"D\",$v_from).\" \".Date(\"j\",$v_from).\" \".Date(\"M\",$v_from).\" \".$v_arr_from[3].\":\".$v_arr_from[4].\" to \".Date(\"D\",$v_to).\" \".Date(\"j\",$v_from).\" \".Date(\"M\",$v_from).\" \".$v_arr_to[3].\":\".$v_arr_to[4];\n\t}\n\n}", "public function format_date($date) {\n //split date by delimter\n $new_date = explode('/', $date);\n //reverse the order from dd,mm,yy to yy,mm,dd\n $new_date = array_reverse($new_date);\n //join together again with - as delimiter\n $new_date = implode('-', $new_date);\n return $new_date;\n }", "function dateFR($date){\n $date = explode(\"/\", $date);\n return $date[2].\"/\".$date[1].\"/\".$date[0];\n}", "function extract_date_from_str($date) {\n\t\t$year = substr($date, 0, 4);\n\t\t$month = substr($date, 4, 2);\n\t\t$day = substr($date, 6, 2);\n\n\t\t$hour = substr($date, 9, 2);\n\t\t$minutes = substr($date, 11, 2);\n\t\t$seconds = substr($date, 13, 2);\n\n\t\treturn $year . \"/\" . $month . \"/\" . $day . \"_\" . $hour . \":\" . $minutes . \":\" . $seconds;\n\t}", "public function __toString()\r\n {\r\n if($this->start && $this->end) {\r\n return sprintf('%s - %s', PiplApi_Utils::piplapi_date_to_str($this->start),\r\n PiplApi_Utils::piplapi_date_to_str($this->end));\r\n } elseif($this->start) {\r\n return PiplApi_Utils::piplapi_date_to_str($this->start);\r\n }\r\n return PiplApi_Utils::piplapi_date_to_str($this->end);\r\n }", "function convDate($arg1) {\n\t\t$arr = explode(\"/\",$arg1);\n\t\treturn $arr[2].\"/\".$arr[0].\"/\".$arr[1];\n\t}", "protected function convertPregDateToString($value) {\n \t/**\n \t * 1 => year\n \t * 2 => month\n \t * 3 => day\n \t * 4 => hour\n \t * 5 => minute\n \t * 6 => second\n \t * 7 => microsecond or null\n \t */\n \treturn sprintf(\n \t\t'%04d-%02d-%02d %02d:%02d:%02d',\n \t\t$value[1],\n \t\t$value[2],\n \t\t$value[3],\n \t\t$value[4],\n \t\t$value[5],\n \t\tisset($value[6]) ? $value[6] : 0 \n \t);\n }", "private function getQueryStringDate() {\n\t\tif($this->date) {\n\t\t\treturn $this->date . '['.$this->qType.']';\n\t\t}\n\t\t$startDate = (new DateTime('-14 days'))->format('Ymd');\n\t\t$endDate = (new DateTime('tomorrow'))->format('Ymd');\n\t\t$qDate = '`'.$this->qType.' > '.$startDate.' < '.$endDate;\n\t\treturn $qDate;\n\t}", "function format_date($date) {\n return substr($date, 8, 2) . '/' . substr($date, 5, 2) . '/' . substr($date, 0, 4);\n }", "function generateDate( $value )\r\n\t{\r\n\t\treturn( strftime( \"%Y-%m-%d\", $value ) );\r\n\t}", "public static function date_to_string($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)/', $value, $m)) return '';\n\t\treturn date(conf('format.date'), mktime(0, 0, 0, $m[2], $m[3], $m[1]));\n\t}", "function tep_date_raw($date, $reverse = false) {\n if ($reverse) {\n return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);\n } else {\n return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);\n }\n}", "public static function genPhoneFormat($str) { //from 0902244581 to 090-224-xxxx\n $aNumbers = str_split($str);\n\n $result = '';\n $index = 0;\n for ($i = count($aNumbers) - 1; $i >= 0; $i--) {\n $index++;\n\n if ($index <= 4) {\n $result = 'x' . $result;\n if ($index == 4)\n $result = '-' . $result;\n }else {\n $result = $aNumbers[$i] . $result;\n if ($index == 7)\n $result = '-' . $result;\n }\n }\n return $result;\n }", "function format_datum_2($geef_datum_2) {\n //\n\t\t\t$jaar = substr($geef_datum_2,0,4);\n\t\t\t$maand = substr($geef_datum_2,5,2);\n\t\t\t$dag = substr($geef_datum_2,8,2);\n\n\t\treturn( $dag .'-'. $maand .'-'. $jaar );\n\t}", "function tep_date_raw($date, $reverse = false) {\n if ($reverse) {\n return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);\n } else {\n return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);\n }\n}", "function tep_date_raw($date, $reverse = false) {\n if ($reverse) {\n return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);\n } else {\n return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);\n }\n}", "function tep_date_raw($date, $reverse = false) {\n if ($reverse) {\n return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);\n } else {\n return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);\n }\n}", "function formatFechaES($value){\n\t$partes=explode(\"-\", $value);\n\t$value = $partes[2].\"-\".$partes[1].\"-\".$partes[0];\n\treturn $value;\n}", "function format_datum_1($geef_datum_1) {\n //\n\t\t\t$jaar = substr($geef_datum_1,6,4);\n\t\t\t$maand = substr($geef_datum_1,3,2);\n\t\t\t$dag = substr($geef_datum_1,0,2);\n\n\t\treturn($jaar.'-'.$maand.'-'.$dag);\n\t}", "public function getReleaseDateAttribute($value)\n {\n //format release date if not already formatted\n if ( ! preg_match('/[a-z]|[A-Z]|-/', $value) && strlen($value) > 4)\n {\n return Carbon::createFromFormat('Y-m-d', $value)->toFormattedDateString();\n }\n\n return $value;\n }", "public function getDateFormatted()\n\t{\n\t\t$dateKey = self::arrayKeyExistsNc('date', $this->dimensions);\n\t\t$date = $this->dimensions[$dateKey];\n\n\t\tif ($date == '00000000') {\n\t\t\t$date = '19000101';\n\t\t}\n\n\t\t$hour = '00';\n\t\tif ($hourKey = self::arrayKeyExistsNc('hour', $this->dimensions)) {\n\t\t\t$hour = $this->dimensions[$hourKey];\n\t\t}\n\t\t$result = substr($date, 0, 4) . '-' . substr($date, 4, 2) . '-' . substr($date, 6, 2) . ' ' . $hour . ':00:00';\n\n\t\treturn $result;\n\t}", "public function formatDate2($date1){\r\n\t\tif( $date1 != '00/00/0000' ){\r\n\t\t\tif($date1!=''){\r\n\t\t\t\t$jour = substr($date1,0,2);\r\n\t\t\t\t$mois = substr($date1,3,2);\r\n\t\t\t\t$annee = substr($date1,6,4);\r\n\t\t\t\t$date2 = $annee.'-'.$mois.'-'.$jour;\r\n\t\t\t}else{\r\n\t\t\t\t$date2 = '';\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t$date2 = '';\r\n\t\t}\r\n\t\treturn $date2;\r\n\t}", "function date_sql2fr($date)\r\n\t{\r\n\t\tif (!empty($date))\r\n\t\t{\r\n\t\t\t$date = explode(\"-\", $date);\r\n\t\t\t$date_fr = $date[2].\"/\".$date[1].\"/\".$date[0];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$date_fr = \"\";\r\n\t\t}\r\n\t\treturn $date_fr;\r\n\t}", "public function toDateString()\n {\n return $this->format('Y-m-d');\n }", "function date_en2sql($date)\r\n\t{\r\n\t\tif (!empty($date))\r\n\t\t{\r\n\t\t\t$date = explode(\"/\", $date);\r\n\t\t\t$date_sql = $date[2].\"-\".$date[0].\"-\".$date[1];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$date_sql = \"\";\r\n\t\t}\r\n\t\treturn $date_sql;\r\n\t}", "public function format(): string;", "function wpsp_tour_valid_date( $valid_from, $valid_end ) {\n \n printf( '%1$s %2$s <strong>%3$s</strong> %4$s <strong>%5$s</strong>',\n sprintf( '<span class=\"label\">%s</span>', esc_html__( 'Valid date:', 'discovertravel' ) ),\n sprintf( '%s', esc_html__( 'From', 'discovertravel' ) ),\n date(\"d F Y\", strtotime($valid_from)),\n sprintf( '%s ', esc_html__( 'to', 'discovertravel' ) ),\n date(\"d F Y\", strtotime($valid_end))\n );\n}", "function format_date($d) {\r\n\t$month = array(\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\");\r\n\t$date = explode(\"-\",$d);\r\n\tif(($date[1]-1) != 10) $index = str_replace(\"0\",\"\",$date[1]-1);\r\n\telse $index = $date[1]-1;\r\n\treturn $date[2].\" \".$month[$index].\" \".$date[0];\r\n}", "function fecha2display($fecha) {\n $fecha = split(\"-\", $fecha);\n $dia = $fecha[2];\n $mes = $fecha[1];\n $anyo = $fecha[0];\n return \"$dia/$mes/$anyo\";\n}", "public function getDateString(){\n $date = Carbon::parse($this->created_at);\n $date->timezone = 'America/Montreal';\n return $date->format('d/m/Y');\n //return $date->format('m/d/Y');\n }", "function oos_date_raw($date, $reverse = false) {\n if ($reverse) {\n return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);\n } else {\n return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);\n }\n }", "function break_date($iso_date) // template for new classes\r\n {\r\n $broken_date = array();\r\n $broken_date['yyyy'] = substr($iso_date,0,4);\r\n $broken_date['mm'] = substr($iso_date,5,2);\r\n $broken_date['dd'] = substr($iso_date,8,2);\r\n return $broken_date;\r\n }", "function break_date($iso_date) // template for new classes\r\n {\r\n $broken_date = array();\r\n $broken_date['yyyy'] = substr($iso_date,0,4);\r\n $broken_date['mm'] = substr($iso_date,5,2);\r\n $broken_date['dd'] = substr($iso_date,8,2);\r\n return $broken_date;\r\n }", "function break_date($iso_date) // template for new classes\r\n {\r\n $broken_date = array();\r\n $broken_date['yyyy'] = substr($iso_date,0,4);\r\n $broken_date['mm'] = substr($iso_date,5,2);\r\n $broken_date['dd'] = substr($iso_date,8,2);\r\n return $broken_date;\r\n }", "function break_date($iso_date) // template for new classes\r\n {\r\n $broken_date = array();\r\n $broken_date['yyyy'] = substr($iso_date,0,4);\r\n $broken_date['mm'] = substr($iso_date,5,2);\r\n $broken_date['dd'] = substr($iso_date,8,2);\r\n return $broken_date;\r\n }", "public function getFormattedBeginAt(): string\n {\n\n return $this->beginAt->format('d-m-Y');\n\n }", "function date_fr2sql($date)\r\n\t{\r\n\t\tif (!empty($date))\r\n\t\t{\r\n\t\t\t$date = explode(\"/\", $date);\r\n\t\t\t$date_sql = $date[2].\"-\".$date[1].\"-\".$date[0];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$date_sql = \"\";\r\n\t\t}\r\n\t\treturn $date_sql;\r\n\t}", "function string_format_complete_date( $p_date ) {\r\n\t$t_timestamp = db_unixtimestamp( $p_date );\r\n\treturn date( config_get( 'complete_date_format' ), $t_timestamp );\r\n}", "private function date()\n {\n $pubDate = $this->article->Journal->JournalIssue->PubDate;\n \n if (isset($pubDate->MedlineDate)) {\n $date = (string)$pubDate->MedlineDate;\n } else {\n $date = implode(' ', (array)$pubDate);\n }\n \n return $date;\n }", "protected function makeDateString($dateArray) {\n\t\t\tswitch ($this->simu->getDateFormat()) {\n\t\t\t\tcase 'd/m/Y':\n\t\t\t\t\treturn $dateArray['day'] . \"/\" . $dateArray['month'] . \"/\" . $dateArray['year'];\n\t\t\t\tcase 'm/d/Y':\n\t\t\t\t\treturn $dateArray['month'] . \"/\" . $dateArray['day'] . \"/\" . $dateArray['year'];\n\t\t\t\tcase 'd-m-Y':\n\t\t\t\t\treturn $dateArray['day'] . \"-\" . $dateArray['month'] . \"-\" . $dateArray['year'];\n\t\t\t\tcase 'm-d-Y':\n\t\t\t\t\treturn $dateArray['month'] . \"-\" . $dateArray['day'] . \"-\" . $dateArray['year'];\n\t\t\t\tcase 'd.m.Y':\n\t\t\t\t\treturn $dateArray['day'] . \".\" . $dateArray['month'] . \".\" . $dateArray['year'];\n\t\t\t\tcase 'm.d.Y':\n\t\t\t\t\treturn $dateArray['month'] . \".\" . $dateArray['day'] . \".\" . $dateArray['year'];\n\t\t\t\tcase 'Y-m-d':\n\t\t\t\t\treturn $dateArray['year'] . \"-\" . $dateArray['month'] . \"-\" . $dateArray['day'];\n\t\t\t\tcase 'Y.m.d':\n\t\t\t\t\treturn $dateArray['year'] . \".\" . $dateArray['month'] . \".\" . $dateArray['day'];\n\t\t\t\tcase 'Y/m/d':\n\t\t\t\t\treturn $dateArray['year'] . \"/\" . $dateArray['month'] . \"/\" . $dateArray['day'];\n\t\t\t\tcase 'Y-d-m':\n\t\t\t\t\treturn $dateArray['year'] . \"-\" . $dateArray['day'] . \"-\" . $dateArray['month'];\n\t\t\t\tcase 'Y.d.m':\n\t\t\t\t\treturn $dateArray['year'] . \".\" . $dateArray['day'] . \".\" . $dateArray['month'];\n\t\t\t\tcase 'Y/d/m':\n\t\t\t\t\treturn $dateArray['year'] . \"/\" . $dateArray['day'] . \"/\" . $dateArray['month'];\n\t\t\t}\n\t\t\treturn null;\n\t}", "private function cleanExpDate($exp = '') {\n $exp = preg_replace('/[^0-9]-\\//', '', trim($exp));\n return (string)$exp;\n }", "function DateToIndo($date) {\n // variabel BulanIndo merupakan variabel array yang menyimpan nama-nama bulan\n $BulanIndo = array(\"Januari\", \"Februari\", \"Maret\",\n \"April\", \"Mei\", \"Juni\",\n \"Juli\", \"Agustus\", \"September\",\n \"Oktober\", \"November\", \"Desember\");\n $tahun = substr($date, 0, 4); // memisahkan format tahun menggunakan substring\n $bulan = substr($date, 5, 2); // memisahkan format bulan menggunakan substring\n $tgl = substr($date, 8, 2); // memisahkan format tanggal menggunakan substring\n $result = $tgl . \" \" . $BulanIndo[(int)$bulan-1] . \" \". $tahun;\n return($result);\n \n}", "function fechadmy($fecha){\n list($anio,$mes,$dia)=explode(\"-\",$fecha);\n return $dia.\"-\".$mes.\"-\".$anio;\n}" ]
[ "0.61608994", "0.59721136", "0.5915222", "0.5894571", "0.58564264", "0.58255", "0.5786829", "0.5761231", "0.575104", "0.569902", "0.56972164", "0.5696928", "0.56856984", "0.5644756", "0.5642799", "0.56411785", "0.56219614", "0.5593442", "0.5591444", "0.55702615", "0.5539455", "0.5537992", "0.55146766", "0.55077696", "0.55077696", "0.55077696", "0.55077696", "0.55077696", "0.55077696", "0.55077696", "0.55077696", "0.54939425", "0.54907936", "0.5486567", "0.5469816", "0.5462302", "0.54542166", "0.54501975", "0.54242885", "0.54136527", "0.53870577", "0.53731275", "0.5363837", "0.53633535", "0.53576654", "0.5352409", "0.53453034", "0.53378606", "0.53313774", "0.5320253", "0.5314205", "0.5308331", "0.53053814", "0.5285479", "0.5280754", "0.5278493", "0.52701735", "0.5263819", "0.52512515", "0.52494764", "0.5247354", "0.5243795", "0.5240903", "0.5229735", "0.522372", "0.52159804", "0.5212273", "0.5210286", "0.52069867", "0.51992065", "0.5199196", "0.5198683", "0.5194973", "0.5194973", "0.51902795", "0.5188242", "0.5185598", "0.51748294", "0.5170794", "0.51677036", "0.51611125", "0.5152465", "0.5150222", "0.5147205", "0.5136363", "0.51333326", "0.51299226", "0.51291656", "0.51218444", "0.511896", "0.511896", "0.511896", "0.511896", "0.5116647", "0.5104137", "0.5103068", "0.5101433", "0.5100615", "0.50999516", "0.50977", "0.5097534" ]
0.0
-1
Json representation is object with 'start' and 'end' properties
public function jsonSerialize(): array { return [ 'start' => (string) $this->start, 'end' => (string) $this->end, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function jsonSerialize()\n {\n $json = array();\n $json['endCursor'] = $this->endCursor;\n $json['hasNextPage'] = $this->hasNextPage;\n $json['hasPrevPage'] = $this->hasPrevPage;\n $json['startCursor'] = $this->startCursor;\n\n return $json;\n }", "function jsonSerialize()\n {\n return [\n 'start' => $this->start->format('d/m/Y h:i:s'),\n 'end' => $this->end->format('d/m/Y h:i:s'),\n 'description' => $this->description,\n 'questions' => $this->questions,\n ];\n }", "public function jsonSerialize() {\n\t\t$fields = get_object_vars($this);\n\t\t$fields[\"eventStartDate\"] = intval($this->eventStartDate->format(\"U\")) * 1000;\n\t\t$fields[\"eventEndDate\"] = intval($this->eventEndDate->format(\"U\")) * 1000;\n\t\treturn($fields);\n\t}", "function jsonSerialize()\n {\n return [\n 'meta' => [\n 'offset' => $this->page->getOffset(),\n 'limit' => $this->page->getLimit(),\n 'total' => $this->total,\n ],\n 'data' => $this->results,\n ];\n }", "public function toJson();", "public function toJson();", "public function jsonSerialize()\n {\n $json = array();\n $json['driverId'] = $this->driverId;\n $json['endMs'] = $this->endMs;\n $json['groupId'] = $this->groupId;\n $json['startMs'] = $this->startMs;\n\n return $json;\n }", "function jsonSerialize()\n {\n return [\n 'id' => $this->getId(),\n 'duration' => $this->getDuration(),\n 'name' => $this->getName()\n ];\n }", "public function jsonSerialize()\n {\n return ['environment' => $this->environment,'stepResults' => $this->stepResults, 'duration' => number_format($this->duration,2),'message' => $this->message];\n }", "public function jsonSerialize()\n {\n $json = array();\n $json['id'] = $this->id;\n $json['owner'] = $this->owner;\n $json['applicationId'] = $this->applicationId;\n $json['time'] = $this->time;\n $json['segmentCount'] = $this->segmentCount;\n $json['direction'] = $this->direction;\n $json['to'] = $this->to;\n $json['from'] = $this->from;\n $json['media'] = $this->media;\n $json['text'] = $this->text;\n $json['tag'] = $this->tag;\n\n return $json;\n }", "function jsonSerialize()\n {\n\n $this->points = array_reverse($this->points);\n\n for ($i=0; $i< count($this->points); $i++) {\n foreach ($this->points[$i] as $key => $value) {\n if ($key == \"LOCATION_ID\")\n continue;\n\n if ($key == 'time')\n $this->points[$i][$key] = strtotime($this->points[$i][$key]) * 1000;\n else\n $this->points[$i][$key] = round($this->points[$i][$key], 2);\n }\n }\n return $this->points;\n/*\n\n $lines = [];\n foreach ($this->points as $point) {\n $i = 0;\n foreach ($point as $key => $value) {\n if ($key == \"LOCATION_ID\")\n continue;\n\n if (!isset($lines[$i])) {\n $lines[$i] = [];\n }\n\n if ($key == 'time')\n $lines[$i][] = strtotime($point['time']) * 1000;\n else\n $lines[$i][] = round($point[$key], 2);\n\n $i++;\n }\n }\n return $lines;*/\n }", "public function to_array()\r\n {\r\n $d = array();\r\n if($this->start) {\r\n $d['start'] = PiplApi_Utils::piplapi_date_to_str($this->start);\r\n }\r\n if($this->end){\r\n $d['end'] = PiplApi_Utils::piplapi_date_to_str($this->end);\r\n }\r\n return $d;\r\n }", "public function jsonSerialize(){\n if( ! $this->isPersisted() ){\n $properties = (object) get_object_vars($this);\n unset($properties->id);\n return $properties;\n }\n $properties = (object) get_object_vars($this);\n $properties->startUTC = $properties->startUTC->format('c');\n $properties->endUTC = $properties->endUTC->format('c');\n $properties->repeatEndUTC = !is_null($properties->repeatEndUTC) ? $properties->repeatEndUTC->format('c') : null;\n $properties->weeklyDays = is_null($properties->weeklyDays) ? array() :\n // All this does is cast the exploded values from strings to integers\n array_map(function($day){ return (int)$day; }, explode(',',$properties->weeklyDays));\n return $properties;\n }", "public function json(){ return json_encode( $this->objectify() ); }", "public function buildJson();", "public function jsonSerialize()\n {\n return [\n 'x' => $this->x,\n 'y' => $this->y,\n ];\n }", "function jsonSerialize()\n {\n\n $clone = $this->getArrayCopy();\n\n if(count($this) == 0)\n return $clone;\n\n $clone['departure'] = $this['departure']->format('Y-m-d H:i:00');\n $clone['arrival'] = $this['arrival']->format('Y-m-d H:i:00');\n return $clone;\n }", "public function getJson() {\n\t\t\treturn json_encode($this->getIterator());\n\t\t}", "public function getJson() {\n\t\t\treturn json_encode($this->getIterator());\n\t\t}", "public function getJson() {\n\t\t\treturn json_encode($this->getIterator());\n\t\t}", "public function jsonSerialize()\n {\n return [\n \"str\"=>$this->getStr(),\n 'total' => $this->getTotal()\n ];\n }", "public function toArray()\n {\n $objectArray = get_object_vars($this);\n\n //Specific data\n if (null !== $objectArray['dateStart']) {\n $objectArray['dateStart'] = $objectArray['dateStart']->format('Y-m-d');\n $objectArray['dateEnd'] = $this->getDateStart()->add(new DateInterval('P7D'))->format('Y-m-d');\n }\n\n return $objectArray;\n }", "function jsonSerialize()\n\t{\n\t\treturn [\n\t\t\t'key' => $this->key,\n\t\t\t'stage' => $this->targetStep->stepId,\n\t\t\t'name' => $this->name\n\t\t];\n\t}", "public function __toString()\n {\n return get_called_class()\n . \"[\"\n . \"start={$this->getStart()},\"\n . \"end={$this->getEnd()}\"\n . \"]\";\n }", "public function toJSON () {\r\n \treturn json_encode($this->_response);\r\n }", "public function getTagsByBeginAction($begin) {\n $output = new JsonResponse();\n $output->setData($this->get('ebmkm.tag')->getTagsByBeginning($begin));\n return $output;\n }", "function toJSON() {\r\n $unjsoned = array();\r\n \r\n $schedules = $this->has_schedules();\r\n $assignments = BPSP_Assignments::has_assignments();\r\n $entries = array_merge( $assignments, $schedules );\r\n foreach ( $entries as $e ) {\r\n setup_postdata( $e );\r\n if( $e->post_type == \"schedule\" )\r\n $entry = array(\r\n \"id\" => get_the_ID(),\r\n \"title\" => get_the_title( $e->ID ),\r\n \"start\" => date( 'c', strtotime( $e->start_date ) ),\r\n \"end\" => date( 'c', strtotime( $e->end_date ) ),\r\n \"url\" => $e->permalink,\r\n );\r\n elseif( $e->post_type == \"assignment\" )\r\n $entry = array(\r\n \"id\" => get_the_ID(),\r\n \"title\" => get_the_title( $e->ID ),\r\n \"start\" => date( 'c', strtotime( $e->due_date ) ),\r\n \"end\" => date( 'c', strtotime( $e->due_date ) ),\r\n \"url\" => $e->permalink,\r\n );\r\n \r\n if( !empty( $entry['end'] ) )\r\n $entry['allDay'] = false;\r\n \r\n $unjsoned[] = $entry;\r\n }\r\n \r\n header(\"HTTP/1.1 200 OK\");\r\n die( json_encode( $unjsoned ) );\r\n }", "public function jsonSerialize()\n {\n $json = array();\n $json['width'] = $this->width;\n $json['height'] = $this->height;\n $json['length'] = $this->length;\n\n return $json;\n }", "public function jsonSerialize()\n {\n $json = array();\n $json['service_id'] = $this->serviceId;\n $json['date_recurs_by'] = $this->dateRecursBy;\n $json['days'] = $this->days;\n $json['end_date'] = $this->endDate;\n $json['end_time'] = $this->endTime;\n $json['frequency'] = $this->frequency;\n $json['occurrence'] = $this->occurrence;\n $json['recurs_by'] = $this->recursBy;\n $json['resource_id'] = $this->resourceId;\n $json['start_date'] = $this->startDate;\n $json['start_time'] = $this->startTime;\n $json['total_minutes'] = $this->totalMinutes;\n $json['user_id'] = $this->userId;\n\n return $json;\n }", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize(): mixed\n {\n $result = [\n 'pagination' => [\n 'total' => $this->total,\n 'offset' => $this->offset !== null ? $this->offset : 0,\n 'limit' => $this->limit,\n ],\n 'entities' => [],\n ];\n\n foreach ($this->entities as $entity) {\n $result['entities'][] = new $this->entityClass($entity);\n }\n\n return $result;\n }", "function list_data($start=\"\",$end=\"\")\n { \n $filter = array(); \n if($start!=\"\")\n {\n $filter = array(\n \"start\" => array( \n '$gte'=> $this->mongo_db->time((double) strtotime($start.\" 00:00:00\")), \n '$lt'=> $this->mongo_db->time((double) strtotime($end.\" 23:59:59\"))\n )\n );\n }\n $output['success'] = FALSE;\n $ceklogin = $this->cek_session->islogin();\n $output['logged_in'] = $ceklogin;\n if($ceklogin)\n { \n $this->mongo_db->select_db(\"Articles\");\n $this->mongo_db->select_collection(\"Event\"); \n $tempdata = $this->mongo_db->find($filter,0,0,array(\"start\"=>-1));\n $output['count'] = (int)$this->mongo_db->count2($filter);\n if($tempdata)\n {\n $output['success'] = TRUE;\n $listdata = array();\n foreach($tempdata as $dt)\n {\n $listdata[] = array(\n \"id\" => (string)$dt['_id'],\n \"allDay\" => (bool)$dt['allDay'],\n \"title\" => $dt['title'],\n \"color\" => $dt['color'],\n \"description\" => $dt['description'],\n \"url\" => $dt['url'],\n \"start_date\" => date('Y-m-d',$dt['start']->sec),\n \"start_time\" => date('H:i:s',$dt['start']->sec),\n \"end_date\" => date('Y-m-d',$dt['end']->sec),\n \"end_time\" => date('H:i:s',$dt['end']->sec),\n \"picture\" => $dt['picture'],\n \"url_picture\" => $this->config->item('path_asset_img') . \"preview_images/\" . $dt['picture']\n );\n } \n $output['data'] = $listdata;\n }\n }\n echo json_encode($output);\n }", "public function jsonSerialize() {\n\t\t$fields = get_object_vars($this);\n\t\t//format the data so that the front end can consume it\n\t\t$fields[\"voteDateTime\"] = round(floatval($this->voteDateTime->format(\"U.u\")) * 1000);\n\t\treturn ($fields);\n\t}", "public function to_json()\n {\n }", "public function to_json()\n {\n }", "public function to_json()\n {\n }", "public function to_json()\n {\n }", "public function to_json()\n {\n }", "public function to_json()\n {\n }", "public function to_json()\n {\n }", "public function to_json()\n {\n }", "public function to_json()\n {\n }", "public function getStart(): array;", "public function jsonSerialize()\n {\n return array('title' => $this->title,\n 'size' => $this->size,\n 'unit_price' => $this->unitPrice,\n 'description' => $this->description);\n }", "public function jsonize()\n {\n return json_encode($this->toArray());\n }", "public function jsonSerialize()\n\t{\n\t\treturn array(\n\t\t\t'count' => $this->count, \n\t\t\t'objects' => $this->tableObjects\n\t\t\t);\n }", "public function to_json()\n {\n return json_encode($this->body);\n\t}", "public function toJson(){\n\t\t$array = $this->toArray();\n\t\treturn json_encode($array);\n\t}", "public function jsonSerialize()\r\n {\r\n $json = array();\r\n $json['id'] = $this->id;\r\n $json['source'] = $this->source;\r\n $json['location_id'] = $this->locationId;\r\n $json['name'] = $this->name;\r\n $json['total_ratings'] = $this->totalRatings;\r\n $json['average_rating'] = $this->averageRating;\r\n $json['stars'] = $this->stars;\r\n $json['type_id'] = $this->typeId;\r\n $json['meta_no_index'] = $this->metaNoIndex;\r\n $json['owner_id'] = $this->ownerId;\r\n $json['trip_id'] = $this->tripId;\r\n $json['address1'] = $this->address1;\r\n $json['address2'] = $this->address2;\r\n $json['postcode'] = $this->postcode;\r\n $json['telephone'] = $this->telephone;\r\n $json['url'] = $this->url;\r\n $json['description'] = $this->description;\r\n $json['longitude'] = $this->longitude;\r\n $json['latitude'] = $this->latitude;\r\n $json['num_rooms'] = $this->numRooms;\r\n $json['redirect_accommodation_id'] = $this->redirectAccommodationId;\r\n $json['redirect_id'] = $this->redirectId;\r\n $json['page_url'] = $this->pageUrl;\r\n $json['binary_options'] = $this->binaryOptions;\r\n $json['desc_overview'] = $this->descOverview;\r\n $json['desc_room_information'] = $this->descRoomInformation;\r\n $json['desc_facilities'] = $this->descFacilities;\r\n $json['desc_food_drink'] = $this->descFoodDrink;\r\n $json['date_created'] = $this->dateCreated;\r\n $json['date_updated'] = $this->dateUpdated;\r\n $json['date_removed'] = $this->dateRemoved;\r\n\r\n return $json;\r\n }", "function jsonSerialize()\n\t{\n\t\treturn [\n\t\t\t'id' => $this->getId(),\n\t\t\t'metadata' => $this->getMetadata()\n\t\t];\n\t}", "public function jsonSerialize()\n {\n $json = array();\n $json['changedAtMs'] = $this->changedAtMs;\n $json['tempInMilliC'] = $this->tempInMilliC;\n\n return $json;\n }", "function __toString(): string {\n\t\treturn \"{$this->start} - {$this->end}\";\n\t}", "public function toJson(): string;", "public function toJson(): string;", "public function jsonSerialize()\n {\n $arrayJson = array();\n foreach ($this as $key =>$value){\n if($key != 'document')\n $arrayJson[$key] = $value;\n }\n return $arrayJson;\n }", "public function jsonSerialize()\n {\n $json = array();\n $json['doc'] = $this->doc;\n\n return $json;\n }", "private function getJson($organism, $timestart, $timeend, $limit = 0) {\n //encode indicator data\n return json_encode($this->getData($organism, $timestart, $timeend, $limit));\n }", "public function jsonSerialize(){\n return [\n \"name\" => $this->getName(),\n \"location\" => $this->getLocation()\n ];\n }", "public function as_podcastindex_json()\n {\n $data = array_map(function ($entry) {\n return [\n 'speaker' => $entry['voice'],\n 'startTime' => $entry['start_ms'] / 1000,\n 'endTime' => $entry['end_ms'] / 1000,\n 'body' => $entry['text']\n ];\n }, $this->get_data());\n\n return json_encode(['version' => '1.0.0', 'segments' => $data]);\n }", "public function _jsonSerialize();", "function createRangeStat($start, $end, $format = 'Y-m-d') {\n \t\tdate_default_timezone_set(\"Europe/London\");\n\t\t$start = new DateTime($start);\n\t\t$end = new DateTime($end);\n\t\t$invert = $start > $end;\n\n\t\t$dates = array();\n\t\t$dates[] = $start->format($format);\n\t\twhile ($start != $end) {\n\t\t\t$start->modify(($invert ? '-' : '+') . '1 day');\n\t\t\t$dates[] = $start->format($format);\n\t\t}\n\t\treturn $dates;\n\t}", "public function __toString(): string\n {\n return \"{$this->start} to {$this->end}\";\n }", "function asJSON(){\n\t\t\treturn json_encode($this->asArray());\n\t\t}", "public function toJson() {\n\t\t$data = $this->getSerializeData();\n\n\t\treturn json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);\n\t}", "public function jsonSerialize()\n {\n return [\n 'name' => $this->name,\n 'number' => $this->number,\n 'title' => $this->title,\n 'nextcall' => $this->nextcall,\n 'action' => $this->action,\n 'call_id' => $this->call_id,\n 'activity' => $this->activity,\n 'edited' => $this->edited,\n 'created' => $this->created\n ];\n }", "public function jsonSerialize()\n {\n }", "public function jsonSerialize()\n {\n }", "public function jsonSerialize() {\n\t\t$fields = get_object_vars($this);\n\t\t$fields[\"todoDate\"] = round(floatval($this->gettodoDate()->format(\"U.u\") * 1000));\n\t\treturn ($fields);\n\t}", "public function jsonSerialize () {\n\t\t\treturn array('value' => $this->__toString(), 'id' => $this->intId );\n\t\t}", "public function jsonSerialize () {\n\t\t\treturn array('value' => $this->__toString(), 'id' => $this->intId );\n\t\t}", "public function jsonSerialize()\n {\n return [\n 'id' => $this->id,\n 'position' => $this->position,\n 'text' => $this->text,\n ];\n }", "public function toJSON()\n {\n return array(\n 'id' => $this->id,\n 'code_name' => $this->name,\n 'full_name' => $this->display_name,\n\n 'x' => $this->location_x,\n 'y' => $this->location_z,\n\n 'is_visible' => $this->is_visible,\n 'is_safe' => $this->is_safe,\n 'is_intersection' => $this->is_intersection,\n 'is_portal' => $this->is_portal\n );\n }", "public function toJson() {\n\t\treturn json_encode($this->jsonSerialize());\n\t}", "public function jsonSerialize()\r\n {\r\n $json = array();\r\n $json['destination'] = $this->destination;\r\n $json['hsCode'] = $this->hsCode;\r\n $json['source'] = $this->source;\r\n\r\n return $json;\r\n }", "public function toJSON(){\n return json_encode($this);\n }", "public function jsonSerialize() {\n\t\t$fields = get_object_vars($this);\n\t\t// format the date so that the front end can consume it\n\t\t$fields[\"reviewDateTime\"] = round(floatval($this->reviewDateTime->format(\"U.u\")) * 1000);\n\t\treturn ($fields);\n\t}", "public function toJson() {\n\t\tdebug($this);\n\t}", "public function jsonSerialize()\n {\n return [\n 'id'=> $this->id,\n 'nom'=> $this->nom,\n 'rue'=> $this->rue,\n 'latitude'=> $this->latitude,\n 'longitude'=> $this->longitude,\n 'ville'=> $this->ville,\n ];\n }", "public function toJson()\n\t{\n\t\treturn json_encode($this->data());\n\t}", "public function toObject(){\r\n return json_decode($this->toJson());\r\n }", "public function jsonSerialize()\n {\n return [\n 'fields' => $this->fields,\n 'entries' => $this->entries\n ];\n }", "public function jsonSerialize() {\r\r\n $array = [\r\r\n 'idLunch' => $this->getIdLunch(),\r\r\n 'oneEnterprise' => $this->getOneEnterprise()->getIdEnterprise(), \r\r\n 'onePurchasingFair' => $this->getOnePurchasingFair()->getIdPurchasingFair(), \r\r\n 'lunchesPlanned' => $this->getLunchesPlanned(), \r\r\n 'lunchesCanceled' => $this->getLunchesCanceled(), \r\r\n 'lunchesDetails' => $this->getLunchesDetails(),\r\r\n 'idParticipant' => $this->getIdParticipant()\r\r\n ];\r\r\n return $array;\r\r\n }", "public function toJson() {\n\t\treturn json_encode($this->toArray());\n\t}", "public function toJson()\n {\n return json_encode( $this->toArray() );\n }", "public function serialize() {\n return array( \n 'lat' => $this->getLat(),\n 'lon' => $this->getLong()\n );\n }", "public function toJson() {\n\t\t$data = array();\n\t\tforeach ($this->fields as $name => $field) {\n\t\t\t$data += [$name => $field->toJson()];\n\t\t}\n\t\t$top = array(\"success\"=>$this->getSuccess(),\"data\"=>$data,\"text\"=>$this->text);\n\t\treturn $top;\n\t}", "public function __toString()\n {\n $this->to = $this->_to;\n if (isset($this->_from)) {\n $this->from = $this->_from;\n }\n\n return $this->unescapeJSON(json_encode($this));\n }", "public function jsonSerialize()\n {\n $json = array();\n $json['uuid'] = $this->uuid;\n $json['updatedAt'] = DateTimeHelper::toRfc3339DateTime($this->updatedAt);\n $json['title'] = $this->title;\n $json['titleTranslated'] = $this->titleTranslated;\n $json['basePrice'] = $this->basePrice;\n $json['typeName'] = $this->typeName;\n $json['typeUuid'] = $this->typeUuid;\n $json['links'] = $this->links;\n $json['validFrom'] = $this->validFrom;\n $json['validThrough'] = isset($this->validThrough) ?\n DateTimeHelper::toSimpleDate($this->validThrough) : null;\n\n return $json;\n }", "function list_data($start_date=false,$end_date=false) {\n if(!$start_date)\n $start_date = date(\"Y-m\").'-01';\n if(!$end_date)\n $end_date = date(\"Y-m-d\");\n\n $list_data = $this->Sales_Invoices_model->get_details(array('start_date' => $start_date,'end_date' => $end_date))->result();\n $result = array();\n foreach ($list_data as $data) {\n $result[] = $this->_make_row($data);\n }\n echo json_encode(array(\"data\" => $result));\n }", "public function __toString(){\n return json_encode($this->json);\n }", "public function toJson()\n {\n return json_decode(json_encode($this->toArray()));\n }", "public static function generateJSON();", "public function jsonSerialize()\n {\n return $this->getBody(true);\n }" ]
[ "0.6889343", "0.6701645", "0.65143967", "0.5916348", "0.5827126", "0.5827126", "0.57765275", "0.5775196", "0.5738229", "0.5711419", "0.56690735", "0.56563604", "0.56383", "0.563226", "0.5625815", "0.5609264", "0.56091946", "0.5602312", "0.5602312", "0.5602312", "0.55724186", "0.5512002", "0.5498362", "0.54959524", "0.5492469", "0.5487416", "0.54873013", "0.5480932", "0.54729986", "0.54539853", "0.54539853", "0.54539853", "0.54539853", "0.54539853", "0.54539853", "0.54539853", "0.54539853", "0.54523116", "0.5396625", "0.53825116", "0.5377534", "0.5377534", "0.5377534", "0.5377534", "0.5377534", "0.5377534", "0.5377534", "0.5377534", "0.5377534", "0.536641", "0.5365698", "0.53648317", "0.53526425", "0.5350971", "0.53320575", "0.53300565", "0.53165984", "0.53096217", "0.5303199", "0.53031397", "0.53031397", "0.52959305", "0.52855766", "0.5283309", "0.52828246", "0.5280101", "0.5279248", "0.52591956", "0.5256919", "0.5252263", "0.5251689", "0.524607", "0.52438724", "0.52438724", "0.52428865", "0.52383894", "0.52383894", "0.5236905", "0.52336997", "0.52242035", "0.5218243", "0.52135843", "0.52124596", "0.5206626", "0.51942384", "0.5194052", "0.51898044", "0.5185037", "0.51806164", "0.51805806", "0.5179111", "0.51784533", "0.517707", "0.51742107", "0.5163912", "0.51630116", "0.5160533", "0.51563376", "0.5155284", "0.51513934" ]
0.7248712
0
Get a generator which yields each date in the range (inclusive of end points) as a JustDate object
public function each(): Generator { for ($day = $this->start; $day->isBeforeOrSameAs($this->end); $day = $day->nextDay()) { yield $day; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\r\n{\r\n $begin = new DateTime($startDate);\r\n $end = new DateTime($endDate);\r\n \r\n $interval = new DateInterval('P1D'); \r\n $dateRange = new DatePeriod($begin, $interval, $end);\r\n \r\n $range = [];\r\n \r\n for($i=$begin;$i<=$end;$i->modify('+1 day')) {\r\n $range[] = $i->format($format);\r\n \r\n }\r\n return $range; \r\n}", "function GetDates(DateRange $startingDates);", "function erp_get_dates_in_range($first, $last, $step = '+1 day', $output_format = 'Y-m-d' ) {\n\n $dates = array();\n $current = strtotime($first);\n $last = strtotime($last);\n\n while( $current <= $last ) {\n\n $dates[] = date($output_format, $current);\n $current = strtotime($step, $current);\n }\n\n return $dates;\n}", "public function dateRanges(): DateRangeCollection;", "function date_range($first, $last, $step = '+1 day', $output_format = 'd/m/Y' ) {\n\n $dates = array();\n $current = strtotime($first);\n $last = strtotime($last);\n\n while( $current <= $last ) {\n\n $dates[] = date($output_format, $current);\n $current = strtotime($step, $current);\n }\n\n return $dates;\n }", "function datePeriod_start_end($begin, $end)\n{\n $begin = new DateTime($begin);\n\n $end = new DateTime($end.' +1 day');\n\n $daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);\n\n foreach ($daterange as $date) {\n $dates[] = $date->format(\"Y-m-d\");\n }\n return $dates;\n}", "public function eachExceptEnd(): Generator\n {\n for ($day = $this->start; $day->isBefore($this->end); $day = $day->nextDay()) {\n yield $day;\n }\n }", "function dateRange($begin, $end, $interval = null){\n $begin = new DateTime($begin);\n $end = new DateTime($end);\n // Because DatePeriod does not include the last date specified.\n $end = $end->modify('+1 day');\n $interval = new DateInterval($interval ? $interval : 'P1D');\n\n return iterator_to_array(new DatePeriod($begin, $interval, $end));\n}", "function getDatesFromRange($start, $end, $format = 'Y-m-d') { \n \n // Declare an empty array \n $array = array(); \n \n // Variable that store the date interval \n // of period 1 day \n $interval = new DateInterval('P1D'); \n \n $realEnd = new DateTime($end); \n $realEnd->add($interval); \n \n $period = new DatePeriod(new DateTime($start), $interval, $realEnd); \n \n // Use loop to store date into array \n foreach($period as $date) { \n $array[] = $date->format($format); \n } \n \n // Return the array elements \n return $array; \n}", "public function getIteratorProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n $expect[0] = [\n $start[0],\n ($start[0])->add(new DateIntervalObject('P1M')),\n ($start[0])->add(new DateIntervalObject('P2M')),\n ($start[0])->add(new DateIntervalObject('P3M')),\n ($start[0])->add(new DateIntervalObject('P4M')),\n ($start[0])->add(new DateIntervalObject('P5M')),\n ];\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n $expect[1] = [\n ($start[1])->add(new DateIntervalObject('P1M')),\n ($start[1])->add(new DateIntervalObject('P2M')),\n ($start[1])->add(new DateIntervalObject('P3M')),\n ($start[1])->add(new DateIntervalObject('P4M')),\n ($start[1])->add(new DateIntervalObject('P5M')),\n ];\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n $expect[2] = [\n $start[2],\n ($start[2])->add(new DateIntervalObject('P1M')),\n ($start[2])->add(new DateIntervalObject('P2M')),\n ($start[2])->add(new DateIntervalObject('P3M')),\n ($start[2])->add(new DateIntervalObject('P4M')),\n ($start[2])->add(new DateIntervalObject('P5M')),\n ($start[2])->add(new DateIntervalObject('P6M')),\n ($start[2])->add(new DateIntervalObject('P7M')),\n ($start[2])->add(new DateIntervalObject('P8M')),\n ($start[2])->add(new DateIntervalObject('P9M')),\n ];\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[3] = new DateObject('2021-05-01');\n $end[3] = 9;\n $interval[3] = new DateIntervalObject('P1M');\n $option[3] = DatePeriod::EXCLUDE_START_DATE;\n $expect[3] = [\n ($start[3])->add(new DateIntervalObject('P1M')),\n ($start[3])->add(new DateIntervalObject('P2M')),\n ($start[3])->add(new DateIntervalObject('P3M')),\n ($start[3])->add(new DateIntervalObject('P4M')),\n ($start[3])->add(new DateIntervalObject('P5M')),\n ($start[3])->add(new DateIntervalObject('P6M')),\n ($start[3])->add(new DateIntervalObject('P7M')),\n ($start[3])->add(new DateIntervalObject('P8M')),\n ($start[3])->add(new DateIntervalObject('P9M')),\n ];\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n $expect\n ) {\n return [\n $start,\n $interval,\n $end,\n $option,\n $expect,\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n $expect,\n );\n }", "function getDatesFromRange($start, $end, $format = 'Y-m-d') {\r\n $array = array();\r\n // Variable that store the date interval\r\n // of period 1 day\r\n $interval = new DateInterval('P1D');\r\n $realEnd = new DateTime($end);\r\n $realEnd->add($interval);\r\n $period = new DatePeriod(new DateTime($start), $interval, $realEnd);\r\n // Use loop to store date into array\r\n foreach($period as $date) {\r\n $array[] = $date->format($format);\r\n }\r\n // Return the array elements\r\n return $array;\r\n}", "function createRangeStat($start, $end, $format = 'Y-m-d') {\n \t\tdate_default_timezone_set(\"Europe/London\");\n\t\t$start = new DateTime($start);\n\t\t$end = new DateTime($end);\n\t\t$invert = $start > $end;\n\n\t\t$dates = array();\n\t\t$dates[] = $start->format($format);\n\t\twhile ($start != $end) {\n\t\t\t$start->modify(($invert ? '-' : '+') . '1 day');\n\t\t\t$dates[] = $start->format($format);\n\t\t}\n\t\treturn $dates;\n\t}", "function dateRange($first, $last, $format = 'm/d/Y' ) { \n\t$dates = array();\n\t$current = strtotime($first);\n\t$last = strtotime($last);\n\n\twhile( $current <= $last ) { \n\t\t$dates[] = date($format, $current);\n\t\t$current = strtotime('+1 day', $current);\n\t}\n\t\n\treturn $dates;\n}", "function findDatesFromDateRange($dateStart, $dateEnd){\r\n $foundDates = array($dateStart);\r\n while(end($foundDates) < $dateEnd){\r\n $foundDates[] = date('Y-m-d', strtotime(end($foundDates).' +1 day'));\r\n }\r\n// Array of foundDates\r\nreturn $foundDates;\r\n}", "function getDatesFromRange($start, $end, $format = 'Y-m-d')\n {\n $array = array();\n $interval = new \\DateInterval('P1D');\n $realEnd = new \\DateTime($end);\n $realEnd->add($interval);\n $period = new \\DatePeriod(new \\DateTime($start), $interval, $realEnd);\n foreach ($period as $date) {\n $array[] = $date->format($format);\n }\n\n return $array;\n }", "public function createFromDatePeriodProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = 9;\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n ) {\n return [\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n $option,\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n );\n }", "public function testDateIntegrity()\n {\n $chunker = new NbpApiDateRangeChunker();\n\n $chunks = $chunker->chunk(new \\DateTime('2007-03-18'), new \\DateTime('2017-03-18'));\n $this->assertCount(10, $chunks);\n\n $chunks = $chunker->chunk(new \\DateTime('2007-03-18'), new \\DateTime('2017-03-19'));\n $this->assertCount(11, $chunks);\n\n for ($i = 0, $chunkCount = count($chunks); $i < $chunkCount; $i++) {\n $this->assertTrue($chunks[$i]['from'] < $chunks[$i]['to']);\n\n //each date range except last one should be exaclty one year long\n if ($i != $chunkCount - 1) {\n $this->assertEquals(1, $chunks[$i]['from']->diff($chunks[$i]['to'])->y);\n }\n }\n }", "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\n {\n $begin = new DateTime($startDate);\n $end = new DateTime($endDate);\n\n $interval = new DateInterval('P1D'); // 1 Day\n $dateRange = new DatePeriod($begin, $interval, $end);\n\n $range = [];\n foreach ($dateRange as $date) {\n $range[] = $date->format($format);\n }\n array_push($range, $endDate);\n return $range;\n }", "private function generateDateRange(Carbon $start_date, DateInterval $interval, int $recurrences, int $exclusive = 1): array\n {\n $period = new DatePeriod($start_date, $interval, $recurrences, $exclusive);\n $dates = collect();\n\n foreach ($period as $date) {\n $dates->push($date->format('Y-m-d'));\n }\n\n return $dates->toArray();\n }", "public function toDateTimeRange()\n {\n $minDateTime = new \\DateTime();\n $minDateTime->setDate($this->year, $this->month ?? 1, $this->day ?? 1);\n $minDateTime->setTime($this->hours ?? 0, $this->minutes ?? 0, $this->seconds ?? 0, 0);\n\n /*\n * Calculating maximum date\n */\n $maxDateTime = new \\DateTime();\n if ($this->month === null) {\n $maxDateTime->setDate($this->year + 1, 1, 0);\n } elseif ($this->month !== null && $this->day === null) {\n $maxDateTime->setDate($this->year, $this->month + 1, 0);\n } elseif ($this->month !== null && $this->day !== null) {\n $maxDateTime->setDate($this->year, $this->month, $this->day);\n }\n\n $maxDateTime->setTime($this->hours ?? 23, $this->minutes ?? 59, $this->seconds ?? 59, 999999);\n\n return new DateTimeRange($minDateTime, $maxDateTime);\n }", "function fechas($start, $end) {\n\t\t$range = array();\n\t\n\t\tif (is_string($start) === true) $start = strtotime($start);\n\t\tif (is_string($end) === true ) $end = strtotime($end);\n\t\n\t\tif ($start > $end) return createDateRangeArray($end, $start);\n\t\n\t\tdo {\n\t\t\t$range[] = date('Y-m-d', $start);\n\t\t\t$start = strtotime(\"+ 1 day\", $start);\n\t\t} while($start <= $end);\n\t\n\t\treturn $range;\n\t}", "public function rangesToDates(){\n //Rangos::\n }", "function the_date_range($start_dt,$end_dt, $one_day = false){\r\n\t\r\n\t$duration = $start_dt->diff($end_dt);\r\n\t$start = explode(\" \",$start_dt->format('l F j Y g i a'));\r\n\t$end = explode(\" \",$end_dt->format('l F j Y g i a'));\r\n\t\r\n\t//happening at the same time\r\n\tif($start == $end){\r\n\t\treturn array(\r\n\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\"%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2] //day of month\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\teo_is_all_day() ? 'all day' : time_compact_ap_format($start[4],$start[5],$start[6])\r\n\t\t);\r\n\t}\t\r\n\t//happening on the same day\r\n\telseif($start[2] == $end[2] || ($duration->days < 1 && $duration->h < 24)){\r\n\t\t//Monday, March 4; 9:00 p.m.\r\n\t\treturn array(\r\n\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\"%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2] //day of month\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\teo_is_all_day() ? 'all day' : sprintf(\r\n\t\t\t\t\"%s&ndash;%s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\t //formatted date\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n\t//happening in the same month\r\n\t//check if happening all day; if not, return eo_all_day ? : \r\n\telseif($start[1] == $end[1]){\r\n\t\treturn (eo_is_all_day() || $one_day) ? \r\n\t\tsprintf(\r\n\t\t\t\"%s %s&ndash;%s\",\r\n\t\t\t$start[1], //month\r\n\t\t\t$start[2], //day of month\r\n\t\t\t$end[2]\r\n\t\t)\r\n\t\t: \r\n\t\tarray(\r\n\t\t\t\"date\" => sprintf(\r\n\t\t\t\t\"%s %s&ndash;%s\",\r\n\t\t\t\t$start[1],\r\n\t\t\t\t$start[2],\r\n\t\t\t\t$end[2]\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\"datetime\" => sprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t$start[1],\r\n\t\t\t\t$start[2],\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\tsprintf(\r\n\t\t\t\t\"%s&ndash;%s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\t//happening in the same year\r\n\telseif($start[3] == $end[3]){\r\n\t\treturn (eo_is_all_day() || $one_day) ?\r\n\t\t\tsprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2], //day of month\r\n\t\t\t\t$end[0],\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\r\n\t\t\t)\r\n\t\t\t:\r\n\t\t\tarray(\r\n\t\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s %s&ndash;%s %s\",\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"datetime\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s, %s %s&ndash;%s, %s, %s %s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\t\"time\"\t=>\tsprintf(\"%s&ndash;%s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n\t//just plain happening\r\n\r\n\telse{\r\n\t\treturn (eo_is_all_day() || $one_day) ? \r\n\t\t\tsprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2], //day of month\r\n\t\t\t\t$end[0],\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\r\n\t\t\t)\r\n\t\t\t:\r\n\t\t\tarray(\r\n\t\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"datetime\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s, %s %s&ndash;%s, %s, %s %s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\t\"time\"\t=>\tsprintf(\"%s&ndash;%s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n}", "public static function eitherWayRound(JustDate $a, JustDate $b): DateRange\n {\n return new DateRange(JustDate::earliest($a, $b), JustDate::latest($a, $b));\n }", "function createDateArray($start_dt, $end_dt)\n\t{\n\t\t$arr_dates = array();\n\t\t$arr_dates[] = $start_dt = strtotime($start_dt);\n\t\twhile(1)\n\t\t{ \n\t\t\t$start_dt = strtotime(\"+1 day\", $start_dt);\n\t\t\tif($start_dt <= strtotime($end_dt))\n\t\t\t{\n\t\t\t\t$arr_dates[] = $start_dt;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $arr_dates;\n\t}", "static public function getRange($initialDate, $finalDate){\n\t\tif(!is_object($initialDate)){\n\t\t\t$initialDate = new Date($initialDate);\n\t\t}\n\t\tif(is_object($finalDate)){\n\t\t\t$finalDate = (string) $finalDate;\n\t\t}\n\t\t$initialTime = $initialDate->getTimestamp();\n\t\t$date = (string) $initialDate;\n\t\t$range = array($date);\n\t\twhile($date!=$finalDate){\n\t\t\t$initialTime+=86400;\n\t\t\t$date = date('Y-m-d', $initialTime);\n\t\t\t$range[] = $date;\n\t\t}\n\t\treturn $range;\n\t}", "function getAllDates($from,$to)\n{\n $dates = array();\n $fromdate = new DateTime($from);\n $todate = new DateTime($to);\n $datePeriod = new \\DatePeriod(\n $fromdate,\n new \\DateInterval('P1D'),\n $todate->modify('+1 day')\n );\n \n \n foreach($datePeriod as $date) {\n $dates[] = $date->format('Y-m-d');\n } \n \n return $dates;\n}", "private function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n}", "public function dates()\n {\n if ($this->isRange()) {\n return $this->range;\n }\n\n return $this->date;\n }", "public function toDatePeriodBackwards(Period|Duration|DateInterval $duration, int $option = 0): iterable\n {\n $duration = self::filterDuration($duration);\n $date = $this->endDate;\n if (DatePeriod::EXCLUDE_START_DATE === ($option & DatePeriod::EXCLUDE_START_DATE)) {\n $date = $this->endDate->sub($duration);\n }\n\n while ($date > $this->startDate) {\n yield $date;\n $date = $date->sub($duration);\n }\n }", "public function _constructProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = 9;\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n ) {\n return [\n $start,\n $interval,\n $end,\n $option,\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n );\n }", "function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n}", "public function testGetStartDate() {\n $now = new \\DateTimeImmutable('2019-09-15');\n $next_month = new \\DateTime('2019-10-15');\n\n // No date values:\n $line_item = $this->lineItemStub([], ['interval_unit' => 'monthly']);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEmpty($date);\n\n // Day of month:\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'monthly',\n 'day_of_month' => '5',\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('05', $date->format('d'));\n $this->assertTrue($date > $now);\n\n // Month:\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'yearly',\n 'month' => '5',\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('05', $date->format('m'));\n $this->assertTrue($date > $now);\n\n // Start date in the future:\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'yearly',\n 'start_date' => $next_month,\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEquals($date->format('Y-m-d'), $next_month->format('Y-m-d'));\n\n // Start date in the past:\n $last_month = new \\DateTime('2019-08-15');\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'yearly',\n 'start_date' => $last_month,\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertNotEquals($date->format('Y-m-d'), $last_month->format('Y-m-d'));\n $this->assertTrue($date > $now);\n\n // Start date + day of month + interval value:\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'monthly',\n 'interval_value' => '3',\n 'start_date' => new \\DateTime('2019-10-10'),\n 'day_of_month' => '1',\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEquals($date->format('Y-m-d'), '2019-11-01');\n\n // Start date + day of month + month + interval value:\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'monthly',\n 'interval_value' => '3',\n 'start_date' => new \\DateTime('2019-10-10'),\n 'day_of_month' => '1',\n 'month' => '9',\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('2019-12-01', $date->format('Y-m-d'));\n\n // Weekly: everything but start date shouldn't matter.\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'weekly',\n 'interval_value' => '3',\n 'start_date' => new \\DateTime('2019-10-10'),\n 'day_of_month' => '1',\n 'month' => '9',\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEquals($date->format('Y-m-d'), '2019-10-10');\n }", "function date_list( $from_date, $to_date )\n {\n $from_time = strtotime(\"midnight\", is_numeric($from_date) ? $from_date : strtotime($from_date));\n $to_time = strtotime(\"midnight\", is_numeric($to_date ) ? $to_date : strtotime($to_date ));\n\n $dates = array();\n while( $from_time <= $to_time )\n {\n $dates[] = date(\"Y-m-d\", $from_time);\n $from_time = strtotime(\"+1 day\", $from_time);\n }\n\n return $dates;\n }", "public function split($interval)\n {\n $startDate = $this->startDate;\n $interval = static::filterDateInterval($interval);\n do {\n $endDate = $startDate->add($interval);\n if ($endDate > $this->endDate) {\n $endDate = $this->endDate;\n }\n yield new static($startDate, $endDate);\n\n $startDate = $endDate;\n } while ($startDate < $this->endDate);\n }", "public function split($interval)\n {\n $startDate = $this->startDate;\n $interval = static::filterDateInterval($interval);\n do {\n $endDate = $startDate->add($interval);\n if ($endDate > $this->endDate) {\n $endDate = $this->endDate;\n }\n yield new static($startDate, $endDate);\n\n $startDate = $endDate;\n } while ($startDate < $this->endDate);\n }", "function createDateRangeArray($strDateFrom, $strDateTo) {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry\n\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange, date('Y-m-d', $iDateFrom));\n }\n }\n return $aryRange;\n}", "function erp_extract_dates( $start_date, $end_date ) {\n // if start date has no time set, then add 00:00:00 or 12:00 AM\n if ( ! preg_match( '/\\d{2}:\\d{2}:\\d{2}$/', $start_date ) ) {\n $start_date = $start_date . ' 00:00:00';\n }\n\n // if end date has no time set, then add 23:59:59 or 11:59 PM\n if ( ! preg_match( '/\\d{2}:\\d{2}:\\d{2}$/', $end_date ) ) {\n $end_date = $end_date . ' 23:59:59';\n }\n\n if ( $start_date > $end_date ) {\n $temp = $start_date;\n $start_date = $end_date;\n $end_date = $temp;\n }\n\n $start_date = new DateTime( $start_date );\n $end_date = new DateTime( $end_date );\n $diff = $start_date->diff( $end_date );\n\n // we got a negative date\n if ( $diff->invert ) {\n return new WP_Error( 'invalid-date', __( 'Invalid date provided', 'erp' ) );\n }\n\n $interval = DateInterval::createFromDateString( '1 day' );\n $period = new DatePeriod( $start_date, $interval, $end_date );\n\n // prepare the periods\n $dates = array();\n foreach ( $period as $dt ) {\n $dates[] = $dt->format( 'Y-m-d' );\n }\n\n return $dates;\n}", "public function generate() {\r\n\t\t$busyEvents = new ArrayCollection ();\r\n\t\t\r\n\t\t// start time\r\n\t\t$startTime = $this->getStartTime ();\r\n\t\t$startTime_hour = $startTime->getHour ();\r\n\t\t$startTime_minute = $startTime->getMinute ();\r\n\t\t$startTime_second = $startTime->getSecond ();\r\n\t\t\r\n\t\t// end time\r\n\t\t$endTime = $this->getEndTime ();\r\n\t\t$endTime_hour = $endTime->getHour ();\r\n\t\t$endTime_minute = $endTime->getMinute ();\r\n\t\t$endTime_second = $endTime->getSecond ();\r\n\t\t\r\n\t\t// time slot start date\r\n\t\t$timeSlot = $this->getTimeSlot ();\r\n\t\t$startDate = $timeSlot->getStartDate ();\r\n\t\t$startDate_year = $startDate->getYear ();\r\n\t\t$startDate_month = $startDate->getMonth ();\r\n\t\t$startDate_day = $startDate->getDay ();\r\n\t\t\r\n\t\t// days\r\n\t\t$days = $this->getDays ();\r\n\t\t\r\n\t\t$j = ($startTime->is_greater_or_equal($endTime)) ? 1 : 0;\r\n\t\t\r\n\t\t//debug\r\n\t\t//echo 'j = ' . $j . ' $startTime : '. $startTime. ' $endTime : '. $endTime. '<br><br>';\r\n\t\t\r\n\t\t$floor_days = $timeSlot->duration ()->floor_days ();\r\n\t\t\r\n\t\tfor($i = -1; $i <= $floor_days; $i ++) {\r\n\t\t\t$current_startDate = new CalendarDate ( $startDate_year, $startDate_month, $startDate_day + $i, $startTime_hour, $startTime_minute, $startTime_second );\r\n\t\t\t// $current_startDate_next_day = clone $current_startDate;\r\n\t\t\t// $current_startDate_next_day->modify('tomorrow');\r\n\t\t\t$add_condition = $days->contains ( $current_startDate->format ( 'l' ) );\r\n\t\t\t// || (($j == 1) && $days->contains ( $current_startDate_next_day->format ( 'l' ) ))\r\n\t\t\t\r\n\t\t\tif ($add_condition) {\r\n\t\t\t\t$current_endDate = new CalendarDate ( $startDate_year, $startDate_month, $startDate_day + $i + $j, $endTime_hour, $endTime_minute, $endTime_second );\r\n\t\t\t\t$current_event = new CalendarEvent ( $current_startDate, $current_endDate );\r\n\t\t\t\t$busyEvents->add ( $current_event );\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $busyEvents;\r\n\t}", "public static function range($lowerBound, $upperBound, $unit = DAY) {\n\t\t\tif(is_string($lowerBound)) {\n\t\t\t\t$lowerBound = strtotime($lowerBound);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(empty($upperBound)) {\n\t\t\t\t$upperBound = self::now();\n\t\t\t}\n\t\t\t\n\t\t\tif(is_string($upperBound)) {\n\t\t\t\t$upperBound = strtotime($upperBound);\n\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t$range = range($lowerBound, $upperBound, $unit);\n\t\t\t\n\t\t\treturn array_map(function($date) { return date('Y-m-d', $date); }, $range);\n\t\t}", "public function getDateRange()\n {\n return $this->date_range;\n }", "function createDateRangeArray($strDateFrom, $strDateTo) {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange, date('Y-m-d', $iDateFrom));\n }\n }\n return $aryRange;\n}", "public static function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\n {\n $begin = new \\DateTime($startDate);\n\n $_end = self::dateAdd($endDate, UnitDay::DAY, 1);\n\n $end = new \\DateTime($_end);\n\n $interval = new \\DateInterval('P1D'); // 1 Day\n $dateRange = new \\DatePeriod($begin, $interval, $end);\n\n $range = [];\n foreach ($dateRange as $date) {\n if ($format == null) {\n $range[] = $date;\n } else {\n $range[] = $date->format($format);\n }\n\n }\n\n\n return $range;\n }", "public static function getDatesFromRange(DateTime $start, DateTime $end): array\n {\n $array = [];\n\n // Variable that store the date interval\n // of period 1 day\n $interval = new DateInterval('P1D');\n\n $end->add($interval);\n\n $period = new DatePeriod($start, $interval, $end);\n\n // Use loop to store date into array\n foreach ($period as $date) {\n $array[] = $date;\n }\n\n // Return the array elements\n return $array;\n }", "function active_range() {\n\t\treturn new DateRange(\n\t\t\t$this->attribute(\"start date\"),\n\t\t\t$this->attribute(\"end date\"),\n\t\t\t$this\n\t\t);\n\t}", "function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n $i=0;\n $aryRange=array();\n\n//$aryRange[] = array(\"DATA\"=>\"\");\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n// array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n// array_push($aryRange[\"DATA\"],date('Y-m-d',$iDateFrom)); // first entry\n$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom), 'KEY=>'.$i);\n$i=$i+1;\n\n//$array[] = $var;\n\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n// array_push($aryRange,date('Y-m-d',$iDateFrom));\n// array_push($aryRange[\"DATA\"],date('Y-m-d',$iDateFrom));\n//$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom));\n$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom), 'KEY=>'.$i);\n$i=$i+1;\n\n }\n }\n$aryRange=array_reverse($aryRange);\n\n return $aryRange;\n}", "function get_days($startdate,$enddate){\r\n\t$begin = new DateTime(date(\"Y-m-d\", strtotime($startdate)));\r\n$end = new DateTime(date(\"Y-m-d\", strtotime($enddate)));\r\n\r\n$daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);\r\n\r\nforeach($daterange as $date){\r\n $adays[] =$date->format(\"Y-m-d\");\r\n}\r\n$adays[] =date(\"Y-m-d\", strtotime($enddate)) ;\r\nreturn $adays; \r\n}", "function getDatesFromRange($start, $end, $format = 'Y-m-d') { \n $GLOBALS['labelDates'] = array();\n // Declare an empty array \n $dates = array(); \n \n // Variable that store the date interval \n // of period 1 day \n $interval = new DateInterval('P1D'); \n \n $realEnd = new DateTime($end); \n $realEnd->add($interval); \n \n $period = new DatePeriod(new DateTime($start), $interval, $realEnd); \n // Use loop to store date into array \n foreach($period as $date) { \n $dates[] = $date->format($format); \n if($date->format($format) == date('Y-m-d'))\n $GLOBALS['labelDates'][] = \"Today\";\n else\n $GLOBALS['labelDates'][] = $date->format('M-d');\n } \n $dates = array_reverse($dates) ;\n $GLOBALS['labelDates'] = array_reverse( $GLOBALS['labelDates']) ;\n\n \n \n // Return the array elements \n return $dates; \n }", "private function date_range(Carbon $from, Carbon $to, $inclusive = true)\n {\n if ($from->gt($to)) {\n return null;\n }\n\n // Clone the date objects to avoid issues, then reset their time\n $from = $from->copy()->startOfDay();\n $to = $to->copy()->startOfDay();\n\n // Include the end date in the range\n if ($inclusive) {\n $to->addDay();\n }\n\n $step = CarbonInterval::day();\n $period = new DatePeriod($from, $step, $to);\n\n // Convert the DatePeriod into a plain array of Carbon objects\n $range = [];\n\n foreach ($period as $day) {\n $range[] = new Carbon($day);\n }\n\n return ! empty($range) ? $range : null;\n }", "function DatesBetween($startDate, $endDate){\r\n\t$days = (strtotime($endDate) - strtotime($startDate)) / 86400 + 1;\r\n\t$startMonth = date(\"m\", strtotime($startDate));\r\n\t$startDay = date(\"d\", strtotime($startDate));\r\n\t$startYear = date(\"Y\", strtotime($startDate));\r\n\t$dates;//the array of dates to be passed back\r\n\tfor($i=0; $i<$days; $i++){\r\n\t\t$dates[$i] = date(\"m/d/Y\", mktime(0, 0, 0, $startMonth , ($startDay+$i), $startYear));\r\n\t}\r\n\treturn $dates;\r\n}", "function test_range() {\n\t\t// Check range\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2018, 1 );\n\t\t$this->assertEquals( '2018-01-01 00:00:00', $start );\n\t\t$this->assertEquals( '2018-01-31 23:59:59', $end );\n\t\t// Check leap year\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2004, 2 );\n\t\t$this->assertEquals( '2004-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '2004-02-29 23:59:59', $end );\n\t\t// Check exceptional leap year.\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 1900, 2 );\n\t\t$this->assertEquals( '1900-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '1900-02-28 23:59:59', $end );\n\t}", "private function getPostDateRange() {\n \n switch($this->validFilter['postDate']) {\n case 'today' :\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'yesterday':\n $dateStart = new \\DateTime('yesterday');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime('yesterday');\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'thisWeek':\n $today = new \\DateTime();\n if('Sunday' == $today->format('l')) {\n $dateStart = clone $today;\n $dateStart->modify('Monday last week');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = $today;\n $dateEnd->setTime(23, 59, 59);\n } else {\n $dateStart = clone $today;\n $dateStart->modify('Monday this week');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = clone $today;\n $dateEnd->modify('Sunday this week');\n $dateEnd->setTime(23, 59, 59);\n }\n break;\n\n case 'lastWeek':\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateStart->sub(new \\DateInterval('P7D'));\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'pastMonth':\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateStart->sub(new \\DateInterval('P1M'));\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n default :\n $dateStart = new \\DateTime($this->validFilter['postDate']);\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime($this->validFilter['postDate']);\n $dateEnd->setTime(23, 59, 59);\n break;\n } // end of switch\n \n return array($dateStart, $dateEnd);\n }", "public function get_dates($start_date,$end_date){\r\n\t $date1 = date_format(date_create($start_date), 'Y-m-d');\r\n\t $date2 = date_format(date_create($end_date), 'Y-m-d');\r\n\t\t$dates = $this->date_manager->getAllDatesBetweenTwoDates($date1,$date2);\r\n\t\t$dates2 = $this->date_manager->exclude_weekends($dates);\r\n\t\tforeach($dates2 as $dat){\r\n\t\t\t$dates3[] = date_format(date_create($dat), 'm/d/Y');\r\n\t\t\t}\r\n\t return $dates3;\r\n\t }", "public static function getRange($datetime, $opts = array())\n {\n $datetime = self::getDateTime($datetime);\n $opts = \\array_merge(array(\n 'range' => 'day', // hour, day, week, month, or year\n 'format' => null,\n 'weekStartDay'=> 0,\n ), $opts);\n $return = false;\n switch ($opts['range']) {\n case 'hour':\n $strStart = $datetime->format('Y-m-d H:00:00');\n $dateInterval = new \\DateInterval('PT1H');\n break;\n case 'day':\n $strStart = $datetime->format('Y-m-d');\n $dateInterval = new \\DateInterval('P1D');\n break;\n case 'week':\n $days = $datetime->format('w') - $opts['weekStartDay'];\n if ($days < 0) {\n $days = $days + 7;\n }\n $dtTemp = clone $datetime;\n $dtTemp->setTime(0, 0)->sub(new \\DateInterval('P'.$days.'D'));\n $strStart = $dtTemp->format('Y-m-d');\n $dateInterval = new \\DateInterval('P1W');\n break;\n case 'month':\n $strStart = $datetime->format('Y-m-01');\n $dateInterval = new \\DateInterval('P1M');\n break;\n case 'year':\n $strStart = $datetime->format('Y-01-01');\n $dateInterval = new \\DateInterval('P1Y');\n break;\n }\n $dtStart = new \\DateTime($strStart);\n $dtStartAtom = $dtStart->format(\\DateTime::ATOM);\n /*\n DateTimeImmutable is php 5.5\n (clone $datetime)->add() is a php 7 thing\n */\n $return = array(\n 'passed'=> $datetime,\n 'start' => $dtStart,\n 'end' => (new \\DateTime($dtStartAtom))\n ->add($dateInterval)\n ->sub(new \\DateInterval('PT1S')),\n 'prev' => (new \\DateTime($dtStartAtom))->sub($dateInterval),\n 'next' => (new \\DateTime($dtStartAtom))->add($dateInterval),\n 'minus' => (new \\DateTime($datetime->format(\\DateTime::ATOM)))->sub($dateInterval),\n 'plus' => (new \\DateTime($datetime->format(\\DateTime::ATOM)))->add($dateInterval),\n );\n if ($opts['range'] == 'month') {\n if ($return['plus']->format('j') !== $datetime->format('j')) {\n $return['plus']->modify('last day of last month');\n }\n if ($return['minus']->format('j') !== $datetime->format('j')) {\n $return['minus']->modify('last day of last month');\n }\n }\n return \\array_map(function ($datetime) use ($opts) {\n if (!$opts['format']) {\n return $datetime;\n }\n $val = $datetime->format($opts['format']);\n if ($opts['format'] == 'U') {\n $val = (float) $val;\n }\n return $val;\n }, $return);\n }", "public function split(Period|Duration|DateInterval $duration): iterable\n {\n $duration = self::filterDuration($duration);\n /** @var DateTimeImmutable $startDate */\n foreach ($this->toDatePeriod($duration) as $startDate) {\n $endDate = $startDate->add($duration);\n if ($endDate > $this->endDate) {\n $endDate = $this->endDate;\n }\n\n yield new self($startDate, $endDate, $this->bounds);\n }\n }", "function &GetNext( ) {\n\n if ( $this->_current < 0 ) {\n $next = new iCalDate($this->_first);\n $this->_current++;\n }\n else {\n $next = new iCalDate($this->_dates[$this->_current]);\n $this->_current++;\n\n /**\n * If we have already found some dates we may just be able to return one of those.\n */\n if ( isset($this->_dates[$this->_current]) ) {\n// dbg_error_log( \"RRule\", \" GetNext: Returning %s, (%d'th)\", $this->_dates[$this->_current]->Render(), $this->_current );\n return $this->_dates[$this->_current];\n }\n else {\n if ( isset($this->_part['COUNT']) && $this->_current >= $this->_part['COUNT'] ) // >= since _current is 0-based and COUNT is 1-based\n $this->_finished = true;\n }\n }\n\n if ( $this->_finished ) {\n $next = null;\n return $next;\n }\n\n $days = array();\n if ( isset($this->_part['WKST']) ) $next->SetWeekStart($this->_part['WKST']);\n if ( $this->_part['FREQ'] == \"MONTHLY\" ) {\n// dbg_error_log( \"RRule\", \" GetNext: Calculating more dates for MONTHLY rule\" );\n $limit = 200;\n do {\n $limit--;\n do {\n $limit--;\n if ( $this->_started ) {\n $next->AddMonths($this->_part['INTERVAL']);\n }\n else {\n $this->_started = true;\n }\n }\n while ( isset($this->_part['BYMONTH']) && $limit > 0 && ! $next->TestByMonth($this->_part['BYMONTH']) );\n\n if ( isset($this->_part['BYDAY']) ) {\n $days = $next->GetMonthByDay($this->_part['BYDAY']);\n }\n else if ( isset($this->_part['BYMONTHDAY']) ) {\n $days = $next->GetMonthByMonthDay($this->_part['BYMONTHDAY']);\n }\n else\n $days[$next->_dd] = $next->_dd;\n\n if ( isset($this->_part['BYSETPOS']) ) {\n $days = $next->ApplyBySetpos($this->_part['BYSETPOS'], $days);\n }\n\n $days = $this->WithinScope( $next, $days);\n }\n while( $limit && count($days) < 1 && ! $this->_finished );\n// dbg_error_log( \"RRule\", \" GetNext: Found %d days for MONTHLY rule\", count($days) );\n\n }\n else if ( $this->_part['FREQ'] == \"WEEKLY\" ) {\n// dbg_error_log( \"RRule\", \" GetNext: Calculating more dates for WEEKLY rule\" );\n $limit = 200;\n do {\n $limit--;\n if ( $this->_started ) {\n $next->AddDays($this->_part['INTERVAL'] * 7);\n }\n else {\n $this->_started = true;\n }\n\n if ( isset($this->_part['BYDAY']) ) {\n $days = $next->GetWeekByDay($this->_part['BYDAY'], false );\n }\n else\n $days[$next->_dd] = $next->_dd;\n\n if ( isset($this->_part['BYSETPOS']) ) {\n $days = $next->ApplyBySetpos($this->_part['BYSETPOS'], $days);\n }\n\n $days = $this->WithinScope( $next, $days);\n }\n while( $limit && count($days) < 1 && ! $this->_finished );\n\n// dbg_error_log( \"RRule\", \" GetNext: Found %d days for WEEKLY rule\", count($days) );\n }\n else if ( $this->_part['FREQ'] == \"DAILY\" ) {\n// dbg_error_log( \"RRule\", \" GetNext: Calculating more dates for DAILY rule\" );\n $limit = 100;\n do {\n $limit--;\n if ( $this->_started ) {\n $next->AddDays($this->_part['INTERVAL']);\n }\n\n if ( isset($this->_part['BYDAY']) ) {\n $days = $next->GetWeekByDay($this->_part['BYDAY'], $this->_started );\n }\n else\n $days[$next->_dd] = $next->_dd;\n\n if ( isset($this->_part['BYSETPOS']) ) {\n $days = $next->ApplyBySetpos($this->_part['BYSETPOS'], $days);\n }\n\n $days = $this->WithinScope( $next, $days);\n $this->_started = true;\n }\n while( $limit && count($days) < 1 && ! $this->_finished );\n\n// dbg_error_log( \"RRule\", \" GetNext: Found %d days for DAILY rule\", count($days) );\n }\n\n $ptr = $this->_current;\n foreach( $days AS $k => $v ) {\n $this->_dates[$ptr++] = $v;\n }\n\n if ( isset($this->_dates[$this->_current]) ) {\n// dbg_error_log( \"RRule\", \" GetNext: Returning %s, (%d'th)\", $this->_dates[$this->_current]->Render(), $this->_current );\n return $this->_dates[$this->_current];\n }\n else {\n// dbg_error_log( \"RRule\", \" GetNext: Returning null date\" );\n $next = null;\n return $next;\n }\n }", "public static function from_array($d)\r\n {\r\n $newstart = !empty($d['start']) ? $d['start'] : NULL;\r\n $newend = !empty($d['end']) ? $d['end'] : NULL;\r\n if($newstart) {\r\n $newstart = PiplApi_Utils::piplapi_str_to_date($newstart);\r\n }\r\n if($newend){\r\n $newend = PiplApi_Utils::piplapi_str_to_date($newend);\r\n }\r\n return new PiplApi_DateRange($newstart, $newend);\r\n }", "public function provideDate()\n {\n return array(\n array(array(\"date\\before{date:'2013-04-04'}\"), true),\n array(array(\"date\\before{date:'1998-04-04'}\"), false),\n array(array(\"date\\after{date:'2013-04-04'}\"), false),\n array(array(\"date\\after{date:'1998-04-04'}\"), true),\n );\n }", "function createDateRangeArray($strDateFrom,$strDateTo)\n {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing that in the main script\n \n $aryRange=array();\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date(DATE_FORMAT,$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date(DATE_FORMAT,$iDateFrom));\n }\n }\n \n return $aryRange;\n }", "public function getIterator(DateTimeInterface $from, DateTimeInterface $to = null, $inc = false);", "protected function dates_filter(){\n \t//+Constraint Isgi: only one year data\n \t$temporal = $this->get_temporal();\n \tif( strtolower($temporal->end) == \"now\"){\n \t\t$now = new \\DateTime();\n \t\t$temporal->end = $now->format(\"Y-m-d\");\n \t}\n \t\n \t\n \t//change start and end\n \tif( $this->start < $temporal->start){\n \t\t$this->start = $temporal->start;\n \t}\n \tif( $this->end > $temporal->end){\n \t\t$this->end = $temporal->end;\n \t}\n \t$update = $this->get_update();\n \tif( !empty( $update) && $update < $this->end){\n \t\t$this->end = $update;\n \t}\n \t// diff between start and end\n \t$start = new \\DateTime( $this->start);\n \t$end = new \\DateTime( $this->end);\n \t$interval = $start->diff( $end);\n \tif( $interval->invert){\n \t\t//end < start\n \t\t$this->error = \"NO_DATA\";\n \t}else{\n\t \tif( $interval->days > 365){\n\t \t\t$start = clone $end;\n\t \t\t$start->sub( new \\DateInterval(\"P364D\"));\n\t \t\t$this->start = $start->format(\"Y-m-d\");\n\t \t}\n \t}\n }", "public static function getNextEvents() {\n\n $startDate = Carbon::now() -> format('Y-m-d');\n $endDate = Carbon::now() -> addWeeks(4) -> format('Y-m-d');\n\n $events = Event::all() -> where(\"date\", \">=\", $startDate)\n -> where(\"date\", \"<=\", $endDate);\n\n foreach ($events as $event) {\n $event -> date = Carbon::createFromFormat(\"Y-m-d\", $event -> date)\n -> format(\"d/m/Y\");\n }\n\n return $events;\n\n }", "public function dateRange($startDate = null, $endDate = null, $field = null)\n {\n $start = $startDate ? Utils::date2timestamp($startDate) : null;\n $end = $endDate ? Utils::date2timestamp($endDate) : null;\n\n $date_range = [];\n foreach ($this->items as $path => $slug) {\n $page = $this->pages->get($path);\n if (!$page) {\n continue;\n }\n\n $date = $field ? strtotime($page->value($field)) : $page->date();\n\n if ((!$start || $date >= $start) && (!$end || $date <= $end)) {\n $date_range[$path] = $slug;\n }\n }\n\n $this->items = $date_range;\n\n return $this;\n }", "public function definition()\n {\n $start_date = $this->faker->dateTimeThisYear();\n $start_date_clone = clone $start_date;\n $end_date = $this->faker->dateTimeBetween($start_date, $start_date_clone->modify('+1 year'));\n\n $start_date_string = $start_date->format('Y-m-d H:i:s');\n $end_date_string = $end_date->format('Y-m-d H:i:s');\n\n //dd($start_date->format('Y-m-d H:i:s'));\n\n return [\n 'title' => $start_date->format('Y').'-'.$end_date->format('Y'),\n 'begin' => $start_date_string,\n 'end' => $end_date_string,\n 'owner_id' => auth()->user()->id,\n\n ];\n }", "public function getEvents(DateTime $dateStart = null, DateTime $dateEnd = null)\n {\n $events = array();\n\n if ($dateStart === null) {\n $dateStart = new DateTime();\n }\n\n if ($dateEnd === null) {\n $dateEnd = clone $dateStart;\n $dateEnd->add(new DateInterval('P1Y'));\n }\n\n if (($this->repeatEndDate !== null) && ($this->repeatEndDate < $dateEnd)) {\n $dateEnd = $this->repeatEndDate;\n }\n\n $repeatDates = $this->getRepeatDates();\n\n for ($count = 0; true; ++$count) {\n if ($this->repeatCount > 0 && $count >= $this->repeatCount) {\n break;\n }\n /** @var DateTime[] $repeatDate */\n foreach ($repeatDates as $repeatDate) {\n if ($repeatDate['start'] <= $dateEnd && $repeatDate['end'] >= $dateStart && !$this->isRepeatException($repeatDate['start'])) {\n $events[] = $this->createEvent(clone $repeatDate['start'], clone $repeatDate['end']);\n }\n if (!$this->repeatInterval || $repeatDate['start'] > $dateEnd) {\n break 2;\n }\n $repeatDate['start']->add($this->repeatInterval);\n $repeatDate['end']->add($this->repeatInterval);\n }\n }\n\n return $events;\n }", "public static function makeRandomDateInclusive($startDate, $endDate){\r\n\t\t$days = round((strtotime($endDate) - strtotime($startDate)) / (60 * 60 * 24));\r\n\t\t$n = rand(0,$days);\r\n\t\treturn date(\"Y-m-d\",strtotime(\"$startDate + $n days\"));\r\n\t}", "protected function _getDateRange()\n {\n if (is_null($this->_dateRange)) {\n $this->_dateRange = array();\n $rules = $this->getAttributeObject()->getValidateRules();\n if (isset($rules[self::MIN_DATE_RANGE_KEY])) {\n $this->_dateRange[self::MIN_DATE_RANGE_KEY] = $rules[self::MIN_DATE_RANGE_KEY];\n }\n if (isset($rules[self::MAX_DATE_RANGE_KEY])) {\n $this->_dateRange[self::MAX_DATE_RANGE_KEY] = $rules[self::MAX_DATE_RANGE_KEY];\n }\n }\n return $this->_dateRange;\n }", "function createDateRangeArray( $strDateFrom,$strDateTo,$format ) {\n \n $aryRange=array();\n if ( $format == \"european\" ) {\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,3,2),substr($strDateFrom,0,2),substr($strDateFrom,6,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,3,2),substr($strDateTo,0,2),substr($strDateTo,6,4));\n\t} else if ( $format == \"american\" ) {\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,0,2),substr($strDateFrom,3,2),substr($strDateFrom,6,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,0,2),substr($strDateTo,3,2),substr($strDateTo,6,4));\n\t}\n\n\t\n if ($iDateTo>=$iDateFrom) {\n if ( $format == \"european\" ) {\n\t\t\tarray_push($aryRange, date('d-m-Y',$iDateFrom)); \n\t\t} else if ( $format == \"american\" ) {\n\t\t\tarray_push($aryRange,date('m/d/Y',$iDateFrom)); \n\t\t}\n while ($iDateFrom<$iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n if ( $format == \"european\" ) {\n\t\t\t\tarray_push($aryRange,date('d-m-Y',$iDateFrom)); \n\t\t\t} else if ( $format == \"american\" ) {\n\t\t\t\tarray_push($aryRange,date('m/d/Y',$iDateFrom)); \n\t\t\t}\n }\n }\n\t\n return $aryRange;\n}", "public static function getDateRange($startDate = NULL,$endDate = NULL/*, $timeZone = null*/)\n {\n// $toTZ = new DateTimeZone($timeZone ?: date_default_timezone_get());\n// $begin = new DateTime( $startDate, $toTZ );\n// $end = new DateTime( $endDate, $toTZ );\n \n $begin = new DateTime( $startDate );\n $end = new DateTime( $endDate );\n $end->modify('+1 day');\n $interval = DateInterval::createFromDateString('1 day');\n return new DatePeriod($begin, $interval, $end);\n }", "function get_days($startdate,$enddate){\r\n $begin = new DateTime(date(\"Y-m-d\", strtotime($startdate)));\r\n $end = new DateTime(date(\"Y-m-d\", strtotime($enddate)));\r\n\r\n $daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);\r\n\r\n foreach($daterange as $date){\r\n $adays[] =$date->format(\"Y-m-d\");\r\n }\r\n $adays[] =date(\"Y-m-d\", strtotime($enddate)) ;\r\n return $adays; \r\n }", "public function getPeriodDatesProperty()\n {\n $now = Carbon::now()->timezone(\"America/Bogota\");\n $min = $now->copy();\n $max = $now->copy();\n\n switch ($this->period) {\n case 'today':\n break;\n case 'yesterday':\n $min->subDay();\n $max->subDay();\n break;\n case 'thisWeek':\n $min->startOfWeek();\n $max->endOfWeek();\n break;\n case 'lastWeek':\n $min->subWeek()->startOfWeek();\n $max->subWeek()->endOfWeek();\n break;\n case 'thisFortnight':\n if ($min->day > 15) {\n $min->day(16);\n $max->endOfMonth();\n } else {\n $min->startOfMonth();\n $max->startOfMonth()->addDays(14);\n }\n break;\n case 'lastFortnight':\n if ($min->day > 15) {\n $min->startOfMonth();\n $max->startOfMonth()->addDays(14);\n } else {\n $min->subMonth()->day(16);\n $max->subMonth()->endOfMonth();\n }\n break;\n case 'thisMonth':\n $min->startOfMonth();\n $max->endOfMonth();\n break;\n case 'lastMonth':\n $min->subMonth()->startOfMonth();\n $max->subMonth()->endOfMonth();\n break;\n\n default:\n # code...\n break;\n }\n\n $min->startOfDay();\n $max->endOfDay();\n $format = 'd-m-y H:i:s';\n\n return [\n 'min' => $min,\n 'minView' => $min->format($format),\n 'max' => $max,\n 'maxView' => $max->format($format),\n ];\n }", "function createDateRangeArray($strDateFrom,$strDateTo,$id_tamu)\n\t{\n\t\t// inclusive array of the dates between the from and to dates.\n\n\t\t// could test validity of dates here but I'm already doing\n\t\t// that in the main script\n\n\t\t$aryRange=array();\n\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n\t\tif ($iDateTo>=$iDateFrom)\n\t\t{\n\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom).\"_\".$id_tamu); // first entry\n\t\t\twhile ($iDateFrom<$iDateTo)\n\t\t\t{\n\t\t\t\t$iDateFrom+=86400; // add 24 hours\n\t\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom).\"_\".$id_tamu);\n\t\t\t}\n\t\t}\n\t\treturn $aryRange;\n\t}", "public function testGetStartDatePassingFebrurary() {\n $now = new \\DateTimeImmutable('2019-09-23 14:50:58.000000');\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'monthly',\n 'start_date' => new \\DateTime('2019-10-30 00:00:00.000000'),\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('2019-10-30', $date->format('Y-m-d'));\n\n $now = new \\DateTimeImmutable('2020-02-10');\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'monthly',\n 'start_date' => new \\DateTime('2020-02-29'),\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('2020-02-29', $date->format('Y-m-d'));\n }", "function monthPeriod_start_end($begin, $end)\n{\n $begin = (new DateTime($begin.'-01-01'))->modify('first day of this month');\n $end = (new DateTime($end.'-12-01 +1 month'))->modify('first day of this month');\n $daterange = new DatePeriod($begin, new DateInterval('P1M'), $end);\n\n foreach ($daterange as $date) {\n $dates[] = $date->format(\"m\");\n }\n return $dates;\n}", "public function splitBackwards(Period|Duration|DateInterval $duration): iterable\n {\n $endDate = $this->endDate;\n $duration = self::filterDuration($duration);\n do {\n $startDate = $endDate->sub($duration);\n if ($startDate < $this->startDate) {\n $startDate = $this->startDate;\n }\n yield new self($startDate, $endDate, $this->bounds);\n\n $endDate = $startDate;\n } while ($endDate > $this->startDate);\n }", "public function GetByDate($initialDate, $endDate);", "public function supportsDateRange() {\n\t\treturn true;\n\t}", "protected function getDayRange($date = null)\n {\n $date = !is_object($date) ? new \\DateTime('TODAY') : $date;\n $startAt = \\DateTime::createFromFormat('Y-m-d H:i:s', date(\"Y-m-d H:i:s\", mktime(0, 0, 0, $date->format('m'), $date->format('d'), $date->format('Y'))));\n $endAt = clone $startAt;\n $endAt->modify('+1 day');\n\n return array($startAt, $endAt);\n }", "function visible_range() {\n\t\treturn new DateRange(\n\t\t\t$this->attribute(\"show date\"),\n\t\t\t$this->attribute(\"hide date\"),\n\t\t\t$this\n\t\t);\n\t}", "function createDateInterval($dateStart,$dateStop){\n $ONE_DAY=3600*24;\n $start=strtotime($dateStart);\n $stop=strtotime($dateStop);\n $giorni=array();\n for ($giorno=$start; $giorno<=$stop; $giorno+=$ONE_DAY){\n $giorni[]=date(\"Y-m-d\",$giorno);\n }\n return $giorni;\n }", "private function createDateRangeArray($dateFrom, $dateTo)\n {\n $dateRange = array();\n $tsFrom = strtotime($dateFrom);\n $tsTo = strtotime($dateTo);\n\n if ($tsTo >= $tsFrom)\n {\n $dateRange[] = date('Y-m-d', $tsFrom);\n while ($tsFrom < $tsTo)\n {\n $tsFrom += 60 * 60 * 24;\n $dateRange[] = date('Y-m-d', $tsFrom);\n }\n }\n\n return $dateRange;\n }", "function start_pointer($input)\n{\n /* set time zone */\n date_default_timezone_set('Asia/Calcutta');\n\n /* append day and month to current year */\n $date_input = $input;\n\n /* create new object of Date time and pass $input as variable */\n $dateTime = (new DateTime(rtrim($date_input)));\n\n /* setting offset of 7 days to traverse back 7 days */\n $offset = -7;\n\n $dateInterval = new DateInterval('P' . abs($offset) . 'D');\n if ($offset < 0) {\n $dateInterval->invert = 1;\n }\n\n /* append $dateInterval which go back 7 days to main datetime object */\n $dateTime->add($dateInterval);\n\n /* assign datetime object to $begin which contain 7 days back value of input data */\n $begin = $dateTime;\n\n /* assign $input data to end means value of end pointer */\n $end = new DateTime(rtrim($date_input));\n $end = $end->modify('+1 day');\n\n /* day range generator offset ITS DIFFERENT THEN BEFORE ONE */\n $interval = new DateInterval('P1D');\n\n\n $daterange = new DatePeriod($begin, $interval, $end);\n\n\n /* print or store in array */\n foreach ($daterange as $i => $date) {\n $rt_array[$i] = $date->format(\"d/m/Y\");\n }\n\n return $rt_array;\n\n}", "function randomDate($start_date, $end_date)\n{\n // Convert to timetamps\n $min = strtotime($start_date);\n $max = strtotime($end_date);\n\n // Generate random number using above bounds\n $val = rand($min, $max);\n\n // Convert back to desired date format\n return date('Y-m-d', $val);\n}", "public function fillMissingDates($start, $end, $results)\n\t{\n\t\t$newResults = [];\n\t\t\n\t\tfor($x = $this->stringToTime($start); $x <= $this->stringToTime($end); $x += 86400) {\n\t\t\tforeach($results as $result) {\n\t\t\t\tif ($result->{$this->key} == date($this->format, $x)) {\n\t\t\t\t\t$this->flag['mode'] = 1;\n\t\t\t\t\t$this->flag['count'] = $result->count;\n\t\t\t\t} \n\t\t\t}\n\t\t\t\n\t\t\tif($this->flag['mode'] == 1) {\n\t\t\t\t$newResults[] = (object) ['count' => $this->flag['count'], 'date' => date($this->format, $x)];\n\t\t\t} else {\n\t\t\t\t$newResults[] = (object) ['count' => 0, 'date' => date($this->format, $x)];\n\t\t\t}\n\t\t\t$this->revertCounter();\n\t\t}\n\n\t\treturn $newResults;\n\t}", "public function iterateSubRanges(callable $value_fn, array $opts = []): Generator\n {\n $backwards = (bool) ($opts['backwards'] ?? false);\n $step = $backwards ? -1 : 1;\n $end = $backwards ? $this->start : $this->end;\n\n $sub_range_start = $backwards ? $this->end : $this->start;\n $sub_range_end = $sub_range_start;\n $sub_range_value = $value_fn($sub_range_start);\n\n while (! $sub_range_end->isSameAs($end)) {\n $next_date = $sub_range_end->addDays($step);\n $next_value = $value_fn($next_date);\n if ($next_value != $sub_range_value) {\n // Value has changed\n yield [\n 'range' => DateRange::eitherWayRound($sub_range_start, $sub_range_end),\n 'value' => $sub_range_value,\n ];\n // Start a new current range\n $sub_range_start = $next_date;\n $sub_range_value = $next_value;\n }\n $sub_range_end = $next_date;\n }\n\n // Finish the current range\n yield [\n 'range' => DateRange::eitherWayRound($sub_range_start, $sub_range_end),\n 'value' => $sub_range_value,\n ];\n }", "public function years_range()\r\n {\r\n // end date.\r\n if(!($this->start && $this->end)){\r\n return NULL;\r\n }\r\n return array($this->start->format('Y'), $this->end->format('Y'));\r\n }", "function getDates($startdate, $enddate, $days_of_week){\n \n $enddate = new DateTime($enddate);\n $enddate = $enddate->modify(\"+1 day\");\n \n $dates = array();\n $daterange = new DatePeriod(new DateTime($startdate),new DateInterval('P1D'),$enddate);\n \n foreach($daterange as $key=>$value){\n foreach($days_of_week as $day){\n if($value->format('l') == $day){\n $dates[] = $value->format(\"Y-m-d\");\n }\n }\n }\n \n return $dates;\n }", "function tradeoff_date_range($definition)\n {\n return app(Models\\Problem\\Range\\DateRange::class)->setData($definition);\n }", "public function leadsInDates($start, $end, $data = []);", "public static function getDates($start, $end, $format = \"Y-m-d\")\n {\n $start = new \\DateTime($start);\n $end = new \\DateTime($end);\n $interval = \\DateInterval::createFromDateString('1 day');\n $period = new \\DatePeriod($start, $interval, $end->modify('+1 day'));\n\n $dates = [];\n\n foreach ($period as $dt) {\n $dates[] = $dt->format($format);\n }\n\n return $dates;\n }", "function erp_get_financial_year_dates( $date = null ) {\n $start_month = erp_get_option( 'gen_financial_month', 'erp_settings_general', 1 );\n if ( $date == null ) {\n $year = date( 'Y' );\n $month = date( 'n' );\n } else {\n if ( ! is_numeric( $date ) ) {\n $timestamp = strtotime( $date );\n }\n else {\n $timestamp = $date;\n }\n $year = date( 'Y', $timestamp );\n $month = date( 'n', $timestamp );\n }\n\n /**\n * Suppose, $start_month is July and today is May 2017. Then we should get\n * start = 2016-07-01 00:00:00 and end = 2017-06-30 23:59:59.\n *\n * On the other hand, if $start_month = January, then we should get\n * start = 2017-01-01 00:00:00 and end = 2017-12-31 23:59:59.\n */\n if ( $month < $start_month ) {\n $year = $year - 1;\n }\n\n $months = erp_months_dropdown();\n $start = date( 'Y-m-d 00:00:00', strtotime( \"first day of $months[$start_month] $year\" ) );\n $end = date( 'Y-m-d 23:59:59', strtotime( \"$start + 12 months - 1 day\" ) );\n\n return [\n 'start' => $start,\n 'end' => $end\n ];\n}", "public function gaps(): self\n {\n $sequence = new self();\n $interval = null;\n foreach ($this->sorted($this->sortByStartDate(...)) as $period) {\n if (null === $interval) {\n $interval = $period;\n continue;\n }\n\n if (!$interval->overlaps($period) && !$interval->meets($period)) {\n $sequence->push($interval->gap($period));\n }\n\n if (!$interval->contains($period)) {\n $interval = $period;\n }\n }\n\n return $sequence;\n }", "public function getUpcoming() {\r\n \r\n $params = array(\r\n date(\"Y-m-d\"),\r\n date(\"Y-m-d\", strtotime(\"tomorrow\")),\r\n 0\r\n );\r\n \r\n $query = \"SELECT id FROM reminders WHERE reminder >= ? AND reminder < ? AND sent = ?\";\r\n \r\n foreach ($this->db->fetchAll($query, $params) as $row) {\r\n yield new Reminder($row['id']);\r\n }\r\n }", "private function createDateRangeArray($strDateFrom, $strDateTo) {\n\t\t// takes two dates formatted as YYYY-MM-DD and creates an\n\t\t// inclusive array of the dates between the from and to dates.\n\t\t\n\t\t// could test validity of dates here but I'm already doing\n\t\t// that in the main script\n\t\t$aryRange = array ();\n\t\t\n\t\t$iDateFrom = mktime ( 1, 0, 0, substr ( $strDateFrom, 5, 2 ), substr ( $strDateFrom, 8, 2 ), substr ( $strDateFrom, 0, 4 ) );\n\t\t$iDateTo = mktime ( 1, 0, 0, substr ( $strDateTo, 5, 2 ), substr ( $strDateTo, 8, 2 ), substr ( $strDateTo, 0, 4 ) );\n\t\t\n\t\tif ($iDateTo >= $iDateFrom) {\n\t\t\tarray_push ( $aryRange, date ( 'Y-m-d', $iDateFrom ) ); // first entry\n\t\t\twhile ( $iDateFrom < $iDateTo ) {\n\t\t\t\t$iDateFrom += 86400; // add 24 hours\n\t\t\t\tarray_push ( $aryRange, date ( 'Y-m-d', $iDateFrom ) );\n\t\t\t}\n\t\t}\n\t\treturn $aryRange;\n\t}", "public function renderDateRange() {\n\t\tif(!empty($this->dateRange)) {\n\t\t\t$date_range_data = array(\n\t\t\t\t'from' => $this->dateRange->from->format(\"d.m.Y\"),\n\t\t\t\t'to' => $this->dateRange->to->format(\"d.m.Y\")\n\t\t\t);\n\t\t\t\n\t\t\t$this->template->date_range_data = $date_range_data;\n\t\t}\n\t}", "public function getDateRange()\n {\n $format = $this->arguments['dateFormat'];\n if ($format === '') {\n $format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] ?: 'Y-m-d';\n }\n\n $timestamps = array();\n $dateRange = '';\n /** @var Performance $performance */\n foreach ($this->performances as $performance) {\n $timestamps[] = $performance->getDate()->getTimestamp();\n }\n sort($timestamps);\n if (strpos($format, '%') !== false) {\n $dateRange = strftime($format, $timestamps[0]);\n $dateRange .= ' - ' . strftime($format, end($timestamps));\n } else {\n $dateRange = date($format, $timestamps[0]);\n $dateRange .= ' - ' . date($format, end($timestamps));\n }\n\n return $dateRange;\n }", "public function Dates() {\r\n $dates = [];\r\n for ($i = 1; $i <= 31; $i++) {\r\n $dates[$i] = $i;\r\n }\r\n return $dates;\r\n }", "private function getEmptyStartDate()\n {\n return new \\DotbDateTime('2100-01-01 12:00:00');\n }", "function get_all_hazard_fiscal_years($conn) {\n $query_date = \"SELECT MIN(date), MAX(date) FROM hazard\";\n $dates = exec_query($conn, $query_date);\n $min_date = DateTime::createFromFormat('Y-m-d', $dates[0][0]);\n $max_date = DateTime::createFromFormat('Y-m-d', $dates[0][1]);\n $min_fiscal_year = get_corresponding_fiscal_year($min_date);\n $max_fiscal_year = get_corresponding_fiscal_year($max_date);\n return range($min_fiscal_year, $max_fiscal_year);\n}", "function getDatesPeriod($startDate, $endDate, $format = null)\n {\n $allowedDateFormats = [\n 'Y-m-d',\n 'Y-m-d H:i:s',\n 'Y-m-d\\TH:i:s',\n 'd/m/Y',\n 'd/m/Y H:i:s',\n 'd.m.Y',\n 'd.m.Y H:i:s',\n ];\n\n $startDate = !is_object($startDate) ? new \\DateTime($startDate) : $startDate;\n $endDate = !is_object($endDate) ? new \\DateTime($endDate) : $endDate;\n\n $period = new \\DatePeriod(\n $startDate,\n new \\DateInterval('P1D'),\n $endDate\n );\n\n $dates = [];\n foreach ($period as $key => $value) {\n $dates[$key] = isset($format) && in_array((string)$format, $allowedDateFormats) ? $value->format($format) : $value;\n }\n\n return $dates;\n }" ]
[ "0.66048115", "0.6596961", "0.6564439", "0.6477591", "0.6415856", "0.6305754", "0.62014335", "0.6146952", "0.6097327", "0.6097279", "0.60624236", "0.60378176", "0.60150635", "0.5996371", "0.5979846", "0.5947383", "0.5938639", "0.58696723", "0.5834634", "0.58330446", "0.5766767", "0.573128", "0.5729577", "0.57047766", "0.5657236", "0.5656378", "0.56447035", "0.563198", "0.55926996", "0.5558666", "0.5521464", "0.5502811", "0.5450099", "0.54497343", "0.5444512", "0.5444512", "0.54319423", "0.5424681", "0.5419798", "0.54107773", "0.54088616", "0.54081476", "0.53978896", "0.53782314", "0.5352683", "0.53421247", "0.53406173", "0.53390723", "0.53266203", "0.5304656", "0.5291721", "0.52736527", "0.52650785", "0.52383184", "0.52275777", "0.52077043", "0.5207205", "0.5191019", "0.5183585", "0.5182942", "0.51742727", "0.51701206", "0.51694596", "0.5167206", "0.51592517", "0.5155882", "0.51541454", "0.5152863", "0.5145732", "0.5143064", "0.5133135", "0.5123671", "0.5104183", "0.50875354", "0.5086182", "0.5083344", "0.5081546", "0.5078982", "0.5078809", "0.50725293", "0.50655085", "0.5064885", "0.50583464", "0.5045399", "0.50440085", "0.5040984", "0.50408614", "0.5039375", "0.5028987", "0.5028769", "0.5027501", "0.50100935", "0.5007579", "0.49913618", "0.49895662", "0.4978763", "0.49782827", "0.4965935", "0.49525392", "0.49284372" ]
0.6547776
3
Get a generator which yields each date in the range (including start but not end) as a JustDate object
public function eachExceptEnd(): Generator { for ($day = $this->start; $day->isBefore($this->end); $day = $day->nextDay()) { yield $day; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GetDates(DateRange $startingDates);", "public function dateRanges(): DateRangeCollection;", "public function each(): Generator\n {\n for ($day = $this->start; $day->isBeforeOrSameAs($this->end); $day = $day->nextDay()) {\n yield $day;\n }\n }", "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\r\n{\r\n $begin = new DateTime($startDate);\r\n $end = new DateTime($endDate);\r\n \r\n $interval = new DateInterval('P1D'); \r\n $dateRange = new DatePeriod($begin, $interval, $end);\r\n \r\n $range = [];\r\n \r\n for($i=$begin;$i<=$end;$i->modify('+1 day')) {\r\n $range[] = $i->format($format);\r\n \r\n }\r\n return $range; \r\n}", "function erp_get_dates_in_range($first, $last, $step = '+1 day', $output_format = 'Y-m-d' ) {\n\n $dates = array();\n $current = strtotime($first);\n $last = strtotime($last);\n\n while( $current <= $last ) {\n\n $dates[] = date($output_format, $current);\n $current = strtotime($step, $current);\n }\n\n return $dates;\n}", "function date_range($first, $last, $step = '+1 day', $output_format = 'd/m/Y' ) {\n\n $dates = array();\n $current = strtotime($first);\n $last = strtotime($last);\n\n while( $current <= $last ) {\n\n $dates[] = date($output_format, $current);\n $current = strtotime($step, $current);\n }\n\n return $dates;\n }", "function datePeriod_start_end($begin, $end)\n{\n $begin = new DateTime($begin);\n\n $end = new DateTime($end.' +1 day');\n\n $daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);\n\n foreach ($daterange as $date) {\n $dates[] = $date->format(\"Y-m-d\");\n }\n return $dates;\n}", "function dateRange($begin, $end, $interval = null){\n $begin = new DateTime($begin);\n $end = new DateTime($end);\n // Because DatePeriod does not include the last date specified.\n $end = $end->modify('+1 day');\n $interval = new DateInterval($interval ? $interval : 'P1D');\n\n return iterator_to_array(new DatePeriod($begin, $interval, $end));\n}", "function getDatesFromRange($start, $end, $format = 'Y-m-d') { \n \n // Declare an empty array \n $array = array(); \n \n // Variable that store the date interval \n // of period 1 day \n $interval = new DateInterval('P1D'); \n \n $realEnd = new DateTime($end); \n $realEnd->add($interval); \n \n $period = new DatePeriod(new DateTime($start), $interval, $realEnd); \n \n // Use loop to store date into array \n foreach($period as $date) { \n $array[] = $date->format($format); \n } \n \n // Return the array elements \n return $array; \n}", "function createRangeStat($start, $end, $format = 'Y-m-d') {\n \t\tdate_default_timezone_set(\"Europe/London\");\n\t\t$start = new DateTime($start);\n\t\t$end = new DateTime($end);\n\t\t$invert = $start > $end;\n\n\t\t$dates = array();\n\t\t$dates[] = $start->format($format);\n\t\twhile ($start != $end) {\n\t\t\t$start->modify(($invert ? '-' : '+') . '1 day');\n\t\t\t$dates[] = $start->format($format);\n\t\t}\n\t\treturn $dates;\n\t}", "function the_date_range($start_dt,$end_dt, $one_day = false){\r\n\t\r\n\t$duration = $start_dt->diff($end_dt);\r\n\t$start = explode(\" \",$start_dt->format('l F j Y g i a'));\r\n\t$end = explode(\" \",$end_dt->format('l F j Y g i a'));\r\n\t\r\n\t//happening at the same time\r\n\tif($start == $end){\r\n\t\treturn array(\r\n\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\"%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2] //day of month\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\teo_is_all_day() ? 'all day' : time_compact_ap_format($start[4],$start[5],$start[6])\r\n\t\t);\r\n\t}\t\r\n\t//happening on the same day\r\n\telseif($start[2] == $end[2] || ($duration->days < 1 && $duration->h < 24)){\r\n\t\t//Monday, March 4; 9:00 p.m.\r\n\t\treturn array(\r\n\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\"%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2] //day of month\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\teo_is_all_day() ? 'all day' : sprintf(\r\n\t\t\t\t\"%s&ndash;%s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\t //formatted date\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n\t//happening in the same month\r\n\t//check if happening all day; if not, return eo_all_day ? : \r\n\telseif($start[1] == $end[1]){\r\n\t\treturn (eo_is_all_day() || $one_day) ? \r\n\t\tsprintf(\r\n\t\t\t\"%s %s&ndash;%s\",\r\n\t\t\t$start[1], //month\r\n\t\t\t$start[2], //day of month\r\n\t\t\t$end[2]\r\n\t\t)\r\n\t\t: \r\n\t\tarray(\r\n\t\t\t\"date\" => sprintf(\r\n\t\t\t\t\"%s %s&ndash;%s\",\r\n\t\t\t\t$start[1],\r\n\t\t\t\t$start[2],\r\n\t\t\t\t$end[2]\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\"datetime\" => sprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t$start[1],\r\n\t\t\t\t$start[2],\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\t\t\t\t\t\r\n\t\t\t\t),\r\n\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\"time\"\t=>\tsprintf(\r\n\t\t\t\t\"%s&ndash;%s\",\r\n\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\t//happening in the same year\r\n\telseif($start[3] == $end[3]){\r\n\t\treturn (eo_is_all_day() || $one_day) ?\r\n\t\t\tsprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2], //day of month\r\n\t\t\t\t$end[0],\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\r\n\t\t\t)\r\n\t\t\t:\r\n\t\t\tarray(\r\n\t\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s %s&ndash;%s %s\",\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"datetime\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s, %s %s&ndash;%s, %s, %s %s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\t\"time\"\t=>\tsprintf(\"%s&ndash;%s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n\t//just plain happening\r\n\r\n\telse{\r\n\t\treturn (eo_is_all_day() || $one_day) ? \r\n\t\t\tsprintf(\r\n\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t$start[0], //day of week\r\n\t\t\t\t$start[1], //month\r\n\t\t\t\t$start[2], //day of month\r\n\t\t\t\t$end[0],\r\n\t\t\t\t$end[1],\r\n\t\t\t\t$end[2]\r\n\t\t\t)\r\n\t\t\t:\r\n\t\t\tarray(\r\n\t\t\t\t\"date\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s %s&ndash;%s, %s %s\",\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"datetime\"\t=>\tsprintf(\r\n\t\t\t\t\t\"%s, %s, %s %s&ndash;%s, %s, %s %s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\t$start[0],\r\n\t\t\t\t\t$start[1],\r\n\t\t\t\t\t$start[2],\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6]),\r\n\t\t\t\t\t$end[0],\r\n\t\t\t\t\t$end[1],\r\n\t\t\t\t\t$end[2]\r\n\t\t\t\t),\r\n\t\t\t\t\"duration\"\t=>\t$duration,\r\n\t\t\t\t\"time\"\t=>\tsprintf(\"%s&ndash;%s\",\r\n\t\t\t\t\ttime_compact_ap_format($start[4],$start[5],$start[6]),\r\n\t\t\t\t\ttime_compact_ap_format($end[4],$end[5],$end[6])\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}\r\n}", "function getDatesFromRange($start, $end, $format = 'Y-m-d') {\r\n $array = array();\r\n // Variable that store the date interval\r\n // of period 1 day\r\n $interval = new DateInterval('P1D');\r\n $realEnd = new DateTime($end);\r\n $realEnd->add($interval);\r\n $period = new DatePeriod(new DateTime($start), $interval, $realEnd);\r\n // Use loop to store date into array\r\n foreach($period as $date) {\r\n $array[] = $date->format($format);\r\n }\r\n // Return the array elements\r\n return $array;\r\n}", "private function generateDateRange(Carbon $start_date, DateInterval $interval, int $recurrences, int $exclusive = 1): array\n {\n $period = new DatePeriod($start_date, $interval, $recurrences, $exclusive);\n $dates = collect();\n\n foreach ($period as $date) {\n $dates->push($date->format('Y-m-d'));\n }\n\n return $dates->toArray();\n }", "public function toDateTimeRange()\n {\n $minDateTime = new \\DateTime();\n $minDateTime->setDate($this->year, $this->month ?? 1, $this->day ?? 1);\n $minDateTime->setTime($this->hours ?? 0, $this->minutes ?? 0, $this->seconds ?? 0, 0);\n\n /*\n * Calculating maximum date\n */\n $maxDateTime = new \\DateTime();\n if ($this->month === null) {\n $maxDateTime->setDate($this->year + 1, 1, 0);\n } elseif ($this->month !== null && $this->day === null) {\n $maxDateTime->setDate($this->year, $this->month + 1, 0);\n } elseif ($this->month !== null && $this->day !== null) {\n $maxDateTime->setDate($this->year, $this->month, $this->day);\n }\n\n $maxDateTime->setTime($this->hours ?? 23, $this->minutes ?? 59, $this->seconds ?? 59, 999999);\n\n return new DateTimeRange($minDateTime, $maxDateTime);\n }", "function dateRange($first, $last, $format = 'm/d/Y' ) { \n\t$dates = array();\n\t$current = strtotime($first);\n\t$last = strtotime($last);\n\n\twhile( $current <= $last ) { \n\t\t$dates[] = date($format, $current);\n\t\t$current = strtotime('+1 day', $current);\n\t}\n\t\n\treturn $dates;\n}", "public function testDateIntegrity()\n {\n $chunker = new NbpApiDateRangeChunker();\n\n $chunks = $chunker->chunk(new \\DateTime('2007-03-18'), new \\DateTime('2017-03-18'));\n $this->assertCount(10, $chunks);\n\n $chunks = $chunker->chunk(new \\DateTime('2007-03-18'), new \\DateTime('2017-03-19'));\n $this->assertCount(11, $chunks);\n\n for ($i = 0, $chunkCount = count($chunks); $i < $chunkCount; $i++) {\n $this->assertTrue($chunks[$i]['from'] < $chunks[$i]['to']);\n\n //each date range except last one should be exaclty one year long\n if ($i != $chunkCount - 1) {\n $this->assertEquals(1, $chunks[$i]['from']->diff($chunks[$i]['to'])->y);\n }\n }\n }", "function getDatesFromRange($start, $end, $format = 'Y-m-d')\n {\n $array = array();\n $interval = new \\DateInterval('P1D');\n $realEnd = new \\DateTime($end);\n $realEnd->add($interval);\n $period = new \\DatePeriod(new \\DateTime($start), $interval, $realEnd);\n foreach ($period as $date) {\n $array[] = $date->format($format);\n }\n\n return $array;\n }", "public function getIteratorProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n $expect[0] = [\n $start[0],\n ($start[0])->add(new DateIntervalObject('P1M')),\n ($start[0])->add(new DateIntervalObject('P2M')),\n ($start[0])->add(new DateIntervalObject('P3M')),\n ($start[0])->add(new DateIntervalObject('P4M')),\n ($start[0])->add(new DateIntervalObject('P5M')),\n ];\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n $expect[1] = [\n ($start[1])->add(new DateIntervalObject('P1M')),\n ($start[1])->add(new DateIntervalObject('P2M')),\n ($start[1])->add(new DateIntervalObject('P3M')),\n ($start[1])->add(new DateIntervalObject('P4M')),\n ($start[1])->add(new DateIntervalObject('P5M')),\n ];\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n $expect[2] = [\n $start[2],\n ($start[2])->add(new DateIntervalObject('P1M')),\n ($start[2])->add(new DateIntervalObject('P2M')),\n ($start[2])->add(new DateIntervalObject('P3M')),\n ($start[2])->add(new DateIntervalObject('P4M')),\n ($start[2])->add(new DateIntervalObject('P5M')),\n ($start[2])->add(new DateIntervalObject('P6M')),\n ($start[2])->add(new DateIntervalObject('P7M')),\n ($start[2])->add(new DateIntervalObject('P8M')),\n ($start[2])->add(new DateIntervalObject('P9M')),\n ];\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[3] = new DateObject('2021-05-01');\n $end[3] = 9;\n $interval[3] = new DateIntervalObject('P1M');\n $option[3] = DatePeriod::EXCLUDE_START_DATE;\n $expect[3] = [\n ($start[3])->add(new DateIntervalObject('P1M')),\n ($start[3])->add(new DateIntervalObject('P2M')),\n ($start[3])->add(new DateIntervalObject('P3M')),\n ($start[3])->add(new DateIntervalObject('P4M')),\n ($start[3])->add(new DateIntervalObject('P5M')),\n ($start[3])->add(new DateIntervalObject('P6M')),\n ($start[3])->add(new DateIntervalObject('P7M')),\n ($start[3])->add(new DateIntervalObject('P8M')),\n ($start[3])->add(new DateIntervalObject('P9M')),\n ];\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n $expect\n ) {\n return [\n $start,\n $interval,\n $end,\n $option,\n $expect,\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n $expect,\n );\n }", "function findDatesFromDateRange($dateStart, $dateEnd){\r\n $foundDates = array($dateStart);\r\n while(end($foundDates) < $dateEnd){\r\n $foundDates[] = date('Y-m-d', strtotime(end($foundDates).' +1 day'));\r\n }\r\n// Array of foundDates\r\nreturn $foundDates;\r\n}", "public function dates()\n {\n if ($this->isRange()) {\n return $this->range;\n }\n\n return $this->date;\n }", "public function createFromDatePeriodProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = 9;\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n ) {\n return [\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n $option,\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n );\n }", "public static function eitherWayRound(JustDate $a, JustDate $b): DateRange\n {\n return new DateRange(JustDate::earliest($a, $b), JustDate::latest($a, $b));\n }", "public function rangesToDates(){\n //Rangos::\n }", "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\n {\n $begin = new DateTime($startDate);\n $end = new DateTime($endDate);\n\n $interval = new DateInterval('P1D'); // 1 Day\n $dateRange = new DatePeriod($begin, $interval, $end);\n\n $range = [];\n foreach ($dateRange as $date) {\n $range[] = $date->format($format);\n }\n array_push($range, $endDate);\n return $range;\n }", "function getAllDates($from,$to)\n{\n $dates = array();\n $fromdate = new DateTime($from);\n $todate = new DateTime($to);\n $datePeriod = new \\DatePeriod(\n $fromdate,\n new \\DateInterval('P1D'),\n $todate->modify('+1 day')\n );\n \n \n foreach($datePeriod as $date) {\n $dates[] = $date->format('Y-m-d');\n } \n \n return $dates;\n}", "function createDateArray($start_dt, $end_dt)\n\t{\n\t\t$arr_dates = array();\n\t\t$arr_dates[] = $start_dt = strtotime($start_dt);\n\t\twhile(1)\n\t\t{ \n\t\t\t$start_dt = strtotime(\"+1 day\", $start_dt);\n\t\t\tif($start_dt <= strtotime($end_dt))\n\t\t\t{\n\t\t\t\t$arr_dates[] = $start_dt;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $arr_dates;\n\t}", "private function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n}", "function date_list( $from_date, $to_date )\n {\n $from_time = strtotime(\"midnight\", is_numeric($from_date) ? $from_date : strtotime($from_date));\n $to_time = strtotime(\"midnight\", is_numeric($to_date ) ? $to_date : strtotime($to_date ));\n\n $dates = array();\n while( $from_time <= $to_time )\n {\n $dates[] = date(\"Y-m-d\", $from_time);\n $from_time = strtotime(\"+1 day\", $from_time);\n }\n\n return $dates;\n }", "private function getEmptyStartDate()\n {\n return new \\DotbDateTime('2100-01-01 12:00:00');\n }", "static public function getRange($initialDate, $finalDate){\n\t\tif(!is_object($initialDate)){\n\t\t\t$initialDate = new Date($initialDate);\n\t\t}\n\t\tif(is_object($finalDate)){\n\t\t\t$finalDate = (string) $finalDate;\n\t\t}\n\t\t$initialTime = $initialDate->getTimestamp();\n\t\t$date = (string) $initialDate;\n\t\t$range = array($date);\n\t\twhile($date!=$finalDate){\n\t\t\t$initialTime+=86400;\n\t\t\t$date = date('Y-m-d', $initialTime);\n\t\t\t$range[] = $date;\n\t\t}\n\t\treturn $range;\n\t}", "function active_range() {\n\t\treturn new DateRange(\n\t\t\t$this->attribute(\"start date\"),\n\t\t\t$this->attribute(\"end date\"),\n\t\t\t$this\n\t\t);\n\t}", "public function toDatePeriodBackwards(Period|Duration|DateInterval $duration, int $option = 0): iterable\n {\n $duration = self::filterDuration($duration);\n $date = $this->endDate;\n if (DatePeriod::EXCLUDE_START_DATE === ($option & DatePeriod::EXCLUDE_START_DATE)) {\n $date = $this->endDate->sub($duration);\n }\n\n while ($date > $this->startDate) {\n yield $date;\n $date = $date->sub($duration);\n }\n }", "function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n}", "function fechas($start, $end) {\n\t\t$range = array();\n\t\n\t\tif (is_string($start) === true) $start = strtotime($start);\n\t\tif (is_string($end) === true ) $end = strtotime($end);\n\t\n\t\tif ($start > $end) return createDateRangeArray($end, $start);\n\t\n\t\tdo {\n\t\t\t$range[] = date('Y-m-d', $start);\n\t\t\t$start = strtotime(\"+ 1 day\", $start);\n\t\t} while($start <= $end);\n\t\n\t\treturn $range;\n\t}", "public function getDateRange()\n {\n return $this->date_range;\n }", "public function testGetStartDate() {\n $now = new \\DateTimeImmutable('2019-09-15');\n $next_month = new \\DateTime('2019-10-15');\n\n // No date values:\n $line_item = $this->lineItemStub([], ['interval_unit' => 'monthly']);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEmpty($date);\n\n // Day of month:\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'monthly',\n 'day_of_month' => '5',\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('05', $date->format('d'));\n $this->assertTrue($date > $now);\n\n // Month:\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'yearly',\n 'month' => '5',\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('05', $date->format('m'));\n $this->assertTrue($date > $now);\n\n // Start date in the future:\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'yearly',\n 'start_date' => $next_month,\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEquals($date->format('Y-m-d'), $next_month->format('Y-m-d'));\n\n // Start date in the past:\n $last_month = new \\DateTime('2019-08-15');\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'yearly',\n 'start_date' => $last_month,\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertNotEquals($date->format('Y-m-d'), $last_month->format('Y-m-d'));\n $this->assertTrue($date > $now);\n\n // Start date + day of month + interval value:\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'monthly',\n 'interval_value' => '3',\n 'start_date' => new \\DateTime('2019-10-10'),\n 'day_of_month' => '1',\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEquals($date->format('Y-m-d'), '2019-11-01');\n\n // Start date + day of month + month + interval value:\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'monthly',\n 'interval_value' => '3',\n 'start_date' => new \\DateTime('2019-10-10'),\n 'day_of_month' => '1',\n 'month' => '9',\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('2019-12-01', $date->format('Y-m-d'));\n\n // Weekly: everything but start date shouldn't matter.\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'weekly',\n 'interval_value' => '3',\n 'start_date' => new \\DateTime('2019-10-10'),\n 'day_of_month' => '1',\n 'month' => '9',\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEquals($date->format('Y-m-d'), '2019-10-10');\n }", "function visible_range() {\n\t\treturn new DateRange(\n\t\t\t$this->attribute(\"show date\"),\n\t\t\t$this->attribute(\"hide date\"),\n\t\t\t$this\n\t\t);\n\t}", "function createDateRangeArray($strDateFrom, $strDateTo) {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry\n\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange, date('Y-m-d', $iDateFrom));\n }\n }\n return $aryRange;\n}", "private function date_range(Carbon $from, Carbon $to, $inclusive = true)\n {\n if ($from->gt($to)) {\n return null;\n }\n\n // Clone the date objects to avoid issues, then reset their time\n $from = $from->copy()->startOfDay();\n $to = $to->copy()->startOfDay();\n\n // Include the end date in the range\n if ($inclusive) {\n $to->addDay();\n }\n\n $step = CarbonInterval::day();\n $period = new DatePeriod($from, $step, $to);\n\n // Convert the DatePeriod into a plain array of Carbon objects\n $range = [];\n\n foreach ($period as $day) {\n $range[] = new Carbon($day);\n }\n\n return ! empty($range) ? $range : null;\n }", "function createDateRangeArray($strDateFrom, $strDateTo) {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange, date('Y-m-d', $iDateFrom));\n }\n }\n return $aryRange;\n}", "public function _constructProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = 9;\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n ) {\n return [\n $start,\n $interval,\n $end,\n $option,\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n );\n }", "function erp_extract_dates( $start_date, $end_date ) {\n // if start date has no time set, then add 00:00:00 or 12:00 AM\n if ( ! preg_match( '/\\d{2}:\\d{2}:\\d{2}$/', $start_date ) ) {\n $start_date = $start_date . ' 00:00:00';\n }\n\n // if end date has no time set, then add 23:59:59 or 11:59 PM\n if ( ! preg_match( '/\\d{2}:\\d{2}:\\d{2}$/', $end_date ) ) {\n $end_date = $end_date . ' 23:59:59';\n }\n\n if ( $start_date > $end_date ) {\n $temp = $start_date;\n $start_date = $end_date;\n $end_date = $temp;\n }\n\n $start_date = new DateTime( $start_date );\n $end_date = new DateTime( $end_date );\n $diff = $start_date->diff( $end_date );\n\n // we got a negative date\n if ( $diff->invert ) {\n return new WP_Error( 'invalid-date', __( 'Invalid date provided', 'erp' ) );\n }\n\n $interval = DateInterval::createFromDateString( '1 day' );\n $period = new DatePeriod( $start_date, $interval, $end_date );\n\n // prepare the periods\n $dates = array();\n foreach ( $period as $dt ) {\n $dates[] = $dt->format( 'Y-m-d' );\n }\n\n return $dates;\n}", "protected function getDayRange($date = null)\n {\n $date = !is_object($date) ? new \\DateTime('TODAY') : $date;\n $startAt = \\DateTime::createFromFormat('Y-m-d H:i:s', date(\"Y-m-d H:i:s\", mktime(0, 0, 0, $date->format('m'), $date->format('d'), $date->format('Y'))));\n $endAt = clone $startAt;\n $endAt->modify('+1 day');\n\n return array($startAt, $endAt);\n }", "public function dateRange($startDate = null, $endDate = null, $field = null)\n {\n $start = $startDate ? Utils::date2timestamp($startDate) : null;\n $end = $endDate ? Utils::date2timestamp($endDate) : null;\n\n $date_range = [];\n foreach ($this->items as $path => $slug) {\n $page = $this->pages->get($path);\n if (!$page) {\n continue;\n }\n\n $date = $field ? strtotime($page->value($field)) : $page->date();\n\n if ((!$start || $date >= $start) && (!$end || $date <= $end)) {\n $date_range[$path] = $slug;\n }\n }\n\n $this->items = $date_range;\n\n return $this;\n }", "public static function getRange($datetime, $opts = array())\n {\n $datetime = self::getDateTime($datetime);\n $opts = \\array_merge(array(\n 'range' => 'day', // hour, day, week, month, or year\n 'format' => null,\n 'weekStartDay'=> 0,\n ), $opts);\n $return = false;\n switch ($opts['range']) {\n case 'hour':\n $strStart = $datetime->format('Y-m-d H:00:00');\n $dateInterval = new \\DateInterval('PT1H');\n break;\n case 'day':\n $strStart = $datetime->format('Y-m-d');\n $dateInterval = new \\DateInterval('P1D');\n break;\n case 'week':\n $days = $datetime->format('w') - $opts['weekStartDay'];\n if ($days < 0) {\n $days = $days + 7;\n }\n $dtTemp = clone $datetime;\n $dtTemp->setTime(0, 0)->sub(new \\DateInterval('P'.$days.'D'));\n $strStart = $dtTemp->format('Y-m-d');\n $dateInterval = new \\DateInterval('P1W');\n break;\n case 'month':\n $strStart = $datetime->format('Y-m-01');\n $dateInterval = new \\DateInterval('P1M');\n break;\n case 'year':\n $strStart = $datetime->format('Y-01-01');\n $dateInterval = new \\DateInterval('P1Y');\n break;\n }\n $dtStart = new \\DateTime($strStart);\n $dtStartAtom = $dtStart->format(\\DateTime::ATOM);\n /*\n DateTimeImmutable is php 5.5\n (clone $datetime)->add() is a php 7 thing\n */\n $return = array(\n 'passed'=> $datetime,\n 'start' => $dtStart,\n 'end' => (new \\DateTime($dtStartAtom))\n ->add($dateInterval)\n ->sub(new \\DateInterval('PT1S')),\n 'prev' => (new \\DateTime($dtStartAtom))->sub($dateInterval),\n 'next' => (new \\DateTime($dtStartAtom))->add($dateInterval),\n 'minus' => (new \\DateTime($datetime->format(\\DateTime::ATOM)))->sub($dateInterval),\n 'plus' => (new \\DateTime($datetime->format(\\DateTime::ATOM)))->add($dateInterval),\n );\n if ($opts['range'] == 'month') {\n if ($return['plus']->format('j') !== $datetime->format('j')) {\n $return['plus']->modify('last day of last month');\n }\n if ($return['minus']->format('j') !== $datetime->format('j')) {\n $return['minus']->modify('last day of last month');\n }\n }\n return \\array_map(function ($datetime) use ($opts) {\n if (!$opts['format']) {\n return $datetime;\n }\n $val = $datetime->format($opts['format']);\n if ($opts['format'] == 'U') {\n $val = (float) $val;\n }\n return $val;\n }, $return);\n }", "public function generate() {\r\n\t\t$busyEvents = new ArrayCollection ();\r\n\t\t\r\n\t\t// start time\r\n\t\t$startTime = $this->getStartTime ();\r\n\t\t$startTime_hour = $startTime->getHour ();\r\n\t\t$startTime_minute = $startTime->getMinute ();\r\n\t\t$startTime_second = $startTime->getSecond ();\r\n\t\t\r\n\t\t// end time\r\n\t\t$endTime = $this->getEndTime ();\r\n\t\t$endTime_hour = $endTime->getHour ();\r\n\t\t$endTime_minute = $endTime->getMinute ();\r\n\t\t$endTime_second = $endTime->getSecond ();\r\n\t\t\r\n\t\t// time slot start date\r\n\t\t$timeSlot = $this->getTimeSlot ();\r\n\t\t$startDate = $timeSlot->getStartDate ();\r\n\t\t$startDate_year = $startDate->getYear ();\r\n\t\t$startDate_month = $startDate->getMonth ();\r\n\t\t$startDate_day = $startDate->getDay ();\r\n\t\t\r\n\t\t// days\r\n\t\t$days = $this->getDays ();\r\n\t\t\r\n\t\t$j = ($startTime->is_greater_or_equal($endTime)) ? 1 : 0;\r\n\t\t\r\n\t\t//debug\r\n\t\t//echo 'j = ' . $j . ' $startTime : '. $startTime. ' $endTime : '. $endTime. '<br><br>';\r\n\t\t\r\n\t\t$floor_days = $timeSlot->duration ()->floor_days ();\r\n\t\t\r\n\t\tfor($i = -1; $i <= $floor_days; $i ++) {\r\n\t\t\t$current_startDate = new CalendarDate ( $startDate_year, $startDate_month, $startDate_day + $i, $startTime_hour, $startTime_minute, $startTime_second );\r\n\t\t\t// $current_startDate_next_day = clone $current_startDate;\r\n\t\t\t// $current_startDate_next_day->modify('tomorrow');\r\n\t\t\t$add_condition = $days->contains ( $current_startDate->format ( 'l' ) );\r\n\t\t\t// || (($j == 1) && $days->contains ( $current_startDate_next_day->format ( 'l' ) ))\r\n\t\t\t\r\n\t\t\tif ($add_condition) {\r\n\t\t\t\t$current_endDate = new CalendarDate ( $startDate_year, $startDate_month, $startDate_day + $i + $j, $endTime_hour, $endTime_minute, $endTime_second );\r\n\t\t\t\t$current_event = new CalendarEvent ( $current_startDate, $current_endDate );\r\n\t\t\t\t$busyEvents->add ( $current_event );\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $busyEvents;\r\n\t}", "public static function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\n {\n $begin = new \\DateTime($startDate);\n\n $_end = self::dateAdd($endDate, UnitDay::DAY, 1);\n\n $end = new \\DateTime($_end);\n\n $interval = new \\DateInterval('P1D'); // 1 Day\n $dateRange = new \\DatePeriod($begin, $interval, $end);\n\n $range = [];\n foreach ($dateRange as $date) {\n if ($format == null) {\n $range[] = $date;\n } else {\n $range[] = $date->format($format);\n }\n\n }\n\n\n return $range;\n }", "public function split($interval)\n {\n $startDate = $this->startDate;\n $interval = static::filterDateInterval($interval);\n do {\n $endDate = $startDate->add($interval);\n if ($endDate > $this->endDate) {\n $endDate = $this->endDate;\n }\n yield new static($startDate, $endDate);\n\n $startDate = $endDate;\n } while ($startDate < $this->endDate);\n }", "public function split($interval)\n {\n $startDate = $this->startDate;\n $interval = static::filterDateInterval($interval);\n do {\n $endDate = $startDate->add($interval);\n if ($endDate > $this->endDate) {\n $endDate = $this->endDate;\n }\n yield new static($startDate, $endDate);\n\n $startDate = $endDate;\n } while ($startDate < $this->endDate);\n }", "public function provideDate()\n {\n return array(\n array(array(\"date\\before{date:'2013-04-04'}\"), true),\n array(array(\"date\\before{date:'1998-04-04'}\"), false),\n array(array(\"date\\after{date:'2013-04-04'}\"), false),\n array(array(\"date\\after{date:'1998-04-04'}\"), true),\n );\n }", "public function getIterator(DateTimeInterface $from, DateTimeInterface $to = null, $inc = false);", "public static function getDatesFromRange(DateTime $start, DateTime $end): array\n {\n $array = [];\n\n // Variable that store the date interval\n // of period 1 day\n $interval = new DateInterval('P1D');\n\n $end->add($interval);\n\n $period = new DatePeriod($start, $interval, $end);\n\n // Use loop to store date into array\n foreach ($period as $date) {\n $array[] = $date;\n }\n\n // Return the array elements\n return $array;\n }", "public function gaps(): self\n {\n $sequence = new self();\n $interval = null;\n foreach ($this->sorted($this->sortByStartDate(...)) as $period) {\n if (null === $interval) {\n $interval = $period;\n continue;\n }\n\n if (!$interval->overlaps($period) && !$interval->meets($period)) {\n $sequence->push($interval->gap($period));\n }\n\n if (!$interval->contains($period)) {\n $interval = $period;\n }\n }\n\n return $sequence;\n }", "function getDatesFromRange($start, $end, $format = 'Y-m-d') { \n $GLOBALS['labelDates'] = array();\n // Declare an empty array \n $dates = array(); \n \n // Variable that store the date interval \n // of period 1 day \n $interval = new DateInterval('P1D'); \n \n $realEnd = new DateTime($end); \n $realEnd->add($interval); \n \n $period = new DatePeriod(new DateTime($start), $interval, $realEnd); \n // Use loop to store date into array \n foreach($period as $date) { \n $dates[] = $date->format($format); \n if($date->format($format) == date('Y-m-d'))\n $GLOBALS['labelDates'][] = \"Today\";\n else\n $GLOBALS['labelDates'][] = $date->format('M-d');\n } \n $dates = array_reverse($dates) ;\n $GLOBALS['labelDates'] = array_reverse( $GLOBALS['labelDates']) ;\n\n \n \n // Return the array elements \n return $dates; \n }", "private function getPostDateRange() {\n \n switch($this->validFilter['postDate']) {\n case 'today' :\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'yesterday':\n $dateStart = new \\DateTime('yesterday');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime('yesterday');\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'thisWeek':\n $today = new \\DateTime();\n if('Sunday' == $today->format('l')) {\n $dateStart = clone $today;\n $dateStart->modify('Monday last week');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = $today;\n $dateEnd->setTime(23, 59, 59);\n } else {\n $dateStart = clone $today;\n $dateStart->modify('Monday this week');\n $dateStart->setTime(0, 0, 1);\n $dateEnd = clone $today;\n $dateEnd->modify('Sunday this week');\n $dateEnd->setTime(23, 59, 59);\n }\n break;\n\n case 'lastWeek':\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateStart->sub(new \\DateInterval('P7D'));\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n\n case 'pastMonth':\n $dateStart = new \\DateTime();\n $dateStart->setTime(0, 0, 1);\n $dateStart->sub(new \\DateInterval('P1M'));\n $dateEnd = new \\DateTime();\n $dateEnd->setTime(23, 59, 59);\n break;\n default :\n $dateStart = new \\DateTime($this->validFilter['postDate']);\n $dateStart->setTime(0, 0, 1);\n $dateEnd = new \\DateTime($this->validFilter['postDate']);\n $dateEnd->setTime(23, 59, 59);\n break;\n } // end of switch\n \n return array($dateStart, $dateEnd);\n }", "protected function _getDateRange()\n {\n if (is_null($this->_dateRange)) {\n $this->_dateRange = array();\n $rules = $this->getAttributeObject()->getValidateRules();\n if (isset($rules[self::MIN_DATE_RANGE_KEY])) {\n $this->_dateRange[self::MIN_DATE_RANGE_KEY] = $rules[self::MIN_DATE_RANGE_KEY];\n }\n if (isset($rules[self::MAX_DATE_RANGE_KEY])) {\n $this->_dateRange[self::MAX_DATE_RANGE_KEY] = $rules[self::MAX_DATE_RANGE_KEY];\n }\n }\n return $this->_dateRange;\n }", "public static function from_array($d)\r\n {\r\n $newstart = !empty($d['start']) ? $d['start'] : NULL;\r\n $newend = !empty($d['end']) ? $d['end'] : NULL;\r\n if($newstart) {\r\n $newstart = PiplApi_Utils::piplapi_str_to_date($newstart);\r\n }\r\n if($newend){\r\n $newend = PiplApi_Utils::piplapi_str_to_date($newend);\r\n }\r\n return new PiplApi_DateRange($newstart, $newend);\r\n }", "function DatesBetween($startDate, $endDate){\r\n\t$days = (strtotime($endDate) - strtotime($startDate)) / 86400 + 1;\r\n\t$startMonth = date(\"m\", strtotime($startDate));\r\n\t$startDay = date(\"d\", strtotime($startDate));\r\n\t$startYear = date(\"Y\", strtotime($startDate));\r\n\t$dates;//the array of dates to be passed back\r\n\tfor($i=0; $i<$days; $i++){\r\n\t\t$dates[$i] = date(\"m/d/Y\", mktime(0, 0, 0, $startMonth , ($startDay+$i), $startYear));\r\n\t}\r\n\treturn $dates;\r\n}", "public static function makeRandomDateInclusive($startDate, $endDate){\r\n\t\t$days = round((strtotime($endDate) - strtotime($startDate)) / (60 * 60 * 24));\r\n\t\t$n = rand(0,$days);\r\n\t\treturn date(\"Y-m-d\",strtotime(\"$startDate + $n days\"));\r\n\t}", "public function getUpcoming() {\r\n \r\n $params = array(\r\n date(\"Y-m-d\"),\r\n date(\"Y-m-d\", strtotime(\"tomorrow\")),\r\n 0\r\n );\r\n \r\n $query = \"SELECT id FROM reminders WHERE reminder >= ? AND reminder < ? AND sent = ?\";\r\n \r\n foreach ($this->db->fetchAll($query, $params) as $row) {\r\n yield new Reminder($row['id']);\r\n }\r\n }", "function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n $i=0;\n $aryRange=array();\n\n//$aryRange[] = array(\"DATA\"=>\"\");\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n// array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n// array_push($aryRange[\"DATA\"],date('Y-m-d',$iDateFrom)); // first entry\n$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom), 'KEY=>'.$i);\n$i=$i+1;\n\n//$array[] = $var;\n\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n// array_push($aryRange,date('Y-m-d',$iDateFrom));\n// array_push($aryRange[\"DATA\"],date('Y-m-d',$iDateFrom));\n//$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom));\n$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom), 'KEY=>'.$i);\n$i=$i+1;\n\n }\n }\n$aryRange=array_reverse($aryRange);\n\n return $aryRange;\n}", "public static function range($lowerBound, $upperBound, $unit = DAY) {\n\t\t\tif(is_string($lowerBound)) {\n\t\t\t\t$lowerBound = strtotime($lowerBound);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(empty($upperBound)) {\n\t\t\t\t$upperBound = self::now();\n\t\t\t}\n\t\t\t\n\t\t\tif(is_string($upperBound)) {\n\t\t\t\t$upperBound = strtotime($upperBound);\n\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t$range = range($lowerBound, $upperBound, $unit);\n\t\t\t\n\t\t\treturn array_map(function($date) { return date('Y-m-d', $date); }, $range);\n\t\t}", "function get_days($startdate,$enddate){\r\n\t$begin = new DateTime(date(\"Y-m-d\", strtotime($startdate)));\r\n$end = new DateTime(date(\"Y-m-d\", strtotime($enddate)));\r\n\r\n$daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);\r\n\r\nforeach($daterange as $date){\r\n $adays[] =$date->format(\"Y-m-d\");\r\n}\r\n$adays[] =date(\"Y-m-d\", strtotime($enddate)) ;\r\nreturn $adays; \r\n}", "protected function dates_filter(){\n \t//+Constraint Isgi: only one year data\n \t$temporal = $this->get_temporal();\n \tif( strtolower($temporal->end) == \"now\"){\n \t\t$now = new \\DateTime();\n \t\t$temporal->end = $now->format(\"Y-m-d\");\n \t}\n \t\n \t\n \t//change start and end\n \tif( $this->start < $temporal->start){\n \t\t$this->start = $temporal->start;\n \t}\n \tif( $this->end > $temporal->end){\n \t\t$this->end = $temporal->end;\n \t}\n \t$update = $this->get_update();\n \tif( !empty( $update) && $update < $this->end){\n \t\t$this->end = $update;\n \t}\n \t// diff between start and end\n \t$start = new \\DateTime( $this->start);\n \t$end = new \\DateTime( $this->end);\n \t$interval = $start->diff( $end);\n \tif( $interval->invert){\n \t\t//end < start\n \t\t$this->error = \"NO_DATA\";\n \t}else{\n\t \tif( $interval->days > 365){\n\t \t\t$start = clone $end;\n\t \t\t$start->sub( new \\DateInterval(\"P364D\"));\n\t \t\t$this->start = $start->format(\"Y-m-d\");\n\t \t}\n \t}\n }", "public function get_dates($start_date,$end_date){\r\n\t $date1 = date_format(date_create($start_date), 'Y-m-d');\r\n\t $date2 = date_format(date_create($end_date), 'Y-m-d');\r\n\t\t$dates = $this->date_manager->getAllDatesBetweenTwoDates($date1,$date2);\r\n\t\t$dates2 = $this->date_manager->exclude_weekends($dates);\r\n\t\tforeach($dates2 as $dat){\r\n\t\t\t$dates3[] = date_format(date_create($dat), 'm/d/Y');\r\n\t\t\t}\r\n\t return $dates3;\r\n\t }", "public function fillMissingDates($start, $end, $results)\n\t{\n\t\t$newResults = [];\n\t\t\n\t\tfor($x = $this->stringToTime($start); $x <= $this->stringToTime($end); $x += 86400) {\n\t\t\tforeach($results as $result) {\n\t\t\t\tif ($result->{$this->key} == date($this->format, $x)) {\n\t\t\t\t\t$this->flag['mode'] = 1;\n\t\t\t\t\t$this->flag['count'] = $result->count;\n\t\t\t\t} \n\t\t\t}\n\t\t\t\n\t\t\tif($this->flag['mode'] == 1) {\n\t\t\t\t$newResults[] = (object) ['count' => $this->flag['count'], 'date' => date($this->format, $x)];\n\t\t\t} else {\n\t\t\t\t$newResults[] = (object) ['count' => 0, 'date' => date($this->format, $x)];\n\t\t\t}\n\t\t\t$this->revertCounter();\n\t\t}\n\n\t\treturn $newResults;\n\t}", "public function getEvents(DateTime $dateStart = null, DateTime $dateEnd = null)\n {\n $events = array();\n\n if ($dateStart === null) {\n $dateStart = new DateTime();\n }\n\n if ($dateEnd === null) {\n $dateEnd = clone $dateStart;\n $dateEnd->add(new DateInterval('P1Y'));\n }\n\n if (($this->repeatEndDate !== null) && ($this->repeatEndDate < $dateEnd)) {\n $dateEnd = $this->repeatEndDate;\n }\n\n $repeatDates = $this->getRepeatDates();\n\n for ($count = 0; true; ++$count) {\n if ($this->repeatCount > 0 && $count >= $this->repeatCount) {\n break;\n }\n /** @var DateTime[] $repeatDate */\n foreach ($repeatDates as $repeatDate) {\n if ($repeatDate['start'] <= $dateEnd && $repeatDate['end'] >= $dateStart && !$this->isRepeatException($repeatDate['start'])) {\n $events[] = $this->createEvent(clone $repeatDate['start'], clone $repeatDate['end']);\n }\n if (!$this->repeatInterval || $repeatDate['start'] > $dateEnd) {\n break 2;\n }\n $repeatDate['start']->add($this->repeatInterval);\n $repeatDate['end']->add($this->repeatInterval);\n }\n }\n\n return $events;\n }", "public function definition()\n {\n $start_date = $this->faker->dateTimeThisYear();\n $start_date_clone = clone $start_date;\n $end_date = $this->faker->dateTimeBetween($start_date, $start_date_clone->modify('+1 year'));\n\n $start_date_string = $start_date->format('Y-m-d H:i:s');\n $end_date_string = $end_date->format('Y-m-d H:i:s');\n\n //dd($start_date->format('Y-m-d H:i:s'));\n\n return [\n 'title' => $start_date->format('Y').'-'.$end_date->format('Y'),\n 'begin' => $start_date_string,\n 'end' => $end_date_string,\n 'owner_id' => auth()->user()->id,\n\n ];\n }", "public static function getDatesListWithoutSpaces($dates)\n {\n $dates =\n array_map(function ($value) {\n return strtotime($value);\n }, $dates);\n\n $date_start = min($dates);\n $date_end = max($dates);\n\n\n $dates_without_spaces = [];\n $current_date = $date_start;\n\n while ($current_date <= $date_end) {\n array_push($dates_without_spaces, date('Y-m-d', $current_date));\n $current_date = strtotime('+1 day', $current_date);\n }\n\n return $dates_without_spaces;\n }", "public static function getDateRange($startDate = NULL,$endDate = NULL/*, $timeZone = null*/)\n {\n// $toTZ = new DateTimeZone($timeZone ?: date_default_timezone_get());\n// $begin = new DateTime( $startDate, $toTZ );\n// $end = new DateTime( $endDate, $toTZ );\n \n $begin = new DateTime( $startDate );\n $end = new DateTime( $endDate );\n $end->modify('+1 day');\n $interval = DateInterval::createFromDateString('1 day');\n return new DatePeriod($begin, $interval, $end);\n }", "public function getPeriodDatesProperty()\n {\n $now = Carbon::now()->timezone(\"America/Bogota\");\n $min = $now->copy();\n $max = $now->copy();\n\n switch ($this->period) {\n case 'today':\n break;\n case 'yesterday':\n $min->subDay();\n $max->subDay();\n break;\n case 'thisWeek':\n $min->startOfWeek();\n $max->endOfWeek();\n break;\n case 'lastWeek':\n $min->subWeek()->startOfWeek();\n $max->subWeek()->endOfWeek();\n break;\n case 'thisFortnight':\n if ($min->day > 15) {\n $min->day(16);\n $max->endOfMonth();\n } else {\n $min->startOfMonth();\n $max->startOfMonth()->addDays(14);\n }\n break;\n case 'lastFortnight':\n if ($min->day > 15) {\n $min->startOfMonth();\n $max->startOfMonth()->addDays(14);\n } else {\n $min->subMonth()->day(16);\n $max->subMonth()->endOfMonth();\n }\n break;\n case 'thisMonth':\n $min->startOfMonth();\n $max->endOfMonth();\n break;\n case 'lastMonth':\n $min->subMonth()->startOfMonth();\n $max->subMonth()->endOfMonth();\n break;\n\n default:\n # code...\n break;\n }\n\n $min->startOfDay();\n $max->endOfDay();\n $format = 'd-m-y H:i:s';\n\n return [\n 'min' => $min,\n 'minView' => $min->format($format),\n 'max' => $max,\n 'maxView' => $max->format($format),\n ];\n }", "function test_range() {\n\t\t// Check range\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2018, 1 );\n\t\t$this->assertEquals( '2018-01-01 00:00:00', $start );\n\t\t$this->assertEquals( '2018-01-31 23:59:59', $end );\n\t\t// Check leap year\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2004, 2 );\n\t\t$this->assertEquals( '2004-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '2004-02-29 23:59:59', $end );\n\t\t// Check exceptional leap year.\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 1900, 2 );\n\t\t$this->assertEquals( '1900-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '1900-02-28 23:59:59', $end );\n\t}", "function createDateRangeArray($strDateFrom,$strDateTo)\n {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing that in the main script\n \n $aryRange=array();\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date(DATE_FORMAT,$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date(DATE_FORMAT,$iDateFrom));\n }\n }\n \n return $aryRange;\n }", "function createDateRangeArray($strDateFrom,$strDateTo,$id_tamu)\n\t{\n\t\t// inclusive array of the dates between the from and to dates.\n\n\t\t// could test validity of dates here but I'm already doing\n\t\t// that in the main script\n\n\t\t$aryRange=array();\n\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n\t\tif ($iDateTo>=$iDateFrom)\n\t\t{\n\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom).\"_\".$id_tamu); // first entry\n\t\t\twhile ($iDateFrom<$iDateTo)\n\t\t\t{\n\t\t\t\t$iDateFrom+=86400; // add 24 hours\n\t\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom).\"_\".$id_tamu);\n\t\t\t}\n\t\t}\n\t\treturn $aryRange;\n\t}", "public function Dates() {\r\n $dates = [];\r\n for ($i = 1; $i <= 31; $i++) {\r\n $dates[$i] = $i;\r\n }\r\n return $dates;\r\n }", "public function split(Period|Duration|DateInterval $duration): iterable\n {\n $duration = self::filterDuration($duration);\n /** @var DateTimeImmutable $startDate */\n foreach ($this->toDatePeriod($duration) as $startDate) {\n $endDate = $startDate->add($duration);\n if ($endDate > $this->endDate) {\n $endDate = $this->endDate;\n }\n\n yield new self($startDate, $endDate, $this->bounds);\n }\n }", "public function renderDateRange() {\n\t\tif(!empty($this->dateRange)) {\n\t\t\t$date_range_data = array(\n\t\t\t\t'from' => $this->dateRange->from->format(\"d.m.Y\"),\n\t\t\t\t'to' => $this->dateRange->to->format(\"d.m.Y\")\n\t\t\t);\n\t\t\t\n\t\t\t$this->template->date_range_data = $date_range_data;\n\t\t}\n\t}", "function erp_get_financial_year_dates( $date = null ) {\n $start_month = erp_get_option( 'gen_financial_month', 'erp_settings_general', 1 );\n if ( $date == null ) {\n $year = date( 'Y' );\n $month = date( 'n' );\n } else {\n if ( ! is_numeric( $date ) ) {\n $timestamp = strtotime( $date );\n }\n else {\n $timestamp = $date;\n }\n $year = date( 'Y', $timestamp );\n $month = date( 'n', $timestamp );\n }\n\n /**\n * Suppose, $start_month is July and today is May 2017. Then we should get\n * start = 2016-07-01 00:00:00 and end = 2017-06-30 23:59:59.\n *\n * On the other hand, if $start_month = January, then we should get\n * start = 2017-01-01 00:00:00 and end = 2017-12-31 23:59:59.\n */\n if ( $month < $start_month ) {\n $year = $year - 1;\n }\n\n $months = erp_months_dropdown();\n $start = date( 'Y-m-d 00:00:00', strtotime( \"first day of $months[$start_month] $year\" ) );\n $end = date( 'Y-m-d 23:59:59', strtotime( \"$start + 12 months - 1 day\" ) );\n\n return [\n 'start' => $start,\n 'end' => $end\n ];\n}", "public function testGetStartDatePassingFebrurary() {\n $now = new \\DateTimeImmutable('2019-09-23 14:50:58.000000');\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'monthly',\n 'start_date' => new \\DateTime('2019-10-30 00:00:00.000000'),\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('2019-10-30', $date->format('Y-m-d'));\n\n $now = new \\DateTimeImmutable('2020-02-10');\n $line_item = $this->lineItemStub([], [\n 'interval_unit' => 'monthly',\n 'start_date' => new \\DateTime('2020-02-29'),\n ]);\n $date = Utils::getStartDate($line_item, $now);\n $this->assertEqual('2020-02-29', $date->format('Y-m-d'));\n }", "function ScheduleDates()\n {\n $dateids=$this->CGI2Dates();\n\n $dates=array();\n foreach ($this->Dates() as $did => $date)\n {\n if (preg_grep('/^'.$date[ \"ID\" ].'$/',$dateids))\n {\n array_push($dates,$date);\n }\n }\n\n return $dates;\n }", "public function getnonavailabledates() {\n\n if ( self::isEmptyResult() ) {\n return array();\n }\n\n $dates = array();\n\n $non_available = $this->data[self::resultinnernode];\n\n $non_available = $this->normalize($non_available);\n\n foreach ($non_available as $dateObj ) {\n $startDate = new \\DateTime($dateObj['dtFromDate']);\n $endDate = new \\DateTime($dateObj['dtToDate']);\n\n $periodInterval = new \\DateInterval('P1D');\n $period = new \\DatePeriod( $startDate, $periodInterval, $endDate );\n\n foreach ($period as $date ) {\n $dates[] = array(\n 'date' => $date->format('Y-m-d'),\n 'available' => 0,\n 'staytype' => $dateObj['strStayType'],\n 'property_id' => $this->property_id,\n\n // Confirmation number\n 'quotenum' => $dateObj['intQuoteNum'],\n );\n }\n\n }\n\n return $dates;\n }", "public function supportsDateRange() {\n\t\treturn true;\n\t}", "public function years_range()\r\n {\r\n // end date.\r\n if(!($this->start && $this->end)){\r\n return NULL;\r\n }\r\n return array($this->start->format('Y'), $this->end->format('Y'));\r\n }", "public function splitBackwards(Period|Duration|DateInterval $duration): iterable\n {\n $endDate = $this->endDate;\n $duration = self::filterDuration($duration);\n do {\n $startDate = $endDate->sub($duration);\n if ($startDate < $this->startDate) {\n $startDate = $this->startDate;\n }\n yield new self($startDate, $endDate, $this->bounds);\n\n $endDate = $startDate;\n } while ($endDate > $this->startDate);\n }", "function randomDate($start_date, $end_date)\n{\n // Convert to timetamps\n $min = strtotime($start_date);\n $max = strtotime($end_date);\n\n // Generate random number using above bounds\n $val = rand($min, $max);\n\n // Convert back to desired date format\n return date('Y-m-d', $val);\n}", "public static function getDates($start, $end, $format = \"Y-m-d\")\n {\n $start = new \\DateTime($start);\n $end = new \\DateTime($end);\n $interval = \\DateInterval::createFromDateString('1 day');\n $period = new \\DatePeriod($start, $interval, $end->modify('+1 day'));\n\n $dates = [];\n\n foreach ($period as $dt) {\n $dates[] = $dt->format($format);\n }\n\n return $dates;\n }", "public static function listDatesInRange($dateFrom, $dateTo = null, $format = 'Y-m-d')\n {\n if($dateTo === null){\n $dateTo = date($format);\n }\n\n //check if is valid date\n $objDateFrom = \\DateTime::createFromFormat($format, $dateFrom);\n if(!$objDateFrom || $objDateFrom->format($format) != $dateFrom){\n throw new \\yii\\base\\InvalidArgumentException($dateFrom.' is invalid');\n }\n\n $objDateTo = \\DateTime::createFromFormat($format, $dateTo);\n if(!$objDateTo || $objDateTo->format($format) != $dateTo){\n throw new \\yii\\base\\InvalidArgumentException($dateFrom.' is invalid');\n }\n\n $period = new \\DatePeriod(\n $objDateFrom,\n new \\DateInterval('P1D'),\n $objDateTo\n );\n foreach($period as $key => $value){\n $range[] = $value->format($format);\n }\n $range[] = $objDateTo->format($format);\n\n return $range;\n }", "public function getPrecedingDateRange()\n {\n return $this->preceding_date_range;\n }", "function createDateRangeArray( $strDateFrom,$strDateTo,$format ) {\n \n $aryRange=array();\n if ( $format == \"european\" ) {\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,3,2),substr($strDateFrom,0,2),substr($strDateFrom,6,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,3,2),substr($strDateTo,0,2),substr($strDateTo,6,4));\n\t} else if ( $format == \"american\" ) {\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,0,2),substr($strDateFrom,3,2),substr($strDateFrom,6,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,0,2),substr($strDateTo,3,2),substr($strDateTo,6,4));\n\t}\n\n\t\n if ($iDateTo>=$iDateFrom) {\n if ( $format == \"european\" ) {\n\t\t\tarray_push($aryRange, date('d-m-Y',$iDateFrom)); \n\t\t} else if ( $format == \"american\" ) {\n\t\t\tarray_push($aryRange,date('m/d/Y',$iDateFrom)); \n\t\t}\n while ($iDateFrom<$iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n if ( $format == \"european\" ) {\n\t\t\t\tarray_push($aryRange,date('d-m-Y',$iDateFrom)); \n\t\t\t} else if ( $format == \"american\" ) {\n\t\t\t\tarray_push($aryRange,date('m/d/Y',$iDateFrom)); \n\t\t\t}\n }\n }\n\t\n return $aryRange;\n}", "private function createDateRangeArray($dateFrom, $dateTo)\n {\n $dateRange = array();\n $tsFrom = strtotime($dateFrom);\n $tsTo = strtotime($dateTo);\n\n if ($tsTo >= $tsFrom)\n {\n $dateRange[] = date('Y-m-d', $tsFrom);\n while ($tsFrom < $tsTo)\n {\n $tsFrom += 60 * 60 * 24;\n $dateRange[] = date('Y-m-d', $tsFrom);\n }\n }\n\n return $dateRange;\n }", "public function getDateRange()\n {\n $format = $this->arguments['dateFormat'];\n if ($format === '') {\n $format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] ?: 'Y-m-d';\n }\n\n $timestamps = array();\n $dateRange = '';\n /** @var Performance $performance */\n foreach ($this->performances as $performance) {\n $timestamps[] = $performance->getDate()->getTimestamp();\n }\n sort($timestamps);\n if (strpos($format, '%') !== false) {\n $dateRange = strftime($format, $timestamps[0]);\n $dateRange .= ' - ' . strftime($format, end($timestamps));\n } else {\n $dateRange = date($format, $timestamps[0]);\n $dateRange .= ' - ' . date($format, end($timestamps));\n }\n\n return $dateRange;\n }", "public static function fromYmd(string $start, string $end): DateRange\n {\n return new DateRange(JustDate::fromYmd($start), JustDate::fromYmd($end));\n }", "public function SelectArrayStartingToday()\n {\n\t\t$ListOfDates;\n\t\t\n\t\t\n\t\t$TodayDay = $this->GetThisDay();\n\t\t$ThisMonth = date('m');\n\t\t$ThisYear = $this->GetThisYear();\n\t\t$NextYear = $ThisYear+1;\n\t\t$ListOfDates = [ $ThisYear, $NextYear ];\n\t\t\n\t\t$rangeMonths = array();\n\t\tfor ($i = $ThisMonth; $i <= 12; $i++ )\n\t\t{\n\t\t\tarray_push( $rangeMonths, $i);\n\t\t}\n\t\t$ListOfDates[$ThisYear] = $rangeMonths;\n\t\t\n\t\t$rangeMonths = array();\n\t\tfor ($i = 1; $i <= 12; $i++ )\n\t\t{\n\t\t\tarray_push($rangeMonths, $i );\n\t\t}\n\t\t$ListOfDates[$NextYear] = $rangeMonths;\n\t\t\n\t\t//Get the number of days in this month\n\t\t$NumberofDays = cal_days_in_month(CAL_GREGORIAN, $ThisMonth, $ThisYear);\n\t\t\n\t\t//Subtract NumberofDays by $TodayDay to get days left. 31 - 14 = 17days left 15, 16 , 17 to 31 \n\t\t$Daysleft = $NumberofDays - $TodayDay;\n\t\t$rangeofdaysleft = array(); // will hold the array of days left in the month, including today.\n\t\t\n\t\tfor( $i = $TodayDay; $i <= $NumberofDays; $i++ )\n\t\t{\n\t\t\tarray_push($rangeofdaysleft, $i);\n\t\t}\n\t\n\t\t//$ListOfDates[$ThisYear];\n\t\tfor( $i = $ThisMonth; $i <= 12 ; $i++)\n\t\t{\n\t\t\tif($i == $ThisMonth)\n\t\t\t{\n\t\t\t\t$ListOfDates[$ThisYear][$i] = $rangeofdaysleft;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$range = array();\n\t\t\t\t$MaxDays = cal_days_in_month(CAL_GREGORIAN, $i, $ThisYear);\n\t\t\t\tfor($d = 1; $d <= $MaxDays; $d++)\n\t\t\t\t{\n\t\t\t\t\tarray_push($range, $d);\n\t\t\t\t}\n\t\t\t\t$ListOfDates[$ThisYear][$i] = $range;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//array_push($ListOfDates, $arrCurrentYear);\n\t\t\n\t\n\t\tfor( $i = 1 ; $i <= 12; $i++\t)\n\t\t{\n\t\t\t$range = array();\n\t\t\t$MaxDays = cal_days_in_month(CAL_GREGORIAN, $i, $NextYear);\n\t\t\tfor($d = 1; $d <= $MaxDays; $d++)\n\t\t\t{\n\t\t\t\tarray_push($range, $d);\n\t\t\t}\n\t\t\t$ListOfDates[$NextYear][$i] = $range;\n\t\t\t\n\t\t}\n\t\t//array_push($ListOfDates, $arrNextYear);\n\t\t\n\t\t\n\t\t\n\t\treturn json_encode($ListOfDates);\n\t\n\t}", "public function GetByDate($initialDate, $endDate);", "public function getRepeatDates()\n {\n $repeatDateStart = clone $this->getDateStart();\n $repeatDateEnd = clone $this->getDateEnd();\n $repeatDates = array(array('start' => clone $repeatDateStart, 'end' => clone $repeatDateEnd));\n $repeatDays = $this->getRepeatDays();\n\n $dayInterval = new DateInterval('P1D');\n for ($i = 0; $i < 6; ++$i) {\n $repeatDateStart->add($dayInterval);\n $repeatDateEnd->add($dayInterval);\n if (in_array($repeatDateStart->format('w'), $repeatDays)) {\n $repeatDates[] = array('start' => clone $repeatDateStart, 'end' => clone $repeatDateEnd);\n }\n }\n\n return $repeatDates;\n }", "public function getRandomItem($min = NULL, $max = NULL)\n\t{\n\t\t// Setup defaults\n\t\tif (is_null($min)) $min = time();\n\t\tif (is_null($max)) $max = strtotime('-50 year');\n\t\t\n\t\t// Convert non-timestamps to timestamps\n\t\tif (!is_int($min)) $min = strtotime($min);\n\t\tif (!is_int($max)) $max = strtotime($max);\n\t\t\n\t\tif ($min > $max)\n\t\t{\n\t\t\t$this->timestamp = mt_rand($max, $min);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->timestamp = mt_rand($min, $max);\n\t\t}\n\t\t\n\t\t$this->date = date($this->format, $this->timestamp);\n\t\t$this->year = date('Y', $this->timestamp);\n\t\t$this->month = date('m', $this->timestamp);\n\t\t$this->day = date('d', $this->timestamp);\n\t\t\n\t\treturn $this->date;\n\t}", "function monthPeriod_start_end($begin, $end)\n{\n $begin = (new DateTime($begin.'-01-01'))->modify('first day of this month');\n $end = (new DateTime($end.'-12-01 +1 month'))->modify('first day of this month');\n $daterange = new DatePeriod($begin, new DateInterval('P1M'), $end);\n\n foreach ($daterange as $date) {\n $dates[] = $date->format(\"m\");\n }\n return $dates;\n}", "function getDates($startdate, $enddate, $days_of_week){\n \n $enddate = new DateTime($enddate);\n $enddate = $enddate->modify(\"+1 day\");\n \n $dates = array();\n $daterange = new DatePeriod(new DateTime($startdate),new DateInterval('P1D'),$enddate);\n \n foreach($daterange as $key=>$value){\n foreach($days_of_week as $day){\n if($value->format('l') == $day){\n $dates[] = $value->format(\"Y-m-d\");\n }\n }\n }\n \n return $dates;\n }", "function createDateInterval($dateStart,$dateStop){\n $ONE_DAY=3600*24;\n $start=strtotime($dateStart);\n $stop=strtotime($dateStop);\n $giorni=array();\n for ($giorno=$start; $giorno<=$stop; $giorno+=$ONE_DAY){\n $giorni[]=date(\"Y-m-d\",$giorno);\n }\n return $giorni;\n }", "function get_days($startdate,$enddate){\r\n $begin = new DateTime(date(\"Y-m-d\", strtotime($startdate)));\r\n $end = new DateTime(date(\"Y-m-d\", strtotime($enddate)));\r\n\r\n $daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);\r\n\r\n foreach($daterange as $date){\r\n $adays[] =$date->format(\"Y-m-d\");\r\n }\r\n $adays[] =date(\"Y-m-d\", strtotime($enddate)) ;\r\n return $adays; \r\n }" ]
[ "0.65252644", "0.64289784", "0.6407874", "0.63963753", "0.6190559", "0.60952073", "0.59726363", "0.59511846", "0.59027946", "0.58849245", "0.5857599", "0.58567137", "0.58363247", "0.58338344", "0.58246106", "0.5780961", "0.57710075", "0.57653433", "0.5744331", "0.5730962", "0.5726823", "0.5683098", "0.56488734", "0.55950344", "0.5574147", "0.54889953", "0.5481659", "0.54781026", "0.546697", "0.54641694", "0.54294384", "0.54080737", "0.53818554", "0.53795016", "0.5368634", "0.53544444", "0.53408885", "0.53308564", "0.533001", "0.530565", "0.5304462", "0.5280524", "0.526677", "0.5249552", "0.52493805", "0.5238234", "0.5232052", "0.5231172", "0.5231172", "0.5211649", "0.5210321", "0.52060777", "0.5201032", "0.5184403", "0.5179127", "0.51777476", "0.5165917", "0.51533246", "0.5150242", "0.51444745", "0.5136841", "0.51333576", "0.5127254", "0.5124655", "0.5113412", "0.5109904", "0.50911534", "0.5085887", "0.50599706", "0.50441176", "0.5042996", "0.50368565", "0.50323474", "0.5027902", "0.50119835", "0.49850193", "0.49800092", "0.4970724", "0.49690259", "0.49644262", "0.49578774", "0.49538663", "0.49531788", "0.49504358", "0.49375623", "0.49369705", "0.49355465", "0.49319378", "0.49253744", "0.49245718", "0.49195164", "0.49192473", "0.49088636", "0.49032903", "0.4899543", "0.48962164", "0.48959607", "0.48955724", "0.48950854", "0.48926678" ]
0.6244009
4
Test whether a particular date lies within this range
public function includes(JustDate $date): bool { return $date->isAfterOrSameAs($this->start) && $date->isBeforeOrSameAs($this->end); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function inPeriod(\\DateTime $date)\n {\n return $date >= $this->startDate && $date <= $this->endDate;\n }", "function erp_check_date_range_in_range_exist( $start_date, $end_date, $user_date_start, $user_date_end ) {\n\n if ( erp_check_date_in_range( $start_date, $end_date, $user_date_start ) ) {\n return true;\n }\n\n if ( erp_check_date_in_range( $start_date, $end_date, $user_date_end ) ) {\n return true;\n }\n\n return false;\n}", "function is_within_date_range( $time, $range_start, $range_end ) {\n\tif ( ! is_int( $range_start ) ) {\n\t\t$range_start = strtotime( $range_start );\n\t}\n\n\tif ( ! is_int( $range_end ) ) {\n\t\t$range_end = strtotime( $range_end );\n\t}\n\n\treturn $time > $range_start && $time < $range_end;\n}", "public function containsDate($date) {\n // if my time period starts AFTER the date, then it doesn't contain it.\n if ($date < $this->eff_date) {\n return false;\n }\n\n // if my time period never expires then we know we're ok at this point\n if (is_null($this->exp_date)) {\n return true;\n }\n\n // if my time period ends before or on date, then I don't contain it.\n if (is_null($date)) {\n return false;\n }\n if ($this->exp_date <= $date) {\n return false;\n }\n\n // no more failure scenarios.\n return true;\n }", "function erp_check_date_in_range( $start_date, $end_date, $date_from_user ) {\n // Convert to timestamp\n $start_ts = strtotime( $start_date );\n $end_ts = strtotime( $end_date );\n $user_ts = strtotime( $date_from_user );\n\n // Check that user date is between start & end\n if ( ( $user_ts >= $start_ts ) && ( $user_ts <= $end_ts ) ) {\n return true;\n }\n\n return false;\n}", "public function between(string $lowerDate, string $upperDate) : bool\r\n {\r\n return ($this->getTimestamp() >= strtotime($lowerDate) && $this->getTimestamp() <= strtotime($upperDate));\r\n }", "private function CheckDateOverlapping()\n\t{\n\t\t$rid = MicroGrid::GetParameter('rid');\n\t\t$start_date = MicroGrid::GetParameter('start_date', false);\n\t\t$finish_date = MicroGrid::GetParameter('finish_date', false);\n\t\t$hotel_id = MicroGrid::GetParameter('hotel_id', false);\n\n\t\t$sql = 'SELECT * FROM '.TABLE_HOTEL_PERIODS.'\n\t\t\t\tWHERE\n\t\t\t\t\tid != '.(int)$rid.' AND\n\t\t\t\t\thotel_id = '.(int)$hotel_id.' AND\n\t\t\t\t\t(((\\''.$start_date.'\\' >= start_date) AND (\\''.$start_date.'\\' <= finish_date)) OR\n\t\t\t\t\t((\\''.$finish_date.'\\' >= start_date) AND (\\''.$finish_date.'\\' <= finish_date))) ';\t\n\t\t$result = database_query($sql, DATA_AND_ROWS, FIRST_ROW_ONLY);\n\t\tif($result[1] > 0){\n\t\t\t$this->error = _TIME_PERIOD_OVERLAPPING_ALERT;\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function validateDate()\n {\n if (\n ($from = $this->getAvailableFrom()) &&\n ($till = $this->getAvailableTill()) &&\n $from->InPast() &&\n $till->InFuture()\n ) {\n return true;\n }\n\n return false;\n }", "public function checkDateRange($date,$dateRange){\r\r\n\t\t\t//provide date in format m/d/y\r\r\n\t\t\tlist($month, $day, $year) = split(\"/\", $date);\r\r\n\t\t\t$month = (int)$month;\r\r\n\t\t\t$day = (int)$day;\r\r\n\t\t\t$year = (int)$year;\r\r\n\t\t\t$fails = false;\r\r\n\t\t\tif ($year >= $dateRange['startYear'] && $year <= $dateRange['endYear']){\r\r\n\t\t\t\t//if year is within B-E\r\r\n\t\t\t\tif($year == $dateRange['startYear'] ){\r\r\n\t\t\t\t\t//Y=B\r\r\n\t\t\t\t\tif($month >= $dateRange['startMonth']){\r\r\n\t\t\t\t\t\tif($month == $dateRange['startMonth']){\r\r\n\t\t\t\t\t\t\tif($day >= $dateRange['startDay']){\r\r\n\t\t\t\t\t\t\t\t// start < contactDate\r\r\n\t\t\t\t\t\t\t}else{\r\r\n\t\t\t\t\t\t\t\t$fails = true;\r\r\n\t\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t}else{\r\r\n\t\t\t\t\t\t$fails = true;\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t\tif($year == $dateRange['endYear'] ){\r\r\n\t\t\t\t\tif($month <= $dateRange['endMonth']){\r\r\n\t\t\t\t\t\tif($month == $dateRange['endMonth']){\r\r\n\t\t\t\t\t\t\tif($day <= $dateRange['endDay']){\r\r\n\t\t\t\t\t\t\t\t// end > contactDate\r\r\n\t\t\t\t\t\t\t}else{\r\r\n\t\t\t\t\t\t\t\t$fails = true;\r\r\n\t\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t}else{\r\r\n\t\t\t\t\t\t$fails = true;\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t}else{\r\r\n\t\t\t\t$fails = true;\r\r\n\t\t\t}\r\r\n\r\r\n\t\t\tif($fails){\r\r\n\t\t\t\treturn false;\r\r\n\t\t\t} else {\r\r\n\t\t\t\treturn true;\r\r\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\r\r\n\t\t}", "private function containsDatePoint(DateTimeInterface $datepoint, string $bounds): bool\n {\n return match ($bounds) {\n self::EXCLUDE_ALL => $datepoint > $this->startDate && $datepoint < $this->endDate,\n self::INCLUDE_ALL => $datepoint >= $this->startDate && $datepoint <= $this->endDate,\n self::EXCLUDE_START_INCLUDE_END => $datepoint > $this->startDate && $datepoint <= $this->endDate,\n default => $datepoint >= $this->startDate && $datepoint < $this->endDate,\n };\n }", "function check_in_range($start_date, $end_date, $date_from_user)\n{\n // Convert to timestamp\n $start_ts = strtotime($start_date);\n $end_ts = strtotime($end_date);\n $user_ts = strtotime(date('Y-m-d', strtotime($date_from_user)));\n\n // Check that user date is between start & end\n return (($user_ts >= $start_ts) && ($user_ts <= $end_ts));\n}", "public function within_bounds($date, $participant_id)\n\t{\n\t\t$this->db->where('participant_id', $participant_id);\n\t\t$this->db->where('from <=', $date);\n\t\t$this->db->where('to >', $date);\n\t\t$this->db->from('impediment');\n\t\treturn $this->db->count_all_results() > 0;\n\t}", "private function checkDate($start_date, $end_date, $start_date_2, $end_date_2) {\n // Convert to timestamp\n $date['start'] = strtotime($start_date);\n $date['end'] = strtotime($end_date);\n $date2['start'] = strtotime($start_date_2);\n $date2['end'] = strtotime($end_date_2);\n \n // check if intervals overlap\n if(($date['start'] <= $date2['end']) && ($date['end'] >= $date2['start'])) {\n return FALSE;\n }\n \n return TRUE;\n }", "public function in_interval($date, $start_date) {\n //$day_count = (int) (($date - $start_date) / ICIceCube::ONE_DAY);\n //return $day_count % $this->interval == 0\n return true;\n }", "function is_valid_date_range($date_start, $date_end){\n $d1 = strtotime($date_start);\n $d2 = strtotime($date_end);\n\n if($d2 >= $d1){\n return true;\n }else{\n return false;\n }\n\n}", "protected function _checkDate($from, $to) {\r\n $return = true;\r\n $date = date( 'Y-m-d');\r\n $today = strtotime ($date);\r\n if ($from && $today < $from) {\r\n $return = false;\r\n }\r\n if ($to && $today > $to) {\r\n $return = false;\r\n }\r\n if (! $to && ! $from) {\r\n $return = false;\r\n }\r\n return $return;\r\n }", "protected function isWithin() {\n if(isset($this->listeners['within']) && \n $this->start_time instanceof \\DateTime &&\n $this->since_start instanceof \\DateTime) {\n foreach($this->listeners['within'] as $listener) {\n list($increment,$period) = $listener;\n $diff = $this->start_time->diff($this->since_start);\n if($diff->$period < $increment) {\n return true;\n }\n }\n } else {\n return true;\n }\n \n return false;\n }", "public function isWithinInterval($lowerBoundDate, $upperBoundDate) {\n\n\t\t$minday = $minday = date('Y-m-d', strtotime($lowerBoundDate));\n\t\t$maxday = date('Y-m-d', strtotime($upperBoundDate));\n\n\t\t$thisday = $this->getISOFormat();\n\n\t\treturn ( empty($lowerBoundDate) || $thisday >= $minday)\n\t\t\t&& ( empty($upperBoundDate) || $thisday <= $maxday);\n\t}", "public function contains(DateRange $range): bool\n {\n return $this->start->isBeforeOrSameAs($range->start) && $this->end->isAfterOrSameAs($range->end);\n }", "public static function is_reservtion_possible(DateTime $date1, DateTime $date2, Room $room_for_check){\r\n if ($date1>$date2) return false;\r\n \r\n $unavailable_dates = (new self)->all_unavailable_dates($room_for_check);\r\n// var_dump($unavailable_dates); \r\n $unav_dates_between = array();\r\n foreach($unavailable_dates as $the_date){\r\n if (self::is_date_greater($the_date, $date1) && self::is_date_greater($date2, $the_date)){\r\n $unav_dates_between[] = $the_date;\r\n// var_dump($the_date);\r\n break;\r\n \r\n }\r\n }\r\n// var_dump($unav_dates_between);\r\n return empty($unav_dates_between);\r\n}", "private static function dateInRange($dateToCheck, $dateBase, $dayOffset, $day_offset_plusminus)\r\n\t{\r\n\t\t// Convert day_offset to seconds for comparison\r\n\t\t$dayOffsetSeconds = $dayOffset*86400;\r\n\t\t// Check if in range, which is dependent upon offset_plusminus value\r\n\t\tif ($day_offset_plusminus == '+-') {\r\n\t\t\t$diff = abs(strtotime($dateToCheck) - strtotime($dateBase));\r\n\t\t\treturn ($diff < $dayOffsetSeconds);\r\n\t\t} elseif ($day_offset_plusminus == '+') {\r\n\t\t\t$diff = strtotime($dateToCheck) - strtotime($dateBase);\r\n\t\t\treturn ($diff < $dayOffsetSeconds && $diff >= 0);\r\n\t\t} elseif ($day_offset_plusminus == '-') {\r\n\t\t\t$diff = strtotime($dateBase) - strtotime($dateToCheck);\r\n\t\t\treturn ($diff < $dayOffsetSeconds && $diff >= 0);\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static function inDateRange($startDate, $endDate)\r\n\t{\r\n\t\tif(self::datesEqual($startDate, $endDate) || self::dateGreater($endDate, $startDate))\r\n\t\t{\r\n\t\t\treturn true;\t\t\t\r\n\t\t}else\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "protected function isWithinTimedBannerRange()\n {\n // First fetch the server datetime and then convert that exact datetime to UTC so that it's compatible\n // with the UTC given start and end datetimes\n $oCurrentDateTime = $this->getLocale()->date(null, $this->getDateTimeFormat());\n $oCurrentDateTime = new Zend_Date($oCurrentDateTime->toString(), $this->getDateTimeFormat(), $this->getLocale()->getLocaleCode());\n\n $oStart = $this->getStart();\n $oEnd = $this->getEnd();\n\n // There is only a start and it's now or before\n if ($oStart && !$oEnd && $oCurrentDateTime >= $oStart) { return true; }\n // Both start and end are present and now is between them\n if ($oStart && $oEnd && $oCurrentDateTime >= $oStart && $oCurrentDateTime <= $oEnd) { return true; }\n // There is no start but there is an end and now is before the end\n if (!$oStart && $oEnd && $oCurrentDateTime <= $oEnd) { return true; }\n\n return false;\n }", "public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null);", "public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null);", "public function checkHireDateisinRange($year,$dateRange){\r\r\n\t\t\t// some employee hire dates are entered in 'xx' some in 'xxxx' - this filters them out and compares accordingly\r\r\n\t\t\t$year = (int)$year;\r\r\n\t\t\tif($year < 100){ // if year was sloppily entered in 2 digit format\r\r\n\t\t\t\tif($year >= 50){ // safe to assume the 2digit year is from the 1900s\r\r\n\t\t\t\t\t$year = $year + 1900;\r\r\n\t\t\t\t}elseif($year < 50 ){ // safe to assume the 2 digit year is from the 2000s\r\r\n\t\t\t\t\t$year = $year + 2000;\r\r\n\t\t\t\t}\r\r\n\t\t\t} \r\r\n\r\r\n\t\t\tif( $year <= $dateRange['endYear']){\r\r\n\t\t\t\treturn true;\r\r\n\t\t\t} else{\r\r\n\t\t\t\treturn false;\r\r\n\t\t\t}\r\r\n\t\t}", "protected function containsDatePoint($datepoint)\n {\n $datetime = static::filterDatePoint($datepoint);\n\n return ($datetime >= $this->startDate && $datetime < $this->endDate)\n || ($datetime == $this->startDate && $datetime == $this->endDate);\n }", "public function has_date( $date ) {\n\t\n\t\treturn in_array( $date, $this->dates );\n\t\n\t}", "public function isNowInRange()\n {\n $now = (new \\DateTime())->format('H:i:s');\n return $this->start->__toString() <= $now\n && $this->end->__toString() >= $now;\n }", "private function compare_with_date()\n {\n }", "function validateDateRange($date1, $date2){\n\treturn ( strtotime($date1) - strtotime($date2) ) <= 0;\t//should be a negative number, or 0 if posts=expiration\n}", "private function checkDates($startdate, $enddate) {\n return $this->checkDate($startdate) && $this->checkDate($enddate);\n }", "function isInTimerange(\\DateTimeInterface $dateTime, \\DateInterval $interval) : bool;", "public function isBooked($start_date, $end_date) {\n\t\t$bookings = Booking::getBookingDates($this->id, date('Y-m-d'));\n\n\t\tforeach ($bookings as $booking) {\n\t\t\t// if they overlap return false\n\t\t\tif (strtotime($start_date) <= strtotime($booking->end_date) && strtotime($booking->start_date) <= strtotime($end_date)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "protected function checkDate($start_date, $end_date = null){\r\n $checkStartDate = HariTidakEfektif::find()\r\n ->where([\r\n 'Or',\r\n \"date(tanggal_awal) = '$start_date' And tanggal_akhir IS null\",\r\n [\r\n 'And',\r\n \"date(tanggal_awal) <= '$start_date'\",\r\n \"date(tanggal_akhir) >= '$start_date'\"\r\n ]\r\n ])->one();\r\n if( $end_date != null ){\r\n $checkEndDate = HariTidakEfektif::find()\r\n ->where([\r\n 'Or',\r\n \"date(tanggal_awal) = '$end_date' And tanggal_akhir IS null\",\r\n [\r\n 'And',\r\n \"date(tanggal_awal) <= '$end_date'\",\r\n \"date(tanggal_akhir) >= '$end_date'\"\r\n ]\r\n ])->one();\r\n }\r\n\r\n if ( is_null($checkStartDate)){\r\n if( isset($checkEndDate) ){\r\n if (is_null($checkEndDate)) return true;\r\n else false;\r\n } else {\r\n return true;\r\n }\r\n } \r\n return false;\r\n }", "public function isWithin( $date, $part = \\Zend_Date::TIMESTAMP, $locale = null )\n {\n return ($this->_start->isEarlier($date, $part, $locale) ||\n $this->_start->equals($date, $part, $locale)) &&\n ($this->_end->isLater($date, $part, $locale) ||\n $this->_end->equals($date, $part, $locale));\n }", "function greaterDate($start_date = null, $end_date = null, $equalTo = false)\n {\n $start = strtotime($start_date);\n $end = strtotime($end_date);\n if ($end-$start > 0)\n return true;\n else if ($equalTo && $end-$start >= 0)\n return true;\n else\n return false;\n }", "function IsDateBetween($startDate, $checkDate, $endDate){\n\t\tif(strtotime($checkDate) >= strtotime($startDate) && strtotime($checkDate) <= strtotime($endDate)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static function _within(ilDateTime $dt, ilDateTime $start, ilDateTime $end, $a_compare_field = '', $a_tz = '')\n\t{\n\t\treturn \n\t\t\t(ilDateTime::_after($dt, $start,$a_compare_field,$a_tz) or ilDateTime::_equals($dt, $start,$a_compare_field,$a_tz)) &&\n\t\t\t(ilDateTime::_before($dt, $end,$a_compare_field,$a_tz) or ilDateTime::_equals($dt, $end,$a_compare_field,$a_tz));\n\t}", "function CHECK_valability($endDATE) {\n\n $TMSP_end = strtotime($endDATE);\n $TMSP_today = time();\n\n if($TMSP_end > $TMSP_today) return true;\n else return false;\n }", "public function is_in_time(DateTime $date=NULL){\n if ( $this->deadline != NULL){\n if ($date==NULL){ $date=date_create(date(\"Y/m/d\")); }\n if (date_create($this->deadline) <= $date){\n return 'True';\n } else {\n return 'False';\n }\n }\n }", "private function validateDate($date)\n {\n $dateHead = new \\DateTime();\n $dateTail = (new \\DateTime('+2 weeks, +1 day'))->modify('midnight');\n\n if ($date < $dateHead || $date >= $dateTail) {\n throw new Exceptions\\InvalidDateException('Date outside acceptable range');\n }\n }", "public function isEqualTo(Tiramizoo_Shipping_Model_Date $date)\n {\n return $this->getTimestamp() == $date->getTimestamp();\n }", "function buscar_fecha ($fecha) {\n global $DB;\n $fechamin = buscar_menor_fecha();\n $fechamax = buscar_mayor_fecha();\n if ($fecha >= $fechamin->date && $fecha <= $fechamax->date) {\n return true;\n } else {\n return false;\n }\n}", "public function validStartDate($date)\n\t{\n\t\t$currentDate = new Datetime;\n\t\t$startDate = new Datetime($date);\n\n\t\treturn ($startDate < $currentDate) ? false : true;\n\t}", "public function leadsInDates($start, $end, $data = []);", "private function filterHotelByDate(Hotel $hotel): bool\n {\n foreach ($hotel->availability as $range) {\n\n $from = strtotime($this->target['from']);\n $to = strtotime($this->target['to']);\n\n if (strtotime($range->from) <= $from && strtotime($range->to) >= $to)\n return true;\n\n }\n return false;\n\n }", "protected function validateDateInterval(\\DateTime $value, \\DateTime $min, \\DateTime $max)\n {\n\n if (($value >= $min) && ($value <= $max)) {\n\n return true;\n }\n\n return false;\n }", "public function supportsDateRange() {\n\t\treturn true;\n\t}", "public function isHoliday($date);", "public function isValidPaydate($date);", "private function checkDatesValidity(){\n\t\t$valid=true;\n\t\t$today = date(\"Y-m-d\");\n\t\tif($this->validFrom!=\"\" && $this->validFrom!=\"0000-00-00\" && $today<$this->validFrom) $valid=false;\n\t\tif($this->validUntil!=\"\" && $this->validUntil!=\"0000-00-00\" && $today>$this->validUntil) $valid=false;\n\t\treturn $valid;\n\t}", "public function inRange($age) {\r\n $lowerApplies = !isset($this->ageFrom) || $age >= $this->ageFrom;\r\n $upperApplies = !isset($this->ageTo) || $age <= $this->ageTo;\n\n return $lowerApplies && $upperApplies;\r\n }", "public function isValidDate() {\n\t\t// TODO\n\t\treturn TRUE;\n\t}", "function valida_dates($enter_date, $obsolescense_date)\n{\n $day1 = substr($enter_date, 0, 2);\n $month1 = substr($enter_date, 3, 2);\n $year1 = substr($enter_date, 6, 4);\n $day2 = substr($obsolescense_date, 0, 2);\n $month2 = substr($obsolescense_date, 3, 2);\n $year2 = substr($obsolescense_date, 6, 4);\n\n if ($enter_date <= $obsolescense_date) {\n return true;\n }\n\n return false;\n}", "public function date($data,$between);", "private function check_in_range($fecha_inicio, $fecha_fin, $fecha){\n $fecha_inicio = strtotime($fecha_inicio);\n $fecha_fin = strtotime($fecha_fin);\n $fecha = strtotime($fecha);\n if(($fecha >= $fecha_inicio) && ($fecha <= $fecha_fin)) {\n return true;\n } else {\n return false;\n }\n }", "function isPast()\r\n {\r\n $agora = new Date();\r\n if($this->before($agora)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "private function check_hour_starts_before_end(int $start_at, int $end_at): bool\n {\n // PHP zet het on-the-fly in een DateTimeImmutable, dus het kost wel wat extra werk\n // Dit doet dus date('Y-m-d H:i:s', $start_at) < date(......\n return $start_at < $end_at;\n }", "private function checkEventDateNotDue(){\n $event = Event::find($this->id);\n $now = Carbon::now();\n \n $startTime = Carbon::createFromFormat('Y-m-d H:i:s', $event->start_time);\n return $startTime->gt($now);\n }", "public static function check($date)\n {\n $tempWeek = self::toWeek($date);\n $lunar = new Lunar(substr($date,0,4),substr($date,5,2),substr($date,8,2));\n $chunjie = $lunar->display();\n $date = substr($date,5,2).substr($date,8,2);\n\n if(($date<=\"1007\"&&$date>=\"1001\")||($date<=\"0503\"&&$date>=\"0501\")||\n ($chunjie<=\"0107\"&&$chunjie>=\"0101\")||$tempWeek==\"Saturday\"||\n $tempWeek==\"Sunday\")\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "function validaNascimento($ano, $mes, $dia)\n{\n\n $dataCheck = $ano.'-'.$mes.'-'.$dia;\n if (checkdate($mes, $dia, $ano) && $dataCheck<=date('Y-m-d'))\n return true;\n else return false;\n}", "public function containsPeriod(Doctrine_Temporal_TimePeriod $theirs, $exp_date_inclusive = true) {\n // if my time period starts AFTER theirs starts, then it doesn't contain it.\n if ($theirs->eff_date < $this->eff_date) {\n return false;\n }\n\n // if my time period never expires then we know we're ok at this point\n if (is_null($this->exp_date)) {\n return true;\n }\n\n // if their time period ends AFTER mine ends, then mine doesn't contain it.\n if (is_null($theirs->exp_date)) {\n return false;\n }\n if ($this->exp_date < $theirs->exp_date) {\n return false;\n }\n if (!$exp_date_inclusive && $this->exp_date == $theirs->exp_date) {\n return false;\n }\n\n // no more failure scenarios.\n return true;\n }", "public function isBetween($initialDate, $finalDate){\n\t\t$fecha = $this->getDate();\n\t\t$c1 = self::compareDates($fecha, $initialDate);\n\t\t$c2 = self::compareDates($fecha, $finalDate);\n\t\treturn ($c1!=-1)&&($c2!=1);\n\t}", "function validate_date($date) {\n $d = \\DateTime::createFromFormat('Y-m-d', $date);\n return $d && $d->format('Y-m-d') === $date;\n }", "public function isTodayLessThanOrEqualToEndValidityDate($today,$end_date){\n \n if(($end_date['year'] - $today['year'])>0){\n return true;\n }else if(($end_date['year'] - $today['year'])<0){\n return false;\n }else{\n if(($end_date['mon'] - $today['mon'])>0){\n return true;\n }else if(($end_date['mon'] - $today['mon'])<0){\n return false;\n }else{\n if(($end_date['mday'] - $today['mday'])>0){\n return true;\n }else if(($end_date['mday'] - $today['mday'])==0){\n return true;\n }else{\n return false;\n }\n }\n }\n \n \n }", "public function isTodayGreaterThanOrEqualToStartValidityDate($today, $start_date){\n \n if(($today['year'] - $start_date['year'])>0){\n return true;\n }else if(($today['year'] - $start_date['year'])<0){\n return false;\n }else{\n if(($today['mon'] - $start_date['mon'])>0){\n return true;\n }else if(($today['mon'] - $start_date['mon'])<0){\n return false;\n }else{\n if(($today['mday'] - $start_date['mday'])>0){\n return true;\n }else if(($today['mday'] - $start_date['mday'])==0){\n return true;\n }else{\n return false;\n }\n }\n }\n \n \n \n }", "public static function checkDatesChronological($start_date_hour, $ending_date_hour) {\n $v = Validator::make(\n ['ending_date_hour' => $ending_date_hour], ['ending_date_hour' => 'required|after:' . $start_date_hour]\n );\n if ($v->fails()) {\n $response['fail'] = $v->messages()->getMessages();\n } else {\n $response = true;\n }\n return $response;\n }", "private function isVocation(DateTime $date):bool {\n\t\treturn $this->vocations->contains($date->format('Y-m-d'));\n\t}", "public function during(DateTimePeriod $period): bool\n {\n return\n $period->getStart() < $this->getStart() &&\n $this->getEnd() < $period->getEnd();\n }", "public function isValid(): bool\n {\n $now = new \\DateTime();\n return $now < $this->getEndDate();\n }", "protected function isValidDate($value)\n\t{\n\t\t$minValue=$this->getMinValue();\n\t\t$maxValue=$this->getMaxValue();\n\t\t \n\t\t$valid=true;\n\n\t\t$dateFormat = $this->getDateFormat();\n\t\tif (strlen($dateFormat)) \n\t\t{\n\t\t\t$value = pradoParseDate($value, $dateFormat);\n\t\t\tif (strlen($minValue)) \n\t\t\t\t$valid=$valid && ($value>=pradoParseDate($minValue, $dateFormat)); \n\t\t\tif (strlen($maxValue)) \n\t\t\t\t$valid=$valid && ($value <= pradoParseDate($maxValue, $dateFormat));\n\t\t\treturn $valid;\n\t\t} \n\t\telse \n\t\t{\n\t\t\t$value=strtotime($value);\n\t\t\tif(strlen($minValue))\n\t\t\t\t$valid=$valid && ($value>=strtotime($minValue));\n\t\t\tif(strlen($maxValue))\n\t\t\t\t$valid=$valid && ($value<=strtotime($maxValue));\n\t\t\treturn $valid;\n\t\t} \n\t}", "public function hasPassed()\n {\n if (empty($this->startDate) || empty($this->endDate)) {\n return false;\n }\n\n $next = $this->next()->next;\n\n return DateTimeHelper::isInThePast($next);\n }", "public function test_end_date_is_before_start_date()\n {\n // show actiual errors without handling\n //$this->withoutExceptionHandling();\n \n $this->json('POST', '/', array_merge($this->data(),['start_date'=>date('Y-m-d'),'end_date'=>date('Y-m-d', strtotime('-35 days'))]))\n ->seeJson([\n 'end_date' => [\"The end date must be a date after or equal to start date.\"]\n ]);\n \n }", "function canBookRoom($startDate,$endDate,$roomID)\n {\n $result = \"TRUE\";\n $query = $this->db->query(\"SELECT * FROM bookings where roomID = $roomID\");\n if($query->num_rows()>0)\n {\n $bookings=$query->result_array();\n\n\n for ($i =0 ; $i < count($bookings); $i++)\n {\n $bookStartTime = $bookings[$i][\"startDate\"];\n $bookEndTime = $bookings[$i][\"endDate\"];\n\n if ($startDate >= $bookStartTime && $startDate <=$bookEndTime)\n {\n $result = \"FALSE\";\n return $result;\n }\n if ($endDate >= $bookStartTime && $endDate <= $bookEndTime)\n {\n $result = \"FALSE\";\n return $result;\n\n }\n }\n }\n return $result;\n\n }", "public function validateDates(&$start, &$end) {\n $sixMonthsAgo = strtotime(\"-6 months\");\n $day = 86400;\n $end = time();\n \n if (!$start) {\n $start = strtotime(\"-7 days\");\n }\n \n $gap = $end - $start; \n \n //Don't mess the dates!\n switch ($gap) {\n case $gap < ($day * 31) :\n $gap = $day * 7;\n break;\n\n case $gap < ($day * 180) ://6 months\n $gap = $day * 31;\n break;\n \n case $gap >= ($day * 180) : \n default : \n $gap = $day * 180; \n break;\n }\n \n $end = time();\n $start = $end - $gap;\n }", "public function between($start, $end, bool $inclusive = true, bool $throwException = true): bool\n {\n $this->ensureCompatibleArgs([$start, $end]);\n return static::betweenCalculation(\n $this->value,\n $start,\n $end,\n $inclusive,\n $this->internalMaxDecPl(),\n $throwException\n );\n }", "function validateDate($date)\n\t\t{\n\t\t\t$d = DateTime::createFromFormat('Y-m-d', $date);\n\t\t\treturn $d && $d->format('Y-m-d') == $date;\n\t\t}", "function validateDate($date)\n\t\t{\n\t\t\t$d = DateTime::createFromFormat('Y-m-d', $date);\n\t\t\treturn $d && $d->format('Y-m-d') == $date;\n\t\t}", "public function isStartDateIncluded(): bool\n {\n return '[' === $this->bounds[0];\n }", "public function draft_date_is_in_the_future($draft_date){\n $now = getdate();\n $timestamp = strtotime($draft_date);\n if($timestamp < $now[0]){\n $this->form_validation->set_message('draft_date_is_in_the_future', 'Draft Date must be in the future');\n return false;\n }\n //another condition should go here to verify the draft date is within the range of valid draft dates for a given season\n else{\n return true;\n }\n \n }", "function joinchick($d){\n\t$start=strtotime('1-1-1996');\n\t$d=strtotime($d);\n\t$today=date(\"d-m-Y\");\n\t$today=strtotime($today);\n\tif($d>$today||$d<$start||$d===false)\n\t\treturn false;\n\telse \n\t\treturn true;\n}", "public function testBetween(): void\n {\n $period = Period::between(LocalDate::of(2010, 1, 15), LocalDate::of(2011, 3, 18));\n $this->assertPeriodIs(1, 2, 3, $period);\n }", "protected static function check_date($date) {\n $date_arr = explode(\"-\", $date);\n\n if (count($date_arr) == 3 && checkdate($date_arr[1], $date_arr[2], $date_arr[0])) {\n return false;\n } else {\n return true;\n }\n }", "public function shouldExecute()\n\t{\n\t\t// date range check\n\t\tif( strtotime($this->start_date) > utc_time() || strtotime($this->end_date) < utc_time() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// time range check, for the current day-of-week\n\t\t$dow_abbrevs = [null, 'mon', 'tues', 'wed', 'thurs', 'fri', 'sat', 'sun'];\n\t\t$dow_int = utc_date()->format('N');\t// 1 = mon, 7 = sun\n\t\t$dow = $dow_abbrevs[$dow_int];\n\t}", "public function isActiveOn($datetime)\n {\n if (!is_int($datetime)) $datetime = strtotime($datetime);\n if (!$datetime) return false;\n return strtotime($this->{$this->starts_at_field}) <= $datetime\n && $datetime <= strtotime($this->{$this->ends_at_field});\n }", "public function isRangeIntoOtherRange(RangeDates $rangeCompare, //rango a buscar\n RangeDates $rangeSearch, //rANGO A COMPARAR \n $withBorder=true){\n yii::error($this->intofisrtCondition($rangeCompare, $rangeSearch, $withBorder));\n yii::error($this->intoSecondCondition($rangeCompare, $rangeSearch));\n yii::error( $this->intoThirdCondition($rangeCompare, $rangeSearch));\n yii::error($this->intoFourthCondition($rangeCompare, $rangeSearch) );\n return (\n $this->intofisrtCondition($rangeCompare, $rangeSearch, $withBorder) &&\n (\n $this->intoSecondCondition($rangeCompare, $rangeSearch) or\n $this->intoThirdCondition($rangeCompare, $rangeSearch) or\n $this->intoFourthCondition($rangeCompare, $rangeSearch)\n )\n );\n }", "public static function validateDate($date)\n {\n $d = \\DateTime::createFromFormat('Y-m-d', $date);\n return $d && $d->format('Y-m-d') === $date;\n }", "public function hasDate() : bool;", "function greaterDate($start_date,$end_date)\r\n\t\t{\r\n\t\t $start = strtotime($start_date);\r\n\t\t $end = strtotime($end_date);\r\n\t\t if ($start-$end > 0)\r\n\t\t return 1;\r\n\t\t else\r\n\t\t return 0;\r\n\t\t}", "public function in_date(BadmintonDate $badminton_date) {\r\n\t\tif ($badminton_date->date_id && $user->user_id) {\r\n\t\t\t$mysqli = Database::connection();\r\n\t\t\t$sql = \"SELECT user_id FROM joins WHERE user_id = '$this->user_id' AND date_id = '$date->date_id'\";\r\n\t\t\t$result = $mysqli->query($sql)\r\n\t\t\tor die ($mysqli->error);\r\n\t\t\treturn ($result->num_rows == 1);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public function contains($index)\n {\n if ($index instanceof Period) {\n return $this->contains($index->getStartDate())\n && ($this->contains($index->getEndDate()) || $index->getEndDate() == $this->getEndDate());\n }\n\n $datetime = static::filterDatePoint($index);\n\n return $datetime >= $this->startDate && $datetime < $this->endDate;\n }", "public static function checkHoliday($date){\n $tempWeek =self::toWeek($date);\n $lunar = new Lunar(substr($date,0,4),substr($date,5,2),substr($date,8,2));\n $chunjie = $lunar->display();\n $date = substr($date,5,2).substr($date,8,2);\n\n if(($date<=\"1007\"&&$date>=\"1001\")||($date<=\"0503\"&&$date>=\"0501\")||\n ($chunjie<=\"0107\"&&$chunjie>=\"0101\")) {\n return true;\n }\n else{\n return false;\n }\n }", "protected function hasAuthorization($date){\n $currentDate = date('Y-m-d');\n $date = $this->dateFormat($date);\n return $date >= $currentDate;\n }", "public function isABusinessDay(\\DateTime $date)\n {\n $dow = $date->format('N');\n if ($dow > 5) {\n return false;\n }\n if (in_array($date->format('Y-m-d'), $this->current_holidays)) {\n return false;\n }\n\n return true;\n }", "public function validate($input)\n {\n if(new \\DateTime($input) <= \\Carbon\\Carbon::now()->subDays(3)) {\n \n return false;\n\n }\n\n // no date future\n if(new \\DateTime($input) > \\Carbon\\Carbon::now()) {\n\n return false;\n }\n\n return true;\n }", "private function CheckStartFinishDate()\n\t{\n\t\t$start_date = MicroGrid::GetParameter('start_date', false);\n\t\t$finish_date = MicroGrid::GetParameter('finish_date', false);\n\t\t\n\t\tif($start_date > $finish_date){\n\t\t\t$this->error = _START_FINISH_DATE_ERROR;\n\t\t\treturn false;\n\t\t}\t\n\t\treturn true;\t\t\n\t}", "public function validity_diff($fdate, $tdate){\n\t\tif(!empty($tdate)){\n\t\t\tif($tdate > $fdate){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}", "public function isWeekend($date);", "public static function isValidDate($date){\n return (DateTime::createFromFormat('d/m/Y', $date)) ? true : false;\n }" ]
[ "0.7149054", "0.68700045", "0.68474436", "0.6845389", "0.6834923", "0.681338", "0.6753103", "0.6730053", "0.67276937", "0.6688882", "0.66369456", "0.65966123", "0.65866363", "0.654803", "0.6547873", "0.6501959", "0.6477576", "0.6398081", "0.6382084", "0.6350635", "0.6264802", "0.62234217", "0.6222134", "0.6209935", "0.6209935", "0.62060994", "0.61833227", "0.61728567", "0.61329454", "0.61182827", "0.6113179", "0.6084105", "0.6046794", "0.60345167", "0.6018072", "0.60043025", "0.59942245", "0.5970611", "0.59042877", "0.5883392", "0.58715165", "0.5865349", "0.58634174", "0.58628476", "0.5859781", "0.58572155", "0.584505", "0.583778", "0.5837678", "0.58339185", "0.58288157", "0.5826293", "0.58239156", "0.58012164", "0.57727164", "0.5772213", "0.5767339", "0.5766959", "0.575458", "0.5739075", "0.5720703", "0.56836796", "0.5677414", "0.5658537", "0.5656785", "0.56551665", "0.565506", "0.56543756", "0.56534445", "0.5646293", "0.56446147", "0.56405467", "0.56389385", "0.562293", "0.56209826", "0.56200355", "0.56097406", "0.5606093", "0.5606093", "0.5599859", "0.558697", "0.55860454", "0.5581165", "0.5579713", "0.5578304", "0.5574117", "0.5567553", "0.556479", "0.55612063", "0.5557677", "0.55542785", "0.5544577", "0.55437785", "0.5526125", "0.55260247", "0.55248886", "0.5523787", "0.5523755", "0.5522617", "0.55212295" ]
0.6349823
20
Test whether a particular date range is completely contained within this range
public function contains(DateRange $range): bool { return $this->start->isBeforeOrSameAs($range->start) && $this->end->isAfterOrSameAs($range->end); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_within_date_range( $time, $range_start, $range_end ) {\n\tif ( ! is_int( $range_start ) ) {\n\t\t$range_start = strtotime( $range_start );\n\t}\n\n\tif ( ! is_int( $range_end ) ) {\n\t\t$range_end = strtotime( $range_end );\n\t}\n\n\treturn $time > $range_start && $time < $range_end;\n}", "private function CheckDateOverlapping()\n\t{\n\t\t$rid = MicroGrid::GetParameter('rid');\n\t\t$start_date = MicroGrid::GetParameter('start_date', false);\n\t\t$finish_date = MicroGrid::GetParameter('finish_date', false);\n\t\t$hotel_id = MicroGrid::GetParameter('hotel_id', false);\n\n\t\t$sql = 'SELECT * FROM '.TABLE_HOTEL_PERIODS.'\n\t\t\t\tWHERE\n\t\t\t\t\tid != '.(int)$rid.' AND\n\t\t\t\t\thotel_id = '.(int)$hotel_id.' AND\n\t\t\t\t\t(((\\''.$start_date.'\\' >= start_date) AND (\\''.$start_date.'\\' <= finish_date)) OR\n\t\t\t\t\t((\\''.$finish_date.'\\' >= start_date) AND (\\''.$finish_date.'\\' <= finish_date))) ';\t\n\t\t$result = database_query($sql, DATA_AND_ROWS, FIRST_ROW_ONLY);\n\t\tif($result[1] > 0){\n\t\t\t$this->error = _TIME_PERIOD_OVERLAPPING_ALERT;\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "function erp_check_date_range_in_range_exist( $start_date, $end_date, $user_date_start, $user_date_end ) {\n\n if ( erp_check_date_in_range( $start_date, $end_date, $user_date_start ) ) {\n return true;\n }\n\n if ( erp_check_date_in_range( $start_date, $end_date, $user_date_end ) ) {\n return true;\n }\n\n return false;\n}", "protected function isWithin() {\n if(isset($this->listeners['within']) && \n $this->start_time instanceof \\DateTime &&\n $this->since_start instanceof \\DateTime) {\n foreach($this->listeners['within'] as $listener) {\n list($increment,$period) = $listener;\n $diff = $this->start_time->diff($this->since_start);\n if($diff->$period < $increment) {\n return true;\n }\n }\n } else {\n return true;\n }\n \n return false;\n }", "public function overlaps(Range $range) {\n return $range->contains($this->start) || $range->contains($this->end) || $this->includes($range);\n }", "function is_valid_date_range($date_start, $date_end){\n $d1 = strtotime($date_start);\n $d2 = strtotime($date_end);\n\n if($d2 >= $d1){\n return true;\n }else{\n return false;\n }\n\n}", "public function checkDateRange($date,$dateRange){\r\r\n\t\t\t//provide date in format m/d/y\r\r\n\t\t\tlist($month, $day, $year) = split(\"/\", $date);\r\r\n\t\t\t$month = (int)$month;\r\r\n\t\t\t$day = (int)$day;\r\r\n\t\t\t$year = (int)$year;\r\r\n\t\t\t$fails = false;\r\r\n\t\t\tif ($year >= $dateRange['startYear'] && $year <= $dateRange['endYear']){\r\r\n\t\t\t\t//if year is within B-E\r\r\n\t\t\t\tif($year == $dateRange['startYear'] ){\r\r\n\t\t\t\t\t//Y=B\r\r\n\t\t\t\t\tif($month >= $dateRange['startMonth']){\r\r\n\t\t\t\t\t\tif($month == $dateRange['startMonth']){\r\r\n\t\t\t\t\t\t\tif($day >= $dateRange['startDay']){\r\r\n\t\t\t\t\t\t\t\t// start < contactDate\r\r\n\t\t\t\t\t\t\t}else{\r\r\n\t\t\t\t\t\t\t\t$fails = true;\r\r\n\t\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t}else{\r\r\n\t\t\t\t\t\t$fails = true;\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t\tif($year == $dateRange['endYear'] ){\r\r\n\t\t\t\t\tif($month <= $dateRange['endMonth']){\r\r\n\t\t\t\t\t\tif($month == $dateRange['endMonth']){\r\r\n\t\t\t\t\t\t\tif($day <= $dateRange['endDay']){\r\r\n\t\t\t\t\t\t\t\t// end > contactDate\r\r\n\t\t\t\t\t\t\t}else{\r\r\n\t\t\t\t\t\t\t\t$fails = true;\r\r\n\t\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t}else{\r\r\n\t\t\t\t\t\t$fails = true;\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t}else{\r\r\n\t\t\t\t$fails = true;\r\r\n\t\t\t}\r\r\n\r\r\n\t\t\tif($fails){\r\r\n\t\t\t\treturn false;\r\r\n\t\t\t} else {\r\r\n\t\t\t\treturn true;\r\r\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\r\r\n\t\t}", "public function inPeriod(\\DateTime $date)\n {\n return $date >= $this->startDate && $date <= $this->endDate;\n }", "public function hasRange()\n {\n return ($this->getOffset() !== false && $this->getOffset() >= 0 && $this->getNumberOfEntries() !== false && $this->getNumberOfEntries() > 0);\n }", "private function checkDate($start_date, $end_date, $start_date_2, $end_date_2) {\n // Convert to timestamp\n $date['start'] = strtotime($start_date);\n $date['end'] = strtotime($end_date);\n $date2['start'] = strtotime($start_date_2);\n $date2['end'] = strtotime($end_date_2);\n \n // check if intervals overlap\n if(($date['start'] <= $date2['end']) && ($date['end'] >= $date2['start'])) {\n return FALSE;\n }\n \n return TRUE;\n }", "public function overlaps(DateTimePeriod $period): bool\n {\n return\n $this->getStart() < $period->getStart() &&\n $this->getEnd() < $period->getEnd() &&\n $period->getStart() < $this->getEnd();\n }", "protected function isWithinTimedBannerRange()\n {\n // First fetch the server datetime and then convert that exact datetime to UTC so that it's compatible\n // with the UTC given start and end datetimes\n $oCurrentDateTime = $this->getLocale()->date(null, $this->getDateTimeFormat());\n $oCurrentDateTime = new Zend_Date($oCurrentDateTime->toString(), $this->getDateTimeFormat(), $this->getLocale()->getLocaleCode());\n\n $oStart = $this->getStart();\n $oEnd = $this->getEnd();\n\n // There is only a start and it's now or before\n if ($oStart && !$oEnd && $oCurrentDateTime >= $oStart) { return true; }\n // Both start and end are present and now is between them\n if ($oStart && $oEnd && $oCurrentDateTime >= $oStart && $oCurrentDateTime <= $oEnd) { return true; }\n // There is no start but there is an end and now is before the end\n if (!$oStart && $oEnd && $oCurrentDateTime <= $oEnd) { return true; }\n\n return false;\n }", "private function containsDatePoint(DateTimeInterface $datepoint, string $bounds): bool\n {\n return match ($bounds) {\n self::EXCLUDE_ALL => $datepoint > $this->startDate && $datepoint < $this->endDate,\n self::INCLUDE_ALL => $datepoint >= $this->startDate && $datepoint <= $this->endDate,\n self::EXCLUDE_START_INCLUDE_END => $datepoint > $this->startDate && $datepoint <= $this->endDate,\n default => $datepoint >= $this->startDate && $datepoint < $this->endDate,\n };\n }", "public function includes(Range $range) {\n if(is_null($range) || $range == self::EMPTY_RANGE) return true;\n return $this->contains($range->start) && $this->contains($range->end);\n }", "public static function is_reservtion_possible(DateTime $date1, DateTime $date2, Room $room_for_check){\r\n if ($date1>$date2) return false;\r\n \r\n $unavailable_dates = (new self)->all_unavailable_dates($room_for_check);\r\n// var_dump($unavailable_dates); \r\n $unav_dates_between = array();\r\n foreach($unavailable_dates as $the_date){\r\n if (self::is_date_greater($the_date, $date1) && self::is_date_greater($date2, $the_date)){\r\n $unav_dates_between[] = $the_date;\r\n// var_dump($the_date);\r\n break;\r\n \r\n }\r\n }\r\n// var_dump($unav_dates_between);\r\n return empty($unav_dates_between);\r\n}", "public static function inDateRange($startDate, $endDate)\r\n\t{\r\n\t\tif(self::datesEqual($startDate, $endDate) || self::dateGreater($endDate, $startDate))\r\n\t\t{\r\n\t\t\treturn true;\t\t\t\r\n\t\t}else\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public function isWithinInterval($lowerBoundDate, $upperBoundDate) {\n\n\t\t$minday = $minday = date('Y-m-d', strtotime($lowerBoundDate));\n\t\t$maxday = date('Y-m-d', strtotime($upperBoundDate));\n\n\t\t$thisday = $this->getISOFormat();\n\n\t\treturn ( empty($lowerBoundDate) || $thisday >= $minday)\n\t\t\t&& ( empty($upperBoundDate) || $thisday <= $maxday);\n\t}", "public static function checkDatesDontOverlap($start_date_hour, $ending_date_hour) {\n $results = DB::select(\n 'SELECT * FROM events \n\t\t\tWHERE ( start_date_hour BETWEEN ? AND ? OR\n\t\t\tending_date_hour BETWEEN ? AND ? ) OR\n\t\t\t( start_date_hour < ? AND ending_date_hour > ? )', array(\n $start_date_hour, $ending_date_hour,\n $start_date_hour, $ending_date_hour,\n $start_date_hour, $ending_date_hour,\n ));\n if ($results != NULL) {\n $response['fail'] = array(\n 'event' => [trans('fail.event.overlap')],\n );\n } else {\n $response = true;\n }\n return $response;\n }", "public function isNowInRange()\n {\n $now = (new \\DateTime())->format('H:i:s');\n return $this->start->__toString() <= $now\n && $this->end->__toString() >= $now;\n }", "private function hasEventForRange($ical, $start, $end)\n {\n return ! empty($ical->eventsFromRange($start, $end));\n }", "public function within_bounds($date, $participant_id)\n\t{\n\t\t$this->db->where('participant_id', $participant_id);\n\t\t$this->db->where('from <=', $date);\n\t\t$this->db->where('to >', $date);\n\t\t$this->db->from('impediment');\n\t\treturn $this->db->count_all_results() > 0;\n\t}", "function erp_check_date_in_range( $start_date, $end_date, $date_from_user ) {\n // Convert to timestamp\n $start_ts = strtotime( $start_date );\n $end_ts = strtotime( $end_date );\n $user_ts = strtotime( $date_from_user );\n\n // Check that user date is between start & end\n if ( ( $user_ts >= $start_ts ) && ( $user_ts <= $end_ts ) ) {\n return true;\n }\n\n return false;\n}", "public function checkOverlap()\n {\n global $zdb;\n\n try {\n $select = $zdb->select(self::TABLE, 'c');\n $select->columns(\n array('date_debut_cotis', 'date_fin_cotis')\n )->join(\n array('ct' => PREFIX_DB . ContributionsTypes::TABLE),\n 'c.' . ContributionsTypes::PK . '=ct.' . ContributionsTypes::PK,\n array()\n )->where(Adherent::PK . ' = ' . $this->_member)\n ->where(array('cotis_extension' => new Expression('true')))\n ->where->nest->nest\n ->greaterThanOrEqualTo('date_debut_cotis', $this->_begin_date)\n ->lessThan('date_debut_cotis', $this->_end_date)\n ->unnest\n ->or->nest\n ->greaterThan('date_fin_cotis', $this->_begin_date)\n ->lessThanOrEqualTo('date_fin_cotis', $this->_end_date);\n\n if ( $this->id != '' ) {\n $select->where(self::PK . ' != ' . $this->id);\n }\n\n $results = $zdb->execute($select);\n $result = $results->current();\n if ( $result !== false ) {\n $d = new \\DateTime($result->date_debut_cotis);\n\n return _T(\"- Membership period overlaps period starting at \") .\n $d->format(_T(\"Y-m-d\"));\n }\n return true;\n } catch (\\Exception $e) {\n Analog::log(\n 'An error occured checking overlaping fee. ' . $e->getMessage(),\n Analog::ERROR\n );\n return false;\n }\n }", "public function checkOverlap()\n {\n\n $args = array('pre_burn_id'=>null,'start_date'=>null,'end_date'=>null);\n extract(merge_args(func_get_args(), $args));\n\n $result = false;\n\n if (empty($end_date)) {\n $end_date = $start_date;\n }\n\n if (empty($start_date)) {\n $start_date = $end_date;\n }\n\n $overlaps = fetch_one(\n \"SELECT COUNT(burn_id) as overlaps\n FROM burns\n WHERE pre_burn_id = ?\n AND (\n ? BETWEEN start_date AND end_date\n OR ? BETWEEN start_date AND end_date\n );\",\n array($pre_burn_id, $start_date, $end_date)\n );\n\n if ($overlaps > 0) {\n $result = true;\n }\n\n return json_encode($result);\n }", "private function containsInterval(self $period): bool\n {\n return match (true) {\n $this->startDate < $period->startDate && $this->endDate > $period->endDate\n => true,\n $this->startDate == $period->startDate && $this->endDate == $period->endDate\n => $this->bounds === $period->bounds || '[]' === $this->bounds,\n $this->startDate == $period->startDate\n => ($this->bounds[0] === $period->bounds[0] || '[' === $this->bounds[0])\n && $this->containsDatePoint($this->startDate->add($period->dateInterval()), $this->bounds),\n $this->endDate == $period->endDate\n => ($this->bounds[1] === $period->bounds[1] || ']' === $this->bounds[1])\n && $this->containsDatePoint($this->endDate->sub($period->dateInterval()), $this->bounds),\n default\n => false,\n };\n }", "public function between(string $lowerDate, string $upperDate) : bool\r\n {\r\n return ($this->getTimestamp() >= strtotime($lowerDate) && $this->getTimestamp() <= strtotime($upperDate));\r\n }", "public function overlaps(self $timeSlot): bool\n {\n return !$this->abuts($timeSlot)\n && $this->startDate < $timeSlot->endDate\n && $this->endDate > $timeSlot->startDate;\n }", "public function checkHireDateisinRange($year,$dateRange){\r\r\n\t\t\t// some employee hire dates are entered in 'xx' some in 'xxxx' - this filters them out and compares accordingly\r\r\n\t\t\t$year = (int)$year;\r\r\n\t\t\tif($year < 100){ // if year was sloppily entered in 2 digit format\r\r\n\t\t\t\tif($year >= 50){ // safe to assume the 2digit year is from the 1900s\r\r\n\t\t\t\t\t$year = $year + 1900;\r\r\n\t\t\t\t}elseif($year < 50 ){ // safe to assume the 2 digit year is from the 2000s\r\r\n\t\t\t\t\t$year = $year + 2000;\r\r\n\t\t\t\t}\r\r\n\t\t\t} \r\r\n\r\r\n\t\t\tif( $year <= $dateRange['endYear']){\r\r\n\t\t\t\treturn true;\r\r\n\t\t\t} else{\r\r\n\t\t\t\treturn false;\r\r\n\t\t\t}\r\r\n\t\t}", "function check_in_range($start_date, $end_date, $date_from_user)\n{\n // Convert to timestamp\n $start_ts = strtotime($start_date);\n $end_ts = strtotime($end_date);\n $user_ts = strtotime(date('Y-m-d', strtotime($date_from_user)));\n\n // Check that user date is between start & end\n return (($user_ts >= $start_ts) && ($user_ts <= $end_ts));\n}", "public function containsDate($date) {\n // if my time period starts AFTER the date, then it doesn't contain it.\n if ($date < $this->eff_date) {\n return false;\n }\n\n // if my time period never expires then we know we're ok at this point\n if (is_null($this->exp_date)) {\n return true;\n }\n\n // if my time period ends before or on date, then I don't contain it.\n if (is_null($date)) {\n return false;\n }\n if ($this->exp_date <= $date) {\n return false;\n }\n\n // no more failure scenarios.\n return true;\n }", "public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null);", "public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null);", "public function isBooked($start_date, $end_date) {\n\t\t$bookings = Booking::getBookingDates($this->id, date('Y-m-d'));\n\n\t\tforeach ($bookings as $booking) {\n\t\t\t// if they overlap return false\n\t\t\tif (strtotime($start_date) <= strtotime($booking->end_date) && strtotime($booking->start_date) <= strtotime($end_date)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "function isInTimerange(\\DateTimeInterface $dateTime, \\DateInterval $interval) : bool;", "public function overlappedBy(DateTimePeriod $period): bool\n {\n return\n $period->getStart() < $this->getStart() &&\n $period->getEnd() < $this->getEnd() &&\n $this->getStart() < $period->getEnd();\n }", "private function check_hour_starts_before_end(int $start_at, int $end_at): bool\n {\n // PHP zet het on-the-fly in een DateTimeImmutable, dus het kost wel wat extra werk\n // Dit doet dus date('Y-m-d H:i:s', $start_at) < date(......\n return $start_at < $end_at;\n }", "public function containsPeriod(Doctrine_Temporal_TimePeriod $theirs, $exp_date_inclusive = true) {\n // if my time period starts AFTER theirs starts, then it doesn't contain it.\n if ($theirs->eff_date < $this->eff_date) {\n return false;\n }\n\n // if my time period never expires then we know we're ok at this point\n if (is_null($this->exp_date)) {\n return true;\n }\n\n // if their time period ends AFTER mine ends, then mine doesn't contain it.\n if (is_null($theirs->exp_date)) {\n return false;\n }\n if ($this->exp_date < $theirs->exp_date) {\n return false;\n }\n if (!$exp_date_inclusive && $this->exp_date == $theirs->exp_date) {\n return false;\n }\n\n // no more failure scenarios.\n return true;\n }", "private function checkDates($startdate, $enddate) {\n return $this->checkDate($startdate) && $this->checkDate($enddate);\n }", "function checkOverlap($aStartX,$aStartY,$aEndX,$aEndY,$bStartX,$bStartY,$bEndX,$bEndY){\n if(($aStartX<$bEndX) && ($aEndX >$bStartX) && ($aStartY<$bEndY) && ($aEndY> $bStartY))\n {\n return false;\n }else{\n return true;\n }\n}", "public function isEndDateIncluded(): bool\n {\n return ']' === $this->bounds[1];\n }", "public function during(DateTimePeriod $period): bool\n {\n return\n $period->getStart() < $this->getStart() &&\n $this->getEnd() < $period->getEnd();\n }", "public function isRangeIntoOtherRange(RangeDates $rangeCompare, //rango a buscar\n RangeDates $rangeSearch, //rANGO A COMPARAR \n $withBorder=true){\n yii::error($this->intofisrtCondition($rangeCompare, $rangeSearch, $withBorder));\n yii::error($this->intoSecondCondition($rangeCompare, $rangeSearch));\n yii::error( $this->intoThirdCondition($rangeCompare, $rangeSearch));\n yii::error($this->intoFourthCondition($rangeCompare, $rangeSearch) );\n return (\n $this->intofisrtCondition($rangeCompare, $rangeSearch, $withBorder) &&\n (\n $this->intoSecondCondition($rangeCompare, $rangeSearch) or\n $this->intoThirdCondition($rangeCompare, $rangeSearch) or\n $this->intoFourthCondition($rangeCompare, $rangeSearch)\n )\n );\n }", "public function isStartDateIncluded(): bool\n {\n return '[' === $this->bounds[0];\n }", "public function isBetween($start, $end) {\n return $this->is(new NotPossible('cannot be between anything'));\n }", "public function validateDate()\n {\n if (\n ($from = $this->getAvailableFrom()) &&\n ($till = $this->getAvailableTill()) &&\n $from->InPast() &&\n $till->InFuture()\n ) {\n return true;\n }\n\n return false;\n }", "public function traslapeRange(RangeDates $rangeCompare, \n RangeDates $rangeSearch){\n return !($rangeSearch->initialDate->greaterThan($rangeCompare->finalDate) or\n $rangeCompare->initialDate->greaterThan($rangeSearch->finalDate));\n }", "protected function get_is_satisfiable(): bool\n\t{\n\t\t$start = $this->start;\n\t\t$end = $this->end;\n\n\t\treturn !($start < 0 || $start >= $end || $end > $this->total - 1);\n\t}", "public function in_interval($date, $start_date) {\n //$day_count = (int) (($date - $start_date) / ICIceCube::ONE_DAY);\n //return $day_count % $this->interval == 0\n return true;\n }", "function validateDateRange($date1, $date2){\n\treturn ( strtotime($date1) - strtotime($date2) ) <= 0;\t//should be a negative number, or 0 if posts=expiration\n}", "public function leadsInDates($start, $end, $data = []);", "public function contains(DateTimePeriod $period): bool\n {\n return\n $this->getStart() < $period->getStart() &&\n $period->getEnd() < $this->getEnd();\n }", "public function inRange($age) {\r\n $lowerApplies = !isset($this->ageFrom) || $age >= $this->ageFrom;\r\n $upperApplies = !isset($this->ageTo) || $age <= $this->ageTo;\n\n return $lowerApplies && $upperApplies;\r\n }", "protected function _checkDate($from, $to) {\r\n $return = true;\r\n $date = date( 'Y-m-d');\r\n $today = strtotime ($date);\r\n if ($from && $today < $from) {\r\n $return = false;\r\n }\r\n if ($to && $today > $to) {\r\n $return = false;\r\n }\r\n if (! $to && ! $from) {\r\n $return = false;\r\n }\r\n return $return;\r\n }", "public function overlaps(Period $period)\n {\n if ($this->abuts($period)) {\n return false;\n }\n\n return $this->startDate < $period->getEndDate() && $this->endDate > $period->getStartDate();\n }", "public function overlaps(Period $period)\n {\n if ($this->abuts($period)) {\n return false;\n }\n\n return $this->startDate < $period->getEndDate() && $this->endDate > $period->getStartDate();\n }", "protected function containsDatePoint($datepoint)\n {\n $datetime = static::filterDatePoint($datepoint);\n\n return ($datetime >= $this->startDate && $datetime < $this->endDate)\n || ($datetime == $this->startDate && $datetime == $this->endDate);\n }", "public function includes(JustDate $date): bool\n {\n return $date->isAfterOrSameAs($this->start) && $date->isBeforeOrSameAs($this->end);\n }", "public function isBetween($initialDate, $finalDate){\n\t\t$fecha = $this->getDate();\n\t\t$c1 = self::compareDates($fecha, $initialDate);\n\t\t$c2 = self::compareDates($fecha, $finalDate);\n\t\treturn ($c1!=-1)&&($c2!=1);\n\t}", "public function supportsDateRange() {\n\t\treturn true;\n\t}", "function test_range() {\n\t\t// Check range\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2018, 1 );\n\t\t$this->assertEquals( '2018-01-01 00:00:00', $start );\n\t\t$this->assertEquals( '2018-01-31 23:59:59', $end );\n\t\t// Check leap year\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 2004, 2 );\n\t\t$this->assertEquals( '2004-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '2004-02-29 23:59:59', $end );\n\t\t// Check exceptional leap year.\n\t\tlist( $start, $end ) = $this->revenue->get_month_range( 1900, 2 );\n\t\t$this->assertEquals( '1900-02-01 00:00:00', $start );\n\t\t$this->assertEquals( '1900-02-28 23:59:59', $end );\n\t}", "private function check_in_range($fecha_inicio, $fecha_fin, $fecha){\n $fecha_inicio = strtotime($fecha_inicio);\n $fecha_fin = strtotime($fecha_fin);\n $fecha = strtotime($fecha);\n if(($fecha >= $fecha_inicio) && ($fecha <= $fecha_fin)) {\n return true;\n } else {\n return false;\n }\n }", "public function hasReservedRange()\n {\n return count($this->get(self::RESERVED_RANGE)) !== 0;\n }", "public function validateDates(&$start, &$end) {\n $sixMonthsAgo = strtotime(\"-6 months\");\n $day = 86400;\n $end = time();\n \n if (!$start) {\n $start = strtotime(\"-7 days\");\n }\n \n $gap = $end - $start; \n \n //Don't mess the dates!\n switch ($gap) {\n case $gap < ($day * 31) :\n $gap = $day * 7;\n break;\n\n case $gap < ($day * 180) ://6 months\n $gap = $day * 31;\n break;\n \n case $gap >= ($day * 180) : \n default : \n $gap = $day * 180; \n break;\n }\n \n $end = time();\n $start = $end - $gap;\n }", "protected function validateDateInterval(\\DateTime $value, \\DateTime $min, \\DateTime $max)\n {\n\n if (($value >= $min) && ($value <= $max)) {\n\n return true;\n }\n\n return false;\n }", "function canBookRoom($startDate,$endDate,$roomID)\n {\n $result = \"TRUE\";\n $query = $this->db->query(\"SELECT * FROM bookings where roomID = $roomID\");\n if($query->num_rows()>0)\n {\n $bookings=$query->result_array();\n\n\n for ($i =0 ; $i < count($bookings); $i++)\n {\n $bookStartTime = $bookings[$i][\"startDate\"];\n $bookEndTime = $bookings[$i][\"endDate\"];\n\n if ($startDate >= $bookStartTime && $startDate <=$bookEndTime)\n {\n $result = \"FALSE\";\n return $result;\n }\n if ($endDate >= $bookStartTime && $endDate <= $bookEndTime)\n {\n $result = \"FALSE\";\n return $result;\n\n }\n }\n }\n return $result;\n\n }", "public function hasPassed()\n {\n if (empty($this->startDate) || empty($this->endDate)) {\n return false;\n }\n\n $next = $this->next()->next;\n\n return DateTimeHelper::isInThePast($next);\n }", "public function getEventsForRange($dt1, $dt2) {\n $events = $this->_machine->plugin(\"DB\")->getEventsFromDB(\"AND events.active = 1\", \"\", false, \"time_to DESC\");\n $events = array_filter($events, function($ev) use ($dt1, $dt2) {\n $from = new \\DateTime($ev[\"time_from\"]);\n $to = new \\DateTime($ev[\"time_to\"]);\n $from->setTime(0,0);\n $to->setTime(23,59);\n $dt1->setTime(0,0);\n $dt2->setTime(23,59);\n \n /*\n echo \"================================= \\r\\n\";\n echo \"ev: \" . ($ev[\"id\"]) . \"\\r\\n\";\n echo \"from: \" . $from->getTimestamp() . \"\\r\\n\";\n echo \"to: \" . $to->getTimestamp() . \"\\r\\n\";\n echo \"dt1: \" . $dt1->getTimestamp() . \"\\r\\n\";\n echo \"dt2: \" . $dt2->getTimestamp() . \"\\r\\n\";\n var_dump( ($dt1->getTimestamp() < $from->getTimestamp() && $dt2->getTimestamp() < $from->getTimestamp()) || ($dt1->getTimestamp() > $to->getTimestamp() && $dt2->getTimestamp() > $to->getTimestamp()) );\n */\n \n //echo \"from: \" . $from->getTimestamp() . \"\\r\\n\";\n // 20/4 <= 19/4 && 19/4 <= 20/4 || 20/4 <= 21/4 && 21/4 <= 20/4 \n //if (($from <= $dt1 && $dt1 <= $to) || ($from <= $dt2 && $dt2 <= $to)) {\n //if (($dt1 <= $from && $from <= $dt2) || ($dt1 <= $to && $to <= $dt2)) { \n // return true;\n //}\n //return false;\n if (($dt1 < $from && $dt2 < $from) || ($dt1 > $to && $dt2 > $to)) {\n return false;\n }\n return true;\n });\n return $events;\n }", "public static function _within(ilDateTime $dt, ilDateTime $start, ilDateTime $end, $a_compare_field = '', $a_tz = '')\n\t{\n\t\treturn \n\t\t\t(ilDateTime::_after($dt, $start,$a_compare_field,$a_tz) or ilDateTime::_equals($dt, $start,$a_compare_field,$a_tz)) &&\n\t\t\t(ilDateTime::_before($dt, $end,$a_compare_field,$a_tz) or ilDateTime::_equals($dt, $end,$a_compare_field,$a_tz));\n\t}", "public function valid()\n {\n return $this->_current !== null\n && $this->_current->getTimestamp() < $this->_endDate->getTimestamp();\n }", "public function isValid(): bool\n {\n $now = new \\DateTime();\n return $now < $this->getEndDate();\n }", "public function abuts(Period $period)\n {\n return $this->startDate == $period->getEndDate() || $this->endDate == $period->getStartDate();\n }", "public function abuts(Period $period)\n {\n return $this->startDate == $period->getEndDate() || $this->endDate == $period->getStartDate();\n }", "private function filterHotelByDate(Hotel $hotel): bool\n {\n foreach ($hotel->availability as $range) {\n\n $from = strtotime($this->target['from']);\n $to = strtotime($this->target['to']);\n\n if (strtotime($range->from) <= $from && strtotime($range->to) >= $to)\n return true;\n\n }\n return false;\n\n }", "public function overlaps(Doctrine_Temporal_TimePeriod $theirs) {\n // if my record starts AFTER theirs, then it doesn't overlap it.\n if (!is_null($theirs->exp_date) && $theirs->exp_date <= $this->eff_date) {\n return false;\n }\n\n // if their record starts AFTER mine, then it doesn't overlap it.\n if (!is_null($this->exp_date) && $this->exp_date <= $theirs->eff_date) {\n return false;\n }\n\n // no more failure scenarios.\n return true;\n }", "public function meets(DateTimePeriod $period): bool\n {\n return $this->getEnd() == $period->getStart();\n }", "private static function dateInRange($dateToCheck, $dateBase, $dayOffset, $day_offset_plusminus)\r\n\t{\r\n\t\t// Convert day_offset to seconds for comparison\r\n\t\t$dayOffsetSeconds = $dayOffset*86400;\r\n\t\t// Check if in range, which is dependent upon offset_plusminus value\r\n\t\tif ($day_offset_plusminus == '+-') {\r\n\t\t\t$diff = abs(strtotime($dateToCheck) - strtotime($dateBase));\r\n\t\t\treturn ($diff < $dayOffsetSeconds);\r\n\t\t} elseif ($day_offset_plusminus == '+') {\r\n\t\t\t$diff = strtotime($dateToCheck) - strtotime($dateBase);\r\n\t\t\treturn ($diff < $dayOffsetSeconds && $diff >= 0);\r\n\t\t} elseif ($day_offset_plusminus == '-') {\r\n\t\t\t$diff = strtotime($dateBase) - strtotime($dateToCheck);\r\n\t\t\treturn ($diff < $dayOffsetSeconds && $diff >= 0);\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static function checkDatesChronological($start_date_hour, $ending_date_hour) {\n $v = Validator::make(\n ['ending_date_hour' => $ending_date_hour], ['ending_date_hour' => 'required|after:' . $start_date_hour]\n );\n if ($v->fails()) {\n $response['fail'] = $v->messages()->getMessages();\n } else {\n $response = true;\n }\n return $response;\n }", "function greaterDate($start_date = null, $end_date = null, $equalTo = false)\n {\n $start = strtotime($start_date);\n $end = strtotime($end_date);\n if ($end-$start > 0)\n return true;\n else if ($equalTo && $end-$start >= 0)\n return true;\n else\n return false;\n }", "private function isValidStartAndEndTime($startHour, $startMin, $endHour, $endMin)\n {\n \t$start = $startHour * 60 + $startMin;\n \t$end = $endHour * 60 + $endMin;\n \t\n \treturn $start < $end;\n }", "public function contains($index)\n {\n if ($index instanceof Period) {\n return $this->contains($index->getStartDate())\n && ($this->contains($index->getEndDate()) || $index->getEndDate() == $this->getEndDate());\n }\n\n $datetime = static::filterDatePoint($index);\n\n return $datetime >= $this->startDate && $datetime < $this->endDate;\n }", "public function isSubrange($subRange,$range)\n\t{\n\t\tlist($rangeStart,$rangeEnd) = PHPExcel_Cell::rangeBoundaries($range);\n\t\tlist($subrangeStart,$subrangeEnd) = PHPExcel_Cell::rangeBoundaries($subRange);\n\t\treturn (($subrangeStart[0]>=$rangeStart[0]) && ($subrangeStart[1]>=$rangeStart[1]) && ($subrangeEnd[0]<=$rangeEnd[0]) && ($subrangeEnd[1]<=$rangeEnd[1]));\n\t}", "public function between($start, $end, bool $inclusive = true, bool $throwException = true): bool\n {\n $this->ensureCompatibleArgs([$start, $end]);\n return static::betweenCalculation(\n $this->value,\n $start,\n $end,\n $inclusive,\n $this->internalMaxDecPl(),\n $throwException\n );\n }", "public function isTodayLessThanOrEqualToEndValidityDate($today,$end_date){\n \n if(($end_date['year'] - $today['year'])>0){\n return true;\n }else if(($end_date['year'] - $today['year'])<0){\n return false;\n }else{\n if(($end_date['mon'] - $today['mon'])>0){\n return true;\n }else if(($end_date['mon'] - $today['mon'])<0){\n return false;\n }else{\n if(($end_date['mday'] - $today['mday'])>0){\n return true;\n }else if(($end_date['mday'] - $today['mday'])==0){\n return true;\n }else{\n return false;\n }\n }\n }\n \n \n }", "public function isRange(): bool\n {\n return $this->type == self::TYPE_RANGE;\n }", "public function hasRowRange(){\n return $this->_has(3);\n }", "public function testBetween(): void\n {\n $period = Period::between(LocalDate::of(2010, 1, 15), LocalDate::of(2011, 3, 18));\n $this->assertPeriodIs(1, 2, 3, $period);\n }", "private function checkDatesValidity(){\n\t\t$valid=true;\n\t\t$today = date(\"Y-m-d\");\n\t\tif($this->validFrom!=\"\" && $this->validFrom!=\"0000-00-00\" && $today<$this->validFrom) $valid=false;\n\t\tif($this->validUntil!=\"\" && $this->validUntil!=\"0000-00-00\" && $today>$this->validUntil) $valid=false;\n\t\treturn $valid;\n\t}", "private function checkQueryRange($nid) {\n $date_start = $this->date->get(\"timestamp\");\n $date_end = $this->date->get(\"last second\");\n return hiro_query_range_is_relevant($nid, $date_start, $date_end);\n }", "function isPast()\r\n {\r\n $agora = new Date();\r\n if($this->before($agora)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "function check_book_available($hour, $begin, $end, $check){\n if($check == \"begin_check\"){\n if( $hour < $begin || $hour >= $end ){\n return true;\n }\n else{\n return false;\n }\n }\n /* CHECK END SELECTION */\n else if($check == \"end_check\"){\n if( $hour <= $begin || $hour > $end ){\n return true;\n }\n else{\n return false;\n }\n }\n}", "function IsDateBetween($startDate, $checkDate, $endDate){\n\t\tif(strtotime($checkDate) >= strtotime($startDate) && strtotime($checkDate) <= strtotime($endDate)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function check_range($len, $ofs, $range_from, $range_to)\n\t{\n\t\t$start = max($ofs, $range_from);\n\t\t$end = min($ofs + $len - 1, $range_to);\n\t\t\t\n\t\treturn $end - $start + 1 > 0;\n\t}", "public function reportsInPeriodScope($dateStart, $dateEnd);", "public function isWithin( $date, $part = \\Zend_Date::TIMESTAMP, $locale = null )\n {\n return ($this->_start->isEarlier($date, $part, $locale) ||\n $this->_start->equals($date, $part, $locale)) &&\n ($this->_end->isLater($date, $part, $locale) ||\n $this->_end->equals($date, $part, $locale));\n }", "public function shouldExecute()\n\t{\n\t\t// date range check\n\t\tif( strtotime($this->start_date) > utc_time() || strtotime($this->end_date) < utc_time() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// time range check, for the current day-of-week\n\t\t$dow_abbrevs = [null, 'mon', 'tues', 'wed', 'thurs', 'fri', 'sat', 'sun'];\n\t\t$dow_int = utc_date()->format('N');\t// 1 = mon, 7 = sun\n\t\t$dow = $dow_abbrevs[$dow_int];\n\t}", "public function includes(\\DateTime $compare) {\n\t\tif ($compare < $this->start || $compare > $this->end) {\n\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn TRUE;\n\t}", "public function startedBy(DateTimePeriod $period): bool\n {\n return\n $this->getStart() == $period->getStart() &&\n $period->getEnd() < $this->getEnd();\n }", "function chk_from_to($from,$to) {\n\t\t$chk = ( $this->y*10000) + ( $this->m*100) + $this->d;\n\t\treturn ($from <= $chk && $chk <= $to) ? true : false;\n\t}", "public function hasEndYear() {\n return $this->_has(15);\n }", "private function intofisrtCondition(RangeDates $rangeCompare, \n RangeDates $rangeSearch,$withBorder=true){\n if($withBorder){\n return !($rangeCompare->finalDate->lessThanOrEqualTo($rangeSearch->initialDate) or\n $rangeCompare->initialDate->greaterThanOrEqualTo($rangeSearch->finalDate)); \n \n }else{\n return !($rangeCompare->finalDate->lessThan($rangeSearch->initialDate) or\n $rangeCompare->initialDate->greaterThan($rangeSearch->finalDate)); \n }\n }" ]
[ "0.72426397", "0.7241391", "0.7008008", "0.68345153", "0.6767573", "0.67662233", "0.6749946", "0.67207533", "0.6711818", "0.66846484", "0.655969", "0.65348613", "0.6494709", "0.64334685", "0.6421759", "0.64104366", "0.6406525", "0.64023274", "0.63684803", "0.6358056", "0.6351794", "0.6319686", "0.63015854", "0.630041", "0.6297298", "0.62830365", "0.6277564", "0.6251857", "0.62502915", "0.62151986", "0.6203519", "0.6203519", "0.61764187", "0.6151695", "0.61474574", "0.61474234", "0.61458606", "0.6134549", "0.6126294", "0.6123398", "0.6095265", "0.60647655", "0.60594624", "0.6058118", "0.60155165", "0.59958136", "0.5986413", "0.5984496", "0.5960962", "0.5932044", "0.59316456", "0.5913529", "0.5851612", "0.5848876", "0.5848876", "0.5846843", "0.58396566", "0.58286786", "0.5809362", "0.58039224", "0.57957387", "0.5788964", "0.57678425", "0.5767433", "0.5751261", "0.57378304", "0.5735021", "0.57287955", "0.57149714", "0.5707794", "0.5705017", "0.5705017", "0.56979597", "0.56919533", "0.56891036", "0.568639", "0.5652097", "0.56476974", "0.56379575", "0.56354296", "0.56328493", "0.5625959", "0.5594029", "0.5584885", "0.5580717", "0.5579771", "0.55694175", "0.5562781", "0.5558429", "0.55535215", "0.55529886", "0.5549252", "0.55370444", "0.5528664", "0.5520038", "0.55132806", "0.55123276", "0.55077684", "0.54853183", "0.548068" ]
0.74093854
0
Get a generator which splits the range into subranges The supplied callback function will be applied to each date in the range, and consecutive dates for which the callback returns equal values will be grouped together into a subrange. This function returns a generator which will yield each of these contiguous subranges in turn, together with the callback value. The yield values will be in the format of an array with 'value' and 'range' keys.
public function iterateSubRanges(callable $value_fn, array $opts = []): Generator { $backwards = (bool) ($opts['backwards'] ?? false); $step = $backwards ? -1 : 1; $end = $backwards ? $this->start : $this->end; $sub_range_start = $backwards ? $this->end : $this->start; $sub_range_end = $sub_range_start; $sub_range_value = $value_fn($sub_range_start); while (! $sub_range_end->isSameAs($end)) { $next_date = $sub_range_end->addDays($step); $next_value = $value_fn($next_date); if ($next_value != $sub_range_value) { // Value has changed yield [ 'range' => DateRange::eitherWayRound($sub_range_start, $sub_range_end), 'value' => $sub_range_value, ]; // Start a new current range $sub_range_start = $next_date; $sub_range_value = $next_value; } $sub_range_end = $next_date; } // Finish the current range yield [ 'range' => DateRange::eitherWayRound($sub_range_start, $sub_range_end), 'value' => $sub_range_value, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function split($interval)\n {\n $startDate = $this->startDate;\n $interval = static::filterDateInterval($interval);\n do {\n $endDate = $startDate->add($interval);\n if ($endDate > $this->endDate) {\n $endDate = $this->endDate;\n }\n yield new static($startDate, $endDate);\n\n $startDate = $endDate;\n } while ($startDate < $this->endDate);\n }", "public function split($interval)\n {\n $startDate = $this->startDate;\n $interval = static::filterDateInterval($interval);\n do {\n $endDate = $startDate->add($interval);\n if ($endDate > $this->endDate) {\n $endDate = $this->endDate;\n }\n yield new static($startDate, $endDate);\n\n $startDate = $endDate;\n } while ($startDate < $this->endDate);\n }", "public function dateRanges(): DateRangeCollection;", "public function partition($callback)\n {\n $callback = \\PHPF\\Closure::getAsCallable($callback);\n\n $valid = array();\n $invalid = array();\n\n foreach ($this->data as $key => $value) {\n if ($callback($value, $key, $this)) {\n $valid[$key] = $value;\n\n } else {\n $invalid[$key] = $value;\n }\n }\n\n return array(new static($valid), new static($invalid));\n }", "protected function groupIntoRange(array $values, array $ranges): array\n\t{\n\t\t$groupedValues = [];\n\n\t\tforeach ($values as $value) {\n\t\t\t$key = 0;\n\t\t\tfor ($i = 0; $i < sizeof($ranges); $i++) {\n\t\t\t\t$firstValue = $ranges[$i];\n\t\t\t\t$secondValue = null;\n\n\t\t\t\tif (array_key_exists($i + 1, $ranges) === true) {\n\t\t\t\t\t$secondValue = $ranges[$i + 1];\n\t\t\t\t}\n\n\t\t\t\tif ($secondValue === null) {\n\t\t\t\t\t$key = $i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif ($value >= $firstValue && $value < $secondValue) {\n\t\t\t\t\t$key = $i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (! isset($groupedValues[$key]) || ! is_array($groupedValues[$key])) {\n\t\t\t\t$groupedValues[$key] = [];\n\t\t\t}\n\n\t\t\tarray_push($groupedValues[$key], $value);\n\t\t}\n\n\t\treturn $groupedValues;\n\t}", "public function mapToGroups(callable $callback)\n {\n $groups = $this->map($callback)->reduce(function ($groups, $pair) {\n $groups[key($pair)][] = reset($pair);\n\n return $groups;\n }, []);\n\n return (new static($groups))->map([$this, 'make']);\n }", "public function splitBackwards($interval)\n {\n $endDate = $this->endDate;\n $interval = static::filterDateInterval($interval);\n do {\n $startDate = $endDate->sub($interval);\n if ($startDate < $this->startDate) {\n $startDate = $this->startDate;\n }\n yield new static($startDate, $endDate);\n\n $endDate = $startDate;\n } while ($endDate > $this->startDate);\n }", "public function group($callback)\n {\n $callback = \\PHPF\\Closure::getAsCallable($callback);\n\n $groups = array();\n\n foreach ($this->data as $key => $value) {\n $index = $callback($value, $key, $this);\n\n if (!isset($groups[$index])) {\n $groups[$index] = array();\n }\n\n $groups[$index][$key] = $value;\n }\n\n $this->data = $groups;\n\n return $this;\n }", "protected function _getRanges() {}", "public function map(Closure $closure): self\n {\n $intervals = [];\n foreach ($this->periods as $offset => $period) {\n $intervals[$offset] = $closure($period, $offset);\n }\n\n if ($intervals === $this->periods) {\n return $this;\n }\n\n $mapped = new self();\n $mapped->periods = $intervals;\n\n return $mapped;\n }", "public function map(callable $callback): self\n {\n $keys = $this->keys();\n $values = array_map($callback, $this->values(), $this->keys());\n\n $fluentArray = $this->derive();\n\n foreach ($values as $index => $value) {\n $key = $keys[$index];\n $fluentArray->set($key, $value);\n }\n\n return $fluentArray;\n }", "function jt_cmb2_date_year_range_get_split_values( $no_override, $object_id, $args, $field ) {\n\tif ( 'date_year_range' !== $field->args( 'type' ) || ! $field->args( 'split_values' ) ) {\n\t\treturn $no_override;\n\t}\n\n\t$value = array(\n\t\t'start' => get_post_meta( $object_id, $args['field_id'] . '_start', 1 ),\n\t\t'finish' => get_post_meta( $object_id, $args['field_id'] . '_finish', 1 ),\n\t);\n\n\treturn $value;\n}", "public function getRanges(): UnitRangesCollection;", "public static function range($lowerBound, $upperBound, $unit = DAY) {\n\t\t\tif(is_string($lowerBound)) {\n\t\t\t\t$lowerBound = strtotime($lowerBound);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(empty($upperBound)) {\n\t\t\t\t$upperBound = self::now();\n\t\t\t}\n\t\t\t\n\t\t\tif(is_string($upperBound)) {\n\t\t\t\t$upperBound = strtotime($upperBound);\n\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t$range = range($lowerBound, $upperBound, $unit);\n\t\t\t\n\t\t\treturn array_map(function($date) { return date('Y-m-d', $date); }, $range);\n\t\t}", "public function getRange(): array\n {\n if ($this->getPageCount() < $this->rangeLimit) { // Not enough pages to apply range limit\n $start = 1;\n $stop = $this->getPageCount();\n } else { // Enough page to apply range limit\n if ($this->getPage() <= $this->rangeLimit / 2) { // Cannot center, current page too far on the left\n $start = 1;\n $stop = $start + $this->rangeLimit - 1;\n } elseif ($this->getPage() + ceil($this->rangeLimit / 2) > $this->getPageCount()\n ) { // Cannot center, current page too far on the right\n $stop = $this->getPageCount();\n $start = $stop - $this->rangeLimit + 1;\n } else { // Enough space on both sides, we can center\n $start = $this->getPage() - floor($this->rangeLimit / 2) + 1;\n $stop = $start + $this->rangeLimit - 1;\n }\n }\n\n return range($start, $stop);\n }", "public function age_range()\r\n {\r\n if (empty($this->date_range)){\r\n return array(NULL, NULL);\r\n }\r\n if(empty($this->date_range->start) || empty($this->date_range->end)){\r\n return array($this->age(), $this->age());\r\n }\r\n\r\n $start_date = new PiplApi_DateRange($this->date_range->start, $this->date_range->start);\r\n $end_date = new PiplApi_DateRange($this->date_range->end, $this->date_range->end);\r\n $start_age = new PiplApi_DOB(array('date_range' => $start_date));\r\n $start_age = $start_age->age();\r\n $end_age = new PiplApi_DOB(array('date_range' => $end_date));\r\n $end_age = $end_age->age();\r\n\r\n return (array($end_age, $start_age));\r\n }", "public function splitAt(float $value): RangeCollection\n {\n if ($this->includesValue($value))\n {\n return new RangeCollection([\n new static($this->getLeft(), new Margin($value)),\n new static(new Margin($value), $this->getRight())\n ]);\n }\n throw new SplitValueIsOutOfRangeException(sprintf(\"Cannot split %s at %.2d\", $this, $value));\n }", "function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n $i=0;\n $aryRange=array();\n\n//$aryRange[] = array(\"DATA\"=>\"\");\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n// array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n// array_push($aryRange[\"DATA\"],date('Y-m-d',$iDateFrom)); // first entry\n$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom), 'KEY=>'.$i);\n$i=$i+1;\n\n//$array[] = $var;\n\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n// array_push($aryRange,date('Y-m-d',$iDateFrom));\n// array_push($aryRange[\"DATA\"],date('Y-m-d',$iDateFrom));\n//$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom));\n$aryRange[] = array(\"DATE\"=>date('Y-m-d',$iDateFrom), 'KEY=>'.$i);\n$i=$i+1;\n\n }\n }\n$aryRange=array_reverse($aryRange);\n\n return $aryRange;\n}", "public function eachSpread(callable $callback)\n {\n return $this->each(function ($chunk) use ($callback) {\n return $callback(...$chunk);\n });\n }", "public function generateChunked(int $queryChunkSize = 500, callable $callback = null) {\n\n\t\t\t$this->enforceOrderBy();\n\n\t\t\t$page = 1;\n\n\t\t\tdo {\n\t\t\t\t$results = $this->forPage($page, $queryChunkSize)->get();\n\n\t\t\t\t$count = $results->count();\n\n\t\t\t\t// invoke callback if one exists\n\t\t\t\tif ($callback && $count) {\n\t\t\t\t\t$results = call_user_func($callback, $results, $page);\n\n\t\t\t\t\tif (!is_iterable($results))\n\t\t\t\t\t\tthrow new RuntimeException('Callback passed to generateChunked() must return an iterable, got ' . (is_object($results) ? get_class($results) : strtolower(gettype($results))));\n\t\t\t\t}\n\n\t\t\t\t// yield results (do not use yield from, to generate new unique keys)\n\t\t\t\tforeach ($results as $curr) {\n\t\t\t\t\tyield $curr;\n\t\t\t\t}\n\n\t\t\t\tunset($results);\n\n\t\t\t\t++$page;\n\n\t\t\t} while ($count >= $queryChunkSize);\n\t\t}", "public function ranges()\n {\n return [];\n }", "private function generateDateRange(Carbon $start_date, DateInterval $interval, int $recurrences, int $exclusive = 1): array\n {\n $period = new DatePeriod($start_date, $interval, $recurrences, $exclusive);\n $dates = collect();\n\n foreach ($period as $date) {\n $dates->push($date->format('Y-m-d'));\n }\n\n return $dates->toArray();\n }", "public function split(Period|Duration|DateInterval $duration): iterable\n {\n $duration = self::filterDuration($duration);\n /** @var DateTimeImmutable $startDate */\n foreach ($this->toDatePeriod($duration) as $startDate) {\n $endDate = $startDate->add($duration);\n if ($endDate > $this->endDate) {\n $endDate = $this->endDate;\n }\n\n yield new self($startDate, $endDate, $this->bounds);\n }\n }", "public function map(callable $callback)\n {\n $literal = array();\n\n for ($i = 0; $i < $this->rows; $i++) {\n $row = array();\n\n for ($j = 0; $j < $this->columns; $j++) {\n $row[] = $callback($this->get($i, $j), $i, $j, $this);\n }\n\n $literal[] = $row;\n }\n\n return new static($literal);\n }", "public function each(): Generator\n {\n for ($day = $this->start; $day->isBeforeOrSameAs($this->end); $day = $day->nextDay()) {\n yield $day;\n }\n }", "public function map(callable $callback)\n {\n $literal = [];\n\n for ($i = 0; $i < $this->getRowCount(); $i++) {\n $row = [];\n\n for ($j = 0; $j < $this->getColumnCount(); $j++) {\n $row[] = $callback($this->get($i, $j), $i, $j, $this);\n }\n\n $literal[] = $row;\n }\n\n return new static($literal);\n }", "public function groupBy(callable $callback): Stream {\n\t\t$values = [];\n\t\t$keys = [];\n\t\tforeach ($this as $value) {\n\t\t\t$key = $callback($value);\n\t\t\t$hashed_keys = is_object($key) ? spl_object_hash($key) : $key;\n\t\t\t$values[$hashed_keys][] = $value;\n\t\t\t$keys[$hashed_keys] = $key;\n\t\t}\n\n\t\t$generator = function (array $values, array $keys) {\n\t\t\tforeach ($keys as $hashed_keys => $key) {\n\t\t\t\tyield [$key, Stream::of($values[$hashed_keys])];\n\t\t\t}\n\t\t};\n\n\t\treturn new Stream($generator($values, $keys));\n\t}", "protected function _getDateRange()\n {\n if (is_null($this->_dateRange)) {\n $this->_dateRange = array();\n $rules = $this->getAttributeObject()->getValidateRules();\n if (isset($rules[self::MIN_DATE_RANGE_KEY])) {\n $this->_dateRange[self::MIN_DATE_RANGE_KEY] = $rules[self::MIN_DATE_RANGE_KEY];\n }\n if (isset($rules[self::MAX_DATE_RANGE_KEY])) {\n $this->_dateRange[self::MAX_DATE_RANGE_KEY] = $rules[self::MAX_DATE_RANGE_KEY];\n }\n }\n return $this->_dateRange;\n }", "public function getRanges()\n {\n return $this->ranges;\n }", "public function getRanges()\n {\n return $this->ranges;\n }", "protected function getEqualRanges(array $values): array\n\t{\n\t\t// Determine the highest value.\n\t\t$highestValue = $this->determineHighestValue($values);\n\t\t$lowestValue = $this->determineLowestValue($values);\n\n\t\t// When grouping width should be equal, determine the width.\n\t\tif ($this->equalWidth === true) {\n\t\t\t$highestValue = $this->getHighestValueForWidth($highestValue);\n\t\t}\n\n\t\t$width = $highestValue / $this->getGroupSize();\n\n\t\t$ranges = range($lowestValue, $highestValue, $width);\n\n\t\treturn $ranges;\n\t}", "function dateRange($begin, $end, $interval = null){\n $begin = new DateTime($begin);\n $end = new DateTime($end);\n // Because DatePeriod does not include the last date specified.\n $end = $end->modify('+1 day');\n $interval = new DateInterval($interval ? $interval : 'P1D');\n\n return iterator_to_array(new DatePeriod($begin, $interval, $end));\n}", "public function ranges(): array\n {\n return [\n 30 => '30 Days',\n 60 => '60 Days',\n 90 => '90 Days',\n 180 => '180 Days',\n 365 => '365 Days',\n ];\n }", "public function get_blocks_in_range( $start_date, $end_date, $intervals = array(), $resource_id = 0, $booked = array() ) {\n\n\t\t$blocks_in_range = $this->get_blocks_in_range_for_day( $start_date, $end_date, $resource_id, $booked );\n\n\t\treturn array_unique( $blocks_in_range );\n\t}", "public static function build($array, callable $callback)\n {\n $results = [];\n\n foreach ($array as $key => $value) {\n list($innerKey, $innerValue) = call_user_func($callback, $key, $value);\n\n $results[$innerKey] = $innerValue;\n }\n\n return $results;\n }", "public static function build($array, callable $callback)\n {\n $results = [];\n\n foreach ($array as $key => $value)\n {\n list($innerKey, $innerValue) = call_user_func($callback, $key, $value);\n\n $results[$innerKey] = $innerValue;\n }\n\n return $results;\n }", "function array_build($array, Closure $callback)\n\t{\n\t\t$results = array();\n\n\t\tforeach ($array as $key => $value)\n\t\t{\n\t\t\tlist($innerKey, $innerValue) = call_user_func($callback, $key, $value);\n\n\t\t\t$results[$innerKey] = $innerValue;\n\t\t}\n\n\t\treturn $results;\n\t}", "function createRangeStat($start, $end, $format = 'Y-m-d') {\n \t\tdate_default_timezone_set(\"Europe/London\");\n\t\t$start = new DateTime($start);\n\t\t$end = new DateTime($end);\n\t\t$invert = $start > $end;\n\n\t\t$dates = array();\n\t\t$dates[] = $start->format($format);\n\t\twhile ($start != $end) {\n\t\t\t$start->modify(($invert ? '-' : '+') . '1 day');\n\t\t\t$dates[] = $start->format($format);\n\t\t}\n\t\treturn $dates;\n\t}", "function date_range($first, $last, $step = '+1 day', $output_format = 'd/m/Y' ) {\n\n $dates = array();\n $current = strtotime($first);\n $last = strtotime($last);\n\n while( $current <= $last ) {\n\n $dates[] = date($output_format, $current);\n $current = strtotime($step, $current);\n }\n\n return $dates;\n }", "public function splitRange($start, $end) {\n \t$series = [];\n \t$ranges = [];\n\n \t// start is the same as min page; make standalone number\n \tif ( intval($start) === $this->_min_page ) {\n \t\t$series[] = $start;\n \t}\n \telse {\n\t\t\t$range = $start . $this->_range_delimiter . strval($this->_min_page);\n\t\t\t$series[] = $this->processRange($range);\n \t}\n\n \t// end only one more than min_page; make standalone number after stepping\n \tif ( intval($end) - $this->_min_page === 1 ) {\n \t\t$series[] = $this->step($end);\n \t}\n \telse {\n\t\t\t$range = strval($this->_min_page + 1). $this->_range_delimiter . $end;\n\t\t\t$series[] = $this->processRange($range);\n \t}\n\n \treturn implode($this->_series_delimiter, $series);\n }", "public function map(callable $callback): self {\n\t\t$generator = function (Stream $stream) use ($callback) {\n\t\t\tforeach ($stream as $value) {\n\t\t\t\tyield $callback($value);\n\t\t\t}\n\t\t};\n\t\treturn new self($generator($this));\n\t}", "function erp_get_dates_in_range($first, $last, $step = '+1 day', $output_format = 'Y-m-d' ) {\n\n $dates = array();\n $current = strtotime($first);\n $last = strtotime($last);\n\n while( $current <= $last ) {\n\n $dates[] = date($output_format, $current);\n $current = strtotime($step, $current);\n }\n\n return $dates;\n}", "public function transform(Closure $callback)\n {\n $array = $this->toArray();\n\n $array = array_map($callback, $array);\n\n $indexedArray = static::createFormArray($array);\n $indexedArray->bucketSize = $this->getSize();\n\n return $indexedArray;\n }", "private function range() {\n\n $data = array();\n\n for($i = 1; $i<= 2; $i++) {\n\n array_push($data, $this->id($i));\n\n }\n\n return $data;\n\n }", "public function map(callable $callback): Sequence;", "public function splitBackwards(Period|Duration|DateInterval $duration): iterable\n {\n $endDate = $this->endDate;\n $duration = self::filterDuration($duration);\n do {\n $startDate = $endDate->sub($duration);\n if ($startDate < $this->startDate) {\n $startDate = $this->startDate;\n }\n yield new self($startDate, $endDate, $this->bounds);\n\n $endDate = $startDate;\n } while ($endDate > $this->startDate);\n }", "public function map(callable $callback) : self\n {\n $b = [];\n\n foreach ($this->a as $rowA) {\n $b[] = array_map($callback, $rowA);\n }\n\n return self::quick($b);\n }", "private function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n}", "protected function calculateRange($data)\n {\n $data_range = array_fill(0, count(current($data)), ['min' => null, 'max' => null]);\n foreach ($data as $observation) {\n $key = 0;\n foreach ($observation as $value) {\n if ($data_range[$key]['min'] === null || $data_range[$key]['min'] > $value) {\n $data_range[$key]['min'] = $value;\n }\n if ($data_range[$key]['max'] === null || $data_range[$key]['max'] < $value) {\n $data_range[$key]['max'] = $value;\n }\n $key++;\n }\n }\n\n return $data_range;\n }", "public function chunkBy(callable $chunk_test): self {\n\t\t$generator = function (Stream $stream) use ($chunk_test) {\n\t\t\t$chunk = [];\n\t\t\t$last_test_value = null;\n\n\t\t\t$stream->rewind();\n\t\t\tif ($stream->valid()) {\n\t\t\t\t$last_test_value = $chunk_test($stream->current());\n\t\t\t\t$chunk[] = $stream->current();\n\t\t\t}\n\t\t\t$stream->next();\n\t\t\twhile ($stream->valid()) {\n\t\t\t\t$current_test_value = $chunk_test($stream->current());\n\t\t\t\tif ($last_test_value !== $current_test_value) {\n\t\t\t\t\tyield $chunk;\n\t\t\t\t\t$chunk = [];\n\t\t\t\t}\n\t\t\t\t$chunk[] = $stream->current();\n\t\t\t\t$last_test_value = $current_test_value;\n\t\t\t\t$stream->next();\n\t\t\t}\n\t\t\tif (count($chunk) > 0) {\n\t\t\t\tyield $chunk;\n\t\t\t}\n\t\t};\n\t\treturn new self($generator($this));\n\t}", "protected function splitPeriod($rangePeriod){\n $resultPeriod = [];\n $period = generatePeriod($rangePeriod);\n $startDate = $period['startDate'];\n $endOfMonthStartDate = Carbon::parse($startDate)->endOfMonth()->format('Y-m-d');\n $endDate = $period['endDate'];\n\n if($endDate > $endOfMonthStartDate){\n $resultPeriod[] = ['start_period' => $startDate, 'end_period' => $endOfMonthStartDate];\n $resultPeriod[] = ['start_period' => substr($endDate, 0, 7).'-01' , 'end_period' => $endDate];\n }else{\n $resultPeriod[] = ['start_period' => $startDate, 'end_period' => $endDate];\n }\n return $resultPeriod;\n }", "public function mapSpread(callable $callback)\n {\n return $this->map(function ($chunk) use ($callback) {\n return $callback(...$chunk);\n });\n }", "public function dataProviderForRange(): array\n {\n return [\n [ [ 1, 1, 1 ], 0 ],\n [ [ 1, 1, 2 ], 1 ],\n [ [ 1, 2, 1 ], 1 ],\n [ [ 8, 4, 3 ], 5 ],\n [ [ 9, 7, 8 ], 2 ],\n [ [ 13, 18, 13, 14, 13, 16, 14, 21, 13 ], 8 ],\n [ [ 1, 2, 4, 7 ], 6 ],\n [ [ 8, 9, 10, 10, 10, 11, 11, 11, 12, 13 ], 5 ],\n [ [ 6, 7, 8, 10, 12, 14, 14, 15, 16, 20 ], 14 ],\n [ [ 9, 10, 11, 13, 15, 17, 17, 18, 19, 23 ], 14 ],\n [ [ 12, 14, 16, 20, 24, 28, 28, 30, 32, 40 ], 28 ],\n ];\n }", "public function map(callable $callback): self\n {\n $collection = Factory::create();\n\n $index = 0;\n foreach ($this->items as $key => $value) {\n $collection->set($key, $callback($value, $key, $index++));\n }\n\n return $collection;\n }", "function createDateRangeArray($strDateFrom,$strDateTo)\n{\n // inclusive array of the dates between the from and to dates.\n\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange=array();\n\n $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n $iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n if ($iDateTo>=$iDateFrom)\n {\n array_push($aryRange,date('Y-m-d',$iDateFrom)); // first entry\n while ($iDateFrom<$iDateTo)\n {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange,date('Y-m-d',$iDateFrom));\n }\n }\n return $aryRange;\n}", "protected function createBrowsersFor(Closure $callback)\n {\n if (count(static::$browsers) === 0) {\n static::$browsers = collect([$this->newBrowser($this->createWebDriver())]);\n }\n\n $additional = $this->browsersNeededFor($callback) - 1;\n\n for ($i = 0; $i < $additional; $i++) {\n static::$browsers->push($this->newBrowser($this->createWebDriver()));\n }\n\n return static::$browsers;\n }", "public function getPagesInRange($lowerBound, $upperBound) {\n $lowerBound = $this->normalizePageNumber($lowerBound);\n $upperBound = $this->normalizePageNumber($upperBound);\n\n $pages = array();\n\n for ($pageNumber = $lowerBound; $pageNumber <= $upperBound; $pageNumber++) {\n $pages[$pageNumber] = $pageNumber;\n }\n\n return $pages;\n }", "public function getPagesInRange($lowerBound, $upperBound)\n {\n $lowerBound = $this->normalizePageNumber($lowerBound);\n $upperBound = $this->normalizePageNumber($upperBound);\n\n $pages = array();\n\n for ($pageNumber = $lowerBound; $pageNumber <= $upperBound; $pageNumber++) {\n $pages[$pageNumber] = $pageNumber;\n }\n\n return $pages;\n }", "static function build(array $array, callable $callback) {\n $ret = [];\n\n foreach ($array as $key => $value) {\n list($innerKey, $innerValue) = $callback($key, $value);\n $ret[$innerKey] = $innerValue;\n }\n\n return $ret;\n }", "public function split(Closure $condition, string $leftKey = \"0\", string $rightKey = \"1\"): Collection\n {\n $left = new ReferencedCollection();\n $right = new ReferencedCollection();\n foreach ($this->array as $key => $value) {\n $toLeft = call_user_func($condition, $value, $key, $this);\n if ($toLeft) {\n $left->insert($key, $value);\n } else {\n $right->insert($key, $value);\n }\n }\n return new Collection([$leftKey => $left, $rightKey => $right]);\n }", "private function splitDataset(array $dataset, $valueGetter): array\n {\n $getter = 'get'.ucwords($valueGetter);\n\n $dates = $values = [];\n foreach ($dataset as $data) {\n $dates[] = $data->getDate()->format('d-m-Y');\n $values[] = $data->$getter();\n }\n\n return [$dates, $values];\n }", "public function rangeToPaginate()\n {\n $pages = array();\n\n if ( $this->lastPage <= $this->maxPagesToList) {\n for ($i = 1; $i <= $this->lastPage; $i++) {\n $pages[] = $i;\n }\n } else if ($this->currentPage <= floor($this->maxPagesToList/2)+1) {\n for ($i = 1; $i <= $this->maxPagesToList; $i++) {\n $pages[] = $i;\n }\n } else if ($this->lastPage <= floor($this->maxPagesToList/2)+$this->currentPage) {\n $begin = $this->lastPage - $this->maxPagesToList + 1;\n for ($i = $begin; $i <= $this->lastPage; $i++) {\n $pages[] = $i;\n }\n } else {\n $begin = $this->currentPage - floor($this->maxPagesToList/2);\n $end = $this->currentPage + floor($this->maxPagesToList/2);\n for ($i = $begin; $i <= $end; $i++) {\n $pages[] = $i;\n }\n }\n return $pages;\n\n }", "public function map(callable $callback)\n {\n if (!$this->repoClass) {\n throw new LogicException(\"To support shard map, you need to pass Repo class.\");\n }\n $mapResults = [];\n foreach ($this as $shardId => $shard) {\n $repo = $shard->createRepo($this->repoClass);\n $mapResults[$shardId] = $callback($repo, $shard);\n }\n return $mapResults;\n }", "public function range(int $start, int $end = null, int $step = null, bool $equal = null) : \\Generator\n {\n $step = $step ?? 1;\n $equal = $equal ?? false;\n\n if (0 === $step) {\n return;\n }\n\n $isReverse = $step < 0;\n\n if ($isReverse) {\n $end = $end ?? 0;\n\n } else {\n if (! isset($end)) {\n [ $end, $start ] = [ $start, $end ];\n }\n\n $start = $start ?? 0;\n }\n\n // dd($start, $end, $isForward, $equal);\n\n for ( $i = $start;\n null\n ?? ( ( $equal && $isReverse ) ? $i >= $end : null )\n ?? ( $equal ? $i <= $end : null )\n ?? ( $isReverse ? $i > $end : null )\n ?? ( $i < $end );\n //\n $i += $step\n ) {\n yield $i;\n }\n }", "public function testRange() {\n\t\t$result = _::range(5);\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(5, $result);\n\t\t$this->assertEquals(0, $result[0]);\n\t\t$this->assertEquals(1, $result[1]);\n\t\t$this->assertEquals(2, $result[2]);\n\t\t$this->assertEquals(3, $result[3]);\n\t\t$this->assertEquals(4, $result[4]);\n\n\t\t// test range with two parameters\n\t\t$result = _::range(1, 4);\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(3, $result);\n\t\t$this->assertEquals(1, $result[0]);\n\t\t$this->assertEquals(2, $result[1]);\n\t\t$this->assertEquals(3, $result[2]);\n\n\t\t// test range with three parameters\n\t\t$result = _::range(1, 10, 2);\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(5, $result);\n\t\t$this->assertEquals(1, $result[0]);\n\t\t$this->assertEquals(3, $result[1]);\n\t\t$this->assertEquals(5, $result[2]);\n\t\t$this->assertEquals(7, $result[3]);\n\t\t$this->assertEquals(9, $result[4]);\n\t}", "function excelColumnRange($lower, $upper) {\n\t\t$arr_range = array();\n\t\t++$upper;\n\t\tfor ($value = $lower; $value !== $upper; ++$value) {\n\t\t\t//echo $value.\" : \";\n\t\t\tarray_push($arr_range, $value);\n\t\t}\n\t\treturn $arr_range;\n\t}", "public function toArray($callback = null)\n\t{\n\t\t$blocks = array();\n\n\t\tforeach ($this as $k => $item) {\n\t\t\tif ($item instanceof Clib_Object) {\n\t\t\t\t$tmp_arr = $item->getData();\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$tmp_arr = $item;\n\n\t\t\t}\n\n\t\t\t$blocks[] = $tmp_arr;\n\t\t}\n\n\t\tif (is_callable($callback)) {\n\t\t\t$blocks = call_user_func($callback, $blocks);\n\t\t}\n\n\t\treturn $blocks;\n\n\t}", "protected function array_range($lbound, $ubound) {\n\t\t$ret = array();\n\t\tfor ($i = $lbound; $i <= $ubound; $i++) {\n\t\t\t$ret[] = $i;\n\t\t}\n\t\treturn $ret;\n\t}", "public function every(Closure $callback) {\n\t\treturn Hash::every($this->_value, $callback);\n\t}", "abstract public function mapValues(\\Closure $f): self;", "public function ranges(): array\n {\n return [\n 3 => '3 Weeks',\n 6 => '6 Weeks',\n 9 => '9 Weeks',\n 12 => '12 Weeks',\n ];\n }", "function createDateRangeArray( $strDateFrom,$strDateTo,$format ) {\n \n $aryRange=array();\n if ( $format == \"european\" ) {\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,3,2),substr($strDateFrom,0,2),substr($strDateFrom,6,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,3,2),substr($strDateTo,0,2),substr($strDateTo,6,4));\n\t} else if ( $format == \"american\" ) {\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,0,2),substr($strDateFrom,3,2),substr($strDateFrom,6,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,0,2),substr($strDateTo,3,2),substr($strDateTo,6,4));\n\t}\n\n\t\n if ($iDateTo>=$iDateFrom) {\n if ( $format == \"european\" ) {\n\t\t\tarray_push($aryRange, date('d-m-Y',$iDateFrom)); \n\t\t} else if ( $format == \"american\" ) {\n\t\t\tarray_push($aryRange,date('m/d/Y',$iDateFrom)); \n\t\t}\n while ($iDateFrom<$iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n if ( $format == \"european\" ) {\n\t\t\t\tarray_push($aryRange,date('d-m-Y',$iDateFrom)); \n\t\t\t} else if ( $format == \"american\" ) {\n\t\t\t\tarray_push($aryRange,date('m/d/Y',$iDateFrom)); \n\t\t\t}\n }\n }\n\t\n return $aryRange;\n}", "function getDateFilterSelectedRange() {\n $from = $this->getAdditionalProperty('date_filter_from');\n $to = $this->getAdditionalProperty('date_filter_to');\n \n return $from && $to ? array(new DateValue($from), new DateValue($to)) : array(null, null);\n }", "protected function currentRange($range)\n {\n return [\n now()->subDays($range)->toDateString(),\n now()->subDays($range)->toDateString()\n ];\n }", "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\r\n{\r\n $begin = new DateTime($startDate);\r\n $end = new DateTime($endDate);\r\n \r\n $interval = new DateInterval('P1D'); \r\n $dateRange = new DatePeriod($begin, $interval, $end);\r\n \r\n $range = [];\r\n \r\n for($i=$begin;$i<=$end;$i->modify('+1 day')) {\r\n $range[] = $i->format($format);\r\n \r\n }\r\n return $range; \r\n}", "private function _getStartDateRanges($months, $start_year)\n\t{\n\t\t$pairs = array();\n\t\tfor ($j = 0; $j < count($months); $j++){\n\t\t\t$start_date = date('Y-m-d', strtotime('20' . $start_year . '-' . $months[$j] . '-01'));\n\t\t\t$end_date = date('Y-m-d', strtotime('+1 month', strtotime($start_date)));\n\t\t\t$end_date = date('Y-m-d', strtotime('-1 day', strtotime($end_date)));\n\t\t\t$new_pair = array(\n\t\t\t\t'start_date_min' => $start_date,\n\t\t\t\t'start_date_max' => $end_date\n\t\t\t);\n\t\t\tarray_push($pairs, $new_pair);\n\t\t}\n\n\t\treturn $pairs;\n\t}", "function fechas($start, $end) {\n\t\t$range = array();\n\t\n\t\tif (is_string($start) === true) $start = strtotime($start);\n\t\tif (is_string($end) === true ) $end = strtotime($end);\n\t\n\t\tif ($start > $end) return createDateRangeArray($end, $start);\n\t\n\t\tdo {\n\t\t\t$range[] = date('Y-m-d', $start);\n\t\t\t$start = strtotime(\"+ 1 day\", $start);\n\t\t} while($start <= $end);\n\t\n\t\treturn $range;\n\t}", "function createDateRangeArray($strDateFrom, $strDateTo) {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange, date('Y-m-d', $iDateFrom));\n }\n }\n return $aryRange;\n}", "function createDateRangeArray($strDateFrom, $strDateTo) {\n // inclusive array of the dates between the from and to dates.\n // could test validity of dates here but I'm already doing\n // that in the main script\n\n $aryRange = array();\n\n $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2), substr($strDateFrom, 8, 2), substr($strDateFrom, 0, 4));\n $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2), substr($strDateTo, 8, 2), substr($strDateTo, 0, 4));\n\n if ($iDateTo >= $iDateFrom) {\n array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry\n\n while ($iDateFrom < $iDateTo) {\n $iDateFrom+=86400; // add 24 hours\n array_push($aryRange, date('Y-m-d', $iDateFrom));\n }\n }\n return $aryRange;\n}", "public function dataProviderForMidrange(): array\n {\n return [\n [ [ 1, 1, 1 ], 1 ],\n [ [ 1, 1, 2 ], 1.5 ],\n [ [ 1, 2, 1 ], 1.5 ],\n [ [ 8, 4, 3 ], 5.5 ],\n [ [ 9, 7, 8 ], 8 ],\n [ [ 13, 18, 13, 14, 13, 16, 14, 21, 13 ], 17 ],\n [ [ 1, 2, 4, 7 ], 4 ],\n [ [ 8, 9, 10, 10, 10, 11, 11, 11, 12, 13 ], 10.5 ],\n [ [ 6, 7, 8, 10, 12, 14, 14, 15, 16, 20 ], 13 ],\n [ [ 9, 10, 11, 13, 15, 17, 17, 18, 19, 23 ], 16 ],\n [ [ 12, 14, 16, 20, 24, 28, 28, 30, 32, 40 ], 26 ],\n ];\n }", "function getRowsByRange($table_name, $value_column_name, $value_min, $value_max)\n {\n $sql = sprintf(\n \"SELECT * FROM %s WHERE %s BETWEEN \\\"%s\\\" AND \\\"%s\\\"\",\n $table_name,\n $value_column_name,\n $value_min,\n $value_max);\n\n $rows = array();\n\n $result = $this->query($sql);\n while($row = $result->fetchArray(SQLITE3_ASSOC))\n {\n array_push($rows, $row);\n }\n\n return $rows;\n }", "public function createSubquery(Closure $callback)\n\t{\n\t\t$query = $this->builder->newInstance()->setSubquery();\n\n\t\t$callback($query);\n\n\t\treturn $query;\n\t}", "public function getSiblingsRange($from, $to = null, array $columns = ['*']);", "private function calcIpRange($ip_range)\n {\n// $subnet = new SubnetCalculator($network[0], $network[1]);\n\n if(preg_match(\"/\\-/\",$ip_range)){\n $address_range = explode(\"-\",$ip_range);\n return [\n 'from' => trim($address_range[0]),\n 'to' => trim($address_range[1])\n ];\n }\n\n $subnet = SubnetCalculator::factory($ip_range);\n\n // [192.168.112.0, 192.168.113.255]\n $address_range = $subnet->getIPAddressRange();\n return [\n 'from' => $address_range[0],\n 'to' => $address_range[1]\n ];\n }", "public function createFromDatePeriodProvider()\n {\n $start[0] = new DateObject('2021-05-01');\n $end[0] = new DateObject('2021-11-01');\n $interval[0] = new DateIntervalObject('P1M');\n $option[0] = 0;\n\n //end is DateObject option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = new DateObject('2021-11-01');\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n //end is recurrence option 0\n $start[2] = new DateObject('2021-05-01');\n $end[2] = 9;\n $interval[2] = new DateIntervalObject('P1M');\n $option[2] = 0;\n\n //end is recurrence option EXCLUDE_START_DATE\n $start[1] = new DateObject('2021-05-01');\n $end[1] = 9;\n $interval[1] = new DateIntervalObject('P1M');\n $option[1] = DatePeriod::EXCLUDE_START_DATE;\n\n return array_map(\n function (\n $start,\n $interval,\n $end,\n $option,\n ) {\n return [\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n $option,\n new DatePeriod(\n $start->toDateTimeImmutable(),\n $interval->toDateInterval(),\n is_int($end) ?\n $end :\n $end->toDateTimeImmutable(),\n $option,\n ),\n ];\n },\n $start,\n $interval,\n $end,\n $option,\n );\n }", "public function getRange() {\n\n }", "public function map(callable $callback): Collection\n {\n $offsets = array_keys($this->store);\n $values = array_map($callback, $this->store, $offsets);\n\n return new static(array_combine($offsets, $values));\n }", "public function refineDateRange($range, $refine)\n {\n $refined = [];\n\n // Loop through the range and keep the dates that match\n foreach ($range as $date) {\n $day = (int) $date->format('N');\n\n $dayBitwise = self::$refineMap[$day];\n\n if ($dayBitwise === ($dayBitwise & $refine)) {\n $refined[] = $date;\n }\n }\n\n return $refined;\n }", "public function years_range()\r\n {\r\n // end date.\r\n if(!($this->start && $this->end)){\r\n return NULL;\r\n }\r\n return array($this->start->format('Y'), $this->end->format('Y'));\r\n }", "public function map(Closure $callback, array $data = []) {\n\t\tif (empty($data)) {\n\t\t\t$this->_value = array_map($callback, $this->_value);\n\t\t} else {\n\t\t\t$this->_value = array_map($callback, $this->_value, $data);\n\t\t}\n\n\t\treturn $this;\n\t}", "function get_all_hazard_fiscal_years($conn) {\n $query_date = \"SELECT MIN(date), MAX(date) FROM hazard\";\n $dates = exec_query($conn, $query_date);\n $min_date = DateTime::createFromFormat('Y-m-d', $dates[0][0]);\n $max_date = DateTime::createFromFormat('Y-m-d', $dates[0][1]);\n $min_fiscal_year = get_corresponding_fiscal_year($min_date);\n $max_fiscal_year = get_corresponding_fiscal_year($max_date);\n return range($min_fiscal_year, $max_fiscal_year);\n}", "public static function parseRange( $range ) {\n // CIDR notation\n if ( strpos( $range, '/' ) !== false ) {\n if ( self::isIPv6( $range ) ) {\n return self::parseRange6( $range );\n }\n list( $network, $bits ) = self::parseCIDR( $range );\n if ( $network === false ) {\n $start = $end = false;\n } else {\n $start = sprintf( '%08X', $network );\n $end = sprintf( '%08X', $network + pow( 2, ( 32 - $bits ) ) - 1 );\n }\n // Explicit range\n } elseif ( strpos( $range, '-' ) !== false ) {\n list( $start, $end ) = array_map( 'trim', explode( '-', $range, 2 ) );\n if ( self::isIPv6( $start ) && self::isIPv6( $end ) ) {\n return self::parseRange6( $range );\n }\n if ( self::isIPv4( $start ) && self::isIPv4( $end ) ) {\n $start = self::toUnsigned( $start );\n $end = self::toUnsigned( $end );\n if ( $start > $end ) {\n $start = $end = false;\n } else {\n $start = sprintf( '%08X', $start );\n $end = sprintf( '%08X', $end );\n }\n } else {\n $start = $end = false;\n }\n } else {\n # Single IP\n $start = $end = self::toHex( $range );\n }\n if ( $start === false || $end === false ) {\n return array( false, false );\n } else {\n return array( $start, $end );\n }\n }", "public function map(Closure $function): array;", "public function ranges(): array\n {\n return [\n 7 => __(':days Days', ['days' => 7]),\n 14 => __(':days Days', ['days' => 14]),\n 30 => __(':days Days', ['days' => 30]),\n ];\n }", "public function periodRanges(): Collection\n {\n return Period::makeRanges($this->getConfig('strategy.keep-backups', []));\n }", "public function eachExceptEnd(): Generator\n {\n for ($day = $this->start; $day->isBefore($this->end); $day = $day->nextDay()) {\n yield $day;\n }\n }", "function dateRange($first, $last, $format = 'm/d/Y' ) { \n\t$dates = array();\n\t$current = strtotime($first);\n\t$last = strtotime($last);\n\n\twhile( $current <= $last ) { \n\t\t$dates[] = date($format, $current);\n\t\t$current = strtotime('+1 day', $current);\n\t}\n\t\n\treturn $dates;\n}", "function createDateRangeArray($strDateFrom,$strDateTo,$id_tamu)\n\t{\n\t\t// inclusive array of the dates between the from and to dates.\n\n\t\t// could test validity of dates here but I'm already doing\n\t\t// that in the main script\n\n\t\t$aryRange=array();\n\n\t\t$iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), substr($strDateFrom,8,2),substr($strDateFrom,0,4));\n\t\t$iDateTo=mktime(1,0,0,substr($strDateTo,5,2), substr($strDateTo,8,2),substr($strDateTo,0,4));\n\n\t\tif ($iDateTo>=$iDateFrom)\n\t\t{\n\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom).\"_\".$id_tamu); // first entry\n\t\t\twhile ($iDateFrom<$iDateTo)\n\t\t\t{\n\t\t\t\t$iDateFrom+=86400; // add 24 hours\n\t\t\t\tarray_push($aryRange,date('Y-m-d',$iDateFrom).\"_\".$id_tamu);\n\t\t\t}\n\t\t}\n\t\treturn $aryRange;\n\t}", "static public function getRanges(HTTPRequest $request, HTTPResponse $response) {\n\t\t// only standard \"bytes\" range specifications is supported for now\n\t\tif ($request->headers->get('Range') && preg_match('/bytes\\s*=\\s*(.+)/', $request->headers->get('Range'), $matches)) {\n\t\t\t// return a list of ranges\n\t\t\t$ranges = array();\n\t\t\tforeach (explode(',', $matches[1]) as $range) {\n\t\t\t\t// ranges are either from-to pairs or just end positions\n\t\t\t\tlist ($start, $end) = explode('-', $range);\n\t\t\t\t$ranges[] = $start === '' ?\n\t\t\t\t\tarray('last' => $end) :\n\t\t\t\t\tarray('start' => $start, 'end' => $end);\n\t\t\t}\n\t\t\treturn $ranges;\n\t\t}\n\n\t\t// no ranges header was found\n\t\treturn false;\n\t}", "public function it_splits_the_elements_by_date_timerange_service()\n {\n $hours = $this->vacancyParser->hours('830-1130,14-20,2215-2330,2330-2345');\n\n $array = [\n ['startAt' => '8:30', 'finishAt' => '11:30'],\n ['startAt' => '14:00', 'finishAt' => '20:00'],\n ['startAt' => '22:15', 'finishAt' => '23:30'],\n ['startAt' => '23:30', 'finishAt' => '23:45'],\n ];\n\n $this->assertEquals($hours, $array);\n }" ]
[ "0.5714152", "0.5714152", "0.5421245", "0.53541213", "0.5234432", "0.5207067", "0.5052191", "0.5005233", "0.49579906", "0.49086422", "0.48947716", "0.48820084", "0.48665294", "0.4858393", "0.48096666", "0.48081678", "0.47535062", "0.47512066", "0.4743403", "0.47252494", "0.47013554", "0.47003022", "0.46952352", "0.46926114", "0.46861255", "0.4680887", "0.46592158", "0.46412387", "0.45823258", "0.45823258", "0.4569767", "0.45310384", "0.4522867", "0.4488581", "0.44875473", "0.44789627", "0.44766858", "0.44758925", "0.4474869", "0.44712535", "0.44689217", "0.44649556", "0.44510308", "0.44285512", "0.4422885", "0.44098428", "0.4408623", "0.43974635", "0.43914822", "0.43829876", "0.43800157", "0.4378363", "0.43680766", "0.43580353", "0.43358228", "0.43271723", "0.4309308", "0.4269601", "0.42686957", "0.42631698", "0.42542213", "0.42480138", "0.42305657", "0.42297897", "0.4228407", "0.42263505", "0.4223745", "0.42196584", "0.42182505", "0.4217627", "0.42054793", "0.42042044", "0.42003405", "0.41925564", "0.41920292", "0.41884887", "0.41880715", "0.41760278", "0.41672897", "0.41607723", "0.41605008", "0.4155353", "0.41533017", "0.41532534", "0.41512418", "0.4150459", "0.4139805", "0.4139533", "0.4138722", "0.41291314", "0.4128521", "0.4120739", "0.4118568", "0.41157073", "0.40963194", "0.40907937", "0.40877452", "0.4086635", "0.40863055", "0.40757844" ]
0.6914536
0
funcion que devuelve un strin recortado por un numero de caracteres definido
public function limitLetters($text){ $length = strlen($text); $res = ""; if($length < 108){ $res = $text; }else{ $res = substr($text, 0, 108); } return $res . ' ...'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function NumeroInscripcion($primerdigito,$id)\n {\n $numero = $primerdigito.str_pad($id, 4, '0', STR_PAD_LEFT);\n $letra = '';\n $suma = 0;\n for ($i = 0; $i < 5; $i++) {\n $suma += substr($numero, $i, 1) * ($i + 1);\n }\n $letra = chr($suma % 11 + 65);\n $codigo = $numero.$letra;\n\n return $codigo;\n }", "function validar_dni($dni){\n $letra = substr($dni, -1);\n $numeros = substr($dni, 0, -1);\n if ( substr(\"TRWAGMYFPDXBNJZSQVHLCKE\", $numeros%23, 1) == $letra && strlen($letra) == 1 && strlen ($numeros) == 8 ){\n echo 'valido';\n }else{\n echo 'no valido';\n }\n}", "function extrae($cadena,$num_caracteres){\n $cadena_ext = substr($cadena,0, $num_caracteres);\n //Si el extracto ya viene con palabra completa no necesita buscar la siguiente palabra\n if($cadena[$num_caracteres] != \" \"){\n $sub_cadena = substr($cadena,$num_caracteres, ($tam_cadena - $num_caracteres));\n $miarray = explode (' ', $sub_cadena);\n $res_sub_cadena = $miarray[0];\n }\n $cad = $cadena_ext.$res_sub_cadena; \n return $cad; \n }", "function preparaCaracter($string)\n{\n $temp = explode(\" \", $string);\n $id = \"\";\n for($x=0;$x<count($temp);$x++)\n {\n if($x != 1)\n {\n $id .= $temp[$x].\"_\";\n }\n }\n $string = substr($id,0,-1);\n return strtolower(retiraAcentos($string));\n}", "public function __construct($in) {\n $this->num= FALSE !== strpos($in, '.') ? rtrim(rtrim($in, '0'), '.') : (string)$in;\n }", "function AnoData($data){\n\t$ano = substr($data, 0, 4);\n\treturn $ano;\n}", "function tach_chu_hien_thi($content){\r\n $mang = explode(\" \", $content);\r\n $str = \"\";\r\n $sochu = sizeof($mang);\r\n if($sochu < 10){\r\n for($j = 0; $j < sizeof($mang); $j++){\r\n $str = $str.\" \".$mang[$j];\r\n }\r\n }else{\r\n for($j = 0; $j < 15; $j++){\r\n $str = $str.\" \".$mang[$j];\r\n }\r\n }\r\n return $str;\r\n}", "function arreglar_numero($numero)\n\t\t{\n\t\t\t// \t$numero = str_replace(\".\", \"\",$numero);\n\t\t\t$inicio_coma = strpos($numero, '.');\n\t\t\t//var_dump($inicio_coma);die();\n\t\t\t// if ( is_float($numero) && ($inicio_coma != false))\n\t\t\t// \t$numero .= \"00\";\n\t\t\t// else $numero .= \",00\";\n\t\t\tif( is_numeric( $inicio_coma) && ($inicio_coma >= 1) && ($inicio_coma < strlen($numero) ) )\n\t\t\t\t$numero = substr($numero, 0, ($inicio_coma+3)); \n\t\t\t//return str_replace(\".\", \",\",$numero);\n\t\t\treturn $numero;\n\t\t}", "function extractGoodsCodeFromSINHYUPOrderGoods($str){\r\n\r\n $list = new LinkedList();\r\n $cnt=strlen($str);\r\n $max=0;\r\n $start=-1;\r\n for($i=0; $i<$cnt; $i++){\r\n $list->insertAtBack(ord(substr($str,$i,1)));\r\n }\r\n // echo \"size of List :\".$list->sizeOfList().\"<br>\";\r\n // echo \"cnt : $cnt<br>\";\r\n $curNode=$list->getHead();\r\n $i=0;\r\n while($curNode!=null){\r\n if($curNode->getData()>=48 && $curNode->getData()<=57 && $max!=3){//숫자라면\r\n if($start<0){\r\n $start=$i;\r\n }\r\n $max++;\r\n // echo $max.\"<br>\";\r\n\r\n }\r\n else{//숫자가 아니라면\r\n if($curNode->getData()==45 && $max==3){\r\n $max++;\r\n // echo $max.\"<br>\";\r\n }\r\n else{\r\n $max=0;\r\n $start=-1;\r\n }\r\n\r\n }\r\n if($max==10){\r\n\r\n $goodsCode=substr($str,$start,$max);\r\n // echo \"complete! goodsCode : \".$goodsCode.\"<br>\";\r\n $list=null;\r\n return $goodsCode;\r\n }\r\n $curNode=$curNode->getNext();\r\n $i++;\r\n\r\n }\r\n $goodsCode=\"\";\r\n $list=null;\r\n return $goodsCode;\r\n }", "function tel_cyf($telstr)\r\n{\r\n $tel = 0; \r\n $i = 0; \r\n $len = strlen($telstr);\r\n while($i < $len)\r\n {\r\n $kr = substr($telstr, $i, 1); \r\n if(is_numeric($kr)) \r\n { \r\n $tel ++; \r\n } \r\n $i ++;\r\n }\r\n return $tel;\r\n}", "function soNumero($str) {\r\nreturn preg_replace(\"/[^0-9]/\", \"\", $str);\r\n\r\n}", "function get_string_number($num) {\n // TODO: Add simple hashing [check array, add if not already there]\n $this->load_tables();\n $meta = $this->ORIGINALS[$num];\n $length = $meta[0];\n $offset = $meta[1];\n $this->STREAM->seekto($offset);\n $data = $this->STREAM->read($length);\n return (string)$data;\n }", "function mask_format($nric) {\n if (is_numeric($nric) == 1) {\n return $nric;\n } else {\n $new_nric = substr_replace($nric, 'XXXXX', 0, 5);\n //$new_nric = substr_replace($nric,'XXXX',5); \n return $new_nric;\n }\n }", "function demandeEntierPhrase($msg) // Demande un entier à l'utilisateur\n\n{\n do {\n do {\n $nombre = readline($msg);\n } while (!is_numeric($nombre)); // on verifie que la chaine de caracterer ne contient que des chiffres\n } while (!is_int($nombre * 1)); // on vérifie que le nombre est entier (pas réel)\n return $nombre; //renvoi le nombre saisi\n}", "function name_to_numbers($name){\n /* Keys on the phone:\n\n 1 2 3\n abc def\n\n 4 5 6\n ghi jkl mno\n\n 7 8 9\n pqrs tuv wxyz\n\n */\n $numberkeys = [\n \"a\" => \"2\", \"ä\" => \"2\", \"b\" => \"2\", \"c\" => \"2\",\n \"d\" => \"3\", \"e\" => \"3\", \"f\" => \"3\",\n \"g\" => \"4\", \"h\" => \"4\", \"i\" => \"4\",\n \"j\" => \"5\", \"k\" => \"5\", \"l\" => \"5\",\n \"m\" => \"6\", \"n\" => \"6\", \"o\" => \"6\", \"ö\" => \"6\",\n \"p\" => \"7\", \"q\" => \"7\", \"r\" => \"7\", \"s\" => \"7\", \"ß\" => \"7\",\n \"t\" => \"8\", \"u\" => \"8\", \"ü\" => \"8\", \"v\" => \"8\",\n \"w\" => \"9\", \"x\" => \"9\", \"y\" => \"9\", \"z\" => \"9\"\n ];\n $out = \"\";\n for($i = 0; $i < mb_strlen($name); $i++){\n $idx = mb_strtolower(mb_substr($name, $i, 1));\n if( isset($numberkeys[$idx]) )\n $out.= $numberkeys[$idx];\n }\n return $out;\n}", "function izbaci_internu_komandu($string, $start, $end){\r\n $ini = strpos($string,$start);\r\n if ($ini == 0) return \"\";\r\n $pdeo = substr($string,0,$ini);\r\n $ini += strlen($start); \r\n $len = strpos($string,$end,$ini) - $ini;\r\n $pocddela = strpos($string,$end) + strlen($end);\r\n $duzina = strlen($string);\r\n $duzinaDDela = $duzina - $pocddela;\r\n $drugiDeo = substr($string,$pocddela,$duzinaDDela);\r\n //return substr($string,$ini,$len).\" pos1=\".strpos($string,$start).\" pos2=\".strpos($string,$end,$ini).\" | \".$string . \" prvideo=\".$pdeo . \" drugiDeo=\".$drugiDeo;\r\n return $pdeo . $drugiDeo ;\r\n}", "function phone($string) {\n\n\n\t\t}", "function inputNumber($str) {\n\t$str = str_replace(\",\",\".\", $str);\n\t$str = str_replace(\" \",\"\", $str);\n\treturn trim($str);\n}", "function DurchwahlNummerSucher()\n {\n # Soll diese getrennt von der restlichen Telefonnummer aufbewahrt werden\n # Dazu Zerlege ich den String angand des \"-\".\n # Hat es nur ein Trennzeichen, erhalte ich 2 Arrayfelder.\n # Habe ich mehr Felder erhalten, ersetze ich alle \"-\" durch Leerzeichen, da ich nicht\n # mehr davon ausgehen kann, dass es eine Durchwahlnummer ist.\n\n $DurchwahlTest = array_reverse(explode(\"-\", $this->PhoneInput));\n $AnzTrennzeichen = count($DurchwahlTest);\n\n if ($AnzTrennzeichen > 2)\n { $this->PhoneInput = eregi_replace(\"-\", \" \", $this->PhoneInput); }\n\n else // Nur ein Trennzeichen wurde gefunden.\n {\n if(!preg_match(\"/^[0-9]*$/\",trim($DurchwahlTest[0])))\n { // Besteht das Ergebniss nicht zu 100% aus Zahlenist es keine Durchwahlnummer. Also weg mit den \"-\"\n $this->PhoneInput = eregi_replace(\"-\", \" \", $this->PhoneInput);\n }\n\n else // Es hat vermutlich eine Durchwahlnummer!\n {\n if (trim($DurchwahlTest[1]) != \"\") // Natürlich muss VOR der Durchwahlnummer auch eine Zahl sein ...\n {\n $this->PhoneDurchwahl = trim($DurchwahlTest[0]); // Merke die Durchwahlnummer\n $this->PhoneInput = $DurchwahlTest[1]; // Gib die Telefonnummer OHNE die Durchwahlnummer zurück\n } // (Diese setze ich erst ganz am Schluss wieder ein.)\n }\n }\n }", "public static function takingstringinput()\n {\n fscanf(STDIN, \"%s\\n\", $txt);\n while((! (strlen($txt)>= 3)) || is_numeric($txt) )\n {\n echo \"Warning:Enter the string of min 3 char and no digits in it:\\n\";\n fscanf(STDIN, \"%s\\n\", $txt);\n }\n return $txt;\n \n }", "public static function invoice_recMod10($in)\n {\n $line = [0, 9, 4, 6, 8, 2, 7, 1, 3, 5];\n $carry = 0;\n $chars = str_split($in);\n\n foreach ($chars as $char) {\n $carry = $line[($carry + intval($char)) % 10];\n }\n\n return (10 - $carry) % 10;\n }", "function integeronly($string)\n\t{\n\t\t$nn = preg_replace(\"/[^0-9]/\", \"\", $string );\n\t\treturn $nn;\n\t}", "function validar_letra($dni){\n\t$letra = substr($dni, -1);\n\t$numeros = substr($dni, 0, -1);\n\t//si se cumple la condicion\n\tif ( substr(\"TRWAGMYFPDXBNJZSQVHLCKE\", $numeros%23, 1) == $letra && strlen($letra) == 1 && strlen ($numeros) == 8 ){\n\t\treturn true;\n\t}//si no\n\telse{\n\t\treturn false;\n\t}\n}", "function printPhoneNum($phone){\n $phone = str_split($phone, 3);\n\n return $phone[0] . '-' . $phone[1] . '-' . $phone[2];\n}", "function _generate_nip($nip){\n\t\t$pnjNip = strlen($nip);\n\t\tif($pnjNip == 18){\n\t\t\t$tgl_lahir = substr($nip, 0,8);\n\t\t\t$bln_masuk = substr($nip, 8,6);\n\t\t\t$jk = substr($nip, 14,1);\n\t\t\t$no = substr($nip, 15,3);\n\t\t\treturn $tgl_lahir.' '.$bln_masuk.' '.$jk.' '.$no;\n\t\t}else{\n\t\t\treturn $nip;\n\t\t}\n\t}", "function is_numerico($string, $min_length = 0, $max_length = 0)\r\n{\r\n //$ret = _is_valid($string, $min_length, $max_length, \"[[:digit:]]+\");\r\n //return($ret);\r\n $string=clean($string);\r\n\r\n if($min_length!=0)\r\n {\r\n if(strlen($string)<$min_length)\r\n return (false);\r\n }\r\n if($max_length!=0)\r\n {\r\n if(strlen($string)>$max_length)\r\n return (false);\r\n }\r\n for($i=0;$i<strlen($string);$i++)\r\n {\r\n if(is_digito($string{$i})==FALSE)\r\n return(false);\r\n }\r\n return(true);\r\n}", "function noidungtt($sotu,$noidung)\n{\n\n\t$n=explode(\" \",$noidung);\n\t$noidunginra=\" \";\n\tif($sotu<=count($n)){\n for($i=0;$i<$sotu;$i++)\n\t\t $noidunginra = $noidunginra.$n[$i].\" \";\n $noidunginra .=\"...\";\n }\n\telse\n\t\techo \"<h1>cảnh báo : số từ tóm lược nhiều hơn nội dung ban đầu</h1>\"; \n\treturn $noidunginra;\n}", "public function number($len){ }", "function numdecim($stringa) {\n$arr_stringa = explode(\".\",$stringa);\n$parte_int = $arr_stringa[0];\n$parte_decim = $arr_stringa[1];\n$num_fin = $parte_int.\",\".$parte_decim;\nreturn $num_fin;\n}", "function in8nPhone($phone_)\n{\n\t//FIX, let it be Nigerian numbers only\n\t$rPLUS = \"/^\\+/\";\n\t//strip the plus, if there\n\t$phone = preg_replace($rPLUS, \"\", $phone_);\n\t$ptn = \"/^0/\"; // Regex\n\t$str = $phone; //\n\t$rpltxt = \"234\"; // Replacement string\n\t$i81n_phone = preg_replace($ptn, $rpltxt, $str);\n\tif (strlen($i81n_phone) != 13) {\n\t return \"\";\n\t\t//return (\"error:SMS to phone number;$i81n_phone not supported\");\n\t} else {\n\t\treturn $i81n_phone;\n\t}\n}", "function startswithNum($str = null){\n $firstChar =substr($str,0 ,1);\n if (is_numeric($firstChar)) {\n echo \"input starts with a Number<br>\";\n return true;\n }else\n return false;\n}", "function commify ($str) { \n $n = strlen($str); \n if ($n <= 3) { \n $return=$str;\n }else { \n $pre=substr($str,0,$n-3); \n $post=substr($str,$n-3,3); \n $pre=number_format($pre); \n $return=\"$pre,$post\"; \n }\n return($return); \n}", "function mascara($string, $mascara)\n{\n $maskared = '';\n $k = 0;\n for($i=0; $i<=strlen($mascara)-1; $i++){\n if($mascara[$i] == '#'){\n if(isset($string[$k]))\n $maskared .= $string[$k++];\n }else{\n if(isset($mascara[$i]))\n $maskared .= $mascara[$i];\n }\n }\n\n return $maskared;\n}", "function formatKata9($kata = '')\n{\n return substr($kata, 2);\n}", "function validateMsn($texto){\n if(strlen($texto) < 10){\n return false;\n // SI longitud, SI caracteres A-z\n } else {\n return true;\n }\n}", "function sup_car ($t) {\n\treturn (substr($t, 0, strlen($t)-1));\n}", "public function convert($num)\n {\n if(strlen($num)>48) \n {\n $this->error=\"Number out of bounds\";\n return $this->error;\n }\n \n //check if first \n if(substr($num,0,1)==\"-\")\n {\n $this->sentence.='minus ';\n $num=substr($num,1,strlen($num)-1);\n }\n \n if(strlen($num)<=3)\n {\n $this->sentence.=$this->decider($num);\n }\n else\n {\n $k=strrev($num);\n for($i=0;$i<strlen($k);$i=$i+3){$arro[]=strrev(substr($k,$i,3));}\n //reverse again\n $arro=array_reverse($arro);\n //print_r($arro);\n $mool=ceil(strlen($num)/3);\n if((strlen($num)%3)==0){$mool--;}\n //return $this->decider($arro[0]);\n $this->sentence.=$this->decider($arro[0]).' '.$this->mool_array[$mool];\n $mool--;\n //leave the first one and prepare string of others\n $arrlen=count($arro);\n for($i=1;$i<$arrlen;$i++)\n {\n $this->sentence.=' '.$this->decider($arro[$i]);\n if($mool!=0)\n {\n $this->sentence=' '.$this->sentence.' '.$this->mool_array[$mool];\n }\n $mool--;\n }\n }\n return ucfirst(trim($this->sentence));\n }", "function obtenerNumeroSerie($stringAcortar){\n\n $arrayEmail = explode(\",\", $stringAcortar);\n\n return $arrayEmail[2];\n\n }", "public function numeroOrden($length = 0, $uc = FALSE, $n = TRUE, $sc = FALSE) {\n //se consulta la Hora y se le agrega al final para evitar que se repita el numero\n $hora = date(\"G\");\n //se compara la cantidad de digitos para colocar el numero de digitos en length\n if (strlen($hora) == 2) {\n $length = 4;\n } else {\n $length = 5;\n }\n $source = 'ABCDEFGHJKMNPQRSTUVWXYZ';\n if ($uc == 1)\n $source .= 'abcdefghjkmnpqrstuvwxyz';\n if ($n == 1)\n $source .= '23456789';\n if ($sc == 1)\n $source .= '|@#~$%()=^*+[]{}-_';\n if ($length > 0) {\n $rstr = \"\";\n $source = str_split($source, 1);\n for ($i = 1; $i <= $length; $i++) {\n mt_srand((double) microtime() * 1000000);\n $num = mt_rand(1, count($source));\n $rstr .= $source[$num - 1];\n }\n }\n $rstr = $rstr . $hora;\n\n return $rstr;\n }", "function getAno($data) {\n\t$array = explode(\"/\",$data);\n\treturn $array[2];\n}", "function limpiar($cadena){\n\t\t$cadena=str_replace(\"_\",\" \",$cadena);//alt + 15\n\t\t$cadena=str_replace(\"|\",\"=\",$cadena);//alt + 10\n\t\treturn $cadena=str_replace(\"*\",\"'\",$cadena);//alt + 16\n\t}", "function getTelefone($fone){\n\t$telefone = substr($fone, 2);\n\treturn $telefone;\n}", "function obtener_mes($fecha) {\r\nreturn(substr($fecha,5,2));\r\n}", "function MakePhoneNumberInt($thenumber)\r\n{\r\n\t$dff = substr($thenumber, 0, 1);\r\n\t$dff2 = substr($thenumber, 0, 3);\r\n\tif($dff==\"+\")\r\n\t{\r\n\t\treturn $thenumber;\r\n\t}\r\n\telse if($dff == \"0\")\r\n\t{\r\n\t\treturn \"234\".substr($thenumber, 1);\r\n\t}\r\n\telse if($dff2 == \"234\")\r\n\t{\r\n\t\treturn $thenumber;\r\n\t}\r\n}", "function ndigitos($var)\n {\n return strlen($var); //poner\n }", "function tailletableau()\n{\n $val = readline(\"Entrez le nombre de valeurs que vous voulez saisir :\");\n while (!ctype_digit($val)) {\n echo (!ctype_digit($val) xor $val < 0) ? \"Saisie invalide.\\n\" : \"\";\n $val = readline(\"Entrez le nombre de valeurs que vous voulez saisir :\");\n }\n return $val;\n}", "function getSubStringText($text,$string_no)\n\t\t{\n\t\t\t$subString = substr($text,0,$string_no);\n\t\t\treturn $subString;\n\t\t}", "function dateNumberForm($str_number, $delimiter)\n{\n\tswitch(strlen($str_number))\n\t{\n\t\tcase 0:\n\t\t\t$rtnValue\t=\t\"noData\";\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\t$rtnValue\t=\tsubstr($str_number,0,4).$delimiter.substr($str_number,4,2).$delimiter.substr($str_number,6,2);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t$rtnValue\t=\t$str_number.\"[format error]\";\n\t}//\tend switch\n\t\n\treturn $rtnValue;\n\t\n}", "public static function strNbrChar($haystack, $nbr, &$strPos) {\n\t\t\tif ($strPos >= strlen($haystack)) {\n\t\t\t\t$strPos = strlen($haystack);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t$result = substr($haystack, $strPos, $nbr);\n\t\t\t$strPos +=$nbr;\n\t\t\t$strLen = strlen($haystack);\n\t\t\tif ($strPos > $strLen) {\n\t\t\t\t$strPos = $strLen;\n\t\t\t}\n\t\t\treturn $result;\n\t\t}", "public function f_LetraNIF ($dni) \n\t{\n\t\t$valor= (int) ($dni / 23);\n\t\t$valor *= 23;\n\t\t$valor= $dni - $valor;\n\t\t$letras= \"TRWAGMYFPDXBNJZSQVHLCKEO\";\n\t\t$letraNif= substr ($letras, $valor, 1);\n\t\t\n\t\treturn $letraNif;\n\t}", "private function getFlightNumber():string \n {\n // Tableau de lettre en majuscule\n $lettres = range('A', 'Z');\n // je mélange\n shuffle($lettres);\n // j'extrait le premier item du tableau\n $lettre = array_shift($lettres);\n // je recommence pour la seconde lettre\n shuffle($lettres);\n // j'extrait la seconde lettre\n $lettre .= array_shift($lettres);\n // un nombre sur 4 digit au hasard\n $nombre = mt_rand(1000, 9999);\n \n return $lettre.$nombre;\n\n }", "function int_filter ($nama){\rif (is_numeric ($nama)){\rreturn (int)preg_replace ( '/\\D/i', '', $nama);\r}\relse {\r $nama = ltrim($nama, ';');\r $nama = explode (';', $nama);\r return (int)preg_replace ( '/\\D/i', '', $nama[0]);\r}\r}", "function ZerteileRufnummer()\n {\n if (ereg (\"^\\+\", $this->PhoneInput)) // Ein Plus am Anfang = Ländervorwahl\n {\n $NutzFeld = 1; // >>> Ein Feld muss schon mal ausgelassen werden.\n\n $TelFragmente = explode(\" \", $this->PhoneInput); // Trenne die Telefonnummer bei den Leerzeichen\n\n if (count($TelFragmente) > 1) // Wenn die Nummer nicht \"aus einem Guss\" besteht\n {\n $this->Landesvorwahl = $TelFragmente[0]; // Die Ländervorwahl Vorwahl ist im ersten Feld\n\n if (count($TelFragmente) > 2) // Die nationale Vorwahl ist im zweiten Feld. Gibt es diese hier ?\n {\n $this->Ortsnetzkennzahl = \"(0)\".$TelFragmente[1];\n $NutzFeld += 1; // >>> Also sind es 2 Felder, die nachher beim Zusammensetzen ausgelassen werden.\n }\n $this->Teilnehmerkennzahl = \"\";\n for($nn= $NutzFeld ;$nn<count($TelFragmente);$nn++)\n { $this->Teilnehmerkennzahl .= $TelFragmente[$nn]; } // Die Zahlen ohne Vorwahlen zusammenfügen\n\n }\n\n else\n {\n // Pech... Ohne Leerzeichen kann die Rufnummer nur schwer unterteilt werden.\n // Ich versuche wenigstens anhand der Vorwahl etwas zu erkennen.\n\n $l=strlen($this->PhoneInput); // Länge der Telefonnummer ermitteln\n if ($l < 6) {$AnzSuche = $l;} // Ist die Rufnummer kleiner als das Suchmuster muss ich die Länge des Suchmusters kürzen.\n else {$AnzSuche = 6;} // Sonst nehme ich mal die ersten 5 Zahlen sowie das Plus, um zu suchen.\n\n $Feldname = \"Vorwahl\";\n for($n=$AnzSuche;$n>1;$n--)\n {\n $SuchInVorwahl = substr($this->PhoneInput, 0, $n); // Als Suchmuster etwas von Vorderteil der Nummer nehmen\n $x = $this->suche_ID_multi_array($Feldname, $SuchInVorwahl);\n if($x) // Glück gehabt. Die Vohrwahl passt zu einer in der Tabelle.\n {\n $this->Landesvorwahl= $SuchInVorwahl;\n $this->TabID= $x;\n $this->PHONE_WARNUNG .= \"Landesvorwahl wurde erkannt, nicht aber die Ortsvorwahl !<br>\";\n $this->Teilnehmerkennzahl = substr($this->PhoneInput, $n);\n break; // Schleife verlassen\n }\n }\n\n\n if ($x > 1) {$this->Landesvorwahl = $this->LandTabelle[$x][\"Vorwahl\"];} // Es wurde eine passende internationale Vorwahl gefunden\n else {\n // Die Vorwahl kann nicht erraten werden und der Rest klebt an einem Block.\n $this->PHONE_ERROR = \"Kein g&uuml;ltiges Muster in der Rufnummer erkannt.<br>\\n\". // Nummer zur Formatierung unbrauchbar\n \" Bitte benutzen Sie Leerzeichen zur optischen Unterteilung\";\n }\n }\n }\n\n // N A T I O N A L E Schreibweise: ---------------------------------------------------------------------------\n else /// Es hatte kein + am Anfang ...\n {\n\n $TelInlandBereich = explode(\" \", $this->PhoneInput);\n if (trim($TelInlandBereich[1]) != \"\") // Ist im Feld eins nichts, ist die Nummer aus einem Guss. Sonst ...\n {\n $this->Ortsnetzkennzahl = $TelInlandBereich[0]; // Hier ist die Ortsvorwahl zu erwarten\n $this->Teilnehmerkennzahl = \"\";\n for($x=1;$x<count($TelInlandBereich);$x++)\n { $this->Teilnehmerkennzahl .= $TelInlandBereich[$x]; }\n\n $this->Teilnehmerkennzahl = trim(eregi_replace(\"[^0-9]\", null, $this->Teilnehmerkennzahl));\n\n if (!ereg (\"^0\", trim($this->Ortsnetzkennzahl)))\n $this->PHONE_WARNUNG .= \"Ortsvorwahl vermutlich falsch! (Sie beginnt ohne \\\"0\\\") <br>\";\n }\n else\n {\n $this->Teilnehmerkennzahl = $this->PhoneInput;\n $this->PHONE_WARNUNG .= \"Konnte keine Ortsvorwahl ermitteln. Die Nummer wird daher am Stück zurückgegeben !<br>\";\n }\n }\n }", "function modify_number($number){\n //get the part of the string after the first zero\n $num = substr($number,1,strlen($number));\n //chunk the number into groups of threes\n $num_chunked = chunk_split($num,3,' ');\n return ' (0) '.$num_chunked;\n}", "function calcula_num_os($os){\n\t\n\t$long_numero = strlen($os);\n\t\n\tif($long_numero == 7)\n\t $id_os = $os;\n\t\n\tif($long_numero == 6)\n\t $id_os = \"0\".$os;\n\t\n\tif($long_numero == 5)\n\t $id_os = \"00\".$os; \n\t\n\tif($long_numero == 4)\n\t $id_os = \"000\".$os;\n\t \n\tif($long_numero == 3)\n\t $id_os = \"0000\".$os;\n\t \n\tif($long_numero == 2)\n\t $id_os = \"00000\".$os;\n\t \n\tif($long_numero == 1)\n\t $id_os = \"000000\".$os; \n\t\n\treturn $id_os;\n}", "public function GetTextAircraftTailNumberByHex($input){\n\t\tif ($input == ''){\n\t\t\treturn '';\n\t\t}\t\t\n\t\t\n\t\t$hexTail = dechex($input);\n\t\t//echo \" hexTail-\" .$hexTail; //DEBUG\n\t\t \n\t\t$str='';\n\t\tfor ($i=0; $i < strlen($hexTail)-1; $i+=2)\n\t\t{\n\t\t\t$str .= chr(hexdec($hexTail[$i].$hexTail[$i+1]));\n\t\t}\n\t\t\n\t\t//echo \" tailnumber string-\" .$str; //DEBUG\n\n\t\treturn strrev($str);;\n\t}", "function CompterNombreDeM($chaine) {\n$nb=0;\n\nfor ($i=0; $i <CompteNombreCaractere($chaine); $i++) { \n\tif (($chaine[$i]=='m') or ($chaine[$i]=='M') ) {\n\t\t$nb=$nb+1;\n}\n\n}\nreturn $nb;\n\n}", "function transNumber($input) \n{\n $faRes=\"\";\n $input=\"$input\";\n $len=strlen($input);\n for ($i=0; $i<$len; $i++)\n switch($input[$i]) {\n case \"0\": $faRes.=\"۰\"; break;\n case \"1\": $faRes.=\"۱\"; break;\n case \"2\": $faRes.=\"۲\"; break;\n case \"3\": $faRes.=\"۳\"; break;\n case \"4\": $faRes.=\"۴\"; break;\n case \"5\": $faRes.=\"۵\"; break;\n case \"6\": $faRes.=\"۶\"; break;\n case \"7\": $faRes.=\"۷\"; break;\n case \"8\": $faRes.=\"۸\"; break;\n case \"9\": $faRes.=\"۹\"; break;\n default: $faRes.= $input[$i]; break;\n }\n return $faRes;\n}", "function nombremescorto($idmes){\n\t$nombremescorto = \"\";\n\tswitch ($idmes) {\n\t\tcase 1:\n\t\t\t$nombremescorto = \"ENE\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\t$nombremescorto = \"FEB\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\t$nombremescorto = \"MAR\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\t$nombremescorto = \"ABR\";\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\t$nombremescorto = \"MAY\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\t$nombremescorto = \"JUN\";\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\t$nombremescorto = \"JUL\";\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\t$nombremescorto = \"AGO\";\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\t$nombremescorto = \"SEP\";\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\t$nombremescorto = \"OCT\";\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\t$nombremescorto = \"NOV\";\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\t$nombremescorto = \"DIC\";\n\t\t\tbreak;\n\n\t}\n\treturn $nombremescorto;\n}", "function buscar($x, $z) {\n $zlong = strlen($z);\n $xlong = strlen($x);\n $w_start = $xlong-$zlong-1;\n //substr devuelve parte de una cadena\n if(substr($x, $xlong-$zlong, $zlong) == $z){\n return \"true\";\n } \n else{\n return \"false\";\n }\n}", "public function build($param){\n $min = 96;\n $max = 122;\n \n $min1 = 64;\n $max1 = 90;\n \n $cadena = str_split($param);\n $result = \"\";\n \n foreach ($cadena as $index => $caracter):\n $ord = ord($caracter);\n \n if (($min1 < $ord AND $ord < $max1) OR ($min < $ord AND $ord < $max)) {\n $ord++;\n }elseif ($ord == 122){\n $ord = 97;\n }elseif ($ord == 90){\n $ord = 65;\n }\n $result .= chr($ord);\n endforeach;\n \n return $result;\n }", "function next_id($id=\"\") {\n if (ereg(\"^[0-9]+$\",$id)) {\n $id++;\n return $id;\n }\n $id2=1; \n if(ereg(\"[0-9]+$\",$id)==true){\n $id1=ereg_replace(\"[0-9]+$\",\"\",$id);\n preg_match(\"/([0-9]+)$/\",$id,$matches);\n $id2=$matches[1];\n $id2++;\n return $id2;\n } else { \n if (empty($liczba)) $liczba='';\n return $id.$liczba; \n }\n }", "function getnote($num)\n{\n\tswitch ($num) {\n\t\tcase 1 : return 'Insuffisant';\n\t\tcase 3 : return 'Suffisant';\n\t\tcase 4 : return 'Bon';\n\t\tcase 5 : return 'Tres bon';\n\t}\n}", "function digit_at($a, $i){\n\t$a = $a . \"\";\n\tif (strlen($a) <= $i)\n\t\treturn \"0\";\n\n//\tprintf(\"%10s %2d %2d\\n\", $a, strlen($a), $i);\n\n\t$a = strrev($a);\n\n\treturn $a[$i];\n}", "public static function genPhoneFormat($str) //from 0902244581 to 090-224-xxxx\n {\n $aNumbers = str_split($str);\n \n $result = '';\n $index = 0;\n for($i = count($aNumbers) - 1 ; $i >= 0; $i--)\n {\n $index++;\n \n if($index <= 4)\n {\n $result = 'x'.$result; \n if($index == 4)\n $result = '-'.$result;\n \n }else\n {\n $result = $aNumbers[$i].$result;\n if($index == 7)\n $result = '-'.$result; \n }\n }\n return $result;\n }", "function getnum($str){\n return $int = (int) filter_var($str, FILTER_SANITIZE_NUMBER_INT);\n}", "private function _genCode(){\n\t\t$str = \"1 2 3 4 6 7 8 9 a b c d e f g h k m n P t\";\n\t\t\n\t\t$temp = explode(\" \", $str);\n\t\t$c1 = $temp[rand(1, 20)];\n\t\t$c2 = $temp[rand(1, 11)];\n\t\t$c3 = $temp[rand(1, 13)];\n\t\t$c4 = $temp[rand(1, 20)];\n\t\t$c5 = $temp[rand(1, 18)];\n\t\t$c6 = $temp[rand(1, 20)];\n\t\t\n\t\t$chars = $c1.$c2.$c3.$c4.$c5.$c6;\n\t\t\n\t\treturn strtolower($chars);\n\t}", "function palabra_corto($variable,$largo){\n\tif (strlen($variable) > $largo) { \n \t\t\t$var\t = 'El dato ingresado debe tener no mas de '.$largo.' caracteres';\n\t\t\treturn $var;\n\t}\n}", "function expanded_form(int $n) {\n // Get string value of a variable\n $a=strval($n);\n // Convert string to array;\n $tab = str_split($a);\n $longueurTab= sizeof($tab);\n for($i=0,$j=$longueurTab-1;$i<$longueurTab;$i++,$j--){\n $tab[$i] = intval($tab[$i])*pow(10,$j);\n }\n // delete 0 numbers\n foreach (array_keys($tab, 0) as $key) {\n unset($tab[$key]);\n }\n //var_dump($tab,\"no\");\n $res = implode(\" + \",$tab);\n //var_dump($res,\"no\");\n return $res;\n }", "function palabra_largo($variable,$largo){\n\tif (strlen($variable) < $largo) { \n \t\t\t$var\t = 'El dato ingresado debe tener al menos '.$largo.' caracteres';\n\t\t\treturn $var;\n\t}\n}", "function obtener_pimienta()\n{\n\t$todo = str_split('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()');\n\n\t$caracteres = array_rand($todo, 2);\n\n\treturn $todo[$caracteres[0]] . $todo[$caracteres[1]];\n}", "function es_un_real($string){\r\n// entero es considerado un subconjunto de real\r\n $salida = FALSE;\r\n if(ereg(\"^([0-9]+)$\", $string)){$salida = TRUE;} // 5\r\n if(ereg(\"^([0-9]+)(\\.[0-9]+)?$\", $string)){$salida = TRUE;} // 5 5.560\r\n if(ereg(\"^(\\.[0-9]+)$\", $string)){$salida = TRUE;} // . .54\r\n if(ereg(\"^$\", $string)){$salida = TRUE;}\r\n return $salida;\r\n }", "function nilaiSiswa($nilai) {\nif($nilai==0){ \n\t$nilai = '';\n}\nelseif($nilai==4){ \n\t$nilai = 'SB';\n}\nelseif($nilai==3){ \n\t$nilai = 'B';\n}\nelseif($nilai==2){ \n\t$nilai = 'C';\n}\nelse { \n\t$nilai = 'K';\n}\n\treturn $nilai;\n}", "function formatinr($input){\r\n $dec = \"\";\r\n $pos = strpos($input, \".\");\r\n if ($pos === false){\r\n //no decimals \r\n } else {\r\n //decimals\r\n $dec = substr(round(substr($input,$pos),2),1);\r\n $input = substr($input,0,$pos);\r\n }\r\n $num = substr($input,-3); //get the last 3 digits\r\n $input = substr($input,0, -3); //omit the last 3 digits already stored in $num\r\n while(strlen($input) > 0) //loop the process - further get digits 2 by 2\r\n {\r\n $num = substr($input,-2).\",\".$num;\r\n $input = substr($input,0,-2);\r\n }\r\n return $num . $dec;\r\n }", "public static function fentrada($cad){\n\t$uno=substr($cad, 0, 2);\n\t$dos=substr($cad, 3, 2);\n\t$tres=substr($cad, 6, 4);\n\t$cad2 = ($tres.\"/\".$dos.\"/\".$uno);\n\treturn $cad2;\n}", "function mswReverseTicketNumber($num) {\n return ltrim($num,'0');\n}", "function ncapicua($numero)\n {\n \n $numeroinver=strrev($numero); //poner\n if($numero==$numeroinver) {\n $mensaje= \"<br> El numero $numero es capicua\";\n }else{\n $mensaje= \"<br> El numero $numero no es capicua\";\n }\n return $mensaje;\n }", "public function get_reg_id($character, $id_type) {\n\n $fields = array(\"*\");\n $whereArr = array(\"id_type\" => $id_type);\n $id_number = $this->db_model->getData($fields, 'id_numbers_m_tbl', $whereArr);\n\n $int = intval(preg_replace('/[^0-9]+/', '', $id_number[0]->id_number), 10);\n $id = \"$character\" . ($int + 1);\n return $id;\n\n}", "function cexplode($chars, $str, $int = 0){\n\t\n\t$r = explode($chars, $str);\n\t\n\tforeach($r as $k => $v){\n\t\tif($int){\n\t\t\t$r[$k] = (int) trim($v);\t\n\t\t}else{\n\t\t\t$r[$k] = trim($v);\n\t\t}\n\t}\n\t\n\treturn $r;\n\t\n}", "static function readNummer($input)\n\t{\n if(preg_match(self::huis, $input, $matches)) {\n return new Housenumber($matches[1]);\n } elseif(preg_match(self::busn, $input, $matches)) {\n return new Busnumber($matches[1], $matches[2]);\n } elseif(preg_match(self::busl, $input, $matches)) {\n return new Busletter($matches[1], $matches[2]);\n } elseif(preg_match(self::bisn, $input, $matches)) {\n return new Bisnumber($matches[1], $matches[2]);\n } elseif(preg_match(self::bisl, $input, $matches)) {\n return new Bisletter($matches[1], $matches[2]);\n } elseif(preg_match(self::huis_r, $input, $matches)){\n return new HousenumberSequence($matches[1], $matches[2], (((int)$matches[1] - (int)$matches[2])%2 ==0));\n } elseif(preg_match(self::busn_r, $input, $matches)){\n return new BusnumberSequence($matches[1], $matches[2], $matches[3]);\n } elseif(preg_match(self::busl_r, $input, $matches)){\n return new BusletterSequence($matches[1], $matches[2], $matches[3]);\n } elseif(preg_match(self::bisn_r, $input, $matches)){\n return new BisnumberSequence($matches[1], $matches[2], $matches[3]);\n } elseif(preg_match(self::bisl_r, $input, $matches)){\n return new BisletterSequence($matches[1], $matches[2], $matches[3]);\n } else return new ReadException(\"Could not parse/understand\", $input);\n\t}", "function getmixedno($totalchar)\n{\n\t$abc= array(\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\", \"K\", \"L\", \"M\", \"N\", \"P\", \"Q\", \"R\", \"S\", \"T\", \"U\", \"V\", \"W\", \"X\", \"Y\", \"Z\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\");\n\t$mixedno = \"\";\n\tfor($i=1; $i<=$totalchar; $i++)\n\t{\n\t\t$mixedno .= $abc[rand(0,33)];\n\t}\n\treturn $mixedno;\n}", "function hitung($string_data)\n {\n $pattern = \"/[*\\s:\\s%\\s\\-\\s]/\";\n $angka = preg_split($pattern, $string_data);\n $oprt = strpos($string_data, \"+\");\n\n }", "function estEntierPositif($valeur) {\r\n\treturn preg_match(\"/[^0-9]/\", $valeur) == 0;\r\n\t\r\n}", "function fAlfaNum($string) {\r\n $s = preg_replace(\"[^a-zA-Z0-9_]\", \"\", strtr($string, \"áàãâéêíóôõúüçÁÀÃÂÉÊÍÓÔÕÚÜÇ \", \"aaaaeeiooouucAAAAEEIOOOUUC_\"));\r\n $s = strtr($s, \"_\", \"\");\r\n return $s;\r\n }", "function postdigit(string $c, int $n):void{\n global $i, $romanval;\n for($j = 0; $j < $n; $j++){\n $romanval[$i++] = $c;\n }\n}", "function descobrePosicaoCaracter($texto){\n\t$listaCaracteres = array(' ');\n\n\tforeach ($listaCaracteres as $item) {\n\n\t\t$posicao = strrpos($texto, $item);\n\n\t\tif($posicao != false){ //false = nome simples , true = nome composto\n\t\t\treturn $posicao+1;\n\t\t}\n\t}\n}", "function remove_dash_ic($nric) {\n $ic = str_replace(\"-\",\"\",$nric);\n return $ic;\n}", "function validate_phone_num($nr)\n{\n $tel = preg_replace('/\\D+/', '', $nr);\n if (substr($tel, 0, 1) !== '0') {\n $int = substr_replace($tel, \"0\", 0, 0);\n }\n $tel = substr_replace($tel, \" 0 \", 0, 1);\n $tel = wordwrap($tel, 3, ' ', true);\n if (strlen($tel) != 13) {\n $status['sta'] = \"has-warning\";\n $status['err'] = 1;\n $_SESSION['message'] = \"Atentie! Numarul de telefon trebuie sa aiba exact 10 cifre\";\n $_SESSION['status'] = \"warning\";\n $_SESSION['icon'] = \"glyphicon-phone-alt\";\n } else {\n $status['sta'] = \"has-success\";\n $status['err'] = null;\n }\n $status['tel'] = $tel;\n return $status;\n}", "function stringChar($int) {\r\r\n $char = '-';\r\r\n $n = 1;\r\r\n while ($n < $int) {\r\r\n $char .= ' - ';\r\r\n $n++;\r\r\n }\r\r\n\r\r\n return $char;\r\r\n }", "function select_string($n) {\n $string = $this->get_plural_forms();\n $string = str_replace('nplurals',\"\\$total\",$string);\n $string = str_replace(\"n\",$n,$string);\n $string = str_replace('plural',\"\\$plural\",$string);\n\n $total = 0;\n $plural = 0;\n\n eval(\"$string\");\n if ($plural>=$total) $plural = 0;\n return $plural;\n }", "private function convertiInOra($indice) {\r\n $lower_bound = 8; //ora inizio\r\n $upper_bound = 19; //ora fine\r\n \r\n if($indice%2){\r\n $mezzora=\"30\"; \r\n $ora=$lower_bound+(($indice-1)/2);\r\n }\r\n else{\r\n $mezzora=\"00\";\r\n $ora=$lower_bound+($indice/2);\r\n }\r\n \r\n if($ora<10)\r\n $ora=\"0\".$ora;\r\n $stringa=$ora.':'.$mezzora;\r\n return $stringa;\r\n }", "function get_nombrepropio_detexto ($input_texto)\r\n{\r\n\t// inicializacion de variables (aumento un espacio para la ultima palabra)\r\n\t$var_texto = trim($input_texto) . \" \";\r\n\t$var_nombrepropio_texto = \"\";\r\n\r\n\t// verifica que exista un texto para formateas\r\n\tif (strlen(trim($input_texto)) > 0)\r\n\t{\r\n\t\t// recorre el texto buscando espacios y el caracter proximo lo pone en mayuscula\r\n\t\t$var_posi_inic = 0;\r\n\t\t$var_posi_sepa = strpos($var_texto,\" \",$var_posi_inic);\r\n\t\twhile ($var_posi_sepa > 0)\r\n\t\t{\r\n\t\t\t$var_texto_parte = trim(substr($var_texto,$var_posi_inic,$var_posi_sepa-$var_posi_inic));\r\n\t\t\tif (trim($var_texto_parte) != \"\") $var_nombrepropio_texto = $var_nombrepropio_texto . strtoupper(substr($var_texto_parte,0,1)) . strtolower(substr($var_texto_parte,1,strlen($var_texto_parte)-1)) . \" \";\r\n\t\t\t$var_posi_inic = $var_posi_sepa + 1;\r\n\t\t\t$var_posi_sepa = strpos($var_texto,\" \",$var_posi_inic);\r\n\t\t}\r\n\r\n\t\t// elimino los espacios laterales\r\n\t\t$var_nombrepropio_texto = trim($var_nombrepropio_texto);\r\n\t}\r\n\r\n\t// devuelve el texto en formato nombre propio\r\n\treturn $var_nombrepropio_texto;\r\n}", "function strNumValid($val = '',$type = 's', $min_len = 0) {\r\n if(!empty($val)) {\r\n\t\tif(strlen($val)>=$min_len) {\r\n\t\t\tif($type == 'n' && ctype_digit($val)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse if($type == 's' && is_string($val) && !ctype_digit($val)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse return false;\r\n\t\t}\r\n\t}\r\n\treturn false;\r\n}", "function get_index($message){\r\n\tpreg_match('/^\\D*(?=\\d)/', $message, $i);\r\n\treturn isset($i[0]) ? strlen($i[0]) : false;\r\n}", "function string_pattern($number, $position, $offset, $n) {\n if($position == \"top\") {\n $blank_string = $n - 1;\n $string = $number - $blank_string;\n $left_string = blank_string($blank_string);\n return $left_string.strrev(string_execution($string));\n\n } elseif($position == \"bottom\") {\n $blank_string = $n - 1;\n $string = $number - $blank_string;\n $left_string = blank_string($offset - $number);\n $right_string = blank_string($blank_string);\n return $left_string.string_execution($string);\n\n } else {\n $pre_string = $n - 1;\n $after_string = $number - $pre_string;\n $left_string = string_execution($pre_string);\n $right_string = strrev(string_execution($after_string));\n return $left_string.$right_string;\n }\n }", "function validaEntero ($texto) {\n// prueba si la entrada es un entero, sin signo\nreturn preg_match(\"/^[0-9]+$/\", $texto );\n}", "public static function genPhoneFormat($str) { //from 0902244581 to 090-224-xxxx\n $aNumbers = str_split($str);\n\n $result = '';\n $index = 0;\n for ($i = count($aNumbers) - 1; $i >= 0; $i--) {\n $index++;\n\n if ($index <= 4) {\n $result = 'x' . $result;\n if ($index == 4)\n $result = '-' . $result;\n }else {\n $result = $aNumbers[$i] . $result;\n if ($index == 7)\n $result = '-' . $result;\n }\n }\n return $result;\n }", "private function numeric($num) { \n if (strlen($num)) { \n if (!preg_match(\"/^[0-9]+$/\", $num)) { \n $num = 1; \n } else { \n $num = substr($num, 0, 11); \n } \n } else { \n $num = 1; \n } \n return $num; \n }", "function data_sql($data){\n $dia = substr($data, 0, 2);\n $mes = substr($data, 3, 2);\n $ano = substr($data, 6, 4);\n \n if(strlen($data) == 10){\n return $ano.\"-\".$mes.\"-\".$dia;\n }else{\n return NULL;\n }\n}", "public function obtenerLetraNIF($nif)\n\t{\n\t\t$nif = substr($nif, 0, 8);\n\t\treturn substr(\"TRWAGMYFPDXBNJZSQVHLCKE\",strtr($nif,\"XYZ\",\"012\")%23,1);\n\t}", "public function getNumberVoucher(){\n return str_replace('R','G',$this->number);\n }" ]
[ "0.61460227", "0.6073838", "0.59729135", "0.59469014", "0.58450615", "0.5823335", "0.58042073", "0.5799475", "0.57567513", "0.5755917", "0.5717347", "0.56664723", "0.5660881", "0.56582516", "0.5619271", "0.5604708", "0.5577423", "0.5539509", "0.5519369", "0.55184716", "0.5490796", "0.5482049", "0.5462239", "0.54285276", "0.5419872", "0.54154277", "0.5411441", "0.5410465", "0.53955036", "0.53803974", "0.5375534", "0.5363898", "0.53600436", "0.53598124", "0.53545326", "0.53523713", "0.5333474", "0.53258276", "0.53239346", "0.530032", "0.52971447", "0.5293337", "0.52916694", "0.52832186", "0.524715", "0.524477", "0.5233983", "0.5232432", "0.5231662", "0.52226025", "0.5214789", "0.52145135", "0.52031404", "0.5200579", "0.52002025", "0.5189081", "0.51840526", "0.5183395", "0.51801014", "0.5168784", "0.5161191", "0.5161035", "0.5159525", "0.51520723", "0.51430196", "0.51418275", "0.5136885", "0.51313186", "0.5117783", "0.51172256", "0.5116112", "0.5114347", "0.5111724", "0.51101893", "0.5089928", "0.50815475", "0.506169", "0.5059519", "0.50555897", "0.5053383", "0.5051208", "0.50412357", "0.5038824", "0.5037583", "0.5037282", "0.50360954", "0.5033859", "0.50307643", "0.50284624", "0.5018143", "0.5015759", "0.50093603", "0.50083685", "0.5008313", "0.50060123", "0.5000561", "0.4998652", "0.49959335", "0.4988659", "0.4988039", "0.49849543" ]
0.0
-1
Funcion que obtiene los contratos que le intersan a un usuario
public function getNotificationsContracts($contracts, $contractIds, $userId){ $this->loadModel('UserInterestContract'); $interests = $this->UserInterestContract->find('all',array('conditions'=>array('UserInterestContract.users_id'=> $userId,'UserInterestContract.interest_contracts_id'=> $contractIds))); $result = Array(); foreach ($interests as $interest) { $result[] = $this->getContractByIdFromArray($contracts, $interest['UserInterestContract']['interest_contracts_id']); } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function citas_usuariosCitas(){\n \t\n\t\t\t$resultado = array();\n\t\t\n\t\t\t$query = \" SELECT idUsuario, identificacion, nombre, apellido\n\t\t\t\t\t\tFROM tb_usuarios\";\n\t\t\t\t\t\t\n\t\t\t$conexion = parent::conexionCliente();\n\t\t\t\n\t\t\tif($res = $conexion->query($query)){\n\t \n\t /* obtener un array asociativo */\n\t while ($filas = $res->fetch_assoc()) {\n\t $resultado[] = $filas;\n\t }\n\t \n\t /* liberar el conjunto de resultados */\n\t $res->free();\n\t \n\t }\n\t\n\t return $resultado;\n\t\t\t\n }", "public function buscarUsuarios(){\n\t\t}", "public function buscaCvePas(){\n /* Consulta usando ELOQUENT -> Trae al usuario si lo encuentra en la tabla usuarios */\n $usuario = Usuario::where([\n ['cuentaUsuario', $this->cuentaUsuario],\n ['contrasenia', $this->contrasenia]\n ])->first();\n return $usuario;\n }", "function getConversacion($usuario, $otro_usuario) {\n $usuario_ok = trim(filter_var($usuario, FILTER_SANITIZE_STRING));\n $otro_usuario_ok = trim(filter_var($otro_usuario, FILTER_SANITIZE_STRING));\n $link = crearConexion();\n $query = \"SELECT `usu_remitente`, `usu_destinatario`, `texto`, `censurado` FROM `mensaje` WHERE (mensaje.usu_remitente='$usuario_ok' AND mensaje.usu_destinatario='$otro_usuario_ok') OR (mensaje.usu_destinatario='$usuario' AND mensaje.usu_remitente='$otro_usuario') ORDER BY mensaje.fecha_hora ASC\";\n $result = mysqli_query($link, $query);\n cerrarConexion($link);\n $conversaciones = [];\n while ($linea = mysqli_fetch_array($result)) {\n $conversaciones[] = [$linea['usu_remitente'], $linea['texto'], $linea['censurado']];\n }\n return $conversaciones;\n}", "public function getUsuarioCadeco($id_usuario);", "function modeloUserGetAll (){\n // Genero lo datos para la vista que no muestra la contraseña ni los códigos de estado o plan\n // sino su traducción a texto\n $db = AccesoDatos::getModelo();\n $tusuarios = $db->getUsuarios();\n foreach ($tusuarios as $clave=>$user){\n \n $tabla[$user->id]= ['nombre'=>$user->nombre,\n 'correo'=>$user->correo,\n 'plan'=>PLANES[$user->plan],\n 'estado'=>ESTADOS[$user->estado],\n ];\n }\n return $tabla;\n}", "public function consultaCargos() {\n\t\t\treturn $this->entidad->getRepository('\\Entidades\\Expertos\\UsuariosCargo')->findAll();\n\t\t}", "private function consultar_usuario_por_correo() {\n $sentencia = \"select id,nombrecompleto ,correo,token \"\n . \"from usuario u where u.correo ='{$this->referencia_a_buscar}'; \";\n $this->respuesta = $this->obj_master_select->consultar_base($sentencia);\n }", "function listar_contratos(){\n //Consulta\n $sql = \n 'SELECT\n contratos.Pk_Id_Contrato,\n contratos.Numero,\n tbl_terceros.Nombre AS Contratista,\n tbl_terceros.Pk_Id_Terceros,\n tbl_terceros.Documento AS Documento_Contratista,\n tbl_terceros.Telefono AS Telefono_Contratista,\n tbl_terceros.Direccion AS Direccion_Contratista,\n contratos.Objeto,\n contratos.Lugar,\n tbl_estados.Pk_Id_Estado,\n tbl_estados.Estado,\n contratos.Valor_Inicial,\n contratos.Fecha_Inicial,\n contratos.Plazo,\n contratos.Acta_Inicio,\n contratos.Fecha_Acta_Inicio\n FROM\n contratos\n LEFT JOIN tbl_estados ON (contratos.Fk_Id_Estado = tbl_estados.Pk_Id_Estado)\n LEFT JOIN tbl_terceros ON tbl_terceros.Pk_Id_Terceros = contratos.Fk_Id_Terceros\n WHERE\n tbl_estados.Pk_Id_Estado = 2\n AND contratos.Fk_Id_Proyecto = '.$this->session->userdata('Fk_Id_Proyecto');\n \n //Se retorna la consulta\n return $this->db->query($sql)->result(); \n }", "function identificar($usuario,$clave)\n\t\t{\n\t\t\t$clave = md5($clave); // Encriptar la variable para consultar en la base de datos.\n\t\t\t$model = new Crud;\n\t\t\t// Se realizan las consultas Multiples JOIN.\n\t\t\t$model->select = \"nombre,usuario,clave,privilegio\";\n\t\t\t$model->from = 't_permisos';\n\t\t\t$model->condition = \"usuario='$usuario' AND clave='$clave'\";\n\t\t\t$model->orderby = '';\n\t\t\t$model->Read();\n\t\t\t$filas = $model->rows;\n\t\t\t$total = count($filas);\n\t\t\t\n\t\t\tif ($total > 0)\n\t\t\t{\n\t\t\t\tforeach ($filas as $fila)\n\t\t\t\t{\n\t\t\t\t\t$r = array(\n\t\t\t\t\t\t0 =>$fila['nombre'],\n\t\t\t\t\t\t1 =>$fila['usuario'],\n\t\t\t\t\t\t2 =>$fila['clave'],\n\t\t\t\t\t\t3 =>$fila['privilegio'],\n\t\t\t\t\t\t);\n\t\t\t\t};\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$r[0] = 0;\n\t\t\t}\n\t\t\treturn $r;\n\n\t\t}", "public function getConversaciones()\n {\n $connection = Yii::$app->getDb();\n $command = $connection->createCommand(\"\n select user_id, last_message, username from (select user_id, max(created_at) as last_message\n from ((select user_id, created_at from messages where receptor_id=$this->id)\n union (select receptor_id, created_at from messages where user_id=$this->id))\n as foo group by user_id) as f join public.user on f.user_id=public.user.id\n order by last_message desc;\");\n\n return $command->queryAll();\n }", "public function usuarios()\n {\n \treturn $this->hasMany(reciclausers::class, 'perfilId', 'id');\n \t// nombre del modelo con el que se relaciona, llave foranea, llave de la tabla.\n }", "function __obtenerCorreoReferente($encryptedID = null) {\n\t\t//\n\t\t//$totalUsuarios = $this->User->find('first', array('conditions' => array()));\n\t\t$max_id = $this -> User -> find('first', array('fields' => array('MAX(User.id) as user_id')));\n\t\t$usuario = null;\n\t\tfor ($id = 1; $id <= $max_id; $id++) {\n\t\t\tif ($encryptedID == crypt($id, \"23()23*$%g4F^aN!^^%\")) {\n\t\t\t\t// Las ID son iguales, abonar por recomendacion\n\t\t\t\t//\n\t\t\t\t$usuario = $this -> User -> read(null, $id);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// Seguir buscando\n\t\t\t\t//\n\t\t\t}\n\t\t}\n\t\treturn $usuario['User']['email'];\n\t}", "public function comboContrato($idCliente, $tipo, $isContagemAuditoria = NULL) {\n $arrRetorno = array();\n //pega o id empresa caso seja uma contagem de auditoria\n $idEmpresa = getIdEmpresa();\n //verifica antes se eh uma contagem de auditoria\n if ($isContagemAuditoria) {\n $sql = \"SELECT con.id, con.id_cliente, con.numero, con.ano, con.uf, con.tipo, emp.sigla, cli.id_fornecedor FROM $this->table con, cliente cli, empresa emp \"\n . \"WHERE con.is_ativo IN (0, 1) AND \"\n . \"con.id_cliente = cli.id AND \"\n . \"cli.id_empresa = emp.id AND \"\n . \"emp.id = $idEmpresa \"\n . \" ORDER BY sigla ASC, id_fornecedor DESC\";\n } else {\n if ($tipo == '01') {\n $sql = \"SELECT id, id_cliente, numero, uf, ano, tipo, '-' AS sigla FROM $this->table WHERE is_ativo IN (0, 1) AND id_cliente = $idCliente ORDER BY id ASC\";\n } else {\n $sql = \"SELECT id, id_cliente, numero, uf, ano, tipo, '-' AS sigla FROM $this->table WHERE is_ativo = 1 AND id_cliente = $idCliente ORDER BY id ASC\";\n }\n }\n $stm = DB::prepare($sql);\n $stm->execute();\n //loop dos contratos\n $ret = $stm->fetchAll(PDO::FETCH_ASSOC);\n //sempre com um item vazio para nao dar erro no script\n $arrRetorno[] = array(\n 'id' => 0,\n 'numeroAno' => 'Selecione um contrato',\n 'tipo' => '',\n 'sigla' => '');\n if ($isContagemAuditoria) {\n foreach ($ret as $linha) {\n if ($linha['id_fornecedor'] > 0) {\n $sql = \"SELECT id, sigla, tipo FROM fornecedor WHERE id = :idFornecedor\";\n $stmSigla = DB::prepare($sql);\n $stmSigla->bindParam(':idFornecedor', $linha['id_fornecedor']);\n $stmSigla->execute();\n $siglaFornecedor = $stmSigla->fetch(PDO::FETCH_ASSOC);\n //apenas fornecedores, retirar turmas daqui\n if (!$siglaFornecedor['tipo']) {\n $arrRetorno[] = array('id' => $linha['id'],\n 'numeroAno' => ' [ ' . strtoupper($linha['uf']) . ' ] ' . $linha['numero'] . '/' . $linha['ano'],\n 'tipo' => '[ ' . $linha['tipo'] . ' ]',\n 'sigla' => '[ ' . $linha['tipo'] . ' ] ' . $linha['sigla'] . ' &laquo; ' . $siglaFornecedor['sigla'] . ' &raquo; ');\n }\n } else {\n $arrRetorno[] = array('id' => $linha['id'],\n 'numeroAno' => ' [ ' . strtoupper($linha['uf']) . ' ] ' . $linha['numero'] . '/' . $linha['ano'],\n 'tipo' => '[ ' . $linha['tipo'] . ' ]',\n 'sigla' => '[ ' . $linha['tipo'] . ' ] ' . $linha['sigla'] . ' . ');\n }\n }\n return $arrRetorno;\n } else {\n foreach ($ret as $linha) {\n $arrRetorno[] = array('id' => $linha['id'],\n 'numeroAno' => ' [ ' . strtoupper($linha['uf']) . ' ] ' . $linha['numero'] . '/' . $linha['ano'],\n 'tipo' => '[ ' . $linha['tipo'] . ' ]',\n 'sigla' => '[ ' . $linha['tipo'] . ' ] ' . $linha['sigla']);\n }\n return $arrRetorno;\n }\n }", "public function selecionarEmpresaContratada()\n {\n try\n {\n $sql = \"SELECT * FROM empresa_contratada\";\n $busca = $this->conexao->conectar()->prepare($sql);\n $busca->execute();\n return $busca->fetchALL(PDO::FETCH_OBJ);\n }\n catch(PDOException $erro)\n {\n echo \"Erro\" . $erro->getMessage();\n }\n\n }", "public function obtener_consultores_co_usuario($co_usuario)\n {\n \t$query = $this->query_consultores_co_usuario($co_usuario);\n\n\t\tif($query)\n\t\t{\n\t\t\treturn formatear_respuesta($query, 'Consultores por co_usuario', 200);\n\n\t\t}else{\n\n\t\t\treturn formatear_respuesta('No se pudo obtener la lista de consultores', 404);\n\t\t}\n }", "function usuario($listaNombres, $listaPasswords, $nombre, $passwords) {\n $encontrado = -3;\n $claveNombre = -1;\n $clavePassword = -2;\n foreach ($listaNombres as $clave => $valor) {\n if ($valor === $nombre) {\n //el nombre es igual al que se pasa del formulario\n $claveNombre = $clave;\n foreach ($listaPasswords as $claveC => $valorC) {\n //la contraseña es igual a la del formulario\n if ($valorC === $passwords) {\n $clavePassword = $claveC;\n if ($clavePassword === $claveNombre) {\n //comprobamos si es el nombre y la contraseña pertenecen a la misma persona\n $encontrado = $clavePassword;\n }\n }\n }\n }\n }\n return $encontrado;\n}", "public function usuariosActivos(){\n\t\t\n\t\t$resultado = array();\n\t\t\n\t\t$query = \"SELECT idUsuario, identificacion, nombre, apellido FROM tb_usuarios WHERE estado = 'A' AND agenda = 'Si'\";\n\t\t\n\t\t$conexion = parent::conexionCliente();\n\t\t\n \tif($res = $conexion->query($query)){\n \n /* obtener un array asociativo */\n while ($filas = $res->fetch_assoc()) {\n $resultado[] = $filas;\n } \n \n }//fin if\n\t\t\n return $resultado;\t\t\t\n\t\t\n\t}", "public function consultarUsuario(){\n //$conexao = $c->conexao();\n\n $sql = \"SELECT c.*, a.permissao FROM tbusuarios c, tbpermissao a where c.idpermissao = a.idpermissao and permissao <> 'SUPER-ADMIN'order by c.nome\";\n $sql = $this->conexao->query($sql);\n\n $dados = array();\n\n while ($row = $sql->fetch_assoc()) {\n $idusuario = $row[\"idusuario\"];\n $nome = $row[\"nome\"];\n $email = $row[\"email\"];\n $dtnascimento = $row[\"dt_nascimento\"];\n $telefone = $row[\"telefone\"];\n $dtnascimento = $row[\"dt_nascimento\"];\n $habilitado = $row[\"habilitado\"];\n $permissao = $row[\"permissao\"]; \n $idpermissao = $row[\"idpermissao\"]; \n\n $dado = array();\n $dado['idusuario'] = $idusuario;\n $dado['nome'] = $nome;\n $dado['email'] = $email;\n $dado['senha'] = $row['senha'];\n $dado['senha_confirma'] = $row['senha_confirma'];\n $dado['idpermissao'] = $idpermissao;\n $dado['permissao'] = $permissao;\n $dado['telefone'] = $telefone;\n $dado['dtnascimento'] = $dtnascimento;\n $dado['habilitado'] = $habilitado; \n $dados[] = $dado;\n }\n\n return $dados;\n\n }", "private function consultar_usuario_todos() {\n $sentencia = \"select id,nombrecompleto ,correo,token from usuario u;\";\n $this->respuesta = $this->obj_master_select->consultar_base($sentencia);\n }", "public function accionesPorControlador(){\n $res = $this->find(\"modulo = '$this->modulo' AND controlador = '$this->controlador' AND accion != ''\",\n 'columns: id,accion');\n return $res;\n }", "function getUsuarios(){\n\t\n\t\treturn conectar()->query( \"SELECT * FROM usuarios\");\n\t}", "private function usuarios(){\n\t\tif ($_SERVER['REQUEST_METHOD'] != \"GET\") {\n\t\t\t# no se envian los usuarios, se envia un error\n\t\t\t$this->mostrarRespuesta($this->convertirJson($this->devolverError(1)), 405);\n\t\t}//es una petición GET\n\t\t//se realiza la consulta a la bd\n\t\t$query = $this->_conn->query(\n\t\t\t\"SELECT id, nombre, email \n\t\t\t FROM usuario\");\n\t\t//cantidad de usuarios\n\t\t$filas = $query->fetchAll(PDO::FETCH_ASSOC); \n \t$num = count($filas);\n \t//si devolvio un resultado, se envia al cliente\n \tif ($num > 0) { \n\t $respuesta['estado'] = 'correcto'; \n\t $respuesta['usuarios'] = $filas; \n\t $this->mostrarRespuesta($this->convertirJson($respuesta), 200); \n\t } //se envia un error \n\t $this->mostrarRespuesta($this->devolverError(2), 204);\n\t}", "public function listarContratoUser(){\n \n $model = new ContratoModel();\n \n if($model->getContratoUserModel($_POST[\"id\"])){\n \n \techo json_encode($model->getContratoUserModel($_POST[\"id\"]));\n \t\n \t}else{\n \t\n \t$retorno = array(\"retorno\" =>\"NO\");\n \t\n \t\techo json_encode($retorno);\n \t}\n \t\n \n }", "public function EncargarTransResponsable(){\n $conn = new conexion();\n $user = null;\n try {\n if($conn->conectar()){\n $str_sql = \"SELECT usuarios.nom_usu,usuarios.id_usu from usuarios \"\n . \"WHERE usuarios.id_tp_usu = 2 and usuarios.estado = 'Activo' or usuarios.id_tp_usu = 4 and usuarios.estado = 'Activo'\";\n $sql = $conn->getConn()->prepare($str_sql);\n $sql->execute();\n $resultado = $sql->fetchAll();\n foreach ($resultado as $row){\n $user[] = array(\n \"Nom_usu\" => $row['nom_usu'],\n \"Id_usu\" => $row['id_usu']\n );\n }\n }\n } catch (Exception $exc) {\n echo $exc->getTraceAsString();\n }\n $conn->desconectar();\n return $user;\n }", "public function get_usuario_por_id_compras($id_usuario)\n {\n\n\n $conectar = parent::conexion();\n parent::set_names();\n\n\n $sql = \"select u.id_usuario,c.id_usuario\n \n from usuarios u \n \n INNER JOIN compras c ON u.id_usuario=c.id_usuario\n\n\n where u.id_usuario=?\n\n \";\n\n $sql = $conectar->prepare($sql);\n $sql->bindValue(1, $id_usuario);\n $sql->execute();\n\n return $resultado = $sql->fetchAll(PDO::FETCH_ASSOC);\n }", "public function getIdContrato()\n {\n return $this->id_contrato;\n }", "public function usuarios()\n {\n $parametros = Input::only('term');\n\n $data = SisUsuario::with(\"SisUsuariosGrupos\", \"SisUsuariosContactos\")->where(function($query) use ($parametros) {\n $query->where('nombre','LIKE',\"%\".$parametros['term'].\"%\")\n ->orWhere('email','LIKE',\"%\".$parametros['term'].\"%\");\n });\n\n $data = $data->get();\n return $this->respuestaVerTodo($data);\n }", "public function usuarioRoles($usuario);", "private function query_consultores(){\n\n \t$respuesta = false;\n\n\t\ttry {\n\n\t\t\t$this->db->select('cao_usuario.co_usuario');\n\t\t\t$this->db->select('cao_usuario.no_usuario');\n\t\t\t$this->db->select('cao_usuario.no_email');\t\n\t\t\t$this->db->from('cao_usuario');\n\t\t\t$this->db->join('permissao_sistema', 'permissao_sistema.co_usuario = cao_usuario.co_usuario');\n\t\t\t$this->db->where('cao_usuario.co_usuario is NOT NULL', NULL, FALSE);\n\t\t\t$this->db->where('permissao_sistema.co_sistema',$this->_co_sistema);\n\t\t\t$this->db->where('permissao_sistema.in_ativo',$this->_in_ativo);\n\t\t\t$this->db->where_in('permissao_sistema.co_tipo_usuario', $this->_co_tipo_usuario);\n\t\t\t$this->db->order_by(\"cao_usuario.co_usuario\", \"asc\");\t\t\t\n\n\t\t\t$query = $this->db->get();\n\n\t\t if ($query && $query->num_rows() > 0)\n\t\t {\n\t\t\t\t$respuesta = $query->result_array();\n\n\t\t }else{\n\n\t\t throw new Exception('Error al intentar listar todos los consultores');\n\t\t\t log_message('error', 'Error al intentar listar todos los consultores');\t\t \n\n\t\t $respuesta = false;\t\t\t\t\n\t\t\t}\n\n\t\t} catch (Exception $e) {\n\n\t\t\t$respuesta = false;\n\t\t}\t\t\t\n\n\t\treturn $respuesta;\n }", "public function cuposliquidacionAction()\n {\n $em = $this->getDoctrine()->getManager(\"ms_haberes_web\");\n\n\n // Tomo la dependencia actual\n if ($this->getUser()->multidep_multi){\n $usuarioDependencia = $this->getUser()->multidep_actual_codigo;\n } else {\n $usuarioDependencia = $this->getUser()->IdEstablecimiento;\n }\n\n //Seguridad\n $securityContext = $this->get('security.context');\n\n\n /*if (false === $this->get('security.context')->isGranted('ROLE_ADMIN')) {\n throw new AccessDeniedException();\n }*/\n\n $cadRoles = '';\n $permisosCuentas = '';\n $lstRoles = $securityContext->getToken()->getUser()->getRoles();\n\n\n\n foreach ($lstRoles as $value) {\n //die(var_dump($value.'cristian'));\n switch ($value) {\n case ('ROLE_1'):\n $cadRoles .= \"1,\";\n //break;\n case ('ROLE_2'):\n $cadRoles .= \"2,\";\n //break;;\n case ('ROLE_3'):\n $cadRoles .= \"1,\";\n //break;\n case ('ROLE_4'):\n $cadRoles .= \"2,3,\";\n //break;\n case ('ROLE_5'):\n $cadRoles .= \"18,19,\";\n //break;\n case ('ROLE_6'):\n $cadRoles .= \"5,6,7,8,9,10,11,12,13,14,15,16,17,\";\n //break;\n case ('ROLE_7'):\n $cadRoles .= \"20,21,\";\n //break;\n case ('ROLE_8'):\n $cadRoles .= \"22,23,\";\n //break;\n case ('ROLE_9'):\n $cadRoles .= \"1,\";\n //break;\n case ('ROLE_10'):\n $cadRoles .= \"2,3,\";\n //break;\n case ('ROLE_11'):\n $cadRoles .= \"18,19,\";\n //break;\n case ('ROLE_12'):\n $cadRoles .= \"5,6,7,8,9,10,11,12,13,14,15,16,17,\";\n break;\n case ('ROLE_13'):\n $cadRoles .= \"20,21,\";\n //break;\n case ('ROLE_14'):\n $cadRoles .= \"22,23,\";\n //break;\n\t\t\t\tcase ('ROLE_20'):\n $cadRoles .= \"24,25,\";\n case ('ROLE_22'):\n $cadRoles .= \"26,27,\";\n //break;\n default:\n break;\n }\n\n }\n\n $where = \"\";\n if ($cadRoles == '') {\n\n $sql = \"select ca.id, c.anio,(RIGHT('00' + convert(varchar(2),c.mes),2)) as mes,c.monto,e.cupoEstado,(RIGHT('0000' + convert(varchar(4),d.iddependencia),4) + '-' + d.dependencia) as codigo,cc.cuenta,ca.adicional,a.descripcion,fec.fechaHasta,fec.fechaDesde\n FROM LiquidacionesWeb.dbo.CuposHATiposLiquidacion ca\n inner join LiquidacionesWeb.dbo.cupos c on c.id = ca.refcupo\n inner join LiquidacionesWeb.dbo.cuposanuales a on a.id = c.refcupoanual\n inner join Haberes.general.HADependencias d on c.iddependencia = d.iddependencia\n inner join LiquidacionesWeb.dbo.cupoestados e on e.id = c.refcupoestado\n inner join LiquidacionesWeb.dbo.Cuentas cc on cc.id = ca.refcuenta and cc.id in (6,7,8,9,10,11,15,16,17,21,22,23,24,25,26)\n left join LiquidacionesWeb.dbo.FechaCierre fec\n on fec.refCupo = c.id\n where convert(date, convert(varchar,c.mes) + '/01' + '/' + convert(varchar,c.anio)) > DATEADD(MM, -5, getdate())\";\n\n $connection = $this -> getDoctrine()\n -> getManager(\"ms_haberes_web\")\n -> getConnection();\n\n $entities = $connection -> prepare($sql);\n\n $entities -> execute();\n } else {\n //die(var_dump($cadRoles));\n $permisosCuentas = ' and cc.id in ('.substr($cadRoles,0,strlen($cadRoles)-1).')';\n if ((true === $securityContext->isGranted('ROLE_1')) || (true === $securityContext->isGranted('ROLE_2')) || (true === $securityContext->isGranted('ROLE_15')) || (true === $securityContext->isGranted('ROLE_16')) || (true === $securityContext->isGranted('ROLE_17')) || (true === $securityContext->isGranted('ROLE_18'))) {\n\n $sql = \"select ca.id, c.anio,(RIGHT('00' + convert(varchar(2),c.mes),2)) as mes,c.monto,e.cupoEstado,(RIGHT('0000' + convert(varchar(4),d.iddependencia),4) + '-' + d.dependencia) as codigo,cc.cuenta,ca.adicional,a.descripcion,fec.fechaHasta,fec.fechaDesde\n FROM LiquidacionesWeb.dbo.CuposHATiposLiquidacion ca\n inner join LiquidacionesWeb.dbo.cupos c on c.id = ca.refcupo\n inner join LiquidacionesWeb.dbo.cuposanuales a on a.id = c.refcupoanual\n inner join Haberes.general.HADependencias d on c.iddependencia = d.iddependencia\n inner join LiquidacionesWeb.dbo.cupoestados e on e.id = c.refcupoestado\n inner join LiquidacionesWeb.dbo.Cuentas cc on cc.id = ca.refcuenta and cc.id in (6,7,8,9,10,11,15,16,17,21,22,23,24,25,26,27)\n left join LiquidacionesWeb.dbo.FechaCierre fec\n on fec.refCupo = c.id\n WHERE d.iddependencia = '\".$usuarioDependencia.\"' and convert(date, convert(varchar,c.mes) + '/01' + '/' + convert(varchar,c.anio)) > DATEADD(MM, -5, getdate())\";\n\n $connection = $this -> getDoctrine()\n -> getManager(\"ms_haberes_web\")\n -> getConnection();\n\n $entities = $connection -> prepare($sql);\n\n $entities -> execute();\n\n } else {\n\n $sql = \"select ca.id, c.anio,c.mes,c.monto,e.cupoEstado,(RIGHT('0000' + convert(varchar(4),d.iddependencia),4) + '-' + d.dependencia) as codigo,cc.cuenta,ca.adicional,a.descripcion,fec.fechaHasta,fec.fechaDesde\n FROM LiquidacionesWeb.dbo.CuposHATiposLiquidacion ca\n inner join LiquidacionesWeb.dbo.cupos c on c.id = ca.refcupo\n inner join LiquidacionesWeb.dbo.cuposanuales a on a.id = c.refcupoanual\n inner join Haberes.general.HADependencias d on c.iddependencia = d.iddependencia\n inner join LiquidacionesWeb.dbo.cupoestados e on e.id = c.refcupoestado\n inner join LiquidacionesWeb.dbo.Cuentas cc on cc.id = ca.refcuenta and cc.id in (6,7,8,9,10,11,15,16,17,21,22,23,24,25,26,27)\n left join LiquidacionesWeb.dbo.FechaCierre fec\n on fec.refCupo = c.id\n WHERE convert(date, convert(varchar,c.mes) + '/01' + '/' + convert(varchar,c.anio)) > DATEADD(MM, -5, getdate()) and d.iddependencia = '\".$usuarioDependencia.\"'\".$permisosCuentas;\n\n $connection = $this -> getDoctrine()\n -> getManager(\"ms_haberes_web\")\n -> getConnection();\n\n $entities = $connection -> prepare($sql);\n\n $entities -> execute();\n\n\n }\n }\n\n\n if (($securityContext->isGranted('ROLE_2')) || ($securityContext->isGranted('ROLE_9')) ||\n ($securityContext->isGranted('ROLE_10')) || ($securityContext->isGranted('ROLE_11')) ||\n ($securityContext->isGranted('ROLE_12')) || ($securityContext->isGranted('ROLE_13')) ||\n ($securityContext->isGranted('ROLE_20')) || ($securityContext->isGranted('ROLE_14'))) {\n $puedeCargar = 1;\n } else {\n $puedeCargar = 0;\n }\n\n if ($securityContext->isGranted('ROLE_18')) {\n $puedeAutorizar = 1;\n } else {\n $puedeAutorizar = 0;\n }\n\n return array(\n 'entities' => $entities,\n 'pagina'=>0,\n 'usuaCarga'=>0,\n 'usuaAutoriza'=>0,\n );\n }", "public function traerNombreDeUsuarios(){\n $todosLosUsuarios = $this->buscarUsuarios();\n $ultimoId = $this->obtenerUltimoId();\n $nombres = [];\n $nombres['usuarios'] = array_map(function($item){\n return $item['nombre'];\n }, $todosLosUsuarios);\n //unset($nombres['usuarios'][0]);\n return $nombres;\n }", "function showCustomers($con) {\n\t\ttry {\n\t\t\t$stm = $con->prepare(\"SELECT * FROM usuarios WHERE rol = 'cliente'\");\n\t\t\t$stm->execute();\n\t\t\treturn $stm->fetchAll();\t\t\t\n\t\t} catch (PDOException $e) {\n\t\t\techo $e->getMessage();\t\n\t\t}\n\t}", "public function login($user, $clave)\n {\n parent::conectar();\n\n \n\n // El metodo salvar sirve para escapar cualquier comillas doble o simple y otros caracteres que pueden vulnerar nuestra consulta SQL\n $user = parent::salvar($user);\n $clave = parent::salvar($clave);\n\n // Si necesitas filtrar las mayusculas y los acentos habilita las lineas 36 y 37 recuerda que en la base de datos debe estar filtrado tambien para una \n \n\t$consulta = 'select id, nombre, cargo from usuarios where email=\"'.$user.'\" and clave= MD5(\"'.$clave.'\")\n\t UNION SELECT codpaci, nombrep, cargo from customers where email =\"'.$user.'\" and clave= MD5(\"'.$clave.'\")';\n\t \n\t \n /*\n Verificamos si el usuario existe, la funcion verificarRegistros\n retorna el número de filas afectadas, en otras palabras si el\n usuario existe retornara 1 de lo contrario retornara 0\n */\n\n $verificar_usuario = parent::verificarRegistros($consulta);\n\n // si la consulta es mayor a 0 el usuario existe\n if($verificar_usuario > 0){\n\n \n\n /*\n Realizamos la misma consulta de la linea 55 pero esta ves transformaremos el resultado en un arreglo,\n ten mucho cuidado con usar el metodo consultaArreglo ya que devuelve un arreglo de la primera fila encontrada\n es decir, como nosotros solo validamos a un usuario no hay problema pero esta funcion no funciona si\n vas a listar a los usuarios, espero que me entiendan xd\n */\n\n $user = parent::consultaArreglo($consulta);\n\n /*\n Bien espero ser un poco claro en esta parte, la variable user\n en la linea 69 pasa a ser un arreglo con los campos consultados en la linea\n 48, entonces para acceder a los datos utilizamos $user[nombre_del_campo] Ok?\n bueno hagamos el ejercicio.\n */\n\n /*\n Inicializamos la sessión | Recuerda con las variables de sesión\n podemos acceder a la informacion desde cualquiera pagina siempre y cuando\n exista una sesión y ademas utilicemos el codigo de la linea 84\n */\n\n session_start();\n\n /*\n Las variables de sesion son muy faciles de usar, es como\n declarar una variable, lo unico diferente es que obligatoria mente\n debes usar $_SESSION[] y .... el nombre de la variable ya no sera asi\n $miVariable sino entre comillas dentro del arreglo de sesion, haber me\n dejo explicar, $_SESSION['miVariable'], recuerda que como declares la variable\n en este archivo asi mismo lo llamaras en los demas.\n */\n\n $_SESSION['id'] = $user['id'];\n $_SESSION['nombre'] = $user['nombre'];\n $_SESSION['cargo'] = $user['cargo'];\n\n /*\n Que porqué almacenamos cargo? es encillo en nuestros proyectos\n pueden existir archivos que solo puede ver un usuario con el cargo de\n administrador y no un usuario estandar, asi que la variable global de\n sesion nos ayudara a verificar el cargo del usuario que ha iniciado sesion\n Ok?\n */\n\n /*\n Recuerda:\n cargo con valor: 1 es: Administrador\n cargo con valor: 2 es: usuario estandar\n puedes agregar cuantos cargos desees, en este ejemplo solo uso 2\n */\n\n // Verificamos que cargo tiene l usuario y asi mismo dar la respuesta a ajax para que redireccione\n if($_SESSION['cargo'] == 1){\n echo 'view/admin/admin.php';\n }else if($_SESSION['cargo'] == 2){\n echo 'view/user/user.php';\n }\n\n\n // u.u finalizamos aqui :v\n\n }else{\n // El usuario y la clave son incorrectos\n echo 'error_3';\n }\n\n\n # Cerramos la conexion\n parent::cerrar();\n }", "function listar_usuarios(){\n //Se filtran solo id los diferentes \n $this->db->distinct();\n\n //Se seleccionan las columnas\n $this->db->select('Fk_Id_Usuario');\n $this->db->select('Nombres');\n $this->db->select('Apellidos');\n $this->db->order_by('Nombres', 'asc');\n \n $this->db->from('contratos');\n $this->db->join('tbl_usuarios', 'contratos.Fk_Id_Usuario = tbl_usuarios.Pk_Id_Usuario');\n return $this->db->get()->result();\n }", "public function ObtenerRolesUsuario($idUsuario)\r\n {\r\n return Rol_Por_Usuario::where('user_id','=',$idUsuario)->get();\r\n }", "public function listarTransitoCorreo(){\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\t$sql_1 = \"\tSELECT\t[tramseg_id],[tram_nro_doc],[tram_fec_reg],[tram_fec_doc],[seg_fecha_transito],\n\t\t\t\t\t\t\t\tDATEDIFF(day, [tram_fec_reg], getdate()) AS [Dias],\n\t\t\t\t\t\t\t\t[seg_empRemitente_id],[seg_contacRemitente_id],\n\t\t\t\t\t\t\t\t[empR].[emp_razonsocial]+' - '+[conR].[contac_nombre] AS [NombreRemitente],\n\t\t\t\t\t\t\t\t[empseg_id],[contacseg_id],\n\t\t\t\t\t\t\t\t[empD].[emp_razonsocial]+' - '+[conD].[contac_nombre] AS [NombreDestinatario],\n\t\t\t\t\t\t\t\t[tram_asunto],UPPER([tram_estado]) AS [tram_estado], [tram_estado_fecha],\n\t\t\t\t\t\t\t\t[seg_correo]\n\t\t\t\t\t\tFROM\t[db_std].[SeguimientoDocumentario] seg\n\t\t\t\t\t\tINNER\tJOIN [db_std].[TramiteDocumentario] tram ON [tram].[tram_id]=[seg].[tramseg_id]\n\t\t\t\t\t\tleft\tJOIN [db_std].[Empresa] empR ON [seg].[seg_empRemitente_id] = [empR].[emp_id]\n\t\t\t\t\t\tLEFT\tJOIN [db_std].[Contacto] conR ON [seg].[seg_contacRemitente_id] = [conR].[contac_id]\n\t\t\t\t\t\tleft\tJOIN [db_std].[Empresa] empD ON [seg].[empseg_id] = [empD].[emp_id]\n\t\t\t\t\t\tLEFT\tJOIN [db_std].[Contacto] conD ON [seg].[contacseg_id] = [conD].[contac_id]\n\t\t\t\t\t\tWHERE\t[seg_estado]='transito'\";\n\t\t\t\t\t\t\t\n\t\t\t$result = $this->database_tramite->Consultar($sql_1);\n\t\t\treturn $result;\n\t\t}catch(Exception $e){\n throw $e;\n\t\t}\n\t}", "function leerCreditos(){\n \n try{\n $stmt = $this->dbh->prepare(\"SELECT c.idcredito, t.NombreCte,c.tipoContrato, c.montoTotal, c.plazo,c.mensualidad, c.interes,\"\n . \" c.metodoPago, c.observaciones, c.status FROM tarjetas_clientes t join credito c on t.idClienteTg=c.cteId where c.status=1 or c.status=3\");\n // Especificamos el fetch mode antes de llamar a fetch()\n $stmt->execute();\n $clientes = $stmt->fetchAll(PDO::FETCH_NUM);\n } catch (PDOException $e){\n $clientes=array(\"status\"=>\"0\",\"mensaje\"=>$e->getMessage());\n }\n \n return $clientes;\n }", "public function getSeguidoresUser()\n {\n return $this->hasMany(User::className(), ['id' => 'user_id'])->via('seguidores');\n }", "public function Listar()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$result = array();\n\n\t\t\t$stm = $this->pdo->prepare(\"SELECT usuario.`correo`, `usuario`.`clave`, `rol`.`nomRol`, `datospersonales`.`Documento`\nFROM `usuario`\nLEFT JOIN `rol` ON `rol`.`nomRol` = `usuario`.`nomRol` \nLEFT JOIN `datospersonales` ON `datospersonales`.`Documento` = `usuario`.`Documento`\n WHERE correo is not null \");\n\t\t\t$stm->execute();\n\n\t\t\tforeach($stm->fetchAll(PDO::FETCH_OBJ) as $r)\n\t\t\t{\n\t\t\t\t$usu = new Usuario();\n\n\t\t\t\t$usu->__SET('correo', $r->correo);\n\t\t\t\t$usu->__SET('clave', $r->clave);\n\t\t\t\t$usu->__SET('nomRol', $r->nomRol);\n\t\t\t\t$usu->__SET('Documento', $r->Documento);\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t$result[] = $usu;\n\t\t\t}\n\n\t\t\treturn $result;\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\tdie($e->getMessage());\n\t\t}\n\t}", "public function cuenta_comentarios( $user ){\n\t\t// Clean input\n\t\t$user = $this->main->prepare_sql_input( $user );\n\t\t// Prepare query\n\t\t$query =\n\t\t'SELECT t1.UsuarioId,\n\t \t\t\t\tt1.Pendientes,\n\t\t\t\t\t\tt2.Aprobadas,\n\t\t\t\t\t\tt3.Rechazadas\n\t FROM (\n\t\t\tSELECT 1 AS common_key,\n\t\t\t \t\t t.UsuarioId,\n\t\t\t \t\t COUNT(*) AS Pendientes\n FROM Modificacion AS t\n WHERE t.EstdModifId = 1\n AND t.UsuarioId = ?\n\t \t) AS t1\n\t\tJOIN (\n\t\tSELECT 1 AS common_key,\n\t\t\t \t COUNT(*) AS Aprobadas\n FROM Modificacion AS t\n WHERE t.EstdModifId = 2\n AND t.UsuarioId = ?\n\t \t) AS t2\n\t \tJOIN (\n\t\t\t\tSELECT 1 AS common_key,\n\t\t\t \t\t\t COUNT(*) AS Rechazadas\n FROM Modificacion AS t\n WHERE t.EstdModifId = 3\n AND t.UsuarioId = ?\n\t \t) AS t3\n\t \tON t1.common_key = t2.common_key;\n\t\t';\n\t\t//Execute query with security scape variables\n\t\t$result = $this->db->query( $query,array($user,$user,$user) );\n\t\t//Check if user exists and return data\n\t\tif( $result->num_rows() > 0 ){\n\t\t\t$data = $result->row();\n\t\t}\n\t\telse {\n\t\t\t$data = false;\n\t\t}\n\n\t\treturn $data;\n\t}", "public function getComentarios()\n {\n return $this->hasMany(CommentModel::className(), ['createdBy' => 'id'])->inverseOf('usuario');\n }", "private function query_consultores_co_usuario($co_usuario){\n\n \t$respuesta = false;\n\n\t\ttry {\n\n\t\t\t$this->db->select('cao_usuario.co_usuario');\n\t\t\t$this->db->select('cao_usuario.no_usuario');\t\t\t\n\t\t\t$this->db->from('cao_usuario');\n\t\t\t$this->db->where('cao_usuario.co_usuario is NOT NULL', NULL, FALSE);\n\t\t\t$this->db->where_in('cao_usuario.co_usuario', $co_usuario);\t\n\t\t\t$this->db->order_by(\"cao_usuario.co_usuario\", \"asc\");\t\t\t\n\n\t\t\t$query = $this->db->get();\n\n\t\t if ($query && $query->num_rows() > 0)\n\t\t {\n\t\t\t\t$respuesta = $query->result_array();\n\n\t\t }else{\n\n\t\t throw new Exception('Error al intentar listar los consultores por sus co_usuario');\n\t\t\t log_message('error', 'Error al intentar listar los consultores por sus co_usuario');\t\t \n\n\t\t $respuesta = false;\t\t\t\t\n\t\t\t}\n\n\t\t} catch (Exception $e) {\n\n\t\t\t$respuesta = false;\n\t\t}\t\t\t\n\n\t\treturn $respuesta;\n }", "function obtener_Cercas($usuario,$connection){\n\t$query_cercas = \"SELECT id FROM id_cercas WHERE user='$usuario'\";\n\t$resultado1 = $connection->query($query_cercas);\n\t$devuelto = array();\n\twhile ($row1 = $resultado1->fetch_assoc()){\n\t\tforeach($row1 as $row){\n\t\tarray_push($devuelto,$row);\n\t}\n\t}\n\n\treturn($devuelto);\n}", "public function usuarios(){\n \treturn $this->hasMany(PerfilUsuario::class, 'id_perfil', 'id_perfil')->where('bo_activo', true)->where('bo_estado', 1);//->orderBy('email');\n }", "function _ObtenerSecciones()\n\t{\n\t\tinclude_once('../Entidades/Secciones.php');\n\t\t$OBJUsuarios = new Secciones;\n\t\t$secciones=$OBJUsuarios -> ObtenerSeccionesparaCategorias();\n\n\n\t\tif ($secciones>=0) {\n\t\t\t\n\t\t\t$privilegios = $_SESSION['privilegios'];\n\t\t\t\n\t\t\tinclude_once('../ModuloAdministrador/vistas/FormularioCategorias.php');\n\t\t\t$OBJUsuarios = new FormularioCategorias;\n\t\t\t$OBJUsuarios -> MostrarFormularioCategorias($secciones,$privilegios);\n\n\t\t}\n\n\t\telse{\n\n\t\t\t\t $mensaje=\"llame al administrador o contacte a [email protected]\";\n\t\t\t\t include('../includes/FormularioMensaje.php');\n\t\t\t\t $objmen = new FormularioMensaje;\n \t $objmen->MostrarMensajeLogin($mensaje);\n\n\t\t}\n\t}", "function recuperarSeguidosPor($nombre){\n\t\t\t$query= \"select usuario from seguir \n\t\t\twhere seguidor='\".$nombre.\"'\";\n\t\t\t$result = $this->mysqli->query($query);\n\t\t\t$usuarios = Array();\n\t\t\twhile($fila = $result -> fetch_assoc()){\n\t\t\t$usuarioSeguido= $this->recuperarUsuario($fila[\"usuario\"]);\n\t\t\t$usuarios[]=($usuarioSeguido);\n\t\t\t}\n\t\t\treturn $usuarios;\n\t\t}", "public function listar_contratos($id = NULL)\r\n {\r\n $this->db->select('c.*, tc.nome_tipo_contrato, f.nome_fornecedor');\r\n $this->db->from('tbl_contratos c');\r\n $this->db->join('tbl_fornecedor f','f.id_fornecedor=c.id_fornecedor');\r\n $this->db->join('tbl_tipo_contrato tc','tc.id_tipo_contrato=c.id_tipo_contrato');\r\n if($id != null){\r\n $this->db->where('c.id_contrato',$id);\r\n }\r\n $query = $this->db->get();\r\n return $query;\r\n }", "public function listado_co_usuario($co_usuario){\n\n \t$respuesta = false;\n\n\t\tif ($co_usuario && !empty($co_usuario)){\n\t\t\t// lista completa de consultores del sistema \n\t\t\t$consultores = $this->obtener_consultores_co_usuario($co_usuario);\n\n if (isset($consultores) && $consultores['status'] == 200)\n {\n\n \t$listado = array();\n\t\t\tforeach ($consultores['data'] as $indice => $consultor) {\n\t\t\t\tarray_push($listado,$consultor['co_usuario']);\n\t\t\t}\n\t\t\t// solo retorno los consultores solicitados que existen\n\t\t\t$filtrado = array_intersect($listado,$co_usuario);\n }\t\t\n\t\t\t$respuesta = array_values($filtrado);\n\t\t}\n\n \treturn $respuesta;\t\t\n\t}", "public function traer_usuarios()\n {\n $usuarios=array();\n $this->db->select('cedula, nombre, email, celular, empresa, razon_social');\n $this->db->from('usuarios');\n $this->db->join('empresas','usuarios.empresa=empresas.id');\n $query=$this->db->get();\n if($query->num_rows()>0)\n {\n foreach ($query->result() as $row)\n {\n $usuarios[$row->cedula]['cedula']=$row->cedula;\n $usuarios[$row->cedula]['nombre']=$row->nombre;\n $usuarios[$row->cedula]['email']=$row->email;\n $usuarios[$row->cedula]['celular']=$row->celular;\n $usuarios[$row->cedula]['empresa']=$row->empresa;\n $usuarios[$row->cedula]['razon_social']=$row->razon_social;\n }\n }\n \n return $usuarios;\n }", "function ListaUsuario() {\n\t\n\t\t\t$sql = \"SELECT usu.*, CONCAT_WS(' ', per.primer_nombre, per.primer_apellido) as nombre_completo, usu.nombre_usuario, rol.descripcion FROM usuario usu\n\t\t\t\t\tINNER JOIN rol rol ON rol.id = usu.rol_id\n\t\t\t\t\tINNER JOIN persona per ON per.id = usu.persona_id\";\n\t\t\t$db = new conexion();\n\t\t\t$result = $db->consulta($sql);\n\t\t\t$num = $db->encontradas($result);\n\t\t\t$respuesta->datos = [];\n\t\t\t$respuesta->mensaje = \"\";\n\t\t\t$respuesta->codigo = \"\";\n\t\t\tif ($num != 0) {\n\t\t\t\tfor ($i=0; $i < $num; $i++) {\n\t\t\t\t\t$respuesta->datos[] = mysql_fetch_array($result);\n\t\t\t\t}\n\t\t\t\t$respuesta->mensaje = \"Ok\";\n\t\t\t\t$respuesta->codigo = 1;\n\t\t\t} else {\n\t\t\t\t$respuesta->mensaje = \"No existen registros de roles.\";\n\t\t\t\t$respuesta->codigo = 0;\n\t\t\t}\n\t\t\treturn json_encode($respuesta);\n\t\t}", "function SolicitarContrato(){\n $this->procedimiento = 'adq.f_cotizacion_ime';\n $this->transaccion = 'ADQ_SOLCON_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function cumpleanos_usuarios(){\n $date_now = date('m-d');\n $data_usua = $this->usuario_model->getUsuarioAll();\n $data_birthday = array();\n if(isset($data_usua)):\n foreach ($data_usua as $key => $usua):\n $usua_date = date('m-d', strtotime($usua->usua_fecha_nacimiento));\n if($date_now === $usua_date):\n $data_birthday[] = $usua;\n endif;\n endforeach;\n endif;\n\n /* REPORTE NRO. 03 QUE CORRESPONDE A LOS CUMPLEAÑOS DEL PERSONAL */\n $data_rexu = $this->reportexusuario_model->getReportexusuarioAllByREMACOD('03');\n $email_cc = '';\n $email_subject = '';\n $email_descripcion = '';\n if(isset($data_rexu)){\n foreach ($data_rexu as $item => $rexu) {\n $rema_id = $rexu->rema_id;\n $usua_id = $rexu->usua_id;\n $usua_nombre = $rexu->usua_nombre;\n $usua_apellido = $rexu->usua_apellido;\n $usua_email = $rexu->usua_email;\n $rema_titulo = $rexu->rema_titulo;\n $rema_descripcion= $rexu->rema_descripcion;\n if($usua_email != ''){\n $email_cc .= ($email_cc === '') ? $usua_email : ','.$usua_email;\n $email_subject = $rema_titulo;\n $email_descripcion = $rema_descripcion;\n }//end if\n }//end foreach\n }//end if\n\n if($email_cc != '' && count($data_birthday) > 0){\n foreach ($data_birthday as $key => $usua):\n $data_palabras_reservadas = array(\n '[CUMPLEANOS]' => $usua->usua_nombre.' '.$usua->usua_apellido\n );\n $email_to = ($usua->usua_email != '') ? $usua->usua_email : $usua->usua_email_personal;\n $email_message = reemplazar_palabras_reservadas($this, $email_descripcion, $data_palabras_reservadas);\n $mail_request = enviar_email($this, $email_to, $email_subject, $email_message, $email_cc);\n endforeach;\n }//end if\n }", "public function recepcionUsuario($nombre , $password){\n\t\t\t$result_child = $this->_db->query(\"SELECT * FROM usuario WHERE login_usu = '\".$nombre.\"'\");\n\t\t\t$retorna_child = $result_child->fetch_all(MYSQL_ASSOC);\n\n\t\t\t//mensaje por defecto indicando que no se registro\n\t\t\t//genera mensaje para el sistema\n\t\t\t$outp = array('activo'=> \"0\");\n\n\t\t\t//verifica que exista el usuario\n\t\t\tif (!$result_child) {\n \t\t\treturn \"Falló SELECT usuario: (\" . $this->_db->errno . \") \" . $this->_db->error;\n\t\t\t}else{\n\n\t\t\t\tif (count($retorna_child) > 0) {\n\t\t\t\t\t//print_r(count($retorna_child));\n\t\t\t\t\t//busca su grupo de usuario para asignar un rol \n\t\t\t\t\t$result_master = $this->_db->query(\"SELECT * FROM grupousu WHERE idGrupoUsu = '\".$retorna_child[0]['GrupoUsu_idGrupoUsu'].\"'\");\n\t\t\t\t\t$retorna_master = $result_master->fetch_all(MYSQL_ASSOC);\n\n\t\t\t\t\t//verifique que tenga un grupo de usuario\n\t\t\t\t\tif (!$result_child) {\n\t \t\t\t\treturn \"Falló SELECT grupousu: (\" . $this->_db->errno . \") \" . $this->_db->error;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//verifica la contrasena\n\t\t\t\t\t\tif (md5($retorna_child[0]['pass_usu']) == $password) {\n\t\t\t\t\t\t\t//genera mensaje para el sistema\n\t\t\t\t\t\t\t$outp[] = array('idUsuario'=> \"\".$retorna_child[0]['idUsuario'].\"\",\n\t\t\t\t\t\t\t\t\t\t\t'nombres_usu'=> \"\".$retorna_child[0]['nombres_usu'].\"\",\n\t\t\t\t\t\t\t\t\t\t\t'apellidos_usu'=> \"\".$retorna_child[0]['apellidos_usu'].\"\",\n\t\t\t\t\t\t\t\t\t\t\t'GrupoUsu_idGrupoUsu'=> \"\".$retorna_master[0]['idGrupoUsu'].\"\",\n\t\t\t\t\t\t\t\t\t\t\t'idGrupoUsu'=> \"\".$retorna_master[0]['idGrupoUsu'].\"\",\n\t\t\t\t\t\t\t\t\t\t\t'activo'=> \"1\",\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\treturn $outp;\n\t\t\t\t\t\t\t$result_child->close();\n\t\t\t\t\t\t\t$result_master->close();\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//genera mensaje para el sistema\n\t\t\t\t\t\t\t$outp[] = array('activo'=> \"0\"\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t//genera mensaje para el sistema\n\t\t\t\t\t$outp[] = array('activo'=> \"0\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn $outp;\n\t\t\t\n\t\t}", "static public function getUsuario_credencial() {\n try {\n $sql = 'SELECT usuario_credencial.id, usuario_credencial.usuario_id, usuario_credencial.credencial_id FROM usuario_credencial';\n return dataBaseClass::getInstance()->query($sql)->fetchAll(PDO::FETCH_ASSOC);\n } catch (PDOException $e) {\n return $e;\n }\n }", "static public function ctrListarUsuario( ){\n\n\t\treturn ModeloUsuarios::mdlListarUsuario( );\n\n\t}", "public function saveUserContratante()\n {\n\n $data_insert = [\n 'id_user' => $this->_id_user,\n 'id_contratante' => $this->_id_contratante,\n ];\n return parent::save($data_insert);\n }", "public function getCredenciais($usuario = null)\n {\n \t$resultSet = $this->select()\n \t->setIntegrityCheck(false) // allows joins\n \t->from($this->_name)\n \t->joinLeft(\n \t\t\tarray(\n \t\t\t\t\t'parceiros'\t\t=>\t'parceiros'\n \t\t\t),\n \t\t\t'credenciais.parceiro\t=\tparceiros.id',\n \t\t\tarray(\n \t\t\t\t\t'parceiro_nome'\t=>\t'parceiros.nome',\n \t\t\t\t\t'parceiro_url'\t=>\t'parceiros.url_amigavel',\n \t\t\t)\n \t)\n \t->joinLeft(\n \t\t\tarray(\n \t\t\t\t\t'usuarios'\t\t=>\t'usuarios'\n \t\t\t),\n \t\t\t'credenciais.usuario\t=\tusuarios.id',\n \t\t\tarray(\n \t\t\t\t\t'usuario_nome'\t=>\t'usuarios.nome',\n \t\t\t\t\t'usuario_email'\t=>\t'usuarios.email',\n \t\t\t)\n \t)\n \t->order('parceiros.nome')\n \t->order('usuarios.email');\n \n \tif($usuario)\n \t{\n \t\t$resultSet->where('usuarios.id = ?', $usuario);\n \t}\n \n \n \t$credenciais = array();\n \t\n \tforeach($resultSet->query() as $row)\n \t{\n \t\t//print_r($row);\n \t\t\n \t\t$credencial = new Application_Model_Credenciais();\n \t\t$credencial->setOptions($row);\n \n \t\t/*\n \t\t$parceiroTable = new Application_Model_DbTable_Parceiros();\n \t\t$credencial->setParceiroObj($parceiroTable->byId($row['parceiro'], new Application_Model_Parceiro()));\n \t\t\t\n \t\t$usuarioTable = new Application_Model_DbTable_Usuarios();\n \t\t$credencial->setUsuarioObj($usuarioTable->byId($row['usuario'], new Application_Model_Usuario()));\n \t\t*/\n \t\t\t\n \t\t$credenciais[] = $credencial;\n \t}\n \treturn $credenciais;\n }", "public function getContrato_id() {\n return $this->contrato_id;\n }", "function getVentasUsuario(){\n if(isset($_GET['id'])){\n\n // Obtencion del id del usuario\n $idUsuario = $_GET['id'];\n\n // Conexion a la base de datos\n $con = conexion();\n\n // Selecciona todas las ventas del usuario\n $query = \"SELECT * FROM ver_ventas_usuario WHERE usu_id = \".$idUsuario;\n $select = $con -> query($query);\n\n // Validacion de que el usuario tenga boletos comprados\n if($select -> num_rows > 0){\n\n // Creacion de array vacio que contendra todas las compras\n $arrayVentas = array();\n\n // Mientras exista una venta de boletos del usuario crea un array de la seccion y lo\n // agrega a la variable de todas las compras que existen\n while($row = $select -> fetch_assoc()){\n $compra = [\n \"id_venta\" => $row['ven_id'],\n \"estado_de_pago\" => $row['ven_pago_realizado'],\n \"id_seccion\" => $row['sec_id'],\n \"nombre_seccion\" => $row['sec_nombre'],\n \"costo\" => $row['sec_costo'],\n \"id_evento\" => $row['eve_id'],\n \"nombre_evento\" => $row['eve_nombre'],\n \"estado\" => $row['eve_estado'],\n \"ciudad\" => $row['eve_ciudad'],\n \"direccion\" => $row['eve_direccion'],\n \"lugar\" => $row['eve_lugar'],\n \"fecha\" => $row['eve_fecha'],\n \"hora\" => $row['eve_hora'],\n \"foto\" => $row['eve_foto'],\n \"descripcion\" => $row['eve_descripcion'],\n \"nombre_categoria\" => $row['cat_nombre'],\n \"id_usuario\" => $row['usu_id'],\n \"correo_usuario\" => $row['usu_correo'],\n ];\n $arrayVentas[] = $compra;\n }\n\n // Crea el array de respuesta con todas las compras del usuario de la base de datos\n $compras = [\"res\" => \"1\", \"compras\" => $arrayVentas];\n\n // Creacion del JSON, cierre de la conexion a la base de datos e imprime el JSON\n $json = json_encode($compras);\n $con -> close();\n print($json);\n }else{\n // Respuesta en caso de que no contenga boletos comprados el usuario\n $json = json_encode([\"res\" => \"0\", \"msg\" => \"No se encontraron boletos comprados\"]);\n $con->close();\n print($json);\n }\n }else{\n // Respuesta en caso de que la url no contenga el id del usuario\n $json = json_encode([\"res\"=>\"0\", \"msg\"=>\"La operación deseada no existe\"]);\n print($json);\n }\n}", "public function getComentarios($id){\n $query = $this->db->prepare('SELECT c.contenido, c.id_user, c.id_pelicula, c.puntuacion, u.nombre FROM comentario c INNER JOIN user u ON c.id_user=u.id_user AND id_pelicula=?');\n $query->execute(array($id));\n return $query->fetchALL(PDO::FETCH_OBJ);\n }", "public function selecionarEmpresaContratadaWhere($id){\n\t\t\ttry\n {\n $sql = \"SELECT * FROM empresa_contratada WHERE id = ?\";\n $busca = $this->conexao->conectar()->prepare($sql);\n\t\t\t\t$busca->bindParam(1,$id);\n $busca->execute();\n return $busca->fetchALL(PDO::FETCH_OBJ);\n }\n catch(PDOException $erro)\n {\n echo \"Erro\" . $erro->getMessage();\n }\t\n\t\t}", "public function getComentarios($idAnuncio){ \n /*$query = \"SELECT fc.idUser, fc.idComentario, fc.idAnuncio, fc.comentario, fc.idPadre, fc.fecha, fu.nick, fu2.nick nickPadre\n FROM final_comentario fc INNER JOIN final_usuario fu USING(idUser) LEFT JOIN final_usuario fu2 ON(fc.idPadre = fu2.idUser) \n WHERE idAnuncio = '\".$idAnuncio.\"' ORDER BY fecha ASC\"; */\n \n $query = \"SELECT fc.idAnuncio, fc.idComentario, fc.idUser, fu.nick, fc.comentario, fc.idPadre, fc.fecha, aux2.nick nickPadre\n FROM final_comentario fc INNER JOIN final_usuario fu ON(fc.idUser=fu.idUser) LEFT JOIN\n (SELECT aux.idComentario, fu.nick\n FROM (SELECT fc2.idComentario, fc2.idUser FROM final_comentario fc1 INNER JOIN final_comentario fc2 ON (fc1.idPadre=fc2.idComentario)) aux\n INNER JOIN final_usuario fu ON(aux.idUser=fu.idUser)) aux2 ON (fc.idPadre=aux2.idComentario)\n WHERE fc.idAnuncio = '\".$idAnuncio.\"' ORDER BY fc.fecha ASC\";\n \n return $this->con->action($query); \n }", "public function ctrIngresoUsuario(){\n\n\t\tif(isset($_POST[\"user01\"])){\n\n\t\t//\t if(preg_match('/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/', $_POST[\"ingresoEmail\"]) && preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"ingresoPassword\"])){\n\n\t\t\t \t//$encriptar = crypt($_POST[\"ingresoPassword\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n\t\t\t\t$encriptar = crypt($_POST[\"passwords01\"], '$2a$07$asxx54ahjppf17sd87a5a4dDDGsystemdevmybebe$');\n\n\t\t\t \t$tabla = \"genusuario\";\n\t\t\t \t$item = \"usunombre\";\n\t\t\t \t$valor = $_POST[\"user01\"];\n\n\t\t\t \t$respuesta = UserModel::mdlMostrarUsuarios($tabla, $item, $valor);\n\n\t\t\t\t//echo \"<pre>\".print_r($respuesta).\"</pre>\";\n\n\t\t\t \tif($respuesta[\"usunombre\"] == $_POST[\"user01\"] && $respuesta[\"usuclave\"] == $encriptar){\n\n\t\t\t \t\tif($respuesta[\"usuverific\"] == 0){\n\n\t\t\t \t\t\techo'<script>\n\n\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\t\t\t \ttitle: \"¡ERROR!\",\n\t\t\t\t\t\t\t\t \ttext: \"¡El correo electrónico aún no ha sido verificado, por favor revise la bandeja de entrada o la carpeta SPAM de su correo electrónico para verificar la cuenta, o contáctese con nuestro soporte a [email protected]!\",\n\t\t\t\t\t\t\t\t \tshowConfirmButton: true,\n\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\t\t\t\tif(result.value){ \n\t\t\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t</script>';\n\n\t\t\t\t\t\treturn;\n\n\t\t\t \t\t}else{\n\n\t\t\t \t\t\t$_SESSION[\"validarSesion\"] = \"ok\";\n\t\t\t \t\t\t$_SESSION[\"id\"] = $respuesta[\"oid\"];\n\n\t\t\t \t\t\t$ruta = RouteController::ctrRoute();\n\n\t\t\t \t\t\techo '<script>\n\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"'.$ruta.'backoffice\";\t\t\t\t\n\n\t\t\t\t\t\t</script>';\n\n\t\t\t \t\t}\n\n\t\t\t \t}else{\n\n\t\t\t \t\techo'<script>\n\n\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\t\t \ttitle: \"¡ERROR!\",\n\t\t\t\t\t\t\t \ttext: \"¡El email o contraseña no coinciden!\",\n\t\t\t\t\t\t\t \tshowConfirmButton: true,\n\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\t\t\tif(result.value){ \n\t\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t\t } \n\t\t\t\t\t\t});\n\n\t\t\t\t\t</script>';\n\n\t\t\t \t}\n\n\n\t\t/*\t }else{\n\n\t\t\t \techo '<script>\n\n\t\t\t\t\tswal({\n\n\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\ttitle: \"¡CORREGIR!\",\n\t\t\t\t\t\ttext: \"¡No se permiten caracteres especiales en ninguno de los campos!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\n\t\t\t\t\t\t\thistory.back();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\t\n\n\t\t\t\t</script>';\n\n\t\t\t }*/\n\n\t\t}\n\n\t}", "public function get_usuario_por_id_ventas($id_usuario)\n {\n\n\n $conectar = parent::conexion();\n parent::set_names();\n\n\n $sql = \"select u.id_usuario,v.id_usuario\n \n from usuarios u \n \n INNER JOIN ventas v ON u.id_usuario=v.id_usuario\n\n\n where u.id_usuario=?\n\n \";\n\n $sql = $conectar->prepare($sql);\n $sql->bindValue(1, $id_usuario);\n $sql->execute();\n\n return $resultado = $sql->fetchAll(PDO::FETCH_ASSOC);\n }", "function getMisCitas($usuario){\n\t\t\n\t\treturn conectar()->query( \"SELECT hora, fecha, usuario, motivo FROM citas WHERE usuario LIKE '$usuario'\");\t\n\t}", "public static function obtenerTecnicos()\n {\n $consulta = \"SELECT * FROM usuarios WHERE rol=6 ORDER BY id_usuario\";\n try {\n // Preparar sentencia\n $comando = Database::getInstance()->getDb()->prepare($consulta);\n // Ejecutar sentencia preparada\n $comando->execute();\n\n return $comando->fetchAll(PDO::FETCH_ASSOC);\n\n } catch (PDOException $e) {\n return false;\n }\n }", "public function datos_usuario(){\n\t\t$data = json_decode(json_encode($_SESSION['USER']),true);\n\n\t\t$result = $this->_db->query(\"\n\t\tSELECT a.roleid FROM \".DB_PRE.\"role_assignments a, \".DB_PRE.\"context b \n\t\tWHERE a.userid = '$data[id]' AND a.contextid = b.id AND b.instanceid =\".ID_CURSO\n\t\t);\n\n\t\t$rol = 0;\n\t\tif (!$result) {\n\t\t\tprintf(\"Errormessage datos_usuario: %s\\n\", $this->_db->error);\n\t\t}else{\n\t $rol_user = $result->fetch_all(MYSQLI_ASSOC);\n\t if(count($rol_user) > 0){\n\t \t$rol = $rol_user['0']['roleid'];\n\t }\n \t}\n\n\t\t$usuario = array(\n\t\t\t\"id\" => $data['id'],\n\t\t\t\"nombre\" => $data['firstname'],\n\t\t\t\"apellido\" => $data['lastname'],\n\t\t\t\"codigo_estudiante\" => $data['idnumber'],\n\t\t\t\"rol\" => $rol\n\t\t);\n\n\t\t$datos_add = $this->_db->query(\"\n\t\t\tSELECT e.per_aca, b.id_facultad, a.id_programa, e.idnumber as codigo_curso, a.id_genero, a.idnumber\n\t\t\tFROM am_usuario a, am_programa b, \".DB_PRE.\"course e\n\t\t\tWHERE a.id_programa = b.id_programa\n\t\t\tAND e.id = \".ID_CURSO.\"\n\t\t\tAND id_moodle = \".$data['id']\n\t\t\t);\n\n\t\tif (!$datos_add) {\n\t\t\tprintf(\"Errormessage datos_add: %s\\n\", $this->_db->error);\n\t\t}else{\n\t\t\t$row = $datos_add->fetch_all(MYSQLI_ASSOC);\n\t\t\tforeach ($row as $key) {\n\t\t\t\tforeach ($key as $data => $value) {\n\t\t\t\t\t$usuario[$data] = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $usuario;\n\t}", "public function getListContratos($tipo)\r\n {\r\n $sql = \"select a.contractId,a.name,a.activo from contract a \r\n inner join servicio b on a.contractId=b.contractId and b.status='\" . $tipo . \"'\r\n inner join tipoServicio c on b.tipoServicioId=c.tipoServicioId and c.status='1'\r\n where a.customerId='\" . $this->customerId . \"' and a.activo='Si' \r\n group by a.contractId\r\n order by a.name asc \r\n \";\r\n $this->Util()->DB()->setQuery($sql);\r\n $results = $this->Util()->DB()->GetResult();\r\n\r\n return $results;\r\n }", "public function get(){\r\n\r\n \r\n if($this->authUser['ID_PERMISO'] == 1 || $this->authUser['ID_PERMISO'] == 3 )\r\n {\r\n $where = 'where 1=1';\r\n } elseif($this->authUser['ID_PERMISO'] == 4 ) {\r\n\r\n \r\n\r\n $where = \"WHERE c.id_contrato in (select id_contrato from contratos_asignacion where id_area = '\".$this->authUser['ID_AREA'].\"')\";\r\n \r\n } \r\n \r\n \r\n else {\r\n\r\n $where = \"WHERE c.ID_CARGO='\".$this->authUser['ID_CARGO'].\"' \";\r\n\r\n \r\n }\r\n\r\n if ($this->id){\r\n $where .= \" and c.ID_CONTRATO = '\" . $this->id . \"'\";\r\n }\r\n\r\n if ($_GET['rut_proveedor']){\r\n $where .= \" and p.RUT_PROVEEDOR = '\" . $_GET['rut_proveedor'] . \"'\";\r\n }\r\n\r\n if ($_GET['cargos']){\r\n $where .= \" and c.ID_CARGO = '\" . $_GET['cargos'] . \"'\";\r\n }\r\n\r\n if ($_GET['licitacion']){\r\n $where .= \" and c.NRO_LICITACION = '\" . $_GET['licitacion'] . \"'\";\r\n }\r\n\r\n if ($_GET['objeto']){\r\n $where .= \" and c.OBJETO_CONTRATO = '\" . $_GET['objeto'] . \"'\";\r\n }\r\n\r\n if ($_GET['id_mercado_publico']){\r\n $where .= \" and c.ID_MERCADO_PUBLICO = '\" . $_GET['id_mercado_publico'] . \"'\";\r\n }\r\n\r\n //consulta principal\r\n\t\t$consulta = \"\r\n\t\t\tselect \r\n c.*, \r\n saldoContrato(c.ID_CONTRATO) as saldo,\r\n\t\t\t\tp.razon_social,\r\n\t\t\t\td.nombre as nombre_documento,\r\n\t\t\t d.NRO_DOCUMENTO, \r\n\t\t\t\td.tipo_archivo,\r\n d.archivo,\r\n m.nombre as nombre_moneda,\r\n m.equivalencia as equivalencia,\r\n ca.nombre as nombre_cargo,\r\n TOTAL_COMPRAS_CONTRATO(c.id_contrato) AS TOTAL,\r\n u.NOMBRE as USUARIO_CREA,\r\n u2.NOMBRE as USUARIO_ACTUALIZA,\r\n\t\t\t a.AREA as asignado_a\r\n\t\t\tfrom \r\n\t\t\t\tCONTRATOS C LEFT JOIN PROVEEDORES P ON c.rut_proveedor = p.rut_proveedor\r\n\t\t\t\tLEFT JOIN documento_contratos dc on dc.nro_contrato = c.id_contrato\r\n LEFT JOIN documento d on d.nro_documento = dc.nro_documento\r\n LEFT JOIN moneda m on m.codigo = c.id_moneda\r\n LEFT JOIN cargos ca on ca.id_cargo = c.id_cargo\r\n \r\n left join USUARIOS u on u.ID_USUARIO= c.CREADO_POR\r\n left join USUARIOS u2 on u2.ID_USUARIO= c.ACTUALIZADO_POR\r\n left join CONTRATOS_ASIGNACION ca on ca.ID_CONTRATO = c.ID_CONTRATO\r\n left join AREAS a on ca.ID_AREA = a.ID_AREA \r\n \r\n\t\t\t$where\r\n\t\t\tORDER BY\r\n\t\t\t\tc.id_contrato\r\n \";\r\n \r\n \r\n\r\n\t\t//consulta paginada\r\n//\t\t$query = queryPagination($consulta, $this->page);\r\n//\t\t$result = oci_parse($this->pdo, $query);\r\n//\t\toci_execute($result);\r\n//\t\t$listado = queryResultToAssoc($result);\r\n\r\n $listado = queryToArray($consulta,$this->pdo);\r\n\r\n\r\n\r\n\r\n\t\t//se iteran todos los contrtos para añadirles las bitacoras\r\n\t\t$listado = array_map(function ($contrato){\r\n\r\n //consulta para recuperar todos las bitacoras\r\n\t\t\t$query = \"select \r\n\t\t\t\tdocumento.nombre AS DOCUMENTO,\r\n\t\t\t\tbitacora.* \r\n\t\t\tfrom \r\n\t\t\t\tBITACORA LEFT JOIN documento on bitacora.nro_documento = documento.nro_documento\r\n\t\t\twhere \r\n\t\t\t\tID_CONTRATO='{$contrato['ID_CONTRATO']}'\";\r\n $result = oci_parse($this->pdo, $query);\r\n oci_execute($result);\r\n $bitacoras = queryResultToAssoc($result);\r\n\r\n $contrato['BITACORAS'] = $bitacoras;\r\n\r\n\r\n //consulta para recuperar los detalles del contrato\r\n $query = \"select \r\n c.id_contrato, \r\n de.*\r\n \r\n from \r\n CONTRATOS C LEFT JOIN DETALLE_CONTRATO DE ON c.id_contrato = de.id_contrato\r\n where \r\n C.ID_CONTRATO='{$contrato['ID_CONTRATO']}'\";\r\n $result = oci_parse($this->pdo, $query);\r\n oci_execute($result);\r\n $detalles= queryResultToAssoc($result);\r\n\r\n $contrato['DETALLES'] = $detalles;\r\n\r\n $query = \"select * from AREAS where ID_CARGO='{$contrato['ID_CARGO']}'\";\r\n $areas = queryToArray($query,$this->pdo);\r\n\r\n $contrato['AREAS'] = $areas ?? [];\r\n\r\n $query = \"select * from CONTRATOS_ASIGNACION where ID_CONTRATO='{$contrato['ID_CONTRATO']}'\";\r\n $asignado = queryToArray($query,$this->pdo)[0];\r\n\r\n $contrato['ASIGNADO'] = $asignado ? 1 : 0;\r\n\r\n\r\n\r\n return $contrato;\r\n\r\n\t\t},$listado);\r\n\r\n\r\n\t\t//consulta para recuperar cantidad de páginas disponibles\r\n\t\t$result = oci_parse($this->pdo, $consulta);\r\n\t\toci_execute($result);\r\n\t\t$totales = queryResultToAssoc($result);\r\n\r\n\r\n\t\toci_close($this->pdo);\r\n\r\n\t\treturn [\r\n\t\t 'listado' => $listado,\r\n\t\t 'totales' => $totales\r\n ];\r\n\t}", "public function getUsuarios(){\n\t\t$filasPagina = 7;//registros mostrados por página\n\n\t\tif(isset($_GET['pagina'])){//si le pasamos el valor \"pagina\" de la url (si el usuario da click en la paginación)\n\t\t\t\tif($_GET['pagina']==1){\n\t\t\t\t$pagina=1; \n\t\t\t\theader(\"Location: principal.php?c=controlador&a=muestraUsuarios\");\n\t\t\t\t}else{\n\t\t\t\t\t$pagina=$_GET['pagina'];//índice que indica página actual\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$pagina=1;//índice que indica página actual\n\t\t\t}\n\n\t\t\t$empezarDesde = ($pagina-1) * $filasPagina;\n\n\t\t\t$sql = \" SELECT * FROM usuarios \";\n\n\t\t\t$resultado = $this->db->query($sql);\n\n\t\t\t$resultado->execute(array());\n\n\t\t\t$numFilas = $resultado->rowCount();//número de registos totales de la consulta\n\n\t\t\t//ceil — Redondear fracciones hacia arriba\n\t\t\t$totalPaginas = ceil($numFilas / $filasPagina);//calcula cuántas páginas serán en total para mostrar todos los registros\n\n\t\t\t$resultado->closeCursor();\n\n\t\t//------------------------- Consulta para mostrar los resultados ---------------------------\n\n\t\t\t$sql_limite = \" SELECT * FROM usuarios LIMIT $empezarDesde , $filasPagina \";\n\n\t\t\t$resultado = $this->db->query($sql_limite);//ejecutando la consulta con la conexión establecida\n\n\t\t\twhile($row = $resultado->fetch(PDO::FETCH_ASSOC)){\n\t\t\t\t$this->objeto[] = $row;//llenando array con valores de la consulta\n\t\t\t}\n\n\t\treturn $this->objeto;\n\t}", "public function utilisateurListerTous()\n\t{\n\t\t// votre code ici\n\t\treturn Gestion::lister(\"Utilisateur\");//type array\n\t}", "public function listarUsuarios(){\r\n $sql = \"SELECT U.IdUsuario, U.NombreCompleto, U.Usuario, U.Correo, U.Estado, U.IdRol, R.Rol\r\n FROM usuarios AS U\r\n INNER JOIN roles AS R ON U.IdRol = R.IdRol;\";\r\n $tabla = $this->conexion->getTable($sql);\r\n return $tabla;\r\n}", "function listaUtentiScuola($passordIsNull = FALSE, $userNotVisible = FALSE) {\n if ($this->connectToMySql()) {\n $query = \"SELECT id_utente , cognome , nome , email , password ,\n user_is_admin FROM scuola.utenti_scuola \";\n if ($passordIsNull && !$userNotVisible) {//$passordIsNull TRUE\n $query .= \" WHERE NOT isnull(password) \";\n } elseif (!$passordIsNull && $userNotVisible) {//$userNotVisible TRUE\n $query .= \"WHERE id_utente != \" . $_COOKIE['id_utente'];\n } elseif ($passordIsNull && $userNotVisible) {\n $query .= \" WHERE NOT isnull(password) AND id_utente != \" . $_COOKIE['id_utente'];\n }\n $query .= \" ORDER BY cognome , nome\";\n // Perform Query\n $result = mysql_query($query);\n //$array = mysql_fetch_assoc($result);\n }\n $this->closeConnection();\n return $result;\n }", "public function UsuariosPorId()\n{\n\tself::SetNames();\n\t$sql = \" select * from usuarios where codigo = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array(base64_decode($_GET[\"codigo\"])) );\n\t$num = $stmt->rowCount();\n\tif($num==0)\n\t{\n\t\techo \"\";\n\t}\n\telse\n\t{\n\t\tif($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$this->p[] = $row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\t\t}\n\t}", "public function usuarios()\n {\n return $this->hasMany('App\\Usuario', 'empresa_id', 'id');\n }", "function getListaPermissoesTransacoes($usuID) {\n\n\t\t$this->setLsMapeamento(\n\t\t\tarray(\t'pe_id' => 'ID',\n\t\t\t\t\t'tr_id' => 'transacaoID',\n\t\t\t\t\t'tr_nome'=>'nomeTransacao',\n\t\t\t\t\t'pe_permissao'=>'permissao',\n\t\t\t\t\t'tr_m' =>'m',\n\t\t\t\t\t'tr_u' => 'u', \n\t\t\t\t\t'tr_a' => 'a',\n\t\t\t\t\t'tr_acao'=>'acao',\n\t\t\t\t\t'tr_permissao_default'=>'permissaoDefault',\n\t\t\t\t\t'tr_tr_agregadora' => 'transacaoAgregadoraID'\n\t\t));\n\n\n\t\t$vo = new VOGenerico(array_values($this->getLsMapeamento()));\n\n\t\t$this->setVO($vo);\n\n\t\t$q = new DBQuery();\n\t\t$q->addTable('tb_sys_permissao_usuario','pu');\n\t\t$q->addTable('tb_sys_permissao','p');\n\t\t$q->addTable('tb_sys_transacao','t');\n\t\t$q->addWhere('pu.pu_usu_id = ?');\n\t\t$q->addWhere('pu.pu_id = p.pe_id');\n\t\t$q->addWhere('p.pe_tr_id = t.tr_id');\n\t\t$q->addWhere('length(t.tr_nome) > 0');\n//\t\t$q->addWhere('t.tr_id in ('.join(\",\",$lsIDs).')');\n\t\t$q->setVO($vo);\n\t\t$q->setMapaVO(array_keys($this->getLsMapeamento()));\n\t\t$sql = $q->prepareSelect();\n\t\t\n//\t\techo join(\",\",$lsIDs);\n//\t\techo $sql; exit;\n\n\t\t$lista = $this->listar($sql,array($usuID));\n\n\t\treturn $lista;\n\t}", "function listadoClientes(){\n\t\t\t\n\t\t\t//SQL\n\t\t\t$query = \"SELECT * FROM users ORDER BY rol,id DESC;\";\n\t\t\t$rst = $this->db->enviarQuery($query,'R');\n\t\t\t\n\t\t\tif(@$rst[0]['id'] != \"\"){\n\t\t\t\treturn $rst;\n\t\t\t}else{\n\t\t\t\treturn array(\"ErrorStatus\"=>true);\n\t\t\t}\n\t\t}", "public function get_usuarios()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$sql = \"SELECT * FROM usuarios\";\n\n\t\t\t$resultado = $this->db->prepare($sql);\n\n\t\t\tif(!$resultado->execute())\n\t\t\t{\n\t\t\t\techo \"<h1 class='text-danger bg-danger'>Falla en la consulta</h1>\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twhile($reg = $resultado->fetch(PDO::FETCH_ASSOC))\n\t\t\t\t{\n\t\t\t\t\t$this->usuarios[] = $reg;\n\t\t\t\t}\n\n\t\t\t\treturn $this->usuarios;\n\t\t\t}\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\tdie(\"Error: {$e->getMessage()}\");\n\t\t}\n\t}", "function getComentariosEntrada($entrada){\n $this->bd->setConsultaParametrizada(\"select c.id,c.descripcion,c.fechacreacion,u.usuario,u.imagen,c.idEntrada,c.idUsuario from\".\n \" comentario as c INNER JOIN usuario as u ON c.idUsuario = u.id \".\n \"WHERE c.idEntrada=? \",array($entrada->getId()));\n $comentariosEntrada = array();\n $i=0;\n while ($fila = $this->bd->getFila()){\n $usuario = new Usuario();\n $usuario->setId($fila[\"idUsuario\"]);\n $usuario->setUsuario($fila[\"usuario\"]);\n $usuario->setImagen($fila[\"imagen\"]);\n $comentariosEntrada[$i] = array(new Comentario($fila[\"id\"], $fila[\"descripcion\"],$fila[\"fechacreacion\"],$fila[\"idEntrada\"],$fila[\"idUsuario\"]),$usuario);\n $i++;\n }\n return $comentariosEntrada;\n }", "public static function obtenerUsuariosAccesos()\n {\n $consulta = \"SELECT * FROM usuarios, accesos WHERE (usuarios.id_usuario=accesos.id_usuario) ORDER BY usuarios.nombres ASC\";\n try {\n // Preparar sentencia\n $comando = Database::getInstance()->getDb()->prepare($consulta);\n // Ejecutar sentencia preparada\n $comando->execute();\n\n return $comando->fetchAll(PDO::FETCH_ASSOC);\n\n } catch (PDOException $e) {\n return false;\n }\n }", "public function getAllContattiByUtente($utente_matricola) {\r\n $query = sprintf(self::$GET_ALL_CONTATTI_UTENTE, $utente_matricola);\r\n $res = Model::getDB()->query($query);\r\n $contatti = array();\r\n if($res){\r\n while ($obj = $res->fetch_assoc()) {\r\n $contatto = new Contatto($obj['valore'], $obj['tipologia'], $obj['utente_matricola']);\r\n $contatto->setId($obj['id']);\r\n $contatti[] = $contatto;\r\n }\r\n }\r\n return $contatti;\r\n }", "function listarCuentaBancariaUsuario(){\n\t\t$this->procedimiento='tes.f_cuenta_bancaria_sel';\n\t\t$this->transaccion='TES_USRCTABAN_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\n\t\t$this->setParametro('permiso','permiso','varchar');\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_cuenta_bancaria','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('fecha_baja','date');\n\t\t$this->captura('nro_cuenta','varchar');\n\t\t$this->captura('fecha_alta','date');\n\t\t$this->captura('id_institucion','int4');\n\t\t$this->captura('nombre_institucion','varchar');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('id_moneda','integer');\n\t\t$this->captura('codigo_moneda','varchar');\n\t\t$this->captura('denominacion','varchar');\n\t\t$this->captura('centro','varchar');\n\t\t$this->captura('id_finalidads','varchar');\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "public function getUsuarioUni($idusuario) {\n }", "function get_all_contrato()\n {\n $contrato = $this->db->query(\"\n SELECT\n c.*, e.estado_descripcion, e.estado_color\n FROM\n `contrato` c\n left join estado e on c.estado_id = e.estado_id\n ORDER BY c.`contrato_id` DESC\n \")->result_array();\n\n return $contrato;\n }", "public function consultarUsuariosCita($idCita){\n\t\t\t\t\n\t\t$resultado = array();\n\t\t\n\t\t$idCita \t= parent::escaparQueryBDCliente($idCita); \t\n\t\t\t\n\t\t$query = \"SELECT UC.idUsuario, U.identificacion, U.nombre, U.apellido\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tFROM tb_agendaCitas_usuarios as UC\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tINNER JOIN tb_usuarios AS U on U.idUsuario = UC.idUsuario\n\t\t\t\t\t\n\t\t\t\t\tWHERE UC.idAgendaCita = '$idCita' AND UC.estado = 'A' \";\n\t\n\t\t\n $conexion = parent::conexionCliente();\t\t\n\t\n\t\tif($res = $conexion->query($query)){\n while ($filas = $res->fetch_assoc()) {\n \t\t$resultado[] = $filas;\n \t}//fin while\n \t\n }//fin if\t\n \n \n return $resultado;\t\n\t\t\n\t\t\n\t}", "public static function recuperartodo(){\r\n\t\t\r\n\t\t\t$consulta = \"SELECT * FROM usuaris;\";\r\n\t\t\t$datos = Database::get()->query($consulta);//ejecutar la consulta\r\n\t\t\t$usuaris = array();\r\n\t\t\r\n\t\t\twhile($usuari = $datos->fetch_object('UsuarioModel'))\r\n\t\t\t\t$usuaris[] = $usuari;\r\n\t\t\t\t$datos->free();\t\t\t//liberar memoria\r\n\t\t\t\treturn $usuaris;\r\n\t\t}", "public function addContratos(Request $request, $id)\n {\n\n $rules = [\n //Validaciones de Transaccion\n 'contratos' => ['required', 'array'],\n 'contratos.*.nivel' => ['regex:\"^(\\d{3}\\.)+$\"', 'required', 'distinct', 'string', 'max:255', 'unique:cadeco.contratos,nivel,NULL,id_concepto,id_transaccion,' . $id],\n 'contratos.*.descripcion' => ['required', 'string', 'max:255'],\n 'contratos.*.unidad' => ['string', 'max:16', 'exists:cadeco.unidades,unidad'],\n 'contratos.*.cantidad_presupuestada' => ['numeric'],\n 'contratos.*.clave' => ['string', 'max:140', 'distinct'],\n 'contratos.*.id_marca' => ['integer'],\n 'contratos.*.id_modelo' => ['integer'],\n 'contratos.*.destinos.*.id_concepto' => ['required_with:contratos.*.destinos', 'integer', 'exists:cadeco.conceptos,id_concepto']\n ];\n\n //Validar los datos recibidos con las reglas de validación\n $validator = app('validator')->make($request->all(), $rules);\n\n $contratos_existentes = Contrato::where('id_transaccion', '=', $id)->get(['nivel'])->toArray();\n foreach ($request->get('contratos', []) as $c) {\n\n if(array_key_exists('nivel', $c)) {\n $contratos_existentes [] = ['nivel' => $c['nivel']];\n }\n }\n\n foreach ($request->get('contratos', []) as $key => $contrato) {\n if(array_key_exists('nivel', $contrato)) {\n if (EloquentContratoProyectadoRepository::validarNivel($contratos_existentes, $contrato['nivel'])) {\n foreach (array_only($contrato, ['unidad', 'cantidad_presupuestada', 'destinos']) as $key_campo => $campo) {\n $validator->errors()->add('contratos.' . $key . '.' . $key_campo, 'El contrato no debe incluir ' . $key_campo . ' ya que tiene niveles subsecuentes');\n }\n } else {\n $validator->sometimes(['contratos.' . $key . '.unidad', 'contratos.' . $key . '.cantidad_presupuestada', 'contratos.' . $key . '.destinos'], 'required', function () {\n return true;\n });\n }\n }\n }\n\n try {\n if (count($validator->errors()->all())) {\n //Caer en excepción si alguna regla de validación falla\n throw new StoreResourceFailedException('Error al agregar los Contratos '. $validator->errors());\n } else {\n DB::connection('cadeco')->beginTransaction();\n $data = $request->all();\n $contratos = [];\n foreach ($data['contratos'] as $contrato) {\n !array_key_exists('cantidad_presupuestada', $contrato) ? : $contrato['cantidad_original'] = $contrato['cantidad_presupuestada'];\n\n $contrato['id_transaccion'] = $id;\n $new_contrato = Contrato::create($contrato);\n array_push($contratos, $new_contrato);\n if (array_key_exists('destinos', $contrato)) {\n foreach ($contrato['destinos'] as $destino) {\n $new_contrato->destinos()->attach($destino['id_concepto'], ['id_transaccion' => $new_contrato->id_transaccion]);\n $newMaterial = MaterialAcarreo::firstOrCreate([\n 'id_material_acarreo' => $contrato['id_material']\n ,'id_concepto' => $destino['id_concepto']\n ,'id_concepto_contrato' => $new_contrato['id_concepto']\n ,'id_transaccion' => $id\n ,'tarifa' => $contrato['tarifa']\n ,'id_item' => $contrato['tiro']\n ]);\n }\n }\n }\n\n DB::connection('cadeco')->commit();\n return collect($contratos);\n }\n } catch (\\Exception $e) {\n DB::connection('cadeco')->rollback();\n throw $e;\n }\n\n }", "public function getUsuaris()\n {\n $usuarios = $this->_db->query(\"select * from usuarios\");\n return $usuarios->fetchall();\n }", "function getAllUsuarios(){\n\t\t\tDB_DataObject::debugLevel(0);\n\t\t\t$obj = DB_DataObject::Factory('VenUsuario');\n\t\t\t$obj->find();\n\t\t\t$i = 0;\n\t\t\t$data='';\n\t\t\twhile($obj->fetch()){\n\t\t\t\t$data[$i]['idUsuario']=$obj->idUsuario;\n\t\t\t\t$data[$i]['idCargo']=$obj->idCargo;\n\t\t\t\t$nombreCargo=$this->getCargoById($obj->idCargo);\n\t\t\t\t$nombreCargo=utf8_encode($nombreCargo['nombre']);\n\t\t\t\t$data[$i]['cargo']= $nombreCargo;\n\t\t\t\t$data[$i]['nombre']=utf8_encode($obj->nombre);\n\t\t\t\t$data[$i]['apellido']=utf8_encode($obj->apellido);\n\t\t\t\t$data[$i]['email']=$obj->email;\n\t\t\t\t$data[$i]['usuario']=utf8_encode($obj->usuario);\n\t\t\t\t$data[$i]['contrasena']=utf8_encode($obj->contrasena);\n\t\t\t\t$data[$i]['puntos']=$obj->puntos;\n\t\t\t\t$data[$i]['estado']=$obj->estado;\n\t\t\t\t$data[$i]['fechaMod']=$obj->fechaMod;\n\t\t\t\t$data[$i]['fecha']=$obj->fecha;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t$obj->free();\n\t\t\t//printVar($data,'getAllUsuarios');\n\t\t\treturn $data;\n\t\t}", "public function getArrayUsuariosInferiores($idEstructura)\r\n {\r\n $usuarios=$this->getEntityManager()\r\n ->createQuery(\"SELECT u,e,o,s,ss\r\n FROM SisproBundle:Usuario u\r\n JOIN u.estructura e\r\n JOIN e.superior o \r\n JOIN o.superior s\r\n JOIN s.superior ss\r\n WHERE (o.id=:id\r\n OR s.id=:id\r\n OR ss.id=:id\r\n OR e.id=:id )\r\n AND e.activo=TRUE\r\n AND o.activo=TRUE\r\n AND s.activo=TRUE\r\n AND ss.activo=TRUE\r\n ORDER BY u.nombre ASC\")\r\n ->setParameter('id', $idEstructura)\r\n ->getArrayResult();\r\n \r\n if (count($usuarios)==0) return array('0'=>'');\r\n \r\n $a=array('0'); $b=array('[Seleccione]');\r\n \r\n foreach ($usuarios as $fila)\r\n {\r\n array_push($a,$fila['id']);\r\n array_push($b,mb_convert_case($fila['nombre'],MB_CASE_TITLE,'UTF-8').\r\n ' '.mb_convert_case($fila['apellido'],MB_CASE_TITLE, 'UTF-8').\r\n ' ('.$fila['correo'].')');\r\n } \r\n $usuarios=array_combine($a,$b); \r\n return $usuarios;\r\n }", "public function autenticar(Autenticar $autenticar){\n\n $sql = \"select * from tbl_funcionario where matricula = '\".$autenticar->getLogin().\"' and senha = '\".$autenticar->getSenha().\"'\";\n\n echo $sql;\n \n $pdoConn = $this->conn->startConnection();\n\n $select = $pdoConn->query($sql);\n\n if($rsContatos=$select->fetch(PDO::FETCH_ASSOC)){\n // echo \"AQQUI\";\n // var_dump($rsContatos);\n \n // require_once('model/usuarioCmsClass.php');\n $user = new UsuarioCms();\n\n $user->setId($rsContatos['id']);\n $user->setNome($rsContatos['nome']);\n $user->setLogin($rsContatos['matricula']);\n $user->setSenha($rsContatos['senha']);\n $user->setIdPermissao($rsContatos['id_permissao']);\n\n return $user;\n }else{\n return \"FALHA\";\n }\n\n $this->conn->closeConnection();\n\n }", "public function obtenerUsuariosOnline(){\n return $this->obtenerUsuarios(\" uid_usuario IN ( SELECT uid_usuario FROM \". TABLE_USUARIO .\" u WHERE u.uid_usuario = uid_usuario AND conexion = 1 ) \");\n }", "public function caricaUtente($username, $password) {\n\n $mysqli = Db::getInstance()->connectDb();\n if (!isset($mysqli)) {\n error_log(\"[loadUser] impossibile inizializzare il database\");\n $mysqli->close();\n return null;\n }\n\n // cerco prima nella tabella clienti\n $query = \"select * from clienti where username = ? and password = ?\";\n\n $stmt = $mysqli->stmt_init();\n $stmt->prepare($query);\n if (!$stmt) {\n error_log(\"[loadUser] impossibile\" .\n \" inizializzare il prepared statement\");\n $mysqli->close();\n return null;\n }\n if (!$stmt->bind_param('ss', $username, $password)) {\n error_log(\"[loadUser] impossibile\" .\n \" effettuare il binding in input\");\n $mysqli->close();\n return null;\n }\n\n $cliente = self::caricaClienteDaStmt($stmt);\n if (isset($cliente)) {\n // ho trovato un cliente\n $mysqli->close();\n return $cliente;\n }\n\n // ora cerco un admin\n $query = \"select * from admins where admins.username = ? and admins.password = ?\";\n\n $stmt = $mysqli->stmt_init();\n $stmt->prepare($query);\n if (!$stmt) {\n error_log(\"[loadUser] impossibile\" .\n \" inizializzare il prepared statement\");\n $mysqli->close();\n return null;\n }\n\n if (!$stmt->bind_param('ss', $username, $password)) {\n error_log(\"[loadUser] impossibile\" .\n \" effettuare il binding in input\");\n $mysqli->close();\n return null;\n }\n\n $admin = self::caricaAdminDaStmt($stmt);\n if (isset($admin)) {\n // ho trovato un admin\n $mysqli->close();\n return $admin;\n }\n }", "function consultarUsuarios($conexion, $usuario){\r\n\t\t$consulta = \"SELECT * FROM Usuario WHERE Usuario = '$usuario'\";\r\n\t\t$resultado = mysqli_query($conexion, $consulta);\r\n\t\treturn $resultado;\r\n\t}", "public function listar_anuncios_interessadosByUser(){\n if(!isset($_SESSION))session_start();\n\n $cliente = unserialize($_SESSION['cliente']);\n\n return $this->anunciosDAO->selectAllInteresadosByUser($cliente->getId());\n }", "public function getUsuarios()\n {\n return $this->hasMany(Usuario::className(), ['perfil_cod_fk' => 'perfil_cod_pk']);\n }", "function habilitarContrato(){\n $this->procedimiento = 'adq.f_cotizacion_ime';\n $this->transaccion = 'ADQ_HABCONT_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_cotizacion','id_cotizacion','int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function cliente()\n {\n \treturn $this->belongsTo('App\\User', 'id_cliente');\n }", "public function use_aplicaciones_usuario(){\n return $this->ci->arixkernel->select_all_content_where('app, controller','config.v_cuenta_app_rol',array('cuenta_id' => $this->ci->session->userdata('usuario'), 'rol_id !='=>4));// rol_id=4 => sin permiso\n }", "public static function getUsuarios()\n {\n $query = \"SELECT id,nombre,email,usuario,privilegio,fecha_registro FROM users\";\n\n self::getConexion();\n\n $resultado = self::$cnx->prepare($query);\n\n $resultado->execute();\n\n $filas = $resultado->fetchAll();\n\n return $filas;\n }" ]
[ "0.63066316", "0.62016624", "0.6190762", "0.6128283", "0.61049354", "0.60437596", "0.60213524", "0.6012103", "0.59951425", "0.59916514", "0.5947525", "0.59437907", "0.59427106", "0.59170175", "0.59084624", "0.5877874", "0.58718514", "0.5857023", "0.5836436", "0.583037", "0.5825795", "0.58027995", "0.5787326", "0.5772649", "0.5763981", "0.5752577", "0.572964", "0.57251775", "0.57241666", "0.572403", "0.57136965", "0.5713362", "0.57087547", "0.5704521", "0.5699662", "0.5687638", "0.56809133", "0.56807584", "0.56802213", "0.5670978", "0.5670477", "0.56678134", "0.5664277", "0.5664189", "0.5661292", "0.5657465", "0.5653751", "0.56496465", "0.5639178", "0.56287605", "0.5628454", "0.5620428", "0.5614677", "0.56055516", "0.5604956", "0.5603066", "0.5595639", "0.5576901", "0.5565882", "0.55557567", "0.55450916", "0.5538523", "0.5535501", "0.55324215", "0.55225277", "0.55216414", "0.5518497", "0.5518466", "0.55137765", "0.55101603", "0.5509994", "0.5507824", "0.55061597", "0.5502279", "0.5494757", "0.54939556", "0.5492511", "0.54901415", "0.5489355", "0.54859126", "0.54858136", "0.54853964", "0.5482521", "0.5479294", "0.5477921", "0.54769725", "0.5476934", "0.54740673", "0.54735494", "0.5473265", "0.5472557", "0.54683775", "0.5464401", "0.5464128", "0.5463144", "0.54610145", "0.54573673", "0.5455515", "0.54527473", "0.5452116", "0.54480356" ]
0.0
-1
funcion que retorna un contrato por identificador
public function getContractByIdFromArray($contracts, $id){ foreach ($contracts as $contract) { if($contract['id'] == $id){ return $contract; break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getContrato_id() {\n return $this->contrato_id;\n }", "public function obtenerID();", "public function getIdContrato()\n {\n return $this->id_contrato;\n }", "function ret_nome($idnome)\n {\n global $db;\n\t$sql=\"select nome from usuario where usuario=$idnome\";\n\t$db->query($sql);\n\t$nome=$db->dados();\n\treturn $nome[0];\n }", "function get_not_userPassWord($nomJoueur, $motDePasse)\n{\n\ttry \n\t\t{\n\t\t\tinclude(\"model.php\");\n\t\t\t\t$sql = \"SELECT mdpJoueur FROM joueurs WHERE nomJoueur = '$nomJoueur' AND mdpJoueur = '$motDePasse'\"; \n\t\t\t\t// Preparation de la requete\n\t\t\t\t$req = $pdo->prepare($sql);\n\t\t\t\t// execution de la requete\n\t\t\t\t$req->execute();\n\t\t\t\t$id = $req->fetch();\n\t\t\t\treturn $id[0];\t// If only one data to return\n\t\t} \n\t\tcatch (PDOException $e) \n\t\t{\n\t\t\techo $e->getMessage();\n\t\t\tdie(\"<br /> Erreur dans la BDD \");\n\t\t}\n}", "public function obtenerId() {}", "public function contrato()\r\n\t{\r\n\t}", "function idperfil($nombre){\n //busca en la tabla usuarios los campos donde el alias sea igual a lo que recibe del controlaor si no encuentra nada devuelve null\n $usuario = R::findOne('usuarios', 'alias=?', [\n $nombre\n ]);\n //guardo en una sesion la variable usuario y se retorna esa variable al controlador Usuarios.php linea 169 dentro de la carpeta usuario\n $_SESSION['idusuario']=$usuario->id;\n return $usuario;\n }", "function tipo_cliente($id_tipo_cliente=\"\"){\n\t$db = new db(DB_USER,DB_PASSWORD,DB_NAME,DB_HOST);\n\tif ($id_tipo_cliente==\"\") {\n\t\treturn \"Tutti i Clienti\";\n\t}\n\t$q=\"SELECT * FROM tipo_cliente WHERE id_tipo_cliente=$id_tipo_cliente\";\n\t$r=$db->query($q);\n\tif (!$r) {\n\t\treturn \"Dato Assente\";\n\t}else{\n\t\t$ro= mysql_fetch_array($r);\n\t\treturn $ro['nome'];\n\t}\n}", "function obtenerUsuario_EspecialistaID($id){\n\t\n\t//$query = $this->db->from('sesion')->where('id',$id)->get();\n\t\n\t\t$user = 'user';\n\t $query = $this->db->from('usuario')->where('perfil',$user)->get();\n\t if($query-> num_rows() > 0){\n\t \t\n\t \t$row = $query->row($id);\n\t \t\n\t if (isset($row))\n\t\t\t{\n\t\t\t\t//echo ('ESTE ES EL ID'.' '.$row->id.'- ');\n \treturn $row->id; }\n\t\t}\n\t else return false ;\n\t \n\t}", "function get_not_userName($nomJoueur)\n{\n\ttry \n\t\t{\n\t\t\tinclude(\"model.php\");\n\t\t\t\t$sql = \"SELECT nomJoueur FROM joueurs WHERE nomJoueur = '$nomJoueur'\"; \n\t\t\t\t// Preparation de la requete\n\t\t\t\t$req = $pdo->prepare($sql);\n\t\t\t\t// execution de la requete\n\t\t\t\t$req->execute();\n\t\t\t\t$id = $req->fetch();\n\t\t\t\treturn $id[0];\t// If only one data is return\n\t\t} \n\t\tcatch (PDOException $e) \n\t\t{\n\t\t\techo $e->getMessage();\n\t\t\tdie(\"<br /> Erreur dans la BDD \");\n\t\t}\n}", "function selectIdUsu($user) {\n $c = conectar();\n $select = \"select ID_USUARIO from USUARIOS where username='$user'\";\n $resultado = mysqli_query($c, $select);\n $fila = mysqli_fetch_assoc($resultado); //recoge la consulta msquli_query y escoge solo la fila que coincide con el select\n if ($fila==null){\n $fila==0;\n }else{\n $tipoUsuario = $fila[\"ID_USUARIO\"];\n desconectar($c);\n return $tipoUsuario;\n}\n}", "public function getUsuario($id,$cedula){\r\n\t$pdo = Database::connect();\r\n//Utilizamos parametros para la consulta:\r\n\t$sql = \"select * from cat_usuarios where ID_US=?\";\r\n\t$consulta = $pdo->prepare($sql);\r\n//Ejecutamos y pasamos los parametros para la consulta:\r\n\t$consulta->execute(array($id));\r\n//Extraemos el registro especifico:\r\n\t$dato = $consulta->fetch(PDO::FETCH_ASSOC);\r\n//Transformamos el registro obtenido a objeto:\r\n\t$usuario=new Usuarios();\r\n\t$usuario->setID_US($dato['ID_US']);\r\n\t$usuario->setCEDULA_US($dato['CEDULA_US']);\r\n\t$usuario->setNOMBRE_US($dato['NOMBRE_US']);\r\n\t$usuario->setAPELLIDO_US($dato['APELLIDO_US']);\r\n\t$usuario->setFECHANAC_US($dato['FECHANAC_US']);\r\n\t$usuario->setCIUDAD_US($dato['CIUDAD_US']);\r\n\t$usuario->setTELEFONO_US($dato['TELEFONO_US']);\r\n\t$usuario->setGENERO_US($dato['GENERO_US']);\r\n\t$usuario->setAPELLIDO_US($dato['APELLIDO_US']);\r\n\t$usuario->setDIRECCION_US($dato['DIRECCION_US']);\r\n\t$usuario->setFECHAREGISTRO_US($dato['FECHAREGISTRO_US']);\r\n\t$usuario->setEMAIL_US($dato['EMAIL_US']);\r\n\r\n\tDatabase::disconnect();\r\n\treturn $usuario;\r\n}", "public function getIdentificacao();", "function getID($email, $passXifrada){\n $conn=connexioBD();\n $sql=\"SELECT id FROM usuaris WHERE email='$email' and password='$passXifrada'\";\n if (!$resultado = $conn->query($sql)) {\n die(\"Error en la consulta\".$conn->error);\n }\n if($resultado->num_rows>=0){\n while($usuari=$resultado->fetch_assoc()){\n $id=$usuari[\"id\"]; \n }\n }\n $resultado->free();\n $conn->close();\n return $id;\n}", "public function CajaPorId()\n{\n\tself::SetNames();\n\t$sql = \" select * from cajas LEFT JOIN usuarios ON cajas.codigo = usuarios.codigo WHERE cajas.codcaja = ?\";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array(base64_decode($_GET[\"codcaja\"])) );\n\t$num = $stmt->rowCount();\n\tif($num==0)\n\t{\n\t\techo \"\";\n\t}\n\telse\n\t{\n\t\tif($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$this->p[] = $row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\t\t}\n\t}", "public function buscaCvePas(){\n /* Consulta usando ELOQUENT -> Trae al usuario si lo encuentra en la tabla usuarios */\n $usuario = Usuario::where([\n ['cuentaUsuario', $this->cuentaUsuario],\n ['contrasenia', $this->contrasenia]\n ])->first();\n return $usuario;\n }", "function obtener_mensajero($idMensajero)\n{\n $VfuncionarioDc = new VfuncionarioDc($idMensajero);\n $nombreMensajero = \"{$VfuncionarioDc->nombres} {$VfuncionarioDc->apellidos}\";\n return $nombreMensajero;\n}", "static public function ctrCrearClase(){\r\n\r\n\t\tif(isset($_POST[\"nuevoDescripClase\"])){\r\n\r\n\t\t\tif(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"nuevoDescripClase\"])){\r\n\r\n\t\t\t\t$tabla = \"tbl_clases\";\r\n\r\n\r\n\t\t\t\t$datos = array(\"DescripClase\" => strtoupper($_POST[\"nuevoDescripClase\"]),\r\n \"Duracion\" => $_POST[\"nuevoDuracion\"]);\r\n\r\n\r\n\t\t\t\t$respuesta = ModeloClases::mdlIngresarClases($tabla, $datos);\r\n\r\n\t\t\t\tif($respuesta == \"ok\"){\r\n\r\n\t\t\t\t\techo '<script>\r\n\r\n\t\t\t\t\tswal({\r\n\r\n\t\t\t\t\t\ttype: \"success\",\r\n\t\t\t\t\t\ttitle: \"¡La Clase sido guardada correctamente!\",\r\n\t\t\t\t\t\tshowConfirmButton: true,\r\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\",\r\n\t\t\t\t\t\tcloseOnConfirm: false\r\n\r\n\t\t\t\t\t}).then((result)=>{\r\n\r\n\t\t\t\t\t\tif(result.value){\r\n\r\n\t\t\t\t\t\t\twindow.location = \"modalidades\";\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t</script>';\r\n\r\n\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t}else{\r\n\r\n\t\t\t\techo '<script>\r\n\r\n\t\t\t\t\tswal({\r\n\r\n\t\t\t\t\t\ttype: \"error\",\r\n\t\t\t\t\t\ttitle: \"¡El nombre de la Clase no puede ir vacía o llevar caracteres especiales!\",\r\n\t\t\t\t\t\tshowConfirmButton: true,\r\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\",\r\n\t\t\t\t\t\tcloseOnConfirm: false\r\n\r\n\t\t\t\t\t}).then((result)=>{\r\n\r\n\t\t\t\t\t\tif(result.value){\r\n\r\n\t\t\t\t\t\t\twindow.location = \"modalidades\";\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t});\r\n\r\n\r\n\t\t\t\t</script>';\r\n\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "function getUserName($id_utente) {\n\n $query = sprintf(\"SELECT cognome, nome FROM scuola.utenti_scuola WHERE id_utente = %s\", $id_utente);\n\n // Perform Query\n $result = mysql_query($query);\n\n while ($row = mysql_fetch_assoc($result)) {\n $name = $row['cognome'] . ' ' . $row['nome'];\n }\n return $name;\n }", "public function getIdfa();", "public function conseguirId (){\n $query = $this->db->query (\"SELECT * FROM acceso WHERE id_acceso = '{$this->id_acceso}'\");\n if ($query->num_rows === 1)\n {\n $this->datos= $query->fetch_assoc();\n \n }\n return $this->datos;\n }", "static public function ctrCrearUsuario(){\n \t\tif(isset($_POST[\"nuevoUsuario\"])){\n \t\t\tif(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"nuevoNombre\"]) &&\n\t\t\t preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"nuevoUsuario\"]) &&\n\t\t\t preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"nuevoPassword\"])){\n\n\n\t\t\t\t//Inicializamos la ruta de la foto por si no hay foto.\n\t\t\t\t$ruta =\"\";\n\n\n \t\t\t\t$tabla = \"usuarios\";\n\n \t\t\t\t//$encriptar = crypt($_POST[\"nuevoPassword\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n \t\t\t\t$encriptar = $_POST[\"nuevoPassword\"];\n\n\n \t\t\t\t$datos = array (\"nombre\" => $_POST[\"nuevoNombre\"],\n \t\t\t\t\t\t\t\t\"usuario\" => $_POST[\"nuevoUsuario\"],\n \t\t\t\t\t\t\t\"password\" => $encriptar ,\n \t\t\t\t\t\t\"perfil\" => $_POST[\"nuevoPerfil\"]);\n\t\t\t\t\t\t \n\t\t\t\t$nombreValido = ModeloUsuarios::mdlValidadUsuario($tabla, $_POST[\"nuevoUsuario\"]);\n\t\t\t\t$respuesta = \"\";\n\t\t\t\tif($nombreValido)\n\t\t\t\t \t$respuesta = ModeloUsuarios::mdlIngresarUsuario($tabla, $datos);\n\n \t\t\t\tif($respuesta == \"ok\" AND $nombreValido ){\n\n \t\t\t\techo '<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\ttype: \"success\",\n\t\t\t\t\t\ttitle: \"¡El usuario ha sido guardado correctamente!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"usuarios\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t</script>';\n\n \t\t\t\t}else \t\t\n \t\t\t\techo '<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\ttype: \"error\",\n\t\t\t\t\t\ttitle: \"¡El usuario no se ha logrado ingresar!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t</script>';\n\n \t\t\t\t\n\n \t\t\t}else {\n \n \t\t\t\techo '<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\ttype: \"error\",\n\t\t\t\t\t\ttitle: \"¡El usuario no puede ir vacío o llevar caracteres especiales!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"usuarios\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t</script>';\n\n\n \t\t\t}\n \n \n\n\n \t\t}\n\n\t}", "static public function ctrCrearClaseOrientaModali(){\r\n\r\n if(isset($_POST[\"nuevoDescripClase\"])){\r\n\r\n if(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"nuevoDescripClase\"])){\r\n\r\n $tabla = \"tbl_mod_orientacion\";\r\n\r\n\r\n $datos = array(\"Id_Modalidad\" => $_POST[\"nuevoSelecModalidad\"],\r\n \"Id_Orientacion\" => $_POST[\"nuevoSelecOrientacion\"]);\r\n\r\n\r\n $respuesta = ModeloClases::mdlIngresarClaseOrientaModali($tabla, $datos);\r\n }\r\n }\r\n\r\n }", "function RellenaDatosPorEdificio()\n{\n $sql = \"SELECT *\n\t\t\tFROM CENTRO\n\t\t\tWHERE (\n\t\t\t\t(CODEDIFICIO = '$this->CODEDIFICIO') \n\t\t\t)\";\n\t//si se ha actualizado guardamos un mensaje de éxito en la variable resultado\n\t//si se cumple la condicion\n\tif (!$resultado = $this->mysqli->query($sql))\n\t{\n\t\t\treturn 'Error de gestor de base de datos';\n\t}\n\treturn $resultado;//devuelve el mensaje\n}", "function getId_carrera(){\n\t\treturn $this->id_carrera;\n\t}", "public function getUsuarioCadeco($id_usuario);", "function usuario($listaNombres, $listaPasswords, $nombre, $passwords) {\n $encontrado = -3;\n $claveNombre = -1;\n $clavePassword = -2;\n foreach ($listaNombres as $clave => $valor) {\n if ($valor === $nombre) {\n //el nombre es igual al que se pasa del formulario\n $claveNombre = $clave;\n foreach ($listaPasswords as $claveC => $valorC) {\n //la contraseña es igual a la del formulario\n if ($valorC === $passwords) {\n $clavePassword = $claveC;\n if ($clavePassword === $claveNombre) {\n //comprobamos si es el nombre y la contraseña pertenecen a la misma persona\n $encontrado = $clavePassword;\n }\n }\n }\n }\n }\n return $encontrado;\n}", "function MostrarU($conexion, $id){\n $result = $conexion->query(\"SELECT * FROM usuario WHERE id_usuario=$id\");\n return $result;\n}", "function obtener_id_usuario($usuario, \r\n $password){\r\n \r\n if ( $usuario == \"\" or $password == \"\" ){ \r\n return false;\r\n }\r\n else{\r\n global $dbHost;\r\n global $dbUsuario;\r\n global $dbPassword;\r\n global $dbNombre;\r\n \r\n $db = new mysqli($dbHost, $dbUsuario, $dbPassword, $dbNombre);\r\n if ($db->connect_errno>0){\r\n die(\"Error de conexion a bases de datos.\");\r\n }\r\n\r\n $sql = \"SELECT id_usuario FROM usuario WHERE usuario = '$usuario' AND contrasena = '$password'\";\r\n //echo $sql;\r\n //exit();\r\n\r\n if($result = $db->query($sql)){\r\n if ($result->num_rows > 0){ //si existe usuario\r\n $renglon = $result->fetch_assoc();\r\n return $renglon[\"id_usuario\"];\r\n }\r\n else{\r\n return 0;\r\n }\r\n }\r\n else\r\n {\r\n die($db->error);\r\n }\r\n\r\n }\r\n}", "function ColsultarTodosLosID(){///funciona\n try {\n $FKAREA=$this->objRequerimiento->getFKAREA();\n $objControlConexion = new ControlConexion();\n $objControlConexion->abrirBd();\n //$comandoSql = \"select * from Requerimiento where FKAREA = '\".$FKAREA.\"' \";\n $comandoSql = \"SELECT IDREQ ,TITULO,FKEMPLE,FKAREA,FKESTADO,OBSERVACION,FKEMPLEASIGNADO FROM Requerimiento INNER JOIN detallereq ON Requerimiento.IDREQ=detallereq.FKREQ where FKAREA = '\".$FKAREA.\"'\";\n $rs = $objControlConexion->ejecutarSelect($comandoSql);\n return $rs;\n $objControlConexion->cerrarBd();\n } catch(Exception $e) {\n echo \"Error: \" . $e->getMessage();\n }\n}", "function add_contrato($params)\n {\n $this->db->insert('contrato',$params);\n return $this->db->insert_id();\n }", "public abstract function getIdentity();", "function accesgroupes_trouve_id_utilisateur() {\t\t\t\t\t\r\n\t\t\t\t $login_utilisateur = $GLOBALS['auteur_session']['login'];\r\n\r\n\t\t\t\t\t$sql502 = \"SELECT id_auteur FROM spip_auteurs WHERE login = '$login_utilisateur' LIMIT 1\";\r\n\t\t\t\t\t$result502 = spip_query($sql502);\r\n\t\t\t\t\t$row502 = spip_fetch_array($result502);\r\n\t\t\t\t\t$id_utilisateur = $row502['id_auteur'];\r\n\t\t\t\t\treturn $id_utilisateur;\t\t\t\t \r\n}", "function buscarPorId($id) {\r\n \r\n }", "function selCredito($idadministra){\r\n\t$sql = \"SELECT * FROM credito WHERE administra_idadministra = $idadministra\";\r\n\t$ej = mysql_query($sql);\r\n\tif($dt = mysql_fetch_array($ej)){\r\n\treturn $dt;\r\n\t}\r\n}", "function newskomentar_createid($tbl_newskomentar){ /* Fungsi buat id */\n\t$sql = mysql_query(\"SELECT * FROM $tbl_newskomentar \");\n\treturn $sql;\n}", "function f_get_seg_usuario(\n\t\t\t\t$cod_usuario\n\t\t){\n\t\t\tglobal $db;\n\t\t\t$query =\"\n\t\t\tselect \t*\n\t\t\tfrom\tseg_usuario\n\t\t\twhere\tcod_usuario_pk='$cod_usuario'\";\n\t\t\t$row = $db->consultar_registro($query);\t\n\t\t\treturn $row;\n\t\t}", "function GetIdUtilisateur($login)\n{\n\tglobal $bdd;\n\t$req=$bdd->prepare(\"SELECT id_utilisateur FROM UTILISATEUR WHERE login= ?\");\n\t$req->execute(array($login));\n\t$id=$req->fetchObject();\n\t$id2=$id->id_utilisateur;\n\t$req->closeCursor();\n\treturn $id2;\n}", "public function UsuariosPorId()\n{\n\tself::SetNames();\n\t$sql = \" select * from usuarios where codigo = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array(base64_decode($_GET[\"codigo\"])) );\n\t$num = $stmt->rowCount();\n\tif($num==0)\n\t{\n\t\techo \"\";\n\t}\n\telse\n\t{\n\t\tif($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$this->p[] = $row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\t\t}\n\t}", "function CantidadCarrito($idusuario){\n try{\n\n $comando = $this->pdo->prepare(\"call sp_usuarios_carrito(?)\");\n $comando->execute(\n array(\n $idusuario\n )\n );\n\n return $comando->fetch(PDO::FETCH_OBJ);\n\n }catch(Exception $e){\n die($e->getMessage());\n }\n }", "static public function ctrEditarOrientaModali(){\r\n\r\n\r\n if(isset($_POST[\"editarIdClase\"])){\r\n\r\n\r\n if(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"editarIdClase\"])){\r\n\r\n $tabla = \"tbl_mod_orientacion\";\r\n\r\n $datos = array(\"Id_Clase\" => $_POST[\"editarIdClase\"],\r\n \"Id_Modalidad\" => $_POST[\"editarSelecModalidad\"],\r\n \"Id_Orientacion\" => $_POST[\"editarSelecOrientacion\"]);\r\n\r\n $respuesta = ModeloClases::mdlEditarOrientaModali($tabla, $datos);\r\n\r\n\r\n }\r\n\r\n }\r\n }", "function getID();", "static public function ctrCrearAtencion(){\r\n\t\t\tif (isset($_POST[\"nuevoCodigo\"])){\r\n\t\t\t\tif (preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"idUser\"])){\r\n\r\n\r\n\t\t\t\t\t$tabla = \"atencion\";\r\n\r\n\t\t\t\t\t\t$datos = array(\"codigo_atencion\" => $_POST[\"nuevoCodigo\"],\r\n\t\t\t\t\t\t\t\t\t \"id_usuario\" => $_POST[\"idUsuario\"],\r\n\t\t\t\t\t\t\t\t\t \"id_personal_salud\" => $_POST[\"nuevaPersonalSalud\"],\r\n\t\t\t\t\t\t\t\t\t \"id_paciente\" => $_POST[\"nuevoPaciente\"],\r\n\t\t\t\t\t\t\t\t\t \"ups\" => $_POST[\"nuevaUps\"],\r\n\t\t\t\t\t\t\t\t\t \"servicio\" => $_POST[\"nuevoServicio\"],\r\n\t\t\t\t\t\t\t\t\t \"especialidad\" => $_POST[\"nuevaEspecialidad\"],\r\n\t\t\t\t\t\t\t\t\t \"diagnostico\" => $_POST[\"nuevoDiagnostico\"],\r\n\t\t\t\t\t\t\t\t\t \"fecha_atencion\" => $_POST[\"nuevaFechaAtencion\"]);\r\n\r\n\t\t\t\t\t\t$respuesta = ModeloAtenciones::mdlIngresarAtenciones($tabla, $datos);\r\n\r\n\t\t\t\t\t\tif ($respuesta == \"ok\") {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\techo '<script>\r\n\r\n\t\t\t\t\t\t\t\t\tswal({\r\n\t\t\t\t\t\t\t\t\t\ttype: \"success\",\r\n\t\t\t\t\t\t\t\t\t\ttitle: \"¡La Atención ha sido guardado correctamente!\",\r\n\t\t\t\t\t\t\t\t\t\tshowConfirmButton: true,\r\n\t\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\",\r\n\t\t\t\t\t\t\t\t\t\tcloseOnConfirm: false\r\n\t\t\t\t\t\t\t\t\t\t}).then((result)=>{\r\n\t\t\t\t\t\t\t\t\t\t\tif(result.value){\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\twindow.location = \"atenciones\";\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t });\r\n\r\n\t\t\t\t\t\t \t\t </script>';\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t}else{\r\n\r\n\t\t\t\t\techo '<script>\r\n\r\n\t\t\t\t\t\t\tswal({\r\n\t\t\t\t\t\t\t\ttype: \"error\",\r\n\t\t\t\t\t\t\t\ttitle: \"¡La Atención no puede ir vacía o llevar caracteres especiales !\",\r\n\t\t\t\t\t\t\t\tshowConfirmButton: true,\r\n\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\",\r\n\t\t\t\t\t\t\t\tcloseOnConfirm: false\r\n\t\t\t\t\t\t\t\t}).then((result)=>{\r\n\t\t\t\t\t\t\t\t\tif(result.value){\r\n\r\n\t\t\t\t\t\t\t\t\t\twindow.location = \"atenciones\";\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t });\r\n\r\n\t\t\t\t\t\t </script>';\r\n\r\n\t\t\t}\r\n\t\t }\r\n\t\t/*===== FIN registro pacientes ======*/\t\t\t\t\t\r\n\t\t}", "function bd_usuarios_hash($id){\n return sql2value(\"\n SELECT clave\n FROM usuarios\n WHERE id LIKE '{$id}'or email LIKE '{$id}'\n LIMIT 1;\n \");\n}", "function retourneUtilisateur($idUtilisateur){\n\tglobal $connexion; // on définie la variables globale de connection dans la fonction\n\t\n\t$requete = $connexion->query(\"SELECT * FROM utilisateur where idUtilisateur=\".$idUtilisateur.\"\");\n\t$requete->setFetchMode(PDO::FETCH_OBJ);\n\t$enregistrement = $requete->fetch();\n\t\n\n\treturn $enregistrement; // on renvoie un objet utilisateur\n}", "function cogerDatos($trabajo){\n //Variable que almacena la sentencia sql\n $sql = \"SELECT IdTrabajo,login FROM ENTREGA WHERE IdTrabajo LIKE '%et%' AND IdTrabajo='$trabajo'\";//Se construye la sentencia sql\n //Si la consulta falla devuelve mensaje de error \n if ( !( $resultado = $this->mysqli->query( $sql ) ) ) {//ejecutamos la query\n\t\t\t return 'Error en la consulta sobre la base de datos';\n // si existe se devuelve la tupla resultado\n\t\t } else { \n \n return $resultado;\n\t\t}\n }", "public function get_id();", "public function get_id();", "function p_crear_usuario(\n\t\t\t\t$cod_usuario\t\t\t\t\t,\n\t\t\t\t$txt_login\t\t\t\t\t\t,\n\t\t\t\t$txt_password\n\t\t){\n\t\t\tglobal $db;\n\t\t\t$query =\"\n\t\t\tinsert into\tseg_usuario(\n\t\t\ttxt_login\t\t,\n\t\t\tcod_usuario\t\t,\n\t\t\tind_bloqueado\t,\n\t\t\ttxt_password\n\t\t\t)values(\n\t\t\t'$txt_login'\t,\n\t\t\t'$cod_usuario'\t,\n\t\t\t0\t\t\t\t,\n\t\t\t'$txt_password'\n\t\t\t)\";\n\t\t\t$db->consultar($query);\t\n\t\t\t$cod_pk\t= $GLOBALS['fn_ultimo_registro'];\n\t\t\treturn $cod_pk;\n\t\t}", "function consultarUsuarioEspecifico(){\n global $conexion, $data;\n $id = $data[\"id\"];\n $resultado = mysqli_query($conexion,\"SELECT * FROM usuario WHERE usu_id='$id'\");\n echo validarError($conexion, false, $resultado);\n }", "function validatedLogin($email,$contra){\n $query = \"SELECT\n id_usuario,\n nombre,\n apellidoP,\n apellidoM,\n email,\n fechaNac,\n nombreRol,\n valuePermission\n FROM\n usuario\n LEFT JOIN(rol) ON usuario.rol_id = rol.id_rol\n WHERE\n usuario.email = \".$this->db->escape($email).\" AND\n pass = \".$this->db->escape($contra).\"\n \";\n return $this->db->query($query);\n }", "static public function ctrCrearTamanio(){\n\n\t\tif(isset($_POST[\"nuevoID\"])){\n\n\t\t\tif(preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"nuevoID\"]) &&\n\t\t\t preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"nuevoNombre\"])){\n\n\t\t\t\t$tabla = \"Tamanio\";\n\n\t\t\t\t$datos = array(\"ID\" => $_POST[\"nuevoID\"],\n\t\t\t\t\t \"Nombre\" => $_POST[\"nuevoNombre\"]);\n\n\t\t\t\t$respuesta = ModeloTamanio::mdlIngresarTamanio($tabla, $datos);\n\n\n\n\t\t\t\tif($respuesta == \"ok\"){\n\n\t\t\t\t\techo'<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\t type: \"success\",\n\t\t\t\t\t\t title: \"El tamaño ha sido guardado correctamente\",\n\t\t\t\t\t\t showConfirmButton: true,\n\t\t\t\t\t\t confirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t }).then(function(result){\n\t\t\t\t\t\t\t\t\tif (result.value) {\n\n\t\t\t\t\t\t\t\t\twindow.location = \"tamanio\";\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\n\t\t\t\t\t</script>';\n\n\t\t\t\t}\n\n\n\t\t\t}else{\n\n\t\t\t\techo'<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\t type: \"error\",\n\t\t\t\t\t\t title: \"¡Los campos no pueden ir vacíos o llevar caracteres especiales!\",\n\t\t\t\t\t\t showConfirmButton: true,\n\t\t\t\t\t\t confirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t }).then(function(result){\n\t\t\t\t\t\t\tif (result.value) {\n\n\t\t\t\t\t\t\twindow.location = \"tamanio\";\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\n\t\t\t \t</script>';\n\n\t\t\t}\n\n\t\t}\n\n\t}", "public function accion(){\n \t$accion = $this->accion;\n \tif ($accion == 'CREAR') {\n \t\t$accion = \"CREACION\";\n \t}else{\n \t\t$accion = \"EDICION\";\n \t}\n \treturn $accion;\n }", "function getNom($email, $passXifrada){\n $conn=connexioBD();\n $sql=\"SELECT nom FROM usuaris WHERE email='$email' and password='$passXifrada'\";\n if (!$resultado = $conn->query($sql)) {\n die(\"Error en la consulta\".$conn->error);\n }\n if($resultado->num_rows>=0){\n while($usuari=$resultado->fetch_assoc()){\n $nom=$usuari[\"nom\"]; \n }\n }\n $resultado->free();\n $conn->close();\n return $nom;\n}", "public function getID() : string;", "public function getStrId();", "function BUsu($cedula){\r\n\t\t$nombre = ValTexto($nombre);\r\n\t\t$sql = \"SELECT * FROM usuarios WHERE personas_cedula = '$cedula'\";\r\n\t\t\tif($ej=mysql_query($sql)) {\r\n\t\t\t\t$datos = mysql_fetch_array($ej);\r\n\t\t\t}\r\n\t\treturn $datos;\r\n}", "function createUtenteScuola($name, $surname, $user_email, $password) {\n // This could be supplied by a user, for example\n // Formulate Query\n // This is the best way to perform an SQL query\n // For more examples, see mysql_real_escape_string()\n $query = sprintf(\"INSERT INTO scuola.utenti_scuola(cognome, nome, email, password)\" .\n \"VALUES ('%s','%s','%s','%s')\", mysql_real_escape_string(strtoupper($surname), $GLOBALS['link']), mysql_real_escape_string(strtoupper($name), $GLOBALS['link']), mysql_real_escape_string($user_email, $GLOBALS['link']), mysql_real_escape_string(base64_encode(base64_encode($password)), $GLOBALS['link']));\n\n // Perform Query\n $result = mysql_query($query);\n if ($result) {\n $msg = \"Utente Scuola creato: \" . $surname . \" \" . $name;\n setcookie(\"message\", $msg);\n }\n return $result;\n }", "abstract public function getCruser();", "public function GetId () ;", "public function ctrRegistroUsuario(){\n\n\t\tif(isset($_POST[\"numero_id\"])){\n\t\t\n\t\t\t$ruta = RouteController::ctrRoute();\n\n\t\t\tif(preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"numero_id\"]) /*preg_match('/^[a-zA-ZñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"numero_id\"]) &&\n\t\t\t preg_match('/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/', $_POST[\"registroEmail\"]) &&\n\t\t\t preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"registroPassword\"])*/){\n\n\t\t\t\t//$encriptar = crypt($_POST[\"password1\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n\t\t\t\t$encriptar = crypt($_POST[\"password1\"], '$2a$07$asxx54ahjppf17sd87a5a4dDDGsystemdevmybebe$');\n\n\t\t\t\t$encriptarEmail = md5($_POST[\"email\"]);\n\n\t\t\t\t$tabla = \"genusuario\";\n\t\t\t\t$datos = array(\"genrol\" => \"1\",\n\t\t\t\t\t\t\t \"usunombre\" => $_POST[\"numero_id\"],\n\t\t\t\t\t\t\t \"usudescrip\" => $_POST[\"nombre\"],\n\t\t\t\t\t\t\t \"usuclave\" => $encriptar,\n\t\t\t\t\t\t\t \"usuemail\" => $_POST[\"email\"],\n\t\t\t\t\t\t\t \"usuemailen\" => $encriptarEmail,\n\t\t\t\t\t\t\t \"usuverific\" => 0); \n\n\t\t\t\t\n\t\t\t\t$respuesta = UserModel::mdlRegistroUsuario($tabla, $datos);\t\t\t\t\n\n\t\t\t\tif($respuesta == \"ok\"){\n\n\t\t\t\t\t/*=============================================\n\t\t\t\t\tVerificación Correo Electrónico\n\t\t\t\t\t=============================================*/\n\n\t\t\t\t\tdate_default_timezone_set(\"America/Bogota\");\n\n\t\t\t\t\t$mail = new PHPMailer(true);\n\t\t\t\n\n\t\t\t\t\t$mail->Charset = \"UTF-8\";\n\n\t\t\t\t\t$mail->isMail();\n\n\t\t\t\t\t$mail->setFrom(\"[email protected]\", \"SDH Soluciones \",0);\n\n\t\t\t\t\t$mail->addReplyTo(\"[email protected]\", \"Informacion SDH Soluciones\");\n\n\t\t\t\t\t$mail->Subject = \"Por favor verifique su direcci&oacute;n de correo electr&oacute;nico\";\n\n\t\t\t\t\t$mail->addAddress($_POST[\"email\"]);\n\n\t\t\t\t\t$mail->msgHTML('<div style=\"width:100%; background:#eee; position:relative; font-family:sans-serif; padding-bottom:40px\">\n\t\n\t\t\t\t\t<center>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t<img style=\"padding:20px; width:10%\" src=\"http://reservi.tech/views/img/logo.png\">\n\n\t\t\t\t\t</center>\n\n\t\t\t\t\t<div style=\"position:relative; margin:auto; width:600px; background:white; padding:20px\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<center>\n\n\t\t\t\t\t\t\t<img style=\"padding:20px; width:15%\" src=\"http://reservi.tech/views/img/logo.png\">\n\n\t\t\t\t\t\t\t<h3 style=\"font-weight:100; color:#999\">VERIFIQUE SU DIRECCI&Oacute;N DE CORREO ELECTR&Oacute;NICO</h3>\n\n\t\t\t\t\t\t\t<hr style=\"border:1px solid #ccc; width:80%\">\n\n\t\t\t\t\t\t\t<h4 style=\"font-weight:100; color:#999; padding:0 20px\">Para comenzar a usar su cuenta, debe confirmar su direcci&oacute;n de correo electr&oacute;nico</h4>\n\n\t\t\t\t\t\t\t<a href=\"'.$ruta.$encriptarEmail.'\" target=\"_blank\" style=\"text-decoration:none\">\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div style=\"line-height:60px; background:#0aa; width:60%; color:white\">Verifique su direcci&oacute;n de correo electr&oacute;nico</div>\n\n\t\t\t\t\t\t\t</a>\n\n\t\t\t\t\t\t\t<br>\n\n\t\t\t\t\t\t\t<hr style=\"border:1px solid #ccc; width:80%\">\n\n\t\t\t\t\t\t\t<h5 style=\"font-weight:100; color:#999\">Si no se inscribi&oacute; en esta cuenta, puede ignorar este correo electr&oacute;nico y eliminarlo.</h5>\n\n\t\t\t\t\t\t</center>\t\n\n\t\t\t\t\t</div>\n\n\t\t\t\t</div>');\n\t\t\t\t\t\t\t\n\t\t\t\t\t$envio = $mail->Send();\n\n\t\t\t\t\tif(!$envio){\n\n\t\t\t\t\t\techo '<script>\n\n\t\t\t\t\t\t\tswal({\n\n\t\t\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\t\t\ttitle: \"¡ERROR!\",\n\t\t\t\t\t\t\t\ttext: \"¡¡Ha ocurrido un problema enviando verificación de correo electrónico a '.$_POST[\"email\"].' '.$mail->ErrorInfo.', por favor inténtelo nuevamente\",\n\t\t\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\t\t\tif(result.value){\n\n\t\t\t\t\t\t\t\t\thistory.back();\n\n\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t});\t\n\n\t\t\t\t\t\t</script>';\n\n\n\t\t\t\t\t}else{\n\n\n\t\t\t\t\t\techo '<script>\n\n\t\t\t\t\t\t\tswal({\n\n\t\t\t\t\t\t\t\ttype:\"success\",\n\t\t\t\t\t\t\t\ttitle: \"¡SU CUENTA HA SIDO CREADA CORRECTAMENTE!\",\n\t\t\t\t\t\t\t\ttext: \"¡Por favor revise la bandeja de entrada o la carpeta SPAM de su correo electrónico para verificar la cuenta!\",\n\t\t\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\t\t\tif(result.value){\n\n\t\t\t\t\t\t\t\t\twindow.location = \"'.$ruta.'ingreso\";\n\n\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t});\t\n\n\t\t\t\t\t\t</script>';\n\n\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t}else{\n\n\t\t\t\techo '<script>\n\n\t\t\t\t\tswal({\n\n\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\ttitle: \"¡CORREGIR!\",\n\t\t\t\t\t\ttext: \"¡No se permiten caracteres especiales en ninguno de los campos!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\n\t\t\t\t\t\t\thistory.back();\n\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t});\t\n\n\t\t\t\t</script>';\n\n\n\t\t\t}\n\n\t\t}\n\n\t}", "function RegistrarCliente($DATA){ \n try{ \n $bd = new BD;\n $conn = $bd->conectar(); \n\n if (!$conn) {\n echo 'No pudo conectarse a mysql';\n exit;\n } \n \n $sql = \"\n INSERT INTO `clientes`(\n `NOMBRE`, `APELLIDO`\n ) VALUES ( \n '\".$DATA['nombre'].\"', \n '\".$DATA['apellido'].\"' \n )\";\n \n $resultado = mysqli_query($conn, $sql); \n \n if (!$resultado) {\n echo \"Error de BD, no se pudo consultar la base de datos\\n\";\n echo \"Error MySQL: \" . mysqli_error($conn);\n echo \"<br> $sql\";\n exit;\n }\n \n return mysqli_insert_id($conn); \n } \n catch(Exception $e){ \n echo(\"Error!\");\n return \"Error en la consulta\"; \n } \n }", "public function getID(): string;", "public function getID();", "public function getID();", "public function getID();", "function ObtenerApellidoParaBuscar($apellidosarch)\n{\n\tglobal $con;\n\t\n\t$query_ConsultaFuncion = sprintf(\"SELECT id_student FROM students WHERE surname = %s \",\n\t\t GetSQLValueString($apellidosarch, \"text\"));\n\t//echo $query_ConsultaFuncion;\n\t$ConsultaFuncion = mysqli_query($con, $query_ConsultaFuncion) or die(mysqli_error($con));\n\t$row_ConsultaFuncion = mysqli_fetch_assoc($ConsultaFuncion);\n\t$totalRows_ConsultaFuncion = mysqli_num_rows($ConsultaFuncion);\n\t\n\treturn $row_ConsultaFuncion[\"id_student\"];\t\n\t\n\tmysqli_free_result($ConsultaFuncion);\n}", "public function generarCiu($nombre, $apellidos, $fnac)\n {\n //ponemos la primera letra en mayuscula y separamos el nombre en caracteres\n $nombre = ucfirst($nombre);\n $nombre = str_split($nombre, 1);\n\n //dividimos en 2 apellidos\n $apellidos = explode(\" \", $apellidos);\n\n //dividimos cada apellido en caracteres y les ponemos la primera letra en mayuscula\n $apellido1 = $apellidos[0];\n $apellido1 = ucfirst($apellido1);\n $apellido1 = str_split($apellido1, 1);\n\n $apellido2 = $apellidos[1];\n $apellido2 = ucfirst($apellido2);\n $apellido2 = str_split($apellido2, 1);\n\n //primer y tercer caracter de nombre y apellidos\n $ciu = $nombre[0] . $nombre[2] . $apellido1[0] . $apellido1[2] . $apellido2[0] . $apellido2[2];\n\n //convertimos a timestamp\n $fnac = strtotime($fnac);\n\n //fecha de nacimiento\n $ciu .= date(\"Y\", $fnac);\n $ciu .= date(\"m\", $fnac);\n $ciu .= date(\"d\", $fnac);\n\n //hacemos un bucle para comprobar que no exista ya un usuario con el mismo CIU\n\n $existe = true;\n $numero = 0;\n $nuevoCiu = \"\";\n\n //si existe el formato será NnAaAaAAAAMMDD[$numero]\n //por ejemplo: AeDnDl199912171 | AeDnDl199912172 | AeDnDl199912173 | AeDnDl199912174 etc\n do {\n //nuevo CIU a comprobar\n $nuevoCiu = $ciu . $numero;\n $cantidad = $this->Usuarios_model->comprobarExistencia($nuevoCiu);\n\n //si existe incrementamos el numero en uno\n if ($cantidad >= 1) {\n $numero++;\n } else {\n $existe = false;\n }\n } while ($existe);\n\n return $nuevoCiu;\n }", "static public function ctrInsertAccion(){\n if(isset($_POST[\"nuevaAccion\"])){\n if(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"nuevaAccion\"])){\n $tabla = \"tipoaccion\";\n $datos = array(\n \"accion\" => $_POST[\"nuevaAccion\"]\n );\n\n $respuestas = ModeloTipoAccion::mdlInsertTipoAccion($tabla,$datos);\n\n if($respuestas == \"ok\"){\n echo '<script>\n\n\t\t\t\t\tSwal.fire({\n\n\t\t\t\t\t\ticon: \"success\",\n\t\t\t\t\t\ttitle: \"¡la accion ha sido guardado correctamente!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\n\t\t\t\t\t\t\twindow.location = \"tipoAccion\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\n\t\t\t\t\t</script>';\n }\n\n }else{\n echo '<script>\n\n\t\t\t\tSwal.fire({\n\n\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\ttitle: \"¡La accion no puede ir vacío o llevar caracteres especiales!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\twindow.location = \"tipoAccion\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\n\t\t\t\t</script>';\n }\n\n }\n }", "function obtenerClienteID($cedula){\n\n $query = $this->db->get('cliente');\n if($query-> num_rows() > 0){\n\t \t\n $row = $query->row($cedula);\n\n\t\tif (isset($row))\n\t\t{\n \treturn $row->id;\n\t\t}\n \n\t }else return false ;\n\t \n\t}", "abstract public function get_id();", "public function getIdentity(): string | null;", "public function getId (){\n $conn = Connection::getConn();\n $sql = 'SELECT * FROM usuarios WHERE email = :email';\n $stmt = $conn->prepare($sql);\n\n $stmt->bindValue(':email',$this->email );\n\n $stmt->execute();\n\n if ($stmt->rowCount()){\n $result = $stmt->fetch(); \n }\n $id = $result['id']; \n return $id;\n }", "static public function ctrObtenerMensajePorId(){\n\n\t\t\tif(isset($_GET[\"id\"])){\n\n\t\t\t\t$tabla = \"mensajes\";\n\n\t\t\t\t$id = $_GET[\"id\"];\n\n\t\t\t\t$respuesta = ModeloMensajes::mdlObtenerMensajePorId($tabla, $id);\n\n\t\t\t\treturn $respuesta;\t\n\t\t\t\n\t\t\t}\n\n \t}", "function agregaColaEstudiante ($cod, $nom, $carr, $pass){\n\t$paraCodigo = '/^[0-9]+$/';\n\t$paraNombre = '/^[a-zA-Z_áéíóúñ\\s.]*$/';\n\t$paraContraseña = '/^[0-9a-zA-Z_áéíóúñ\\s]*$/';\n\n\t$cod = stripslashes($cod);\n\t$cod = mysql_real_escape_string($cod);\n\t$cod = htmlspecialchars($cod);\n\n\t$nom = stripslashes($nom);\n\t$nom = mysql_real_escape_string($nom);\n\t$nom = htmlspecialchars($nom);\n\n\t$carr = stripslashes($carr);\n\t$carr = mysql_real_escape_string($carr);\n\t$carr = htmlspecialchars($carr);\n\n\t$pass = stripslashes($pass);\n\t$pass = mysql_real_escape_string($pass);\n\t$pass = htmlspecialchars($pass);\n\n\t$mensaje = turnosDisponibles($carr);\n\n\tif(carreraExiste($carr) != 1){\n\t\treturn \"Mensaje:Error programa no existe.\";\n\t}else if ($cod == \"\" || $cod == \" \" || $cod == null) {\n\t\treturn \"Mensaje:Codigo de estudiante suministrado no valido.\";\n\t}else if ($pass == \"\" || $pass == \" \" || $pass == null) {\n\t\treturn \"Mensaje:Las contraseñas suministradas solo contienen letras y/o numeros.\";\n\t}else\tif (preg_match($paraCodigo, $cod) != 1) {\n\t\treturn \"Mensaje:Las contraseñas suministradas solo contienen letras y/o numeros.\";\n\t}else if (preg_match($paraNombre, $nom) != 1) {\n\t\treturn \"Mensaje:Los nombre no llevan numeros.\";\n\t}else if(preg_match($paraContraseña, $pass) != 1){\n\t\treturn \"Mensaje:Codigo de estudiante suministrado no valido.\";\n\t}else\tif ($mensaje == \"Bien\") {\n\t\t\t$host = \"localhost\";\n\t\t\t$usuario = \"root\";\n\t\t\t$password = \"\";\n\t\t\t$BaseDatos = \"pide_turno\";\n\n\t\t\t$link=mysql_connect($host,$usuario,$password);\n\t\t\tmysql_select_db($BaseDatos,$link);\n\t\t\t$consultaSQL = \"INSERT INTO turnos (codigo, nombre, carrera, clave, estado) VALUES ('$cod', '$nom', '$carr', '$pass', 'No atendido')\";\n\t\t\tmysql_query(\"SET NAMES utf8\");\n\t\t\tif (mysql_query($consultaSQL,$link)) {\n\t\t\t\t$result =\"Mensaje:Turno agregado satisfactoriamente.\";\n\t\t\t}else{\n\t\t\t\t$result =\"Mensaje:El codigo que menciona ya tiene un turno.\";\n\t\t\t}\n\t\t\tmysql_close($link);\n\t\t\treturn $result;\n\t\t}else{\n\t\t\treturn $mensaje;\n\t\t}\n\treturn \"Mensaje:Problema al contactar con el servidor, espere un momento y actualice la página o verifique su conexión a internet.\";\n}", "static public function ctrCrearCcuerpo(){\n\n if(isset($_POST[\"nuevoCcuerpo\"])){\n\n\t\t\tif(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ\\- ]+$/', $_POST[\"nuevoCcuerpo\"])){\n\n\t\t\t\t$tabla = \"cuartel_cuerpos\";\n\n\t\t\t\t$datos = array(\"tipo_sep\"=> $_POST[\"nuevoTproducto\"],\n \"nombre\"=> $_POST[\"nuevoCcuerpo\"],\n \"id_sociedad\" => '0',\n \"id_cementerio\"=> $_POST[\"nuevoCementerio\"]);\n\n\t\t\t\t$respuesta = ModeloCcuerpo::mdlIngresarCcuerpo($tabla, $datos);\n print_r($respuesta);\n\t\t\t\tif($respuesta == \"ok\"){\n\n\t\t\t\t\techo'<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\t type: \"success\",\n\t\t\t\t\t\t title: \"El Cuartel-Cuerpo ha sido guardado correctamente\",\n\t\t\t\t\t\t showConfirmButton: true,\n\t\t\t\t\t\t confirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t }).then(function(result){\n\t\t\t\t\t\t\t\t\tif (result.value) {\n\n\t\t\t\t\t\t\t\t\twindow.location = \"cuartel-cuerpo\";\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\n\t\t\t\t\t</script>';\n\n\t\t\t\t}\n\n\n\t\t\t}else{\n\n\t\t\t\techo'<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\t type: \"error\",\n\t\t\t\t\t\t title: \"¡El Cuartel-Cuerpo no puede ir vacío o llevar caracteres especiales!\",\n\t\t\t\t\t\t showConfirmButton: true,\n\t\t\t\t\t\t confirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t }).then(function(result){\n\t\t\t\t\t\t\tif (result.value) {\n\n\t\t\t\t\t\t\twindow.location = \"cuartel-cuerpo\";\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\n\t\t\t \t</script>';\n\n\t\t\t}\n\n\t\t}\n\n\t}", "public function getUsuarioUni($idusuario) {\n }", "public function fnInsertReturnId()\n {\n $cNew_Data = \"INSERT INTO $this->table ($this->column) VALUES($this->value)\";\n //$this->fnRegLogs($this->table, \"INSERT\", $cNew_Data, \"\");\n try {\n $model = new connection();\n $connection = $model->fnConnect();\n $connection->setAttribute(PDO::ATTR_EMULATE_PREPARES, TRUE);\n $result = $connection->prepare(\"INSERT INTO $this->table ($this->column) VALUES($this->value)\");\n $array = explode(\"|\", $this->placeholder);\n $this->message = \"Error al Crear, Verifique que NO Exista otro Registro con el Mismo Nombre de \";\n for ($i = 1; $i <= count($array); $i++)\n $result->bindParam($i, $array[$i - 1]);\n if ($result) {\n $result->execute();\n $this->message = \"Registro Almacenado Correctamente!\";\n $lastInsert = $connection->lastInsertId();\n return $lastInsert;\n }\n return 0;\n } catch (Exception $e) {\n return $this->message = $e->getMessage();\n }\n }", "public function ctrIngresoUsuario(){\n\n\t\tif(isset($_POST[\"user01\"])){\n\n\t\t//\t if(preg_match('/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/', $_POST[\"ingresoEmail\"]) && preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"ingresoPassword\"])){\n\n\t\t\t \t//$encriptar = crypt($_POST[\"ingresoPassword\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n\t\t\t\t$encriptar = crypt($_POST[\"passwords01\"], '$2a$07$asxx54ahjppf17sd87a5a4dDDGsystemdevmybebe$');\n\n\t\t\t \t$tabla = \"genusuario\";\n\t\t\t \t$item = \"usunombre\";\n\t\t\t \t$valor = $_POST[\"user01\"];\n\n\t\t\t \t$respuesta = UserModel::mdlMostrarUsuarios($tabla, $item, $valor);\n\n\t\t\t\t//echo \"<pre>\".print_r($respuesta).\"</pre>\";\n\n\t\t\t \tif($respuesta[\"usunombre\"] == $_POST[\"user01\"] && $respuesta[\"usuclave\"] == $encriptar){\n\n\t\t\t \t\tif($respuesta[\"usuverific\"] == 0){\n\n\t\t\t \t\t\techo'<script>\n\n\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\t\t\t \ttitle: \"¡ERROR!\",\n\t\t\t\t\t\t\t\t \ttext: \"¡El correo electrónico aún no ha sido verificado, por favor revise la bandeja de entrada o la carpeta SPAM de su correo electrónico para verificar la cuenta, o contáctese con nuestro soporte a [email protected]!\",\n\t\t\t\t\t\t\t\t \tshowConfirmButton: true,\n\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\t\t\t\tif(result.value){ \n\t\t\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t</script>';\n\n\t\t\t\t\t\treturn;\n\n\t\t\t \t\t}else{\n\n\t\t\t \t\t\t$_SESSION[\"validarSesion\"] = \"ok\";\n\t\t\t \t\t\t$_SESSION[\"id\"] = $respuesta[\"oid\"];\n\n\t\t\t \t\t\t$ruta = RouteController::ctrRoute();\n\n\t\t\t \t\t\techo '<script>\n\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"'.$ruta.'backoffice\";\t\t\t\t\n\n\t\t\t\t\t\t</script>';\n\n\t\t\t \t\t}\n\n\t\t\t \t}else{\n\n\t\t\t \t\techo'<script>\n\n\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\t\t \ttitle: \"¡ERROR!\",\n\t\t\t\t\t\t\t \ttext: \"¡El email o contraseña no coinciden!\",\n\t\t\t\t\t\t\t \tshowConfirmButton: true,\n\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\t\t\tif(result.value){ \n\t\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t\t } \n\t\t\t\t\t\t});\n\n\t\t\t\t\t</script>';\n\n\t\t\t \t}\n\n\n\t\t/*\t }else{\n\n\t\t\t \techo '<script>\n\n\t\t\t\t\tswal({\n\n\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\ttitle: \"¡CORREGIR!\",\n\t\t\t\t\t\ttext: \"¡No se permiten caracteres especiales en ninguno de los campos!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\n\t\t\t\t\t\t\thistory.back();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\t\n\n\t\t\t\t</script>';\n\n\t\t\t }*/\n\n\t\t}\n\n\t}", "function db_get_myid($table,$realid)\r\n{\r\n $dbc=new db_control;\r\n $dbc->host=$GLOBALS['host'];\r\n $dbc->dbname=$GLOBALS['dbname'];\r\n $dbc->username=$GLOBALS['username'];\r\n $dbc->pass=$GLOBALS['pass'];\r\n $dbc->table=$table;\r\n $dbc->realid=$realid;\r\n return $dbc->get_myid();\r\n}", "function get_client($id_cliente)\n {\n $conexao = open_database_connection();\n\n $id = mysql_real_escape_string($id_cliente);\n\n $query = 'SELECT nome_cliente FROM cliente WHERE id_cliente = '.$id;\n\n $result = mysql_query($query);\n $row = mysql_fetch_assoc($result);\n\n close_database_connection($conexao);\n\n return $row;\n }", "public function selecionarEmpresaContratadaWhere($id){\n\t\t\ttry\n {\n $sql = \"SELECT * FROM empresa_contratada WHERE id = ?\";\n $busca = $this->conexao->conectar()->prepare($sql);\n\t\t\t\t$busca->bindParam(1,$id);\n $busca->execute();\n return $busca->fetchALL(PDO::FETCH_OBJ);\n }\n catch(PDOException $erro)\n {\n echo \"Erro\" . $erro->getMessage();\n }\t\n\t\t}", "public function obtenerSaldo();", "public function getClioidByContrato($connumero) {\r\n\r\n $sql = \"SELECT conclioid FROM contrato WHERE connumero = $connumero\";\r\n\r\n $result = $this->_fetchAssoc(pg_query($this->_adapter, $sql));\r\n\r\n return isset($result['conclioid']) ? $result['conclioid'] : ''; \r\n }", "function __obtenerCorreoReferente($encryptedID = null) {\n\t\t//\n\t\t//$totalUsuarios = $this->User->find('first', array('conditions' => array()));\n\t\t$max_id = $this -> User -> find('first', array('fields' => array('MAX(User.id) as user_id')));\n\t\t$usuario = null;\n\t\tfor ($id = 1; $id <= $max_id; $id++) {\n\t\t\tif ($encryptedID == crypt($id, \"23()23*$%g4F^aN!^^%\")) {\n\t\t\t\t// Las ID son iguales, abonar por recomendacion\n\t\t\t\t//\n\t\t\t\t$usuario = $this -> User -> read(null, $id);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// Seguir buscando\n\t\t\t\t//\n\t\t\t}\n\t\t}\n\t\treturn $usuario['User']['email'];\n\t}", "function Cuerpo($acceso,$id_contrato)\n\t{\n\t\t//echo \"SELECT *FROM vista_contrato where id_contrato='$id_contrato'\";\n\t\t$acceso->objeto->ejecutarSql(\"SELECT tarifa_ser FROM vista_tarifa where id_serv='BM00001'\");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$costo_inst=utf8_decode(trim($row['tarifa_ser']));\n\t\t}\n\t\t//echo \"update contrato set contrato_imp='SI' where id_contrato='$id_contrato'\";\n\t\t$acceso->objeto->ejecutarSql(\"update contrato set contrato_imp='SI' where id_contrato='$id_contrato'\");\n\t\t$acceso->objeto->ejecutarSql(\"SELECT *FROM vista_contrato where id_contrato='$id_contrato'\");\n\t\tif($row=row($acceso)){\n\t\t\n\t\t\t$observacion=utf8_decode(trim($row['observacion']));\n\t\t\t$costo_contrato=utf8_decode(trim($row['costo_contrato']));\n\t\t\t$tipo_cliente=utf8_decode(trim($row['tipo_cliente']));\n\t\t\t$nombrecli=utf8_decode(trim($row['nombrecli']));\n\t\t\t$apellidocli=utf8_decode(trim($row['apellido']));\n\t\t\t$nombrecli=utf8_decode(trim($row['nombre']));\n\t\t\t$etiqueta=utf8_decode(trim($row['etiqueta']));\n\t\t\t$cedulacli=utf8_decode(trim($row['cedula']));\n\t\t\t\n\t\t\t$fecha=formatofecha(trim($row[\"fecha_contrato\"]));\n\t\t\t$fecha_nac=formatofecha(trim($row[\"fecha_nac\"]));\n\t\t\t\n\t\t\t\n\t\t\t$nro_contrato=trim($row['nro_contrato']);\n\t\t\t$id_contrato=trim($row['id_contrato']);\n\t\t\n\t\t\n\t\t\t$puntos=utf8_decode(trim($row['puntos']));\n\t\t\t$deuda=utf8_decode(trim($row['deuda']));\n\t\t\tif($deuda==\"\"){\n\t\t\t\t$deuda=0;\n\t\t\t}\n\t\t\t\n\t\t\t$deuda=number_format($deuda, 2, ',', '.');\n\t\t\t$nombre_zona=utf8_decode(trim($row['nombre_zona']));\n\t\t\t$nombre_sector=utf8_decode(trim($row['nombre_sector']));\n\t\t\t$nombre_calle=utf8_decode(trim($row['nombre_calle']));\n\t\t\t$numero_casa=utf8_decode(trim($row['numero_casa']));\n\t\t\t$telefono=utf8_decode(trim($row['telefono']));\n\t\t\t$telf_casa=utf8_decode(trim($row['telf_casa']));\n\t\t\t$telf_adic=utf8_decode(trim($row['telf_adic']));\n\t\t\t$email=utf8_decode(trim($row['email']));\n\t\t\t$direc_adicional=utf8_decode(trim($row['direc_adicional']));\n\t\t\t$id_persona=utf8_decode(trim($row['id_persona']));\n\t\t\t$postel=utf8_decode(trim($row['postel']));\n\t\t\t$taps=utf8_decode(trim($row['taps']));\n\t\t\t$pto=utf8_decode(trim($row['pto']));\n\t\t\t$edificio=utf8_decode(trim($row['edificio']));\n\t\t\t$numero_piso=utf8_decode(trim($row['numero_piso']));\n\t\t}\n\t\t$acceso->objeto->ejecutarSql(\"SELECT nombre,apellido FROM persona where id_persona='$id_persona' LIMIT 1 offset 0 \");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$vendedor=utf8_decode(trim($row['nombre'])).\" \".utf8_decode(trim($row['apellido']));\n\t\t\t\n\t\t}\n\n\t\tif($tipo_cliente=='JURIDICO'){\n\t\t\t$rif=$cedulacli;\n\t\t\t$cedulacli='';\n\t\t}\n\t\t\n\t\t\n\t\t$this->Ln();\t\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetXY(10,35);\t\t\n\t\t$this->Cell(195,10,\"Abonado: $nro_contrato\",\"0\",0,\"R\");\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t$this->SetXY(40,50);\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PERSONA JURIDICA.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Razón Social.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Actividad.\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"RIF. $rif\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail.\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Telef.\",\"1\",0,\"J\");\n\t\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Representante Legal\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"C.I: \",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Cargo en la Empresa.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PERSONA NATURAL.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Apellidos y Nombres: $nombrecli $apellidocli\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Cédula: $cedulacli\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Fecha de Nac: $fecha_nac\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Profesión u Oficio: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: $telf_casa\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: $telefono\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: $telf_adic\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"E-mail: $email\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Ingreso Mensual: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Deposito en Garantia: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(130,6,\"Tipo Vivienda: Propia ___ Alquilado ___ Canon Mensual: ____\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(65,6,\"Vencimiento del Contrato: / / \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"DATOS DEL CONYUGUE.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Apellidos y Nombres: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Cédula: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Fecha de Nac: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Profesión u Oficio: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail: \",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Ingreso Mensual.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"DOMICILIO DEL SERVICIO\",\"1\",0,\"C\");\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Apellidos: $apellidocli\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Vendedor: $vendedor\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Suscriptor Nº: $nro_contrato\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Fecha: $fecha\",\"1\",0,\"J\");*/\n\t\t\t\t\n\t\n\t\t/*if($tipo_cliente=='JURIDICO'){\n\t\t\t$rif=$cedulacli;\n\t\t\t$cedulacli='';\n\t\t}*/\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"C.I. $cedulacli\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"RIF. $rif\",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Ocupación: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Grupo Familiar Nº:\",\"1\",0,\"J\");\n\t\tif($fecha_nac=='11/11/1111'){\n\t\t\t$fecha_nac='';\n\t\t}\n\t\t$this->Cell(65,6,\"Fecha de Nacimiento : $fecha_nac\",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',12);\n\t\t$this->SetX(10);\n\t\t$this->SetFillColor(76,136,206);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(195,6,\"DOMICILIO DE SERVICIO\",\"1\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);*/\n\t\t\n\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Urb o Sector: $nombre_sector\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(97,6,\"Calle n°: \",\"1\",0,\"J\");\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Avenida o Calle: $nombre_calle\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(97,6,\"Vereda : \",\"1\",0,\"J\");\t\t\n\t\t\n\t\tif($edificio!='')\n\t\t\t$apto=$numero_casa;\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Edificio: $edificio\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Piso:\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"N° de Casa o Apto: $numero_casa $apto\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(130,6,\"Referencia o Zona: $nombre_zona N°Poste:$postel\",\"1\",0,\"J\");\n\t\t//$this->Cell(65,6,\"N° de Poste: $postel\",\"0\",0,\"J\");\n\t\t$this->Cell(65,6,\"Ruta Cuenta: \",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Zona: $nombre_zona\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Manzana: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Urb.: $nombre_sector\",\"1\",0,\"J\");*/\n\t\t\n\t\t/*if($edificio!='')\n\t\t\t$apto=$numero_casa;\n\t\t\n\t\t$this->Cell(97,6,\"Apto.: $apto\",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Edificio: $edificio\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Cod. Postal: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: $telf_casa\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: $telefono\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: $telf_adic\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t//Rect( float x, float y, float w, float h [, string style])\n\t\t$this->Cell(98,6,\"Vivienda Alquilada: SI ____ NO ____\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Fecha de Vencimineto de Alquiler: \",\"1\",0,\"J\");\n\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail: $email\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Proveedor de Internet: \",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','B',12);\n\t\t$this->SetX(10);\n\t\t$this->SetFillColor(76,136,206);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(195,6,\"SERVICIOS CONTRATADOS\",\"1\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);*/\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"SERVICIOS CONTRATADOS\",\"1\",0,\"C\");\t\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"SERVICIOS \",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,6,\"CANT.\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"P. UNITARIO \",\"1\",0,\"C\");\n\t\t$this->Cell(35,6,\"P. TOTAL \",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Instalación Principal\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"1\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Tomas Adicionales\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Cable Coaxial\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Conectores\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Espliter\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\" \",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(60,5,\"TOTAL A PAGAR BS\",\"1\",0,\"R\");\n\t\t$this->Cell(35,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(50,5,\"FECHA ESTIMADA\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(25,5,\"\",\"LRT\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(25,5,\"HORA\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(30,5,\"\",\"LRT\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(30,5,\"TOTAL A\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(35,5,\"$costo_contrato\",\"LRT\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(50,5,\"DE INSTALACION\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(25,5,\"\",\"LRB\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(25,5,\"SUGERIDA\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(30,5,\"\",\"LRB\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(30,5,\"PAGAR Bs.\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(35,5,\"\",\"LRB\",0,\"C\");*/\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PROGRAMACIÓN\",\"1\",0,\"C\");\t\t\t\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Descripción.\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\"Monto\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"Firma Abonado\",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Descripción\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\"Monto\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"Firma Abonado\",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Familiar Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Extendido Bs \",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Premium I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Premium I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Adulto Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Comercial I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"Monto de Contrato: Bs. $costo_inst\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(95,6,\"Firma del Abonado:_________________________ \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"Puntos Adicionales:_________________________\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(95,6,\"Costo Punto Adicional:_______________________\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Tiempo de Instalación:\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Total a Cancelar Mensual:\",\"1\",0,\"J\");\n\t\t$this->Cell(30,6,\"Total:\",\"1\",0,\"J\");\n\t\t$this->Cell(35,6,\"Contrato:\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Observaciones.\",\"1\",0,\"J\");\n\t\t\t\t\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"$observacion\",\"1\",0,\"J\");*/\n\t\t\n\t/*\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"RECIBO DE PAGO\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"*EL PRECIO INCLUYE EL IMPUESTO DE LEY\",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(35,6,\"Efectivo\",\"1\",0,\"C\");\n\t\t$this->Cell(35,6,\"Cheque\",\"1\",0,\"C\");\n\t\t$this->Cell(65,6,\"Cargo Cta. Cte.\",\"1\",0,\"C\");\n\t\t$this->Cell(60,6,\"Tarjeta de Credito:\",\"1\",0,\"C\");\n\t\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(35,6,\"Bs. $costo_contrato\",\"1\",0,\"L\");\n\t\t$this->Cell(35,6,\"Nº.\",\"1\",0,\"L\");\n\t\t$this->Cell(65,6,\"Cta. Nº Bco.\",\"1\",0,\"L\");\n\t\t$this->Cell(60,6,\"Nombre:\",\"1\",0,\"L\");\n\t\t\n\t\n\t\t\n\t\t\n\t\t$this->Ln(15);\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Nota:\",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"En caso de que el televisor no acepte la señal de todos los canales del cable, es posible que amerite la instalación de un amplificador de sintonia, el cual deberá ser adquirido por el SUSCRIPTOR\",\"0\",\"J\");\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Atención: \",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"La Empresa. No autoriza el retiro de televisores y/o VHS por el personal de la empresa. El SUSCRIPTOR conoce y acepta las condiciones del contrato del servicio que apacen al dorso del presente\",\"0\",\"J\");\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Aviso: \",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"Se le informa a todos los suscriptores y publico en general de acuerdo a la Ley Orgánica de Telecomunicaciones, en el Artículo 189, Literal 2: será penado con prisión de uno (1) a cuatro (4) años, el que utilizando equipos o tecnologías de cualquier tipo, proporciones a un tercero el acceso o disfrute en forma fraudulenta o indebida de un serbicio o facilidad de telecomunicaciones \",\"0\",\"J\");\n\t\t\n\t\t\n\t\t\n\t\t$this->Ln(10);\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,5,\"________________________\",\"0\",0,\"C\");\n\t\t$this->Cell(65,5,\"_________________________________\",\"0\",0,\"C\");\n\t\t$this->Cell(65,5,\"__________________________\",\"0\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Firma del Vendedor\",\"0\",0,\"C\");\n\t\t$this->Cell(65,6,\"Nombre y Apellido del Suscriptor\",\"0\",0,\"C\");\n\t\t$this->Cell(65,6,\"Firma del Suscriptor\",\"0\",0,\"C\");*/\n\t\t\n\t\t/*$this->Ln(4);\n\t\t\n\t\t$this->SetDrawColor(76,136,206);\n\t\t$this->SetLineWidth(.4);\n\t\t$this->SetFont('times','I',12);\n\t\t$this->SetX(10);\n\t\t$this->MultiCell(195,5,'Av. Perimetral, Centro Comercial Residencial Central. P.B. Local Nº 07. Cúa, Edo. Miranda.\[email protected] / [email protected]',\"TB\",\"C\");*/\n\t\t\n\t\t//$this->clausulas();\n\t\t\n\t\treturn $cad;\n\t}", "public function obtener($antigua,$nueva){\n \n \n session_start();\n //busca en la tabla usuarios los campos donde el nombre sea igual a admin si no encuentra nada devuelve null\n \n $usuario = R::findOne('usuarios', 'alias=?', [\n $_SESSION['nombre']\n ]);\n \n \n //comprueba si la variable password es distinta al campo contraseña almacenado en la base de datos si es asi b octiene el valor=\"no\"\n if ( password_verify($antigua, $usuario->contrasena)) {\n \n \n $actualizar=R::load('usuarios',$usuario->id);\n $actualizar->contrasena = password_hash($nueva, PASSWORD_DEFAULT);\n $actualizar->confirmar_contrasena=password_hash($nueva, PASSWORD_DEFAULT);\n \n \n R::store($actualizar);\n redirect(base_url().\"usuario/Usuarios/accesoget\");\n \n }\n }", "function ObtenerApellidoUsuario($apellido)\n{\n\tglobal $con;\n\t\n\t$query_ConsultaFuncion = sprintf(\"SELECT surname FROM users WHERE id_user = %s \",\n\t\t GetSQLValueString($apellido, \"int\"));\n\t//echo $query_ConsultaFuncion;\n\t$ConsultaFuncion = mysqli_query($con, $query_ConsultaFuncion) or die(mysqli_error($con));\n\t$row_ConsultaFuncion = mysqli_fetch_assoc($ConsultaFuncion);\n\t$totalRows_ConsultaFuncion = mysqli_num_rows($ConsultaFuncion);\n\t\n\treturn $row_ConsultaFuncion[\"surname\"];\t\n\t\n\tmysqli_free_result($ConsultaFuncion);\n}", "function RellenaDatos()\n {\t// se construye la sentencia de busqueda de la tupla\n $sql = \"SELECT * FROM ENTREGA WHERE (IdTrabajo = '$this->idTrabajo' AND login = '$this->login')\";\n // Si la busqueda no da resultados, se devuelve el mensaje de que no existe\n if (!($resultado = $this->mysqli->query($sql))){\n return 'No existe en la base de datos'; //\n }\n else{ // si existe se devuelve la tupla resultado\n $result = $resultado->fetch_array();\n return $result;\n }\n }", "function pegaId($id){\n $pdo=conecta();\n try{\n $pegaid = $pdo->prepare(\"SELECT * FROM tbclientes WHERE CLI_ID = ?\");\n $pegaid->bindValue(1, $id, PDO::PARAM_INT);\n $pegaid->execute();\n \n if ($pegaid->rowCount() > 0) {\n return $pegaid->fetch(PDO::FETCH_OBJ);\n return TRUE;\n } else {\n return FALSE;\n }\n }catch(PDOException $e){\n echo $e->getMessage();\n }\n}", "public function getIdentity();", "function habilitarContrato(){\n $this->procedimiento = 'adq.f_cotizacion_ime';\n $this->transaccion = 'ADQ_HABCONT_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_cotizacion','id_cotizacion','int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function generaClave()\n {\n do {\n $clave = '';\n for ($i = 0; $i < 3; $i++) {\n $clave .= strtoupper(substr(uniqid(), -5));\n $clave .= $i != 2 ? '-' : '';\n }\n } while (!$this->claveValida($clave) && !$this->claveUnica($clave));\n \n return $clave;\n }", "public function getIdByNameEspecialidad($name){//FUNCION PARA VERIFICAR LA EXISTENCIA DE UN CORREO EN TABLA MEDICO\n $objT=new especialidadDAO();\n $resul=$objT->readall();\n $act=0;\n for($i=0;$i<count($resul);$i++){\n if(strtoupper($resul[$i]['nombre']) == strtoupper($name)){\n $act=$resul[$i]['id_especialidad'];\n }\n }\n return $act; \n }", "function uid_generuj($l_uzytkownik)\n{\n\n\t\t//najpierw sprawdzamy czy uzytkownik jest juz w bazie (weryfikujemy po mailu), jesli nie ma to dodajemy, a jak jest to robimy aktualizacje danych\n\tif($uid=$GLOBALS['o_db']->komorka('id', \"WHERE `email`='\".htmlspecialchars($l_uzytkownik['email']).\"'\", 'cms_uzytkownicy'))\n\t{\necho '1';\n\t\t$GLOBALS['o_db']->aktualizuj(array('logowanie'=>time(), 'email'=>htmlspecialchars($l_uzytkownik['email']), 'imie'=>htmlspecialchars($l_uzytkownik['first_name'])), \"WHERE `id`='$uid'\", 'cms_uzytkownicy');\n\t\treturn $uid;\n\t}\n\telse\n\t{\necho '2';\n\t\t$GLOBALS['o_db']->rekord_dodaj(array('rejestracja'=>time(), 'logowanie'=>time(), 'email'=>htmlspecialchars($l_uzytkownik['email']), 'status'=>1, 'imie'=>htmlspecialchars($l_uzytkownik['first_name'])), 'cms_uzytkownicy');\nvar_dump($GLOBALS['o_db']->sql, $GLOBALS['o_db']->error);\n\t\treturn $GLOBALS['o_db']->rekord_id;\n\t}\n}", "function SolicitarContrato(){\n $this->procedimiento = 'adq.f_cotizacion_ime';\n $this->transaccion = 'ADQ_SOLCON_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "function inserisci_citta($nome_citta=\"\"){\n\t$db = new db(DB_USER,DB_PASSWORD,DB_NAME,DB_HOST);\n\t$nome_citta= sistemaTesto($nome_citta);\n\t$q=\"INSERT INTO citta (id_citta, nome) VALUES (null,'$nome_citta')\";\n\t$r=$db->queryInsert($q);\n\t$id_citta=mysql_insert_id();\n\treturn $id_citta;\n}", "function objetosDuplicados($param){\r\n\t\tswitch ($param){\r\n\t\t\tcase 1:\r\n\t\t\t\treturn \"El usuario ya existe en el sistema\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\treturn \"El libro ya existe en el sistema\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\treturn \"El ejemplar ya existe en el sistema\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\treturn \"Error de Categoria. Sin embargo el objeto ya existe en el sistema\";\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "function getPublicite($identifiant)\r\n{\r\n\tglobal $pdo;\r\n\t\r\n\t$SQL = \"SELECT * FROM pas_publicite WHERE identifiant = '$identifiant'\";\r\n\t$reponse = $pdo->query($SQL);\r\n\t$req = $reponse->fetch();\r\n\t\r\n\treturn $req['code'];\r\n}", "function IdRole($name)\n {\n $role = Catalogo::select('id')->table('ROLES')->where('codigo',$name)->first();\n return $role->id;\n }" ]
[ "0.65182364", "0.6483538", "0.643518", "0.63907146", "0.6241871", "0.6236071", "0.6160611", "0.6150025", "0.61463165", "0.61295164", "0.605295", "0.6037522", "0.60334814", "0.6020583", "0.60117054", "0.59658366", "0.5944561", "0.59200764", "0.59134305", "0.5906521", "0.59020627", "0.58961743", "0.5888219", "0.5881362", "0.5880856", "0.5874306", "0.5863277", "0.5852441", "0.58415353", "0.58311474", "0.5830348", "0.58299005", "0.5827948", "0.58183914", "0.580233", "0.580093", "0.57922995", "0.57896525", "0.5784118", "0.57828355", "0.5780857", "0.5778448", "0.57777005", "0.57741493", "0.57706255", "0.57668835", "0.57641506", "0.5762403", "0.5762403", "0.5757468", "0.5751742", "0.5750978", "0.574879", "0.57432723", "0.5741913", "0.57404554", "0.5738978", "0.5734098", "0.5724653", "0.5724522", "0.57217014", "0.57160735", "0.5715829", "0.57144016", "0.57070774", "0.57070774", "0.57070774", "0.57024616", "0.569703", "0.56962335", "0.569607", "0.5688788", "0.56842375", "0.56828356", "0.56821406", "0.5679847", "0.5679442", "0.56695634", "0.5667243", "0.5664868", "0.5664006", "0.5663173", "0.5654557", "0.56531394", "0.565209", "0.56511104", "0.5649232", "0.56488746", "0.5643803", "0.5643631", "0.5638374", "0.5633657", "0.5633036", "0.56311214", "0.5629463", "0.56260055", "0.56246376", "0.56150526", "0.56108856", "0.5609693", "0.5608515" ]
0.0
-1
Identificadores de usuarios por interes de contratos
public function getUsersIdFromInterestContracts($usersInterestContracts){ $userIds = Array(); foreach ($usersInterestContracts as $uic) { $userIds[] = $uic['UserInterestContract']['users_id']; } return $userIds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buscarUsuarios(){\n\t\t}", "private function usuarios(){\n\t\tif ($_SERVER['REQUEST_METHOD'] != \"GET\") {\n\t\t\t# no se envian los usuarios, se envia un error\n\t\t\t$this->mostrarRespuesta($this->convertirJson($this->devolverError(1)), 405);\n\t\t}//es una petición GET\n\t\t//se realiza la consulta a la bd\n\t\t$query = $this->_conn->query(\n\t\t\t\"SELECT id, nombre, email \n\t\t\t FROM usuario\");\n\t\t//cantidad de usuarios\n\t\t$filas = $query->fetchAll(PDO::FETCH_ASSOC); \n \t$num = count($filas);\n \t//si devolvio un resultado, se envia al cliente\n \tif ($num > 0) { \n\t $respuesta['estado'] = 'correcto'; \n\t $respuesta['usuarios'] = $filas; \n\t $this->mostrarRespuesta($this->convertirJson($respuesta), 200); \n\t } //se envia un error \n\t $this->mostrarRespuesta($this->devolverError(2), 204);\n\t}", "private function getListaUsuarioAutorizado()\r\n\t {\r\n\t \treturn [\r\n\t \t\t'adminteq',\r\n\t \t\t'pfranco',\r\n\t \t\t'kperez',\r\n\t \t];\r\n\t }", "function mcomprobarUsuarioSesion() {\n\t\t$conexion = conexionbasedatos();\n\t\tif (isset($_SESSION[\"nickname\"]) ) {\n\t\t\t$nickname = $_SESSION[\"nickname\"];\n\n\t\t\t$consulta = \"select * \n\t\t\t\t\t\t from final_USUARIO\n\t\t\t\t\t\t where nickname = '$nickname';\";\n\n\t\t\tif ($resultado = $conexion->query($consulta)) {\n\t\t\t\tif ($datos = $resultado->fetch_assoc()) {\n\t\t\t\t\treturn 1;\n\t\t\t\t} else {\n\t\t\t\t\treturn -2;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t} else {\n\t\t\treturn -2;\n\t\t}\n\t\t\n\t}", "public function getIdUsuario()\n {\n return $this->c_id_usuario;\n }", "public function getUsuaris()\n {\n $usuarios = $this->_db->query(\"select * from usuarios\");\n return $usuarios->fetchall();\n }", "public function utilisateurListerTous()\n\t{\n\t\t// votre code ici\n\t\treturn Gestion::lister(\"Utilisateur\");//type array\n\t}", "public function UsuariosPorId()\n{\n\tself::SetNames();\n\t$sql = \" select * from usuarios where codigo = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array(base64_decode($_GET[\"codigo\"])) );\n\t$num = $stmt->rowCount();\n\tif($num==0)\n\t{\n\t\techo \"\";\n\t}\n\telse\n\t{\n\t\tif($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$this->p[] = $row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\t\t}\n\t}", "function abmUsuarios()\n {\n $this->checkCredentials();\n $users = $this->modelUser->getAllUsers();\n $this->view->showAbmUsuarios($users);\n }", "function listar_usuarios() {\n\t\t$query = \"SELECT colaboradores.*, colaboradores_permisos.*\n\t\tFROM colaboradores, colaboradores_permisos\n\t\tWHERE colaboradores.id_colaborador=colaboradores_permisos.id_colaborador\n\t\tAND colaboradores.estado=1\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "function getUsuarios(){\n\t\n\t\treturn conectar()->query( \"SELECT * FROM usuarios\");\n\t}", "function ListaUsuario() {\n\t\n\t\t\t$sql = \"SELECT usu.*, CONCAT_WS(' ', per.primer_nombre, per.primer_apellido) as nombre_completo, usu.nombre_usuario, rol.descripcion FROM usuario usu\n\t\t\t\t\tINNER JOIN rol rol ON rol.id = usu.rol_id\n\t\t\t\t\tINNER JOIN persona per ON per.id = usu.persona_id\";\n\t\t\t$db = new conexion();\n\t\t\t$result = $db->consulta($sql);\n\t\t\t$num = $db->encontradas($result);\n\t\t\t$respuesta->datos = [];\n\t\t\t$respuesta->mensaje = \"\";\n\t\t\t$respuesta->codigo = \"\";\n\t\t\tif ($num != 0) {\n\t\t\t\tfor ($i=0; $i < $num; $i++) {\n\t\t\t\t\t$respuesta->datos[] = mysql_fetch_array($result);\n\t\t\t\t}\n\t\t\t\t$respuesta->mensaje = \"Ok\";\n\t\t\t\t$respuesta->codigo = 1;\n\t\t\t} else {\n\t\t\t\t$respuesta->mensaje = \"No existen registros de roles.\";\n\t\t\t\t$respuesta->codigo = 0;\n\t\t\t}\n\t\t\treturn json_encode($respuesta);\n\t\t}", "static public function ctrListarUsuario( ){\n\n\t\treturn ModeloUsuarios::mdlListarUsuario( );\n\n\t}", "public function getCoUsuario()\n\t{\n\t\treturn $this->co_usuario;\n\t}", "public function getUsuarioCadeco($id_usuario);", "public function getUsuario() {\n return $this->iUsuario;\n }", "public function getUsuarioInclusao()\n {\n return $this->usuarioInclusao;\n }", "function usuario($listaNombres, $listaPasswords, $nombre, $passwords) {\n $encontrado = -3;\n $claveNombre = -1;\n $clavePassword = -2;\n foreach ($listaNombres as $clave => $valor) {\n if ($valor === $nombre) {\n //el nombre es igual al que se pasa del formulario\n $claveNombre = $clave;\n foreach ($listaPasswords as $claveC => $valorC) {\n //la contraseña es igual a la del formulario\n if ($valorC === $passwords) {\n $clavePassword = $claveC;\n if ($clavePassword === $claveNombre) {\n //comprobamos si es el nombre y la contraseña pertenecen a la misma persona\n $encontrado = $clavePassword;\n }\n }\n }\n }\n }\n return $encontrado;\n}", "public function IniciarSesion(Usuario $usu){\n $conn = new conexion();\n $rol = 0;\n try {\n if($conn->conectar()){\n $str_sql = \"Select usuarios.id_usu, usuarios.nom_usu,usuarios.usuario,usuarios.foto,tp_usuarios.nom_tp as rol,usuarios.idcliente from usuarios \"\n . \"INNER JOIN tp_usuarios WHERE usuarios.id_tp_usu = tp_usuarios.id_tp \"\n . \"and usuarios.usuario = '\".$usu->getUsuario().\"' and usuarios.pass = '\".$usu->getPass().\"' \"\n . \"and estado = 'Activo'\";\n $sql = $conn->getConn()->prepare($str_sql);\n $sql->execute();\n $resultado = $sql->fetchAll();\n foreach ($resultado as $row){\n $rol = 1;\n session_start();\n $_SESSION['id'] = $row['id_usu'];\n //$_SESSION['idcli'] = $row['idcliente'];\n $_SESSION['perfil'] = $row['usuario'];\n $_SESSION['rol'] = $row['rol'];\n $_SESSION['user'] = $row['nom_usu'];\n $_SESSION['img'] = $row['foto'];\n }\n }\n } catch (Exception $exc) {\n $rol = -1;\n echo $exc->getMessage();\n }\n $conn->desconectar();\n return $rol;\n }", "public function getUserIdCriado() {\n return $this->userIdCriado;\n }", "public function getId_usuario()\n {\n return $this->id_usuario;\n }", "public function getIdUsuario()\n {\n return $this->id_usuario;\n }", "public function getIdUsuario()\n {\n return $this->id_usuario;\n }", "public function getIdUtilisateur()\n {\n return $this->Id_utilisateur;\n }", "public function ctrIngresoUsuario(){\n\n\t\tif(isset($_POST[\"user01\"])){\n\n\t\t//\t if(preg_match('/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/', $_POST[\"ingresoEmail\"]) && preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"ingresoPassword\"])){\n\n\t\t\t \t//$encriptar = crypt($_POST[\"ingresoPassword\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n\t\t\t\t$encriptar = crypt($_POST[\"passwords01\"], '$2a$07$asxx54ahjppf17sd87a5a4dDDGsystemdevmybebe$');\n\n\t\t\t \t$tabla = \"genusuario\";\n\t\t\t \t$item = \"usunombre\";\n\t\t\t \t$valor = $_POST[\"user01\"];\n\n\t\t\t \t$respuesta = UserModel::mdlMostrarUsuarios($tabla, $item, $valor);\n\n\t\t\t\t//echo \"<pre>\".print_r($respuesta).\"</pre>\";\n\n\t\t\t \tif($respuesta[\"usunombre\"] == $_POST[\"user01\"] && $respuesta[\"usuclave\"] == $encriptar){\n\n\t\t\t \t\tif($respuesta[\"usuverific\"] == 0){\n\n\t\t\t \t\t\techo'<script>\n\n\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\t\t\t \ttitle: \"¡ERROR!\",\n\t\t\t\t\t\t\t\t \ttext: \"¡El correo electrónico aún no ha sido verificado, por favor revise la bandeja de entrada o la carpeta SPAM de su correo electrónico para verificar la cuenta, o contáctese con nuestro soporte a [email protected]!\",\n\t\t\t\t\t\t\t\t \tshowConfirmButton: true,\n\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\t\t\t\tif(result.value){ \n\t\t\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t</script>';\n\n\t\t\t\t\t\treturn;\n\n\t\t\t \t\t}else{\n\n\t\t\t \t\t\t$_SESSION[\"validarSesion\"] = \"ok\";\n\t\t\t \t\t\t$_SESSION[\"id\"] = $respuesta[\"oid\"];\n\n\t\t\t \t\t\t$ruta = RouteController::ctrRoute();\n\n\t\t\t \t\t\techo '<script>\n\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"'.$ruta.'backoffice\";\t\t\t\t\n\n\t\t\t\t\t\t</script>';\n\n\t\t\t \t\t}\n\n\t\t\t \t}else{\n\n\t\t\t \t\techo'<script>\n\n\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\t\t \ttitle: \"¡ERROR!\",\n\t\t\t\t\t\t\t \ttext: \"¡El email o contraseña no coinciden!\",\n\t\t\t\t\t\t\t \tshowConfirmButton: true,\n\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\t\t\tif(result.value){ \n\t\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t\t } \n\t\t\t\t\t\t});\n\n\t\t\t\t\t</script>';\n\n\t\t\t \t}\n\n\n\t\t/*\t }else{\n\n\t\t\t \techo '<script>\n\n\t\t\t\t\tswal({\n\n\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\ttitle: \"¡CORREGIR!\",\n\t\t\t\t\t\ttext: \"¡No se permiten caracteres especiales en ninguno de los campos!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\n\t\t\t\t\t\t\thistory.back();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\t\n\n\t\t\t\t</script>';\n\n\t\t\t }*/\n\n\t\t}\n\n\t}", "public function getIdusuario()\n {\n return $this->idusuario;\n }", "function getIdusuario(){\n\t\treturn $this->idusuario;\n\t}", "public function citas_usuariosCitas(){\n \t\n\t\t\t$resultado = array();\n\t\t\n\t\t\t$query = \" SELECT idUsuario, identificacion, nombre, apellido\n\t\t\t\t\t\tFROM tb_usuarios\";\n\t\t\t\t\t\t\n\t\t\t$conexion = parent::conexionCliente();\n\t\t\t\n\t\t\tif($res = $conexion->query($query)){\n\t \n\t /* obtener un array asociativo */\n\t while ($filas = $res->fetch_assoc()) {\n\t $resultado[] = $filas;\n\t }\n\t \n\t /* liberar el conjunto de resultados */\n\t $res->free();\n\t \n\t }\n\t\n\t return $resultado;\n\t\t\t\n }", "static public function ctrIngresoUsuario(){\n\n\t\tif(isset($_POST[\"ingUsuario\"])){\n\n\t\t\tif(preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"ingUsuario\"]) &&\n\t\t\t preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"ingPassword\"])){\n\n\t\t\t\t$tabla = \"usuarios\";\n\n\t\t\t\t// $encriptar = crypt($_POST[\"ingPassword\"], '$2a$07$usesomesillystringforsalt$');\n\n\t\t\t\t$item = \"usu_descri\";\n\t\t\t\t$valor = $_POST[\"ingUsuario\"];\n\t\t\t\t$pass = $_POST[\"ingPassword\"];\n\n\t\t\t\t$respuesta = ModeloUsuarios::MdlMostrarUsuarios($tabla, $item, $valor);\n\n\t\t\t\t// var_dump($respuesta);\n\t\t\t\t// die();\n\n\t\t\t\tif($respuesta[\"usu_descri\"] == $_POST[\"ingUsuario\"] && $respuesta[\"clave\"] == $_POST[\"ingPassword\"])\n\t\t\t\t{\n\n\t\t\t\t\tif($respuesta['estado'] == 'A')\n\t\t\t\t\t{\n\n\t\t\t\t\t\t$_SESSION[\"iniciarSesion\"] = \"ok\";\n\t\t\t\t\t\t$_SESSION[\"id\"] = $respuesta[\"id\"];\n\t\t\t\t\t\t// $_SESSION[\"nombre\"] = $respuesta[\"nombre\"];\n\t\t\t\t\t\t$_SESSION[\"usuario\"] = $respuesta[\"usu_descri\"];\n\t\t\t\t\t\t// $_SESSION[\"foto\"] = $respuesta[\"foto\"];\n\t\t\t\t\t\t// $_SESSION[\"perfil\"] = $respuesta[\"perfil\"];\n\n\t\t\t\t\t\techo '<script>\n\t\n\t\t\t\t\t\twindow.location = \"inicio\";\n\t\n\t\t\t\t\t\t</script>';\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\techo '<br><div class=\"alert alert-danger\">El usuario no esta activo, porfavor, comuniquese con el administrador</div>';\n\t\t\t\t\t}\n\n\t\t\t\t}else{\n\n\t\t\t\t\techo '<br><div class=\"alert alert-danger\">Error al ingresar, vuelve a intentarlo</div>';\n\n\t\t\t\t}\n\n\t\t\t}\t\n\n\t\t}\n\n\t}", "public function agregarUsuario(){\n \n }", "private function ifoCadUser()\n {\n $infoCadUser = new AdmsRead();\n $infoCadUser->fullRead(\"SELECT env_email_conf, adms_niveis_acesso_id, adms_sits_usuario_id FROM adms_cads_usuarios WHERE id =:id LIMIT :limit\", \"id=1&limit=1\");\n $this->IfoCadUser = $infoCadUser->getResultado();\n\n }", "public function getIdUsuario(){\n return $this->idUsuario;\n }", "public function getdatosUsuarios(){\n\t\t$bd = new bd();\n\t\t$result = $bd->doSingleSelect($this->u_table,\"id = {$this->id}\");\n\t\tif($result){\n\t\t\t$this->datosUsuario($result[\"direccion\"], $result[\"telefono\"], $result[\"descripcion\"], $result[\"estados_id\"], $result[\"facebook\"], $result[\"twitter\"],$result[\"website\"],$result[\"certificado\"],$result[\"id_sede\"]);\n\t\t\t$this->id = $result[\"id\"];\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function getUsernameClinica() {\r\n return parent::getUsernameUser();\r\n }", "public function getUsuarioId()\r\n {\r\n return $this->Usuario_id;\r\n }", "public function getUsuario() {\n }", "function ListaUsuarios() {\n\t//obtiene el id del usuario\n $sql = \"SELECT usuario.id, usuario.nombre_usuario, persona.primer_nombre, persona.primer_apellido, usuario.estado, rol.descripcion FROM usuario INNER JOIN persona ON usuario.persona_id = persona.id INNER JOIN rol ON usuario.rol_id = rol.id WHERE usuario.estado = 'ACTIVO'\";\n\n\t$db = new conexion();\n\t$result = $db->consulta($sql);\n\t$num = $db->encontradas($result);\n\n\t$respuesta->datos = [];\n\t$respuesta->mensaje = \"\";\n\t$respuesta->codigo = \"\";\n\n\tif ($num != 0) {\n\t\tfor ($i=0; $i < $num; $i++) {\n\t\t\t$respuesta->datos[] = mysql_fetch_array($result);\n\t\t}\n\t\t$respuesta->mensaje = \"Usuarios listados\";\n\t\t$respuesta->codigo = 1;\n\t} else {\n\t\t$respuesta->mensaje = \"No existen registros de usuarios !\";\n\t\t$respuesta->codigo = 0;\n\t}\n\treturn json_encode($respuesta);\n}", "private function consultar_usuario_por_correo() {\n $sentencia = \"select id,nombrecompleto ,correo,token \"\n . \"from usuario u where u.correo ='{$this->referencia_a_buscar}'; \";\n $this->respuesta = $this->obj_master_select->consultar_base($sentencia);\n }", "public function datos_usuario(){\n\t\t$data = json_decode(json_encode($_SESSION['USER']),true);\n\n\t\t$result = $this->_db->query(\"\n\t\tSELECT a.roleid FROM \".DB_PRE.\"role_assignments a, \".DB_PRE.\"context b \n\t\tWHERE a.userid = '$data[id]' AND a.contextid = b.id AND b.instanceid =\".ID_CURSO\n\t\t);\n\n\t\t$rol = 0;\n\t\tif (!$result) {\n\t\t\tprintf(\"Errormessage datos_usuario: %s\\n\", $this->_db->error);\n\t\t}else{\n\t $rol_user = $result->fetch_all(MYSQLI_ASSOC);\n\t if(count($rol_user) > 0){\n\t \t$rol = $rol_user['0']['roleid'];\n\t }\n \t}\n\n\t\t$usuario = array(\n\t\t\t\"id\" => $data['id'],\n\t\t\t\"nombre\" => $data['firstname'],\n\t\t\t\"apellido\" => $data['lastname'],\n\t\t\t\"codigo_estudiante\" => $data['idnumber'],\n\t\t\t\"rol\" => $rol\n\t\t);\n\n\t\t$datos_add = $this->_db->query(\"\n\t\t\tSELECT e.per_aca, b.id_facultad, a.id_programa, e.idnumber as codigo_curso, a.id_genero, a.idnumber\n\t\t\tFROM am_usuario a, am_programa b, \".DB_PRE.\"course e\n\t\t\tWHERE a.id_programa = b.id_programa\n\t\t\tAND e.id = \".ID_CURSO.\"\n\t\t\tAND id_moodle = \".$data['id']\n\t\t\t);\n\n\t\tif (!$datos_add) {\n\t\t\tprintf(\"Errormessage datos_add: %s\\n\", $this->_db->error);\n\t\t}else{\n\t\t\t$row = $datos_add->fetch_all(MYSQLI_ASSOC);\n\t\t\tforeach ($row as $key) {\n\t\t\t\tforeach ($key as $data => $value) {\n\t\t\t\t\t$usuario[$data] = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $usuario;\n\t}", "function listaUtentiScuola($passordIsNull = FALSE, $userNotVisible = FALSE) {\n if ($this->connectToMySql()) {\n $query = \"SELECT id_utente , cognome , nome , email , password ,\n user_is_admin FROM scuola.utenti_scuola \";\n if ($passordIsNull && !$userNotVisible) {//$passordIsNull TRUE\n $query .= \" WHERE NOT isnull(password) \";\n } elseif (!$passordIsNull && $userNotVisible) {//$userNotVisible TRUE\n $query .= \"WHERE id_utente != \" . $_COOKIE['id_utente'];\n } elseif ($passordIsNull && $userNotVisible) {\n $query .= \" WHERE NOT isnull(password) AND id_utente != \" . $_COOKIE['id_utente'];\n }\n $query .= \" ORDER BY cognome , nome\";\n // Perform Query\n $result = mysql_query($query);\n //$array = mysql_fetch_assoc($result);\n }\n $this->closeConnection();\n return $result;\n }", "public function getIdUtilisateur()\n {\n return $this->idUtilisateur;\n }", "public function obtenerUsuariosOnline(){\n return $this->obtenerUsuarios(\" uid_usuario IN ( SELECT uid_usuario FROM \". TABLE_USUARIO .\" u WHERE u.uid_usuario = uid_usuario AND conexion = 1 ) \");\n }", "private function consultar_usuario_por_id() {\n\n if (is_numeric($this->referencia_a_buscar)) {\n $id_a_buscar = intval($this->referencia_a_buscar);\n $sentencia = \"select id,nombrecompleto ,correo,token from usuario u where u.id= {$id_a_buscar};\";\n $this->respuesta = $this->obj_master_select->consultar_base($sentencia);\n } else {\n $this->respuesta = null;\n }\n }", "public function getIndicadorUsuarioAdministrador()\n {\n return $this->indicadorUsuarioAdministrador;\n }", "public function get_usuario_por_id_compras($id_usuario)\n {\n\n\n $conectar = parent::conexion();\n parent::set_names();\n\n\n $sql = \"select u.id_usuario,c.id_usuario\n \n from usuarios u \n \n INNER JOIN compras c ON u.id_usuario=c.id_usuario\n\n\n where u.id_usuario=?\n\n \";\n\n $sql = $conectar->prepare($sql);\n $sql->bindValue(1, $id_usuario);\n $sql->execute();\n\n return $resultado = $sql->fetchAll(PDO::FETCH_ASSOC);\n }", "public function getUsuarios()\n {\n return $this->usuarios;\n }", "private function consultar_usuario_todos() {\n $sentencia = \"select id,nombrecompleto ,correo,token from usuario u;\";\n $this->respuesta = $this->obj_master_select->consultar_base($sentencia);\n }", "static public function getUsuario_credencial() {\n try {\n $sql = 'SELECT usuario_credencial.id, usuario_credencial.usuario_id, usuario_credencial.credencial_id FROM usuario_credencial';\n return dataBaseClass::getInstance()->query($sql)->fetchAll(PDO::FETCH_ASSOC);\n } catch (PDOException $e) {\n return $e;\n }\n }", "public function getIdUsuario()\n\t{\n\t\treturn $this->idusuario;\n\t}", "public function usuariosActivos(){\n\t\t\n\t\t$resultado = array();\n\t\t\n\t\t$query = \"SELECT idUsuario, identificacion, nombre, apellido FROM tb_usuarios WHERE estado = 'A' AND agenda = 'Si'\";\n\t\t\n\t\t$conexion = parent::conexionCliente();\n\t\t\n \tif($res = $conexion->query($query)){\n \n /* obtener un array asociativo */\n while ($filas = $res->fetch_assoc()) {\n $resultado[] = $filas;\n } \n \n }//fin if\n\t\t\n return $resultado;\t\t\t\n\t\t\n\t}", "function identifyUser() {\n}", "public function usuarios()\n {\n \treturn $this->hasMany(reciclausers::class, 'perfilId', 'id');\n \t// nombre del modelo con el que se relaciona, llave foranea, llave de la tabla.\n }", "function ins_permisos($DBcon, $idusuario, $tipousuario)\n {\n\n $query = $this->set_profile($tipousuario,$idusuario);\n\n $stmt = $DBcon->prepare($query);\n\n // check for successfull registration\n if ( $stmt->execute() ) {\n $response['status'] = 'success';\n $response['message'] = '&nbsp; Registro exitoso, Gracias!';\n\n } else {\n $response['status'] = 'error'; // could not register\n $response['message'] = '&nbsp; No se pudo registrar, intente nuevamente más tarde';\n }\n\n return $response;\n }", "private function retornaRolUser($tabla) {\n $IdsRol = 6; //ROL DE USER NORMAL POR DEFECTO\n switch ($tabla) {\n Case \"MG0031\":\n $IdsRol = 4; //CLIENTE\n break;\n Case \"MG0032\":\n $IdsRol = 5; //PROVEEDOR\n break;\n default:\n $IdsRol = 6; //USUARIO NORMAL\n }\n return $IdsRol;\n }", "function get_info_usuario($id_usuario){\n\n return $this->db->query(\"SELECT*\n FROM usuarios\n WHERE usuarios.usuario_id = $id_usuario\")->result_array();\n }", "public function getUsuariosLogin($datos)\n {\n $stmt = Conexion::conectar()->prepare('SELECT *from usuarios WHERE correo=:correo && password=:contrasena');\n $stmt->bindParam(\":correo\", $datos[\"correo\"] , PDO::PARAM_STR);\n $stmt->bindParam(\":contrasena\", $datos[\"contrasena\"] , PDO::PARAM_STR);\n if($stmt->execute())\n {\n \n //Variables para iniciar una sesion \n \n $respuesta = $stmt->rowCount();\n $resultado =$stmt->fetch();\n session_start();\n $_SESSION[\"idUsuario\"]=$resultado[\"idUsuario\"];\n $_SESSION[\"nombre\"]=$resultado[\"nombre\"];\n $_SESSION[\"apellido\"]=$resultado[\"apellido\"];\n $_SESSION[\"nombre_usuario\"]=$resultado[\"nombre_usuario\"];\n $_SESSION[\"contrasena\"]=$resultado[\"password\"];\n $_SESSION[\"apellido\"]=$resultado[\"apellido\"];\n $_SESSION[\"correo\"]=$resultado[\"correo\"];\n $_SESSION[\"fecha_registro\"]=$resultado[\"fecha_registro\"];\n $_SESSION[\"ruta_img\"]=$resultado[\"ruta_img\"];\n $_SESSION[\"tipoUsuario\"]=$resultado[\"tipoUsuario\"];\n\n return $respuesta;\n }else\n {\n return \"error\";\n }\n }", "public function getIdUsuario() {\n\t\treturn $this->idUsuario;\n\t}", "public function recepcionUsuario($nombre , $password){\n\t\t\t$result_child = $this->_db->query(\"SELECT * FROM usuario WHERE login_usu = '\".$nombre.\"'\");\n\t\t\t$retorna_child = $result_child->fetch_all(MYSQL_ASSOC);\n\n\t\t\t//mensaje por defecto indicando que no se registro\n\t\t\t//genera mensaje para el sistema\n\t\t\t$outp = array('activo'=> \"0\");\n\n\t\t\t//verifica que exista el usuario\n\t\t\tif (!$result_child) {\n \t\t\treturn \"Falló SELECT usuario: (\" . $this->_db->errno . \") \" . $this->_db->error;\n\t\t\t}else{\n\n\t\t\t\tif (count($retorna_child) > 0) {\n\t\t\t\t\t//print_r(count($retorna_child));\n\t\t\t\t\t//busca su grupo de usuario para asignar un rol \n\t\t\t\t\t$result_master = $this->_db->query(\"SELECT * FROM grupousu WHERE idGrupoUsu = '\".$retorna_child[0]['GrupoUsu_idGrupoUsu'].\"'\");\n\t\t\t\t\t$retorna_master = $result_master->fetch_all(MYSQL_ASSOC);\n\n\t\t\t\t\t//verifique que tenga un grupo de usuario\n\t\t\t\t\tif (!$result_child) {\n\t \t\t\t\treturn \"Falló SELECT grupousu: (\" . $this->_db->errno . \") \" . $this->_db->error;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//verifica la contrasena\n\t\t\t\t\t\tif (md5($retorna_child[0]['pass_usu']) == $password) {\n\t\t\t\t\t\t\t//genera mensaje para el sistema\n\t\t\t\t\t\t\t$outp[] = array('idUsuario'=> \"\".$retorna_child[0]['idUsuario'].\"\",\n\t\t\t\t\t\t\t\t\t\t\t'nombres_usu'=> \"\".$retorna_child[0]['nombres_usu'].\"\",\n\t\t\t\t\t\t\t\t\t\t\t'apellidos_usu'=> \"\".$retorna_child[0]['apellidos_usu'].\"\",\n\t\t\t\t\t\t\t\t\t\t\t'GrupoUsu_idGrupoUsu'=> \"\".$retorna_master[0]['idGrupoUsu'].\"\",\n\t\t\t\t\t\t\t\t\t\t\t'idGrupoUsu'=> \"\".$retorna_master[0]['idGrupoUsu'].\"\",\n\t\t\t\t\t\t\t\t\t\t\t'activo'=> \"1\",\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\treturn $outp;\n\t\t\t\t\t\t\t$result_child->close();\n\t\t\t\t\t\t\t$result_master->close();\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//genera mensaje para el sistema\n\t\t\t\t\t\t\t$outp[] = array('activo'=> \"0\"\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t//genera mensaje para el sistema\n\t\t\t\t\t$outp[] = array('activo'=> \"0\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn $outp;\n\t\t\t\n\t\t}", "function Usuario($idUsuario = '')\n\t\t{\n\t\t\t$this->id = \"usuario_id\";\n\t\t\t$this->tabla = \"usuario\";\n\t\t\t\n\t\t\t$this->exitoListar = t(\"User list obtained successfully\");\n\t\t\t$this->errorListar = t(\"Error obtaining user list\");\n\t\t\t$this->exitoInsertar = t(\"User created successfully\");\n\t\t\t$this->exitoActualizar = t(\"User updated successfully\");\n\t\t\t$this->errorInsertar = t(\"Error creating user\");\n\t\t\t$this->errorActualizar = t(\"Error updating user\");\t\n\t\t\t\n\t\t\t$this->campos = array(\n\t\t\t\t'usuario_id' => array('tipo'=>'id','nulo'=>true,'msg'=>t('Invalid user ID'),'valor'=>'','lectura'=>false),\n\t\t\t\t'usuario_nombre' => array('tipo'=>'string','nulo'=>true,'msg'=>t('Invalid user name'),'valor'=>'','lectura'=>false),\n\t\t\t\t'usuario_login' => array('tipo'=>'string','nulo'=>false,'msg'=>t('Invalid user login'),'valor'=>null,'lectura'=>false),\n\t\t\t\t'usuario_password' => array('tipo'=>'string','nulo'=>false,'msg'=>t('Invalid password'),'valor'=>null,'lectura'=>false),\n\t\t\t\t'usuario_rol_id' => array('tipo'=>'int','nulo'=>false,'msg'=>t('Invalid Rol'),'valor'=>null,'lectura'=>false),\n\t\t\t\t'usuario_email' => array('tipo'=>'email','nulo'=>true,'msg'=>t('Invalid email'),'valor'=>'','lectura'=>false),\n\t\t\t\t'usuario_apellido1' => array('tipo'=>'string','nulo'=>true,'msg'=>t('Invalid surname1'),'valor'=>'','lectura'=>false),\n\t\t\t\t'usuario_apellido2' => array('tipo'=>'string','nulo'=>true,'msg'=>t('Invalid surname2'),'valor'=>'','lectura'=>false),\n\t\t\t\t'usuario_detalles' => array('tipo'=>'html','nulo'=>true,'msg'=>t('Invalid details'),'valor'=>'','lectura'=>false)\n\t\t\t);\n\n\t\t\t$this->relaciones = array(\n\t\t\t\n\t\t\t\t'rol' => array (\n\t\t\t\t\t'tabla' => 'rol',\n\t\t\t\t\t'relacion' => '1a1',\n\t\t\t\t\t'soloLectura' => true,\n\t\t\t\t\t'clavePrimaria' => 'usuario_rol_id',\n\t\t\t\t\t'claveAjena1' => 'rol_id',\n\t\t\t\t\t'claveAjena2' => '',\n\t\t\t\t\t'campos' => array(\n\t\t\t\t\t\t'rol_id' => array('tipo'=>'id','nulo'=>true,'msg'=>t('Invalid rol id'),'valor'=>'','lectura'=>true),\t\t\t\t\t\n\t\t\t\t\t\t'rol_nombre' => array('tipo'=>'string','nulo'=>true,'msg'=>t('Invalid rol name'),'valor'=>'','lectura'=>true)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\t$this->campos['usuario_id']['valor'] = $idUsuario;\n\t\t}", "static public function ctrIngresoUsuario(){\n\t\t\n\t\tif (isset($_POST['user']) && isset($_POST['pass'])) {\n\t\t\tif (preg_match('/^[a-zA-Z-0-9 ]+$/', $_POST['user'])) {\n\t\t\t\tswitch ($_POST['rol']) {\n\t\t\t\t\tcase 'Encargado':\n\t\t\t\t\t\t$answer = adminph\\Attendant::where('username',$_POST['user'])->first();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'Propietario':\n\t\t\t\t\t\t$answer = adminph\\Propietary::where('username',$_POST['user'])->first();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'Arrendatario':\n\t\t\t\t\t\t$answer = adminph\\Lessee::where('username',$_POST['user'])->first();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$answer = adminph\\User::where('username',$_POST['user'])->first();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t$password = $_POST[\"pass\"];\n\t\t\t\tif (is_object($answer)) {\n\t\t\t\t\tif (password_verify($password,$answer->password) ) {\n\t\t\t\t\t\tif ($answer->state == 1) {\n\t\t\t\t\t\t\tif ($_POST['rol'] == 'Otro') {\n\t\t\t\t\t\t\t\tsession(['rank' => $answer->type]);\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tsession(['rank' => $_POST['rol']]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsession(['user' => $answer->username]);\n\t\t\t\t\t\t\tsession(['name' => $answer->name]);\n\t\t\t\t\t\t\tsession(['id' => $answer->id]);\n\t\t\t\t\t\t\tsession(['photo' => $answer->photo]);\n\t\t\t\t\t\t\t/*=============================================\n\t\t\t\t\t\t\t= REGISTRAR LOGIN =\n\t\t\t\t\t\t\t=============================================*/\n\t\t\t\t\t\t\tdate_default_timezone_set('America/Bogota');\n\t\t\t\t\t\t\tsession(['log' => date(\"Y-m-d h:i:s\")]);\n\t\t\t\t\t\t\t$answer->last_log = session('log');\n\t\t\t\t\t\t\tif ($answer->save()) {\n\t\t\t\t\t\t\t\techo ' <script>\n\t\t\t\t\t\t\twindow.location = \"inicio\"; </script> ';\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\techo '<br><div class=\"alert alert-warning\" style=\"text-align: center;\" >Este usuario se encuentra desactivado, por favor contacte al administrador.</div>';\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\techo '<head><style type=\"text/css\" media=\"screen\">body{background:#4a6886;color:#fff;}</style></head><body><div class=\"alert alert-warning\" style=\"text-align: center; font-size: 30px;margin-top:15%\" >Las credenciales ingresadas no son correctas.</div><br><br><div style=\"text-align: center; margin-left: 35%;margin-top:5%; width:30%;background:#E75300; padding: 10px;\"><a href=\"/\"> <span style=\" font-size: 18px; color: #fff\"><b>Volver al inicio</b></span> </a></div></body>';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function mostrar_usuaris(){\n $sql = \"SELECT usuaris.id AS id, usuaris.nom AS nom, usuaris.cognoms AS cognoms, usuaris.email AS email,\n usuaris.idrol AS idrol, rols.descrip AS descrip FROM usuaris INNER JOIN rols ON usuaris.idrol = rols.id\";\n \n $query=$this->db->prepare($sql);\n $query->execute();\n $res=$query->fetchAll();\n return $res;\n }", "abstract function getNonRegisteredUsers();", "public function getCoUsuarioElabora()\n\t{\n\t\treturn $this->co_usuario_elabora;\n\t}", "function identificar($usuario,$clave)\n\t\t{\n\t\t\t$clave = md5($clave); // Encriptar la variable para consultar en la base de datos.\n\t\t\t$model = new Crud;\n\t\t\t// Se realizan las consultas Multiples JOIN.\n\t\t\t$model->select = \"nombre,usuario,clave,privilegio\";\n\t\t\t$model->from = 't_permisos';\n\t\t\t$model->condition = \"usuario='$usuario' AND clave='$clave'\";\n\t\t\t$model->orderby = '';\n\t\t\t$model->Read();\n\t\t\t$filas = $model->rows;\n\t\t\t$total = count($filas);\n\t\t\t\n\t\t\tif ($total > 0)\n\t\t\t{\n\t\t\t\tforeach ($filas as $fila)\n\t\t\t\t{\n\t\t\t\t\t$r = array(\n\t\t\t\t\t\t0 =>$fila['nombre'],\n\t\t\t\t\t\t1 =>$fila['usuario'],\n\t\t\t\t\t\t2 =>$fila['clave'],\n\t\t\t\t\t\t3 =>$fila['privilegio'],\n\t\t\t\t\t\t);\n\t\t\t\t};\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$r[0] = 0;\n\t\t\t}\n\t\t\treturn $r;\n\n\t\t}", "public function listarUser() {\n if(IDUSER) {\n $eval = \"SELECT id,nombre,apellidos,email FROM users\";\n $peticion = $this->db->prepare($eval);\n $peticion->execute();\n $resultado = $peticion->fetchAll(PDO::FETCH_OBJ);\n exit(json_encode($resultado));\n } else {\n http_response_code(401);\n exit(json_encode([\"error\" => \"Fallo de autorizacion\"])); \n }\n }", "function getUtilisateur()\r\n {\r\n $req = \"select pseudoUtil from utilisateur;\";\r\n $rep = $this->bdd->query($req);\r\n $tabUtilisateur = array();\r\n while($donnee = $rep->fetch())\r\n {\r\n array_push($tabUtilisateur, $donnee['pseudoUtil']);\r\n }\r\n return $tabUtilisateur;\r\n }", "public function getNick_usuario()\n {\n return $this->nick_usuario;\n }", "public function editar(){\r\n\t\tif(!$this->_validarCampos())\r\n\t\t\t// levantando a excessao CamposObrigatorios //\r\n\t\t\tthrow new CamposObrigatorios();\r\n\t\t\r\n\t\tif($this->_testarServicoExisteEdicao($this->getId(), $this->getNome()))\r\n\t\t\t// levanto a excessao//\r\n\t\t\tthrow new Exception(\"Servico já cadastrado en nossa base de dados\");\r\n\t\t\r\n\t\t// recuperando a instancia da classe de acesso a dados //\r\n\t\t$instancia = ServicoDAO::getInstancia(); \r\n\t\t// retornando o Usuario //\r\n\t\treturn $servico = $instancia->editar($this);\r\n\t}", "public function ctrIngresoUsuario(){\n\t\tif(isset($_POST[\"ingUsuario\"])){\n\t\t\tif(preg_match('/^[a-zA-Z0-9]+$/',$_POST[\"ingUsuario\"]) && \n\t\t\t\tpreg_match('/^[a-zA-Z0-9]+$/',$_POST[\"ingPassword\"])){\n\n\t\t\t\t$tabla=\"usuarios\";\n\t\t\t$item=\"usuario\";\n\t\t\t$valor=$_POST[\"ingUsuario\"];\n\t\t\t$respuesta=ModeloUsuarios::MdlMostrarUsuarios($tabla,$item,$valor);\t\n\t\t\t //var_dump($respuesta[\"usuario\"]);\n\t\t\tif($respuesta[\"usuario\"]==$_POST[\"ingUsuario\"] && $respuesta[\"password\"]==$_POST[\"ingPassword\"]){\n\t\t\t\t$_SESSION[\"iniciarSesion\"]=\"ok\";\n\t\t\t\techo '<script>\n\t\t\t\twindow.location=\"inicio\";\n\t\t\t\t</script>';\n\t\t\t}else{\n\t\t\t\techo '<br><div class=\"alert alert-danger\">Error al ingresar, vuelva a intentarlo</div>';\n\t\t\t}\n\t\t}\n\t}\n }", "function showUsuarios()\r\n\t{\r\n\t\t$valuesUsuarios = $this->User->find('all', array('conditions' => array('User.active' => 1),'order' => 'User.first_lastname ASC'));\r\n\t\t\r\n\t\tforeach ($valuesUsuarios as $value)\r\n\t\t{\r\n\t\t\t$resultadosUsuarios[$value['User']['id']]= $value['User']['first_lastname'].' '.$value['User']['second_lastname'].', '.$value['User']['name'];\r\n\t\t}\r\n\t\t\r\n\t\treturn $resultadosUsuarios;\r\n\t}", "public function getIdentificacao();", "public static function idUsuario()\r\n { \r\n if(isset($_SESSION['jn']['ux'])){\r\n $idu=(int)_Crifrado::desencriptar($_SESSION['jn']['ux'],'ux');\r\n if($idu>0)\r\n return $idu;\r\n else\r\n return 0; \r\n }else{\r\n return 0;\r\n }\r\n }", "public function getID()\n {\n return $this->idUsuario;\n }", "public static function obtenerUsuarios()\n {\n $consulta = \"SELECT * FROM usuarios, usuarios_roles WHERE (usuarios.rol=usuarios_roles.id_rol) ORDER BY usuarios.nombres ASC\";\n try {\n // Preparar sentencia\n $comando = Database::getInstance()->getDb()->prepare($consulta);\n // Ejecutar sentencia preparada\n $comando->execute();\n\n return $comando->fetchAll(PDO::FETCH_ASSOC);\n\n } catch (PDOException $e) {\n return false;\n }\n }", "public function getOwnerusername() {}", "public function showAnnonceParUser(){\n $db = $this->getPDO();\n\n $sql = \"SELECT * FROM annonces INNER JOIN utilisateurs ON annonces.utilisateur_id = utilisateurs.id_utilisateur INNER JOIN categories ON annonces.categorie_id = categories.id_categorie INNER JOIN regions ON annonces.regions_id = regions.id_regions WHERE utilisateur_id = ?\";\n $this->id_annonce = $_SESSION['id_utilisateur'];\n\n $request = $db->prepare($sql);\n $request->bindParam(1, $this->id_annonce);\n $request->execute();\n\n return $request->fetchAll(PDO::FETCH_ASSOC);\n }", "public function Listar()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$result = array();\n\n\t\t\t$stm = $this->pdo->prepare(\"SELECT usuario.`correo`, `usuario`.`clave`, `rol`.`nomRol`, `datospersonales`.`Documento`\nFROM `usuario`\nLEFT JOIN `rol` ON `rol`.`nomRol` = `usuario`.`nomRol` \nLEFT JOIN `datospersonales` ON `datospersonales`.`Documento` = `usuario`.`Documento`\n WHERE correo is not null \");\n\t\t\t$stm->execute();\n\n\t\t\tforeach($stm->fetchAll(PDO::FETCH_OBJ) as $r)\n\t\t\t{\n\t\t\t\t$usu = new Usuario();\n\n\t\t\t\t$usu->__SET('correo', $r->correo);\n\t\t\t\t$usu->__SET('clave', $r->clave);\n\t\t\t\t$usu->__SET('nomRol', $r->nomRol);\n\t\t\t\t$usu->__SET('Documento', $r->Documento);\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t$result[] = $usu;\n\t\t\t}\n\n\t\t\treturn $result;\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\tdie($e->getMessage());\n\t\t}\n\t}", "public function listarUsua(){\n\t\t$sql=\"SELECT USUARI_ID, USUARI_NOMBRES, USUARI_USUARIO\n\t\t FROM usuario ORDER BY USUARI_NOMBRES\";\n\t\treturn ejecutarConsulta($sql);\n\t}", "public function getUsuarioUni($idusuario) {\n }", "public function getCuentaUsuario(){\n return $this->cuentaUsuario;\n }", "public static function getUsuarios()\n {\n $query = \"SELECT id,nombre,email,usuario,privilegio,fecha_registro FROM users\";\n\n self::getConexion();\n\n $resultado = self::$cnx->prepare($query);\n\n $resultado->execute();\n\n $filas = $resultado->fetchAll();\n\n return $filas;\n }", "public function get_usuarios()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$sql = \"SELECT * FROM usuarios\";\n\n\t\t\t$resultado = $this->db->prepare($sql);\n\n\t\t\tif(!$resultado->execute())\n\t\t\t{\n\t\t\t\techo \"<h1 class='text-danger bg-danger'>Falla en la consulta</h1>\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twhile($reg = $resultado->fetch(PDO::FETCH_ASSOC))\n\t\t\t\t{\n\t\t\t\t\t$this->usuarios[] = $reg;\n\t\t\t\t}\n\n\t\t\t\treturn $this->usuarios;\n\t\t\t}\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\tdie(\"Error: {$e->getMessage()}\");\n\t\t}\n\t}", "function selectIdUsu($user) {\n $c = conectar();\n $select = \"select ID_USUARIO from USUARIOS where username='$user'\";\n $resultado = mysqli_query($c, $select);\n $fila = mysqli_fetch_assoc($resultado); //recoge la consulta msquli_query y escoge solo la fila que coincide con el select\n if ($fila==null){\n $fila==0;\n }else{\n $tipoUsuario = $fila[\"ID_USUARIO\"];\n desconectar($c);\n return $tipoUsuario;\n}\n}", "private function consultar_usuario_por_nombre() {\n $sentencia = \"select id,nombrecompleto ,correo,token \"\n . \"from usuario u where u.nombrecompleto ilike '%{$this->referencia_a_buscar}%'; \";\n $this->respuesta = $this->obj_master_select->consultar_base($sentencia);\n }", "public function buscaCvePas(){\n /* Consulta usando ELOQUENT -> Trae al usuario si lo encuentra en la tabla usuarios */\n $usuario = Usuario::where([\n ['cuentaUsuario', $this->cuentaUsuario],\n ['contrasenia', $this->contrasenia]\n ])->first();\n return $usuario;\n }", "public function get_usuario_por_id_ventas($id_usuario)\n {\n\n\n $conectar = parent::conexion();\n parent::set_names();\n\n\n $sql = \"select u.id_usuario,v.id_usuario\n \n from usuarios u \n \n INNER JOIN ventas v ON u.id_usuario=v.id_usuario\n\n\n where u.id_usuario=?\n\n \";\n\n $sql = $conectar->prepare($sql);\n $sql->bindValue(1, $id_usuario);\n $sql->execute();\n\n return $resultado = $sql->fetchAll(PDO::FETCH_ASSOC);\n }", "public function estePerfil(){\n\t\tif (isset( $_SESSION[\"usu\"] )) {\n\t\t\t$usu = $_SESSION[\"usu\"];\n\t\t\treturn $usu->getPerfilusuarios_id();\n\t\t}\n\t\treturn \"\";\n\t}", "public function traerNombreDeUsuarios(){\n $todosLosUsuarios = $this->buscarUsuarios();\n $ultimoId = $this->obtenerUltimoId();\n $nombres = [];\n $nombres['usuarios'] = array_map(function($item){\n return $item['nombre'];\n }, $todosLosUsuarios);\n //unset($nombres['usuarios'][0]);\n return $nombres;\n }", "public function get_usuario($id_login){\n return $this->db->query(\"select * from usuarios where ID_USUARIO=$id_login\"); \n \n }", "public function use_aplicaciones_usuario(){\n return $this->ci->arixkernel->select_all_content_where('app, controller','config.v_cuenta_app_rol',array('cuenta_id' => $this->ci->session->userdata('usuario'), 'rol_id !='=>4));// rol_id=4 => sin permiso\n }", "public function get_usuario_por_id($id_usuario){\r\n $conectar=parent::conexion();// hacemos nuestra conexion\r\n parent::set_names(); // este es para no tener probllemas con las tilde \r\n $sql=\"select * from usuario where id =?\";\r\n $sql=$conectar->prepare($sql); //HACE UNA CONSULTA EN TODOS LOS CAMPOS\r\n $sql->bindValue(1,$id_usuario);\r\n $sql->execute();\r\n return $resultado=$sql->fetchAll(PDO::FETCH_ASSOC);\r\n }", "public function getUsuariosJuridico() {\r\n $usuarios = null;\r\n $sql = \"SELECT usu_id, usu_apellido, usu_nombre \"\r\n . \"FROM usuario \"\r\n . \"WHERE per_id = 8 \"\r\n . \"ORDER BY usu_apellido\";\r\n $r = $this->db->ejecutarConsulta($sql);\r\n if ($r) {\r\n $cont = 0;\r\n while ($w = mysql_fetch_array($r)) {\r\n $usuario = new CUsuario($w['usu_id'], null);\r\n $usuario->setNombre($w['usu_nombre']);\r\n $usuario->setApellido($w['usu_apellido']);\r\n $usuarios[$cont] = $usuario;\r\n $cont++;\r\n }\r\n }\r\n return $usuarios;\r\n }", "public function consultarUsuario(){\n //$conexao = $c->conexao();\n\n $sql = \"SELECT c.*, a.permissao FROM tbusuarios c, tbpermissao a where c.idpermissao = a.idpermissao and permissao <> 'SUPER-ADMIN'order by c.nome\";\n $sql = $this->conexao->query($sql);\n\n $dados = array();\n\n while ($row = $sql->fetch_assoc()) {\n $idusuario = $row[\"idusuario\"];\n $nome = $row[\"nome\"];\n $email = $row[\"email\"];\n $dtnascimento = $row[\"dt_nascimento\"];\n $telefone = $row[\"telefone\"];\n $dtnascimento = $row[\"dt_nascimento\"];\n $habilitado = $row[\"habilitado\"];\n $permissao = $row[\"permissao\"]; \n $idpermissao = $row[\"idpermissao\"]; \n\n $dado = array();\n $dado['idusuario'] = $idusuario;\n $dado['nome'] = $nome;\n $dado['email'] = $email;\n $dado['senha'] = $row['senha'];\n $dado['senha_confirma'] = $row['senha_confirma'];\n $dado['idpermissao'] = $idpermissao;\n $dado['permissao'] = $permissao;\n $dado['telefone'] = $telefone;\n $dado['dtnascimento'] = $dtnascimento;\n $dado['habilitado'] = $habilitado; \n $dados[] = $dado;\n }\n\n return $dados;\n\n }", "public function getUsuarioExclusao()\n {\n return $this->usuarioExclusao;\n }", "public function readUsuarios()\n\t{\n\t\t$sql = 'SELECT IdRol, Nombre, Apellido, Telefono, Email, u.IdEstado, IdUsuario \n FROM usuarios u ORDER BY Apellido';\n\t\t$params = array(null);\n\t\treturn Database::getRows($sql, $params);\n\t}", "public function getUsuario()\n {\n return UsuarioCollector::getById($this->v_id_usuario);\n }", "public function getUsuario()\n {\n return $this->hasOne(User::className(), ['id' => 'createdBy'])->inverseOf('comentarios');\n }", "public function loginUsuario($login = '', $clave = '') {\n $password = md5($clave);\n $this->consulta = \"SELECT * \n FROM usuario \n WHERE login = '$login' \n AND password = '$password' \n AND estado = 'Activo' \n LIMIT 1\";\n\n if ($this->consultarBD() > 0) {\n $_SESSION['LOGIN_USUARIO'] = $this->registros[0]['login'];\n $_SESSION['ID_USUARIO'] = $this->registros[0]['idUsuario'];\n $_SESSION['PRIVILEGIO_USUARIO'] = $this->registros[0]['privilegio'];\n $_SESSION['ACTIVACION_D'] = 0;\n// $_SESSION['ACCESOMODULOS'] = $this->registros[0]['accesoModulos'];\n\n $tipoUsuario = $this->registros[0]['tipoUsuario'];\n\n switch ($tipoUsuario) {\n case 'Empleado':\n $idEmpleado = $this->registros[0]['idEmpleado'];\n $this->consulta = \"SELECT primerNombre, segundoNombre, primerApellido, segundoApellido, cargo, cedula, tipoContrato \n FROM empleado \n WHERE idEmpleado = $idEmpleado \n LIMIT 1\";\n $this->consultarBD();\n// $apellidos = explode(' ', $this->registros[0]['apellidos']);\n $_SESSION['ID_EMPLEADO'] = $idEmpleado;\n $_SESSION['NOMBRES_APELLIDO_USUARIO'] = $this->registros[0]['primerNombre'] . ' ' . $this->registros[0]['primerApellido'];\n $_SESSION['CARGO_USUARIO'] = $this->registros[0]['cargo'];\n $_SESSION['TIPO_CONTRATO'] = $this->registros[0]['tipoContrato'];\n\n $_SESSION['NOMBRES_USUARIO'] = $this->registros[0]['primerNombre'] . ' ' . $this->registros[0]['segundoNombre'];\n $_SESSION['APELLIDOS_USUARIO'] = $this->registros[0]['primerApellido'] . ' ' . $this->registros[0]['segundoApellido'];\n $_SESSION['CEDULA_USUARIO'] = $this->registros[0]['cedula'];\n break;\n case 'Cliente Residencial':\n $idResidencial = $this->registros[0]['idResidencial'];\n $this->consulta = \"SELECT nombres, apellidos, cedula \n FROM residencial \n WHERE idResidencial = $idResidencial \n LIMIT 1\";\n $this->consultarBD();\n $apellidos = explode(' ', $this->registros[0]['apellidos']);\n $_SESSION['NOMBRES_APELLIDO_USUARIO'] = $this->registros[0]['nombres'] . ' ' . $apellidos[0];\n $_SESSION['CARGO_USUARIO'] = 'Cliente Residencial';\n\n $_SESSION['NOMBRES_USUARIO'] = $this->registros[0]['nombres'];\n $_SESSION['APELLIDOS_USUARIO'] = $this->registros[0]['apellidos'];\n $_SESSION['CEDULA_USUARIO'] = $this->registros[0]['cedula'];\n break;\n case 'Cliente Corporativo':\n $idCorporativo = $this->registros[0]['idCorporativo'];\n $this->consulta = \"SELECT razonSocial, nit \n FROM corporativo \n WHERE idCorporativo = $idCorporativo \n LIMIT 1\";\n\n $this->consultarBD();\n $_SESSION['NOMBRES_APELLIDO_USUARIO'] = $this->registros[0]['razonSocial'];\n $_SESSION['CARGO_USUARIO'] = 'Cliente Corporativo';\n\n $_SESSION['NOMBRES_USUARIO'] = $this->registros[0]['razonSocial'];\n $_SESSION['APELLIDOS_USUARIO'] = $this->registros[0]['razonSocial'];\n $_SESSION['CEDULA_USUARIO'] = $this->registros[0]['nit'];\n break;\n case 'Administrador':\n $_SESSION['NOMBRES_APELLIDO_USUARIO'] = 'Administrador';\n $_SESSION['CARGO_USUARIO'] = 'Administrador';\n $_SESSION['TIPO_CONTRATO'] = 'Laboral Administrativo';\n\n $_SESSION['NOMBRES_USUARIO'] = 'Administrador';\n $_SESSION['APELLIDOS_USUARIO'] = 'Administrador';\n $_SESSION['CEDULA_USUARIO'] = '10297849';\n $_SESSION['ID_EMPLEADO'] = '12';\n $_SESSION['ID_CAJA_MAYOR_FNZAS'] = 2;\n $idEmpleado = 12;\n break;\n default:\n break;\n }\n\n //******************************************************************\n // VARIABLES DE SESSION PARA EL ACCESO AL MODULO RECAUDOS Y FACTURACION DE swDobleclick\n\n $_SESSION['user_name'] = $_SESSION['NOMBRES_APELLIDO_USUARIO'];\n $_SESSION['user_charge'] = $_SESSION['CARGO_USUARIO'];\n\n $_SESSION['user_id'] = 0; //$this->getIdUsuarioOLD($idEmpleado);\n $_SESSION['user_privilege'] = 0; //$this->getPrivilegioUsuarioOLD($idEmpleado);\n\n //******************************************************************\n\n $fechaHora = date('Y-m-d H:i:s');\n $idUsuario = $_SESSION['ID_USUARIO'];\n $consultas = array();\n $consultas[] = \"UPDATE usuario \n SET fechaHoraUltIN = '$fechaHora' \n WHERE idUsuario = $idUsuario\";\n $this->ejecutarTransaccion($consultas);\n return true;\n } else {\n return false;\n }\n }", "public function getUsuariosId($id){\n $connect = ConnectionManager::get('default');\n $consulta = \"select usuarios_id from solicitudes where id = \".$id.\";\";\n $usuariosId = $connect->execute($consulta)->fetchAll();\n return $usuariosId[0][0];\n }", "public function getUsuarios(){\n\t\t$filasPagina = 7;//registros mostrados por página\n\n\t\tif(isset($_GET['pagina'])){//si le pasamos el valor \"pagina\" de la url (si el usuario da click en la paginación)\n\t\t\t\tif($_GET['pagina']==1){\n\t\t\t\t$pagina=1; \n\t\t\t\theader(\"Location: principal.php?c=controlador&a=muestraUsuarios\");\n\t\t\t\t}else{\n\t\t\t\t\t$pagina=$_GET['pagina'];//índice que indica página actual\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$pagina=1;//índice que indica página actual\n\t\t\t}\n\n\t\t\t$empezarDesde = ($pagina-1) * $filasPagina;\n\n\t\t\t$sql = \" SELECT * FROM usuarios \";\n\n\t\t\t$resultado = $this->db->query($sql);\n\n\t\t\t$resultado->execute(array());\n\n\t\t\t$numFilas = $resultado->rowCount();//número de registos totales de la consulta\n\n\t\t\t//ceil — Redondear fracciones hacia arriba\n\t\t\t$totalPaginas = ceil($numFilas / $filasPagina);//calcula cuántas páginas serán en total para mostrar todos los registros\n\n\t\t\t$resultado->closeCursor();\n\n\t\t//------------------------- Consulta para mostrar los resultados ---------------------------\n\n\t\t\t$sql_limite = \" SELECT * FROM usuarios LIMIT $empezarDesde , $filasPagina \";\n\n\t\t\t$resultado = $this->db->query($sql_limite);//ejecutando la consulta con la conexión establecida\n\n\t\t\twhile($row = $resultado->fetch(PDO::FETCH_ASSOC)){\n\t\t\t\t$this->objeto[] = $row;//llenando array con valores de la consulta\n\t\t\t}\n\n\t\treturn $this->objeto;\n\t}", "function getUsersAdmin() {\n $usuarios = [];\n\n $con = crearConexion();\n\n $query = \"SELECT `username` FROM `usuario` WHERE `tipo`='0'\";\n\n $result = mysqli_query($con, $query);\n\n while ($row = mysqli_fetch_array($result)) {\n $usuarios[] = $row['username'];\n }\n\n cerrarConexion($con);\n return $usuarios;\n}" ]
[ "0.6851049", "0.6560019", "0.650718", "0.62987185", "0.62932223", "0.6285715", "0.6263644", "0.62054706", "0.6189452", "0.6187577", "0.6164722", "0.61436677", "0.61317044", "0.6101554", "0.6083329", "0.6070906", "0.60618585", "0.6041862", "0.60403645", "0.6009303", "0.6007213", "0.6000444", "0.6000444", "0.5997553", "0.59924984", "0.5990141", "0.596224", "0.59621906", "0.5946309", "0.5943559", "0.59393907", "0.5931641", "0.59306264", "0.5894015", "0.5892292", "0.5891701", "0.5884876", "0.58814335", "0.587543", "0.58706546", "0.58690983", "0.58681995", "0.58595955", "0.5851552", "0.58453923", "0.58442146", "0.5842086", "0.58381003", "0.58367115", "0.58327883", "0.5825963", "0.5825222", "0.5817245", "0.58170325", "0.5809983", "0.5807569", "0.5796302", "0.57857937", "0.57829183", "0.57784903", "0.57751215", "0.5774155", "0.5762351", "0.5759985", "0.5759452", "0.5758842", "0.5751288", "0.5744072", "0.5740142", "0.57311296", "0.57307357", "0.57279736", "0.5724979", "0.5720123", "0.57176995", "0.5715799", "0.5711615", "0.5710237", "0.5708221", "0.57042056", "0.5702407", "0.5701839", "0.5700661", "0.56996524", "0.56970346", "0.5694961", "0.56880265", "0.56874317", "0.56865734", "0.5685726", "0.56848073", "0.56795835", "0.56794417", "0.56763357", "0.566954", "0.566861", "0.56504", "0.5646585", "0.56461346", "0.56391746", "0.5635418" ]
0.0
-1
Funcion que encuentra la relacion de a que usuarios les interesa el contrato actualizado
public function getUserInterestContractId($contractId){ $this->loadModel('UserInterestContract'); $relatedUsers = $this->UserInterestContract->find('all',array('conditions'=>array('UserInterestContract.interest_contracts_id' => $contractId))); $userInterestContractIds = Array(); foreach($relatedUsers as $relatedUser) { $userInterestContractIds[] = $relatedUser['UserInterestContract']['id']; } return $userInterestContractIds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function atualizarUsuarios($idusuario, $nome, $email, $senha, $senha_confirma, $telefone, $dtnascimento, $habilitado, $idpermissao){\n //$conexao = $c->conexao();\n\n $sql = \"SELECT count(*) as total from tbusuarios WHERE email = '$email' \";\n $sql = $this->conexao->query($sql);\n $row = $sql->fetch_assoc();\n \n if($senha != $senha_confirma){\n return 2;\n }elseif ($senha == '' || $senha == null && $senha_confirma == '' || $senha_confirma == null ) {\n $sql = \"UPDATE tbusuarios SET nome = '$nome', email='$email', dt_nascimento='$dtnascimento', telefone='$telefone', data_modificado = NOW(), habilitado='$habilitado', idpermissao='$idpermissao' WHERE idusuario = '$idusuario' \";\n echo $this->conexao->query($sql);\n }else{\n $sql = \"UPDATE tbusuarios SET nome = '$nome', email='$email', senha='$senha', senha_confirma='$senha_confirma' dt_nascimento='$dtnascimento', telefone='$telefone', data_modificado = NOW(), habilitado='$habilitado', idpermissao='$idpermissao' WHERE idusuario = '$idusuario' \";\n\n echo $this->conexao->query($sql);\n }\n }", "public function editar_usuario($id_usuario, $nombre, $apellido, $cedula, $telefono, $email, $direccion, $cargo, $usuario, $password1, $password2, $estado, $permisos)\n {\n\n $conectar = parent::conexion();\n parent::set_names();\n require_once(\"Usuarios.php\");\n $usuarios = new Usuarios();\n //verifica si el id_usuario tiene registro asociado a compras\n $usuario_compras = $usuarios->get_usuario_por_id_compras($_POST[\"id_usuario\"]);\n //verifica si el id_usuario tiene registro asociado a ventas\n $usuario_ventas = $usuarios->get_usuario_por_id_ventas($_POST[\"id_usuario\"]);\n //si el id_usuario NO tiene registros asociados en las tablas compras y ventas entonces se puede editar todos los campos de la tabla usuarios\n if (is_array($usuario_compras) == true and count($usuario_compras) == 0 and is_array($usuario_ventas) == true and count($usuario_ventas) == 0) {\n $sql = \"update usuarios set \n nombres=?,\n apellidos=?,\n cedula=?,\n telefono=?,\n correo=?,\n direccion=?,\n cargo=?,\n usuario=?,\n password=?,\n password2=?,\n estado=?\n where \n id_usuario=?\n \";\n $sql = $conectar->prepare($sql);\n $sql->bindValue(1, $_POST[\"nombre\"]);\n $sql->bindValue(2, $_POST[\"apellido\"]);\n $sql->bindValue(3, $_POST[\"cedula\"]);\n $sql->bindValue(4, $_POST[\"telefono\"]);\n $sql->bindValue(5, $_POST[\"email\"]);\n $sql->bindValue(6, $_POST[\"direccion\"]);\n $sql->bindValue(7, $_POST[\"cargo\"]);\n $sql->bindValue(8, $_POST[\"usuario\"]);\n $sql->bindValue(9, $_POST[\"password1\"]);\n $sql->bindValue(10, $_POST[\"password2\"]);\n $sql->bindValue(11, $_POST[\"estado\"]);\n $sql->bindValue(12, $_POST[\"id_usuario\"]);\n $sql->execute();\n //SE ELIMINAN LOS PERMISOS SOLO CUANDO SE ENVIE EL FORMULARIO CON SUBMIT\n //Eliminamos todos los permisos asignados para volverlos a registrar\n $sql_delete = \"delete from usuario_permiso where id_usuario=?\";\n $sql_delete = $conectar->prepare($sql_delete);\n $sql_delete->bindValue(1, $_POST[\"id_usuario\"]);\n $sql_delete->execute();\n //$resultado=$sql_delete->fetchAll();\n //insertamos los permisos\n //almacena todos los checkbox que han sido marcados\n //este es un array tiene un name=permiso[]\n $permisos = $_POST[\"permiso\"];\n // print_r($_POST);\n $num_elementos = 0;\n while ($num_elementos < count($permisos)) {\n $sql_detalle = \"insert into usuario_permiso\n values(null,?,?)\";\n $sql_detalle = $conectar->prepare($sql_detalle);\n $sql_detalle->bindValue(1, $_POST[\"id_usuario\"]);\n $sql_detalle->bindValue(2, $permisos[$num_elementos]);\n $sql_detalle->execute();\n //recorremos los permisos con este contador\n $num_elementos = $num_elementos + 1;\n }\n } else {\n //si el usuario tiene registros asociados en compras y ventas entonces no se edita el nombre, apellido y cedula\n $sql = \"update usuarios set \n telefono=?,\n correo=?,\n direccion=?,\n cargo=?,\n usuario=?,\n password=?,\n password2=?,\n estado=?\n where \n id_usuario=?\n \";\n //echo $sql; exit();\n $sql = $conectar->prepare($sql);\n $sql->bindValue(1, $_POST[\"telefono\"]);\n $sql->bindValue(2, $_POST[\"email\"]);\n $sql->bindValue(3, $_POST[\"direccion\"]);\n $sql->bindValue(4, $_POST[\"cargo\"]);\n $sql->bindValue(5, $_POST[\"usuario\"]);\n $sql->bindValue(6, $_POST[\"password1\"]);\n $sql->bindValue(7, $_POST[\"password2\"]);\n $sql->bindValue(8, $_POST[\"estado\"]);\n $sql->bindValue(9, $_POST[\"id_usuario\"]);\n $sql->execute();\n //SE ELIMINAN LOS PERMISOS SOLO CUANDO SE ENVIE EL FORMULARIO CON SUBMIT\n //Eliminamos todos los permisos asignados para volverlos a registrar\n $sql_delete = \"delete from usuario_permiso where id_usuario=?\";\n $sql_delete = $conectar->prepare($sql_delete);\n $sql_delete->bindValue(1, $_POST[\"id_usuario\"]);\n $sql_delete->execute();\n //$resultado=$sql_delete->fetchAll();\n //insertamos los permisos\n //almacena todos los checkbox que han sido marcados\n //este es un array tiene un name=permiso[]\n if (isset($_POST[\"permiso\"])) {\n $permisos = $_POST[\"permiso\"];\n }\n //print_r($_POST);\n $num_elementos = 0;\n\n while ($num_elementos < count($permisos)) {\n\n $sql_detalle = \"insert into usuario_permiso\n values(null,?,?)\";\n\n $sql_detalle = $conectar->prepare($sql_detalle);\n $sql_detalle->bindValue(1, $_POST[\"id_usuario\"]);\n $sql_detalle->bindValue(2, $permisos[$num_elementos]);\n $sql_detalle->execute();\n\n\n //recorremos los permisos con este contador\n $num_elementos = $num_elementos + 1;\n } //fin while\n\n\n } // fin else\n\n\n }", "function actualizar_usuario($id_colaborador,$nombre,$primer_apellido,$segundo_apellido,$usuario,$password,$email,$t_ruso,$t_arabe,$t_rumano,$t_chino,$t_polaco,$t_bulgaro,$t_ingles,$t_frances,$t_catalan,$gestion_usuarios,$gestion_palabras,$definicion_palabras,$borrar_palabras,$add_imagenes,$borrar_imagenes,$add_simbolos,$borrar_simbolos,$simbolos_especiales) {\n\n\t\t$UpdateRecords = \"UPDATE colaboradores \n\t\tSET nombre='$nombre', primer_apellido='$primer_apellido', segundo_apellido='$segundo_apellido', login='$usuario', password='$password',\n\t\testado='1', email='$email'\n\t\tWHERE id_colaborador='$id_colaborador'\";\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($UpdateRecords); \t\n\t\tmysql_close($connection);\n\t\t\n\t\t$UpdateRecords2 = \"UPDATE colaboradores_permisos\n\t\tSET traduccion_ruso='$t_ruso', traduccion_arabe='$t_arabe', traduccion_rumano='$t_rumano',\n\t\ttraduccion_chino='$t_chino',traduccion_polaco='$t_polaco',traduccion_bulgaro='$t_bulgaro',\n\t\ttraduccion_ingles='$t_ingles',traduccion_frances='$t_frances',traduccion_catalan='$t_catalan',\n\t\tgestion_usuarios='$gestion_usuarios', gestion_palabras='$gestion_palabras', definicion_palabras='$definicion_palabras', \n\t\tborrar_palabras='$borrar_palabras', add_imagenes='$add_imagenes', borrar_imagenes='$borrar_imagenes', add_simbolos='$add_simbolos',\n\t\tborrar_simbolos='$borrar_simbolos', simbolos_especiales='$simbolos_especiales'\n\t\t WHERE id_colaborador='$id_colaborador'\";\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($UpdateRecords2); \n\t\tmysql_close($connection);\n\t}", "public function ActualizarUsuarios()\n\t{\n\n\t\tif(empty($_POST[\"cedula\"]) or empty($_POST[\"nombres\"]) or empty($_POST[\"usuario\"]) or empty($_POST[\"password\"]))\n\t\t{\n\t\t\techo \"1\";\n\t\t\texit;\n\t\t}\n\t\tself::SetNames();\n\t\t$sql = \" select * from usuarios where codigo != ? and cedula = ? \";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->execute( array($_POST[\"codigo\"], $_POST[\"cedula\"]) );\n\t\t$num = $stmt->rowCount();\n\t\tif($num > 0)\n\t\t{\n\t\t\techo \"2\";\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql = \" select email from usuarios where codigo != ? and email = ? \";\n\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t$stmt->execute( array($_POST[\"codigo\"], $_POST[\"email\"]) );\n\t\t\t$num = $stmt->rowCount();\n\t\t\tif($num > 0)\n\t\t\t{\n\t\t\t\techo \"3\";\n\t\t\t\texit;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$sql = \" select usuario from usuarios where codigo != ? and usuario = ? \";\n\t\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t\t$stmt->execute( array($_POST[\"codigo\"], $_POST[\"usuario\"]) );\n\t\t\t\t$num = $stmt->rowCount();\n\t\t\t\tif($num == 0)\n\t\t\t\t{\n\t\t\t\t\t$sql = \" update usuarios set \"\n\t\t\t\t\t.\" cedula = ?, \"\n\t\t\t\t\t.\" nombres = ?, \"\n\t\t\t\t\t.\" nrotelefono = ?, \"\n\t\t\t\t\t.\" cargo = ?, \"\n\t\t\t\t\t.\" email = ?, \"\n\t\t\t\t\t.\" usuario = ?, \"\n\t\t\t\t\t.\" password = ?, \"\n\t\t\t\t\t.\" nivel = ?, \"\n\t\t\t\t\t.\" status = ? \"\n\t\t\t\t\t.\" where \"\n\t\t\t\t\t.\" codigo = ?;\n\t\t\t\t\t\";\n\t\t\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t\t\t$stmt->bindParam(1, $cedula);\n\t\t\t\t\t$stmt->bindParam(2, $nombres);\n\t\t\t\t\t$stmt->bindParam(3, $nrotelefono);\n\t\t\t\t\t$stmt->bindParam(4, $cargo);\n\t\t\t\t\t$stmt->bindParam(5, $email);\n\t\t\t\t\t$stmt->bindParam(6, $usuario);\n\t\t\t\t\t$stmt->bindParam(7, $password);\n\t\t\t\t\t$stmt->bindParam(8, $nivel);\n\t\t\t\t\t$stmt->bindParam(9, $status);\n\t\t\t\t\t$stmt->bindParam(10, $codigo);\n\n\t\t\t\t\t$cedula = strip_tags($_POST[\"cedula\"]);\n\t\t\t\t\t$nombres = strip_tags($_POST[\"nombres\"]);\n\t\t\t\t\t$nrotelefono = strip_tags($_POST[\"nrotelefono\"]);\n\t\t\t\t\t$cargo = strip_tags($_POST[\"cargo\"]);\n\t\t\t\t\t$email = strip_tags($_POST[\"email\"]);\n\t\t\t\t\t$usuario = strip_tags($_POST[\"usuario\"]);\n\t\t\t\t\t$password = sha1(md5($_POST[\"password\"]));\n\t\t\t\t\t$nivel = strip_tags($_POST[\"nivel\"]);\n\t\t\t\t\t$status = strip_tags(strtoupper($_POST[\"status\"]));\n\t\t\t\t\t$codigo = strip_tags(strtoupper($_POST[\"codigo\"]));\n\t\t\t\t\t$stmt->execute();\n\n################## SUBIR FOTO DE USUARIOS ######################################\n//datos del arhivo \n\t\t\t\t\tif (isset($_FILES['imagen']['name'])) { $nombre_archivo = $_FILES['imagen']['name']; } else { $nombre_archivo =''; }\n\t\t\t\t\tif (isset($_FILES['imagen']['type'])) { $tipo_archivo = $_FILES['imagen']['type']; } else { $tipo_archivo =''; }\n\t\t\t\t\tif (isset($_FILES['imagen']['size'])) { $tamano_archivo = $_FILES['imagen']['size']; } else { $tamano_archivo =''; } \n//compruebo si las características del archivo son las que deseo \n\t\t\t\t\tif ((strpos($tipo_archivo,'image/jpeg')!==false)&&$tamano_archivo<50000) \n\t\t\t\t\t{ \n\t\t\t\t\t\tif (move_uploaded_file($_FILES['imagen']['tmp_name'], \"fotos/\".$nombre_archivo) && rename(\"fotos/\".$nombre_archivo,\"fotos/\".$_POST[\"cedula\"].\".jpg\"))\n\t\t\t\t\t\t{ \n## se puede dar un aviso\n\t\t\t\t\t\t} \n## se puede dar otro aviso \n\t\t\t\t\t}\n################## FINALIZA SUBIR FOTO DE USUARIOS ######################################\n\n\t\t\t\t\techo \"<div class='alert alert-info'>\";\n\t\t\t\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\t\t\t\techo \"<span class='fa fa-check-square-o'></span> EL USUARIO FUE ACTUALIZADO EXITOSAMENTE\";\n\t\t\t\t\techo \"</div>\";\t\t\n\t\t\t\t\texit;\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\techo \"4\";\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function modificarUsuario($nombre, $apellidos, $email, $sexo, $fech_nac, $ruta, $ciudad, $userActual) {\n $nombreSaneado = trim(filter_var($nombre, FILTER_SANITIZE_STRING));\n $apellidosSaneado = trim(filter_var($apellidos, FILTER_SANITIZE_STRING));\n $emailSaneado = trim(filter_var($email, FILTER_SANITIZE_EMAIL));\n $sexoSaneado = trim(filter_var($sexo, FILTER_SANITIZE_STRING));\n $fech_nacSaneado = trim(filter_var($fech_nac, FILTER_SANITIZE_STRING));\n $rutaSaneado = trim(filter_var($ruta, FILTER_SANITIZE_STRING));\n $ciudadSaneado = trim(filter_var($ciudad, FILTER_SANITIZE_STRING));\n $userActualSaneado = trim(filter_var($userActual, FILTER_SANITIZE_STRING));\n\n $con = crearConexion();\n $query = \"UPDATE `usuario` SET `nombre`='$nombreSaneado',`apellidos`='$apellidosSaneado',`email`='$emailSaneado',`sexo`='$sexoSaneado',`f_nacimiento`='$fech_nacSaneado',`foto`='$rutaSaneado',`ciudad`='$ciudadSaneado',`tipo`= 0 WHERE `username` = '$userActualSaneado'\";\n if (mysqli_query($con, $query)) {\n return TRUE;\n } else {\n return FALSE;\n }\n cerrarConexion($con);\n}", "public function ctrIngresoUsuario(){\n\n\t\tif(isset($_POST[\"user01\"])){\n\n\t\t//\t if(preg_match('/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/', $_POST[\"ingresoEmail\"]) && preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"ingresoPassword\"])){\n\n\t\t\t \t//$encriptar = crypt($_POST[\"ingresoPassword\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n\t\t\t\t$encriptar = crypt($_POST[\"passwords01\"], '$2a$07$asxx54ahjppf17sd87a5a4dDDGsystemdevmybebe$');\n\n\t\t\t \t$tabla = \"genusuario\";\n\t\t\t \t$item = \"usunombre\";\n\t\t\t \t$valor = $_POST[\"user01\"];\n\n\t\t\t \t$respuesta = UserModel::mdlMostrarUsuarios($tabla, $item, $valor);\n\n\t\t\t\t//echo \"<pre>\".print_r($respuesta).\"</pre>\";\n\n\t\t\t \tif($respuesta[\"usunombre\"] == $_POST[\"user01\"] && $respuesta[\"usuclave\"] == $encriptar){\n\n\t\t\t \t\tif($respuesta[\"usuverific\"] == 0){\n\n\t\t\t \t\t\techo'<script>\n\n\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\t\t\t \ttitle: \"¡ERROR!\",\n\t\t\t\t\t\t\t\t \ttext: \"¡El correo electrónico aún no ha sido verificado, por favor revise la bandeja de entrada o la carpeta SPAM de su correo electrónico para verificar la cuenta, o contáctese con nuestro soporte a [email protected]!\",\n\t\t\t\t\t\t\t\t \tshowConfirmButton: true,\n\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\t\t\t\tif(result.value){ \n\t\t\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t</script>';\n\n\t\t\t\t\t\treturn;\n\n\t\t\t \t\t}else{\n\n\t\t\t \t\t\t$_SESSION[\"validarSesion\"] = \"ok\";\n\t\t\t \t\t\t$_SESSION[\"id\"] = $respuesta[\"oid\"];\n\n\t\t\t \t\t\t$ruta = RouteController::ctrRoute();\n\n\t\t\t \t\t\techo '<script>\n\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"'.$ruta.'backoffice\";\t\t\t\t\n\n\t\t\t\t\t\t</script>';\n\n\t\t\t \t\t}\n\n\t\t\t \t}else{\n\n\t\t\t \t\techo'<script>\n\n\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\t\t \ttitle: \"¡ERROR!\",\n\t\t\t\t\t\t\t \ttext: \"¡El email o contraseña no coinciden!\",\n\t\t\t\t\t\t\t \tshowConfirmButton: true,\n\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\t\t\tif(result.value){ \n\t\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t\t } \n\t\t\t\t\t\t});\n\n\t\t\t\t\t</script>';\n\n\t\t\t \t}\n\n\n\t\t/*\t }else{\n\n\t\t\t \techo '<script>\n\n\t\t\t\t\tswal({\n\n\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\ttitle: \"¡CORREGIR!\",\n\t\t\t\t\t\ttext: \"¡No se permiten caracteres especiales en ninguno de los campos!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\n\t\t\t\t\t\t\thistory.back();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\t\n\n\t\t\t\t</script>';\n\n\t\t\t }*/\n\n\t\t}\n\n\t}", "function alterarUsuario($conexao){\n\t\tif(isset($_POST[\"idusuario\"])){\n\t\t\t/*preenche os dados com as informações vindas do formulário*/\n\t\t\t$nome = $_POST['txtNomeUsuario'];\n\t\t\t$telefone = $_POST['txtTelUsuario'];\n\t\t\t$email = $_POST['txtEmailUsuario'];\n\t\t\t$logradouro = $_POST['txtLograUsuario'];\n\t\t\t$numero = $_POST['txtNumUsuario'];\n\t\t\t$bairro = $_POST['txtBairroUsuario'];\n\t\t\t$cidade = $_POST['txtCidadeUsuario'];\n\t\t\t$estado = $_POST['txtEstadoUsuario'];\n\t\t\t$sexo = isset($_POST['txtSexoUsuario']);\n\t\t\t$dtNasc = $_POST['txtDtnascUsuario'];\n\t\t\t$id = $_POST['idusuario'];\n\n\t\t\t/*Chama a função para alterar no banco passando os novos valores*/\n\t\t\t$retorno = usuario_alterar($conexao,$nome,$telefone,$email,$logradouro,$numero,$bairro,\n\t\t\t\t$cidade,$estado,$sexo,$dtNasc,$id);\n\n\t\t\t/*Se existir algum retorno ele entra coloca uma mensagem de sucesso e chama a pagina para listar os dados*/\n\t\t\tif($retorno){\n\t\t\t\t$retornoExc = \"Contato Alterado com Sucesso!\";\n\t\t\t\t$dados = listarDados($conexao);\n\t\t\t\trequire(\"view_lista.php\");\n\t\t\t}else{\n\t\t\t\t/*retorna mensagem informando que a alteração não foi realizada*/\n\t\t\t\tif(!valida_email($email)){\n\t\t\t\t\t$retornoExc = \"A alteração falhou, digite um email valido!\";\n\t\t\t\t}\n\t\t\t\telse if($nome == \"\"){\n\t\t\t\t\t$retornoExc = \"A alteração falhou o campo nome é obrigatório, tente novamente!\";\n\t\t\t\t}\n\t\t\t\t$dados = listarDados($conexao);\n\t\t\t\trequire(\"view_lista.php\");\n\t\t\t}\n\t\t\t\n\t\t}else if(isset($_GET['codigo'])){\n\t\t\t/*Pega o id passado pela url do contato que deseja excluir*/\n\t\t\t$id = $_GET['codigo'];\n\t\t\t/*Pega os dados do usuário passando a conexão e id*/\n\t\t\t$retorno = usuario_porId($conexao,$id);\n\t\t\t/*Se não existir retorno informa que busca falhou e retorna falso*/\n\t\t\tif(!$retorno){\n\t\t\t\t$retornoExc = \"Falha em buscar o Contato \";\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t/*Cria uma linha com os dados do contato passando para a variavel*/\n\t\t\t$dadosUsuario = mysqli_fetch_row($retorno);\n\t\t\t/*Passa para a variavel dados as informações do array com seus indices*/\n\t\t\t$dados = array(\"id\" => $dadosUsuario[0], \"nome\" => $dadosUsuario[1], \"logradouro\" => $dadosUsuario[2] , \"numero\" => $dadosUsuario[3], \"bairro\" => $dadosUsuario[4], \"cidade\" => $dadosUsuario[5], \"estado\" => $dadosUsuario[6], \"telefone\" => $dadosUsuario[7], \"email\" => $dadosUsuario[8], \"sexo\" => $dadosUsuario[9], \"dtNasc\" => $dadosUsuario[10]);\n\t\t\t/*Chama o formulario para alteração do usuário*/\n\t\t\trequire(\"view_form_cadastro_altera_usuario.php\");\n\t\t}else{\n\t\t\t$dados = listarDados($conexao);\n\t\t\trequire(\"view_lista.php\");\n\t\t}\n\t\t\n\t}", "public function actualizar(){\r\n\t\t\t$user_table = Config::get()->db_user_table;\r\n\t\t\t$consulta = \"UPDATE $user_table\r\n\t\t\t\t\t\t\t SET password='$this->password', \r\n\t\t\t\t\t\t\t \t\tnombre='$this->nombre', \r\n\t\t\t\t\t\t\t \t\temail='$this->email', \r\n\t\t\t\t\t\t\t \t\timagen='$this->imagen',\r\n apellido1='$this->apellido1',\r\n apellido2='$this->apellido2', \r\n fecha_nacimiento='$this->fecha_nacimiento',\r\n direccion='$this->direccion',\r\n cp='$this->cp',\r\n poblacion='$this->poblacion',\r\n telf_movil='$this->telf_movil',\r\n telf_fijo='$this->telf_fijo',\r\n nivel_estudios='$this->nivel_estudios',\r\n nombre_titulacion='$this->nombre_titulacion',\r\n otros='$this->otros',\r\n observaciones='$this->observaciones',\r\n en_activo=$this->en_activo,\r\n razon_social='$this->razon_social',\r\n puesto_trabajo='$this->puesto_trabajo',\r\n regimen=$this->regimen,\r\n activo=$this->activo\r\n\t\t\t\t\t\t\t WHERE dni='$this->dni';\";\r\n\t\t\treturn Database::get()->query($consulta);\r\n\t\t}", "static public function ctrIngresoUsuario()\n {\n\n if (isset($_POST['ingEmail'])) {\n if (\n preg_match('/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/', $_POST[\"ingEmail\"]) &&\n preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"ingPassword\"])\n ) {\n\n\n $encriptar = crypt($_POST[\"ingPassword\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n $tabla = \"usuarios\";\n $item = \"email\";\n $valor = $_POST[\"ingEmail\"];\n\n $respuesta = ModeloUsuarios::mdlMostrarUsuario($tabla, $item, $valor);\n\n /*Validacion junto con la BD*/\n if ($respuesta[\"email\"] == $_POST[\"ingEmail\"] && $respuesta[\"password\"] == $encriptar) {\n //validacion con la BD si ya esta verficado el email\n if ($respuesta['verificacion'] == 1) {\n echo '<script> \n\n\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t title: \"¡NO HA VERIFICADO SU CORREO ELECTRONICO!\",\n\t\t\t\t\t\t\t\t text: \"¡Por favor revise la bandeja de entrada o la carpeta de SPAM, para verifcar la direccion de correo electronico ' . $_POST[\"ingEmail\"] . '\" ,\n\t\t\t\t\t\t\t\t type:\"error\",\n\t\t\t\t\t\t\t\t confirmButtonText: \"Cerrar\",\n\t\t\t\t\t\t\t\t closeOnConfirm: false\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tfunction (isConfirm){\n\t\t\t\t\t\t\t if(isConfirm){\n\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t</script>';\n } else {\n\n /*Variables de sesion*/\n\n @session_start();\n $_SESSION['validarSesion'] = 'ok';\n $_SESSION['id'] = $respuesta['id'];\n $_SESSION['nombre'] = $respuesta['nombre'];\n $_SESSION['foto'] = $respuesta['foto'];\n $_SESSION['email'] = $respuesta['email'];\n $_SESSION['password'] = $respuesta['password'];\n $_SESSION['modo'] = $respuesta['modo'];\n\n //Utilizando del local storgae, alcenamos la ruta, para cuando inicie sesion, sea redireccionado hacia la ruta\n echo '\n <script> \n window.location = localStorage.getItem(\"rutaActual\");\n </script>\n ';\n\n\n }\n } else {\n echo '<script> \n\n\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t title: \"¡ERROR AL INGRESAR!\",\n\t\t\t\t\t\t\t\t text: \"¡Por favor revise el correo electronico, o la contraseña\" ,\n\t\t\t\t\t\t\t\t type:\"error\",\n\t\t\t\t\t\t\t\t confirmButtonText: \"Cerrar\",\n\t\t\t\t\t\t\t\t closeOnConfirm: false\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tfunction (isConfirm){\n\t\t\t\t\t\t\t if(isConfirm){\n\t\t\t\t\t\t\t window.location = localStorage.getItem(\"rutaActual\");\n\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t</script>';\n }\n\n\n } else {\n echo '<script> \n\n\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t title: \"¡ERROR!\",\n\t\t\t\t\t\t\t\t text: \"¡Error al ingresar al sistema, no se permiten caracteres especiales\",\n\t\t\t\t\t\t\t\t type:\"error\",\n\t\t\t\t\t\t\t\t confirmButtonText: \"Cerrar\",\n\t\t\t\t\t\t\t\t closeOnConfirm: false\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tfunction (isConfirm){\n\t\t\t\t\t\t\t if(isConfirm){\n\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t</script>';\n }\n }\n\n\n }", "function modificarUsuario($oldUser,$nombre,$apellidos,$usuario,$password,$poblacion,$cp,$horario, $data){\n\n //echo $oldUser . \"id usuario \";\n\n if(isset($nombre) && !empty($nombre))\n\n mysqli_query($this->mysqli,\" UPDATE usuario SET nombre= '\" . $nombre . \"' WHERE id_usuario = '\" .$oldUser .\"'\");\n\n if(isset($apellidos) && !empty($apellidos))\n\n mysqli_query($this->mysqli,\" UPDATE usuario SET apellidos= '\" . $apellidos . \"' WHERE id_usuario = '\" .$oldUser .\"'\");\n\n if(isset($usuario) && !empty($usuario)){\n\n mysqli_query($this->mysqli,\" UPDATE usuario SET usuario= '\" . $usuario . \"' WHERE id_usuario = '\" .$oldUser .\"'\");\n \n }\n\n if(isset($password) && !empty($password)){\n \n $consulta = \"UPDATE usuario SET password ='\" .$password .\"' WHERE id_usuario = '\" .$oldUser .\"'\";\n //echo $consulta .\" \";\n mysqli_query($this->mysqli,$consulta);\n //echo \"entro\".$password;\n }\n if(isset($poblacion) && !empty($poblacion))\n\n mysqli_query($this->mysqli,\" UPDATE usuario SET poblacion= '\" . $poblacion . \"' WHERE id_usuario = '\" .$oldUser .\"'\");\n\n if(isset($cp) && !empty($cp))\n\n mysqli_query($this->mysqli,\" UPDATE usuario SET cp= '\" . $cp . \"' WHERE id_usuario = '\" .$oldUser .\"'\");\n\n if(isset($horario) && !empty($horario))\n\n mysqli_query($this->mysqli,\" UPDATE usuario SET horario= '\" . $horario . \"' WHERE id_usuario = '\" .$oldUser .\"'\");\n\n if(isset($data)){\n\n mysqli_query($this->mysqli,\" UPDATE usuario SET foto= '\" . $data . \"' WHERE id_usuario = '\" .$oldUser .\"'\");\n //echo \"entro\";\n }\n\n printf(\"Filas afectadas por el Update: %d\\n\", $this->mysqli->affected_rows);\n }", "static public function ctrEditarUsuario(){\n \t\tif(isset($_POST[\"editarUsuario\"])){\n \t\t\tif(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"editarNombre\"]) ){\n\n\n \t\t\t//Inicializamos la ruta de la foto por si no hay foto.\n\n\n \t\t\t\t$tabla = \"usuarios\";\n \t\t\t\t$encriptar = \"\";\n\n \t\t\t\tif($_POST[\"editarPassword\"] != \"\" ){\n\n \t\t\t\t\tif( preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"editarPassword\"]))\n \t\t\t\t\t{\n \t\t\t\t\t\n\t\t\t\t\t\t//$encriptar = crypt($_POST[\"editarPassword\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n\t\t\t\t\t\t$encriptar = $_POST[\"editarPassword\"];\n\n \t\t\t\t\t} else \n \t\t\t\t\t{\n\n \t\t\t\t\t\techo '<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\ttype: \"error\",\n\t\t\t\t\t\ttitle: \"¡La contraseña lleva caracteres especiales!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"usuarios\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t</script>';\n \t\t\t\t\t}\n\n\n\n \t\t\t\t}else \n \t\t\t\t$encriptar = $_POST[\"editarPassword\"] ; \n\n\n \t\t\t\t$datos = array (\"nombre\" => $_POST[\"editarNombre\"],\n \t\t\t\t\t\t\t\t\"usuario\" => $_POST[\"editarUsuario\"],\n \t\t\t\t\t\t\t\"password\" => $encriptar ,\n \t\t\t\t\t\t\"perfil\" => $_POST[\"editarPerfil\"]);\n\n \t\t\t\t$respuesta = ModeloUsuarios::mdlEditarUsuario($tabla, $datos);\n\n \t\t\t\tif($respuesta == \"ok\" ){\n\n \t\t\t\techo '<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\ttype: \"success\",\n\t\t\t\t\t\ttitle: \"¡El usuario ha sido editado correctamente!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"usuarios\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t</script>';\n\n \t\t\t\t}\n\n\n\n\t\t\t\t}else {\n\n\techo '<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\ttype: \"error\",\n\t\t\t\t\t\ttitle: \"¡El nombre del usuario lleva caracteres especiales!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"usuarios\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t</script>';\n\n\t\t\t\t}\n\n\n\n\n \t\t\t}\n\n\n \t\t \n \t\t}", "function actualizar($id_usuario, $nombre_usuario, $nick_usuario, $clave, $apellido_usuario, $direccion_usuario, $telefono_usuario, $email_usuario, $genero_usuario, $id_rol){\n\n\t\tinclude 'data_bd.inc';\n\t\tinclude 'databaseClass.php';\n\t\t//creo mi cadena de conexion\n\t\t$conexion = new DB($host, $user, $pass, $bd);\n\t\t//Creo mi conexión\n\t\t$status = $conexion->conectar();\n\t\t//En caso de que devuelva una falla\n\t\tif($status === FALSE){\n\t\t\tdie('No se pudo conectar');\n\t\t}\n\t\t//Creo mi query\n\t\t$consulta = \"UPDATE\n\t\t\t\t\tusuario\n\t\t\t\t\tSET nombre_usuario = '$nombre_usuario',\n\t\t\t\t\t\tnick_usuario = '$nick_usuario',\n\t\t\t\t\t\tclave = '$clave',\n\t\t\t\t\t\tapellido_usuario = '$apellido_usuario',\n\t\t\t\t\t\tdireccion_usuario = '$direccion_usuario',\n\t\t\t\t\t\ttelefono_usuario = '$telefono_usuario',\n\t\t\t\t\t\temail_usuario = '$email_usuario',\n\t\t\t\t\t\tgenero_usuario = '$genero_usuario',\n\t\t\t\t\t\tid_rol = '$id_rol'\n\t\t\t\t\tWHERE id_usuario='$id_usuario'\n\t\t\t\t\t\t\";\n\t\t//Ejecuto la consulta\n\t\t$resultado = $conexion -> ejecutarConsulta($consulta);\n\t\t//Si fue una falla\n\t\tif($conexion === FALSE){\n\t\t\t$conexion -> cerrar();\t\n\t\t\treturn FALSE;\n\t\t}\n\t\t//Cierro la conexion\n\t\t$conexion -> cerrar();\n\t\tif($resultado == TRUE)\n\t\t\t{\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\telse {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "public function ctrActualizarAdministrador(){\n\n\t\tif(isset($_POST[\"editarNombre\"])){\n\n\t\t\tif(preg_match('/^[a-zA-ZáéíóúÁÉÍÓÚñÑ ]+$/', $_POST[\"editarNombre\"]) && \n\t\t\t preg_match('/^[a-zA-Z0-9 ]+$/', $_POST[\"editarUsuario\"])){\n\n\t\t\t\tif($_POST[\"editarPassword\"] != \"\"){\n\n\t\t\t\t\tif(preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"editarPassword\"])){\n\n\t\t\t\t\t\t$password = crypt($_POST[\"editarPassword\"],'$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n\n\t\t\t\t\t}else {\n\t\t\t\t\t\techo \"<div class='alert alert-danger mt-3 smail'>ERROR: No se permiten caracteres</div>\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}else {\n\n\t\t\t\t\t$password=$_POST[\"passwordActual\"];\n\n\t\t\t\t}\n\n\t\t\t\t$tabla = \"administrador\";\n\n\t\t\t $datos =array(\"id\"=>$_POST[\"editarid\"],\n\t\t\t \t\t\t \"nombre\"=>$_POST[\"editarNombre\"],\n\t\t\t\t\t\t\t \"usuario\"=>$_POST[\"editarUsuario\"],\n\t\t\t\t\t\t\t \"password\"=>$password,\n\t\t\t\t\t\t\t \"perfil\"=>$_POST[\"editarPerfil\"]);\n\t\t\t $respuesta= AdministradorModelo::mdlEditarAdministrador($tabla, $datos);\n\n\n\t\t\t if($respuesta==\"ok\"){\n\n\t\t\t \techo '<script>\n\n\t\t\t \tswal({\n\t\t\t \t\t\ttype:\"success\",\n\t\t\t \t\t\ttitle:\"¡CORRECTO!\",\n\t\t\t \t\t\ttext:\"¡El administrador ha editado correctamente!\",\n\t\t\t \t\t\tshowConfirmButton: true,\n\t\t\t \t\t\tconfirmButtonText:\"Cerrar\"\n\t\t\t \t\t}).then(function(result){\n\n\t\t\t \t\t\tif(result.value){\n\t\t\t \t\t\t\thistory.back()\n\n\t\t\t \t\t\t}\n\n\t\t\t \t\t});\n\n\t\t\t \t</script>';\n\t\t\t }\n\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\techo \"<div class='alert alert-danger mt-3 small'>ERROR: No se permiten caracteres especiales</div>\";\n\t\t\t}\n\n\t\t}\n\n\t}", "public function actualizar_Datos_Usuario2(){\n\t\t$sql = \"UPDATE usuarios SET Documento=\".$this->usuario->get_Nid().\",\n\t\t\t\t\t\t\t\t\tNombres='\".$this->usuario->get_Nombres().\"',\n\t\t\t\t\t\t\t\t\tApellidos = '\".$this->usuario->get_Apellidos().\"',\n\t\t\t\t\t\t\t\t\tUsuario = '\".$this->usuario->get_Usuario().\"',\n\t\t\t\t\t\t\t\t\tPregunta = '\".$this->usuario->get_Pregunta().\"',\n\t\t\t\t\t\t\t\t\tRespuesta = '\".$this->usuario->get_Respuesta().\"',\n\t\t\t\t\t\t\t\t\tTipo_Documento = '\".$this->usuario->get_TipoId().\"',\n\t\t\t\t\t\t\t\t\tCiudad = '\".$this->usuario->get_Ciudad().\"',\n\t\t\t\t\t\t\t\t\tDireccion = '\".$this->usuario->get_Direccion().\"',\n\t\t\t\t\t\t\t\t\tEdad = '\".$this->usuario->get_Edad().\"',\n\t\t\t\t\t\t\t\t\tFoto = '\".$this->usuario->get_Foto().\"',\n\t\t\t\t\t\t\t\t\tTelefono = '\".$this->usuario->get_Celular().\"',\n\t\t\t\t\t\t\t\t\tCorreo_Electronico = '\".$this->usuario->get_Email().\"',\n\t\t\t\t\t\t\t\t\tGenero = '\".$this->usuario->get_Genero().\"',\n\t\t\t\t\t\t\t\t\tperfiles_Nombre = '\".$this->usuario->get_Perfil().\"'\n\t\t\t WHERE Documento=\".$this->usuario->get_Nid().\"\";\n\n\n\n\t\t//echo $sql;\n\t\t$salida = 0;\n\t\t$valida = new Validacion_Datos(); // <- Para validar los tipos de datos\n\t\t// Validacion de los minimos\n\t\tif(!(strlen($this->usuario->get_Nid()) > 7))\t\t\t$salida = 2;\n\t\telseif(!(strlen($this->usuario->get_Nombres()) > 1))\t$salida = 3;\n\t\telseif(!(strlen($this->usuario->get_Apellidos()) > 1))\t$salida = 4;\n\t\telseif(!(strlen($this->usuario->get_Usuario()) > 4))\t$salida = 5;\n\t\telseif(!(strlen($this->usuario->get_Pregunta()) > 9))\t$salida = 7;\n\t\telseif(!(strlen($this->usuario->get_Respuesta()) > 1))\t$salida = 8;\n\t\telseif(!(strlen($this->usuario->get_Ciudad()) > 1))\t\t$salida = 10;\n\t\telseif(!(strlen($this->usuario->get_Direccion()) > 2))\t$salida = 11;\n\t\telseif(!(strlen($this->usuario->get_Edad()) > 0))\t\t$salida = 12;\n\t\telseif(!(strlen($this->usuario->get_Foto()) > 2))\t\t$salida = 13;\n\t\telseif(!(strlen($this->usuario->get_Celular()) > 7))\t$salida = 14;\n\t\telseif(!(strlen($this->usuario->get_Email()) > 6))\t\t$salida = 15;\n\t\t// Validacion de los tipos de datos (Numérico,Alfabético,Alfanumérico)\n\t\telseif(!($valida->is_Number($this->usuario->get_Nid())))\t\t\t\t$salida = 18;\n\t\telseif(!($valida->is_Alphanumeric($this->usuario->get_Usuario())))\t\t$salida = 19;\n\t\telseif(!($valida->is_Alphabetic($this->usuario->get_Nombres())))\t\t$salida = 20;\n\t\telseif(!($valida->is_Alphabetic($this->usuario->get_Apellidos())))\t\t$salida = 21;\n\t\telseif(!($valida->is_Alphanumeric($this->usuario->get_Respuesta())))\t$salida = 24;\n\t\telseif(!($valida->is_Alphabetic($this->usuario->get_Ciudad())))\t\t\t$salida = 25;\n\t\telseif(!($valida->is_Number($this->usuario->get_Edad())))\t\t\t\t$salida = 26;\n\t\telseif(!($valida->is_Number($this->usuario->get_Celular())))\t\t\t$salida = 28;\n\n\n\t\t///////////////////////////////////////////////////////////////////////////\n\n\t\t\n\t\telseif($this->bd->insertar($sql))\n\t\t\t$salida = true;\n\t\telse $salida = 31;\n\t\t\n\n\t\treturn $salida;\n\t}", "function actualizarUsuarios($id,$nombre,$apellido,$user,$pass,$rol){\n\t\t$activo = true;\n\t\t$query = \"UPDATE usuarios set nombre = '$nombre', apellido = '$apellido', user = '$user', pass='$pass', rol='$rol' where idUsuario=$id AND activo = $activo\";\n\t\t$link = conectar(); //llama a la funcion conectar de conex.php\n\t\t$result = $link->query($query); //envia el query a la BD\t\t\n\t\t$link->close();\n\t\techo json_encode($result);\n\t}", "public function actualizar(){\r\n\t\t\t$user_table = Config::get()->db_user_table;\r\n\t\t\t$consulta = \"UPDATE $user_table\r\n\t\t\t\t\t\t\t SET \tid='$this->id',\r\n\t\t\t\t\t\t\t \t\tdni='$this->dni',\r\n\t\t\t\t\t\t\t \t\tnom='$this->nom', \r\n\t\t\t\t\t\t\t \t\tcognom1='$this->cognom1', \r\n\t\t\t\t\t\t\t \t\tcognom2='$this->cognom2', \r\n\t\t\t\t\t\t\t \t\tdata_naixement='$this->data_naixement',\r\n\t\t\t\t\t\t\t \t\testudis='$this->estudis',\r\n\t\t\t\t\t\t\t \t\tsituacio_laboral='$this->situacio_laboral',\r\n\t\t\t\t\t\t\t \t\tprestacio='$this->prestacio',\r\n\t\t\t\t\t\t\t \t\ttelefon_mobil='$this->telefon_mobil',\r\n\t\t\t\t\t\t\t \t\ttelefon_fix='$this->telefon_fix',\r\n\t\t\t\t\t\t\t \t\temail='$this->email',\r\n\t\t\t\t\t\t\t \t\tadmin='$this->admin',\r\n\t\t\t\t\t\t\t \t\timatge='$this->imatge'\t\t\t\t \t\t\t\t\t\t\t\t\t \t\t\r\n\t\t\t\t\t\t\t WHERE id='$this->id';\";\r\n\t\t\t\r\n\t\t\treturn Database::get()->query($consulta);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}", "function modificar(){\n global $conexion, $data;\n $id = $data[\"id\"];\n $usuario = $data[\"usuario\"];\n $email = $data[\"email\"];\n $clave = $data[\"clave\"];\n $tipo = $data[\"tipo\"];\n $estado = $data[\"estado\"];\n $resultado = mysqli_query($conexion,\"UPDATE usuario SET usu_clave='$clave', usu_id_tipo_usuario='$tipo', usu_estado='$estado' WHERE usu_id='$id'\");\n echo validarError($conexion, true, $resultado);\n }", "public function Modificar(): bool\n {\n $retorno = false;\n $objetoAccesoDato = AccesoDatos::RetornarObjetoAcceso();\n\n\n $consulta =$objetoAccesoDato->RetornarConsulta(\"UPDATE usuarios SET nombre = :nombre, correo = :correo, clave = :clave, id_perfil = :id_perfil\n WHERE usuarios.id = :id\");\n // $consulta = $objetoAccesoDato->RetornarConsulta(\"UPDATE `usuarios` SET `nombre`='$this->nombre',`correo`='$this->correo',\"\n // . \"`clave`='$this->clave',`id_perfil`='$this->id_perfil' WHERE `id`='$this->id'\");\n\n\n $consulta->bindParam(':correo', $this->correo, PDO::PARAM_STR);\n $consulta->bindParam(':clave', $this->clave, PDO::PARAM_STR);\n $consulta->bindParam(':nombre', $this->nombre, PDO::PARAM_STR);\n $consulta->bindParam(':id_perfil', $this->perfil, PDO::PARAM_INT);\n $consulta->bindParam(':id', $this->id, PDO::PARAM_INT);\n\n $consulta->execute();\n $filasAfectadas = $consulta->rowCount();\n if ($filasAfectadas > 0)\n $retorno = true;\n\n\n return $retorno;\n }", "public function ctrIngresoUsuario(){\n\n\t\t\tif(isset($_POST[\"ingresoUsuario\"])){\n\n\n\t\t\t\tif(preg_match('/^[a-zA-Z0-9 ]+$/', $_POST[\"ingresoUsuario\"]) && \n\t\t\t\t preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"ingresoPassword\"])){\n\n\t\t\t\t\t$tabla= \"administrador\";\n\t\t\t\t\t$item =\"usuario\";\n\n\t\t\t\t\t$valor = $_POST[\"ingresoUsuario\"];\n\t\t\t\t\t$respuesta = AdministradorModelo::mdlMostrarUsuario($tabla,$item,$valor);\n\n\t\t\t\t\tif($respuesta != null){\n\n\t\t\t\t\t\t if($respuesta[\"usuario\"]==$_POST[\"ingresoUsuario\"] && $respuesta[\"password\"]==$_POST[\"ingresoPassword\"]){\n\n\t\t\t\t\t\t\tif($respuesta[\"estado\"]==1){\n\n\t\t\t\t\t\t\t\t$_SESSION[\"verificarUsuarioB\"]=\"ok\";\n\t\t\t\t\t\t\t\t$_SESSION[\"idUsuarioB\"]=$respuesta[\"id_admin\"];\n\n\t\t\t\t\t\t\techo '<script>\n\t\t\t\t\t\t\t\t\twindow.location = \"'.$_SERVER[\"REQUEST_URI\"].'\";\n\t\t\t\t\t\t\t </script>';\n\n\n\t\t\t\t\t\t\t}else {\n\n\t\t\t\t\t\t\techo '<div class=\"alert alert-danger\">\n\t\t\t\t\t\t\t\t\t<span>¡ERROR AL INGRESAR!</span> El usuario está desactivado.\n\t\t\t\t\t\t\t\t </div>';\n\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t} else {\n\n\n\t\t\t\t\t\t\techo '<div class=\"alert alert-danger\">\n\t\t\t\t\t\t\t<span>¡ERROR AL INGRESAR!</span> Su contraseña y/o usario no es correcta, Intentelo de nuevo.\n\t\t\t\t\t\t\t</div>';\n\n\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t}\n\t\t\t\t\n\n\n\t\t\t\t}else {\n\n\t\t\t\t\techo '<div class=\"alert alert-danger\">\n\t\t\t\t\t<span>¡ERROR!</span> no se permite caracteres especiales.\n\t\t\t\t\t</div>';\n\n\t\t\t\t}\n\n\n\n\n\t\t\t}\n\n\t}", "function modificarUsuario(){\n global $conexion, $data;\n $id = $data[\"id\"];\n $usuario = $data[\"usuario\"];\n $email = $data[\"email\"];\n $clave = $data[\"clave\"];\n $resultado = mysqli_query($conexion,\"UPDATE usuario SET usu_usuario='$usuario', usu_clave='$clave' WHERE usu_id='$id'\");\n echo validarError($conexion, true, $resultado);\n }", "static public function ctrIngresoUsuario()\n{ \n if(isset($_POST[\"ingUsuario\"]))\n {\n\n if(preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"ingUsuario\"]) && preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"ingPassword\"])) {\n\n\n //$encriptar = crypt($_POST[\"ingPassword\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n\t\t\t//print_r($_POST);\n $tabla = \"usuarios\";\n $item= \"codusuario\";\n $valor= $_POST[\"ingUsuario\"];\t\t\t\t\n\n $respuesta = ModeloUsuarios::mdlMostrarUsuarios($tabla, $item, $valor );\n\n if($respuesta[\"codusuario\"] == $_POST[\"ingUsuario\"] && $respuesta[\"clave\"] == $_POST[\"ingPassword\"] ){\n\n if($respuesta[\"bloqueado\"] == 0 ) {\n $_SESSION[\"iniciarSesion\"] = \"ok\";\n $_SESSION[\"id\"] = $respuesta[\"codusuario\"];\n $_SESSION[\"nombre\"] = $respuesta[\"nomusuario\"];\n $_SESSION[\"usuario\"] = $respuesta[\"codusuario\"];\n $_SESSION[\"perfil\"] = $respuesta[\"codperfil\"];\n $_SESSION[\"foto\"] = \"\";\n $_SESSION[\"id_local\"] = 1;\n\n date_default_timezone_set('America/Bogota');\n $fecha = date('Y-m-d');\n $hora = date('H:i:s');\n $fechaActual = $fecha.' '.$hora;\n\n $tabla = 'usuarios';\n $item1 = 'fecingreso';\n $valor1 = $fechaActual ;\n $item2 = 'codusuario';\n $valor2= $respuesta[\"codusuario\"] ;\n $respuestaUltimoLogin = ModeloUsuarios::mdlActualizarUsuario($tabla,$item1, $valor1, $item2, $valor2 );\n\n if($respuestaUltimoLogin == \"ok\")\n {\n echo '<script> window.location = \"inicio\"</script>';\n\n }\n\n } \n else \n echo '<br><div class=\"alert alert-danger\">El usuario no se encuentra activado.</div>';\n\n }else {\n\n echo '<br><div class=\"alert alert-danger\">Error al ingresar vuelve a intentarlo.</div>';\n }\t\t\t\t\n\n }//\n\n }\n\n}", "public function actualizar_usuario_admin()\n {\n \n $nombre = $_REQUEST['Name'];\n $password = $_REQUEST['Password'];\n $type = $_REQUEST['Type'];\n $code = $_REQUEST['Code'];\n\n if (isset($nombre) && isset($password) && isset($type) && isset($code)) {\n\n //creacion de token de contraseña\n $token = bin2hex( openssl_random_pseudo_bytes(20) );\n\n $token_clave= hash('ripemd160', $password);\n\n //data que se enviar a la tabla MA_LOGIN_ADMIN\n $data_updt_admin = array(\n\n 'clave' => $token_clave,\n 'tipo' => $type,\n 'description' => $nombre\n\n );\n\n //query para actualizar datos en base de datos segun el usuario que este llegano\n $this->db->where('num_registro', $code);\n\n if ($this->db->update('MA_LOGIN_ADMIN', $data_updt_admin)) {\n \n $respuesta = '1';\n\n $response = array(\n\n 'respuesta' => $respuesta\n\n );\n\n echo json_encode($response);\n\n } else {\n \n $respuesta = '2';\n\n $response = array(\n\n 'respuesta' => $respuesta\n\n );\n\n echo json_encode($response);\n\n }\n \n\n }\n\n }", "public function atualizarClientes($reg,$nome,$rg,$cpf,$cnpj,$telefone,$dtnascimento,$habilitado){\n //$conexao = $c->conexao();\n\n $usuid = $_SESSION['usuid'];\n $_SESSION['nomeAnterior'] = $nome;\n\n $sql = \"SELECT reg,rg FROM tbclientes c WHERE reg = '$reg' \";\n $sql = $this->conexao->query($sql);\n $row = $sql->fetch_assoc();\n\n if($rg != $row['rg']){\n $sql = \"SELECT count(*) as existe FROM tbclientes c WHERE rg = '$rg' \";\n $sql = $this->conexao->query($sql);\n $row = $sql->fetch_assoc();\n\n if ($row['existe'] >= 1 ) {\n return 0;\n }else{ \n\n $sql = \"UPDATE tbclientes SET nome = '$nome', rg = '$rg', cpf='$cpf', cnpj = '$cnpj', telefone = '$telefone', dt_nascimento = '$dtnascimento', habilitado = '$habilitado', modificado = NOW(), usuid = '$usuid' WHERE reg = '$reg'\";\n echo $this->conexao->query($sql);\n\n $mensagem = \"O Usuário \".$_SESSION['email'].\" atualizou o Cliente para $nome \";\n $this->salvaLog($mensagem);\n }\n \n }else{ \n\n $sql = \"UPDATE tbclientes SET nome = '$nome', rg = '$rg', cpf='$cpf', cnpj = '$cnpj',telefone = '$telefone', dt_nascimento = '$dtnascimento', habilitado = '$habilitado', modificado = NOW(), usuid = '$usuid' WHERE reg = '$reg'\";\n\n echo $this->conexao->query($sql);\n\n $mensagem = \"O Usuário \".$_SESSION['email'].\" atualizou o Cliente para $nome \";\n $this->salvaLog($mensagem);\n\n }\n\n \n\n }", "public function actualizar(){\n\textract($_REQUEST);\n\t$db=new clasedb();\n\t$conex=$db->conectar();//conectando con la base de datos\n\n\t$sql=\"SELECT * FROM usuarios WHERE correo='\".$correo.\"' AND id!=\".$_SESSION['id_usuario'];;\n\t$res=mysqli_query($conex,$sql);\n\t$cuantos=mysqli_num_rows($res);\n\t//echo $cuantos;\n\tif ($cuantos>0) {\n\t\t?>\n\t\t<script type=\"text/javascript\">\n\t\t\talert(\"Ya existe un usuario con este correo\");\n\t\t\twindow.location=\"ControladorPerfil.php?operacion=verperfil\";\n\t\t</script>\n\t\t\t<?php\n\n\t\t}else{\n\t\t\n\t\t\t$sql=\"UPDATE usuarios SET nombre='\".$nombre.\"', correo='\".$correo.\"', pregunta='\".$pregunta.\"',respuesta='\".$respuesta.\"' WHERE usuarios.id=\".$_SESSION['id_usuario'];;\n\n\n\t\t\t$res=mysqli_query($conex,$sql);\n\t\t\tif ($res) {\n\t\t\t\t$sql=\"INSERT INTO auditoria VALUES (NULL, '\".$_SESSION['id_usuario'].\"', 'modificó perfil', 'usuarios', CURRENT_TIMESTAMP, '\".$_SESSION['tipo_usuario'].\"')\";\n\n\t\t $resultado=mysqli_query($conex,$sql);\n ?>\n\t\t\t\t\t\n\t\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\t\talert(\"Registro modificado\");\n\t\t\t\t\t\twindow.location=\"ControladorPerfil.php?operacion=verperfil\";\n\t\t\t\t\t</script>\n\t\t\t\t\t<?php\n\t\t\t} else {\n\t\t\t\t\t?>\n\t\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\t\talert(\"Error al modificar el registro\");\n\t\t\t\t\t\twindow.location=\"ControladorPerfil.php?operacion=verperfil\";\n\t\t\t\t\t</script>\n\t\t\t\t\t<?php\n\t\t\t\t\t}\t\t\t\n\t\t\t\n\t\n\t}\n}", "public function update(){\n \n //comprueba que llegue el formulario con los datos\n if(empty($_POST['actualizar']))\n throw new Exception(\"No llegaron los datos\");\n \n //podemos crear un nuevo usuario o recuperar de la bdd,\n //crearé un nuevo usuario porque me ahorro una consulta\n $usuario= new Usuario();\n \n $usuario->id= intval($_POST['id']);\n $usuario->user= $_POST['user'];\n $usuario->pass= $_POST['pass'];\n $usuario->nombre= $_POST['nombre'];\n $usuario->apellidos= $_POST['apellidos'];\n $usuario->email= $_POST['email'];\n $usuario->direccion= $_POST['direccion'];\n $usuario->poblacion= $_POST['poblacion'];\n $usuario->provincia= $_POST['provincia'];\n $usuario->cp= $_POST['cp'];\n \n //intenta realizar la actualización de datos\n if($usuario->actualizar()===false)\n throw new Exception(\"No se pudo actualizar $usuario->user\");\n \n //prepara un mensaje. Es guarda en una variable global perque les variables no es recorden\n // despres d'executar les funcions! I ara no anem a la vista, sino que portem a un altre\n //métode!!\n $GLOBALS['mensaje']= \"Actualización del usuario $usuario->user correcta.\";\n \n //repite la operación de edit, así mantendrá al usuario en la vista de edición\n $this->edit($usuario->id);\n }", "function modificar_contenido($nick_user, $nivel, $ubi_tema, $nom_user, $cor_user)\r\n\t\t\t{\r\n\t\t\t\t$clave_seccion_enviada = $_GET[\"clave_seccion\"];\r\n\t\t\t\tif(isset($_POST[\"guardar\"]) && $_POST[\"guardar\"]==\"si\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$formulario_final = $_POST[\"formulario_final\"];\r\n\t\t\t\t\t\t$fecha_inicio = $_POST[\"ano_i\"].\"-\".$_POST[\"mes_i\"].\"-\".$_POST[\"dia_i\"];\r\n\t\t\t\t\t\t$fecha_termino = $_POST[\"ano_t\"].\"-\".$_POST[\"mes_t\"].\"-\".$_POST[\"dia_t\"];\r\n\t\t\t\t\t\t$situacion_total = $_POST[\"situacion_total\"];\r\n\t\t\t\t\t\t$ver_actualizacion = $_POST[\"ver_actualizacion\"];\r\n\t\t\t\t\t\t$usar_caducidad = $_POST[\"usar_caducidad\"];\r\n\r\n\t\t\t\t\t\t$clave_seccion = $_POST[\"clave_seccion\"];\r\n\t\t\t\t\t\t$clave_modulo= $_POST[\"clave_modulo\"];\r\n\t\t\t\t\t\t$clave_contenido = $_POST[\"clave_contenido\"];\r\n\t\t\t\t\t\t$fecha_hoy = date(\"Y-m-d\");\r\n\t\t\t\t\t\t$hora_hoy = date (\"H:i:s\");\r\n\t\t\t\t\t\t$ip = $_SERVER['REMOTE_ADDR'];\r\n\t\t\t\t\t\t$motivo = $this->escapar_caracteres($_POST[\"motivo\"]);\r\n\t\t\t\t\t\t$motivo = strip_tags($motivo);\r\n\t\t\t\t\t\t$correo = $_POST[\"correo\"];\r\n\t\t\t\t\t\t$nombre = $_POST[\"nombre\"];\r\n\t\t\t\t\t\t$situacion_temporal = $_POST[\"situacion_temporal\"];\t\r\n\t\t\t\t\t\tif($correo==\"\")\r\n\t\t\t\t\t\t\t{$correo = $cor_user;}\r\n\t\t\t\t\t\tif($nombre==\"\")\r\n\t\t\t\t\t\t\t{$nombre = $nom_user;}\r\n\t\t\t\t\t\t$nombre = strip_tags($nombre);\r\n\t\t\t\t\t\t$sql_adicional = \"null, '0000-00-00','00:00:00', '', '', '','',\";\r\n\t\t\t\t\t\tif($situacion_temporal==\"activo\")\r\n\t\t\t\t\t\t\t{$sql_adicional = \"'$nick_user', '$fecha_hoy', '$hora_hoy', '$ip', '$motivo', '$nombre', '$correo',\";}\r\n\t\t\t\t\t\t$insert_camb = \"insert into nazep_zmod_contenido_cambios \r\n\t\t\t\t\t\t(clave_contenido, situacion, nick_user_propone, fecha_propone, hora_propone, ip_propone, motivo_propone,\r\n\t\t\t\t\t\tnombre_propone, correo_propone,\r\n\t\t\t\t\t\tnick_user_decide, fecha_decide, hora_decide, ip_decide, motivo_decide,\r\n\t\t\t\t\t\tnombre_decide, correo_decide,\r\n\t\t\t\t\t\tnuevo_situacion, nuevo_ver_actualizacion, nuevo_usar_caducidad, nuevo_fecha_incio, nuevo_fecha_fin, \r\n\t\t\t\t\t\tanterior_situacion, anterior_ver_actualizacion, anterior_usar_caducidad, anterior_fecha_incio, anterior_fecha_fin)\t\t\t\t\t\r\n\t\t\t\t\t\tselect '$clave_contenido', '$situacion_temporal','$nick_user', '$fecha_hoy', '$hora_hoy', '$ip', '$motivo',\r\n\t\t\t\t\t\t'$nombre','$correo',\r\n\t\t\t\t\t\t\".$sql_adicional.\"\r\n\t\t\t\t\t\t'$situacion_total', '$ver_actualizacion', '$usar_caducidad', '$fecha_inicio', '$fecha_termino',\r\n\t\t\t\t\t\tsituacion, ver_actualizacion, usar_caducidad, fecha_incio, fecha_fin\r\n\t\t\t\t\t\tfrom nazep_zmod_contenido \r\n\t\t\t\t\t\twhere clave_contenido = '$clave_contenido'\";\r\n\t\t\t\t\t\t$paso = false;\r\n\t\t\t\t\t\t$conexion = $this->conectarse();\r\n\t\t\t\t\t\tmysql_query(\"START TRANSACTION;\");\r\n\t\t\t\t\t\tif (!@mysql_query($insert_camb))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$men = mysql_error();\r\n\t\t\t\t\t\t\t\tmysql_query(\"ROLLBACK;\");\r\n\t\t\t\t\t\t\t\t$paso = false;\r\n\t\t\t\t\t\t\t\t$error = 1;\r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$paso = true;\r\n\t\t\t\t\t\t\t\t$clave_contenido_cambios_db = mysql_insert_id();\r\n\t\t\t\t\t\t\t\t$clave_contenido_detalle = $_POST[\"clave_contenido_detalle\"];\r\n\t\t\t\t\t\t\t\t$pagina = $_POST[\"pagina\"];\r\n\t\t\t\t\t\t\t\t$texto = $this->escapar_caracteres($_POST[\"conte_texto\"]);\r\n\t\t\t\t\t\t\t\t$situacion_p = $_POST[\"situacion\"];\r\n\t\t\t\t\t\t\t\t$insert_con_cam = \"insert into nazep_zmod_contenido_detalle_cambios\r\n\t\t\t\t\t\t\t\t(clave_contenido_cambios, clave_contenido_detalle, nuevo_pagina, nuevo_texto, nuevo_situacion,\r\n\t\t\t\t\t\t\t\tanterior_pagina, anterior_texto, anterior_situacion)\r\n\t\t\t\t\t\t\t\tselect '$clave_contenido_cambios_db', '$clave_contenido_detalle',\r\n\t\t\t\t\t\t\t\t'$pagina', '$texto', '$situacion_p', pagina, texto, situacion\r\n\t\t\t\t\t\t\t\tfrom nazep_zmod_contenido_detalle\r\n\t\t\t\t\t\t\t\twhere clave_contenido_detalle = '$clave_contenido_detalle'\";\r\n\t\t\t\t\t\t\t\tif (!@mysql_query($insert_con_cam))\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t$men = mysql_error();\r\n\t\t\t\t\t\t\t\t\t\tmysql_query(\"ROLLBACK;\");\r\n\t\t\t\t\t\t\t\t\t\t$paso = false;\r\n\t\t\t\t\t\t\t\t\t\t$error = \"2\";\r\n\t\t\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t{$paso = true;}\r\n\t\t\t\t\t\t\t\tif($situacion_temporal==\"activo\")\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t$update_2 = \"update nazep_zmod_contenido\r\n\t\t\t\t\t\t\t\t\t\tset situacion = '$situacion_total', ver_actualizacion = '$ver_actualizacion', usar_caducidad ='$usar_caducidad', \r\n\t\t\t\t\t\t\t\t\t\tfecha_incio = '$fecha_inicio', fecha_fin = '$fecha_termino',\r\n\t\t\t\t\t\t\t\t\t\tuser_actualizacion = '$nick_user', fecha_actualizacion = '$fecha_hoy', hora_actualizacion = '$hora_hoy',\r\n\t\t\t\t\t\t\t\t\t\tip_actualizacion = '$ip', nombre_actualizacion = '$nombre', correo_actualizacion = '$correo'\r\n\t\t\t\t\t\t\t\t\t\twhere clave_contenido = '$clave_contenido' and clave_modulo = '$clave_modulo'\";\r\n\t\t\t\t\t\t\t\t\t\tif (!@mysql_query($update_2))\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t$men = mysql_error();\r\n\t\t\t\t\t\t\t\t\t\t\t\tmysql_query(\"ROLLBACK;\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t$paso = false;\r\n\t\t\t\t\t\t\t\t\t\t\t\t$error = 3;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t$paso = true;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t$clave_contenido_detalle = $_POST[\"clave_contenido_detalle\"];\r\n\t\t\t\t\t\t\t\t\t\t\t\t$pagina = $_POST[\"pagina\"];\r\n\t\t\t\t\t\t\t\t\t\t\t\t$situacion = $_POST[\"situacion\"];\r\n\t\t\t\t\t\t\t\t\t\t\t\t$texto = $this->escapar_caracteres($_POST[\"conte_texto\"]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t$update3 = \"update nazep_zmod_contenido_detalle set pagina = '$pagina', texto = '$texto', situacion = '$situacion' \r\n\t\t\t\t\t\t\t\t\t\t\t\twhere clave_contenido_detalle = '$clave_contenido_detalle'\";\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (!@mysql_query($update3))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$men = mysql_error();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmysql_query(\"ROLLBACK;\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$paso = false;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$error = \"4\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{$paso = true;}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif($paso)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmysql_query(\"COMMIT;\");\r\n\t\t\t\t\t\t\t\techo \"termino-,*-$formulario_final\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\techo \"Error: Insertar en la base de datos, la consulta: <strong>$error</strong> <br/> con el siguiente mensaje: $men\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$this->desconectarse($conexion);\r\n\t\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$paginas_contenido= $_POST[\"paginas_contenido\"];\r\n\t\t\t\t\t\t$clave_modulo= $_POST[\"clave_modulo\"];\t\t\t\t\t\t\r\n\t\t\t\t\t\t$nombre_sec = HtmlAdmon::historial($clave_seccion_enviada);\r\n\t\t\t\t\t\tHtmlAdmon::titulo_seccion(\"Modificar contenido html de la secci&oacute;n \\\"$nombre_sec\\\"\");\r\n\t\t\t\t\t\t$con_veri = \"select cc.clave_contenido_cambios from nazep_zmod_contenido_cambios cc, nazep_zmod_contenido c\r\n\t\t\t\t\t\twhere c.clave_seccion = '$clave_seccion_enviada' and c.clave_modulo = '$clave_modulo' and \r\n\t\t\t\t\t\t(cc.situacion = 'pendiente' or cc.situacion = 'nueva_pagina' or cc.situacion = 'nuevo')\r\n\t\t\t\t\t\tand c.clave_contenido = cc.clave_contenido\";\r\n\t\t\t\t\t\t$conexion = $this->conectarse();\r\n\t\t\t\t\t\t$res = mysql_query($con_veri);\r\n\t\t\t\t\t\t$cantidad = mysql_num_rows($res);\r\n\t\t\t\t\t\t$this->desconectarse($conexion);\r\n\t\t\t\t\t\tif($cantidad!=0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\techo '<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >';\r\n\t\t\t\t\t\t\t\t\techo '<tr><td align=\"center\"><br /><strong>'.cont_txt_tiene_cambio_pen.'</strong><br /><br /></td></tr>';\r\n\t\t\t\t\t\t\t\techo '</table>';\r\n\t\t\t\t\t\t\t\tHtmlAdmon::boton_regreso(array('clave_usar'=>$clave_seccion_enviada,'texto'=>regresar_opc_mod));\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$variable_archivos = directorio_archivos.\"$clave_seccion_enviada/\";\r\n\t\t\t\t\t\t\t\t$_SESSION[\"direccion_archivos\"] = $variable_archivos;\t\r\n\t\t\t\t\t\t\t\t$con_contenido = \"select fecha_incio, fecha_fin, situacion, ver_actualizacion, usar_caducidad, clave_contenido \r\n\t\t\t\t\t\t\t\tfrom nazep_zmod_contenido where clave_seccion = '$clave_seccion_enviada' and clave_modulo = '$clave_modulo'\";\r\n\t\t\t\t\t\t\t\t$conexion = $this->conectarse();\r\n\t\t\t\t\t\t\t\t$res_contenido = mysql_query($con_contenido);\r\n\t\t\t\t\t\t\t\t$ren = mysql_fetch_array($res_contenido);\r\n\t\t\t\t\t\t\t\t$fecha_incio = $ren[\"fecha_incio\"];\r\n\t\t\t\t\t\t\t\tlist($ano_i, $mes_i, $dia_i) = explode(\"-\",$fecha_incio);\r\n\t\t\t\t\t\t\t\t$fecha_fin = $ren[\"fecha_fin\"];\r\n\t\t\t\t\t\t\t\tlist($ano_t, $mes_t, $dia_t) = explode(\"-\",$fecha_fin);\r\n\t\t\t\t\t\t\t\t$situacion_total = $ren[\"situacion\"];\r\n\t\t\t\t\t\t\t\t$ver_actualizacion = $ren[\"ver_actualizacion\"];\r\n\t\t\t\t\t\t\t\t$usar_caducidad = $ren[\"usar_caducidad\"];\r\n\t\t\t\t\t\t\t\t$clave_contenido = $ren[\"clave_contenido\"];\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\techo '\r\n\t\t\t\t\t\t\t\t<script type=\"text/javascript\">\r\n\t\t\t\t\t\t\t\t';\r\n\t\t\t\t\t\t\t\techo'\r\n\t\t\t\t\t\t\t\t$(document).ready(function()\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t$.frm_elem_color(\"#FACA70\",\"\");\r\n\t\t\t\t\t\t\t\t\t\t\t$.guardar_valores(\"frm_modificar_contenido\");\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\tfunction validar_form(formulario, situacion_temporal, nombre_formulario)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tformulario.situacion_temporal.value = situacion_temporal;\r\n\t\t\t\t\t\t\t\t\t\t\tif(formulario.motivo.value == \"\") \r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\talert(\"'.jv_campo_motivo.'\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tformulario.motivo.focus(); \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tseparador = \"/\";\r\n\t\t\t\t\t\t\t\t\t\t\tfecha_ini = formulario.dia_i.value+\"/\"+formulario.mes_i.value+\"/\"+formulario.ano_i.value;\r\n\t\t\t\t\t\t\t\t\t\t\tfecha_fin = formulario.dia_t.value+\"/\"+formulario.mes_t.value+\"/\"+formulario.ano_t.value;\r\n\t\t\t\t\t\t\t\t\t\t\tif(!Comparar_Fecha(fecha_ini, fecha_fin))\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\talert(\"'.comparar_fecha_veri.'\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tformulario.dia_i.focus(); \r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif(!verificar_fecha(fecha_ini, separador))\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\talert(\"'.verificar_fecha_ini.'\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tformulario.dia_i.focus(); \r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif(!verificar_fecha(fecha_fin, separador))\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\talert(\"'.verificar_fecha_fin.'\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tformulario.dia_t.focus(); \r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tvalorTemporal = FCKeditorAPI.__Instances[\\'conte_texto\\'].GetHTML();\r\n\t\t\t\t\t\t\t\t\t\t\tformulario.conte_texto.value = valorTemporal;\r\n\t\t\t\t\t\t\t\t\t\t\tformulario.btn_guardar1.style.visibility=\"hidden\";\r\n\t\t\t\t\t\t\t\t\t\t\tformulario.btn_guardar1a.style.visibility=\"hidden\";\r\n\t\t\t\t\t\t\t\t\t\t\tdocument.crear_nueva_pagina.btn_nueva_pagina.style.visibility=\"hidden\";\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t\t';\r\n\t\t\t\t\t\t\t\t\tif($nivel == 1 or $nivel == 2)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\techo 'formulario.btn_guardar2.style.visibility=\"hidden\";\r\n\t\t\t\t\t\t\t\t\t\t\tformulario.btn_guardar2a.style.visibility=\"hidden\";';\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\techo '\r\n\t\t\t\t\t\t\t\t\t\t\tformulario.formulario_final.value = nombre_formulario;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t';\r\n\t\t\t\t\t\t\t\techo '</script>';\r\n\t\t\t\t\t\t\t\techo '<form name=\"regresar_pantalla\" id=\"regresar_pantalla\" method=\"post\" action=\"index.php?opc=111&amp;clave_seccion='.$clave_seccion_enviada.'\" class=\"margen_cero\">';\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"archivo\" value = \"../librerias/modulos/contenido/contenido_admon.php\" />';\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"clase\" value = \"clase_contenido\"/>';\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"metodo\" value = \"modificar_contenido\" />';\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"clave_modulo\" value = \"'.$clave_modulo.'\" />';\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"paginas_contenido\" value = \"'.$paginas_contenido.'\" />';\r\n\t\t\t\t\t\t\t\techo '</form>';\t\r\n\t\t\t\t\t\t\t\techo '<form name=\"recargar_pantalla\" id= \"recargar_pantalla\" method=\"get\" action=\"index.php\" class=\"margen_cero\"><input type=\"hidden\" name=\"opc\" value = \"11\" /><input type=\"hidden\" name=\"clave_seccion\" value = \"'.$clave_seccion_enviada.'\" /></form>';\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\techo '<form name=\"frm_modificar_contenido\" id=\"frm_modificar_contenido\" method=\"post\" action=\"index.php?opc=111&amp;clave_seccion='.$clave_seccion_enviada.'\" class=\"margen_cero\" >';\r\n\t\t\t\t\t\t\t\t\techo '<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >';\r\n\t\t\t\t\t\t\t\t\t\techo '<tr><td width=\"400\">'.persona_cambio.'</td><td><input type =\"text\" name = \"nombre\" size = \"60\" /></td></tr>';\r\n\t\t\t\t\t\t\t\t\t\techo '<tr><td>'.correo_cambio.'</td><td><input type = \"text\" name = \"correo\" size = \"60\" /></td></tr>';\r\n\t\t\t\t\t\t\t\t\t\techo '<tr><td>'.motivo_cambio.'</td><td><textarea name=\"motivo\" cols=\"45\" rows=\"5\"></textarea></td></tr>';\r\n\t\t\t\t\t\t\t\t\t\techo '<tr><td>'.situacion.'</td><td>';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"radio\" name=\"situacion_total\" id =\"situacion_act\" value=\"activo\" '; if ($situacion_total == \"activo\") { echo 'checked=\"checked\"'; } echo '/> '.activo.'&nbsp;';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"radio\" name=\"situacion_total\" id =\"situacion_no\" value=\"cancelado\" '; if ($situacion_total == \"cancelado\") { echo 'checked=\"checked\"'; } echo '/> '.cancelado.'&nbsp;';\r\n\t\t\t\t\t\t\t\t\t\t\techo '</td>';\r\n\t\t\t\t\t\t\t\t\t\techo '</tr>';\r\n\t\t\t\t\t\t\t\t\t\techo '<tr><td>'.cont_txt_ver_fec_ac.'</td><td>';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"radio\" name=\"ver_actualizacion\" id =\"ver_actualizacion_si\" value=\"SI\" '; if ($ver_actualizacion == \"SI\") { echo 'checked=\"checked\"'; } echo '/> '.si.'&nbsp;';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"radio\" name=\"ver_actualizacion\" id =\"ver_actualizacion_no\" value=\"NO\" '; if ($ver_actualizacion == \"NO\") { echo 'checked=\"checked\"'; } echo '/> '.no.'&nbsp;';\r\n\t\t\t\t\t\t\t\t\t\t\techo '</td>';\r\n\t\t\t\t\t\t\t\t\t\techo '</tr>';\r\n\t\t\t\t\t\t\t\t\t\techo '<tr><td>'.cont_txt_usar_cad_cont.'</td><td>';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"radio\" name=\"usar_caducidad\" id =\"usar_caducidad_si\" value=\"SI\" '; if ($usar_caducidad == \"SI\") { echo 'checked=\"checked\"'; } echo ' /> '.si.'&nbsp;';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"radio\" name=\"usar_caducidad\" id =\"usar_caducidad_no\" value=\"NO\" '; if ($usar_caducidad == \"NO\") { echo 'checked=\"checked\"'; } echo ' /> '.no.'&nbsp;';\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\techo '</td>';\r\n\t\t\t\t\t\t\t\t\t\techo '</tr>';\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\techo '<tr><td>'.fecha_ini_vig.'</td>';\r\n\t\t\t\t\t\t\t\t\t\t\techo '<td>';\r\n\t\t\t\t\t\t\t\t\t\t\t\t$areglo_meses = FunGral::MesesNumero();\r\n\t\t\t\t\t\t\t\t\t\t\t\techo dia.'&nbsp;<select name = \"dia_i\">';\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor ($a = 1; $a<=31; $a++)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ echo '<option value = \"'.$a.'\" '; if ($dia_i == $a) { echo 'selected=\"selected\"'; } echo ' >'.$a.'</option>'; }\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '</select>&nbsp;';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo mes.'&nbsp;<select name = \"mes_i\">';\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor ($b=1; $b<=12; $b++)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ echo '<option value = \"'.$b.'\" '; if ($mes_i == $b) {echo ' selected=\"selected\" ';} echo ' >'. $areglo_meses[$b] .'</option>'; }\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '</select>&nbsp;';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo ano.'&nbsp;<select name = \"ano_i\">';\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor ($c=$ano_i-10; $c<=$ano_i+10; $c++)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ echo '<option value = \"'.$c.'\" '; if ($ano_i == $c) {echo ' selected=\"selected\" ';} echo '>'.$c.'</option>'; }\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '</select>';\r\n\t\t\t\t\t\t\t\t\t\t\techo '</td>';\r\n\t\t\t\t\t\t\t\t\t\techo '</tr>';\r\n\t\t\t\t\t\t\t\t\t\techo '<tr><td>'.fecha_fin_vig.'</td>';\r\n\t\t\t\t\t\t\t\t\t\t\techo '<td>';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo dia.'&nbsp;<select name = \"dia_t\">';\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor ($a = 1; $a<=31; $a++)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ echo '<option value = \"'.$a.'\" '; if ($dia_t == $a) { echo 'selected'; } echo '>'.$a.'</option>'; }\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '</select>&nbsp;';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo mes.'&nbsp;<select name = \"mes_t\">';\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor ($b=1; $b<=12; $b++)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ echo '<option value = \"'.$b.'\" '; if ($mes_t == $b) {echo 'selected ';} echo '>'.$areglo_meses[$b].'</option>'; }\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '</select>&nbsp;';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo ano.'&nbsp;<select name = \"ano_t\">';\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor ($c=$ano_t-10; $c<=$ano_t+10; $c++)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{echo '<option value = \"'.$c.'\" '; if ($ano_t == $c) {echo ' selected ';} echo '>'.$c.'</option>';}\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '</select>';\r\n\t\t\t\t\t\t\t\t\t\t\techo '</td>';\r\n\t\t\t\t\t\t\t\t\t\techo '</tr>';\r\n\t\t\t\t\t\t\t\t\techo '</table>';\r\n\t\t\t\t\t\t\t\t\techo '<br /><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >';\r\n\t\t\t\t\t\t\t\t\t\techo '<tr>';\r\n\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\">';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"submit\" name=\"btn_guardar1a\" value=\"'.guardar.'\" onclick= \"return validar_form(this.form,\\'pendiente\\', \\'recargar_pantalla\\')\" />';\r\n\t\t\t\t\t\t\t\t\t\t\techo '</td>';\r\n\t\t\t\t\t\t\t\t\t\t\tif($nivel == 1 or $nivel == 2)\r\n\t\t\t\t\t\t\t\t\t\t\t\t{echo '<td align=\"center\"><input type=\"submit\" name=\"btn_guardar2a\" value=\"'.guardar_puliblicar.'\" onclick= \"return validar_form(this.form,\\'activo\\', \\'regresar_pantalla\\')\" /></td>';}\r\n\t\t\t\t\t\t\t\t\t\techo '</tr>';\r\n\t\t\t\t\t\t\t\t\techo '</table><br/>';\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$cons_con_detalle = \"select clave_contenido_detalle, pagina, texto, situacion from nazep_zmod_contenido_detalle\r\n\t\t\t\t\t\t\t\t\twhere clave_contenido = '$clave_contenido' and pagina ='$paginas_contenido' \";\r\n\t\t\t\t\t\t\t\t\t$res = mysql_query($cons_con_detalle);\r\n\t\t\t\t\t\t\t\t\t$con = 1;\r\n\t\t\t\t\t\t\t\t\t$ren = mysql_fetch_array($res);\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$pagina = $ren[\"pagina\"];\r\n\t\t\t\t\t\t\t\t\t$texto = stripslashes($ren[\"texto\"]);\r\n\t\t\t\t\t\t\t\t\t$clave_contenido_detalle_base = $ren[\"clave_contenido_detalle\"];\r\n\t\t\t\t\t\t\t\t\t$situacion_texto = $ren[\"situacion\"];\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"clave_contenido_detalle\" value = \"'.$clave_contenido_detalle_base.'\" />';\r\n\t\t\t\t\t\t\t\t\techo '<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >';\r\n\t\t\t\t\t\t\t\t\t\techo '<tr><td align=\"center\"><strong>'.cont_txt_con_html_pag.' '.$pagina.'</strong></td></tr>';\r\n\t\t\t\t\t\t\t\t\t\techo '<tr><td width=\"377\">'.cont_txt_num_pag.' '.$pagina.'<input type = \"hidden\" name = \"pagina\" size = \"5\" value =\"'.$pagina.'\" /></td></tr>';\r\n\t\t\t\t\t\t\t\t\t\techo '<tr><td align=\"center\">'.cont_txt_sit_pag.' '.$pagina.'&nbsp;&nbsp;';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"radio\" name=\"situacion\" id =\"situacion_act\" value=\"activo\" '; if ($situacion_texto == \"activo\") { echo 'checked=\"checked\"'; } echo '/> '.activo.'&nbsp;';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"radio\" name=\"situacion\" id =\"situacion_no\" value=\"cancelado\" '; if ($situacion_texto == \"cancelado\") { echo 'checked=\"checked\"'; } echo '/> '.cancelado.'&nbsp;';\r\n\t\t\t\t\t\t\t\t\t\t\techo '</td>';\r\n\t\t\t\t\t\t\t\t\t\techo '</tr>';\r\n\t\t\t\t\t\t\t\t\t\techo '<tr><td><a name=\"texto_link\" id=\"texto_link\"></a>';\r\n\t\t\t\t\t\t\t\t\t\t\t$texto = ($texto!='')?$texto:'&nbsp;'; \r\n\t\t\t\t\t\t\t\t\t\t\t$oFCKeditor[$con] = new FCKeditor(\"conte_texto\");\r\n\t\t\t\t\t\t\t\t\t\t\t$oFCKeditor[$con]->BasePath = '../librerias/fckeditor/';\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t$oFCKeditor[$con]->Value = $texto;\r\n\t\t\t\t\t\t\t\t\t\t\t$oFCKeditor[$con]->Config['EditorAreaCSS'] = $ubi_tema.'fck_editorarea.css';\r\n\t\t\t\t\t\t\t\t\t\t\t$oFCKeditor[$con]->Config['StylesXmlPath'] = $ubi_tema.'fckstyles.xml';\r\n\t\t\t\t\t\t\t\t\t\t\t$oFCKeditor[$con]->Width = \"100%\";\r\n\t\t\t\t\t\t\t\t\t\t\t$oFCKeditor[$con]->Height = \"500\";\r\n\t\t\t\t\t\t\t\t\t\t\t$oFCKeditor[$con]->Create();\r\n\t\t\t\t\t\t\t\t\t\techo '</td></tr>';\r\n\t\t\t\t\t\t\t\t\techo '</table>';\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"formulario_final\" value = \"\" />';\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"clave_contenido\" value = \"'.$clave_contenido.'\" />';\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"archivo\" value = \"../librerias/modulos/contenido/contenido_admon.php\" />';\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"clase\" value = \"clase_contenido\" />';\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"metodo\" value = \"modificar_contenido\" />';\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"guardar\" value = \"si\" />';\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"clave_seccion\" value = \"'.$clave_seccion_enviada.'\" />';\t\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"clave_modulo\" value = \"'.$clave_modulo.'\" />';\r\n\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"situacion_temporal\" value = \"pendiente\" />';\r\n\t\t\t\t\t\t\t\t\techo '<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >';\r\n\t\t\t\t\t\t\t\t\t\techo '<tr>';\r\n\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\">';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"submit\" name=\"btn_guardar1\" value=\"'.guardar.'\" onclick= \"return validar_form(this.form,\\'pendiente\\', \\'recargar_pantalla\\')\" />';\r\n\t\t\t\t\t\t\t\t\t\t\techo '</td>';\r\n\t\t\t\t\t\t\t\t\t\t\tif($nivel == 1 or $nivel == 2)\r\n\t\t\t\t\t\t\t\t\t\t\t\t{echo '<td align=\"center\"><input type=\"submit\" name=\"btn_guardar2\" value=\"'.guardar_puliblicar.'\" onclick= \"return validar_form(this.form,\\'activo\\', \\'regresar_pantalla\\')\" /></td>';}\r\n\t\t\t\t\t\t\t\t\t\techo '</tr>';\r\n\t\t\t\t\t\t\t\t\techo '</table>';\r\n\t\t\t\t\t\t\t\techo '</form>';\r\n\t\t\t\t\t\t\t\t\techo '<hr />';\r\n\t\t\t\t\t\t\t\t\techo '<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >';\r\n\t\t\t\t\t\t\t\t\t\techo '<tr>';\r\n\t\t\t\t\t\t\t\t\t\t\techo '<td align=\"center\">';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '<form id=\"crear_nueva_pagina\" name=\"crear_nueva_pagina\" action=\"index.php?opc=111&amp;clave_seccion='.$clave_seccion_enviada.'\" method=\"post\" class=\"margen_cero\">';\r\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"archivo\" value =\"../librerias/modulos/contenido/contenido_admon.php\" />';\r\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"clase\" value = \"clase_contenido\" />';\r\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"metodo\" value = \"nueva_pagina\" />';\r\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"clave_modulo\" value = \"'.$clave_modulo.'\" />';\r\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"hidden\" name=\"paginas_contenido\" value = \"'.$paginas_contenido.'\" />';\r\n\t\t\t\t\t\t\t\t\t\t\t\t\techo '<input type=\"submit\" name=\"btn_nueva_pagina\" value=\"'.cont_btn_7_cre_pag.'\" />';\r\n\t\t\t\t\t\t\t\t\t\t\t\techo '</form>';\r\n\t\t\t\t\t\t\t\t\t\t\techo '</td>';\r\n\t\t\t\t\t\t\t\t\t\techo '</tr>';\r\n\t\t\t\t\t\t\t\t\techo '</table>';\r\n\t\t\t\t\t\t\t\tHtmlAdmon::div_res_oper(array());\r\n\t\t\t\t\t\t\t\tHtmlAdmon::boton_regreso(array('clave_usar'=>$clave_seccion_enviada,'texto'=>regresar_opc_mod));\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$this->desconectarse($conexion);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}", "function actualizar(){\n\t\t$rut = $this->input->post('rut');\n\t\t\n\t\t$data = array(\n\t\t\t'nombre' => $this->input->post('nombre'),\n\t\t\t'apellido' => $this->input->post('apellido'),\n\t\t\t'contrasena' => $this->input->post('password'),\n\t\t\t'estado' => 1,\n\t\t\t'modificado' => $this->session->userdata['username'],\n\t\t\t'fechaModificado' => date('Y-m-d H:i:s', time())\n\t\t);\n\t\t\n\t\t# se agrega el cliente en la BD\n\t\t$this->usuarios_model->actualizar($rut,$data);\n\n\t\t#echo json_encode($data);\n\t\t\n\t\t# redirigimos a la siguiente pagina\n\t\tredirect('admin_listar_usuarios');\n\t}", "function modify_user($ci, $grado, $espe, $nombres, $paterno, $materno, $fec_nac, $lugar, $direccion, $fono, $celular, $gsanguineo, $gestion, $curso) {\n\n // If $password is blank, make no changes to the current password\n \t\t$connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n $qUpdate = \"UPDATE alumno SET ci='$ci', grado='$grado', espe='$espe', nombres='$nombres', paterno='$paterno', materno='$materno', fec_nac='$fec_nac', lugar='$lugar', direccion='$direccion', fono='$fono', celular='$celular', gsanguineo='$gsanguineo', gestion='$gestion', curso='$curso' WHERE ci = '$ci'\";\n\t\t\t$result = mysql_query($qUpdate); \n\t\t\treturn 1;\n // }\n\t}", "static public function ctrCrearUsuario(){\n \t\tif(isset($_POST[\"nuevoUsuario\"])){\n \t\t\tif(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"nuevoNombre\"]) &&\n\t\t\t preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"nuevoUsuario\"]) &&\n\t\t\t preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"nuevoPassword\"])){\n\n\n\t\t\t\t//Inicializamos la ruta de la foto por si no hay foto.\n\t\t\t\t$ruta =\"\";\n\n\n \t\t\t\t$tabla = \"usuarios\";\n\n \t\t\t\t//$encriptar = crypt($_POST[\"nuevoPassword\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n \t\t\t\t$encriptar = $_POST[\"nuevoPassword\"];\n\n\n \t\t\t\t$datos = array (\"nombre\" => $_POST[\"nuevoNombre\"],\n \t\t\t\t\t\t\t\t\"usuario\" => $_POST[\"nuevoUsuario\"],\n \t\t\t\t\t\t\t\"password\" => $encriptar ,\n \t\t\t\t\t\t\"perfil\" => $_POST[\"nuevoPerfil\"]);\n\t\t\t\t\t\t \n\t\t\t\t$nombreValido = ModeloUsuarios::mdlValidadUsuario($tabla, $_POST[\"nuevoUsuario\"]);\n\t\t\t\t$respuesta = \"\";\n\t\t\t\tif($nombreValido)\n\t\t\t\t \t$respuesta = ModeloUsuarios::mdlIngresarUsuario($tabla, $datos);\n\n \t\t\t\tif($respuesta == \"ok\" AND $nombreValido ){\n\n \t\t\t\techo '<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\ttype: \"success\",\n\t\t\t\t\t\ttitle: \"¡El usuario ha sido guardado correctamente!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"usuarios\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t</script>';\n\n \t\t\t\t}else \t\t\n \t\t\t\techo '<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\ttype: \"error\",\n\t\t\t\t\t\ttitle: \"¡El usuario no se ha logrado ingresar!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t</script>';\n\n \t\t\t\t\n\n \t\t\t}else {\n \n \t\t\t\techo '<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\ttype: \"error\",\n\t\t\t\t\t\ttitle: \"¡El usuario no puede ir vacío o llevar caracteres especiales!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"usuarios\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t</script>';\n\n\n \t\t\t}\n \n \n\n\n \t\t}\n\n\t}", "function actualizarUsuario($parametros) {\n $sql = \"UPDATE usuarios SET nombre=:nombre, apellidos=:apellidos, email=:email, \n pass=:pass, telefono=:telefono, administrador=:administrador WHERE dni=:dni\";\n\n //Preparamos la consulta\n $actualizar_usuario = $this->conexionBBDD->prepare($sql,array());\n\n //Ejecutamos la consulta y actualizamos los datos del usuario\n $actualizar_usuario->execute($parametros);\n }", "function modifica(){\n $mensaje=\"\";\n $model = new DB;\n $conexion = $model->singleton();\n $n2 = $_POST['nombreact']; //nombre actual de usuario\n $n = $_POST['nombre']; //nuevo nombre\n $c = $_POST['cognoms'];\n $e = $_POST['email'];\n $p = $_POST['password'];\n if (empty($n) || empty($c) || empty($e) || empty($p)||empty($n2)) {\n $mensaje = 'Todos los campos tienen que estar llenos.';\n }else{\n $sql = \"INSERT INTO usuaris (nom, cognoms, email, password)VALUES ('$n', '$c', '$e', '$p') WHERE nom = '$n2'\";\n \n $consulta = $conexion->prepare($sql);\n $consulta->execute();\n \n if(!$consulta){\n header('Location: '.APP_W.'error');\n }else{\n header('Location: '.APP_W.'correcto');\n }\n }\n\n echo $mensaje;\n \n\n\n }", "public function verModificacion(){\n\n\t$currentuser = $_SESSION[\"currentuser\"];\n\t$usuario= new User();\n\n if (isset($_POST[\"nombreU\"])){\n\n\t\t/*Guarda en el objeto los datos introducidos*/\n $usuario->setContrasenaU($_POST[\"contrasenaU\"]);\n $usuario->setNombreU($_POST[\"nombreU\"]);\n\n try{\n\n\t\t /*Comprueba que los datos introducidos son validos*/\n $usuario->checkIsValidForModificacionJPopu($_POST[\"contrasenaU2\"]);\n\n // gActualiza los datos en la base de datos\n $usuario->update($currentuser->getEmailU());\n\n\t\t //Actualiza la sesión con los datos modificados\n\t\t $_SESSION[\"currentuser\"] = $this->user->ver_datos($currentuser->getEmailU());\n\n\t\t //mensaje de confirmación y redirige al método verPerfil del ProfesionalController.php\n\t\t echo \"<script> alert('Usuario modificado correctamente'); </script>\";\n\t\t echo \"<script>window.location.replace('index.php?controller=profesional&action=verPerfil');</script>\";\n\n }catch(ValidationException $ex) {\n $errors = $ex->getErrors();\n $this->view->setVariable(\"errors\", $errors);\n }\n }\n\n\t/*Recupera los datos del usuario*/\n $usuario = $this->user->ver_datos($currentuser->getEmailU());\n\n /* Guarda el valor de la variable $usuario en la variable user accesible\n\tdesde la vista*/\n $this->view->setVariable(\"user\", $usuario);\n\n\t/*Permite visualizar: view/vistas/modificacionJProf.php */\n $this->view->render(\"vistas\", \"modificacionJProf\");\n\n }", "public function actualizar_empresa_controlador(){\n\t\t\n\t\t$cuenta= mainModel::decryption($_POST['codigo']);\n\t\t$nit= mainModel::limpiar_cadena($_POST['nit-update']);\n\t\t$nombre= mainModel::limpiar_cadena($_POST['nombre-update']);\n\t\t$telefono= mainModel::limpiar_cadena($_POST['telefono-update']);\n\t\t$email= mainModel::limpiar_cadena($_POST['email-update']);\n\t\t$direccion= mainModel::limpiar_cadena($_POST['direccion-update']);\n\t\t$director= mainModel::limpiar_cadena($_POST['director-update']);\n\t\t$telefono2= mainModel::limpiar_cadena($_POST['telefono2-update']);\n\t\t$year= mainModel::limpiar_cadena($_POST['year-update']);\n\t\t\n\n\t\t$consulta1=mainModel::ejecutar_consulta_simple(\"SELECT * FROM empresa WHERE id='$cuenta'\");\n\t\t$datosEmpresa=$consulta1->fetch();\n\n\t\t\tif($nit!=$datosEmpresa['EmpresaCodigo']){\n\t\t\t\t$const1=mainModel::ejecutar_consulta_simple(\"SELECT EmpresaCodigo FROM empresa WHERE EmpresaCodigo='$nit'\");\n\t\t\t\tif($const1->rowCount()>=1){\n\t\t\t\t\t$alerta=[\n\t\t\t\t\t\t\"Alertas\"=>\"simple\",\n\t\t\t\t\t\t\"Titulo\"=>\"Ocurrio un error inesperado\",\n\t\t\t\t\t\t\"Texto\"=>\"La Empresa que acaba de actualizar ya se encuenta registrada.\",\n\t\t\t\t\t\t\"Tipo\"=>\"error\"\n\t\t\t\t\t\t];\n\t\t\t\t\t\treturn mainModel::sweet_alert($alerta);\n\t\t\t\t\t\texit();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t$datosEmpresaAct=[\n\t\t\t\t\t\"Nit\"=>$nit,\n\t\t\t\t\t\"Nombre\"=>$nombre,\n\t\t\t\t\t\"Telefono\"=>$telefono,\n\t\t\t\t\t\"Email\"=>$email,\n\t\t\t\t\t\"Direccion\"=>$direccion,\n\t\t\t\t\t\"Director\"=>$director,\n\t\t\t\t\t\"Telefono2\"=>$telefono2,\n\t\t\t\t\t\"Year\"=>$year,\n\t\t\t\t\t\"Id\"=>$cuenta\n\t\t\t\t];\n\n\t\t\t\tif(empresaModelo::actualizar_empresa_modelo($datosEmpresaAct)){\n\t\t\t\t\t$alerta=[\n\t\t\t\t\t\t\t\"Alertas\"=>\"recargar\",\n\t\t\t\t\t\t\t\"Titulo\"=>\"Datos actualizados\",\n\t\t\t\t\t\t\t\"Texto\"=>\"Los datos fueron actualizados de manera satisfactoria.\",\n\t\t\t\t\t\t\t\"Tipo\"=>\"success\"\n\t\t\t\t\t\t\t];\n\t\t\t\t}else{\n\t\t\t\t\t$alerta=[\n\t\t\t\t\t\t\t\"Alertas\"=>\"simple\",\n\t\t\t\t\t\t\t\"Titulo\"=>\"Ocurrio un error inesperado\",\n\t\t\t\t\t\t\t\"Texto\"=>\"Los datos no han podido ser actualizar los datos, por favor intente nuevamente.\",\n\t\t\t\t\t\t\t\"Tipo\"=>\"error\"\n\t\t\t\t\t\t\t];\n\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\treturn mainModel::sweet_alert($alerta);\n\t}", "public function ActualizarPassword()\n\t{\n\t\tif(empty($_POST[\"cedula\"]))\n\t\t{\n\t\t\techo \"1\";\n\t\t\texit;\n\t\t}\n\n\t\tself::SetNames();\n\t\t$sql = \" update usuarios set \"\n\t\t\t .\" usuario = ?, \"\n\t\t\t .\" password = ? \"\n\t\t\t .\" where \"\n\t\t\t .\" codigo = ?;\n\t\t\t \";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1, $usuario);\n\t\t$stmt->bindParam(2, $password);\n\t\t$stmt->bindParam(3, $codigo);\t\n\t\t\t\n\t\t$usuario = strip_tags($_POST[\"usuario\"]);\n\t\t$password = sha1(md5($_POST[\"password\"]));\n\t\t$codigo = strip_tags($_SESSION[\"codigo\"]);\n\t\t$stmt->execute();\n\n\t\techo \"<div class='alert alert-info'>\";\n\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\techo \"<span class='fa fa-check-square-o'></span> SU CLAVE DE ACCESO FUE ACTUALIZADA EXITOSAMENTE, SER&Aacute; EXPULSADO DE SU SESI&Oacute;N Y DEBER&Aacute; DE ACCEDER NUEVAMENTE\";\n\t\techo \"</div>\";\t\t\n\t\t?>\n\t\t<script>\n\t\t\tfunction redireccionar(){location.href=\"logout.php\";}\n\t\t\tsetTimeout (\"redireccionar()\", 3000);\n\t\t</script>\n\t\t<?php\n\t\texit;\n\t}", "function updateUser($mysqli, $parametres){\r\n\t$idUser=$parametres[0];\r\n\t$token=$parametres[1];\r\n\t$direccio=$parametres[2];\r\n\t$municipi=$parametres[3];\r\n\t$codi_postal=$parametres[4];\r\n\t$user=$parametres[5];\r\n\t$telf=$parametres[6];\r\n\t$email=$parametres[7];\r\n\t$n=0;\r\n\t$n2=0;\r\n\tif($user!=-1)\r\n\t{\r\n\t\t$actualiza=\"user='\".$user.\"'\";\r\n\t\t$n=1;\r\n\t}\r\n\tif($telf!=-1)\r\n\t{\r\n\t\tif($n==0)\r\n\t\t{\r\n\t\t\t$actualiza=\"mobil='\".$telf.\"'\";\r\n\t\t\t$n=1;\r\n\t\t}else{\r\n\t\t\t$actualiza=$actualiza.\", mobil='\".$telf.\"'\";\t\r\n\t\t}\r\n\t}\r\n\tif($email!=-1)\r\n\t{\r\n\t\tif($n==0)\r\n\t\t{\r\n\t\t\t$actualiza=\"mail='\".$email.\"'\";\r\n\t\t\t$n=1;\r\n\t\t}else{\r\n\t\t\t$actualiza=$actualiza.\", mail='\".$email.\"'\";\t\r\n\t\t}\r\n\t} \r\n\tif($direccio!=-1)\r\n\t{\r\n\t\t$actualiza2=\"direccio='\".$direccio.\"'\";\r\n\t\t$n2=1;\r\n\t}\r\n\tif($municipi!=-1)\r\n\t{\r\n\t\tif($n2==0)\r\n\t\t{\r\n\t\t\t$actualiza2=\"municipi='\".$municipi.\"'\";\r\n\t\t\t$n2=1;\r\n\t\t}else{\r\n\t\t\t$actualiza2=$actualiza2.\", municipi='\".$municipi.\"'\";\t\r\n\t\t}\r\n\t}\r\n\tif($codi_postal!=-1)\r\n\t{\r\n\t\tif($n2==0)\r\n\t\t{\r\n\t\t\t$actualiza2=\"codi_postal='\".$codi_postal.\"'\";\r\n\t\t\t$n2=1;\r\n\t\t}else{\r\n\t\t\t$actualiza2=$actualiza2.\", codi_postal='\".$codi_postal.\"'\";\t\r\n\t\t}\r\n\t}\r\n\tif(validarUser($mysqli, $idUser, $token, &$idAlumne))\r\n\t{\r\n\t\tif($n==1)\r\n\t\t{\r\n\t\t\t$sql=\"UPDATE users SET \".$actualiza.\" WHERE idUser=\".$idUser;\r\n\t\t\taccessBBDD($mysqli, $sql);\r\n\t\t}\r\n\t\tif($n2==1)\r\n\t\t{\r\n\t\t\t$sql=\"UPDATE alumnes SET \".$actualiza2.\" WHERE idAlumne=\".$idAlumne;\r\n\t\t\taccessBBDD($mysqli, $sql);\r\n\t\t}\r\n\t}\r\n\treturn json_encode($ret);\r\n}", "public function lostPw(){\r\n\t\t\r\n\t\t$required_fields = array('email','telefono');\r\n\t\t//si todos los campos requeridos estan continuamos\r\n\t\tif($this->campos_requeridos($required_fields,true) == true){\r\n\t\t\t$this->validar_email();\t\t\t\t\t \t //validar solo si es correcto\r\n\t\t\t$this->validar_telefono($_POST['telefono']); //en clase registro, llevar a seg_actions\r\n\t\t}else{\r\n\t\t\treturn $this->error;\t\t\t\t\t\t //deben completarse los campos requeridos\r\n\t\t}\r\n\r\n\t\tif(is_null($this->error)){\r\n\t\t\t\r\n\t\t\t//los datos enviados son validos\r\n\t\t\t$email = $_POST['email'];\r\n\t\t\t$telefono = $_POST['telefono'];\r\n\t\t\t$user_browser = $_SERVER['HTTP_USER_AGENT']; //navegador\r\n\t\t\t$ip = $_SERVER['REMOTE_ADDR']; //ip\r\n\t\t\t$macro_sha = hash('sha512', $email.$user_browser.$telefono.$ip);\r\n\t\t\t\r\n\t\t\t$cols = array('email' \t => $email,\t\t'telefono' => $telefono,\r\n\t\t\t\t\t\t 'ip' \t\t => $ip,\t\t\t'navegador' => $user_browser,\r\n\t\t\t\t \t\t 'hora' \t => $this->now,\t'macro_sha' => $macro_sha );\r\n\t\t\t\r\n\t\t\t//se guarda todo en db y se le envia un email\r\n\t\t\t$this->insert('solicitudes_clave',$cols);\r\n\t\t\t\r\n\t\t\t//comprobamos que existe el email\r\n\t\t\t$cols = array('id', 'user_email', 'salt', 'user_telefono');\r\n\t\t\t$this->where('user_email',$email);\r\n\t\t\tif($salida = $this->getOne('usuarios ',$cols)){\r\n\t\t\t\r\n\t\t\t\t$user_id \t = $salida['id'];\r\n\t\t\t\t$email_db \t = $salida['user_email'];\r\n\t\t\t\t$saltador \t = $salida['salt'];\r\n\t\t\t\t$telefono_db = $salida['user_telefono'];\r\n\t\t\t\r\n\t\t\t\tif($telefono == $telefono_db){\r\n\t\t\t\t\t//guardamos salt del user en solicitudes_clave\r\n\t\t\t\t\t$campos = array('salt' => $saltador);\r\n\t\t\t\t\t$this->where('email',$email_db);\r\n\t\t\t\t\t$this->update('solicitudes_clave',$campos);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t//Actualizando movimientos en stats_user_conections\r\n\t\t\t\t\t$this->movimientoStats('Solicitado nuevo password',$user_id);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//generar link y se enviara email\r\n\t\t\t\t\treturn '<a href=\"index.php?accion=los&validation='.$macro_sha.'\">Sigua este enlace para continuar \r\n\t\t\t\t\t\t\t con el reestablecimiento e su contraseña</a>';\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//los datos no son correctos\r\n\t\t\t\t\treturn $this->errores[10];\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t//no existe este email\r\n\t\t\t\treturn $this->errores[10];\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t//los datos (telefono y/o email) no son correctos\r\n\t\t\treturn $this->errores[10];\r\n\t\t}\r\n\t}", "public function ctrActualizarRegistro(){\r\n\r\n \tif (isset($_POST[\"actualizarnombre\"])) {\r\n\r\n \t\tif ($_POST[\"actualizarpassword\"]!= \"\") {\r\n \t\t\t$password = $_POST[\"actualizarpassword\"];\r\n \t\t}else{\r\n \t\t\t$password= $_POST[\"passwordactual\"];\r\n \t\t}\r\n\r\n\r\n \t\t$tabla = \"registros\";\r\n \t\t$datos = array(\"id\" => $_POST[\"idusuario\"], \"nombre\"=> $_POST[\"actualizarnombre\"], \r\n \t\t\t\"email\"=> $_POST[\"actualizaremail\"],\r\n \t\t\t\"password\"=> $password);\r\n\r\n \t\t$respuesta = ModeloFormularios :: mdlActualizarRegistro($tabla, $datos);\r\n \t\t\r\n \t\tif ($respuesta ==\"ok\") {\r\n \t\t\techo '<script>\r\n \t\t\tif (window.history.replaceState){\r\n \t\t\t\twindow.history.replaceState( null, null, window.location.href);}\r\n \t\t\t\t</script>';\r\n \t\t\t\techo '<div class=\"alert alert-success\"> Datos Actualizados Satisfactoriamente</div>\t \r\n \t\t\t\t<script>\r\n \t\t\t\tsetTimeout(function(){\r\n \t\t\t\t\twindow.location = \"index.php?pagina=inicio\";},3000)\r\n\r\n \t\t\t\t\tif (window.history.replaceState){\r\n \t\t\t\t\t\twindow.history.replaceState( null, null, window.location.href);}\r\n \t\t\t\t\t\t</script>';\r\n\r\n \t\t\t\t\t}\r\n\r\n\r\n}\r\n\r\n}", "static public function ctrIngresoUsuario(){\n\n\t\tif(isset($_POST[\"ingUsuario\"])){\n\n\t\t\tif(preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"ingUsuario\"]) &&\n\t\t\t preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"ingPassword\"])){\n\n\t\t\t\t$tabla = \"usuarios\";\n\n\t\t\t\t// $encriptar = crypt($_POST[\"ingPassword\"], '$2a$07$usesomesillystringforsalt$');\n\n\t\t\t\t$item = \"usu_descri\";\n\t\t\t\t$valor = $_POST[\"ingUsuario\"];\n\t\t\t\t$pass = $_POST[\"ingPassword\"];\n\n\t\t\t\t$respuesta = ModeloUsuarios::MdlMostrarUsuarios($tabla, $item, $valor);\n\n\t\t\t\t// var_dump($respuesta);\n\t\t\t\t// die();\n\n\t\t\t\tif($respuesta[\"usu_descri\"] == $_POST[\"ingUsuario\"] && $respuesta[\"clave\"] == $_POST[\"ingPassword\"])\n\t\t\t\t{\n\n\t\t\t\t\tif($respuesta['estado'] == 'A')\n\t\t\t\t\t{\n\n\t\t\t\t\t\t$_SESSION[\"iniciarSesion\"] = \"ok\";\n\t\t\t\t\t\t$_SESSION[\"id\"] = $respuesta[\"id\"];\n\t\t\t\t\t\t// $_SESSION[\"nombre\"] = $respuesta[\"nombre\"];\n\t\t\t\t\t\t$_SESSION[\"usuario\"] = $respuesta[\"usu_descri\"];\n\t\t\t\t\t\t// $_SESSION[\"foto\"] = $respuesta[\"foto\"];\n\t\t\t\t\t\t// $_SESSION[\"perfil\"] = $respuesta[\"perfil\"];\n\n\t\t\t\t\t\techo '<script>\n\t\n\t\t\t\t\t\twindow.location = \"inicio\";\n\t\n\t\t\t\t\t\t</script>';\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\techo '<br><div class=\"alert alert-danger\">El usuario no esta activo, porfavor, comuniquese con el administrador</div>';\n\t\t\t\t\t}\n\n\t\t\t\t}else{\n\n\t\t\t\t\techo '<br><div class=\"alert alert-danger\">Error al ingresar, vuelve a intentarlo</div>';\n\n\t\t\t\t}\n\n\t\t\t}\t\n\n\t\t}\n\n\t}", "public function saveUsuario(){\n\t\t$conexion = new Database();\n if ($this->codigo){\n $query = sprintf('UPDATE agenda_usuario SET usuario = \"%s\" password = \"%s\" WHERE usuario_id = %d',\n $this->usuario,\n $this->password,\n $this->codigo);\n $rows = $conexion->exec( $query );\n }\n else{\n $query = sprintf('INSERT INTO agenda_usuario ( usuario, password) VALUES (\"%s\", \"%s\")',\n $this->usuario,\n $this->password );\n\t\t\t$rows = $conexion->exec( $query );\n $this->codigo = $conexion->lastInsertId();\n }\n }", "public function userCadConfirm($codConfirmacao=''){\n \n\n \n if($codConfirmacao==''){//se em branco retorna NULL (erro)\n \n \n return null;\n \n }else{//caso codigo informado procede com a conferencia e a ativacao\n \n \n \n $sql = new Sql();\n $ativacao = $sql->select('SELECT * FROM usuarios \n WHERE cod_ativacao_usuario = :cod_ativacao_usuario',\n array(':cod_ativacao_usuario'=>$codConfirmacao)); \n \n if(count($ativacao)==0){\n \n \n return null;//caso nada encontrado retorna NULL (deve pode ser um codigo invalido)\n \n }elseif(count($ativacao)>0){//caso codigo de confirmacao for OK entao ativa o cadastro\n \n \n //obtem o id do usuario\n $id_usuario = $ativacao[0]['id_usuario'];\n \n \n //verifica se existe a necessidade de ativacao\n if($ativacao[0]['status_usuario']==1){//cadastro JA ATIVO basta notificar\n \n return true;//retorna true confirmando que o cadastro esta atualizado \n \n }elseif($ativacao[0]['status_usuario']==0){//CASO INATIVO ENTÃO PROCEDE COM A ATIVACAO\n \n //atualiza o cadastro do usuario ativando ele\n $res = $sql->query('UPDATE usuarios SET status_usuario = 1\n WHERE id_usuario = :id_usuario',\n array(':id_usuario'=>$id_usuario));\n \n if($res>0){//se o numero de linhas afetadas for maior que ZERO\n \n return true;//retorna true confirmando que o cadastro esta atualizado\n \n }else{\n return false;//caso nada encontrado retorna FALSE (pode ter ocorrido erro na atualizacao)\n\n }\n }\n } \n }\n }", "function modificarDatosUsuario($id, $username, $email, $poblacion, $idioma, $telefono, $url, $foto, $textoPresentacion) {\n $sql = \"UPDATE usuario SET username='\" . $username . \"',email='\" . $email . \"',poblacion='\" . $poblacion . \"',\"\n . \"idioma='\" . $idioma . \"',telefono='\" . $telefono . \"',url='\" . $url . \"',foto='\" . $foto . \"',\"\n . \"textoPresentacion='\" . $textoPresentacion . \"' WHERE id='\" . $id . \"'\";\n $con = new DB();\n $result = $con->exec($sql);\n $con = null;\n }", "function actualizarUsuarios($id,$nivel)\n {\n $this->my->query(\"UPDATE usuarios set nivel = $nivel\n WHERE id = $id \")or\n die(\"Problemas al actualizar Usuarios.\".$this->my->error);\n }", "function modeloUserUpdate ($userid,$userdat){\n if ( isset($_SESSION['tusuarios'][$userid])){\n $_SESSION['tusuarios'][$userid]= $userdat;\n \n $user = new Usuario();\n $user->id = $userid;\n $user->nombre = $userdat['nombre'];\n $user->password = $userdat['password'];\n $user->correo = $userdat['correo'];\n $user->plan = $userdat['plan'];\n $user->estado = $userdat['estado'];\n $db = AccesoDatos::getModelo();\n $db->modUsuario($user);\n \n echo \"<script>modificarUser();</script>\"; \n\n }\n return false;\n}", "public function ctrIngresoUsuario(){\n\t\tif(isset($_POST[\"ingUsuario\"])){\n\t\t\tif(preg_match('/^[a-zA-Z0-9]+$/',$_POST[\"ingUsuario\"]) && \n\t\t\t\tpreg_match('/^[a-zA-Z0-9]+$/',$_POST[\"ingPassword\"])){\n\n\t\t\t\t$tabla=\"usuarios\";\n\t\t\t$item=\"usuario\";\n\t\t\t$valor=$_POST[\"ingUsuario\"];\n\t\t\t$respuesta=ModeloUsuarios::MdlMostrarUsuarios($tabla,$item,$valor);\t\n\t\t\t //var_dump($respuesta[\"usuario\"]);\n\t\t\tif($respuesta[\"usuario\"]==$_POST[\"ingUsuario\"] && $respuesta[\"password\"]==$_POST[\"ingPassword\"]){\n\t\t\t\t$_SESSION[\"iniciarSesion\"]=\"ok\";\n\t\t\t\techo '<script>\n\t\t\t\twindow.location=\"inicio\";\n\t\t\t\t</script>';\n\t\t\t}else{\n\t\t\t\techo '<br><div class=\"alert alert-danger\">Error al ingresar, vuelva a intentarlo</div>';\n\t\t\t}\n\t\t}\n\t}\n }", "function EDIT()\n{\n\t$comprobar = $this->comprobar_atributos(); //Busca si la tupla es correcta o tiene algun error\n\n\tif($comprobar == true)\n\t{\n\t\t$sql = \"UPDATE USUARIOS\n\t\t\t\tSET \n\t\t\t\t\tpassword = '$this->password',\n\t\t\t\t\tDNI = '$this->DNI',\n\t\t\t\t\tnombre = '$this->nombre',\n\t\t\t\t\tapellidos = '$this->apellidos',\n\t\t\t\t\ttelefono = '$this->telefono',\n\t\t\t\t\temail = '$this->email',\n\t\t\t\t\tFechaNacimiento = '$this->FechaNacimiento',\n\t\t\t\t\tfotopersonal = '$this->fotopersonal',\n\t\t\t\t\tsexo = '$this->sexo'\n\t\t\t\tWHERE (\n\t\t\t\t\tlogin = '$this->login'\n\t\t\t\t)\n\t\t\t\t\";\n\n\t\tif ($this->mysqli->query($sql))\n\t\t{\n\t\t\t$resultado = 'Actualización realizada con éxito';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$resultado = 'Error de gestor de base de datos';\n\t\t}\n\t\treturn $resultado;\n\t}\n\telse{\n\t\treturn $comprobar;\n\t}\n}", "public function update(){\n \n // esta operación solamente la puede hacer el administrador\n // o bien el usuario propietario de los datos que se muestran\n if(!Login::isAdmin() || !Login::get() || Login::get()->id != $id)\n throw new Exception('No tienes los permisos necesarios');\n \n // comprueba que llegue el formulario con los datos\n if(empty($_POST['actualizar']))\n throw new Exception('No se recibieron datos');\n \n $id = intval($_POST['id']); // recuperar el id vía POST\n \n // recuperar el usuario\n if(!$mascota = Mascotas::GetMascota($id))\n throw new Exception(\"No existe la mascota $id.\");\n \n $mascota->nombre = DB::escape($_POST['nombre']);\n $mascota->sexo = DB::escape($_POST['sexo']);\n $mascota->biografia = DB::escape($_POST['biografia']);\n $mascota->fechanacimiento = DB::escape($_POST['fechanacimiento']);\n $mascota->fechafallecimiento = DB::escape($_POST['fechafallecimiento']);\n \n //la clave solamente cambia si se indica una nueva\n if(!empty($_POST['clave']))\n $mascota->clave = md5($_POST['clave']);\n \n // intenta realizar la actualización de datos\n if($mascota->actualizar()===false)\n throw new Exception(\"No se pudo actualizar $mascota->nombre\");\n \n // prepara un mensaje\n $GLOBALS['mensaje'] = \"Actualización de la mascota $mascota->nombre correcta.\";\n \n // repite la operación edit, así mantiene la vista de edición.\n $this->edit($mascota->id);\n }", "function EDIT() {\n\t\t// se construye la sentencia de busqueda de la tupla en la bd\n\t\t$sql = \"SELECT * FROM ENTREGA WHERE (login = '$this->login' AND IdTrabajo = '$this->IdTrabajo')\";\n \n\t\t// Variable que almacena la sentencia sql\n\t\t$result = $this->mysqli->query( $sql );\n\t\t// si el numero de filas es igual a uno es que lo encuentra\n\t\tif ( $result->num_rows == 1 ) { // se construye la sentencia de modificacion en base a los atributos de la clase\n\t\t\t//Si la ruta no es vacia actualiza la entrega\n if($this->Ruta <> null){\n //Variable que almacena la sentencia sql\n\t\t\t\t$sql = \"UPDATE ENTREGA SET \n\t\t\t\t\tlogin = '$this->login',\n\t\t\t\t\t IdTrabajo='$this->IdTrabajo',\n Alias='$this->Alias',\n Horas='$this->Horas',\n Ruta='$this->Ruta'\n\t\t\t\tWHERE ( login = '$this->login' AND IdTrabajo = '$this->IdTrabajo'\n\t\t\t\t)\";//se construye la sentencia sql de modificacion\n\n }\n //Si la ruta es vacia\n else{\n //Variable que almacena la sentencia sql\n $sql = \"UPDATE ENTREGA SET \n\t\t\t\t\tlogin = '$this->login',\n\t\t\t\t\t IdTrabajo='$this->IdTrabajo',\n Alias='$this->Alias',\n Horas='$this->Horas'\n\t\t\t\tWHERE ( login = '$this->login' AND IdTrabajo = '$this->IdTrabajo'\n\t\t\t\t)\";//se construye la sentencia sql de modificacion\n \n }\n\t\t\t// si hay un problema con la query se envia un mensaje de error en la modificacion\n\t\t\tif ( !( $resultado = $this->mysqli->query( $sql ) ) ) {\n\t\t\t\treturn 'Error en la modificación';\n\t\t\t}\n \n // si no hay problemas con la modificación se indica que se ha modificado\n else { \n\t\t\t\treturn 'Modificado correctamente';\n\t\t\t}\n // si no se encuentra la tupla se manda el mensaje de que no existe la tupla\n\t\t} else \n\t\t\treturn 'No existe en la base de datos';\n\t}", "public function actualizar_usuario($obj_usu)\n {\n \n\t\t$servername = \"localhost\";\n\t\t$username = \"root\";\n\t\t$password = \"slam2018\";\n\t\t$dbname = \"corgran\";\n\n\t\t\t// Create connection\n\t\t$conn = new mysqli($servername, $username, $password, $dbname);\n\t\t\t// Check connection\n\t\tif ($conn->connect_error) {\n\t\t die(\"Connection failed: \" . $conn->connect_error);\n\t\t} \n \n $sql =\"Update usuarios set nombre='$obj_usu->nombre',clave='$obj_usu->clave', tipo_usu='$obj_usu->tipo_usu' where id_usuario ='8'\"; \n\n\t\tif ($conn->query($sql) === TRUE) {\n \t\techo \"El registro se actualizo correctamente\";\n\t\t} else {\n \t\techo \"Error deleting record: \" . $conn->error;\n\t\t}\n\n\t\t$conn->close(); \n\t\theader('Location: ../index.php'); \n }", "static public function ctrEditUser(){\n\t\t\tif(isset($_POST[\"editarUsuario\"])){\n\t\t\t\tif(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/',$_POST[\"editarNombre\"]) ){\n\n\t\t\t\t\t/*==========================================================\n\t\t\t\t\t\tV A L I D A R I M A G E N\n\t\t\t\t\t==========================================================*/\n\t\t\t\t\t$ruta = $_POST[\"fotoActual\"];\n\t\t\t\t\tif(isset($_FILES[\"editarFoto\"][\"tmp_name\"]) && $_FILES[\"editarFoto\"][\"tmp_name\"] != \"\"){\n\t\t\t\t\t\tlist($ancho, $alto) = getimagesize($_FILES[\"editarFoto\"][\"tmp_name\"]);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$nuevoAncho = 500;\n\t\t\t\t\t\t$nuevoAlto = 500;\n\n\t\t\t\t\t\t/*---------------------------------------------\n\t\t\t\t\t\t\tCREAR DIRECTORIO DONDE SE GUARDA LA FOTO\n\t\t\t\t\t\t---------------------------------------------*/\n\t\t\t\t\t\t$directorio = \"view/img/usuarios/\".$_POST[\"editarUsuario\"];\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*--------------------------------------------\n\t\t\t\t\t\t\tPREGUNTAR SI EXISTE FOTO EN LA DB\n\t\t\t\t\t\t--------------------------------------------*/\n\t\t\t\t\t\tif(!empty($_POST[\"fotoActual\"])){\n\t\t\t\t\t\t\tunlink($_POST[\"fotoActual\"]);\n\t\t\t\t\t\t}else{//Creamos Directorio\n\t\t\t\t\t\t\tmkdir($directorio, 0755);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/*---------------------------------------------\n\t\t\t\t\t\t\tDE ACUERDO AL TIPO DE IMAGEN ACCIONES\n\t\t\t\t\t\t---------------------------------------------*/\n\t\t\t\t\t\t$rand = mt_rand(100, 999);\n\n\t\t\t\t\t\t//------------------ IMAGEN JPEG ------------------\n\t\t\t\t\t\tif($_FILES[\"editarFoto\"][\"type\"] == \"image/jpeg\"){\n\t\t\t\t\t\t\t//Guardamos Imagen en el Directorio\n\t\t\t\t\t\t\t$ruta = \"view/img/usuarios/\".$_POST[\"editarUsuario\"].\"/\".$rand.\".jpeg\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$origen = imagecreatefromjpeg($_FILES[\"editarFoto\"][\"tmp_name\"]);\n\t\t\t\t\t\t\t$destino = imagecreatetruecolor($nuevoAncho, $nuevoAlto);\n\n\t\t\t\t\t\t\timagecopyresized($destino, $origen, 0, 0, 0, 0, $nuevoAncho, $nuevoAlto, $ancho, $alto);\n\t\t\t\t\t\t\timagejpeg($destino, $ruta);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($_FILES[\"editarFoto\"][\"type\"] == \"image/png\"){\n\t\t\t\t\t\t\t//Guardamos Imagen en el Directorio\n\t\t\t\t\t\t\t$ruta = \"view/img/usuarios/\".$_POST[\"editarUsuario\"].\"/\".$rand.\".png\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$origen = imagecreatefrompng($_FILES[\"editarFoto\"][\"tmp_name\"]);\n\t\t\t\t\t\t\t$destino = imagecreatetruecolor($nuevoAncho, $nuevoAlto);\n\n\t\t\t\t\t\t\timagecopyresized($destino, $origen, 0, 0, 0, 0, $nuevoAncho, $nuevoAlto, $ancho, $alto);\n\t\t\t\t\t\t\timagepng($destino, $ruta);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t\t//Posible Cambio de Contraseña\n\t\t\t\t\t$crPassword = \"\";\n\t\t\t\t\tif($_POST[\"editarPassword\"] != \"\"){\n\t\t\t\t\t\tif(preg_match('/^[a-zA-Z0-9]+$/',$_POST[\"editarPassword\"])){\n\t\t\t\t\t\t\t$crPassword = crypt($_POST[\"editarPassword\"], '$2a$08$abb55asfrga85df8g42g8fDDAS58olf973adfacmY28n05$');\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\techo '<script>\n\t\t\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t\t\ttype: \"warning\",\n\t\t\t\t\t\t\t\t\t\ttitle: \"La contraseña no puede llevar caracteres especiales\",\n\t\t\t\t\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\",\n\t\t\t\t\t\t\t\t\t\tcloseOnConfirm: false\n\t\t\t\t\t\t\t\t\t}).then((result=>{\n\t\t\t\t\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\t\t\t\t\twindow.location = \"users\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t</script>';\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\t//Editar Password viene vacio, no se modificara contraseña\n\t\t\t\t\t\t$crPassword = $_POST[\"passwordActual\"];\n\t\t\t\t\t}\n\t\t\t\t\t$tabla = \"usuarios\";\n\t\t\t\t\t$datos = array(\n\t\t\t\t\t\t\"nombre\"=>$_POST[\"editarNombre\"],\n\t\t\t\t\t\t\"usuario\" => $_POST[\"editarUsuario\"],\n\t\t\t\t\t\t\"password\" => $crPassword,\n\t\t\t\t\t\t\"perfil\" => $_POST[\"editarPerfil\"],\n\t\t\t\t\t\t\"foto\" => $ruta);\n\t\t\t\t\t\n\t\t\t\t\t$respuesta = ModelUsers::mdlEditarUsuario($tabla, $datos);\n\n\t\t\t\t\tif($respuesta){//Usuario guardado con exito\n\t\t\t\t\t\techo '<script>\n\t\t\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t\t\ttype: \"success\",\n\t\t\t\t\t\t\t\t\t\ttitle: \"Usuario guardado con exito\",\n\t\t\t\t\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\",\n\t\t\t\t\t\t\t\t\t\tcloseOnConfirm: false\n\t\t\t\t\t\t\t\t\t}).then((result=>{\n\t\t\t\t\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\t\t\t\t\twindow.location = \"users\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t</script>';\n\t\t\t\t\t}else{//Error al guardar usuario\n\t\t\t\t\t\techo '<script>\n\t\t\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t\t\ttype: \"error\",\n\t\t\t\t\t\t\t\t\t\ttitle: \"Error al guardar usuario '.$respuesta.'\",\n\t\t\t\t\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\",\n\t\t\t\t\t\t\t\t\t\tcloseOnConfirm: false\n\t\t\t\t\t\t\t\t\t}).then((result=>{\n\t\t\t\t\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\t\t\t\t\twindow.location = \"users\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t</script>';\n\t\t\t\t\t}\n\t\t\t\t}else{//Nombre no valido\n\t\t\t\t\techo '<script>\n\t\t\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t\t\ttype: \"warning\",\n\t\t\t\t\t\t\t\t\t\ttitle: \"Nombre no puede ir vacio o llevar caracteres especiales\",\n\t\t\t\t\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\",\n\t\t\t\t\t\t\t\t\t\tcloseOnConfirm: false\n\t\t\t\t\t\t\t\t\t}).then((result=>{\n\t\t\t\t\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\t\t\t\t\twindow.location = \"users\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t</script>';\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function setUsuario($usuario, $contraseña, $nombre, $apellidos, $telefono, $movil){\n\t\t\n\t\t$resultado = conectar()->query( \"SELECT * FROM usuarios WHERE usuario LIKE '$usuario'\");\n\t\tif($resultado->num_rows == 0){\n\t\t\tconectar()->query(\"INSERT INTO usuarios (usuario, contrasenia, nombre, apellidos, telefono, movil) VALUES ('\" . $usuario . \"','\" . $contraseña . \"','\" . $nombre . \"','\" . $apellidos .\"','\" . $telefono . \"','\" . $movil .\"')\");\n\t\t\techo \"<script>alert('Te has registrado correctamente!');document.location.reload();\";\t\n\t\t}else{\n\t\t\techo \"<script>alert('Ya existe ese nombre de usuario!');</script>\";\n\t\t}\n\t}", "public function agregar_usuario_controlador()\n {\n $nombres = strtoupper(mainModel::limpiar_cadena($_POST['usu_nombres_reg']));\n $apellidos = strtoupper(mainModel::limpiar_cadena($_POST['usu_apellidos_reg']));\n $identidad=mainModel::limpiar_cadena($_POST['usu_identidad_reg']);\n $puesto=mainModel::limpiar_cadena($_POST['usu_puesto_reg']);\n $unidad=mainModel::limpiar_cadena($_POST['usu_unidad_reg']);\n $rol = mainModel::limpiar_cadena($_POST['usu_rol_reg']);\n $celular = mainModel::limpiar_cadena($_POST['usu_celular_reg']);\n $usuario = strtolower(mainModel::limpiar_cadena($_POST['usu_usuario_reg']));\n $email=$usuario . '@didadpol.gob.hn' ;\n\n\n /*comprobar campos vacios*/\n if ($nombres == \"\" || $apellidos == \"\" || $usuario == \"\" || $email == \"\" || $rol == \"\" || $identidad == \"\" || $puesto == \"\" || $unidad == \"\") {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"NO HAS COMPLETADO TODOS LOS CAMPOS QUE SON OBLIGATORIOS\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n\n if (mainModel::verificar_datos(\"[A-ZÁÉÍÓÚáéíóúñÑ ]{3,35}\", $nombres)) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"EL CAMPO NOMBRES SOLO DEBE INCLUIR LETRAS Y DEBE TENER UN MÍNIMO DE 3 LETRAS\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n if (mainModel::verificar_datos(\"[A-ZÁÉÍÓÚáéíóúñÑ ]{3,35}\", $apellidos)) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"EL CAMPO APELLIDOS SOLO DEBE INCLUIR LETRAS Y DEBE TENER UN MÍNIMO DE 3 LETRAS\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n if ($celular != \"\") {\n if (mainModel::verificar_datos(\"[0-9]{8}\", $celular)) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"EL NÚMERO DE CELULAR NO COINCIDE CON EL FORMATO SOLICITADO\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n }\n if (mainModel::verificar_datos(\"[0-9]{13}\", $identidad)) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"EL NÚMERO DE IDENTIDAD NO COINCIDE CON EL FORMATO SOLICITADO\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n /*validar DNI*/\n $check_dni = mainModel::ejecutar_consulta_simple(\"SELECT identidad FROM tbl_usuarios WHERE identidad='$identidad'\");\n if ($check_dni->rowCount() > 0) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"EL NÚMERO DE IDENTIDAD YA ESTÁ REGISTRADO\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n\n if (mainModel::verificar_datos(\"[a-z]{3,15}\", $usuario)) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"EL CAMPO NOMBRE DE USUARIO SOLO DEBE INCLUIR LETRAS Y DEBE TENER UN MÍNIMO DE 5 Y UN MAXIMO DE 15 LETRAS\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n\n /*validar usuario*/\n $check_user = mainModel::ejecutar_consulta_simple(\"SELECT nom_usuario FROM tbl_usuarios WHERE nom_usuario='$usuario'\");\n if ($check_user->rowCount() > 0) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"EL USUARIO YA ESTÁ REGISTRADO\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n /*validar email*/\n\n \n $caracteres = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n $pass = \"\";\n for ($i = 0; $i < 8; $i++) {\n $pass .= substr($caracteres, rand(0, 64), 1);\n }\n $message = \"<html><body><p>Hola, \" . $nombres . \" \" . $apellidos;\n $message .= \" Estas son tus credenciales para ingresar al sistema de DIDADPOL\";\n $message .= \"</p><p>Usuario: \" . $usuario;\n $message .= \"</p><p>Correo: \" . $email;\n $message .= \"</p><p>Contraseña: \" . $pass;\n $message .= \"</p><p>Inicie sesión aquí para cambiar la contraseña por defecto \" . SERVERURL . \"login\";\n $message .= \"<p></body></html>\";\n\n $res = mainModel::enviar_correo($message, $nombres, $apellidos, $email);\n if (!$res) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"NO SE ENVIÓ CORREO ELECTRÓNICO\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n\n $passcifrado = mainModel::encryption($pass);\n\n $datos_usuario_reg = [\n \"rol\" => $rol,\n \"puesto\"=>$puesto,\n \"unidad\"=>$unidad,\n \"usuario\" => $usuario,\n \"nombres\" => $nombres,\n \"apellidos\" => $apellidos,\n \"dni\"=>$identidad,\n \"clave\" => $passcifrado,\n \"estado\" => \"NUEVO\",\n \"email\" => $email,\n \"celular\" => $celular\n ];\n $agregar_usuario = usuarioModelo::agregar_usuario_modelo($datos_usuario_reg);\n if ($agregar_usuario->rowCount() == 1) {\n $alerta = [\n \"Alerta\" => \"limpiar\",\n \"Titulo\" => \"USUARIO REGISTRADO\",\n \"Texto\" => \"LOS DATOS DEL USUARIO SE HAN REGISTRADO CON ÉXITO\",\n \"Tipo\" => \"success\"\n ];\n } else {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"NO SE HA PODIDO REGISTRAR EL USUARIO\",\n \"Tipo\" => \"error\"\n ];\n }\n echo json_encode($alerta);\n }", "function modificarUsuario($usuario,$password,$idUsuario){\n \n $conex=Conexion::getInstance();\n \n $sql=\" UPDATE `usuarios` SET `usuario`='$usuario',`password`='$password' WHERE id=$idUsuario\";\n \n $conex->dbh->prepare($sql);\n $conex->dbh->exec($sql); \n \n\n}", "function editaUsuari($id, $nom, $email, $passXifrada){\n $conn=connexioBD();\n $sql=\"UPDATE usuaris SET nom='$nom', email='$email', password='$passXifrada' WHERE id='$id'\";\n if (!$resultado =$conn->query($sql)){\n die(\"Error al editar\".$conn->error);\n }\n $conn->close();\n}", "public function RegistrarUsuarios()\n{\n\tself::SetNames();\n\tif(empty($_POST[\"nombres\"]) or empty($_POST[\"usuario\"]) or empty($_POST[\"password\"]))\n\t{\n\t\techo \"1\";\n\t\texit;\n\t}\n\t$sql = \" select cedula from usuarios where cedula = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array($_POST[\"cedula\"]) );\n\t$num = $stmt->rowCount();\n\tif($num > 0)\n\t{\n\n\t\techo \"2\";\n\t\texit;\n\t}\n\telse\n\t{\n\t\t$sql = \" select email from usuarios where email = ? \";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->execute( array($_POST[\"email\"]) );\n\t\t$num = $stmt->rowCount();\n\t\tif($num > 0)\n\t\t{\n\n\t\t\techo \"3\";\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql = \" select usuario from usuarios where usuario = ? \";\n\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t$stmt->execute( array($_POST[\"usuario\"]) );\n\t\t\t$num = $stmt->rowCount();\n\t\t\tif($num == 0)\n\t\t\t{\n\t\t\t\t$query = \" insert into usuarios values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t$stmt = $this->dbh->prepare($query);\n\t\t\t\t$stmt->bindParam(1, $cedula);\n\t\t\t\t$stmt->bindParam(2, $nombres);\n\t\t\t\t$stmt->bindParam(3, $nrotelefono);\n\t\t\t\t$stmt->bindParam(4, $cargo);\n\t\t\t\t$stmt->bindParam(5, $email);\n\t\t\t\t$stmt->bindParam(6, $usuario);\n\t\t\t\t$stmt->bindParam(7, $password);\n\t\t\t\t$stmt->bindParam(8, $nivel);\n\t\t\t\t$stmt->bindParam(9, $status);\n\n\t\t\t\t$cedula = strip_tags($_POST[\"cedula\"]);\n\t\t\t\t$nombres = strip_tags($_POST[\"nombres\"]);\n\t\t\t\t$nrotelefono = strip_tags($_POST[\"nrotelefono\"]);\n\t\t\t\t$cargo = strip_tags($_POST[\"cargo\"]);\n\t\t\t\t$email = strip_tags($_POST[\"email\"]);\n\t\t\t\t$usuario = strip_tags($_POST[\"usuario\"]);\n\t\t\t\t$password = sha1(md5($_POST[\"password\"]));\n\t\t\t\t$nivel = strip_tags($_POST[\"nivel\"]);\n\t\t\t\t$status = strip_tags(strtoupper($_POST[\"status\"]));\n\t\t\t\t$stmt->execute();\n\n################## SUBIR FOTO DE USUARIOS ######################################\n//datos del arhivo \n\t\t\t\tif (isset($_FILES['imagen']['name'])) { $nombre_archivo = $_FILES['imagen']['name']; } else { $nombre_archivo =''; }\n\t\t\t\tif (isset($_FILES['imagen']['type'])) { $tipo_archivo = $_FILES['imagen']['type']; } else { $tipo_archivo =''; }\n\t\t\t\tif (isset($_FILES['imagen']['size'])) { $tamano_archivo = $_FILES['imagen']['size']; } else { $tamano_archivo =''; } \n//compruebo si las características del archivo son las que deseo \n\t\t\t\tif ((strpos($tipo_archivo,'image/jpeg')!==false)&&$tamano_archivo<50000) \n\t\t\t\t{ \n\t\t\t\t\tif (move_uploaded_file($_FILES['imagen']['tmp_name'], \"fotos/\".$nombre_archivo) && rename(\"fotos/\".$nombre_archivo,\"fotos/\".$_POST[\"cedula\"].\".jpg\"))\n\t\t\t\t\t{ \n## se puede dar un aviso\n\t\t\t\t\t} \n## se puede dar otro aviso \n\t\t\t\t}\n################## FINALIZA SUBIR FOTO DE USUARIOS ######################################\n\n\t\t\t\techo \"<div class='alert alert-success'>\";\n\t\t\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\t\t\techo \"<span class='fa fa-check-square-o'></span> EL USUARIO FUE REGISTRADO EXITOSAMENTE\";\n\t\t\t\techo \"</div>\";\t\t\n\t\t\t\texit;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo \"4\";\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\t}\n}", "public function registrar_usuario($nombre, $apellido, $cedula, $telefono, $email, $direccion, $cargo, $usuario, $password1, $password2, $estado, $permisos)\n {\n $conectar = parent::conexion();\n parent::set_names();\n $sql = \"insert into usuarios \n values(null,?,?,?,?,?,?,?,?,?,?,now(),?);\";\n $sql = $conectar->prepare($sql);\n $sql->bindValue(1, $_POST[\"nombre\"]);\n $sql->bindValue(2, $_POST[\"apellido\"]);\n $sql->bindValue(3, $_POST[\"cedula\"]);\n $sql->bindValue(4, $_POST[\"telefono\"]);\n $sql->bindValue(5, $_POST[\"email\"]);\n $sql->bindValue(6, $_POST[\"direccion\"]);\n $sql->bindValue(7, $_POST[\"cargo\"]);\n $sql->bindValue(8, $_POST[\"usuario\"]);\n $sql->bindValue(9, $_POST[\"password1\"]);\n $sql->bindValue(10, $_POST[\"password2\"]);\n $sql->bindValue(11, $_POST[\"estado\"]);\n $sql->execute();\n //obtenemos el valor del id del usuario\n $id_usuario = $conectar->lastInsertId();\n //insertamos los permisos\n //almacena todos los checkbox que han sido marcados\n //este es un array tiene un name=permiso[]\n $permisos = $_POST[\"permiso\"];\n // print_r($_POST);\n $num_elementos = 0;\n while ($num_elementos < count($permisos)) {\n $sql_detalle = \"insert into usuario_permiso\n values(null,?,?)\";\n $sql_detalle = $conectar->prepare($sql_detalle);\n $sql_detalle->bindValue(1, $id_usuario);\n $sql_detalle->bindValue(2, $permisos[$num_elementos]);\n $sql_detalle->execute();\n //recorremos los permisos con este contador\n $num_elementos = $num_elementos + 1;\n }\n }", "function usuario($listaNombres, $listaPasswords, $nombre, $passwords) {\n $encontrado = -3;\n $claveNombre = -1;\n $clavePassword = -2;\n foreach ($listaNombres as $clave => $valor) {\n if ($valor === $nombre) {\n //el nombre es igual al que se pasa del formulario\n $claveNombre = $clave;\n foreach ($listaPasswords as $claveC => $valorC) {\n //la contraseña es igual a la del formulario\n if ($valorC === $passwords) {\n $clavePassword = $claveC;\n if ($clavePassword === $claveNombre) {\n //comprobamos si es el nombre y la contraseña pertenecen a la misma persona\n $encontrado = $clavePassword;\n }\n }\n }\n }\n }\n return $encontrado;\n}", "public function actualizarUsuario(Request $request){\n\n if(DB::table('usuarios')->where('email', $request->input('correo'))->exists()){\n return redirect('/Session/PanelControl/Error')->with('status_error', \"Error, el correo ingresado ya se encuentra registrado.\");\n }\n\n DB::table('usuarios')->where('id', $request->input('id'))->update(['nombre_completo' => $request->input('nombreCompleto'), 'email' => $request->input('correo')]);\n\n return redirect('/Session/PanelControl')->with('status_exito', \"Éxito, se modifico el usuario.\");\n }", "public function actualizarInfoUsuario(){\n \n if(isset($_PUT[\"editFname\"])){\n \n $datos = array(\n \"id\" => $_PUT[\"\"],\n \"Fname\" => $_PUT[\"\"],\n \"Lname\" => $_PUT[\"\"],\n \"Pass\" => $_PUT[\"\"],\n \"Area\" => $_PUT[\"\"],\n );\n\n $actualizar = UsersModel::actualizarInfoUsuario($datos, \"usuario\");\n\n if($actualizar){\n header(\"location: \".URL_PAGE.\"viewUser/\".$_PUT[\"\"]);\n }; \n \n\n }\n\n }", "public function actualizac($nombre,$ape_paterno,$ape_materno,$telefono,$correo,$tipoActividad,$formaJuridica,$cantidadTrabajadores,$contabilidadAtrasada,$nacimiento,$dirfiscal,$estado,$ciudad,$municipio,$codigoPromo,$id_usuario,$curp)\r\n\t{\r\n\t\t$sql = \"UPDATE tbl_usuarios SET nombre='$nombre',ape_paterno='$ape_paterno',ape_materno='$ape_materno',telefono='$telefono',correo='$correo',tipoActividad='$tipoActividad',formaJuridica='$formaJuridica',cantidadTrabajadores='$cantidadTrabajadores',contabilidadAtrasada='$contabilidadAtrasada',valorPre='4',nacimiento='$nacimiento',dirfiscal='$dirfiscal',estado='$estado',ciudad='$ciudad',municipio='$municipio',codigoPromo='$codigoPromo',curp='$curp' WHERE id_usuario='$id_usuario'\";\r\n\t\treturn ejecutarConsulta($sql);\r\n\t}", "public function actualizarCuenta()\n\t{\n\t\t$usuario = new UsuarioModel();\n\t\t$getRule = $users->getRule('updateAccount');\n\t\t$users->setValidationRules($getRule);\n\t\t$user = [\n\t\t\t'id' \t=> $this->session->get('userData.id'),\n\t\t\t'name' \t=> $this->request->getPost('name')\n\t\t];\n\n\t\tif (! $users->save($user)) {\n\t\t\treturn redirect()->back()->withInput()->with('errors', $users->errors());\n }\n }", "static public function ctrIngresoUsuario(){\n\t\t\n\t\tif (isset($_POST['user']) && isset($_POST['pass'])) {\n\t\t\tif (preg_match('/^[a-zA-Z-0-9 ]+$/', $_POST['user'])) {\n\t\t\t\tswitch ($_POST['rol']) {\n\t\t\t\t\tcase 'Encargado':\n\t\t\t\t\t\t$answer = adminph\\Attendant::where('username',$_POST['user'])->first();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'Propietario':\n\t\t\t\t\t\t$answer = adminph\\Propietary::where('username',$_POST['user'])->first();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'Arrendatario':\n\t\t\t\t\t\t$answer = adminph\\Lessee::where('username',$_POST['user'])->first();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$answer = adminph\\User::where('username',$_POST['user'])->first();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t$password = $_POST[\"pass\"];\n\t\t\t\tif (is_object($answer)) {\n\t\t\t\t\tif (password_verify($password,$answer->password) ) {\n\t\t\t\t\t\tif ($answer->state == 1) {\n\t\t\t\t\t\t\tif ($_POST['rol'] == 'Otro') {\n\t\t\t\t\t\t\t\tsession(['rank' => $answer->type]);\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tsession(['rank' => $_POST['rol']]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsession(['user' => $answer->username]);\n\t\t\t\t\t\t\tsession(['name' => $answer->name]);\n\t\t\t\t\t\t\tsession(['id' => $answer->id]);\n\t\t\t\t\t\t\tsession(['photo' => $answer->photo]);\n\t\t\t\t\t\t\t/*=============================================\n\t\t\t\t\t\t\t= REGISTRAR LOGIN =\n\t\t\t\t\t\t\t=============================================*/\n\t\t\t\t\t\t\tdate_default_timezone_set('America/Bogota');\n\t\t\t\t\t\t\tsession(['log' => date(\"Y-m-d h:i:s\")]);\n\t\t\t\t\t\t\t$answer->last_log = session('log');\n\t\t\t\t\t\t\tif ($answer->save()) {\n\t\t\t\t\t\t\t\techo ' <script>\n\t\t\t\t\t\t\twindow.location = \"inicio\"; </script> ';\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\techo '<br><div class=\"alert alert-warning\" style=\"text-align: center;\" >Este usuario se encuentra desactivado, por favor contacte al administrador.</div>';\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\techo '<head><style type=\"text/css\" media=\"screen\">body{background:#4a6886;color:#fff;}</style></head><body><div class=\"alert alert-warning\" style=\"text-align: center; font-size: 30px;margin-top:15%\" >Las credenciales ingresadas no son correctas.</div><br><br><div style=\"text-align: center; margin-left: 35%;margin-top:5%; width:30%;background:#E75300; padding: 10px;\"><a href=\"/\"> <span style=\" font-size: 18px; color: #fff\"><b>Volver al inicio</b></span> </a></div></body>';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function registrarUsuario(){\n\n\t require(\"Conexion.php\");\t\n\t \n if(isset($_POST['insertar'])){\n\t\n\t $nombre=$_POST[\"nombre\"];\n $apellido=$_POST[\"apellido\"];\n\t $correo=$_POST[\"correo\"];\n\t $direccion=$_POST[\"direccion\"];\n\t $username=$_POST[\"nombre\"];\n\t $password=$_POST[\"password\"];\n\n\t $db=new Conexion();\n\t\n\t\t /* evitar duplicaciones*/\t\t\n $sql = \"select count(*) from datos_usuario where nombre ='$nombre'\";\n\t\t\n if ($resultado = $db->connect()-> query($sql)) {\n\n /* Comprobar el número de filas que coinciden con la sentencia SELECT */\n if ($resultado->fetchColumn() > 0) {\n\n /* Ejecutar la sentencia SELECT para mostrar el nombre duplicado*/\n $sql = \"select nombre from datos_usuario where nombre = '$nombre'\";\n foreach ($db->connect()->query($sql) as $fila) {\n \n\t\t $duplicado=$nombre;\n }\t\n\n\t echo '<script language=\"javascript\">alert(\"Usuario duplicado: '.$duplicado.' ya esta en uso.\");</script>';\n\n echo \"<script>\n setTimeout(function() {\n location.href = '../vista/registro_user.php';\n }, 0001);\n </script>\";\t\t\t \n }\n \n /* No coincide ningua fila inserta */\n else {\t\t\n\t\t\t/*no hay duplicaciones insertamos*/\n\t\n $query=$db->connect()->prepare(\"insert into datos_usuario (nombre, apellido, correo, direccion)\n\t values (:nombre, :apellido, :correo,:direccion)\");\t\t\t \n $query->execute(array(\":nombre\"=>$nombre, \":apellido\"=>$apellido,\":correo\"=>$correo,\"direccion\"=>$direccion));\n\t\n\t/*----------------segunda tabla-----------------------------*/\n\t $db=new Conexion();\n\t \n\t $sql2=\"insert into usuarios(username, password, rol_id) values (:username, :password, :rol_id)\";\n\t $query=$db->connect()->prepare($sql2);\n\t\t\t \n $query->execute(array(\":username\"=>$nombre, \":password\"=>$password, \":rol_id\"=>2));\n\t\n\t\t echo'<script type=\"text/javascript\">\n alert(\"Usuario registrado\");\n </script>';\n\t\n\t \n\t echo \"<script>\n setTimeout(function() {\n location.href = '../vista/login.php';\n }, 0001);\n </script>\";\t\n\t\t } \t\n }\n }\n }", "public function actualizarEstadoAplicante($uid_aplicante, $nid_puesto, $tid_estado){\n\t \t$request_url = base_url().'rrhh/api/users/user/'. $uid_aplicante;\t\n\n \t//validar los argumentos url\n \tif(!is_numeric($nid_puesto) || !is_numeric($uid_aplicante) || !is_numeric($tid_estado)){\n \t\t$data['success'] = false;\n\t\t\t$data['error'] = 'Alguno de los argumentos no es numérico';\n\t\t\t$data['code'] = '406';\n \t}else{\n\t \t\t$auth_data = $this->autenticacion();\n\t\t \t\n\t\t \t//validar sesion del usuario\n\t\t \tif($auth_data['valido']){\n\t\t\t\t$csrf_token = $auth_data['csrf_token'];\n\t\t\t\t$session_cookie = $auth_data['session_cookie'];\n\n\t\t\t\t//validar existencia del puesto\n\t\t\t\t$node = $this->Node->load($nid_puesto);\n\t\t\t\tif((int)count($node) > 0){\n\n\t\t\t\t\t//validar el usuario si existe\n\t\t\t\t\t$user = $this->Users->load($uid_aplicante);\n\t\t\t\t\tif((int)count($user) > 0){\n\n\t\t\t\t\t\t$puesto = $this->Node->load($nid_puesto);\n\t\t\t\t\t\t$usuario_admin = $this->Users->load($puesto[0]->uid);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//validar autoria\n\t\t\t\t\t\t//validar usuario administrador\n\t\t\t\t\t\tif($_POST['mail'] == $usuario_admin[0]->mail){\n\t\t\t\t\t\t\t//Obtener el aplicante\n\t\t\t\t\t\t\t$aplicante_url = base_url('/rrhh/api/users/detalle-aplicante-blip.xml?user_id='.$uid_aplicante);\n\t\t\t\t\t\t\t$obtener_aplicante = consumirServicio($aplicante_url, $session_cookie, $csrf_token);\n\n\t\t\t\t\t\t\t$validar_aplicante = false;\n\t\t\t\t\t\t\tforeach ($obtener_aplicante->results as $key => $value) {\n\t\t\t\t\t\t\t\tforeach ($value as $key2 => $value2) {\n\t\t\t\t\t\t\t\t\t$pais_trabajar = $value2->field_pais_trabajar;\n\t\t\t\t\t\t\t\t\tforeach ($pais_trabajar as $key3 => $value3) {\n\t\t\t\t\t\t\t\t\t\tforeach ($value3->item as $key4 => $value4) {\n\t\t\t\t\t\t\t\t\t\t\t//validar si el aplicante desea laborar en Costa Rica\n\t\t\t\t\t\t\t\t\t\t\tif($value4->target_id == '10'){\n\t\t\t\t\t\t\t\t\t\t\t\t$validar_aplicante = true;\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//validar el aplicante\n\t\t\t\t\t\t\tif($validar_aplicante){\t\n\t\t\t\t\t\t\t\t//validar si el estado ingresado es el que corresponde\n\t\t\t\t\t\t\t\t$estados_url = base_url('/rrhh/api/filtros/filtros-taxonomias-estados-bitacora.xml');\n\t\t\t\t\t\t\t\t$estados = consumirServicio($estados_url, $session_cookie, $csrf_token);\n\t\t\t\t\t\t\t\t$estado_valido = false;\n\t\t\t\t\t\t\t\tforeach ($estados->results as $key => $value) {\n\t\t\t\t\t\t\t\t\tforeach ($value as $key2 => $value2) {\n\t\t\t\t\t\t\t\t\t\tif($tid_estado == (int)$value2->tid){\n\t\t\t\t\t\t\t\t\t\t\t$estado_valido = true;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif($estado_valido){\n\t\t\t\t\t\t\t\t\t//verificar si el puesto a modificar es el correcto al usuario\n\t\t\t\t\t\t\t\t\t//extrar todas las aplicaciones del usuario\n\t\t\t\t\t\t\t\t\t//Obtener todos los puestos aplicados por el aplicante\n\t\t\t\t\t\t\t\t\t$puestos_aplicados_url = base_url('/rrhh/api/users/listado-puestos-aplicados-por-aplicante.xml?uid_aplicante='.$uid_aplicante);\n\t\t\t\t\t\t\t\t\t$puestos_aplicados_por_aplicante = consumirServicio($puestos_aplicados_url, $session_cookie, $csrf_token);\n\n\t\t\t\t\t\t\t\t\t$aplicacion_encontrada = false;\n\t\t\t\t\t\t\t\t\tforeach ($puestos_aplicados_por_aplicante->results as $key => $value) {\n\t\t\t\t\t\t\t\t\t\tforeach ($value as $key2 => $value2) {\n\t\t\t\t\t\t\t\t\t\t\tif($nid_puesto == (int)$value2->Nid){\n\t\t\t\t\t\t\t\t\t\t\t\t$aplicacion_encontrada = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Obtener todos los puestos aplicados por el aplicante\n\t\t\t\t\t\t\t\t\t$puestos_aplicados_url = base_url('/rrhh/api/puestos/puestos_aplicados_por_aplicante.xml?uid='.$uid_aplicante);\n\t\t\t\t\t\t\t\t\t$puestos_aplicados = consumirServicio($puestos_aplicados_url, $session_cookie, $csrf_token);\n\n\t\t\t\t\t\t\t\t\t//validar si el puesto esta asignado al usuario, de lo contrario se realizara una auto asignacion\n\t\t\t\t\t\t\t\t\tif($aplicacion_encontrada){\n\t\t\t\t\t\t\t\t\t\t//validar preselecciones\n\t\t\t\t\t\t\t\t\t\t$listado_puestos = array();\n\t\t\t\t\t\t\t\t\t\tforeach ($puestos_aplicados->items as $value) {\n\t\t\t\t\t\t\t\t\t\t\tforeach ($value->item as $key2 => $value2) {\n\t\t\t\t\t\t\t\t\t\t\t\t$puesto = $value2;\n\t\t\t\t\t\t\t\t\t\t\t\tarray_push($listado_puestos, array('estado' => (string)$puesto->tid_estado));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t$count_preselecciones = 0;\n\t\t\t\t\t\t\t\t\t\tforeach ($listado_puestos as $key => $value) {\n\t\t\t\t\t\t\t\t\t\t\tif($value['estado'] == '29')\n\t\t\t\t\t\t\t\t\t\t\t\t$count_preselecciones++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif(($count_preselecciones < 1) || (($count_preselecciones == 1) && ($tid_estado != 29))) {\n\n\t\t\t\t\t\t\t\t\t\t\t$user_data = array(\"field_estado\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"und\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$tid_estado => $tid_estado\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"field_ultimo_puesto_aplicado\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"und\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$nid_puesto => $nid_puesto\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t );\n\n\t\t\t\t\t\t\t\t\t\t\t//verificar el estado del puesto\n\t\t\t\t\t\t\t\t\t \t\t$estado_puesto_url = base_url().'rrhh/api/puestos/obtener_estado_puesto/retrieve?nid_puesto=' . $nid_puesto . '.xml';\n\t\t\t\t\t\t\t\t\t\t\t$resultado_estado_puesto = consumirServicioSinToken($estado_puesto_url, $session_cookie);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$cambiarEstado = false;\n\t\t\t\t\t\t\t\t\t\t\tif($resultado_estado_puesto == '0'){\n\t\t\t\t\t\t\t\t\t\t\t\t$cambiarEstado = true;\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t$actualizar_puesto_url = base_url().'rrhh/api/puestos/actualizar_puesto_temporalmente/retrieve?nid_puesto=' . $nid_puesto . '.xml';\n\t\t\t\t\t\t\t\t\t\t\t\t$resultado_puesto_actualizado = consumirServicioSinToken($actualizar_puesto_url, $session_cookie);\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t$result = ServicioActualizar($request_url, $user_data, $session_cookie, $csrf_token);\n\n\t\t\t\t\t\t\t\t\t\t\tif($cambiarEstado){\n\t\t\t\t\t\t\t\t\t\t\t\t$actualizar_puesto_url = base_url().'rrhh/api/puestos/actualizar_puesto_temporalmente/retrieve?nid_puesto=' . $nid_puesto . '.xml';\n\t\t\t\t\t\t\t\t\t\t\t\t$resultado_puesto_actualizado = consumirServicioSinToken($actualizar_puesto_url, $session_cookie);\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\tif($result){\n\t\t\t\t\t\t\t\t\t\t\t\t$data['success'] = true;\n\t\t\t\t\t\t\t\t\t\t\t\t$data['code'] = $result['httpcode'];\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tif($data['code'] != 200){\n\t\t\t\t\t\t\t\t\t\t\t\t\t$data['success'] = false;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$data['mensaje'] = $result['mensaje'];\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t//no se encontro ninguna aplicacion con el id ingresado desde el url\n\t\t\t\t\t\t\t\t\t\t\t$data['success'] = false;\n\t\t\t\t\t\t\t\t\t\t\t$data['error'] = 'Ha excedido la cantidad de preselecciones por aplicante';\n\t\t\t\t\t\t\t\t\t\t\t$data['code'] = '406';\n\t\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t//validar cantidad de aplicaciones y preselecciones\n\t\t\t\t\t\t\t\t\t\tif((int)count($puestos_aplicados_por_aplicante->results->item) < 3){\n\n\t\t\t\t\t\t\t\t\t\t\t//validar preselecciones\n\t\t\t\t\t\t\t\t\t\t\t$listado_puestos = array();\n\t\t\t\t\t\t\t\t\t\t\tforeach ($puestos_aplicados->items as $value) {\n\t\t\t\t\t\t\t\t\t\t\t\tforeach ($value->item as $key2 => $value2) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t$puesto = $value2;\n\t\t\t\t\t\t\t\t\t\t\t\t\tarray_push($listado_puestos, array('estado' => (string)$puesto->tid_estado));\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t$count_preselecciones = 0;\n\t\t\t\t\t\t\t\t\t\t\tforeach ($listado_puestos as $key => $value) {\n\t\t\t\t\t\t\t\t\t\t\t\tif($value['estado'] == '29')\n\t\t\t\t\t\t\t\t\t\t\t\t\t$count_preselecciones++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t//exit(var_dump($count_preselecciones));\n\n\t\t\t\t\t\t\t\t\t\t\tif(($count_preselecciones < 1) || (($count_preselecciones == 1) && ($tid_estado != 29))) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t//obtener el estado general, si esta en lista negra se sobreescribe el estado a aplicar\n\t\t\t\t\t\t\t\t\t\t\t\t$estado_general_url = base_url('/rrhh/api/users/obtener_estado_general/retrieve.xml?uid_aplicante='. $uid_aplicante);\n\t\t\t\t\t\t\t\t\t\t\t\t$estado_general = consumirServicio($estado_general_url, $session_cookie, $csrf_token);\n\t\t\t\t\t\t\t\t\t\t\t\t$tid_estado_general = 0;\n\n\t\t\t\t\t\t\t\t\t\t\t\tif(isset($estado_general->item)){\n\t \t\t\t\t\t\t\t\t\t\t\t\tforeach($estado_general->item as $key => $value){\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t$tid_estado_general = $value->tid_estado;\n\t \t\t\t\t\t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t\t\t\t\t}\n\n\t \t\t\t\t\t\t\t\t\t\t\tif($tid_estado_general == 28){\n\t \t\t\t\t\t\t\t\t\t\t\t\t$tid_estado = $tid_estado_general;\n\t \t\t\t\t\t\t\t\t\t\t\t}\n\n\t \t\t\t\t\t\t\t\t\t\t\t//$data['message'] = $tid_estado;\n\n\t \t\t\t\t\t\t\t\t\t\t\t//Se realizará una asignacion automática\n\t\t\t\t\t\t\t\t\t\t\t\t$user_data = array(\"field_estado\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"und\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(int)$tid_estado => (int)$tid_estado\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"field_ultimo_puesto_aplicado\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"und\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$nid_puesto => (int)$nid_puesto\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"field_puesto\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"und\" => array()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t );\n\n\t\t\t\t\t\t\t\t\t\t\t\t$listado_puestos = array();\n\t\t\t\t\t\t\t\t\t\t\t\tforeach ($puestos_aplicados->items as $value) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tforeach ($value->item as $key2 => $value2) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$puesto = $value2;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$listado_puestos[(string)$puesto->nid_puesto] = (int)$puesto->nid_puesto;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t//asignar el arreglo de los puestos aplicados junto con el que hay que agregar\n\t\t\t\t\t\t\t\t\t\t\t\t$user_data[\"field_puesto\"][\"und\"] = $listado_puestos;\n\t\t\t\t\t\t\t\t\t\t\t\t$user_data[\"field_puesto\"][\"und\"][$nid_puesto] = $nid_puesto;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t//exit(var_dump($user_data));\n\n\t\t\t\t\t\t\t\t\t\t\t\t//verificar el estado del puesto\n\t\t\t\t\t\t\t\t\t\t \t\t$estado_puesto_url = base_url().'rrhh/api/puestos/obtener_estado_puesto/retrieve?nid_puesto=' . $nid_puesto . '.xml';\n\t\t\t\t\t\t\t\t\t\t\t\t$resultado_estado_puesto = consumirServicioSinToken($estado_puesto_url, $session_cookie);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t$cambiarEstado = false;\n\t\t\t\t\t\t\t\t\t\t\t\tif($resultado_estado_puesto == '0'){\n\t\t\t\t\t\t\t\t\t\t\t\t\t$cambiarEstado = true;\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t$actualizar_puesto_url = base_url().'rrhh/api/puestos/actualizar_puesto_temporalmente/retrieve?nid_puesto=' . $nid_puesto . '.xml';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$resultado_puesto_actualizado = consumirServicioSinToken($actualizar_puesto_url, $session_cookie);\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t$result = ServicioActualizar($request_url, $user_data, $session_cookie, $csrf_token);\n\n\t\t\t\t\t\t\t\t\t\t\t\tif($cambiarEstado){\n\t\t\t\t\t\t\t\t\t\t\t\t\t$actualizar_puesto_url = base_url().'rrhh/api/puestos/actualizar_puesto_temporalmente/retrieve?nid_puesto=' . $nid_puesto . '.xml';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$resultado_puesto_actualizado = consumirServicioSinToken($actualizar_puesto_url, $session_cookie);\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t// cURL - utiliza el helper SevicioActualizar\n\t\t\t\t\t\t\t\t\t\t\t\t//$result = ServicioActualizar($request_url, $user_data, $session_cookie, $csrf_token);\n\n\t\t\t\t\t\t\t\t\t\t\t\tif($result){\n\t\t\t\t\t\t\t\t\t\t\t\t\t$data['success'] = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$data['code'] = $result['httpcode'];\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t$data['mensaje'] = 'Se ha aplicado satisfactoramiente al puesto con el id: ' . $nid_puesto;\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tif($data['code'] != 200){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$data['success'] = false;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$data['mensaje'] = $result['mensaje'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t//no se encontro ninguna aplicacion con el id ingresado desde el url\n\t\t\t\t\t\t\t\t\t\t\t\t$data['success'] = false;\n\t\t\t\t\t\t\t\t\t\t\t\t$data['error'] = 'Ha excedido la cantidad de preselecciones por aplicante';\n\t\t\t\t\t\t\t\t\t\t\t\t$data['code'] = '406';\n\t\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t//no se encontro ninguna aplicacion con el id ingresado desde el url\n\t\t\t\t\t\t\t\t\t\t\t$data['success'] = false;\n\t\t\t\t\t\t\t\t\t\t\t$data['error'] = 'No es posible realizar la aplicación, se ha excedido el máximo permitido de 3 puestos por usuario';\n\t\t\t\t\t\t\t\t\t\t\t$data['code'] = '406';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t//no se encontro ninguna aplicacion con el id ingresado desde el url\n\t\t\t\t\t\t\t\t\t$data['success'] = false;\n\t\t\t\t\t\t\t\t\t$data['error'] = 'Has ingresado un codigo de estado incorrecto, favor verifique';\n\t\t\t\t\t\t\t\t\t$data['code'] = '406';\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t//no se pudo validar que el aplicante sea nacional\n\t\t\t\t\t\t\t\t$data['success'] = false;\n\t\t\t\t\t\t\t\t$data['error'] = 'El usuario aplicante con el id #'.$uid_aplicante. ', no es es permitido para hacer la asignación';\n\t\t\t\t\t\t\t\t$data['code'] = '406';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$data['success'] = false;\n\t\t\t\t\t\t\t$data['error'] = 'Error: El puesto con el identificador #'.$nid_puesto.', no pertenece al usuario: '.$_POST['mail'];\n\t\t\t\t\t\t\t$data['code'] = '406';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//no se pudo validar que el aplicante sea nacional\n\t\t\t\t\t\t$data['success'] = false;\n\t\t\t\t\t\t$data['error'] = 'No existe el aplicante con el codigo: '.$uid_aplicante.', por favor verifique';\n\t\t\t\t\t\t$data['code'] = '406';\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\t//no se pudo validar que el aplicante sea nacional\n\t\t\t\t\t$data['success'] = false;\n\t\t\t\t\t$data['error'] = 'No existe el puesto con el codigo: '.$nid_puesto.', por favor verifique';\n\t\t\t\t\t$data['code'] = '406';\n\t\t\t\t}\t\t\t\n\n\t\t\t} else {\n\t\t\t\t//mensaje de error al fallar la autenticacion\n\t\t\t\t$data['success'] = false;\n\t\t\t\t$data['error'] = $auth_data['mensaje'];\n\t\t\t\t$data['code'] = '406';\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t\t$data['response'] = $data;\n\t\t\t$this->load->view('user/user-response', $data);\n \t}", "public function updatedUsuario()\n {\n // Notificamos al otro componente el cambio\n $this->emit('cambioUsuario', $this->usuario);\n }", "public function actualizarusuario($codigo,$nombre,$precio,$cantidad){\r\n//Preparamos la conexión a la bdd:\r\n\t$pdo=Database::connect();\r\n\t$sql=\"update usuario set nombre=?,precio=?,cantidad=? where codigo=?\";\r\n\t$consulta=$pdo->prepare($sql);\r\n//Ejecutamos la sentencia incluyendo a los parametros:\r\n\t$consulta->execute(array($nombre,$precio,$cantidad,$codigo));\r\n\tDatabase::disconnect();\r\n}", "public static function updateProfiloPersonale()\n {\n define(\"nome_completo_regexpr\", \"/^[a-zA-Z \\xE0\\xE8\\xE9\\xEC\\xF2\\xF9]{3,64}/\");\n define(\"email_personale_regexpr\", \"/^\\w+@[a-zA-Z_]+?\\.[a-zA-Z]{2,3}$/\");\n define(\"username_regexpr\", \"/^[A-Za-z0-9\\xE0\\xE8\\xE9\\xEC\\xF2\\xF9 ]{3,64}$/\");\n define(\"password_regexpr\", \"/^[a-zA-Z0-9\\xE0\\xE8\\xE9\\xEC\\xF2\\xF9]+$/\");\n $name = trim($_REQUEST['nome_completo_azienda']);\n $task = trim($_REQUEST['tipo_incarichi_id']);\n $mail = trim($_REQUEST['email_personale_azienda']);\n $username = trim($_REQUEST['username_azienda']);\n $pass = trim($_REQUEST['password_azienda']);\n $id = $_SESSION['current_user']->getId();\n $error_rec = 0; //verifica la presenza di un generico errore\n \n $utente = new Azienda();\n // verifica la correttezza dei valori inseriti nella compliazione del form\n if (!empty($name)) {\n unset($_SESSION['nome_completo_azienda']);\n if (1 === preg_match(nome_completo_regexpr, $name)) {\n $utente->setNomeCompleto($name);\n } else {\n $_SESSION['nome_completo_azienda'] = \"<div class='messaggio-errore'>Il campo nome completo contiene caratteri non validi.<br>Verifica eventuali errori di battitura.</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['nome_completo_azienda'] = \"<div class='messaggio-errore'>Il campo nome completo &egrave; vuoto</div>\";\n $error_rec++;\n }\n if (!empty($task)) {\n unset($_SESSION['tipo_incarichi_id']);\n $utente->setTipo_incarichi_id($task);\n }\n if ($task == \"-1\") {\n $_SESSION['tipo_incarichi_id'] = \"<div class='messaggio-errore'>Il campo tipo di incarico non &egrave; stato schelto</div>\";\n $error_rec++;\n }\n if (!empty($mail)) {\n unset($_SESSION['email_personale_azienda']);\n if (1 === preg_match(email_personale_regexpr, $mail)) {\n $valido = UtenteFactory::cercaEmailUpdate($mail, 1, $id);\n if ($valido == 'SI') {\n $utente->setEmailPersonale($mail);\n } else {\n $_SESSION['email_personale_azienda'] = \"<div class='messaggio-errore'>Questa email &egrave; gi&agrave; stato utilizzata<br></div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['email_personale_azienda'] = \"<div class='messaggio-errore'>Questo indirizzo email non &egrave; valido.<br>Verifica eventuali errori di battitura.<br>Esempio email valida: [email protected]</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['email_personale_azienda'] = \"<div class='messaggio-errore'>Il campo email &egrave; vuoto</div>\";\n $error_rec++;\n }\n if (!empty($username)) {\n unset($_SESSION['username_azienda']);\n if (1 === preg_match(username_regexpr, $username)) {\n $valido = UtenteFactory::cercaUsernameUpdate($username, 1, $id);\n if ($valido == 'SI') {\n $utente->setUsername($username);\n } else {\n $_SESSION['username_azienda'] = \"<div class='messaggio-errore'>Questo Username &egrave; gi&agrave; stato utilizzato<br>scegline un altro</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['username_azienda'] = \"<div class='messaggio-errore'>Il campo username completo contiene caratteri non validi.<br>Verifica eventuali errori di battitura.</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['username_azienda'] = \"<div class='messaggio-errore'>Il campo username completo &egrave; vuoto</div>\";\n $error_rec++;\n }\n if (!empty($pass)) {\n unset($_SESSION['password_azienda']);\n if (1 === preg_match(password_regexpr, $pass)) {\n $utente->setPassword($pass);\n } else {\n $_SESSION['password_azienda'] = \"<div class='messaggio-errore'>Il campo password non &egrave; valido.<br>Verifica eventuali errori di battitura.</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['password_azienda'] = \"<div class='messaggio-errore'>Il campo password &egrave; vuoto</div>\";\n $error_rec++;\n }\n if ($error_rec == 0) {\n $update = UtenteFactory::updateProfiloPersonale($id, $utente);\n if ($update == 'INSUCCESSO') {\n $_SESSION['errore'] = 6;\n } elseif ($update == 'SUCCESSO') {\n $_SESSION['errore'] = 5;\n }\n }\n \n $vd = new ViewDescriptor();\n $vd->setTitolo(\"SardiniaInFood: Profilo\");\n $vd->setLogoFile(\"../view/in/logo.php\");\n $vd->setMenuFile(\"../view/in/menu_modifica_profilo.php\");\n $vd->setContentFile(\"../view/in/azienda/modifica_profilo_personale.php\");\n $vd->setErrorFile(\"../view/in/error_in.php\");\n $vd->setFooterFile(\"../view/in/footer_empty.php\");\n \n require_once '../view/Master.php';\n }", "public function update(Request $request, User $user)\n {\n $this->authorize('haveaccess','misdatos');\n\n\n $user->update($request->all());\n\n $nombre='Su ubicación actual es: '.$request->nombremp;\n\n if($request->sucursal==\"2\"){\n DB::table('role_user')->where('user_id', $user->id)\n ->update(['role_id' => $request->role_id]);\n\n return redirect()->route('user.edit',$user->id)\n ->with('status_success', $nombre );\n } else {\n\n $asignado = DB::table('empresa_users')->where('user_id', $user->id)\n ->where('empresa_id', $user->empresa)\n ->select('role_id')\n ->first();\n\n if(empty($asignado)){\n\n $rolactual = DB::table('empresa_users')->where('user_id', $user->id)\n ->where('empresa_id', $request->empresactual)\n ->select('role_id')\n ->first();\n\n DB::table('empresa_users')->insert([\n 'user_id' => $user->id,\n 'empresa_id' => $user->empresa,\n 'role_id' => $rolactual->role_id,\n 'name' => $user->name,\n 'sucursal_id' => $request->sucurid,\n 'sucursal' => $request->sucurnom,\n 'area_id' => $request->areaid,\n 'area' => $request->areanom\n\n ]);\n }\n\n\n\n return redirect()->route('sucursal')\n ->with('status_success',$nombre);\n }\n\n\n }", "function atuOrcreceitaval($codrec,$mes,$valor){\n $msg = \"0|Registro Atualizado !\";\n $clorcreceitaval = new cl_orcreceitaval;\t\t\n $clorcreceita = new cl_orcreceita;\t\t\n if ($mes == 0 || $mes =='0' || $mes === 0){\n // ajusta o saldo previsto\n\t$clorcreceita->o70_valor = $valor;\n\t$clorcreceita->o70_codrec= $codrec;\n\t$clorcreceita->o70_anousu= db_getsession(\"DB_anousu\");\n $rr= $clorcreceita->alterar(db_getsession(\"DB_anousu\"),$codrec);\n\tif ($clorcreceita->erro_status==='0'){\n\t $msg = \"1|\".$clorcreceita->erro_msg;\n\t}else {\n\t $msg = \"0|\".$clorcreceita->erro_msg; \n\t} \n return $msg;\n } \n if ($valor > 0){\n $clorcreceitaval->o71_coddoc = 100; \n }else{\n $clorcreceitaval->o71_coddoc = 101; \n }\n $clorcreceitaval->o71_anousu = db_getsession(\"DB_anousu\"); \n $clorcreceitaval->o71_mes = $mes; \n $clorcreceitaval->o71_codrec = $codrec;\n $clorcreceitaval->o71_valor = $valor; \n\n\n $rr = $clorcreceitaval->sql_record($clorcreceitaval->sql_query_file(db_getsession(\"DB_anousu\"),$codrec,$clorcreceitaval->o71_coddoc,$mes));\n if ($clorcreceitaval->numrows >0){\n $clorcreceitaval->alterar($clorcreceitaval->o71_anousu,$clorcreceitaval->o71_codrec,$clorcreceitaval->o71_coddoc,$clorcreceitaval->o71_mes);\n\n } else { \n $clorcreceitaval->incluir($clorcreceitaval->o71_anousu,$clorcreceitaval->o71_codrec,$clorcreceitaval->o71_coddoc,$clorcreceitaval->o71_mes);\n }\t \n \n $erro = $clorcreceitaval->erro_msg;\n if ($clorcreceitaval->erro_status===0){\n $msg= \"1|\".$erro;\n\treturn $msg;\n } else {\n $msg = \"0|\".$clorcreceitaval->erro_msg;\n return $msg;\n }\n}", "public function updatePrimaryUser() {\n if ($this->request->is('post')) {\n $name = $this->request->data ['User'] ['name'];\n $email = $this->request->data ['User'] ['email'];\n $pass = $this->request->data ['User'] ['pass'];\n if (md5($pass) === $this->Session->read('CompanyLoggedIn.Company.password')) {\n $passNew1 = $this->request->data ['User'] ['passNew1'];\n $passNew2 = $this->request->data ['User'] ['passNew2'];\n if ($passNew1 === $passNew2) {\n $params = array(\n 'Company' => array(\n 'id' => $this->Session->read('CompanyLoggedIn.Company.id'),\n 'responsible_name' => $name,\n 'email' => $email,\n 'password' => $passNew1\n )\n );\n $updateSenha = $this->AccentialApi->urlRequestToSaveData('companies', $params);\n $this->redirect(\"/login/logout\");\n } else {\n $this->Session->setFlash(__('Confirmação da senha diferente da nova senha.'));\n }\n } else {\n if (empty($pass)) {\n $params = array(\n 'Company' => array(\n 'id' => $this->Session->read('CompanyLoggedIn.Company.id'),\n 'responsible_name' => $name,\n 'email' => $email\n )\n );\n $update = $this->AccentialApi->urlRequestToSaveData('companies', $params);\n if (is_null($update)) {\n $company = $this->Session->read('CompanyLoggedIn');\n $company['Company']['email'] = $email;\n $company['Company']['responsible_name'] = $name;\n $this->Session->write('CompanyLoggedIn', $company);\n }\n } else {\n $this->Session->setFlash(__('Senha antiga incorreta.'));\n }\n }\n }\n $this->redirect(\"index\");\n }", "public function do_update($dados=NULL, $condicao=NULL, $redir=TRUE) {\n\t\t\n\t\tif ($dados != NULL && is_array($condicao)):\n\t\t\t//$usuario = $this->Usuarios->get_byid($condicao['id'])->row()->login;\n\t\t\t$this->db->update('usuarios', $dados, $condicao);\n\t\t\tif ($this->db->affected_rows()>0):\n\t\t\t\tauditoria('Altera&ccedil;&atilde;o de usu&aacute;rios', 'Alterado cadastro do usu&aacute;rio');\n\t\t\t\tset_msg('msgok', 'Altera&ccedil;&atilde;o efetuada com sucesso', 'sucesso');\n\t\t\telse:\n\t\t\t\tset_msg('msgerro', 'Erro ao atualizar dados', 'erro');\n\t\t\tendif;\n\t\t\tif ($redir) redirect(current_url());\n\t\tendif;\n\t}", "function actualizar2($usuario){\n\t\t$conn = $this->conn;\n\t\t$valores = array();\n\t\tforeach($usuario as $key => $data){\n\t\t\tif($data != ''){\n\t\t\t\t$valores[] = $key . \" = '\" . $data .\"'\";\n\t\t\t}\n\t\t}\n\t\t$sql = 'UPDATE usuario ';\n\t\tif(!empty($valores)){\n\t\t\t$sql .= ' set '. implode(', ', $valores);\n\t\t}\n\t\t\n\t\t$usuario_id = $usuario->getUsuario_id();\n\t\t\n\t\t$sql .= ' WHERE usuario_id = \"'.$usuario_id.'\"';\n\t\t//print $sql;\n\t\t$rs = $conn->Execute($sql);\n\t\tif(!$rs){\n\t\t\treturn $conn->ErrorMsg();\n\t\t}\n\t\telse{\n\t\t\t$rs->Close();\n\t\t\treturn \"\";\n \t\t}\n \t}", "function actualizarUsuario($id,$nombre,$apellidos,$edad){\n $sqlInsercion=\"UPDATE usuario\n SET nombre='\".$nombre.\"',apellidos='\".$apellidos.\"',edad=\".$edad.\n \" WHERE id=\".$id;\n $this->conexion->query($sqlInsercion);\n }", "function status($uuid){\n perfil_superior();\n if ($uuid==$this->session->userdata('usuario')[\"uuid\"]) {\n #MENSAJE ERROR\n $this->session->set_flashdata('mensaje_error',\"No puedes cambiar tu propio estado\");\n redirect('usuarios/index','refresh');\n }\n $resultado=$this->Usuario_Model->get_user($uuid);\n if ($resultado[\"status\"]==1) {\n $usuario = [\n \"status\"=> 0,\n \"fecha_modificacion\" => date('Y-m-d H:i:s') \n ];\n $mensaje = \"Desactivado\";\n }else{\n $usuario = [\n \"status\"=> 1,\n \"fecha_modificacion\" => date('Y-m-d H:i:s') \n ];\n $mensaje = \"Activado\";\n }\n $this->Usuario_Model->update($uuid,$usuario);\n\n #MENSAJE EXITO\n $this->session->set_flashdata('mensaje_exito',\"Usuario \".$mensaje);\n redirect('usuarios/index','refresh');\n \n \n }", "public function actualizarUsuario()\n {\n //quitamos el id del array y lo guardamos a parte\n $datos = $_POST;\n $ciu = isset($datos['CIU']) ? $datos['CIU'] : $this->session->userdata(\"ciu\");\n unset($datos['CIU']);\n\n //miramos si ha enviado imagen de perfil. de ser asi se procesa en otro metodo aparte y se quita del array\n if (isset($datos['img'])) {\n self::actualizarImagenPerfil($datos['img']);\n unset($datos['img']);\n }\n\n echo $this->Usuarios_model->actualizarUsuario($ciu, $datos);\n }", "public function actualizar_Datos_Usuario($documento){\n\t\t/*echo \"<br>->docu->\".$documento;\n\t\techo \"<br>->\".$this->usuario->get_Nid();*/\n\t\t$sql = \"UPDATE perfiles, usuarios SET Documento='\".$this->usuario->get_Nid().\"',\n\t\t\t\t\t\t\t\t\tNombres='\".$this->usuario->get_Nombres().\"',\n\t\t\t\t\t\t\t\t\tApellidos = '\".$this->usuario->get_Apellidos().\"',\n\t\t\t\t\t\t\t\t\tUsuario = '\".$this->usuario->get_Usuario().\"',\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tPregunta = '\".$this->usuario->get_Pregunta().\"',\n\t\t\t\t\t\t\t\t\tRespuesta = '\".$this->usuario->get_Respuesta().\"',\n\t\t\t\t\t\t\t\t\tTipo_Documento = '\".$this->usuario->get_TipoId().\"',\n\t\t\t\t\t\t\t\t\tCiudad = '\".$this->usuario->get_Ciudad().\"',\n\t\t\t\t\t\t\t\t\tDireccion = '\".$this->usuario->get_Direccion().\"',\n\t\t\t\t\t\t\t\t\tEdad = '\".$this->usuario->get_Edad().\"',\n\t\t\t\t\t\t\t\t\tFoto = '\".$this->usuario->get_Foto().\"',\n\t\t\t\t\t\t\t\t\tTelefono = '\".$this->usuario->get_Celular().\"',\n\t\t\t\t\t\t\t\t\tCorreo_Electronico = '\".$this->usuario->get_Email().\"',\n\t\t\t\t\t\t\t\t\tGenero = '\".$this->usuario->get_Genero().\"',\n\t\t\t\t\t\t\t\t\tusuarios.perfiles_Nombre = perfiles.Nombre\t\t\t\t\t\t\t\t\t\n\t\t\t WHERE Documento='\".$documento.\"' AND perfiles.Nombre ='\".$this->usuario->get_Perfil().\"';\";\n\n\n\t\t$salida = 0;\n\t\t$valida = new Validacion_Datos(); // <- Para validar los tipos de datos\n\t\t// Validacion de los minimos\n\t\tif(!(strlen($this->usuario->get_Nid()) > 7))\t\t\t$salida = 2;\n\t\telseif(!(strlen($this->usuario->get_Nombres()) > 1))\t$salida = 3;\n\t\telseif(!(strlen($this->usuario->get_Apellidos()) > 1))\t$salida = 4;\n\t\telseif(!(strlen($this->usuario->get_Usuario()) > 4))\t$salida = 5;\n\t\telseif(!(strlen($this->usuario->get_Password()) > 4))\t$salida = 6;\n\t\telseif(!(strlen($this->usuario->get_Pregunta()) > 9))\t$salida = 7;\n\t\telseif(!(strlen($this->usuario->get_Respuesta()) > 1))\t$salida = 8;\n\t\telseif(!(strlen($this->usuario->get_TipoId()) > 1))\t\t$salida = 9;\n\t\telseif(!(strlen($this->usuario->get_Ciudad()) > 1))\t\t$salida = 10;\n\t\telseif(!(strlen($this->usuario->get_Direccion()) > 2))\t$salida = 11;\n\t\telseif(!(strlen($this->usuario->get_Edad()) > 0))\t\t$salida = 12;\n\t\telseif(!(strlen($this->usuario->get_Foto()) > 2))\t\t$salida = 13;\n\t\telseif(!(strlen($this->usuario->get_Celular()) > 7))\t$salida = 14;\n\t\telseif(!(strlen($this->usuario->get_Email()) > 6))\t\t$salida = 15;\n\t\telseif(!(strlen($this->usuario->get_Genero()) > 0))\t\t$salida = 16;\n\t\telseif(!(strlen($this->usuario->get_Perfil()) > 0))\t\t$salida = 17;\n\t\t// Validacion de los tipos de datos (Numérico,Alfabético,Alfanumérico)\n\t\telseif(!($valida->is_Number($this->usuario->get_Nid())))\t\t\t\t$salida = 18;\n\t\telseif(!($valida->is_Alphanumeric($this->usuario->get_Usuario())))\t\t$salida = 19;\n\t\telseif(!($valida->is_Alphabetic($this->usuario->get_Nombres())))\t\t$salida = 20;\n\t\telseif(!($valida->is_Alphabetic($this->usuario->get_Apellidos())))\t\t$salida = 21;\n\t\telseif(!($valida->is_Alphanumeric($this->usuario->get_Password())))\t\t$salida = 22;\n\t\telseif(!($valida->is_Alphanumeric($this->usuario->get_Respuesta())))\t$salida = 24;\n\t\telseif(!($valida->is_Alphabetic($this->usuario->get_Ciudad())))\t\t\t$salida = 25;\n\t\telseif(!($valida->is_Number($this->usuario->get_Edad())))\t\t\t\t$salida = 26;\n\t\telseif(!($valida->is_Number($this->usuario->get_Celular())))\t\t\t$salida = 28;\n\n\n\t\t///////////////////////////////////////////////////////////////////////////\n\n\t\t\n\t\telseif($this->bd->insertar($sql))\n\t\t\t$salida = true;\n\t\telse $salida = 31;\n\t\t\n\n\t\treturn $salida;\n\t}", "public function profil()\n {\n $User = $this->session->read('User');\n\n if ($this->issetPostSperglobal('compte')) {\n if ($this->issetArrayPostSuperglobal('compte', 'lastname') &&\n $this->issetArrayPostSuperglobal('compte', 'firstname') &&\n $this->issetArrayPostSuperglobal('compte', 'email') &&\n $this->issetArrayPostSuperglobal('compte', 'password') &&\n $this->issetArrayPostSuperglobal('compte', 'password_confirm'))\n {\n if (!empty($this->getArrayPostSuperglobal('compte', 'lastname')) &&\n !empty($this->getArrayPostSuperglobal('compte', 'firstname')) &&\n !empty($this->getArrayPostSuperglobal('compte', 'email')))\n {\n $Validator = new Validator($this->getArrayPost('compte'));\n $Validator->isEmail('email', \"L'adresse email doit être une adresse email valide.\");\n if (!empty(trim($this->getArrayPostSuperglobal('compte', 'password')))) {\n if (!empty(trim($this->getArrayPostSuperglobal('compte', 'password_confirm')))) {\n $Validator->isPassword('password', \"Les mot de passe ne sont pas valides.\");\n $Validator->isConfirmed('password', \"Les mot de passe sont différents.\");\n } else {\n $this->session->writeFlash('danger', \"Le champ confirmation du mot de passe est vide alors que le champ mot de passe ne l'est pas.\");\n }\n } else {\n $this->setArrayPostSuperglobal('compte', 'password', null);\n $this->setArrayPostSuperglobal('compte', 'password_confirm', null);\n }\n if ($Validator->isValid()) {\n $this->users_manager->update(\n $this->getArrayPostSuperglobal('compte', 'lastname'),\n $this->getArrayPostSuperglobal('compte', 'firstname'),\n $this->getArrayPostSuperglobal('compte', 'email'),\n $this->getArrayPostSuperglobal('compte', 'password'),\n $User\n );\n $this->session->writeFlash('success', \"Vos informations ont été mise à jour avec succès.\");\n } else {\n $errors = $Validator->getErrors();\n foreach ($errors as $champs => $message) {\n $this->session->writeFlash('danger', $message);\n }\n }\n } else {\n $this->session->writeFlash('danger', \"Certains champs sont vides.\");\n }\n } else {\n $this->session->writeFlash('danger', \"Certains champs sont manquants.\");\n }\n $_post = $this->getSpecificPost($this->getArrayPost('compte'));\n $this->render('profil', ['head'=>['title'=>'Profil', 'meta_description'=>''], '_post'=>isset($_post) ? $_post : ''], 'admin');\n }\n\n if ($this->issetPostSperglobal('social')) {\n $empty_link = 0;\n foreach ($this->getArrayPost('social') as $link) {\n if (empty($link)) {\n $empty_link++;\n }\n }\n if ($empty_link === count($this->getArrayPost('social')) && empty($this->getArrayFilesSuperglobal('avatar', 'name', 0))) {\n $this->session->writeFlash('danger', \"Vous avez soumis le formulaire Social sans rien remplir.\");\n }\n\n if ($empty_link < count($this->getArrayPost('social'))) {\n $this->users_manager->updateInfos($this->getArrayPost('social'), $User->getIdUser());\n $this->session->writeFlash('success', \"Vos informations ont été mise à jour avec succès.\");\n }\n\n if (!empty($this->getArrayFilesSuperglobal('avatar', 'name', 0))) {\n $files = $this->upload('avatar', $this->getArrayFiles('avatar'), $User->getIdUser());\n if (empty($files['response'])) {\n $this->users_manager->saveUpload($files['moved_files'], $User->getIdUser());\n $this->session->writeFlash('success', \"Votre photo de profil a été mise à jour avec succès.\");\n }\n }\n\n $this->render('profil', ['head'=>['title'=>'Profil', 'meta_description'=>'']], 'admin');\n }\n\n if ($this->issetPostSperglobal('delete')) {\n $id_user = intval($this->getPostSuperglobal('delete'));\n if ($id_user === $User->getIdUser()) {\n $this->posts_manager->deletedAuthor($id_user);\n $this->users_manager->delete($User->getIdUser(), $User->getEmail());\n $this->session->writeFlash('success', \"Votre compte a été supprimé avec succès. Un mail de confirmation vous sera envoyé.\");\n $this->redirect('accueil');\n }\n $this->session->writeFlash('danger', \"Le numéro d'utilisateur pour la suppression du compte ne vous correspond pas.\");\n $this->render('profil', ['head'=>['title'=>'Profil', 'meta_description'=>'']], 'admin');\n }\n }", "static public function ctrEditarAtencion(){\r\n\t\t\tif (isset($_POST[\"editarCodigo\"])){\r\n\t\t\t\tif (preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"editarUser\"])){\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t$tabla = \"atencion\";\r\n\r\n\t\t\t\t\t\t$datos = array(\"id_atencion\" => $_POST[\"idAtencion\"],\r\n\t\t\t\t\t\t\t\t\t \"codigo_atencion\" => $_POST[\"editarCodigo\"],\r\n\t\t\t\t\t\t\t\t\t \"id_usuario\" => $_POST[\"editarUser\"],\r\n\t\t\t\t\t\t\t\t\t \"id_personal_salud\" => $_POST[\"editarPersonalSalud\"],\r\n\t\t\t\t\t\t\t\t\t \"id_paciente\" => $_POST[\"editarPaciente\"],\r\n\t\t\t\t\t\t\t\t\t \"ups\" => $_POST[\"editarUps\"],\r\n\t\t\t\t\t\t\t\t\t \"servicio\" => $_POST[\"editarServicio\"],\r\n\t\t\t\t\t\t\t\t\t \"especialidad\" => $_POST[\"editarEspecialidad\"],\r\n\t\t\t\t\t\t\t\t\t \"diagnostico\" => $_POST[\"editarDiagnostico\"],\r\n\t\t\t\t\t\t\t\t\t \"fecha_atencion\" => $_POST[\"editarFechaAtencion\"]);\r\n\r\n\t\t\t\t\t\t$respuesta = ModeloAtenciones::mdlEditarAtenciones($tabla, $datos);\r\n\r\n\t\t\t\t\t\tif ($respuesta == \"ok\") {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\techo '<script>\r\n\r\n\t\t\t\t\t\t\t\t\tswal({\r\n\t\t\t\t\t\t\t\t\t\ttype: \"success\",\r\n\t\t\t\t\t\t\t\t\t\ttitle: \"¡La Atención ha sido modificada correctamente!\",\r\n\t\t\t\t\t\t\t\t\t\tshowConfirmButton: true,\r\n\t\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\",\r\n\t\t\t\t\t\t\t\t\t\tcloseOnConfirm: false\r\n\t\t\t\t\t\t\t\t\t\t}).then((result)=>{\r\n\t\t\t\t\t\t\t\t\t\t\tif(result.value){\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\twindow.location = \"atenciones\";\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t });\r\n\r\n\t\t\t\t\t\t \t\t </script>';\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t}else{\r\n\r\n\t\t\t\t\techo '<script>\r\n\r\n\t\t\t\t\t\t\tswal({\r\n\t\t\t\t\t\t\t\ttype: \"error\",\r\n\t\t\t\t\t\t\t\ttitle: \"¡La Atención no puede ir vacía o llevar caracteres especiales !\",\r\n\t\t\t\t\t\t\t\tshowConfirmButton: true,\r\n\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\",\r\n\t\t\t\t\t\t\t\tcloseOnConfirm: false\r\n\t\t\t\t\t\t\t\t}).then((result)=>{\r\n\t\t\t\t\t\t\t\t\tif(result.value){\r\n\r\n\t\t\t\t\t\t\t\t\t\twindow.location = \"atenciones\";\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t });\r\n\r\n\t\t\t\t\t\t </script>';\r\n\r\n\t\t\t}\r\n\t\t }\r\n\t\t/*===== FIN registro pacientes ======*/\t\t\t\t\t\r\n\t\t}", "public function saveUserContratante()\n {\n\n $data_insert = [\n 'id_user' => $this->_id_user,\n 'id_contratante' => $this->_id_contratante,\n ];\n return parent::save($data_insert);\n }", "public function update()\n {\n $id = Security::verificateInt($_POST['update_id']);\n $nombres = Security::verificateName( $_POST['update_nombres']);\n $apellidos = Security::verificateName( $_POST['update_apellidos']);\n $correo = Security::verificateEmail( $_POST['update_correo']);\n $clave1 = Security::verificatePassword($_POST['update_clave']);\n $numero_documento = Security::verificateDocument( $_POST['update_numero_documento']);\n $fk_rol = Security::verificateInt( $_POST['update_rol']);\n $fk_tipo_contrato = Security::verificateInt( $_POST['update_tipo_contrato']);\n $fk_cargo = Security::verificateInt( $_POST['update_cargo']);\n $fk_tipo_documento = Security::verificateInt( $_POST['update_tipo_documento']);\n $salario = Security::verificateInt( $_POST['update_salario']);\n\n\n $updated_at = Security::verificateDate($_POST['updated_at']);\n $token =$_POST['token'];\n // para validar el token con el token de la DB\n $usuario = parent::showUser($id,$token);\n // si no quiere actualizar la clave se usa el input hidden\n $claveAntigua =$_POST['clave_antigua'];\n\n //validacion de la clave si no se envia nada en el input update_clave se envia la clave_antigua\n if(empty($clave1) || $clave1 == false)\n {\n //se valida que la clave antigua sea igual a la que esta en la DB\n if($claveAntigua == $usuario->clave)\n {\n $clave =$claveAntigua;\n }\n else{\n echo json_encode(['error' => 'errorActualizarUsuario1']);\n return;\n }\n\n }else if($clave1)\n {\n $clave =password_hash($clave1,PASSWORD_DEFAULT); \n }\n\n\n //Nomina\n $arrayDatos = json_decode($_POST['arrayDatos']);\n $fk_nomina = ($_POST['fk_nomina']);\n\n\n if($nombres && $apellidos && $correo && $numero_documento && $fk_rol && $fk_tipo_contrato && $fk_cargo && $fk_tipo_documento && $salario && $updated_at && $usuario->token == $token && isset($clave) && $fk_nomina && $arrayDatos )\n {\n \n if(!Login::verificarSiExisteEmail($correo) || Login::verificarSiExisteEmailUpdate($correo,$id))\n {\n //img uploud\n //? img si no se pone una img tomara el valor por defecto empty(si esta undefined da false)\n if(empty($_POST['update_user_img']))\n {\n //? Update Img\n $fecha = new DateTime();\n // funcion img\n $directorio = \"assets/uploud/profile/\";\n $archivo= $directorio.basename($fecha->getTimeStamp().$_FILES[\"update_user_img\"][\"name\"]);\n //info de ext(jpg,png,etc)\n $tipoArchivo =strtolower(pathinfo($archivo,PATHINFO_EXTENSION));\n //verifica que el archivo tenga dimensiones(w,h) \n $DimensionesImg =getimagesize($_FILES['update_user_img']['tmp_name']);\n \n if($DimensionesImg == true)\n {\n $tamañoImg = $_FILES['update_user_img'][\"size\"];\n if($tamañoImg > 2000000)\n {\n // echo \"El archivo tiene que ser menor a 2mb\";\n echo json_encode(['error'=>\"El archivo tiene que ser menor a 2mb\"]);\n return;\n }\n else{\n if($tipoArchivo == \"jpg\" || $tipoArchivo == \"png\" || $tipoArchivo == \"jpeg\" )\n {\n //borra la img que tenia si actualiza\n if($usuario->img_usuario != 'assets/uploud/profile/default.svg')\n {\n unlink($usuario->img_usuario);\n\n }\n move_uploaded_file($_FILES[\"update_user_img\"][\"tmp_name\"],$archivo);\n $img_usuario=$archivo;\n }\n else{\n // echo \"la extension del archivo no es valida\";\n echo json_encode(['error'=>'a extension del archivo no es valida']);\n return;\n }\n }\n }else\n {\n // echo \"el documento no es una img\";\n echo json_encode(['error'=> 'el documento no es una img']);\n return;\n \n }\n }else{\n $img_usuario = $usuario->img_usuario;\n }\n\n $nomina = new Nomina();\n $nomina->deleteTodosConceptos($fk_nomina);\n $total = 0;\n for ($i=0; $i < count($arrayDatos); $i++) { \n $data = $arrayDatos[$i];\n \n $nomina->createConcept($data->descripcion,2, $data->fk_asiento_contable, $data->valor, $data->fk_tipo_concepto, $fk_nomina);\n \n if($data->fk_asiento_contable == 2)\n {\n $total -=$data->valor;\n \n }else{\n $total +=$data->valor;\n }\n \n }\n \n $nomina->updateNominaValor($total,$fk_nomina);\n\n\n $token1 = $this->seguridad->encryptToken(str_replace(' ','',$nombres.$numero_documento.$apellidos));\n parent::UpdateUser($nombres,$apellidos,$correo,$salario,$clave,$img_usuario,$numero_documento,$fk_rol,$fk_cargo,$fk_tipo_documento,$fk_tipo_contrato,$token1,$updated_at,$id);\n echo json_encode(['ok' => 'usuarioActualizado']);\n\n\n }else{\n echo json_encode(['error' => 'correoExistente']);\n }\n \n\n }else{\n echo json_encode(['error' => 'errorActualizarUsuario']);\n return;\n }\n\n }", "function modificar_usuario($email){\n\t\n\t$conn = db_conectar();\n\t$email = $conn->real_escape_string($email);\n\t$result = $conn->query(\"SELECT * FROM usuarios WHERE Email='$email'\");\n\t$conn->close();\n\tif ($result !== FALSE && $result->num_rows === 1){\n\t\t$row = $result->fetch_assoc();\n\t\t$_POST[\"nombre\"] = $row[\"Nombre\"];\n\t\t$_POST[\"apellidos\"] = $row[\"Apellidos\"];\n\t\t$_POST[\"email\"] = $row[\"Email\"];\n\t\t$_POST[\"password\"] = $row[\"Password\"];\n\t\t$_POST[\"telefono\"] = $row[\"Telefono\"];\n\t\t$_POST[\"tipo\"] = $row[\"TipoUser\"];\n\t\techo \"<h1 id='modificar' class='h1login'>Modificar Usuario</h1>\";\n\t\tform_usuario(\"usuarios_mod2\", $email);\n\t} else\n\t\techo \"<p class='error'>ERROR</p>\";\n}", "function saveUser($sVars)\n{\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/config/config.php\");\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/class/autoload.php\");\n\n // Récupérer les données\n $aData = json_decode($sVars,true);\n $db = new cMariaDb($Cfg);\n if( $aData[\"User\"][\"id\"] == 0 ){\n // id=0 > Ajoute\n $Columns = \"\";\n $Values = \"\";\n foreach( $aData[\"User\"] as $key => $value )\n {\n if( $key != \"id\"){\n $Columns .= $key.\",\";\n $Values .= \"'\".addslashes($value).\"',\"; \n }\n if( $key == \"sEmail\"){\n $Columns .= \"pMotPasse,\";\n $Values .= \"SHA1('\".$value.\"'),\";\n }\n }\n $Columns = substr($Columns,0,-1);\n $Values = substr($Values,0,-1);\n $sSQL = \"INSERT INTO sys_user ($Columns,dDateInscription) VALUES ($Values,CURRENT_TIMESTAMP);\";\n $aTmp = $db->Query($sSQL);\n $id = $db->getLastId();\n } else {\n $Set = \"\";\n foreach( $aData[\"User\"] as $key => $value )\n {\n if( $key != \"id\"){\n $Set .= $key.\"='\".addslashes($value).\"',\";\n }\n }\n $Set = substr($Set,0,-1);\n $id = $aData[\"User\"][\"id\"];\n $sSQL = \"UPDATE sys_user SET $Set WHERE id=$id;\";\n $aTmp = $db->Query($sSQL);\n }\n // Méthode pas très élégante, mais il faudrait faire un delta entre tableaux \n // et agir en conséquence... \n // On supprime tout et on insert\n // Sauvegarde des droits ($aData[\"Rights\"])\n $sSQL = \"DELETE FROM sys_user_rights WHERE idUser=$id\";\n $db->Query($sSQL);\n foreach($aData[\"Rights\"] as $Right) {\n $sSQL = \"INSERT INTO sys_user_rights SET idRights=$Right, idUser=$id;\";\n $db->Query($sSQL);\n }\n\n // $aRet = [\"Errno\" => 2, \n // \"ErrMsg\" => $sTmp, \n // \"SQL\" => $sSQL ];\n\n return [\"Errno\" => 0, \"ErrMsg\" => \"OK\", \"SQL\" => $sSQL ];\n\n header('content-type:application/json');\n echo json_encode($aRet); \n}", "static public function ctrCrearUsuario(){\n\n\n if(isset($_POST[\"nuevoUsuario\"])){\n\n\t\t\tif(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"nuevoNombre\"]) &&\n\t\t\t preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"nuevoUsuario\"]) &&\n\t\t\t preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"nuevoPassword\"])){\n\n\n //Validar la imagen\n\n $revisar = getimagesize($_FILES[\"nuevaFoto\"][\"tmp_name\"]);\n\n if($revisar !== false){\n\n //Crear directorio\n $directorio = \"vistas/img/usuarios/\".$_POST[\"nuevoUsuario\"];\n\t\t\t\t mkdir($directorio, 0755);\n\n //Asignar nombre a la foto\n $aleatorio = mt_rand(100,999);\n $pname = $aleatorio.\"-\".$_FILES[\"nuevaFoto\"][\"name\"];\n\n $tname = $_FILES[\"nuevaFoto\"][\"tmp_name\"];\n\n $ruta = $directorio.\"/\".$pname;\n\n move_uploaded_file($tname, $directorio.'/'.$pname);\n\n } else {\n $ruta = \"\";\n }\n\n \n\n $tabla = \"tblusuarios\";\n\n $encriptar = crypt($_POST[\"nuevoPassword\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n\n $datos = array(\"nombre\" => $_POST[\"nuevoNombre\"],\n \"usuario\" => $_POST[\"nuevoUsuario\"],\n \"password\" => $encriptar,\n \"perfil\" => $_POST[\"nuevoPerfil\"],\n \"foto\" => $ruta\n );\n \n $respuesta = ModeloUsuarios::MdlIngresarUsuario($tabla, $datos);\n\n if($respuesta == \"ok\"){\n\n echo '<script>\n\n\t\t\t\t\tSwal.fire({\n\n\t\t\t\t\t\ticon: \"success\",\n\t\t\t\t\t\ttitle: \"El usuario ha sido guardado correctamente\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\",\n closeOnConfirm: false\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"usuarios\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t</script>';\n \n }else{\n\n '<script>\n alert(\"Error al guardar el usuario\");\n\n\t\t\t\t\t</script>';\n\n }\n\n\n\n\t\t\t}else{\n\n\t\t\t\techo '<script>\n\n\t\t\t\t\tSwal.fire({\n\n\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\ttitle: \"¡El usuario no puede ir vacío o llevar caracteres especiales!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\",\n closeOnConfirm: false\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"usuarios\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t</script>';\n\n\t }\t}\n\n\n\t}", "function Save(){\n $rowsAffected = 0;\n if(isset($this->legajo)){\n $rowsAffected = $this->UpdateSQL([\"legajo = \".$this->legajo]);\n }else{\n $rowsAffected = $this->InsertSQL();\n if($rowsAffected > 0){\n $this->legajo = $this->Max(\"legajo\");\n }\n }\n if($rowsAffected == 0){\n throw new \\Exception(\"Error al guardar Usuario\");\n }else{\n $this->Refresh();\n }\n }", "public function salvar_meu_cadastro($dados,$password = true){\n\n #seta o endereço, se tiver sido preenchido\n if (_v($dados,\"bairro\") != \"\"){\n $end = [\"bairro\"=>$dados[\"bairro\"], \"cidade\"=>$dados[\"cidade\"], \"uf\"=>$dados[\"uf\"]];\n $CI =& get_instance();\n $CI->load->model('Endereco_model');\n $endereco = $CI->Endereco_model->getOrCreate($end);\n $dados[\"idbairro\"] = $endereco[\"idbairro\"];\n } else {\n $dados[\"idbairro\"] = null;\n }\n \n #transforma o nome dos campos que vem do formulário para o nome no db\n $fields = [\"id\",\"nome_completo\",\"nome_social\",\"email\",\"cpf\",\"tipoInscricao\",\n \"curriculo\",\"lattes\",\"telefone\",\"foto\",\n \"instituicao\"=>\"idinstituicao\",\n \"curso\"=>\"idcurso\",\"pago\",\"logradouro\",\"idnivelcurso\",\n \"cep\",\"numero\",\"idbairro\",\"outra_instituicao\"];\n\n $tratados = $this->replaceNames($dados,$fields);\n if (!isset($dados[\"id\"])){\n $tratados[\"id\"] = null;\n }\n \n\n #caso ele tenha marcado outra instituicao\n if (isset($tratados[\"idinstituicao\"])){\n if ($tratados[\"idinstituicao\"] == \"outra\"){\n $tratados[\"idinstituicao\"] = null;\n } else {\n $tratados[\"outra_instituicao\"] = null;\n }\n }\n\n if (_v($dados,\"password\") != \"\"){\n if (_v($dados,\"id\") == \"\" && !isset($dados[\"password\"])){\n $tratados[\"password\"] = sha1(\"12345678\");\n } else {\n $tratados[\"password\"] = sha1($dados[\"password\"]);\n\n #se eu estiver alterando a minha propria senha na area de perfil\n if (isset($_SESSION[\"user\"]) && _v($_SESSION[\"user\"],\"id\") == $dados[\"id\"]){\n $tratados[\"email_confirmado\"] = true;\n }\n }\n if ($password == false){\n $tratados[\"password\"] = null;\n }\n }\n\n #todo mundo terá pago por padrão\n $tratados['pago'] = true;\n\n #todo mundo é participante por padrão\n if (_v($dados,\"id\") == \"\"){\n $tratados['nivel'] = NIVEL_PARTICIPANTE;\n }\n \n \n return parent::salvar($tratados);\n }", "public function actualizarUsuarioModel($data){\n\t\t$stmt = Conexion::conectar()->prepare(\"UPDATE usuarios SET codigo = :codigo, nombre=:nombre, apellidos=:apellidos, email=:email, password=:password, tipo=:tipo WHERE id = :id\");\n\t\t$stmt->bindParam(\":codigo\", $data['codigo']);\n\t\t$stmt->bindParam(\":nombre\", $data['nombre']);\n\t\t$stmt->bindParam(\":apellidos\", $data['apellidos']);\n\t\t$stmt->bindParam(\":email\", $data['email']);\n\t\t$stmt->bindParam(\":password\", $data['password']);\n\t\t$stmt->bindParam(\":tipo\", $data['tipo']);\n\t\t$stmt->bindParam(\":id\", $data['id']);\n\t\tif($stmt->execute())\n\t\t\treturn \"success\";\n\t\telse\n\t\t\treturn \"error\";\n\t\t$stmt->close();\n\n\n\t}", "function ejecutar($correo,$password){\n\tinclude_once \"php/conexion.php\"; \n\t$conexion = conexion();\n\t//traer datos POST\n\t$estudiantes = mysqli_query($conexion,\"SELECT * FROM estudiantes WHERE correo like '$correo' \") or die(mysqli_error($conexion));\n\t$profesores = mysqli_query($conexion,\"SELECT * FROM profesores WHERE correo like '$correo' \") or die(mysqli_error($conexion));\n\t//verifiacciones\n\tif (mysqli_num_rows($estudiantes)>0){\n\t\t$row = $estudiantes->fetch_assoc();\n\t\t$id=$row['idestudiante'];\n\t\t//print_r($row);\n\t\tmysqli_query($conexion,\"UPDATE `estudiantes` SET `clave` = '$password' WHERE `estudiantes`.`idestudiante` = \".$id.\" \") or die(mysqli_error($conexion));\n\t\techo 'Actualizado correctamente\n\t\t<script>window.location.assign(\"http://phomework.com.co/www/info/login.html\");</script>';\n\t}\n\telseif(mysqli_num_rows($profesores)>0){\n\t\t$row1 = $profesores->fetch_assoc();\n\t\t$id=$row1['idprofesores'];\n\t\t//print_r($row1);\n\t\tmysqli_query($conexion,\"UPDATE `profesores` SET `clave` = '$password' WHERE `profesores`.`idprofesores` = \".$id.\" \") or die(mysqli_error($conexion));\n\t\techo 'Actualizado correctamente\n\t\t<script>window.location.assign(\"http://phomework.com.co/www/info/login.html\");</script>';\n\t}\n\telse{\n\t\techo \"No se encontro el usuario, contactanos por nuestra fanpage <a href='www.phomework.com.co'>www.phomework.com.co</a>\";\n\t}\n}", "public function update(Request $request, $id)\n {\n \n if(\\Auth::user()->rol_id==3){\n\n\n $user=User::findOrFail($id);\n \n\n $v=Validator::make($request->all(),[\n \n 'correo'=>'email|required|unique:users,email',\n \n ]);\n \n if ($v->fails()) {\n return \\redirect()->back()->withInput()->withErrors($v->errors());\n }\n\n $user->email=$request->correo;\n $user->save();\n\n flash('Perfil actualizado con exito ha sido cambiada con exito!')->succes()->important();\n\n\n return \\redirect()->route('administrador.show',$user);\n \n\n }\n\n if(\\Auth::user()->rol_id=='2'){\n \n \n $v=Validator::make($request->all(),[\n \n 'correo'=>'email|required|unique:tiendas,correo,'.$id\n \n ]);\n \n if ($v->fails()) {\n return \\redirect()->back()->withInput()->withErrors($v->errors());\n }\n \n\n \n \n \n \n \n $user=User::findOrFail(\\Auth::user()->id);\n $user->email=$request->correo;\n $user->nombre=$request->nombre;\n $user->apellido=$request->apellido;\n $user->save();\n \n $tienda=Tienda::findOrFail($id);\n $tienda->nombreTienda=$request->nombreTienda;\n $tienda->nombre=$request->nombre;\n $tienda->apellido=$request->apellido;\n $tienda->correo=$request->correo;\n\n $pedido=Pedido::whereHas('producto',function($q) use($tienda){\n $q->where('tienda_id',\\Auth::user()->tienda->id);\n })->where('status','!=','culminado')->count();\n \n \n if($tienda->planAfilizacion_id!=$request->planAfiliacion){\n\n if($pedido>0){\n flash('Lo sentimos. No puede afiliarse a un plan si posee pedidos en proceso de compra.')->warning()->important();\n return \\redirect()->route('administrador.show',$user);\n }else{\n\n $tienda->planAfilizacion_id=$request->planAfiliacion;\n $tienda->fechaPlanAfiliacion=Carbon::now()->format('Y-m-d H:i:s');\n }\n\n }\n\n\n\n\n $tienda->telefono=$request->telefono;\n \n $tienda->save();\n\n if($request->imagen){\n\n if($tienda->imagen){\n $imagenn=$tienda->imagen;\n $archivo=substr($imagenn->url,1);\n \\File::delete($archivo);\n $imagenn->delete();\n }\n\n $imagen=$request->file('imagen');\n \n $nombre=time().'_'.$imagen->getClientOriginalName();\n $ruta=public_path().'/imagenes/tienda';\n $imagen->move($ruta , $nombre);\n \n $urlImagen['url']='/imagenes/tienda/'.$nombre;\n $tienda->imagen()->create($urlImagen);\n }\n\n flash('Perfil modificado con exito!')->success()->important();\n\n\n return \\redirect()->route('administrador.show',$user);\n\n }\n \n }", "public function editarUsuario(){\r\n $sql = \"UPDATE usuarios SET Usuario = '{$this->usuario}',\r\n NombreCompleto = '{$this->nombreCompleto}',\r\n Correo = '{$this->correo}',\r\n IdRol = '{$this->idRol}'\r\n WHERE IdUsuario = '{$this->idUsuario}'\";\r\n $res = $this->conexion->setQuery($sql);\r\n return $res;\r\n}", "static public function mdlEditarUsuario($tabla, $datos){\n $p=null;\n if($datos[\"id_programa\"]==\"NULL\"){\n $p=null;\n }else{\n $p=$datos[\"id_programa\"];\n }\n\n $stmt = Conexion::conectar()->prepare(\"UPDATE $tabla SET nombres =:nombres,apellidos =:apellidos,tipo_documento =:tipo_documento,documento =:documento,celular =:celular,email =:email,profesion =:profesion,tipo_vinculacion =:tipo_vinculacion,id_rol =:id_rol,cvlac =:cvlac,cargo =:cargo,ficha =:ficha,fecha_vinculacion =:fecha_vinculacion,fecha_desvinculacion =:fecha_desvinculacion,estado_vinculacion =:estado_vinculacion,contrasena =:contrasena,id_programa =:id_programa WHERE id_persona =:id_persona\");\n\n $stmt->bindParam(\":id_persona\", $datos[\"id_persona\"], PDO::PARAM_STR);\n $stmt->bindParam(\":nombres\", $datos[\"nombres\"], PDO::PARAM_STR);\n $stmt->bindParam(\":apellidos\", $datos[\"apellidos\"], PDO::PARAM_STR);\n $stmt->bindParam(\":tipo_documento\", $datos[\"tipo_documento\"], PDO::PARAM_STR);\n $stmt->bindParam(\":documento\", $datos[\"documento\"], PDO::PARAM_STR);\n $stmt->bindParam(\":celular\", $datos[\"celular\"], PDO::PARAM_STR);\n $stmt->bindParam(\":email\", $datos[\"email\"], PDO::PARAM_STR);\n $stmt->bindParam(\":profesion\", $datos[\"profesion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":tipo_vinculacion\", $datos[\"tipo_vinculacion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":cvlac\", $datos[\"cvlac\"], PDO::PARAM_STR);\n $stmt->bindParam(\":cargo\", $datos[\"cargo\"], PDO::PARAM_STR);\n $stmt->bindParam(\":ficha\", $datos[\"ficha\"], PDO::PARAM_STR);\n $stmt->bindParam(\":fecha_vinculacion\", $datos[\"fecha_vinculacion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":fecha_desvinculacion\", $datos[\"fecha_desvinculacion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":estado_vinculacion\", $datos[\"estado_vinculacion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":contrasena\", $datos[\"contrasena\"], PDO::PARAM_STR);\n $stmt->bindParam(\":id_programa\",$p, PDO::PARAM_STR);\n $stmt->bindParam(\":id_rol\", $datos[\"id_rol\"], PDO::PARAM_STR);\n\n if($stmt -> execute()){\n return \"ok\";\n }else{\n return \"error\";\n }\n $stmt -> close();\n $stmt = null;\n }", "function actualizarUsuario($arrayData,$arrayPerfil=NULL){\n\t\t/*\n\t\tActualiza los datos del usuario y además ejecuta actualizarPerfilesUsuario()\n\t\tpara actualizar los datos de pertenencia a perfiles, de acuerdo a los checkbox\n\t\tmarcados en el formulario\n\t\t*/\n\t\t$existeUsu=$this->checkUsernameExistsUpdate($arrayData['user_name'],$arrayData['id_usuario']);\n\t\t//$existePass=$this->checkPasswordExistsUpdate($arrayData['user_pass'],$arrayData['id_usuario']);\n\t\t\n\t\tif($existeUsu){\n\t\t\t$this->aErrors[]='El nombre de usuario ya fue utilizado';\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(!is_null($arrayPerfil)){\n\t\t\t$this->actualizarPerfilesUsuario($arrayPerfil,$arrayData['id_usuario']);\n\t\t}\n\t\t\n\t\n\t\treturn $this->update($arrayData);\n\n\t}", "function altaUsuarioProfesor($datos) {\n\n if (BDConexionSistema::getInstancia()->begin_transaction()) {\n // INSERCION PROFESOR\n //Creo objeto sin enviar ID y enviando todos los datos del formulario\n $Profesor = new Profesor(null, $datos);\n $apellido = mysqli_real_escape_string(BDConexionSistema::getInstancia(), $Profesor->getApellido());\n\n if ($this->chequearEmail($Profesor->getEmail())) {\n $this->query = \"INSERT INTO PROFESOR \"\n . \"VALUES ('{$Profesor->getId()}', '0', '{$Profesor->getNombre()}', '{$apellido}',\"\n . \"'{$Profesor->getEmail()}', '{$Profesor->getCategoria()}', '{$Profesor->getPreferencias()}', '{$Profesor->getIdDepartamento()}')\";\n\n $consulta = BDConexionSistema::getInstancia()->query($this->query);\n } else {\n throw new Exception(\"El email: <b>\" . $Profesor->getEmail() . \"</b> ya corresponde a un profesor en la Base de Datos\");\n }\n\n if (!$consulta) {\n BDConexionSistema::getInstancia()->rollback();\n throw new Exception(\"No se puedo dar de alta el profesor (Error en la Base de Datos).\");\n }\n\n // INSERCION USUARIO\n\n $query = \"INSERT INTO \" . Constantes::BD_USERS . \".usuario \"\n . \"VALUES (null,'{$datos[\"nombreUsuario\"]}','{$datos[\"email\"]}')\";\n $consulta = BDConexionSistema::getInstancia()->query($query);\n if (!$consulta) {\n BDConexionSistema::getInstancia()->rollback();\n //arrojar una excepcion\n //die(BDConexion::getInstancia()->errno);\n throw new Exception(\"No se puedo dar de alta el profesor (Error en la Base de Datos).\");\n }\n\n // recuperamos la id del usuario\n $idUsuario = BDConexionSistema::getInstancia()->insert_id;\n\n // INSERCION USUARIO_ROL\n $query = \"INSERT INTO \" . Constantes::BD_USERS . \".usuario_rol \"\n . \"VALUES ({$idUsuario}, 9)\";\n $consulta = BDConexionSistema::getInstancia()->query($query);\n if (!$consulta) {\n BDConexionSistema::getInstancia()->rollback();\n //arrojar una excepcion\n //die(BDConexion::getInstancia()->errno);\n throw new Exception(\"No se puedo dar de alta el profesor (Error en la Base de Datos).\");\n }\n\n BDConexionSistema::getInstancia()->commit();\n BDConexionSistema::getInstancia()->autocommit(true);\n\n // si no se produjeron excepciones OK insercion, retornamos VERDADERO\n return TRUE;\n } else {\n throw new Exception(\"No se puedo dar de alta el profesor (Error en la Base de Datos).\");\n }\n }", "public function editar(){\r\n\t\tif(!$this->_validarCampos())\r\n\t\t\t// levantando a excessao CamposObrigatorios //\r\n\t\t\tthrow new CamposObrigatorios();\r\n\t\t\r\n\t\tif($this->_testarServicoExisteEdicao($this->getId(), $this->getNome()))\r\n\t\t\t// levanto a excessao//\r\n\t\t\tthrow new Exception(\"Servico já cadastrado en nossa base de dados\");\r\n\t\t\r\n\t\t// recuperando a instancia da classe de acesso a dados //\r\n\t\t$instancia = ServicoDAO::getInstancia(); \r\n\t\t// retornando o Usuario //\r\n\t\treturn $servico = $instancia->editar($this);\r\n\t}", "public function update(Request $request, Curso $curso)//restringir el acceso a otros usuarios\n\t\n {\n\t\t\n\t\t\n\t/*\n\t\t$user = Auth::user();\n\t\tif(($user->permisos('Profesor'))&&($user->cursos[0]->id != $curso->id))\n\t\t{\n\t\treturn redirect()->route('cursos.edit',$curso->id)->with('info','No tiene permiso para actualizar este Curso ');\n\t\t\n\t\t}\n\t\telse\n\t\t{*/\n\t//dd($request);\n\t\t$data =request()->validate(['name'=>['required',Rule::unique('users')->ignore($curso->id)],\n\t\t\t'tipo'=>'required',\n\t\t\t'inicio' => '',\n\t\t\t'fin' =>'',\n\t\t\t'cupo' => '',\n\t\t\t'video' => '',\n\t\t\t'imagen' => '',\n\t\t\t'categoria' => 'required',],\n\t\t\t['name.required' => 'El campo Nombre es Obligatorio',\n\t\t\t'tipo.required' => 'El campo Tipo es Obligatorio',\n\t\t\t'categoria.required' => 'El campo Categoria es Obligatorio',]);\n\t\t\n\t\t\t\n\t\t\t$data['inicio'] = date($request['inicio']);\n\t\t\t$data['fin'] =date($request['fin']);\n\t\t\t\n\t\t\t/*if(!array_key_exists('users', $request))\n\t\t\t{\n\t\t\t\tunset ($data['users']);\n\t\t\t}\n\t\t\telse\n\t\t\t{\t\t\t\t\n\t\t\t\t$curso->users()->sync($request['users']);\n\t\t\t}*/\n\t\t\t//dd($request);\n\t\t\tif ($data['tipo'] != 'Masivo')\n\t\t\t{\n\t\t\t\t$data =request()->validate(['name'=>['required',Rule::unique('users')->ignore($curso->id)],\n\t\t\t\t'tipo'=>'required',\n\t\t\t\t'inicio' => 'required',\n\t\t\t\t'fin' =>'required',\n\t\t\t\t'cupo' => 'required',\n\t\t\t\t'imagen' => '',\n\t\t\t\t'video' => '',\n\t\t\t\t'categoria' => 'required',],\n\t\t\t\t['name.required' => 'El campo Nombre es Obligatorio',\n\t\t\t\t'tipo.required' => 'El campo Tipo es Obligatorio',\n\t\t\t\t'categoria.required' => 'El campo Categoria es Obligatorio',\n\t\t\t\t'fin.required' => 'El campo Fecha Fin es Obligatorio',\n\t\t\t\t'inicio.required' => 'El campo Fecha Inicio es Obligatorio',\n\t\t\t\t'cupo.required' => 'El campo Cupo es Obligatorio',\n\t\t\t\t]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$data['cupo'] = null;\t\n\t\t\t\t$data['inicio'] = null;\n\t\t\t\t$data['fin'] = null;\t\n\t\t\t}\n\t\t\t\n\t\t//\tdd($request['imagen']);\n\t\tif(!array_key_exists('photo', $data))\n\t\t{\n\t\t\tunset ($data['photo']);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->validate($request, ['photo' => 'required|image']);\n\t\t\t\n\t\t\t\tImage::make($request->file('photo'))\n\t\t\t\t\t->resize(300, 400)\n\t\t\t\t\t->save('img/users/photo.jpg');\n\t\t\t\n\t\t\t$data['photo'] = file_get_contents('img/users/photo.jpg');\n\t\t\t\n\t\t}\n\t\tif(!array_key_exists('imagen', $data))\n\t\t{\n\t\t\tunset ($data['imagen']);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->validate($request, ['imagen' => 'required|image']);\n\t\t\t\n\t\t\t\tImage::make($request->file('imagen'))\n\t\t\t\t\t->resize(300, 400)\n\t\t\t\t\t->save('img/users/imagen.jpg');\n\t\t\t\n\t\t\t$data['imagen'] = file_get_contents('img/users/imagen.jpg');\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\tif(Auth::user()->permisos('Profesor'))\n\t\t\t{\n\t\t\t\t$aux = array();\n\t\t\t\t$us = $curso->users;\n\t\t\t\t\n\t\t\t\tforeach($us as $u )\n\t\t\t\t{\n\t\t\t\t\tif($u->permisos('Profesor'))\n\t\t\t\t\t{\n\t\t\t\t\t\t$aux[] = $u->id.'';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(array_key_exists('users', $request->all()))\n\t\t\t\t{\n\t\t\t\t\t$data['users'] = array_merge($aux,$request['users']);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data['users'] =$aux;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//dd($data);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$data['users'] = $request['users'];\n\t\t\t}\t\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t$curso->update($data);\n\t\t\t\n\t\t\t$curso->users()->sync($data['users']);\n\t\t\t\n\t\t\t$curso->categorias()->sync($data['categoria']);\n\t\t\t\t\t\n\t\t\treturn redirect()->route('cursos.edit',$curso->id)->with('info','Curso actualizado correctamente');\n\t//\t}\n\t\t\t\n }", "function actualizar_cantidad_inventario()\r\n { \r\n $data['sistema'] = $this->sistema;\r\n if($this->acceso(26)){\r\n //**************** inicio contenido ***************\r\n\t\t \r\n $usuario_id = 1;\r\n \r\n $this->Inventario_model->actualizar_cantidad_inventario();\r\n redirect('inventario/index');\r\n\t\t\r\n //**************** fin contenido ***************\r\n\t\t\t}\r\n\t\t\t\r\n }", "public function modifyUsers() {\n //update la table patient(){\n $modifyUsersQuery = $this->db->prepare(\n 'UPDATE\n `dom20_users`\n SET \n lastname = :lastname\n ,firstname = :firstname\n ,mail = :mail\n WHERE id= :id \n ');\n // On choisi les colonnes que l'on souhaite modifier avec SET, on leur attribue un marqueur nominatif ': ' \n // avec un bindValue on donne des valeurs à nos marqueurs nominatifs puis on execute();\n $modifyUsersQuery->bindValue(':lastname', $this->lastname, PDO::PARAM_STR);\n $modifyUsersQuery->bindValue(':firstname', $this->firstname, PDO::PARAM_STR);\n $modifyUsersQuery->bindValue(':mail', $this->mail, PDO::PARAM_STR);\n $modifyUsersQuery->bindValue(':id', $this->id, PDO::PARAM_STR);\n return $modifyUsersQuery->execute(); \n }", "public function profil()\n {\n // J'appelle toutes les variables dont j'ai besoin par défaut dans la buildview\n $login = $this->request->getSession()->getAttribut(\"login\"); // recupere le login\n $id = $this->request->getSession()->getAttribut(\"idUser\"); // récupère l'id\n $newpassword = $this->request->getParameterByDefault('newpassword');\n $newpasswordverif = $this->request->getParameterByDefault('newpasswordverif');\n $msgs = [];\n\n\n // j'arrive en post car des données sont saisies dans le formulaire\n if($newpassword && $newpasswordverif)\n {\n\n if($newpassword != $newpasswordverif)\n {\n $msgs[] = \"Les mots de passe ne correspondent pas.\";\n }\n\n else\n {\n $this->user->newPassword($newpassword, $id);\n $msgs[] = \"Le mot de passe a bien été mis à jour.\";\n }\n }\n\n // j'arrive sur la vue en POST mais le champs newpassword ou le champs newpasswordverif n'est pas saisi\n // j'affiche des erreurs insérées dans un tableau.\n else if($_SERVER['REQUEST_METHOD'] === 'POST')\n {\n if(!$newpassword)\n {\n $msgs[] = \"Le nouveau mot de passe n'a pas été saisi correctement.\";\n }\n\n if(!$newpasswordverif)\n {\n $msgs[] = \"La confirmation du nouveau mot de passe n'a pas été saisi correctement.\";\n }\n }\n\n // j'arrive sur la vue en Get\n $this->buildView(array('id' => $id, 'login' => $login, 'msgs' => $msgs));\n\n }", "static public function mdlEditarUsuarios($tabla, $datos){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"UPDATE $tabla SET nombres = :nombres, \n\t\t\t\t\t\t\t\t\t\t\t\t\tpassword = :password, \n\t\t\t\t\t\t\t\t\t\t\t\t\tid_rol = :id_rol \n\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE usuario = :usuario\");\n\n\t\t\t$stmt -> bindparam(\":nombres\", $datos[\"nombres\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindparam(\":usuario\", $datos[\"usuario\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindparam(\":password\", $datos[\"password\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindparam(\":id_rol\", $datos[\"id_rol\"], PDO::PARAM_STR);\n\n if($stmt -> execute()){\n\n return \"ok\";\n\n }else{\n\n return \"error\";\n\n }\n\n $stmt = null;\n\n\t\t}", "public function editar() {\n\t\t$POST = array();\n\n\t\t\t##apagando indice de tokenrequest pois ele não existe na tabela de categorias\n\t\tunset($this->request->data['TokenRequest']);\t\n\n\t\t$POST = array('UsuarioCliente'=>$this->request->data);\t\n\t\tif ($this->UsuarioCliente->save($POST)) \n\t\t{\n\t\t\t$this->Message = 'Usuario editado com sucesso';\n\t\t\t$this->Return = true;\t\n\t\t} \n\n\t\telse \n\t\t{\n\t\t\t$this->Message = 'Ocorreu um erro na edição de seu Usuario.';\n\t\t\t$this->Return = false;\t\n\t\t}\n\n\t\t$this->EncodeReturn();\t\n\t}", "static public function ctrUpdateUnidad(){\n if(isset($_POST[\"editarAccion\"])){\n if(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"editarAccion\"])){\n $tabla = \"tipoaccion\";\n $datos = array(\n \"id\" => $_POST[\"idAccion\"],\n \"accion\" => $_POST[\"editarAccion\"]\n );\n\n $respuestas = ModeloTipoAccion::mdlUpdateUnidad($tabla,$datos);\n\n if($respuestas == \"ok\"){\n echo '<script>\n\n\t\t\t\t\tSwal.fire({\n\n\t\t\t\t\t\ticon: \"success\",\n\t\t\t\t\t\ttitle: \"¡La accion ha sido editado correctamente!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\n\t\t\t\t\t\t\twindow.location = \"tipoAccion\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\n\t\t\t\t\t</script>';\n }\n\n }else{\n echo '<script>\n\n\t\t\t\tSwal.fire({\n\n\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\ttitle: \"¡La accion no puede ir vacío o llevar caracteres especiales!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\twindow.location = \"tipoaccion\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\n\t\t\t\t</script>';\n }\n\n }\n }", "static public function ctrRegistroUsuario()\n {\n if (isset($_POST['regUsuario'])) {\n /*Validando lo que venga por post, y validando que estengo, santeizadas los compaos*/\n if (preg_match('/^[a-zA-ZñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"regUsuario\"]) &&\n preg_match('/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/', $_POST[\"regEmail\"]) &&\n preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"regPassword\"])\n ) {\n\n $encriptar = crypt($_POST[\"regPassword\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n\n\n //encritamos en MD5 para que se ecnripte solo en alfanumerico sin caracteres especiales\n $encriptarEmail = md5($_POST[\"regEmail\"]);\n\n $datos = array(\"nombre\" => $_POST[\"regUsuario\"],\n \"password\" => $encriptar,\n \"email\" => $_POST[\"regEmail\"],\n \"foto\" => \"\",\n \"modo\" => \"directo\",\n \"verificacion\" => 1, // 1 siginifica que no ha verificado su cuenta, y 0 que si\n \"emailEncriptado\" => $encriptarEmail);\n\n\n $tabla = \"usuarios\";\n\n $respuesta = @ModeloUsuarios::mdlRegistroUsuario($tabla, $datos);\n\n if ($respuesta == 'ok') {\n /*=============================================\n VERIFICACIÓN CORREO ELECTRÓNICO\n =============================================*/\n //definimos sona horaria para enviar el correo\n date_default_timezone_set(\"America/Bogota\");\n\n $url = @Ruta::ctrRuta();\n //instancioamos la libreria\n $mail = new PHPMailer;\n\n $mail->CharSet = 'UTF-8';\n\n $mail->isMail();\n //de donde se va a enviar el correo\n $mail->setFrom('[email protected]', 'Ingeniero Gustavo');\n // responder el correo a\n $mail->addReplyTo('[email protected]', 'Ingeniero Gustavo');\n // asunto\n $mail->Subject = \"Por favor verifique su dirección de correo electrónico\";\n //email de destinatario\n $mail->addAddress($_POST[\"regEmail\"]);\n // Mensaje que se enviara, com omaqueta HTML\n $mail->msgHTML('<div style=\"width:100%; background:#eee; position:relative; font-family:sans-serif; padding-bottom:40px\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<center>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<img style=\"padding:20px; width:10%\" src=\"http://tutorialesatualcance.com/tienda/logo.png\">\n\n\t\t\t\t\t\t</center>\n\n\t\t\t\t\t\t<div style=\"position:relative; margin:auto; width:600px; background:white; padding:20px\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<center>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<img style=\"padding:20px; width:15%\" src=\"http://tutorialesatualcance.com/tienda/icon-email.png\">\n\n\t\t\t\t\t\t\t<h3 style=\"font-weight:100; color:#999\">VERIFIQUE SU DIRECCIÓN DE CORREO ELECTRÓNICO</h3>\n\n\t\t\t\t\t\t\t<hr style=\"border:1px solid #ccc; width:80%\">\n\n\t\t\t\t\t\t\t<h4 style=\"font-weight:100; color:#999; padding:0 20px\">Para comenzar a usar su cuenta de Tienda Virtual, debe confirmar su dirección de correo electrónico</h4>\n\n\t\t\t\t\t\t\t<a href=\"' . $url . 'verificar/' . $encriptarEmail . '\" target=\"_blank\" style=\"text-decoration:none\">\n\n\t\t\t\t\t\t\t<div style=\"line-height:60px; background:#0aa; width:60%; color:white\">Verifique su dirección de correo electrónico</div>\n\n\t\t\t\t\t\t\t</a>\n\n\t\t\t\t\t\t\t<br>\n\n\t\t\t\t\t\t\t<hr style=\"border:1px solid #ccc; width:80%\">\n\n\t\t\t\t\t\t\t<h5 style=\"font-weight:100; color:#999\">Si no se inscribió en esta cuenta, puede ignorar este correo electrónico y la cuenta se eliminará.</h5>\n\n\t\t\t\t\t\t\t</center>\n\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t</div>');\n\n $envio = $mail->Send();\n\n if (!$envio) {\n echo '<script> \n\n\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t title: \"¡ERROR!\",\n\t\t\t\t\t\t\t\t text: \"¡Ha Ocurrido un problema, enviando verificacion de correo electronico a ' . $_POST[\"regEmail\"] . $mail->ErrorInfo . '!\",\n\t\t\t\t\t\t\t\t type:\"error\",\n\t\t\t\t\t\t\t\t confirmButtonText: \"Cerrar\",\n\t\t\t\t\t\t\t\t closeOnConfirm: false\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tfunction (isConfirm){\n\t\t\t\t\t\t\t if(isConfirm){\n\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t</script>';\n } else {\n /*Si se envio el correo al usuario muestra la alerta de revisar el mail*/\n //Debe realizar la verificacion de correo electronico\n echo '<script> \n\n\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t title: \"¡OK!\",\n\t\t\t\t\t\t\t\t text: \"¡Por favor revise la bandeja de entrada de su correo electronico,' . $_POST[\"regEmail\"] . ' para verificar su cuenta!\",\n\t\t\t\t\t\t\t\t type:\"success\",\n\t\t\t\t\t\t\t\t confirmButtonText: \"Cerrar\",\n\t\t\t\t\t\t\t\t closeOnConfirm: false\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tfunction (isConfirm){\n\t\t\t\t\t\t\t if(isConfirm){\n\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t</script>';\n }\n\n\n }\n } else {\n echo '<script> \n\n\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t title: \"¡ERROR!\",\n\t\t\t\t\t\t\t\t text: \"¡Error al registrar el usuario, no se permiten caracteres especiales\",\n\t\t\t\t\t\t\t\t type:\"error\",\n\t\t\t\t\t\t\t\t confirmButtonText: \"Cerrar\",\n\t\t\t\t\t\t\t\t closeOnConfirm: false\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tfunction (isConfirm){\n\t\t\t\t\t\t\t if(isConfirm){\n\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t</script>';\n }\n } else {\n\n\n }\n }", "public function testUpdateUser()\n {\n }" ]
[ "0.7542181", "0.73157036", "0.72649413", "0.7222712", "0.7188906", "0.71738124", "0.7152698", "0.70813257", "0.7032151", "0.70117617", "0.6958499", "0.69394314", "0.6936736", "0.6935509", "0.6935146", "0.6928697", "0.69242936", "0.6922534", "0.6913754", "0.6907868", "0.69003266", "0.6875858", "0.6862302", "0.6853234", "0.6838619", "0.6808489", "0.68002427", "0.67885494", "0.678693", "0.67834735", "0.67691636", "0.67661446", "0.67540514", "0.6736274", "0.67304045", "0.66826844", "0.66820025", "0.6669786", "0.6668266", "0.6666547", "0.6639193", "0.66149366", "0.6602668", "0.6584017", "0.6578263", "0.65714926", "0.6567022", "0.656414", "0.65264565", "0.6525237", "0.65165454", "0.6516433", "0.6515183", "0.65134716", "0.65052664", "0.65001076", "0.64829093", "0.6480972", "0.64801943", "0.64777154", "0.6477206", "0.6476946", "0.6458197", "0.6456294", "0.64502084", "0.64407104", "0.643898", "0.6437035", "0.6426929", "0.64216036", "0.64145535", "0.6413259", "0.6403206", "0.6401854", "0.63997185", "0.63986796", "0.6395174", "0.63860965", "0.6379715", "0.6375781", "0.6375229", "0.63696676", "0.6368335", "0.6364828", "0.63626254", "0.63551015", "0.63515025", "0.6340226", "0.6337391", "0.6334632", "0.6328987", "0.63283557", "0.63253343", "0.6318417", "0.6318004", "0.63157743", "0.6309539", "0.63092947", "0.6295777", "0.6293883", "0.62934494" ]
0.0
-1
Funcion que encuentra el ultimo historial de un contrato
public function findLastContractHistorial($interestContractsId){ $this->loadModel('ContractHistorial'); $foundContractHistorial = $this->ContractHistorial->find('first',array('order'=>'ContractHistorial.id DESC', 'conditions'=> array('ContractHistorial.interest_contracts_id' => $interestContractsId))); return $foundContractHistorial; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function defiva($subt,$saldoi,$pago){\n $pagoiva;\n $resto = $saldoi -$subt;\n if($resto >0){\n // queda iva por aplicar\n if($resto>$pago){$pagoiva=$pago;}else{$pagoiva=$resto;}\n }else{\n //todo a capital\n $pagoiva = 0;\n }\n return $pagoiva;\n}", "function historial(){\n\n\t\t//Instanciamos y nos conectamos a la bd\n\t\t$Conexion = floopets_BD::Connect();\n\t\t$Conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t//Crear el query que vamos a realizar\n\t\t$consulta = \"SELECT tipo_denuncia.*,denuncia.* FROM denuncia INNER JOIN tipo_denuncia ON denuncia.td_cod_tipo_denuncia=tipo_denuncia.td_cod_tipo_denuncia WHERE denuncia.de_estado='tomado'\";\n\t\t$query = $Conexion->prepare($consulta);\n\t\t$query->execute();\n\t\t//Devolvemos el resultado en un arreglo\n\t\t//Fetch: es el resultado que arroja la consulta en forma de un vector o matriz segun sea el caso\n\t\t//Para consultar donde arroja mas de un dato el fatch debe ir acompañado con la palabra ALL\n\t\t$resultado = $query->fetchALL(PDO::FETCH_BOTH);\n\t\treturn $resultado;\n\t\tfloopets_BD::Disconnect();\n\t}", "public static function getUltimoPeriodoHistorico($tipo){\n $mysqli = Database::getInstance();\n $query=<<<sql\nSELECT * FROM prorrateo_periodo \nWHERE tipo = \"$tipo\" AND status != 0\nORDER BY prorrateo_periodo.prorrateo_periodo_id DESC \nsql;\n return $mysqli->queryOne($query);\n }", "static public function ctrCrearHistorial(){\n\n\t\tif(isset($_POST[\"nuevoTitulo\"])){\n\n\t\t\tif(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"nuevoTitulo\"]) &&\n\t\t\t preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ),\\r\\n ]+$/', $_POST[\"nuevaDescripcionHistorial\"])){\n\n\t\t\t\t$tabla = \"historial\";\n\n\t\t\t\t$idPaciente = $_GET[\"idPaciente\"];\n\n\t\t\t\t$datos = array(\"titulo\" => Cifrar::encrypt($_POST[\"nuevoTitulo\"]),\n\t\t\t\t\t\t\t \"descripcion\" => Cifrar::encrypt($_POST[\"nuevaDescripcionHistorial\"]));\n\n\t\t\t\t$respuesta = ModeloHistorial::mdlIngresarHistorial($tabla, $idPaciente, $datos);\n\n\t\t\t\tif($respuesta == \"ok\"){\n\n\t\t\t\t\techo'<script>\n\n\t\t\t\t\t\tSwal.fire({\n\t\t\t\t\t\t\t icon: \"success\",\n\t\t\t\t\t\t\t title: \"El historial ha sido guardado correctamente\",\n\t\t\t\t\t\t\t showConfirmButton: true,\n\t\t\t\t\t\t\t confirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t\t }).then(function(result){\n\t\t\t\t\t\t\t\t\t\tif (result.value) {\n\n\t\t\t\t\t\t\t\t\t\twindow.location = \"\";\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t})\n\n\t\t\t\t\t\t</script>';\n\n\t\t\t\t}\n\n\n\t\t\t}else{\n\n\t\t\t\techo'<script>\n\n\t\t\t\t\tSwal.fire({\n\t\t\t\t\t\t icon: \"error\",\n\t\t\t\t\t\t title: \"¡El historial no puede ir con los campos vacíos o llevar caracteres especiales!\",\n\t\t\t\t\t\t showConfirmButton: true,\n\t\t\t\t\t\t confirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t }).then(function(result){\n\t\t\t\t\t\t\tif (result.value) {\n\n\t\t\t\t\t\t\twindow.location = \"\";\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\n\t\t\t \t</script>';\n\t\t\t}\n\t\t}\n\n\t}", "function Historia($id_srodka_trwalego, $kod, $tresc_problem, $data_wpisu, $kto_wpisal,$tresc_rozwiazanie, $dokument, $informacje_dodatkowe, $nr_inwentarzowy, $nr_inwentarzowy2, $uzytkownik_wydzial)\n{\n $zapytanie =\"\";\n $polaczenie = polaczenie_z_baza();\n $zapytanie = \"INSERT INTO historia (kto_utworzyl, wydział, data_utworzenia, kod, nr_inwentarzowy, nr_inwentarzowy_2, problem, rozwiazanie, dokument, dodatkowe, id_srodka_trwalego) VALUES \n ('$kto_wpisal','$uzytkownik_wydzial','$data_wpisu','$kod','$nr_inwentarzowy','$nr_inwentarzowy2','$tresc_problem','$tresc_rozwiazanie','$dokument','$informacje_dodatkowe','$id_srodka_trwalego')\";\n $zapisz_do_histori = mysqli_query($polaczenie,\"$zapytanie\") or die(\"Blad przy zapisz_do_histori\");\n\n //1 - Rozkompletowanie :\n //2 - Protokół Stanu Technicznego :\n //3 - Serwis :\n //4 - Na Magazyn :\n //5 - Spis :\n //6 - Drukarki :\n //7 - Dodanie nowego ST : Historia(\"$st_dodane_id\",7,\"$st_ewidencja_nazwa\",\"$data_aktualna_pelna\",\"$użytkownik_imie_nazwisko\",\"\",\"\",\"\",\"$st_ewidencja_nr_ewidencyjny\",\"\",\"$uzytkownik_wydzial - $uzytkownik_sekcja\");\n //8 - Edycja/Aktualizacja ST : Historia(\"$st_dodane_id\",7,\"$st_ewidencja_nazwa\",\"$data_aktualna_pelna\",\"$użytkownik_imie_nazwisko\",\"\",\"\",\"\",\"$st_ewidencja_nr_ewidencyjny\",\"\",\"$uzytkownik_wydzial - $uzytkownik_sekcja\");\n //9 - Asygnata :\n //10 - Skopletowanie ST :\n //11 -\n //12 -\n\n}", "function visites_mensuelles_chiffres($global_jour) {\r\n\tglobal $couleur_foncee, $couleur_claire;\r\n\r\n\t$periode = date('m/y'); // mois /annee en cours (format de $date)\r\n\t$dday = date('j'); // numero du jour\r\n\t$nb_mois = $GLOBALS['actijour']['nbl_mensuel']; // nombre mois affiche\r\n\r\n\t$requete = \"FROM_UNIXTIME(UNIX_TIMESTAMP(date),'%m') AS d_mois, \r\n\t\t\tFROM_UNIXTIME(UNIX_TIMESTAMP(date),'%y') AS d_annee, \r\n\t\t\tFROM_UNIXTIME(UNIX_TIMESTAMP(date),'%m/%y') AS date_unix, \r\n\t\t\tSUM(visites) AS visit_mois \r\n\t\t\tFROM spip_visites WHERE date > DATE_SUB(NOW(),INTERVAL 2700 DAY) \r\n\t\t\tGROUP BY date_unix ORDER BY date DESC LIMIT 0,$nb_mois\";\r\n\r\n\t// calcul du $divis : MAX de visites_mois\r\n\t$r = sql_select($requete);\r\n\t$tblmax = array();\r\n\twhile ($rmx = @sql_fetch($r)) {\r\n\t\t$tblmax[count($tblmax) + 1] = $rmx['visit_mois'];\r\n\t}\r\n\treset($tblmax);\r\n\r\n\tif (count($tblmax) == 0) {\r\n\t\t$tblmax[] = 1;\r\n\t}\r\n\t$divis = max($tblmax) / 100;\r\n\r\n\t//le tableau a jauges horizontales\r\n\t$aff .= debut_cadre_relief(\"\", true)\r\n\t\t. \"<span class='arial2'>\" . _T('actijour:entete_tableau_mois', array('nb_mois' => $nb_mois)) . \"\\n</span>\"\r\n\t\t. \"<table width='100%' cellpadding='2' cellspacing='0' border='0' class='arial2'>\\n\"\r\n\t\t. \"<tr><td align='left'>\" . _T('actijour:mois_pipe')\r\n\t\t. \"</td><td width='50%'>\" . _T('actijour:moyenne_mois') . \"</td>\\n\"\r\n\t\t. \"<td><b>\" . _T('actijour:visites') . \"</b></td></tr>\";\r\n\r\n\t$ra = sql_select($requete);\r\n\twhile ($row = sql_fetch($ra)) {\r\n\t\t$val_m = $row['d_mois'];\r\n\t\t$val_a = $row['d_annee'];\r\n\t\t$date = $row['date_unix'];\r\n\t\t$visit_mois = $row['visit_mois'];\r\n\t\t$idefix = '';\r\n\r\n\t\t//nombre de jours du mois $mois\r\n\t\t$mois = mktime(0, 0, 0, $val_m, 1, $val_a);\r\n\t\t$nbr_jours = intval(date(\"t\", $mois));\r\n\r\n\t\t// nombre de jours, moyenne, si mois en cours\r\n\t\tif ($date != $periode) {\r\n\t\t\t$nbj = $nbr_jours;\r\n\t\t\t$moy_mois = floor($visit_mois / $nbj);\r\n\t\t\t$totvisit = $visit_mois;\r\n\t\t} else {\r\n\t\t\t$nbj = ($dday == 1) ? $dday : $dday - 1;\r\n\t\t\t$moy_mois = floor(($visit_mois - $global_jour) / $nbj);\r\n\t\t\t$totvisit = $visit_mois - $global_jour;\r\n\t\t\t$idefix = \"*\";\r\n\t\t}\r\n\t\t$totvisit = number_format($totvisit, 0, ',', '.');\r\n\r\n\t\t//longeur jauge (ne tiens pas compte du jour en cour)\r\n\t\t$long = floor($visit_mois / $divis);\r\n\r\n\t\t// couleur de jauge pour mois le plus fort\r\n\t\t$color_texte = '';\r\n\t\tif ($long == 100) {\r\n\t\t\t$coul_jauge = $couleur_foncee;\r\n\t\t\t$color_texte = \"style='color:#ffffff;'\";\r\n\t\t} else {\r\n\t\t\t$coul_jauge = $couleur_claire;\r\n\t\t}\r\n\r\n\t\t$aff .= \"<tr><td class='arial2' colspan='3'>\"\r\n\t\t\t. \"<div style='position:relative; z-index:1; width:100%;'>\"\r\n\t\t\t. \"<div class='cell_info_mois'>$date</div>\"\r\n\t\t\t. \"<div class='cell_moymens'>$moy_mois</div>\"\r\n\t\t\t. \"<div class='cell_info_tot' $color_texte><b>$totvisit</b>$idefix</div>\"\r\n\t\t\t. \"</div>\";\r\n\t\t# barre horiz \r\n\t\t$aff .= \"<div class='fond_barre'>\\n\"\r\n\t\t\t. \"<div style='width:\" . $long . \"%; height:11px; background-color:\" . $coul_jauge . \";'></div>\\n\"\r\n\t\t\t. \"</div>\\n\"\r\n\t\t\t. \"</td></tr>\\n\";\r\n\r\n\t}\r\n\t$aff .= \"<tr><td colspan='3'><span class='verdana1'>\"\r\n\t\t. _T('actijour:pied_tableau_mois') . \"</span></td></tr>\\n\"\r\n\t\t. \"</table></span>\\n\";\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n\r\n}", "static public function ctrHistorial(){\n\n\t\t// FACTURAS\n\t\t$tabla = \"cta\";\n\t\t$respuesta = ModeloVentas::mdlHistorial($tabla);\n\t\t\n\n\t\tforeach ($respuesta as $key => $value) {\n\n\t\t\t// veo los items de la factura\n\t\t\t$tabla = \"ctaart\";\n\t\t\t$repuestos = ModeloVentas::mdlHistorialCta_art($tabla,$value['idcta']);\n\t\t\t\n\t\t\t$productos='';\n\n\t\t\tfor($i = 0; $i < count($repuestos)-1; $i++){\n\t\t\t\t\n\t\t\t\t$productos = '{\"id\":\"'.$repuestos[$i][\"idarticulo\"].'\",\n\t\t\t \"descripcion\":\"'.$repuestos[$i][\"nombre\"].'\",\n\t\t\t \"cantidad\":\"'.$repuestos[$i][\"cantidad\"].'\",\n\t\t\t \"precio\":\"'.$repuestos[$i][\"precio\"].'\",\n\t\t\t \"total\":\"'.$repuestos[$i][\"precio\"].'\"},';\n\t\t\t}\n\n\t\t\t$productos = $productos . '{\"id\":\"'.$repuestos[count($repuestos)-1][\"idarticulo\"].'\",\n\t\t\t \"descripcion\":\"'.$repuestos[count($repuestos)-1][\"nombre\"].'\",\n\t\t\t \"cantidad\":\"'.$repuestos[count($repuestos)-1][\"cantidad\"].'\",\n\t\t\t \"precio\":\"'.$repuestos[count($repuestos)-1][\"precio\"].'\",\n\t\t\t \"total\":\"'.$repuestos[count($repuestos)-1][\"precio\"].'\"}';\n\n\t\t\t$productos =\"[\".$productos.\"]\";\n\t\t\t\n\t\t\techo '<pre>'; print_r($productos); echo '</pre>';\n\t\t\t\n\t\t\t// datos para cargar la factura\n\t\t\t$tabla = \"ventas\";\n\t\t\t$datos = array(\"id_vendedor\"=>1,\n\t\t\t\t\t\t \"fecha\"=>$value['fecha'],\n\t\t\t\t\t\t \"id_cliente\"=>$value[\"idcliente\"],\n\t\t\t\t\t\t \"codigo\"=>$key,\n\t\t\t\t\t\t \"nrofc\"=>$value[\"nrofc\"],\n\t\t\t\t\t\t \"detalle\"=>strtoupper($value[\"obs\"]),\n\t\t\t\t\t\t \"productos\"=>$productos,\n\t\t\t\t\t\t \"impuesto\"=>0,\n\t\t\t\t\t\t \"neto\"=>0,\n\t\t\t\t\t\t \"total\"=>$value[\"importe\"],\n\t\t\t\t\t\t \"adeuda\"=>$value[\"adeuda\"],\n\t\t\t\t\t\t \"obs\"=>\"\",\n\t\t\t\t\t\t \"metodo_pago\"=>$value[\"detallepago\"],\n\t\t\t\t\t\t \"fechapago\"=>$value['fecha']);\n\n\t\t\t$respuesta = ModeloVentas::mdlIngresarVenta($tabla, $datos);\n\t\t\t\n\n\t\t}\n\t\t\n\t\treturn $respuesta;\n\n\t\t\n\t\t\n\t}", "function Subir_Historico($Id,$Fecha_Anulacion,$Causa_Anulacion,$Operador_Anulacion)\n{\n // en eventos, calcula el estado y deja el evento que \n // lo pasó a histórico como anulado.\n \n \n $Instruccion = \"SELECT Id_Pedido,Codigo_Evento,Codigo_Pais,Codigo_Institucion,Codigo_Dependencia,Fecha,Observaciones,Operador,Es_Privado,Numero_Paginas,Id_Correo,Id FROM EvHist WHERE Id_Pedido='\".$Id.\"'\";\n $Instruccion .= \" ORDER BY Fecha,Id\";\n $result = mysql_query($Instruccion);\n echo mysql_error();\n while($row = mysql_fetch_row($result))\n { \n // Inserto todos los eventos menos la entrega, cancelación, etc\n\t \n\t $condicion = (Determinar_Estado($row[1])!=Devolver_Estado_Cancelado() && Determinar_Estado($row[1])!=Devolver_Estado_Entregado());\n\t\n\t \n\t if ($row[1]!=Devuelve_Evento_Observado() && $condicion )\n\t {\n\t $Ultimo_Estado = Determinar_Estado ($row[1]);\n\t }\n \n if ($condicion)\n\t {\n if ($row[10]==\"\")\n {\n \t$row[10]=0;\n }\n $Instruccion = \"INSERT INTO Eventos (Id_Pedido,Codigo_Evento,Codigo_Pais,Codigo_Institucion,Codigo_Dependencia,Fecha,Observaciones\"; \n $Instruccion = $Instruccion.\",Operador,Es_Privado,Numero_Paginas,Id_Correo) VALUES ('\".$row[0].\"',\".$row[1].\",\".$row[2].\",\".$row[3].\",\".$row[4].\",'\".$row[5];\n $Instruccion = $Instruccion.\"','\".$row[6].\"',\".$row[7].\",\".$row[8].\",\".$row[9].\",\".$row[10].\")\";\n // echo $Instruccion;\n\t $result2 = mysql_query($Instruccion); \n\t echo mysql_error(); \n }\n\t else\n\t {\n\t // La entrega la inserto como anulada con las causas, fecha y operador de baja\n\t if ($row[10]==\"\")\n {\n \t$row[10]=0;\n }\n $Instruccion = \"INSERT INTO EvAnula (Id_Pedido,Codigo_Evento,Codigo_Pais,Codigo_Institucion,Codigo_Dependencia,Fecha,Observaciones\"; \n $Instruccion = $Instruccion.\",Operador,Es_Privado,Numero_Paginas,Id_Correo,Fecha_Anulacion,Causa_Anulacion,Operador_Anulacion) VALUES ('\".$row[0].\"',\".$row[1].\",\".$row[2].\",\".$row[3].\",\".$row[4].\",'\".$row[5];\n $Instruccion = $Instruccion.\"','\".$row[6].\"',\".$row[7].\",\".$row[8].\",\".$row[9].\",\".$row[10].\",'\".$Fecha_Anulacion.\"','\".$Causa_Anulacion.\"',\".$Operador_Anulacion.\")\";\n $result2 = mysql_query($Instruccion); \n\t echo mysql_error(); \n\t }\n }\n \n \n $expresion = \"SELECT PedHist.Id,PedHist.Codigo_Usuario,Tipo_Pedido,Tipo_Material,Titulo_Libro,Autor_Libro,Editor_Libro\"; \n $expresion = $expresion.\",Anio_Libro,Desea_Indice,Capitulo_Libro,Numero_Patente,Codigo_Pais_Patente,Pais_Patente,Anio_Patente\";\n $expresion = $expresion.\",Autor_Detalle1,Autor_Detalle2,Autor_Detalle3,Codigo_Titulo_Revista\";\n $expresion = $expresion.\",Titulo_Revista,Titulo_Articulo,Volumen_Revista,Numero_Revista,Anio_Revista\";\n $expresion = $expresion.\",Pagina_Desde,Pagina_Hasta,TituloCongreso,Organizador,NumeroLugar,Anio_Congreso\";\n $expresion = $expresion.\",PaginaCapitulo,PonenciaActa,Codigo_Pais_Congreso,Otro_Pais_Congreso,TituloTesis\";\n $expresion = $expresion.\",AutorTesis,DirectorTesis,GradoAccede,Codigo_Pais_Tesis,Otro_Pais_Tesis,Codigo_Institucion_Tesis\";\n $expresion = $expresion.\",Otra_Institucion_Tesis,Codigo_Dependencia_Tesis,Otra_Dependencia_Tesis,Anio_Tesis,PagCapitulo\";\n // Era el 25 ahora es 45\n $expresion = $expresion.\",Fecha_Alta_Pedido,Estado,Biblioteca_Sugerida,Observaciones,Ultimo_Pais_Solicitado,Ultima_Institucion_Solicitado,Ultima_Dependencia_Solicitado,Operador_Corriente\";\n $expresion = $expresion.\",Fecha_Inicio_Busqueda,Fecha_Recepcion,Fecha_Solicitado,Fecha_Entrega,Numero_Paginas\";\n $expresion = $expresion.\",Usuarios.Codigo_Categoria,Tardanza_Atencion,Tardanza_Busqueda,Tardanza_Recepcion\";\n \n // La idea es obtener el origen de los pedidos\n $expresion = $expresion.\",Instituciones.Codigo_Pais,Usuarios.Codigo_Institucion,Usuarios.Codigo_Dependencia,Observado,Archivos_Totales \";\n\n $expresion = $expresion.\" FROM PedHist\";\n $expresion = $expresion.\" LEFT JOIN Usuarios ON Usuarios.Id=PedHist.Codigo_usuario\";\n $expresion = $expresion.\" LEFT JOIN Instituciones ON Usuarios.Codigo_Institucion=Instituciones.Codigo\";\n $expresion = $expresion.\" WHERE PedHist.Id='\".$Id.\"'\";\n\n\n /// echo $expresion;\n $result = mysql_query($expresion);\n $row = mysql_fetch_row($result);\n echo mysql_error();\n \n \n \n\n // Esto se agrega por cuestiones de compatibilidad en relación a los datos\n // Históricos entregados \n \n $row[14]=strtr($row[14],\"'\",\"\\'\");\n $row[15]=strtr($row[15],\"'\",\"\\'\");\n $row[16]=strtr($row[16],\"'\",\"\\'\");\n\t\n $row[18]=strtr($row[18],\"'\",\"\\'\");\n $row[19]=strtr($row[19],\"'\",\"\\'\");\n \n if ($row[59]==\"\") \n {\n $row[59]=0;\n }\n \n if ($row[60]==\"\")\n {\n $row[60]=0;\n }\n \n if ($row[61]==\"\")\n {\n $row[61]=0;\n }\n \n\n // El Estado debería cambiar al anterior antes de anular el evento de entrega\n // que lo dejó en Histórico\n \n \n $Instruccion = \"INSERT INTO Pedidos (Id,Codigo_Usuario,Tipo_Pedido,Tipo_Material,Titulo_Libro,Autor_Libro,Editor_Libro\"; \n $Instruccion = $Instruccion.\",Anio_Libro,Desea_Indice,Capitulo_Libro,Numero_Patente,Codigo_Pais_Patente,Pais_Patente,Anio_Patente\";\n $Instruccion = $Instruccion.\",Autor_Detalle1,Autor_Detalle2,Autor_Detalle3,Codigo_Titulo_Revista\";\n $Instruccion = $Instruccion.\",Titulo_Revista,Titulo_Articulo,Volumen_Revista,Numero_Revista,Anio_Revista\";\n $Instruccion = $Instruccion.\",Pagina_Desde,Pagina_Hasta,TituloCongreso,Organizador,NumeroLugar,Anio_Congreso\";\n $Instruccion = $Instruccion.\",PaginaCapitulo,PonenciaActa,Codigo_Pais_Congreso,Otro_Pais_Congreso,TituloTesis\";\n $Instruccion = $Instruccion.\",AutorTesis,DirectorTesis,GradoAccede,Codigo_Pais_Tesis,Otro_Pais_Tesis,Codigo_Institucion_Tesis\";\n $Instruccion = $Instruccion.\",Otra_Institucion_Tesis,Codigo_Dependencia_Tesis,Otra_Dependencia_Tesis,Anio_Tesis,PagCapitulo\";\n $Instruccion = $Instruccion.\",Fecha_Alta_Pedido,Estado,Biblioteca_Sugerida,Observaciones,Ultimo_Pais_Solicitado,Ultima_Institucion_Solicitado,Ultima_Dependencia_Solicitado,Operador_Corriente\";\n $Instruccion = $Instruccion.\",Fecha_Inicio_Busqueda,Fecha_Recepcion,Fecha_Solicitado\";\n $Instruccion = $Instruccion.\",Tardanza_Atencion,Tardanza_Busqueda,Tardanza_Recepcion,Numero_Paginas,Observado,Archivos_Totales) VALUES (\";\n $Instruccion = $Instruccion.\"'\".$row[0].\"',\".$row[1].\",\".$row[2].\",\".$row[3].\",'\".$row[4].\"','\".$row[5].\"','\".$row[6].\"',\";\n $Instruccion = $Instruccion.\"'\".$row[7].\"',\".$row[8].\",'\".$row[9].\"','\".$row[10].\"',\".$row[11].\",'\".$row[12].\"','\".$row[13].\"',\";\n $Instruccion = $Instruccion.\"'\".$row[14].\"','\".$row[15].\"','\".$row[16].\"','\".$row[17].\"',\";\n $Instruccion = $Instruccion.\"'\".$row[18].\"','\".$row[19].\"','\".$row[20].\"','\".$row[21].\"','\".$row[22].\"',\";\n $Instruccion = $Instruccion.\"'\".$row[23].\"','\".$row[24].\"',\";\n \n // Esto es Titulo Congreso y los agregados de los nuevos pedidos\n \n $Instruccion = $Instruccion.\"'\".$row[25].\"','\".$row[26].\"',\";\n $Instruccion = $Instruccion.\"'\".$row[27].\"','\".$row[28].\"','\".$row[29].\"','\".$row[30].\"',\".$row[31].\",\";\n $Instruccion = $Instruccion.\"'\".$row[32].\"','\".$row[33].\"','\".$row[34].\"','\".$row[35].\"','\".$row[36].\"',\".$row[37].\",\";\n $Instruccion = $Instruccion.\"'\".$row[38].\"',\".$row[39].\",'\".$row[40].\"',\".$row[41].\",'\".$row[42].\"','\".$row[43].\"','\".$row[44].\"',\";\n \n // Estas son las fechas de alta\n \n\n \n $Instruccion = $Instruccion.\"'\".$row[45].\"','\".$Ultimo_Estado.\"'\"; \n $Instruccion = $Instruccion.\",'\".$row[47].\"','\".$row[48].\"',\".$row[49].\",\".$row[50].\",\".$row[51].\",\".$row[52]; \t\n $Instruccion = $Instruccion.\",'\".$row[53].\"','\".$row[54].\"','\".$row[55].\"',\";\n$Instruccion = $Instruccion.$row[59].\",\".$row[60].\",\".$row[61].\",\".$row[57].\",'\".$row[65].\"',\".$row[66].\")\";\n// echo $Instruccion; \t\n $result = mysql_query($Instruccion); \n echo mysql_error(); \n $query = \"UPDATE Archivos_Pedidos SET Permitir_Download = 1 WHERE codigo_pedido = '\".$Id.\"'\";\n\t $resu = mysql_query($query);\n\t echo mysql_error();\n\n // Por ultimo elimina la info de los pedidos y eventos\n $Instruccion = \"DELETE FROM Eventos WHERE Codigo_Evento=\".Devolver_Estado_Download().\" and Id_Pedido='\".$Id.\"'\"; \n $result = mysql_query($Instruccion); \n\n\t \n $Instruccion = \"DELETE FROM PedHist WHERE Id='\".$Id.\"'\"; \n $result = mysql_query($Instruccion); \n\n $Instruccion = \"DELETE FROM EvHist WHERE Id_Pedido='\".$Id.\"'\"; \n $result = mysql_query($Instruccion); \n}", "public function recalculer_honoraire($facture_id)\n {\n $facture = Facture::where('id',Crypt::decrypt($facture_id))->first();\n\n// dd(Crypt::decrypt($facture_id));\n $compromis = $facture->compromis;\n \n $mandataire = $facture->user;\n $mandataire->nb_mois_pub_restant += $facture->nb_mois_deduis;\n $mandataire->update();\n \n \n \n // Pour recalculer il faut faire une remise à zéro dans le compromis, puis supprimer la facture et la recalculer\n // $mandataire->nb_mois_pub_restant -= $facture->nb_mois_deduis ; \n // $mandataire->update();\n\n /* --- remise à zéro en fonction du type de facture\n honoraire \n - facture_honoraire_cree\n partage \n - facture_honoraire_partage_cree \n - facture_honoraire_partage_porteur_cree\n\n parrainage \n - facture_honoraire_parrainage_cree\n\n parrainage_partage\n - facture_honoraire_parrainage_partage_cree\n */\n \n $proprietaire = $facture->user->nom.\" \".$facture->user->prenom ;\n $action = Auth::user()->nom.\" \".Auth::user()->prenom.\" a récalculé la facture $facture->type du mandat $compromis->numero_mandat appartenant à $proprietaire \";\n $user_id = Auth::user()->id;\n\n Historique::createHistorique( $user_id,$facture->id,\"facture\",$action );\n\n if($facture->type == \"honoraire\"){\n \n \n // On vérifie qu'il ne sagit pas de la première déduiction de jetons après encaissement de la facture styl si le mandataire est soumis aux jetons\n if( ($mandataire->contrat->deduis_jeton == true && $facture->nb_mois_deduis !== null) || $mandataire->contrat->deduis_jeton == false ){\n $compromis->facture_honoraire_cree = 0 ;\n $compromis->update();\n // dd($facture);\n $facture->delete();\n // dd('ici');\n \n }\n \n \n \n return redirect()->route('facture.preparer_facture_honoraire', [ Crypt::encrypt( $compromis->id)]);\n }elseif($facture->type == \"partage\"){\n // le mandataire qui porte l'affaire\n if($mandataire->id == $compromis->user_id){\n $compromis->facture_honoraire_partage_porteur_cree = 0 ;\n // dd('partage 1 ');\n \n\n }\n // le mandataire qui ne porte pas l'affaire\n else{\n $compromis->facture_honoraire_partage_cree = 0 ;\n // dd('partage 2');\n \n }\n \n \n \n // On vérifie qu'il ne sagit pas de la première déduiction de jetons après encaissement de la facture styl\n if( ($mandataire->contrat->deduis_jeton == true && $facture->nb_mois_deduis !== null) || $mandataire->contrat->deduis_jeton == false){\n $compromis->update();\n $facture->delete();\n }\n \n return redirect()->route('facture.preparer_facture_honoraire_partage', [ Crypt::encrypt( $compromis->id),$mandataire->id]);\n\n }\n elseif($facture->type == \"partage_externe\"){\n \n $compromis->facture_honoraire_partage_externe_cree = 0 ;\n $compromis->update();\n // dd($facture);\n $facture->delete();\n\n return redirect()->route('facture.preparer_facture_honoraire_partage_externe', [ Crypt::encrypt( $compromis->id)]);\n }\n \n \n \n elseif($facture->type == \"parrainage\"){\n $compromis->facture_honoraire_parrainage_cree = 0 ;\n\n $compromis->update();\n $facture->delete();\n \n if($facture->filleul_id !=null){\n return redirect()->route('facture.preparer_facture_honoraire_parrainage', [ Crypt::encrypt( $compromis->id),$facture->filleul_id]);\n\n }else{\n return redirect()->back()->with(\"ok\", \"la propriété filleul_id dans facture est vide\");\n\n }\n\n\n\n\n }elseif($facture->type == \"parrainage_partage\"){\n $compromis->facture_honoraire_parrainage_partage_cree = 0 ;\n\n $compromis->update();\n $facture->delete();\n \n if($facture->filleul_id !=null){\n return redirect()->route('facture.preparer_facture_honoraire_parrainage', [ Crypt::encrypt( $compromis->id),$facture->filleul_id]);\n\n }else{\n return redirect()->back()->with(\"ok\", \"la propriété filleul_id dans facture est vide\");\n\n }\n\n\n }else{\n return redirect()->back()->with(\"ok\", \"La note d'honoraire n'a pas été recalculée\");\n }\n \n\n \n \n $compromis->update();\n $facture->delete();\n\n\n return redirect()->back()->with(\"ok\", \"La note d'honoraire a été recalculée\");\n }", "function idUltimaEstructura()\r\n {\r\n $mg = ZendExt_Aspect_TransactionManager::getInstance();\r\n $conn = $mg->getConnection('metadatos');\r\n $q = Doctrine_Query::create($conn);\r\n\r\n ///$resultTotal \t= $this->conn->getTable ('DatEstructura')->findAll ();\r\n $result = $q->select(\"max(idestructuraop)\")->from('DatEstructuraop ')->execute();\r\n $arrelo = $result->toArray();\r\n return $arrelo[0]['max'];\r\n //$solve \t\t\t= array ('cant' => $resultTotal->count (), 'datos' => $resultado);\r\n\r\n }", "function getHistory(){\r\n\t\t// pobranie informacji o poprzedniej erze\r\n\t\t$zapytanie=\"select * from historia_koalicje where nr_ery = (select max(nr_ery) from historia_koalicje) and nazwa='\".$this->getName().\"';\";\r\n\t\t$historia=mysql_query($zapytanie)or Die(\"ups :)\");\r\n\t\tif(mysql_num_rows($historia)>0){\r\n\t\t\t$wiersz_h->dane=mysql_fetch_array($historia);\r\n\t\t\t$wiersz_h->czyJest='ok';\r\n\t\t}else{\r\n\t\t\t$wiersz_h->czyJest=false;\r\n\t\t}\r\n\t\treturn $wiersz_h;\r\n\t}", "function getCorrelativoComprobante() {\n\t\tglobal $bd;\n\t\tglobal $x_correlativo_comprobante;\n\t\t/// buscamos el ultimo correlativo\n\t\t$x_array_comprobante = $_POST['p_comprobante'];\n\t\t$correlativo_comprobante = 0; \n\t\t$idtipo_comprobante_serie = $x_array_comprobante['idtipo_comprobante_serie'];\n\t\tif ($x_array_comprobante['idtipo_comprobante'] != \"0\"){ // 0 = ninguno | no imprimir comprobante\n\n\t\n\t\t\t$sql_doc_correlativo=\"select (correlativo + 1) as d1 from tipo_comprobante_serie where idtipo_comprobante_serie = \".$idtipo_comprobante_serie;\t\t\n\t\t\t$correlativo_comprobante = $bd->xDevolverUnDato($sql_doc_correlativo);\n\n\t\t\t// if ($x_array_comprobante['codsunat'] === \"0\") { // si no es factura electronica\n\t\t\t\t// guardamos el correlativo //\n\t\t\t\t$sql_doc_correlativo = \"update tipo_comprobante_serie set correlativo = \".$correlativo_comprobante.\" where idtipo_comprobante_serie = \".$idtipo_comprobante_serie;\n\t\t\t\t$bd->xConsulta_NoReturn($sql_doc_correlativo);\n\t\t\t// } \n\t\t\t// si es factura elctronica guarda despues tigger ce \n\t\t} else {\n\t\t\t$correlativo_comprobante='0';\n\t\t}\n\n\t\t// SI TAMBIEN MODIFICA EN REGISTRO PAGO\n\t\t$x_correlativo_comprobante = $correlativo_comprobante;\n\t\tif ( strrpos($x_from, \"e\") !== false ) { $x_from = str_replace('e','',$x_from); setComprobantePagoARegistroPago(); }\n\n\t\t// print $correlativo_comprobante;\n\t\t$x_respuesta = json_encode(array('correlativo_comprobante' => $correlativo_comprobante));\n\t\tprint $x_respuesta.'|';\n\t}", "public function historial(Request $request) {\n $clienteID = $request->cliente;\n $historial = [];\n $totalNotaDebito = [];\n\n if ($clienteID == 0) {\n\n $historial = PagoNacional::historialPago($clienteID);\n $totalNotaDebito = PagoNacional::totalNotaDebito($clienteID);\n\n if ($totalNotaDebito[0]->totalNotaDebito == NULL || $totalNotaDebito[0]->deudaNotaDebito == NULL) {\n\n $historial = PagoNacional::historialPago($clienteID);\n $totalNotaDebito = PagoNacional::totalNotaDebitoNull($clienteID);\n\n }\n }\n\n if ($clienteID) {\n $historial = PagoNacional::historialPago($clienteID);\n $totalNotaDebito = PagoNacional::totalNotaDebito($clienteID);\n\n\n if ($totalNotaDebito[0]->totalNotaDebito == NULL || $totalNotaDebito[0]->deudaNotaDebito == NULL) {\n $historial = PagoNacional::historialPago($clienteID);\n $totalNotaDebito = PagoNacional::totalNotaDebitoNull($clienteID);\n\n }\n }\n\n //Datos de Nota Débito\n $totalND = $totalNotaDebito[0]->totalNotaDebito;\n $totalDeudaND = $totalNotaDebito[0]->deudaNotaDebito;\n //dd($totalND,$totalDeudaND);\n $busqueda = $request;\n $historial = collect($historial);\n $historial->total_cargo = $historial->sum('total') + $totalND;\n $historial->total_abono = $historial->total_cargo - ($historial->sum('deuda') + $totalDeudaND);\n $historial->total = $historial->total_cargo - $historial->total_abono;\n\n\n $clientes = ClienteNacional::where('id', '!=', '0')->get();\n\n return view('finanzas.pagosNac.historial')\n ->with([\n 'busqueda' => $busqueda,\n 'clientes' => $clientes,\n 'clienteID' => $clienteID,\n 'pagos' => $historial\n ]);\n }", "public function historiqueEnvoie($datedeb, $datefin, $agence)\n {\n require_once('../../lib/classes/Profil.php');\n $profils = new Profil();\n $date1 = $datedeb;\n $date2 = $datefin;\n $agency = $agence;\n $cond=\"\";\n $select= \"\";\n $from=\"\";\n $inclu\n =\"\";\n\n $type_profil=$profils->getProfilByIdInteger($this->idprofil);\n if($type_profil==1)\n {\n $cond.=\" AND tranfert.user_receiver=\".$_SESSION['rowid'];\n }\n if($type_profil==2 || $type_profil==3 || $type_profil==4)\n {\n $cond.=\" AND tranfert.user_receiver = user.rowid AND user.fk_agence =\".$this->idagence;\n }\n\n if($type_profil==6)\n {\n $from.=\", region \";\n $cond.=\" AND user.fk_agence = agence.rowid AND agence.region = region.idregion AND region.DR =\".$_SESSION['fk_DR'] ;\n }\n\n if($agency!=0)\n {\n $inclu.=\" AND agence.rowid =:agency\";\n }else{\n $inclu.=\" \";\n }\n\n $query_rq_historique = \" SELECT tranfert.idtransfert,tranfert.num_transac,tranfert.montant,tranfert.code, tranfert.frais, tranfert.montant_total, \";\n $query_rq_historique.= \" tranfert.date_tranfert, tranfert.nom_sender, tranfert.prenom_sender, tranfert.cin_sender, tranfert.tel_sender, tranfert.pays_sender, \";\n $query_rq_historique.= \" tranfert.nom_receiver, tranfert.prenom_receiver, tranfert.tel_receiver, tranfert.cin_receiver, tranfert.pays_receiver, tranfert.ville_receiver, \";\n $query_rq_historique.= \" tranfert.adresse_receiver,transaction.num_transac, tranfert.user_receiver \";\n $query_rq_historique.= \" FROM tranfert, transaction, agence, user \".$from;\n $query_rq_historique.= \" WHERE tranfert.statut=1 \".$cond.\"\n\t\t\t AND DATE(tranfert.date_tranfert) >= :date1\n\t\t\t AND DATE(tranfert.date_tranfert) <= :date2\n\t\t\t \".$inclu.\"\n\t\t\t AND tranfert.num_transac = transaction.num_transac\n\t\t\t AND transaction.fkuser = user.rowid\n\t\t\t AND user.fk_agence = agence.rowid\";\n $query_rq_historique.= \" ORDER BY transaction.date_transaction DESC \";\n $historique = $this->getConnexion()->prepare($query_rq_historique);\n $historique->bindParam(\"date1\", $date1);\n $historique->bindParam(\"date2\", $date2);\n if($agency!=0) $historique->bindParam(\"agency\", $agency);\n $historique->execute();\n $rs_historique= $historique->fetchAll();\n return $rs_historique;\n }", "function limite_trazadora($fecha) {\r\n $fecha = strtotime(fecha_db($fecha));\r\n $actualm = date('m', $fecha);\r\n $actualy = $actualy2 = date('Y', $fecha);\r\n // $ano = date('Y', $fecha);\r\n $desdem1 = '01';\r\n $hastam1 = '04';\r\n $desdem2 = '05';\r\n $hastam2 = '08';\r\n $desdem3 = '09';\r\n $hastam3 = '12';\r\n if ($actualm >= $desdem1 && $actualm <= $hastam1) {\r\n $cuatrimestre = 1;\r\n $cuatrimestrem = 3;\r\n //$actualy2++;\r\n }\r\n if ($actualm >= $desdem2 && $actualm <= $hastam2) {\r\n $cuatrimestre = 2;\r\n $cuatrimestrem = $cuatrimestre - 1;\r\n // $actualy2++;\r\n }\r\n if ($actualm >= $desdem3 && $actualm <= $hastam3) {\r\n $cuatrimestre = 3;\r\n $cuatrimestrem = $cuatrimestre - 1;\r\n $actualy2++;\r\n }\r\n\r\n $query2 = \"SELECT desde\r\n\t\t\t\t\tFROM facturacion.cuatrimestres\r\n\t\t\t\t\t WHERE cuatrimestre='$cuatrimestre'\";\r\n $res_sql2 = sql($query2) or excepcion(\"Error al buscar cuatrimestre\");\r\n $valor['desde'] = $actualy . '-' . $res_sql2->fields['desde'];\r\n\r\n $query2 = \"SELECT limite\r\n\t\t\t\t\tFROM facturacion.cuatrimestres\r\n\t\t\t\t\t WHERE cuatrimestre='$cuatrimestre'\";\r\n $res_sql2 = sql($query2) or excepcion(\"Error al buscar cuatrimestre\");\r\n\r\n $valor['limite'] = $actualy2 . '-' . $res_sql2->fields['limite'];\r\n\r\n return $valor;\r\n}", "private function checarPrioridade() {\n\n // Valor default da prioridade, assumindo que todos os sequentes já foram expandidos.\n $prioridade = \"Todos os sequentes foram expandidos.\";\n\n $noAtual = $this->raiz;\n\n // Percorre todos os nó do ramo. \n while($noAtual != NULL) {\n\n // Caso o nó ainda não tenha sido expandido.\n if(!$noAtual->expandido) {\n\n if($noAtual->tipo == \"SATURADO\") {\n return $noAtual;\n }else if($noAtual->tipo == \"ALFA\" && (!is_object($prioridade) || $prioridade->tipo == \"BETA\")) {\n $prioridade = $noAtual;\n }else if(!is_object($prioridade)) {\n $prioridade = $noAtual;\n }\n\n }\n\n // Busca o proximo nó do ramo.\n $noAtual = $noAtual->proximo;\n \n }\n \n // Retorna o ramo (objeto) que deve ser expandido.\n return $prioridade;\n\n }", "function mois_precedent($mois,$annee){\n\t$mois--;\n\tif($mois==0){\n\t\t$annee--;\n\t\t$mois=12;\n\t}\n\treturn $_SERVER['PHP_SELF'].\"?m=$mois&a=$annee\";\n}", "private function historial($idempleado,$idcarnet)\n {\n $idusuario = 1;\n $sesion = session('user_id');\n if(isset($sesion))\n {\n $idusuario = session('user_id');\n }\n if(session('user_id')){\n $idusuario = session('user_id');\n }\n $historial = Carnethistorial::where('idcarnet',$idcarnet)\n ->orderby(\"fecha\",\"desc\")\n ->orderby(\"hora\",\"desc\")->first();\n if($historial && $historial->idempleado==$idempleado){\n\n }else{\n Carnethistorial::create([\n 'fecha' => date(\"y-m-d\"),\n 'hora' => date(\"H:i:s\"),\n 'idcarnet' => $idcarnet,\n 'idempleado' => $idempleado,\n 'idusuario' => $idusuario\n ]);\n }\n }", "function Historial($modulo)\n{\n $sector = \"\";\n $grado = \"\";\n $institucion = \"\";\n $modulo = $modulo;\n\n $usuario = new Usuario();\n $usuario->setIdUsuario($_SESSION[\"ID_Usuario\"]);\n $sector = $usuario->getSector();\n\n /**\n * Dependiendo el secto se obtendra cierta informacion\n */\n switch ($sector) {\n case 'Educativo':\n $grado = $usuario->getGrado();\n $institucion = $usuario->getEscuela();\n break;\n case 'Público':\n $institucion = $usuario->getPublico();\n break;\n case 'Privado':\n $institucion = $usuario->getPrivado();\n break;\n }\n $consulta = new Consulta();\n $consulta->setSector($sector);\n $consulta->setGrado($grado);\n $consulta->setInstitucion($institucion);\n $consulta->setModulo($modulo);\n $consulta->Insert();\n}", "function cria_seq()\n{\n global $db;\n $sql=\"SELECT max(seq_restauro) as valor from restauro where tombo = '$_REQUEST[pNum_registro]' and controle='$_REQUEST[controle]' and tipo=4 and interna='I'\";\n $db->query($sql);\n $res=$db->dados(); \n if($res['valor']==null){\n echo 1;}\n else{\n echo $res['valor']+1;}\n}", "function gen_id()\n{\ninclude('../../conexion.php');\n$cod1=mysql_query(\"SELECT IFNULL(max(NRO_FACTURA+1),1) AS ID FROM BOLETA WHERE PROCESO='2'\",$conexion);\n$r2=mysql_fetch_array($cod1);\nreturn $r2['ID'];\n}", "public function getFrequencia() {\n return $this->sFrequencia;\n }", "public function getHistorial()\n {\n $stmt = Conexion::conectar()->prepare('SELECT *from historiales');\n $stmt->execute();\n }", "function getMaximoRetirable($fecha = false){\n\t\tif ( $fecha == false ){\n\t\t\t$fecha = fechasys();\n\t\t}\n\t\tif ( $this->mCuentaIniciada == false ) {\n\t\t $this->init();\n\t\t}\n\t\t//Obtener la Captacion Total\n\t\t$xSoc\t\t\t\t\t= new cSocio($this->mSocioTitular);\n\t\t$DTCap\t\t\t\t\t= $xSoc->getTotalCaptacionActual();\n\t\t$this->mMessages \t\t.= \"MAX_RETIRABLE\\tA la fecha $fecha, El Saldo Total de Captacion es \" . $DTCap[\"saldo\"] . \" \\r\\n\";\n\t\t$this->mMessages \t\t.= \"MAX_RETIRABLE\\tA la fecha $fecha, El saldo por Esta Cuenta es \" . $this->mNuevoSaldo . \" \\r\\n\";\n\t\t$saldo\t\t\t\t\t= $this->mSaldoAnterior;\n\t\t$saldo\t\t\t\t\t= ( $DTCap[\"saldo\"] - $saldo ) + $this->mNuevoSaldo ;\n\t\t$maximo_retirable\t\t= 0;\n\t\t//obtener los maximos retirables por credito\n\t\t//2011-1-30 cambio de monto_autorizado a saldo_actual\n\t\t$sqlCompCreditos = \"SELECT\n\t\t\t\t\t\t\t\tSUM(`creditos_solicitud`.`saldo_actual`) AS `monto`\n\t\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\t\t`creditos_solicitud` `creditos_solicitud`\n\t\t\t\t\t\t\t\t\tINNER JOIN `eacp_config_bases_de_integracion_miembros`\n\t\t\t\t\t\t\t\t\t`eacp_config_bases_de_integracion_miembros`\n\t\t\t\t\t\t\t\t\tON `creditos_solicitud`.`tipo_convenio` =\n\t\t\t\t\t\t\t\t\t`eacp_config_bases_de_integracion_miembros`.`miembro`\n\t\t\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t\t\t\t(`creditos_solicitud`.`numero_socio` = \" . $this->mSocioTitular . \")\n\t\t\t\t\t\t\t\t\tAND\n\t\t\t\t\t\t\t\t\t(`eacp_config_bases_de_integracion_miembros`.`codigo_de_base` = 1110)\n\t\t\t\t\t\t\t\t\tAND\n \t\t\t\t\t(`creditos_solicitud`.`saldo_actual` > \" . TOLERANCIA_SALDOS . \")\n\t\t\t\t\t\t\t\tGROUP BY\n\t\t\t\t\t\t\t\t\t`creditos_solicitud`.`numero_socio`,\n\t\t\t\t\t\t\t\t\t`eacp_config_bases_de_integracion_miembros`.`codigo_de_base`\n \";\n\t\t$d\t\t\t\t\t\t\t= obten_filas($sqlCompCreditos);\n\t\t//Obtener el Maximo Comprometidos por Garantia Liquida\n\t\t$sqlCC = \"SELECT\n\t\t\t\t\t\t\t`creditos_solicitud`.`numero_socio`,\n\t\t\t\t\t\t\tSUM(`creditos_solicitud`.`saldo_actual`) AS 'monto_creditos',\n\t\t\t\t\t\t\tSUM(`creditos_solicitud`.`saldo_Actual` *\n\t\t\t\t\t\t\t`creditos_tipoconvenio`.`porciento_garantia_liquida`) AS 'monto_garantia'\n\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\t`creditos_solicitud` `creditos_solicitud`\n\t\t\t\t\t\t\t\tINNER JOIN `creditos_tipoconvenio` `creditos_tipoconvenio`\n\t\t\t\t\t\t\t\tON `creditos_solicitud`.`tipo_convenio` = `creditos_tipoconvenio`.\n\t\t\t\t\t\t\t\t`idcreditos_tipoconvenio`\n\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t\t(`creditos_solicitud`.`numero_socio` =\" . $this->mSocioTitular . \")\n\t\t\t\t\t\t\tAND\n\t\t\t\t\t\t\t(`creditos_solicitud`.`saldo_actual` > \" . TOLERANCIA_SALDOS . \")\n\t\t\t\t\t\tGROUP BY\n\t\t\t\t\t\t\t`creditos_solicitud`.`numero_socio` \";\n\t\t$comprometido_por_garantia\t= 0;\n\n\t\t$comprometido_por_creditos\t= (isset($d[\"monto\"])) ? csetNoMenorQueCero( $d[\"monto\"] ) : 0;\n\t\t$comprometido_por_ide\t\t= 0;\t\t\t//Terminar el saldo de IDE retirable\n\t\t$this->mMessages \t\t\t.= \"MAX_RETIRABLE\\tA la fecha $fecha, Lo Comprometido por Creditos es de $comprometido_por_creditos \\r\\n\";\n\t\t$this->mMessages \t\t\t.= \"MAX_RETIRABLE\\tA la fecha $fecha, Lo Comprometido por IDE es de $comprometido_por_ide\\r\\n\";\n\n\t\t//\n\t\tif ( $this->mSubProducto == CAPTACION_PRODUCTO_GARANTIALIQ){\n\t\t\t$c\t\t\t\t\t\t\t= obten_filas($sqlCC);\n\t\t\t$comprometido_por_garantia\t= setNoMenorQueCero( $c[\"monto_garantia\"] );\n\t\t\t$this->mMessages \t\t\t.= \"MAX_RETIRABLE\\tA la fecha $fecha, Lo Comprometido por GARANTIA LIQUIDA ES $comprometido_por_garantia \\r\\n\";\n\t\t\t$saldo\t\t\t\t\t\t= $this->mNuevoSaldo;\t//correccion por garantia liquida\n\t\t\t$comprometido_por_creditos\t= 0;\t\t\t\t\t//La ganartia liquida solo es presionado por lo comprometido por garantia\n\t\t}\n\t\t//\n\n\n\t\t$maximo_retirable\t\t\t= $saldo - ($comprometido_por_creditos + $comprometido_por_ide + $comprometido_por_garantia);\n\t\t$maximo_retirable\t\t\t= setNoMenorQueCero($maximo_retirable);\n\t\t$this->mMessages \t\t\t.= \"MAX_RETIRABLE\\tA la fecha $fecha, El Maximo Retirable es de $maximo_retirable de un Monto de $saldo\\r\\n\";\n\t\t//Componer el Saldo, no puede ser mayor al nuevo saldo\n\t\treturn ($maximo_retirable <= $this->mNuevoSaldo ) ? round($maximo_retirable, 2) : round($this->mNuevoSaldo, 2);\n\t}", "public function getSimulacionReajuste(){\n //calculando según el IPC acumulado\n //entre el último reajuste realizado y ahora. \n $mes_actual = (int)date(\"m\");\n $agno_actual = (int)date('Y');\n $mes_inicio = $mes_actual - $this->reajusta_meses;\n $agno_inicio = $agno_actual;\n if($mes_inicio <= 0){\n $agno_inicio -= 1;\n $mes_inicio+= 12;\n }\n $ipcs = array();\n if($agno_inicio != $agno_actual){\n $ipcs = Ipc::model()->findAll(array('order'=>'mes','condition'=>'mes >= :m and agno = :a','params'=>array(':m'=>$mes_inicio,':a'=>$agno_inicio)));\n $ipcs_actual = Ipc::model()->findAll(array('order'=>'mes','condition'=>'mes < :m and agno = :a','params'=>array(':m'=>$mes_actual,':a'=>$agno_actual)));\n foreach($ipcs_actual as $ipc){\n $ipcs[] = $ipc;\n }\n }\n else{\n $ipcs = Ipc::model()->findAll(array('condition'=>'mes >= :m1 and mes < :m2 and agno = :a','params'=>array(':m1'=>$mes_inicio,':m2'=>$mes_actual,':a'=>$agno_actual)));\n }\n\n $ipc_acumulado = 0;\n foreach($ipcs as $ipc){\n //sumo los ipcs para generar el ipc acumulado\n $ipc_acumulado+= $ipc->porcentaje;\n }\n //para hacer el cálculo según porcentaje\n $ipc_acumulado /= 100;\n\n //saco el último debe pagar para ver cuánto era lo que tenía que pagar antes\n $debePagars = DebePagar::model()->findAllByAttributes(array('contrato_id'=>$this->id),array('order'=>'id DESC'));\n $debePagar = $debePagars[0];\n \n $debeNuevo = new DebePagar();\n $debeNuevo->agno = $agno_actual;\n $debeNuevo->mes = $mes_actual;\n $debeNuevo->dia = $debePagar->dia;\n $debeNuevo->contrato_id = $this->id;\n //ahora hay que reajustar los montos del contrato dependiendo del ipc_acumulado\n //el precio base debe ser el valor anterior en debe pagar\n $debeNuevo->monto_gastocomun = intval($debePagar->monto_gastocomun*(1+$ipc_acumulado));\n $debeNuevo->monto_gastovariable = intval($debePagar->monto_gastovariable*(1+$ipc_acumulado));\n $debeNuevo->monto_mueble = intval($debePagar->monto_mueble*(1+$ipc_acumulado));\n $debeNuevo->monto_renta = intval($debePagar->monto_renta*(1+$ipc_acumulado));\n \n return array('actual'=>$debePagar, 'nuevo'=>$debeNuevo);\n }", "function fechaPrestacionXLimite($fprestacion, $fprest_limite) {\r\n $pr = ((strtotime($fprest_limite) - strtotime($fprestacion)) / 86400); //limite de la prestacion - fecha prestacion\r\n $ctrl_fechapresta['debito'] = false;\r\n if ($pr < 0) {\r\n\r\n $ctrl_fechapresta['debito'] = true;\r\n $ctrl_fechapresta['id_error'] = 71;\r\n $ctrl_fechapresta['msj_error'] = 'Fecha de Prestacion supera el limite para el periodo liquidado';\r\n }\r\n return $ctrl_fechapresta;\r\n}", "public function GetMaxCount ();", "public function obtenerUltimoCodigoGestor(){\n //Insertar provincia se invoca al metodo en datos\n $this->gestorAccesoDatos->conectar();\n $resultado = $this->gestorAccesoDatos->obtenerUltimoCodigoGestor();\n $this->gestorAccesoDatos->cerrarConexion();\n return $resultado;\n }", "function atuOrcreceitaval($codrec,$mes,$valor){\n $msg = \"0|Registro Atualizado !\";\n $clorcreceitaval = new cl_orcreceitaval;\t\t\n $clorcreceita = new cl_orcreceita;\t\t\n if ($mes == 0 || $mes =='0' || $mes === 0){\n // ajusta o saldo previsto\n\t$clorcreceita->o70_valor = $valor;\n\t$clorcreceita->o70_codrec= $codrec;\n\t$clorcreceita->o70_anousu= db_getsession(\"DB_anousu\");\n $rr= $clorcreceita->alterar(db_getsession(\"DB_anousu\"),$codrec);\n\tif ($clorcreceita->erro_status==='0'){\n\t $msg = \"1|\".$clorcreceita->erro_msg;\n\t}else {\n\t $msg = \"0|\".$clorcreceita->erro_msg; \n\t} \n return $msg;\n } \n if ($valor > 0){\n $clorcreceitaval->o71_coddoc = 100; \n }else{\n $clorcreceitaval->o71_coddoc = 101; \n }\n $clorcreceitaval->o71_anousu = db_getsession(\"DB_anousu\"); \n $clorcreceitaval->o71_mes = $mes; \n $clorcreceitaval->o71_codrec = $codrec;\n $clorcreceitaval->o71_valor = $valor; \n\n\n $rr = $clorcreceitaval->sql_record($clorcreceitaval->sql_query_file(db_getsession(\"DB_anousu\"),$codrec,$clorcreceitaval->o71_coddoc,$mes));\n if ($clorcreceitaval->numrows >0){\n $clorcreceitaval->alterar($clorcreceitaval->o71_anousu,$clorcreceitaval->o71_codrec,$clorcreceitaval->o71_coddoc,$clorcreceitaval->o71_mes);\n\n } else { \n $clorcreceitaval->incluir($clorcreceitaval->o71_anousu,$clorcreceitaval->o71_codrec,$clorcreceitaval->o71_coddoc,$clorcreceitaval->o71_mes);\n }\t \n \n $erro = $clorcreceitaval->erro_msg;\n if ($clorcreceitaval->erro_status===0){\n $msg= \"1|\".$erro;\n\treturn $msg;\n } else {\n $msg = \"0|\".$clorcreceitaval->erro_msg;\n return $msg;\n }\n}", "function cc_ho_vetrina($agenzia, $rif){\n\tglobal $invetrina;\n\t\n\t// $agenzia qua è il numero interno di Cometa\n\tif( isset( $invetrina[$agenzia] ) ){\t\t\n\t\t\n\t\tif ($invetrina[$agenzia]['imm'] == $rif) {\n\t\t\t// questo immobile è in vetrina\n\t\t\t$vetrina = '1';\n\t\t\tcc_import_immobili_error_log($rif.\" è in vetrina\");\n\t\t\t\n\t\t\t// vediamo se è lo stesso di quello che era già in vetrina o meno\n\t\t\t$oldrif = cc_get_rif_vetrina( substr($rif, 0, 2) );\n\t\t\tcc_import_immobili_error_log(\"oldrif: \".$oldrif);\n\t\t\t\n\t\t\t// se l'immobile attualemnte in vetrina non è questo tolgo quello attuale da vetrina\n\t\t\tif($oldrif != $rif) {\n\t\t\t\tcc_updateVetrina($oldrif); \n\t\t\t\tcc_import_immobili_error_log(\"Tolgo vetrina da \".$oldrif);\n\t\t\t}\n\t\t}else{\n\t\t\t$vetrina = '0';\n\t\t}\t\t\n\t\n\t}else{\n\t\t$vetrina = '0';\n\t}\n\t\n\treturn $vetrina;\n}", "function en_rojo($anio){\n $ar=array();\n $ar['anio']=$anio;\n $sql=\"select sigla,descripcion from unidad_acad \";\n $sql = toba::perfil_de_datos()->filtrar($sql);\n $resul=toba::db('designa')->consultar($sql);\n $ar['uni_acad']=$resul[0]['sigla'];\n $res=$this->get_totales($ar);//monto1+monto2=gastado\n $band=false;\n $i=0;\n $long=count($res);\n while(!$band && $i<$long){\n \n if(($res[$i]['credito']-($res[$i]['monto1']+$res[$i]['monto2']))<-50){//if($gaste>$resul[$i]['cred']){\n $band=true;\n }\n \n $i++;\n }\n return $band;\n \n }", "public function getNomorUrut(){\n $next_nomor_urut = DB::table('wp_wr')->max('wp_wr_no_urut');\n // $next_nomor_urut = DB::table('wp_wr')->max('wp_wr_no_urut');\n $next_nomor_urut++;\n // $next_nomor_urut = DB::table('wp_wr')->select(DB::raw('COALESCE(MAX(wp_wr_no_urut::INT),0) + 1'))->get();\n\n // print_r($next_nomor_urut);\n if (!empty($next_nomor_urut) && $next_nomor_urut <= 9999999) {\n if (strlen($next_nomor_urut) < 7) {\n $selisih = 7 - strlen($next_nomor_urut);\n for ($i = 1; $i <= $selisih; $i++) {\n $next_nomor_urut = \"0\" . $next_nomor_urut;\n }\n }\n return $next_nomor_urut;\n } elseif ($next_nomor_urut > 9999999) {\n return \"salah\";\n }\n }", "public function nuevoHistorial($usuario_id)\n\t{\n\t\t$historial = $this->buscarHistorial($usuario_id);\n\n\t\tif(! empty($historial))\n\t\t{\n\t\t\treturn $historial;\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$historial = new Historial();\n\t\t\t$historial->usuario_id = $usuario_id;\n\t\t\t\n\t\t\treturn $historial;\n\t\t}\n\t}", "function cariPosisi($batas){\nif(empty($_GET['halagenda'])){\n\t$posisi=0;\n\t$_GET['halagenda']=1;\n}\nelse{\n\t$posisi = ($_GET['halagenda']-1) * $batas;\n}\nreturn $posisi;\n}", "function cariPosisi($batas){\nif(empty($_GET['halagenda'])){\n\t$posisi=0;\n\t$_GET['halagenda']=1;\n}\nelse{\n\t$posisi = ($_GET['halagenda']-1) * $batas;\n}\nreturn $posisi;\n}", "function SUELDO_MINIMO($_ARGS) {\r\n\t$sql = \"SELECT\r\n\t\t\t\tMonto\r\n\t\t\tFROM\r\n\t\t\t\tmastsueldosmin\r\n\t\t\tWHERE\r\n\t\t\t\tPeriodo = (SELECT MAX(Periodo) FROM mastsueldosmin WHERE Periodo <= '\".$_ARGS['PERIODO'].\"')\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query) != 0) $field = mysql_fetch_array($query);\r\n\treturn $field['Monto'];\r\n}", "public function calcularId(){\n\n $registros = PorcentajeBecaArancel::All();\n\n $max_valor = count($registros);\n\n\n if($max_valor > 0){\n\n $max_valor++;\n\n } else {\n\n $max_valor = 1;\n }\n\n return $max_valor;\n\n }", "public function getHistogramMax();", "function getMaxInShowcase();", "public function tolerantion()\n {\n $row =$this->db->select('*')->from('c_history')->orderBy('date')->asc()->fetchPairs('date', 'idc_history');\n $date =new DateTime('1991-01-01');\n $max =0;\n while($date->format('Y-m-d') != '2010-01-28')\n {\n $buffer =0;\n while(!isset($row[$date->format('Y-m-d')]))\n {\n $date->modify('+1 day');\n $buffer++;\n }\n if($buffer > $max)\n $max =$buffer;\n $date->modify('+1 day');\n }\n return $max;\n }", "public function GetMinCount ();", "function NUMERO_DE_HIJOS_MENORES14($_ARGS) {\r\n\t$_PARAMETROS = PARAMETROS();\r\n\t\r\n\tlist($a, $m) = split(\"[/.-]\", $_ARGS[\"PERIODO\"]); $anio = $a - 15;\r\n\t$mes = intval($m) + 1;\r\n\tif ($mes > 12) { $mes = 1; $anio++; }\r\n\tif ($mes < 10) $mes = \"0$mes\";\t\r\n\t$fecha = \"$anio-$mes-01\";\r\n\r\n\t$sql = \"SELECT *\r\n\t\t\tFROM rh_cargafamiliar\r\n\t\t\tWHERE\r\n\t\t\t\tCodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND\r\n\t\t\t\tParentesco = 'HI' AND\r\n\t\t\t\tFechaNacimiento >= '\".$fecha.\"'\";\techo \"$sql\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\treturn intval(mysql_num_rows($query));\r\n}", "public function createHistorial(){\n\n $this->validate([\n\n 'folio'=>'required',\n 'dia'=>'required',\n 'hr_entrada'=>'required',\n\n ]);\n \n $datos = Empleado::where('folio', $this->folio)->first();\n\n $statu=1;\n\n if ($datos) {\n # code...\n Historial::create([\n 'folio' => $this->folio,\n 'fecha_entrada' => $this->dia,\n 'hora_entrada'=>$this->hr_entrada,\n 'id_statu'=>$statu\n ]);\n\n\n $this->folio='';\n\n $this->dia='';\n\n\n $this->hr_entrada='';\n\n $this->nombre=''; \n\n $this->apellido_p='';\n \n $this->apellido_m='';\n \n $this->puesto='';\n\n\n //ocultar modal , se utiliza el emit para ocultar el modal y se manda al script\n $this->emit('ocultarModal');\n \n //session()->flash('exito','Bienvenido tu registro fue exitoso.');\n\n $this->emit('mensajes');\n\n \n }else{\n session()->flash('Existe','Asigne corectamente su folio');\n }\n\n \n\n }", "function getIdHistorialCambio() {\r\n return $this->idHistorialCambio;\r\n }", "function f_obj($individu){\n\t\t$cluster = count($individu); //menghitung jumlah cluster berdasarkan individu\n\t\t$target = 10;\n\t\t$hasil = 0;\n\t\tfor ($i=0; $i < $cluster; $i++) { \n\t\t\t$hasil += $individu[$i];\n\t\t}\n\n\t\t$evaluasi = abs($hasil - $target);\n\t\treturn $evaluasi; //nilai fitness masih 0-10\n\t}", "function DIFERENCIA_SUELDO_BASICO($_ARGS) {\r\n\t$_PARAMETROS = PARAMETROS();\t\r\n\t$sum_diferencia = 0;\r\n\t\r\n\t//\tObtengo el sueldo basico mensual...\r\n\t$sql = \"SELECT\r\n\t\t\t\t ns.SueldoPromedio AS SueldoBasico \r\n\t\t\tFROM \r\n\t\t\t\t rh_empleadonivelacion en \r\n\t\t\t\t INNER JOIN rh_puestos p ON (en.CodCargo = p.CodCargo) \r\n\t\t\t\t INNER JOIN rh_nivelsalarial ns ON (p.CategoriaCargo = ns.CategoriaCargo AND p.Grado = ns.Grado) \r\n\t\t\tWHERE \r\n\t\t\t\t en.CodOrganismo = '\".$_ARGS['ORGANISMO'].\"' AND \r\n\t\t\t\t --\ten.CodTipoNom = '\".$_ARGS['NOMINA'].\"' AND \r\n\t\t\t\t en.CodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND \r\n\t\t\t\t en.TipoAccion <> 'ET' AND \r\n\t\t\t\t en.FechaHasta = '0000-00-00'\r\n\t\t\tORDER BY en.Fecha\";\r\n\t$query_sueldo = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query_sueldo) != 0) $field_sueldo = mysql_fetch_array($query_sueldo);\r\n\t\t\r\n\t$sql = \"SELECT\r\n\t\t\t\t en.Fecha, \r\n\t\t\t\t en.FechaHasta, \r\n\t\t\t\t ns.SueldoPromedio AS SueldoTemporal \r\n\t\t\tFROM \r\n\t\t\t\t rh_empleadonivelacion en \r\n\t\t\t\t INNER JOIN rh_puestos p ON (en.CodCargo = p.CodCargo) \r\n\t\t\t\t INNER JOIN rh_nivelsalarial ns ON (p.CategoriaCargo = ns.CategoriaCargo AND p.Grado = ns.Grado) \r\n\t\t\tWHERE \r\n\t\t\t\t en.CodOrganismo = '\".$_ARGS['ORGANISMO'].\"' AND \r\n\t\t\t\t --\ten.CodTipoNom = '\".$_ARGS['NOMINA'].\"' AND \r\n\t\t\t\t en.CodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND \r\n\t\t\t\t en.TipoAccion = 'ET' AND \r\n\t\t\t\t ((en.FechaHasta = '0000-00-00' AND en.Fecha <= '\".$_ARGS['HASTA'].\"') OR \r\n\t\t\t\t ('\".$_ARGS['DESDE'].\"' >= en.Fecha AND \r\n\t\t\t\t '\".$_ARGS['DESDE'].\"' <= en.FechaHasta) OR \r\n\t\t\t\t (en.Fecha >= '\".$_ARGS['DESDE'].\"' AND \r\n\t\t\t\t en.Fecha <= '\".$_ARGS['HASTA'].\"')) \r\n\t\t\tORDER BY en.Fecha\";\r\n\t$query_nivelaciones = mysql_query($sql) or die ($sql.mysql_error());\r\n\twhile ($field_nivelaciones = mysql_fetch_array($query_nivelaciones)) {\r\n\t\tif ($field_nivelaciones['Fecha'] < $_ARGS['DESDE']) $desde = $_ARGS['DESDE'];\r\n\t\telse $desde = $field_nivelaciones['Fecha'];\r\n\t\t##\r\n\t\tif ($field_nivelaciones['FechaHasta'] == \"0000-00-00\" || $field_nivelaciones['FechaHasta'] > $_ARGS['HASTA']) $hasta = $_ARGS['HASTA'];\r\n\t\telse $hasta = $field_nivelaciones['FechaHasta'];\r\n\t\t##\r\n\t\t$dias = DIAS_FECHA($desde, $hasta);\r\n\t\t##\r\n\t\t$Diferencia = $field_nivelaciones['SueldoTemporal'] - $field_sueldo['SueldoBasico'];\r\n\t\t$Diario = $Diferencia / $_PARAMETROS['MAXDIASMES'];\r\n\t\t$monto = $Diario * $dias;\r\n\t\t##\r\n\t\t$sum_diferencia += $monto;\r\n\t}\r\n\treturn $sum_diferencia;\r\n}", "function ordenaPorFechas($mes, $anno, $kategoria, $quePais) // a este se le entra con el username\n {\ninclude ('cajitaCurso.php'); //archivo donde esta la funcion que tira la cajita\n//contador\n$sqlContador = \"SELECT count(*) FROM cursos LEFT JOIN fechas ON fechas.idcurso = cursos.id where cursos.categoria LIKE '%$kategoria%' AND MONTH(fechas.fechainicio) LIKE $mes AND YEAR(fechas.fechainicio) LIKE $anno AND cursos.pais LIKE '$quePais' ORDER BY fechas.fechainicio \";\n\n// ESTE ES CUANDO ESTA DEMASIADO LLENO $sqlContador = \"SELECT count(*) FROM cursos LEFT JOIN fechas ON fechas.idcurso = cursos.id where cursos.categoria LIKE '%$kategoria%' AND MONTH(fechas.fechainicio) LIKE $mes AND YEAR(fechas.fechainicio) LIKE $anno AND cursos.pais LIKE '$quePais' AND fechas.fechainicio >= NOW() ORDER BY fechas.fechainicio ASC\";\n\n\n\n$count = mysql_fetch_row(mysql_query($sqlContador)) or die(\"Query failed : \" . mysql_error() . mysql_errno());\nglobal $contadorGeneral;\n$contadorGeneral = $count[0];\n//echo $contadorGeneral;\n\n//contador\t\n\t$sql = \"SELECT * FROM cursos LEFT JOIN fechas ON fechas.idcurso = cursos.id where cursos.categoria LIKE '%$kategoria%' AND MONTH(fechas.fechainicio) LIKE $mes AND YEAR(fechas.fechainicio) LIKE $anno AND cursos.pais LIKE '$quePais' ORDER BY fechas.fechainicio DESC LIMIT \".DondeComienzo().\", \".MAXCAJITAS.\"\";\n\n// ESTE ES CUANDO ESTA DEMASIADO LLENO $sql = \"SELECT * FROM cursos LEFT JOIN fechas ON fechas.idcurso = cursos.id where cursos.categoria LIKE '%$kategoria%' AND MONTH(fechas.fechainicio) LIKE $mes AND YEAR(fechas.fechainicio) LIKE $anno AND cursos.pais LIKE '$quePais' AND fechas.fechainicio >= NOW() ORDER BY fechas.fechainicio ASC LIMIT \".DondeComienzo().\", \".MAXCAJITAS.\"\";\n\n\n//echo $sql;\n$result = mysql_query($sql) or die(\"Query failed : \" . mysql_error() . mysql_errno()); \nwhile ($row = mysql_fetch_array($result))\n {\n\t\t\t CajitaCursoLlena($row['idcurso'], convierte_fecha($row['fechainicio']));\t\n\t\t\t}\n}", "function obtenerPeriodoActual($conexion)\n{\n $anoActual = date('Y');\n $mesActual = date('m');\n\n if ($mesActual > 6) {\n $sentencia = \"select idPeriodo from periodo where AnoInicio=\" . $anoActual;\n } elseif ($mesActual <= 6) {\n $sentencia = \"select idPeriodo from periodo where AnoInicio=\" . ($anoActual - 1);\n }\n\n $conexion->Ejecuto($sentencia);\n $periodo = $conexion->Siguiente();\n return $periodo['idPeriodo'];\n}", "public function get_recibo_sucursal($sucursal){\n\n $conectar= parent::conexion();\t \n\t $sql= \"select max(numero_recibo)+1 as numero_rec from recibos where sucursal=?\";\n\n $sql=$conectar->prepare($sql);\n $sql->bindValue(1, $sucursal);\n $sql->execute();\n\n return $resultado= $sql->fetchAll(PDO::FETCH_ASSOC);\n\n}", "function buscar_mayor_fecha () {\n global $DB;\n $sql = \"SELECT date FROM {report_user_statistics} WHERE id=(SELECT max(id) FROM {report_user_statistics});\";\n $fecha = $DB->get_record_sql($sql);\n return $fecha;\n}", "function getNota_max()\n {\n if (!isset($this->inota_max) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_max;\n }", "function getNota_max()\n {\n if (!isset($this->inota_max) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_max;\n }", "public function getMaxValue();", "public function getMaxValue();", "function recruterPaysans($nb){\r\n $recrut = 0;\r\n for($x=0;$x<$nb;$x++){\r\n if($this->ors >= COUT_PAYSANS_ORS AND $this->bois >= COUT_PAYSANS_BOIS){\r\n $this->ors-=COUT_PAYSANS_ORS;\r\n $this->bois-=COUT_PAYSANS_BOIS;\r\n $recrut++;\r\n }\r\n }\r\n $this->save();\r\n $stat=new Stat();\r\n $stat->load($this->id);\r\n $stat->calculHab();\r\n $stat->save();\r\n return $recrut;\r\n }", "function getLastMvtCpt($id_cpte) {\n global $dbHandler, $global_id_agence;\n $db = $dbHandler->openConnection();\n $sql = \"SELECT MAX(date_comptable) FROM ad_mouvement m,ad_ecriture e WHERE e.id_ag = m.id_ag AND m.id_ag = $global_id_agence AND cpte_interne_cli='$id_cpte' AND m.id_ecriture=e.id_ecriture\";\n $result = $db->query($sql);\n if (DB :: isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__, $result->getMessage());\n }\n $dbHandler->closeConnection(true);\n $retour = $result->fetchrow();\n return $retour[0];\n}", "function NUMERO_DE_HIJOS_MAYORES_ESTUDIANDO($_ARGS) {\r\n\t$_PARAMETROS = PARAMETROS();\r\n\t\r\n\tlist($a, $m)=SPLIT( '[/.-]', $_ARGS[\"PERIODO\"]); \r\n\r\n $anio = $a - 18;\r\n\t$fecha18 = \"$anio-$m-01\";\r\n\t\r\n\t $anio = $a - 25;\r\n\t$fecha25 = \"$anio-$m-01\";\r\n\r\n\t$sql = \"SELECT\r\n\t\t\t\t*\r\n\t\t\tFROM\r\n\t\t\t\trh_cargafamiliar\r\n\t\t\tWHERE\r\n\t\t\t\tCodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND\r\n\t\t\t\tParentesco = 'HI' \r\n\t\t\t\tAND\tFechaNacimiento <= '\".$fecha18.\"'\r\n\t\t\t\tAND\tFechaNacimiento >= '\".$fecha25.\"'\r\n\t\t\t\tAND rh_cargafamiliar.Parentesco = 'HI' \r\n\t\t\t\tAND rh_cargafamiliar.FlagEstudia = 'S'\t\r\n\t\t\t\t\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\treturn intval(mysql_num_rows($query));\r\n}", "function premier($nombre)\n{\n if($nombre > 10000){\n for($i = 1;$i <= $nombre; $i++)\n {\n $cpt=0;\n for($j=1;$j<=$i; $j++)\n {\n if($i%$j==0)\n {\n $cpt++;\n }\n }\n if($cpt==2)\n {\n $T1[] = $i;\n }\n } \n }else{\n echo \"<center>entrer un nombre superieur a 10 000<center>\";\n }\n\n $inferieurs = array();\n $superieurs= array();\n\n for($i=0;$i< count($T1); $i++)\n {\n if($T1[$i]< moyenne($T1))\n {\n $inferieurs[] = $T1[$i];\n }else{\n $superieurs[] = $T1[$i];\n }\n }\n\n $T = array\n (\n 'inferieur'=>$inferieurs,\n 'superieur'=>$superieurs\n );\n\n $_SESSION['T'] = $T1;\n\n $_SESSION['inferieur'] = $T['inferieur'];\n $_SESSION['superieur'] = $T['superieur'];\n}", "function maximo( $resultado, $valor) {\n\t$resultado = ($valor > $resultado ) ? $valor : $resultado; \n\treturn $resultado;\n}", "function exibeAtualMax(){\n $nmin= (($this->atual * $this->numpage) - $this->numpage)+1;\n return $nmax= ($this->numpage + $nmin)-1;\n }", "function ateliers_autoriser(){}", "public function mostraUltimaMensagem()\n { \n $arMsgSessao = $_SESSION['msg'];\n $stUltimaMensagem = $arMsgSessao[count($arMsgSessao)-1];\n return $stUltimaMensagem;\n }", "function cariPosisi($batas){\nif(empty($_GET['halkategoriberita'])){\n\t$posisi=0;\n\t$_GET['halkategoriberita']=1;\n}\nelse{\n\t$posisi = ($_GET['halkategoriberita']-1) * $batas;\n}\nreturn $posisi;\n}", "function nbr_auteurs_enligne() {\r\n\tglobal $couleur_claire, $connect_id_auteur;\r\n\t$aff = '';\r\n\t$aff .= debut_cadre_relief(\"annonce.gif\", true);\r\n// nombre d_auteurs depuis 15 mn ()\r\n# inc/auth.php update-set en_ligne => NOW() : \"moment\" de session !\r\n# voir ecrire/action:logout.php\r\n# spip update-set 'en_ligne' datetime -15 mn au logout de session !!??!!\r\n# aff' nbr corresp aux auteurs affiches par spip en bandeau sup !\r\n\r\n\t$q = sql_select(\"COUNT(DISTINCT id_auteur) AS nb, statut \" .\r\n\t\t\"FROM spip_auteurs \" .\r\n\t\t\"WHERE en_ligne > DATE_SUB( NOW(), INTERVAL 15 MINUTE) \" .\r\n\t\t\"AND statut IN ('0minirezo', '1comite', '6forum') \" . // limite statuts spip (autres!)\r\n\t\t\"AND id_auteur != $connect_id_auteur \" .\r\n\t\t\"GROUP BY statut\"\r\n\t);\r\n\r\n\tif (sql_count($q)) {\r\n\t\t$aff .= _T(\"actijour:auteurs_en_ligne\") . \"<br />\\n\";\r\n\t\tWhile ($r = sql_fetch($q)) {\r\n\t\t\tif ($r['statut'] == '0minirezo') {\r\n\t\t\t\t$stat = _T('actijour:abrv_administrateur');\r\n\t\t\t} elseif ($r['statut'] == '1comite') {\r\n\t\t\t\t$stat = _T('actijour:abrv_redacteur');\r\n\t\t\t} elseif ($r['statut'] == '6forum') {\r\n\t\t\t\t$stat = _T('actijour:abrv_visiteur');\r\n\t\t\t}\r\n\t\t\t$aff .= $r['nb'] . \" $stat<br />\\n\";\r\n\t\t}\r\n\r\n\t} else {\r\n\t\t$aff .= _T(\"actijour:aucun_auteur_en_ligne\") . \"\\n\";\r\n\t}\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "public function pagomesalum(Request $request)\n {\n $hoy = Carbon::now();\n $today = $hoy->format('Y-m-d');\n $mesactual = $hoy->format('m');\n\n //id del alumno\n $id = $request->id_alum;\n //sacamos informacion de nivel por el costo \n $infoa = Alumnos::where('id', $id)->first();\n $nivel = Nivel::find($infoa->nivel);\n $costoN = $nivel->costo;\n $Pagoinscripcion = Pagos::where('id_usuario', $infoa->id)->where('id_nivel', $infoa->nivel)->where('tipo', 1)->first();\n $Pagocolegiatura = Pagos::where('id_usuario', $infoa->id)->where('id_nivel', $infoa->nivel)->where('tipo', 2)->orderBy('id', 'desc')->first();\n $montoInscripcion = $Pagoinscripcion->monto;\n if ($Pagocolegiatura != null) {\n $montoColegiatura = $Pagocolegiatura->monto;\n $idPagoColegiatura = $Pagocolegiatura->id;\n $idEstatusp = $Pagocolegiatura->estatus;\n $ultimoM = $Pagocolegiatura->mes;\n } else {\n $montoColegiatura = null;\n $idPagoColegiatura = null;\n $idEstatusp = null;\n $ultimoM = null;\n }\n $idPagoInscripcion = $Pagoinscripcion->id;\n $primer_pago = Carbon::createFromFormat('d/m/Y', $nivel->finicio)->format('m');\n\n $ultimo_pago = Carbon::createFromFormat('d/m/Y', $nivel->ffin)->format('m');\n\n //calculando meses de nivel\n $start = date($nivel->finicio);\n $inicio = 'd/m/Y';\n\n $end = date($nivel->ffin);\n $fin = 'd/m/Y';\n\n $finicio = Carbon::createFromFormat($inicio, $start);\n $ffin = Carbon::createFromFormat($fin, $end);\n\n $meses = $finicio->diffInMonths($ffin) + 1;\n\n $CostoC = $meses * $costoN;\n // //sacamos registro del ultimo pago\n // $info = Pagos::where('id_usuario',$id)->where('id_nivel',$nivel->id)->where('tipo',2)->orderBy('id','desc')->first();\n\n // // $info2 = Pagos::where('id_usuario',$id)->where('id_nivel',$nivel->id)->where('tipo',1)->orderBy('id','desc')->first();\n\n\n // if($info == null){\n // $numeroinf = 0;\n // }else{\n // $numeroinf = 1;\n // }\n\n // if($numeroinf != 0){\n // $mp = Carbon::parse($info->fecha_pago);\n // $mes_pago = $mp->format('m');\n // }\n\n\n //lo que el usuario teclea\n $abono = $request->pago;\n $inscripcionR = $request->debeinsc;\n // si el abono es igual ala colegiatura le pone estatus 1 si no 2\n // if($abono == $costoN){\n // $estatus = 1; \n // }else{\n // $estatus = 2;\n // }\n\n\n ///////////////////////////////////////////////////////// pago nuevo\n\n if ($inscripcionR == null) {\n } else {\n $this->inscripcionupdate($inscripcionR, $montoInscripcion, $idPagoInscripcion, $mesactual, $today, $id, $nivel->id);\n //si no se captura colegiatura\n }\n\n $this->abonoupdate($abono, $montoColegiatura, $idPagoColegiatura, $idEstatusp, $mesactual, $ultimoM, $today, $id, $nivel->id, $CostoC, $primer_pago, $ultimo_pago, $costoN);\n\n\n\n\n\n\n ///////////////////////////////////////////////////////// pago anterior\n // //pagar primer mes si solo pago inscripcion detecta si algun dato tipo colegiatura\n // if($numeroinf != 0){\n // // si cuando paga es el mismo mes\n // if($info->mes == $mesactual){\n // //y ya esta pagado crea registros de siguiente mes correspondiente\n // if($info->estatus == 1){\n // //si abonado es igual actualiza a 1\n // if(($abono)==$costoN){\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => $estatus,\n // 'monto' => $abono,\n // 'mes' => $info->mes+1,\n // 'tipo' => 2]);\n // return back();\n // }else\n // // si el abono es menor crea con estatus 2\n // if(($abono)<$costoN){\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => $estatus,\n // 'monto' => $abono,\n // 'mes' => $info->mes+1,\n // 'tipo' => 2]);\n // return back();\n // }else\n // // si abono es mayor crea a sts 1 y la diferencia crea registro del siguiente mes\n // if ($abono>$costoN) {\n\n // if(is_int($abono/$costoN) == true){\n // $mesesApagar = $abono/$costoN;\n // $meses_corridos = $info->mes + 1;\n // for ($i=0; $i < $mesesApagar ; $i++) { \n // $aux = 0;\n\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 1,\n // 'monto' => 500,\n // 'mes' => $meses_corridos + $i,\n // 'tipo' => 2]);\n // $aux++;\n // }\n // }else{\n\n // $mesesApagarC= explode(\".\", $abono/$costoN);\n // $numeroMeses = $mesesApagarC[0]+1;\n\n // for ($i=0; $i < $numeroMeses; $i++) { \n // if($i == ($numeroMeses-1)){\n // $residuo = $abono%$costoN;\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 2,\n // 'monto' => $residuo,\n // 'mes' => $info->mes+$numeroMeses,\n // 'tipo' => 2]);\n // }else{\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 1,\n // 'monto' => 500,\n // 'mes' => $info->mes+$i+1,\n // 'tipo' => 2]); \n // }\n // }\n // }\n // }\n // return back();\n // }// si no esta pagado hace condiciones\n // else{ \n // ////////////////////////////////////////////// \n // //si el monto que tenia mas el abonado es igual actualiza a 1\n // if(($abono+$info->monto)==$costoN){\n\n // $pagoupdate = array_merge($request->all(),array(\n // 'fecha_pago' => $today,\n // 'estatus'=>1,\n // 'monto' => ($abono+$info->monto)));\n\n // $pag = Pagos::find($info->id);\n // $pag->update($pagoupdate);\n // return back();\n // }else\n // // si el monto que tenia mas el abonado es menor actualiza monto\n // if(($abono+$info->monto)<$costoN){\n // $pagoupdate = array_merge($request->all(),array(\n // 'fecha_pago' => $today,\n // 'monto' => ($abono+$info->monto)));\n\n // $pag = Pagos::find($info->id);\n // $pag->update($pagoupdate);\n // return back();\n // }else\n // // si el monto que tenia mas el abonado es mayor actualiza a 1 y la diferencia crea registro del siguiente mes\n // if (($abono+$info->monto)>$costoN) {\n // $pagoupdate = array_merge($request->all(),array(\n // 'fecha_pago' => $today,\n // 'estatus'=>1,\n // 'monto' => $costoN));\n // $pag = Pagos::find($info->id);\n // $pag->update($pagoupdate);\n\n // $faltante = $costoN - $info->monto;\n // $abonado2 = $abono - $faltante;\n // if(is_int($abonado2/$costoN) == true){\n // $mesesApagar = $abonado2/$costoN;\n // $meses_corridos = $info->mes + 1;\n // for ($i=0; $i < $mesesApagar ; $i++) { \n // $aux = 0;\n\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 1,\n // 'monto' => 500,\n // 'mes' => $meses_corridos + $i,\n // 'tipo' => 2]);\n // $aux++;\n // }\n // }else{\n\n // $mesesApagarC= explode(\".\", $abonado2/$costoN);\n // $numeroMeses = $mesesApagarC[0]+1;\n // //si abonado 2 es menor ala colegitura solo se agrega el reg del lo restante si no agrega registros de meses +\n // if($abonado2<$costoN){\n // $residuo = $abonado2%$costoN;\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 2,\n // 'monto' => $abonado2,\n // 'mes' => $info->mes+$numeroMeses,\n // 'tipo' => 2]);\n // }else{\n // for ($i=0; $i < $numeroMeses; $i++) { \n // if($i == ($numeroMeses-1)){\n // $residuo = $abonado2%$costoN;\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 2,\n // 'monto' => $residuo,\n // 'mes' => $info->mes+$numeroMeses,\n // 'tipo' => 2]);\n // }else{\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 1,\n // 'monto' => 500,\n // 'mes' => $info->mes+$i+1,\n // 'tipo' => 2]); \n // }\n // }\n // }\n\n // }\n // }\n // return back();\n // }\n // ///////////////////////////////////////\n // }// si no es del mismo mes crea la siguiente dependiente del mes\n // else{\n // if($mes_pago == $mesactual && $mes_pago != $info->mes){\n // if($info->estatus == 1){\n // //si abonado es igual actualiza a 1\n // if(($abono)==$costoN){\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => $estatus,\n // 'monto' => $abono,\n // 'mes' => $info->mes+1,\n // 'tipo' => 2]);\n // return back();\n // }else\n // // si el abono es menor crea con estatus 2\n // if(($abono)<$costoN){\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => $estatus,\n // 'monto' => $abono,\n // 'mes' => $info->mes+1,\n // 'tipo' => 2]);\n // return back();\n // }else\n // // si abono es mayor crea a sts 1 y la diferencia crea registro del siguiente mes\n // if ($abono>$costoN) {\n\n // if(is_int($abono/$costoN) == true){\n // $mesesApagar = $abono/$costoN;\n // $meses_corridos = $info->mes + 1;\n // for ($i=0; $i < $mesesApagar ; $i++) { \n // $aux = 0;\n\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 1,\n // 'monto' => 500,\n // 'mes' => $meses_corridos + $i,\n // 'tipo' => 2]);\n // $aux++;\n // }\n // }else{\n\n // $mesesApagarC= explode(\".\", $abono/$costoN);\n // $numeroMeses = $mesesApagarC[0]+1;\n\n // for ($i=0; $i < $numeroMeses; $i++) { \n // if($i == ($numeroMeses-1)){\n // $residuo = $abonado2%$costoN;\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 2,\n // 'monto' => $residuo,\n // 'mes' => $info->mes+$numeroMeses,\n // 'tipo' => 2]);\n // }else{\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 1,\n // 'monto' => 500,\n // 'mes' => $info->mes+$i+1,\n // 'tipo' => 2]); \n // }\n // }\n // }\n // }\n // return back();\n // }else{//\n // //si el monto que tenia mas el abonado es igual actualiza a 1\n // if(($abono+$info->monto)==$costoN){\n\n // $pagoupdate = array_merge($request->all(),array(\n // 'fecha_pago' => $today,\n // 'estatus'=>1,\n // 'monto' => ($abono+$info->monto)));\n\n // $pag = Pagos::find($info->id);\n // $pag->update($pagoupdate);\n // return back();\n // }else\n // // si el monto que tenia mas el abonado es menor actualiza monto\n // if(($abono+$info->monto)<$costoN){\n // $pagoupdate = array_merge($request->all(),array(\n // 'fecha_pago' => $today,\n // 'monto' => ($abono+$info->monto)));\n\n // $pag = Pagos::find($info->id);\n // $pag->update($pagoupdate);\n // return back();\n // }else\n // // si el monto que tenia mas el abonado es mayor actualiza a 1 y la diferencia crea registro del siguiente mes\n // if (($abono+$info->monto)>$costoN) {\n // $pagoupdate = array_merge($request->all(),array(\n // 'fecha_pago' => $today,\n // 'estatus'=>1,\n // 'monto' => $costoN));\n // $pag = Pagos::find($info->id);\n // $pag->update($pagoupdate);\n\n // $faltante = $costoN - $info->monto;\n // $abonado2 = $abono - $faltante;\n // if(is_int($abonado2/$costoN) == true){\n // $mesesApagar = $abonado2/$costoN;\n // $meses_corridos = $info->mes + 1;\n // for ($i=0; $i < $mesesApagar ; $i++) { \n // $aux = 0;\n\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 1,\n // 'monto' => 500,\n // 'mes' => $meses_corridos + $i,\n // 'tipo' => 2]);\n // $aux++;\n // }\n // }else{\n\n // $mesesApagarC= explode(\".\", $abonado2/$costoN);\n // $numeroMeses = $mesesApagarC[0]+1;\n // //si abonado 2 es menor ala colegitura solo se agrega el reg del lo restante si no agrega registros de meses +\n // if($abonado2<$costoN){\n // $residuo = $abonado2%$costoN;\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 2,\n // 'monto' => $abonado2,\n // 'mes' => $info->mes+$numeroMeses,\n // 'tipo' => 2]);\n // }else{\n // for ($i=0; $i < $numeroMeses; $i++) { \n // if($i == ($numeroMeses-1)){\n // $residuo = $abonado2%$costoN;\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 2,\n // 'monto' => $residuo,\n // 'mes' => $info->mes+$numeroMeses,\n // 'tipo' => 2]);\n // }else{\n // Pagos::create(\n // ['id_usuario' => $info->id_usuario,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 1,\n // 'monto' => 500,\n // 'mes' => $info->mes+$i+1,\n // 'tipo' => 2]); \n // }\n // }\n // }\n\n // }\n // }\n // return back(); \n // }//\n\n // }else{\n // //pago mes normal correspondiente\n // Pagos::create(\n // ['id_usuario' => $id,\n // 'id_nivel' => $info->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => $estatus,\n // 'monto' => $abono,\n // 'mes' => $hoy->format('m'),\n // 'tipo' => 2]);\n // return back();\n // }\n // }\n // }else{\n // //si no crea registro del primer mes de colegiatura\n // //si el curso ya empezo y paga un mes despues o dependiendo guarda el mes que entra\n // if($primer_pago >= $mesactual){\n // if(($abono)==$costoN){\n // Pagos::create(\n // ['id_usuario' => $info2->id_usuario,\n // 'id_nivel' => $info2->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => $estatus,\n // 'monto' => $abono,\n // 'mes' => $primer_pago,\n // 'tipo' => 2]);\n // return back();\n // }else\n // // si el abono es menor crea con estatus 2\n // if(($abono)<$costoN){\n // Pagos::create(\n // ['id_usuario' => $info2->id_usuario,\n // 'id_nivel' => $info2->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => $estatus,\n // 'monto' => $abono,\n // 'mes' => $primer_pago,\n // 'tipo' => 2]);\n // return back();\n // }else\n // // si abono es mayor crea a 1 y la diferencia crea registro del siguiente mes\n // if (($abono)>$costoN) {\n\n // if(is_int($abono/$costoN) == true){\n // $mesesApagar = $abono/$costoN;\n // $meses_corridos = $info2->mes;\n // for ($i=0; $i < $mesesApagar ; $i++) { \n // $aux = 0;\n\n // Pagos::create(\n // ['id_usuario' => $info2->id_usuario,\n // 'id_nivel' => $info2->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 1,\n // 'monto' => 500,\n // 'mes' => $meses_corridos + $i,\n // 'tipo' => 2]);\n // $aux++;\n // }\n // }else{\n\n // $mesesApagarC= explode(\".\", $abono/$costoN);\n // $numeroMeses = $mesesApagarC[0]+1;\n\n // for ($i=0; $i < $numeroMeses; $i++) { \n // if($i == ($numeroMeses-1)){\n // $residuo = $abono%$costoN;\n // Pagos::create(\n // ['id_usuario' => $info2->id_usuario,\n // 'id_nivel' => $info2->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 2,\n // 'monto' => $residuo,\n // 'mes' => $info2->mes+($numeroMeses-1),\n // 'tipo' => 2]);\n // }else{\n // Pagos::create(\n // ['id_usuario' => $info2->id_usuario,\n // 'id_nivel' => $info2->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 1,\n // 'monto' => 500,\n // 'mes' => $info2->mes+$i,\n // 'tipo' => 2]); \n // }\n // }\n // }\n // }\n // return back();\n\n // }else{\n // if(($abono)==$costoN){\n // Pagos::create(\n // ['id_usuario' => $info2->id_usuario,\n // 'id_nivel' => $info2->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => $estatus,\n // 'monto' => $abono,\n // 'mes' => $mesactual,\n // 'tipo' => 2]);\n // return back();\n // }else\n // // si el abono es menor crea con estatus 2\n // if(($abono)<$costoN){\n // Pagos::create(\n // ['id_usuario' => $info2->id_usuario,\n // 'id_nivel' => $info2->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => $estatus,\n // 'monto' => $abono,\n // 'mes' => $mesactual,\n // 'tipo' => 2]);\n // return back();\n // }else\n // // si abono es mayor crea a 1 y la diferencia crea registro del siguiente mes\n // if (($abono)>$costoN) {\n\n // if(is_int($abono/$costoN) == true){\n // $mesesApagar = $abono/$costoN;\n // $meses_corridos = $info2->mes;\n // for ($i=0; $i < $mesesApagar ; $i++) { \n // $aux = 0;\n\n // Pagos::create(\n // ['id_usuario' => $info2->id_usuario,\n // 'id_nivel' => $info2->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 1,\n // 'monto' => 500,\n // 'mes' => $meses_corridos + $i,\n // 'tipo' => 2]);\n // $aux++;\n // }\n // }else{\n\n // $mesesApagarC= explode(\".\", $abono/$costoN);\n // $numeroMeses = $mesesApagarC[0]+1;\n\n // for ($i=0; $i < $numeroMeses; $i++) { \n // if($i == ($numeroMeses-1)){\n // $residuo = $abonado2%$costoN;\n // Pagos::create(\n // ['id_usuario' => $info2->id_usuario,\n // 'id_nivel' => $info2->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 2,\n // 'monto' => $residuo,\n // 'mes' => $info2->mes+$numeroMeses,\n // 'tipo' => 2]);\n // }else{\n // Pagos::create(\n // ['id_usuario' => $info2->id_usuario,\n // 'id_nivel' => $info2->id_nivel,\n // 'fecha_pago' => $today,\n // 'estatus' => 1,\n // 'monto' => 500,\n // 'mes' => $info2->mes+$i,\n // 'tipo' => 2]); \n // }\n // }\n // }\n // }\n // return back();\n // }\n // }\n ////////////////////////////////////////////////// fin pago anterior\n }", "function ULTIMO_CONCEPTO($_CONCEPTO) {\r\n\tglobal $_ARGS;\r\n\t$sql = \"SELECT Monto\r\n\t\t\tFROM pr_tiponominaempleadoconcepto\r\n\t\t\tWHERE\r\n\t\t\t\tCodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND\r\n\t\t\t\tPeriodo < '\".$_ARGS['PERIODO'].\"' AND\r\n\t\t\t\tCodConcepto = '\".$_CONCEPTO.\"'\r\n\t\t\tORDER BY Periodo DESC\r\n\t\t\tLIMIT 0, 1\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query) != 0) $field = mysql_fetch_array($query);\r\n\treturn $field['Monto'];\r\n}", "public function indexHistorialEstudiante()\n { \n $username = $this->getRequest()->getSession()->read('id'); //obtiene el nombre de usuario actualmente logueado\n \n /*Inicia seguridad*/\n $seguridad = $this->loadModel('Seguridad');\n $carne = $this->request->getSession()->read('id');\n $rolActual = $seguridad->getRol($carne);\n if ($carne != ''){\n $resultado = $seguridad->getPermiso($carne,13);\n if($resultado != 1 || $rolActual != 4){\n return $this->redirect(['controller' => 'Inicio','action' => 'fail']);\n }\n }\n else{\n return $this->redirect(['controller' => 'Inicio','action' => 'fail']);\n\n }\n /*Cierra la seguridad*/\n \n $idActual = $this->Solicitudes->getIDUsuario($username); //obtiene el id de usuario actualmente logueado\n \n $todo = $this->Solicitudes->getIndexValuesEstudiante($idActual[0][0]); //carga el index con todas las solicitudes del estudiante actualmente logueado \n \n \n $this->paginate = [\n 'contain' => ['Usuarios', 'Grupos']\n ];\n $estado = $this->get_estado_ronda();\n $this->set(compact('todo','estado'));\n $this->set('rolActual',$rolActual);\n }", "function formulaires_publication_ouverte_agenda_charger_dist()\n{\n\t$values = array();\n\n\t$values['etape'] \t\t= _request('etape');\t\t\t// etape actuelle\n\t$values['id_article']\t \t= _request('id_article');\t\t// id de l'article temporaire\n\t$values['type']\t\t\t= \"evenement\";\t\t\t// article ou evenement ?\n\t$values['id_rubrique'] \t\t= _request('id_rubrique');\t\t// rubrique de la contrib\n\t$values['jour_evenement'] \t= _request('jour_evenement'); \t\t// jour de l'événement\n\t$values['mois_evenement'] \t= _request('mois_evenement'); \t\t// mois de l'événement\n\t$values['annee_evenement'] \t= _request('annee_evenement'); \t\t// annee de l'événement\n\t$values['heure_evenement'] \t= _request('heure_evenement'); \t\t// heure de l'événement\n\t$values['lieu_evenement']\t= _request('lieu_evenement');\t\t// lieu de l'evenement\n\t$values['ville_evenement']\t= _request('ville_evenement');\t\t// lieu de l'evenement\n\t$values['adresse_evenement']\t= _request('adresse_evenement');\t// lieu de l'evenement\n\t$values['tel_evenement']\t= _request('tel_evenement');\t\t// lieu de l'evenement\n\t$values['web_evenement']\t= _request('web_evenement');\t\t// lieu de l'evenement\n\t$values['email_evenement']\t= _request('email_evenement');\t\t// lieu de l'evenement\n\t$values['lieu_evenement_existe']= _request('lieu_evenement_existe');\t// lieu de l'evenement déjà existant\n\t$values['titre'] \t\t= _request('titre');\t\t\t// titre de la contrib\n\t$values['texte'] \t\t= _request('texte');\t\t\t// texte de la contrib\n\t$values['pseudo'] \t\t= _request('pseudo');\t\t\t// pseudo ou nom de l'auteur\n\t$values['email'] \t\t= _request('email');\t\t\t// email de l'auteur\n\t$values['mots'] \t\t= _request('mots');\t\t\t// les mots-clés\n\t$values['date'] = _request('date');\n\t$values['date_modif'] = _request('date_modif');\n\t$values['supprimer_documents'] = _request('supprimer_documents');\n\t// editos\n\t$values['mise_en_edito'] = _request('mise_en_edito');\n\t$values['edito_complet'] = _request('edito_complet');\n\t// focus\n\t$values['mot_focus'] = _request('mot_focus');\n\t// si c'est pas un debut d'article\n\tif (_request('titre') or _request('previsu'))\n\t\t$values['ancre'] = '#etape_4';\n\telse\n\t\t$values['ancre'] = '.page-article';\n\t\n\t/*\n\t * s'il s'agit du premier passage, on créé l'article\n\t */\n\tif (!$values['id_article'])\n\t{\n\t\t$id_article = indymedia_creer_article();\n\t\t$values['id_article'] = $id_article;\n\t}\n\t/*\n\t * sinon, si admin, on peut l'éditer\n\t */\n\telse if ($values['id_article'] && est_admin())\n\t{\n\t\t$id_article = (int) $values['id_article'];\n\t\t// on recupere des infos sur l'article\t\n\t\t$row = sql_fetsel(\n\t\t\tarray('texte','extra','id_rubrique','titre','date_debut_indy','statut','date'),\n\t\t\tarray('spip_articles'),\n\t\t\tarray('id_article='.$id_article)\n\t\t);\n\t\t$values['texte'] = $row['texte'] ;\n\t\t$values['titre'] = $row['titre'] ;\n\t\t$values['id_rubrique'] = $row['id_rubrique'] ;\n\t\t//$values['statut'] = $row['statut'] ;\n\t\t$extra = unserialize($row['extra']);\n\t\t$values['explication'] = $extra['OP_moderation'];\n\t\t$values['pseudo'] = $extra['OP_pseudo'];\n\t\t$values['email'] = $extra['OP_email'];\n\t\t$values['date'] = $row['date'];\n\t\t\n\t\t// on recupere la date, l'heure et le lieu de l'evenement\n\t\t$values = indymedia_ajout_valeurs_date ($values, $row['date_debut_indy']);\n\t\t$values = indymedia_ajout_valeurs_lieu ($values, $id_article);\n\t\t$values = indymedia_ajout_valeurs_mots ($values, $id_article);\n\t}\n\tinclude_spip('inc/securiser_action');\n\t$values['cle_ajouter_document'] = calculer_cle_action('ajouter-document-' . 'article' . '-' . $id_article);\n\n\treturn $values;\n}", "public function ultimoRegistro() {\n \n //FUNCION CON LA CONSULTA A REALIZAR\n $sql = \"SELECT MAX(MAQUICODIGO) AS CODIGO FROM MAQUINA\";\n $this->_conexion->ejecutar_sentencia($sql);\n return $this->_conexion->retorna_select();\n \n }", "public function reajustar(){\n //calculando según el IPC acumulado\n //entre el último reajuste realizado y ahora. \n $mes_actual = (int)date(\"m\");\n $agno_actual = (int)date('Y');\n $mes_inicio = $mes_actual - $this->reajusta_meses;\n $agno_inicio = $agno_actual;\n if($mes_inicio <= 0){\n $agno_inicio -= 1;\n $mes_inicio+= 12;\n }\n $ipcs = array();\n if($agno_inicio != $agno_actual){\n $ipcs = Ipc::model()->findAll(array('order'=>'mes','condition'=>'mes >= :m and agno = :a','params'=>array(':m'=>$mes_inicio,':a'=>$agno_inicio)));\n $ipcs_actual = Ipc::model()->findAll(array('order'=>'mes','condition'=>'mes < :m and agno = :a','params'=>array(':m'=>$mes_actual,':a'=>$agno_actual)));\n foreach($ipcs_actual as $ipc){\n $ipcs[] = $ipc;\n }\n }\n else{\n $ipcs = Ipc::model()->findAll(array('condition'=>'mes >= :m1 and mes < :m2 and agno = :a','params'=>array(':m1'=>$mes_inicio,':m2'=>$mes_actual,':a'=>$agno_actual)));\n }\n\n $ipc_acumulado = 0;\n foreach($ipcs as $ipc){\n //sumo los ipcs para generar el ipc acumulado\n $ipc_acumulado+= $ipc->porcentaje;\n }\n //para hacer el cálculo según porcentaje\n $ipc_acumulado /= 100;\n\n //saco el último debe pagar para ver cuánto era lo que tenía que pagar antes\n $debePagars = DebePagar::model()->findAllByAttributes(array('contrato_id'=>$this->id),array('order'=>'id DESC'));\n $debePagar = $debePagars[0];\n \n $debeNuevo = new DebePagar();\n $debeNuevo->agno = $agno_actual;\n $debeNuevo->mes = $mes_actual;\n $debeNuevo->dia = $debePagar->dia;\n $debeNuevo->contrato_id = $this->id;\n //ahora hay que reajustar los montos del contrato dependiendo del ipc_acumulado\n //el precio base debe ser el valor anterior en debe pagar\n $debeNuevo->monto_gastocomun = intval($debePagar->monto_gastocomun*(1+$ipc_acumulado));\n $debeNuevo->monto_gastovariable = intval($debePagar->monto_gastovariable*(1+$ipc_acumulado));\n $debeNuevo->monto_mueble = intval($debePagar->monto_mueble*(1+$ipc_acumulado));\n $debeNuevo->monto_renta = intval($debePagar->monto_renta*(1+$ipc_acumulado));\n try{\n //se reajusta el contrato\n $debeNuevo->save(); \n } catch (Exception $ex) {\n }\n }", "static public function ctrEditarHistorial(){\n\n\t\tif(isset($_POST[\"editarTitulo\"])){\n\n\t\t\tif(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"editarTitulo\"]) &&\n\t\t\t preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ),\\r\\n ]+$/', $_POST[\"editarDescripcionHistorial\"])){\n\n\t\t\t\t$tabla = \"historial\";\n\n\t\t\t\t$idPaciente = $_GET[\"idPaciente\"];\n\n\t\t\t\t$idhis = $_POST[\"idEditarHistorial\"];\n\n\t\t\t\t$datos = array(\"idhistorial\" => $_POST[\"idEditarHistorial\"],\n\t\t\t\t\t\t\t \"titulo\" => Cifrar::encrypt($_POST[\"editarTitulo\"]),\n\t\t\t\t\t\t\t \"descripcion\" => Cifrar::encrypt($_POST[\"editarDescripcionHistorial\"]));\n\n\t\t\t\t$respuesta = ModeloHistorial::mdlEditarHistorial($tabla, $idPaciente, $datos);\n\n\t\t\t\tif($respuesta == \"ok\"){\n\n\t\t\t\t\techo'<script>\n\n\t\t\t\t\t\tSwal.fire({\n\t\t\t\t\t\t\t icon: \"success\",\n\t\t\t\t\t\t\t title: \"El historial ha sido editado correctamente\",\n\t\t\t\t\t\t\t showConfirmButton: true,\n\t\t\t\t\t\t\t confirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t\t }).then(function(result){\n\t\t\t\t\t\t\t\t\t\tif (result.value) {\n\n\t\t\t\t\t\t\t\t\t\twindow.location = \"\";\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t})\n\n\t\t\t\t\t\t</script>';\n\n\t\t\t\t}\n\n\n\t\t\t}else{\n\n\t\t\t\techo'<script>\n\n\t\t\t\t\tSwal.fire({\n\t\t\t\t\t\t icon: \"error\",\n\t\t\t\t\t\t title: \"¡El historial no puede ir con los campos vacíos o llevar caracteres especiales!\",\n\t\t\t\t\t\t showConfirmButton: true,\n\t\t\t\t\t\t confirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t }).then(function(result){\n\t\t\t\t\t\t\tif (result.value) {\n\n\t\t\t\t\t\t\twindow.location = \"\";\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\n\t\t\t \t</script>';\n\t\t\t}\n\t\t}\n\n\t}", "public function buscaridproximo()\r\n {\r\n\r\n $mg = ZendExt_Aspect_TransactionManager::getInstance();\r\n $conn = $mg->getConnection('metadatos');\r\n $query = Doctrine_Query::create($conn);\r\n\r\n // eliminar el campo\r\n $result = $query->select('max(n.idnivelutilizacion) as maximo')\r\n ->from('NomNivelUtilizacion n')\r\n ->execute()\r\n ->toArray();\r\n\r\n $proximo = isset($result[0]['maximo']) ? $result[0]['maximo'] + 1 : 1;\r\n return $proximo;\r\n\r\n }", "function valore_costo_gestione_ordine_amico($id_ordine,$id_user,$id_amico){\r\n $valore_globale_attuale_netto_qarr = valore_totale_ordine_qarr($id_ordine);\r\n $valore_personale_attuale_netto_qarr = valore_netto_singolo_amico($id_ordine,$id_user,$id_amico);\r\n $percentuale_mio_ordine = ($valore_personale_attuale_netto_qarr / $valore_globale_attuale_netto_qarr) *100;\r\n $costo_globale_gestione = valore_gestione($id_ordine,100);\r\n $costo_gestione = ($costo_globale_gestione / 100) * $percentuale_mio_ordine;\r\n return (float)$costo_gestione;\r\n}", "function NUMERO_DE_HIJOS($edad, $fecha=NULL) {\r\n\tglobal $_ARGS;\r\n\t$_PARAMETROS = PARAMETROS();\r\n\t\r\n\tlist($a, $m, $d) = split(\"[/.-]\", $fecha); $anio = $a - ($edad + 1);\r\n\t$mes = intval($m);\r\n\t$fecha = \"$anio-$mes-$d\";\r\n\r\n\t$sql = \"SELECT *\r\n\t\t\tFROM rh_cargafamiliar\r\n\t\t\tWHERE\r\n\t\t\t\tCodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND\r\n\t\t\t\tParentesco = 'HI' AND\r\n\t\t\t\tFechaNacimiento >= '\".$fecha.\"'\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\treturn intval(mysql_num_rows($query));\r\n}", "function accion__grabar_periodo_evaluacion()\n {\n $anio_academico_hash = $this->validate_param('anio_academico_hash', 'post', validador::TIPO_TEXTO);\n $periodo_hash = $this->validate_param('periodo_hash', 'post', validador::TIPO_TEXTO);\n\n if (kernel::request()->isPost()) \n {\n try \n {\n $parametros = array();\n $parametros['anio_academico'] = $this->decodificar_anio_academico($anio_academico_hash);\n $parametros['periodo'] = $this->decodificar_periodo($periodo_hash, $parametros['anio_academico']);\n \n $periodos = $this->get_periodos_evaluacion($anio_academico_hash, $periodo_hash);\n\n foreach ($periodos as $periodo)\n {\n $parametros['orden'] = $periodo['ORDEN'];\n $daterange = 'daterange_'.$periodo['ORDEN'];\n $intervalo = $this->validate_param(\"$daterange\", 'post', validador::TIPO_TEXTO);\n $intervalo = explode('-', $intervalo);\n $parametros['fecha_inicio'] = $intervalo[0];\n\t\t\t\t\t$parametros['fecha_fin'] = $intervalo[1];\n if ($parametros['fecha_inicio'] != '' && $parametros['fecha_fin'] != '')\n {\n\t\t\t\t\t\t//Periodo de examen con suspension de clases (orden = 4)\n\t\t\t\t\t\tif ($parametros['orden'] == 4)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//hay que validar los dias de clase del periodo guardado con anteriordad\n\t\t\t\t\t\t\t$periodo_old = catalogo::consultar('evaluaciones_parciales', 'get_periodo', $parametros);\n\t\t\t\t\t\t\tif (isset($periodo_old['FECHA_INICIO']) && isset($periodo_old['FECHA_FIN']))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$param['fecha_inicio'] = $periodo_old['FECHA_INICIO'];\n\t\t\t\t\t\t\t\t$param['fecha_fin'] = $periodo_old['FECHA_FIN'];\n $param['valido'] = 'S';\n kernel::log()->add_debug('set_validez_clases: ', $param);\n\t\t\t\t\t\t\t\tcatalogo::consultar('evaluaciones_parciales', 'set_validez_clases', $param);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//hay que ivalidar los dias de clase para que no compute la asitencia\n\t\t\t\t\t\t\t$parametros['valido'] = 'N';\n\t\t\t\t\t\t\tcatalogo::consultar('evaluaciones_parciales', 'set_validez_clases', $parametros);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcatalogo::consultar('evaluaciones_parciales', 'set_periodos_evaluacion', $parametros);\n }\n }\n \n $this->grabar_periodo_solicitud_fechas($parametros['anio_academico'], $parametros['periodo']);\n $this->grabar_fecha_ctr_correlat($parametros['anio_academico'], $parametros['periodo']);\n $mensaje = 'Se actualizaron correctamente los perí­odos de evaluación correspondientes al '.$parametros['periodo'].' del año '.$parametros['anio_academico'].'.';\n $this->set_anio_academico($anio_academico_hash);\n $this->set_periodo($periodo_hash);\n $this->set_mensaje($mensaje);\n }\n catch (\\Exception $e) \n {\n $mensaje = 'Error en la actualización.';\n $this->set_anio_academico($anio_academico_hash);\n $this->set_periodo($periodo_hash);\n $this->set_mensaje($e->getMessage().' - '.$mensaje);\n }\n }\n }", "function mostrar_historial(){\n\t\tif (isset($_GET['id']) && $_GET['id']!=\"\"){\n\t\t\t$id=$_GET['id'];\n\t\t\t$sql=\"SELECT * FROM historial WHERE id_his='$id'\";\n\t\t\t$consulta=mysql_query($sql);\n\t\t\t$resultado = mysql_fetch_array($consulta);\n\t\t\t$this->tabla = $resultado['tabla_his'];\n\t\t\t$this->pertenece = $resultado['pertenece_his'];\n\t\t\t$this->asunto = $resultado['asunto_his'];\n\t\t\t$this->descripcion = $resultado['descripcion_his'];\n\t\t\t$this->fecha = $resultado['fecha_his'];\n\t\t\t$this->hora = $resultado['hora_his'];\n\t\t\t$this->fechamod= $resultado['fechamod_his'];\n\t\t\t\n\t\t} \n\t}", "function getRatiosPrudentiels($list_agence) {\n\n global $dbHandler;\n global $global_monnaie,$global_id_agence;\n\n $db = $dbHandler->openConnection();\n $DATA['limitation_prets_dirigeants'] = 0;\n $DATA['limitation_risque_membre'] = 0;\n $DATA['taux_transformation'] = 0;\n $DATA['total_epargne'] = 0;\n foreach($list_agence as $key_id_ag =>$value) {\n // Parcours des agences\n setGlobalIdAgence($key_id_ag);\n // Encours brut\n $sql = \"SELECT SUM(calculeCV(solde_cap, devise, '$global_monnaie')) FROM ad_etr, ad_dcr, adsys_produit_credit WHERE ad_etr.id_ag=$global_id_agence AND ad_etr.id_ag=ad_dcr.id_ag AND ad_dcr.id_ag=adsys_produit_credit.id_ag AND ad_etr.id_doss = ad_dcr.id_doss AND ad_dcr.id_prod = adsys_produit_credit.id AND (ad_dcr.etat = 5 OR ad_dcr.etat = 7 OR ad_dcr.etat = 13 OR ad_dcr.etat = 14 OR ad_dcr.etat = 15)\";\n\n $result = $db->query($sql);\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n\n $row = $result->fetchrow();\n $encours_brut = $row[0];\n\n // Encours max\n $sql = \"SELECT MAX(somme) FROM (SELECT SUM(calculeCV(solde_cap, devise, '$global_monnaie')) AS somme FROM ad_etr, ad_dcr, adsys_produit_credit WHERE ad_etr.id_ag=$global_id_agence AND ad_etr.id_ag=ad_dcr.id_ag AND ad_dcr.id_ag=adsys_produit_credit.id_ag AND ad_etr.id_doss = ad_dcr.id_doss AND ad_dcr.id_prod = adsys_produit_credit.id AND (ad_dcr.etat = 5 OR ad_dcr.etat = 7 OR ad_dcr.etat = 13 OR ad_dcr.etat = 14 OR ad_dcr.etat = 15) GROUP BY ad_etr.id_doss) AS encours\";\n\n $result = $db->query($sql);\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n\n $row = $result->fetchrow();\n $encours_max = $row[0];\n\n // Encours dirigeants\n $sql = \"SELECT SUM(calculeCV(solde_cap, devise, '$global_monnaie')) FROM ad_etr, ad_dcr, adsys_produit_credit, ad_cli WHERE ad_etr.id_ag=$global_id_agence AND ad_etr.id_ag=ad_dcr.id_ag AND ad_dcr.id_ag=adsys_produit_credit.id_ag AND adsys_produit_credit.id_ag=ad_cli.id_ag AND ad_etr.id_doss = ad_dcr.id_doss AND ad_dcr.id_prod = adsys_produit_credit.id AND ad_dcr.id_client = ad_cli.id_client AND (ad_dcr.etat = 5 OR ad_dcr.etat = 7 OR ad_dcr.etat = 13 OR ad_dcr.etat = 14 OR ad_dcr.etat = 15) AND ad_cli.qualite = 4\";\n\n $result = $db->query($sql);\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n\n $row = $result->fetchrow();\n $encours_dirigeants = $row[0];\n\n // Total épargne\n $sql = \"SELECT SUM(calculeCV(solde, devise, '$global_monnaie')) FROM ad_cpt WHERE id_ag=$global_id_agence AND id_prod <> 2 AND id_prod <> 3\";\n\n $result = $db->query($sql);\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__);\n }\n\n $row = $result->fetchrow();\n $total_epargne = $row[0];\n\n // Tableau de données\n if ($total_epargne == NULL) {\n $DATA['limitation_prets_dirigeants'] = NULL;\n $DATA['limitation_risque_membre'] = NULL;\n $DATA['taux_transformation'] = NULL;\n $DATA['total_epargne'] = NULL;\n } else {\n $DATA['limitation_prets_dirigeants'] += $encours_dirigeants / $total_epargne;\n $DATA['limitation_risque_membre'] += $encours_max / $total_epargne;\n $DATA['taux_transformation'] += $encours_brut / $total_epargne;\n $DATA['total_epargne'] += $total_epargne;\n }\n }\n $dbHandler->closeConnection(true);\n\n return $DATA;\n}", "function get_listado_estactual($filtro=array())\n\t{ \n $concat='';\n if (isset($filtro['anio']['valor'])) {\n \t$udia=dt_mocovi_periodo_presupuestario::ultimo_dia_periodo_anio($filtro['anio']['valor']);\n $pdia=dt_mocovi_periodo_presupuestario::primer_dia_periodo_anio($filtro['anio']['valor']);\n\t\t} \n //que sea una designacion correspondiente al periodo seleccionado o anulada dentro del periodo \n $where=\" WHERE ((a.desde <= '\".$udia.\"' and (a.hasta >= '\".$pdia.\"' or a.hasta is null)) or (a.desde='\".$pdia.\"' and a.hasta is not null and a.hasta<a.desde))\";\n $where2=\" WHERE 1=1 \";//es para filtrar por estado. Lo hago al final de todo\n if (isset($filtro['uni_acad'])) {\n $concat=quote($filtro['uni_acad']['valor']);\n switch ($filtro['uni_acad']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.uni_acad = \".quote($filtro['uni_acad']['valor']);break;\n case 'es_distinto_de': $where.= \" AND a.uni_acad <> \".quote($filtro['uni_acad']['valor']);break;\n }\n }\n //si el usuario esta asociado a un perfil de datos le aplica igual a su UA\n $con=\"select sigla from unidad_acad \";\n $con = toba::perfil_de_datos()->filtrar($con);\n $resul=toba::db('designa')->consultar($con);\n if(count($resul)<=1){//es usuario de una unidad academica\n $where.=\" and a.uni_acad = \".quote($resul[0]['sigla']);\n $concat=quote($resul[0]['sigla']);//para hacer el update de baja\n }\n if (isset($filtro['iddepto'])) {\n switch ($filtro['iddepto']['condicion']) {\n case 'es_igual_a': $where.= \" AND iddepto =\" .$filtro['iddepto']['valor'];break;\n case 'es_distinto_de': $where.= \" AND iddepto <>\" .$filtro['iddepto']['valor'];break;\n }\n }\n if (isset($filtro['por_permuta'])) {\n switch ($filtro['por_permuta']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.por_permuta =\" .$filtro['por_permuta']['valor'];break;\n case 'es_distinto_de': $where.= \" AND a.por_permuta <>\" .$filtro['por_permuta']['valor'];break;\n }\n }\n if (isset($filtro['carac']['valor'])) {\n switch ($filtro['carac']['valor']) {\n case 'R':$c=\"'Regular'\";break;\n case 'O':$c=\"'Otro'\";break;\n case 'I':$c=\"'Interino'\";break;\n case 'S':$c=\"'Suplente'\";break;\n default:\n break;\n }\n switch ($filtro['carac']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.carac=\".$c;break;\n case 'es_distinto_de': $where.= \" AND a.carac<>\".$c;break;\n }\t\n }\n if (isset($filtro['estado'])) {\n switch ($filtro['estado']['condicion']) {\n case 'es_igual_a': $where2.= \" and est like '\".$filtro['estado']['valor'].\"%'\";break;\n case 'es_distinto_de': $where2.= \" and est not like '\".$filtro['estado']['valor'].\"%'\";break;\n }\n }\n if (isset($filtro['legajo'])) {\n switch ($filtro['legajo']['condicion']) {\n case 'es_igual_a': $where.= \" and legajo = \".$filtro['legajo']['valor'];break;\n case 'es_mayor_que': $where.= \" and legajo > \".$filtro['legajo']['valor'];break;\n case 'es_mayor_igual_que': $where.= \" and legajo >= \".$filtro['legajo']['valor'];break;\n case 'es_menor_que': $where.= \" and legajo < \".$filtro['legajo']['valor'];break;\n case 'es_menor_igual_que': $where.= \" and legajo <= \".$filtro['legajo']['valor'];break;\n case 'es_distinto_de': $where.= \" and legajo <> \".$filtro['legajo']['valor'];break;\n case 'entre': $where.= \" and legajo >= \".$filtro['legajo']['valor']['desde'].\" and legajo <=\".$filtro['legajo']['valor']['hasta'];break;\n }\n } \n if (isset($filtro['docente_nombre'])) {\n switch ($filtro['docente_nombre']['condicion']) {\n case 'contiene': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('%\".$filtro['docente_nombre']['valor'].\"%')\";break;\n case 'no_contiene': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) not like LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'comienza_con': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('\".$filtro['docente_nombre']['valor'].\"%')\";break;\n case 'termina_con': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('%\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'es_igual': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) == LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'es_distinto': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) <> LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n }\n } \n if (isset($filtro['programa'])) {\n $sql=\"select * from mocovi_programa where id_programa=\".$filtro['programa']['valor'];\n $resul=toba::db('designa')->consultar($sql);\n switch ($filtro['programa']['condicion']) {\n case 'es_igual_a': $where.= \" AND programa =\".quote($resul[0]['nombre']);break;\n case 'es_distinto_de': $where.= \" AND programa <>\".quote($resul[0]['nombre']);break;\n }\n } \n if (isset($filtro['tipo_desig'])) {\n switch ($filtro['tipo_desig']['condicion']) {\n case 'es_igual_a': $where.=\" AND a.tipo_desig=\".$filtro['tipo_desig']['valor'];break;\n case 'es_distinto_de': $where.=\" AND a.tipo_desig <>\".$filtro['tipo_desig']['valor'];break;\n }\n }\n if (isset($filtro['anulada'])) {\n switch ($filtro['anulada']['valor']) {\n case '0': $where.=\" AND not (a.hasta is not null and a.hasta<a.desde)\";break;\n case '1': $where.=\" AND a.hasta is not null and a.hasta<a.desde \";break;\n }\n } \n if (isset($filtro['cat_estat'])) {\n switch ($filtro['cat_estat']['condicion']) {\n case 'es_igual_a': $where2.= \" and cat_estat=\".quote($filtro['cat_estat']['valor']);break;\n case 'es_distinto_de': $where2.= \" and cat_estat <>\".quote($filtro['cat_estat']['valor']);break;\n }\n }\n if (isset($filtro['dedic'])) {\n switch ($filtro['dedic']['condicion']) {\n case 'es_igual_a': $where2.= \" and dedic=\".$filtro['dedic']['valor'];break;\n case 'es_distinto_de': $where2.= \" and dedic<>\".$filtro['dedic']['valor'];break;\n }\n } \n //me aseguro de colocar en estado B todas las designaciones que tienen baja\n if($concat!=''){ \n $sql2=\" update designacion a set estado ='B' \"\n . \" where estado<>'B' and a.uni_acad=\".$concat\n .\" and exists (select * from novedad b\n where a.id_designacion=b.id_designacion \n and (b.tipo_nov=1 or b.tipo_nov=4))\";\n }\n \n //designaciones sin licencia UNION designaciones c/licencia sin norma UNION designaciones c/licencia c norma UNION reservas\n $sql=$this->armar_consulta($pdia,$udia,$filtro['anio']['valor']);\n\t\t//si el estado de la designacion es B entonces le pone estado B, si es <>B se fija si tiene licencia sin goce o cese\n// $sql= \"select id_designacion,docente_nombre,legajo,nro_cargo,anio_acad,desde,hasta,cat_mapuche,cat_mapuche_nombre,cat_estat,dedic,carac,check_presup,id_departamento,id_area,id_orientacion,uni_acad,emite_norma,nro_norma,tipo_norma,nro_540,observaciones,estado,porc,dias_lic,programa,costo_vale as costo,est,expediente,nro from(\"\n// . \"select sub2.*,case when t_no.tipo_nov in (1,4) then 'B('||coalesce(t_no.tipo_norma,'')||':'||coalesce(t_no.norma_legal,'')||')' else case when t_no.tipo_nov in (2,5) then 'L('||t_no.tipo_norma||':'||t_no.norma_legal||')' else sub2.estado end end as est,t_i.expediente,case when d.tipo_desig=2 then costo_reserva(d.id_designacion,costo,\".$filtro['anio']['valor'].\") else costo end as costo_vale \"\n// . \" ,case when t_nor.id_norma is null then '' else case when t_nor.link is not null or t_nor.link <>'' then '<a href='||chr(39)||t_nor.link||chr(39)|| ' target='||chr(39)||'_blank'||chr(39)||'>'||t_nor.nro_norma||'</a>' else cast(t_nor.nro_norma as text) end end as nro \"\n// . \"from (\"\n// .\"select sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde, sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo,max(t_no.id_novedad) as id_novedad from (\"\n// .\"select distinct b.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, b.desde, b.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,emite_norma, b.nro_norma,b.tipo_norma,nro_540,b.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,case when (dias_des-dias_lic)>=0 then ((dias_des-dias_lic)*costo_diario*porc/100) else 0 end as costo\"\n// .\" from (\"\n// .\" select a.id_designacion,a.docente_nombre,a.legajo,a.nro_cargo,a.anio_acad, a.desde, a.hasta,a.cat_mapuche, a.cat_mapuche_nombre,a.cat_estat,a.dedic,a.carac,b.a.id_departamento, a.id_area,a.id_orientacion, a.uni_acad, a.emite_norma, a.nro_norma,a.tipo_norma,a.nro_540,a.observaciones,a.estado,programa,porc,a.costo_diario,check_presup,licencia,a.dias_des,a.dias_lic\".\n// \" from (\".$sql.\") a\"\n// .$where \n// .\") b \"\n// . \" )sub\"\n// . \" LEFT OUTER JOIN novedad t_no ON (sub.id_designacion=t_no.id_designacion and t_no.desde<='\".$udia.\"' and (t_no.hasta is null or t_no.hasta>='\".$pdia.\"' ))\"\n// . \" GROUP BY sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde,sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo\" \n// . \")sub2\"//obtengo el id_novedad maximo\n// . \" LEFT OUTER JOIN novedad t_no on (t_no.id_novedad=sub2.id_novedad)\"//con el id_novedad maximo obtengo la novedad que predomina\n// .\" LEFT JOIN impresion_540 t_i ON (nro_540=t_i.id)\"//para agregar el expediente \n// .\" LEFT OUTER JOIN designacion d ON (sub2.id_designacion=d.id_designacion)\"//como no tengo el id de la norma tengo que volver a hacer join\n// .\" LEFT OUTER JOIN norma t_nor ON (d.id_norma=t_nor.id_norma)\"\n// . \")sub3\"\n// .$where2\n// . \" order by docente_nombre,desde\"; \n $sql= \"select id_designacion,docente_nombre,legajo,nro_cargo,anio_acad,desde,hasta,cat_mapuche,cat_mapuche_nombre,cat_estat,dedic,carac,check_presup,id_departamento,id_area,id_orientacion,uni_acad,emite_norma,nro_norma,tipo_norma,nro_540,tkd,observaciones,estado,porc,dias_lic,programa,costo_vale as costo,est,expediente,nro from(\"\n . \"select sub2.*,sub2.nro_540||'/'||t_i.anio as tkd,case when t_no.tipo_nov in (1,4) then 'B('||coalesce(t_no.tipo_norma,'')||':'||coalesce(t_no.norma_legal,'')||')' else case when t_no.tipo_nov in (2,5) then 'L('||t_no.tipo_norma||':'||t_no.norma_legal||')' else sub2.estado end end as est,t_i.expediente,case when d.tipo_desig=2 then costo_reserva(d.id_designacion,costo,\".$filtro['anio']['valor'].\") else costo end as costo_vale \"\n . \" ,case when t_nor.id_norma is null then '' else case when t_nor.link is not null or t_nor.link <>'' then '<a href='||chr(39)||t_nor.link||chr(39)|| ' target='||chr(39)||'_blank'||chr(39)||'>'||t_nor.nro_norma||'</a>' else cast(t_nor.nro_norma as text) end end as nro \"\n . \"from (\"\n .\"select sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde, sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo,max(t_no.id_novedad) as id_novedad from (\"\n .\"select distinct b.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, b.desde, b.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,emite_norma, b.nro_norma,b.tipo_norma,nro_540,b.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,case when (dias_des-dias_lic)>=0 then ((dias_des-dias_lic)*costo_diario*porc/100) else 0 end as costo\"\n .\" from (\"\n .\" select a.id_designacion,a.por_permuta,a.docente_nombre,a.legajo,a.nro_cargo,a.anio_acad, a.desde, a.hasta,a.cat_mapuche, a.cat_mapuche_nombre,a.cat_estat,a.dedic,a.carac,t.iddepto,a.id_departamento, a.id_area,a.id_orientacion, a.uni_acad, a.emite_norma, a.nro_norma,a.tipo_norma,a.nro_540,a.observaciones,a.estado,programa,porc,a.costo_diario,a.check_presup,licencia,a.dias_des,a.dias_lic\".\n \" from (\".$sql.\") a\"\n . \" INNER JOIN designacion d ON (a.id_designacion=d.id_designacion)\"\n . \" LEFT OUTER JOIN departamento t ON (t.iddepto=d.id_departamento)\"\n .$where \n .\") b \"\n . \" )sub\"\n . \" LEFT OUTER JOIN novedad t_no ON (sub.id_designacion=t_no.id_designacion and t_no.desde<='\".$udia.\"' and (t_no.hasta is null or t_no.hasta>='\".$pdia.\"' ))\"\n . \" GROUP BY sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde,sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo\" \n . \")sub2\"//obtengo el id_novedad maximo\n . \" LEFT OUTER JOIN novedad t_no on (t_no.id_novedad=sub2.id_novedad)\"//con el id_novedad maximo obtengo la novedad que predomina\n .\" LEFT JOIN impresion_540 t_i ON (nro_540=t_i.id)\"//para agregar el expediente \n .\" LEFT OUTER JOIN designacion d ON (sub2.id_designacion=d.id_designacion)\"//como no tengo el id de la norma tengo que volver a hacer join\n .\" LEFT OUTER JOIN norma t_nor ON (d.id_norma=t_nor.id_norma)\"\n . \")sub3\"\n .$where2\n . \" order by docente_nombre,desde\"; \n return toba::db('designa')->consultar($sql);\n\t}", "function historialComprasAction ()\r\n {\r\n $compra = new Compras();\r\n $frontController = Zend_Controller_Front::getInstance();\r\n $fileshare = $frontController->getParam('bootstrap')->getOption('fileshare');\r\n $this->session->pageHistory = $_SERVER['REQUEST_URI'];\r\n $this->view->listarhcTodas = $compra->historialCompras($this->identity->ID_USR, '0', '0', '0');\r\n $this->view->ruta = $fileshare[url] . '/' . $fileshare['thumbs'] . '/';\r\n\r\n switch ($this->_request->getParam('opc')) {\r\n case 'categoria':\r\n if ($this->_request->getParam('codigo') == '0') {\r\n $this->view->listarHC = $compra->historialCompras($this->identity->ID_USR, '0', '0', '0');\r\n break;\r\n } else {\r\n $this->view->listarHC = $compra->historialCompras(\r\n $this->identity->ID_USR, $this->_request->getParam('codigo'), '0', '0'\r\n );\r\n $this->view->codigo=$this->_request->getParam('codigo');\r\n break;\r\n }\r\n case 'calificacion':\r\n $calificacion = $this->_request->getParam('codigo');\r\n if ($calificacion == 1) {\r\n $this->view->listarHC = $compra->historialCompras(\r\n $this->identity->ID_USR, '0', '0', $calificacion\r\n );\r\n $this->view->codclasificacion=$calificacion;\r\n break;\r\n }\r\n if ($calificacion == 2) {\r\n $this->view->listarHC = $compra->historialCompras(\r\n $this->identity->ID_USR, '0', '0', $calificacion\r\n );\r\n $this->view->codclasificacion = $calificacion;\r\n break;\r\n }if ($calificacion == 5) {\r\n $this->view->listarHC = $compra->historialCompras(\r\n $this->identity->ID_USR, '0', '0', $calificacion\r\n );\r\n $this->view->codclasificacion=$calificacion;\r\n break;\r\n }\r\n case 'fecha':\r\n if ($this->_request->getParam('codigo') == 3) {\r\n $this->view->listarHC = $compra->historialCompras($this->identity->ID_USR, '0', '0', '3');\r\n $this->view->codfecha=$this->_request->getParam('codigo');\r\n break;\r\n } else {\r\n $this->view->listarHC = $compra->historialCompras($this->identity->ID_USR, '0', '0', '4');\r\n $this->view->codfecha=$this->_request->getParam('codigo');\r\n break;\r\n }\r\n } \r\n }", "function GetPercentualSemFiesProuni($p_WPessoa_Id, $dBase='', $p_Incidencia = '' )\r\n {\r\n \tif ($dBase == '')\r\n \t{\r\n \t\t$dBase = date('d/m/Y');\r\n \t}\r\n \r\n \t$aReturn = '';\r\n \r\n \t$sql = \"select\r\n\t \t\t\t\t\tBolsa_gnPercentual(bolsa.id, to_char( to_date( '\". $dBase .\"' ), 'mm'), 3)\tas percentual,\r\n \t\t\t\t\t\tto_char(bolsa.dtinicio, 'dd/mm/yyyy')\t\t\t\t\t\t\t\t\t\tas dtinicio,\r\n \t\t\t\t\t\tto_char(bolsa.dttermino, 'dd/mm/yyyy')\t\t\t\t\t\t\t\t\t\tas dttermino,\r\n\t \t\t\t\t\treplace(bolsa.valor , ',','.')\t\t\t\t\t\t\t\t\t\t\t\tas valor,\r\n\t \t\t\t\t\tbolsa.bolsati_id\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tas bolsati_id\r\n\t\t\t\t\tfrom\r\n\t\t\t\t\t\tBolsa join Bolsati on bolsati_id=bolsati.id\r\n\t\t\t\t\twhere\r\n \t\t\t(\r\n \t\t\t\t(\r\n \t\t\t\t\t\t\tbolsati.mensalidade = 'on'\r\n \t\t\t\t\t\tand\r\n \t\t\t\t\t\t\t'\" . $p_Incidencia . \"' = 'MENSALIDADE'\r\n \t\t\t\t\t\t)\r\n \t\t\t\t\t\tor\r\n \t\t\t\t(\r\n \t\t\t\t\t\t\tbolsati.licenciatura = 'on'\r\n \t\t\t\t\t\tand\r\n \t\t\t\t\t\t\t'\" . $p_Incidencia . \"' = 'LICENCIATURA'\r\n \t\t\t\t\t\t)\r\n \t\t\t\t\t\tor\r\n \t\t\t\t(\r\n \t\t\t\t\t\t\tbolsati.dependencia = 'on'\r\n \t\t\t\t\t\tand\r\n \t\t\t\t\t\t\t'\" . $p_Incidencia . \"' = 'DEPENDENCIA'\r\n \t\t\t\t\t\t)\r\n \t\t\t\t\t\tor\r\n \t\t\t\t(\r\n \t\t\t\t\t\t\tbolsati.adaptacao = 'on'\r\n \t\t\t\t\t\tand\r\n \t\t\t\t\t\t\t'\" . $p_Incidencia . \"' = 'ADAPTACAO'\r\n \t\t\t\t\t\t)\r\n \t\t\t\t\t\tor\r\n \t\t\t\t(\r\n \t\t\t\t\t\t\tbolsati.estagioprof = 'on'\r\n \t\t\t\t\t\tand\r\n \t\t\t\t\t\t\t'\" . $p_Incidencia . \"' = 'ESTAGIOPROF'\r\n \t\t\t\t\t\t)\r\n \t\t\t\t\t\tor\r\n \t\t\t\t(\r\n \t\t\t\t\t\t\tbolsati.monografia = 'on'\r\n \t\t\t\t\t\tand\r\n \t\t\t\t\t\t\t'\" . $p_Incidencia . \"' = 'MONOGRAFIA'\r\n \t\t\t\t\t\t)\r\n \t\t\t\t\t\tor\r\n \t\t\t\t\t\t(\r\n \t\t\t\t\t\t\t'\" . $p_Incidencia . \"' is null\r\n \t\t\t\t\t\t)\r\n \t\t\t\t\t)\r\n \t\t\t\t\tand\r\n \t\t\t\t\t\tto_date( '\" . $dBase . \"' ) between to_date(bolsa.dtinicio) and to_date(bolsa.dttermino)\r\n \t\t\t\t\tand\r\n \t\t\t\t\t\tbolsa.bolsati_id not in ( 10600000000048, 10600000000156, 10600000000152, 10600000000153, 10600000000160, 10600000000049 )\r\n \t\t\t\t\tand\r\n \t\t\t\t\t\tbolsa.state_id=3000000018003\r\n \t\t\t\t\tand\r\n\t \t\t\t\t\tbolsa.WPessoa_Id = nvl ( '\" . $p_WPessoa_Id . \"' ,0)\r\n \t\t\t\t\torder by bolsati.nome\";\r\n \r\n \r\n \t$dbData = new DbData($this->db);\r\n \r\n \t$dbData->Get($sql);\r\n \r\n \twhile ($row = $dbData->Row())\r\n \t{\r\n \t\t$aReturn[] = $row;\r\n \t}\r\n \r\n \tunset($dbData);\r\n \r\n \r\n \treturn $aReturn;\r\n }", "public function categoriaInactivos(){\n if($this->nolaboral->V21_M >= 1)\n {\n return 1;\n }\n if($this->nolaboral->V8_M == 1 && $this->nolaboral->V9_M == 1 && $this->nolaboral->V10_M == 1)\n {\n return 2;\n }\n if($this->caracteristicas->CH10 == 1 && $this->PP01E == 2)\n {\n return 3;\n }\n if($this->PP01E == 2)\n {\n return 4;\n }\n if($this->caracteristicas->CH06 < 6)\n {\n return 5;\n }\n if($this->discapacidad())\n {\n return 6;\n }\n\n}", "function formel_kampf($a_count,$v_count,$a_ang,$v_def,$trefferQuote = 10,$rapidfire = 1)\n{\n $schaden = rand(60,100);\n //28.12.2011 - nun echtes RF\n $schuss = $a_count;// * max(1,$rapidfire);\n \n if($schuss < 0)\n\t\techo \"komische anzahl $a_count<br>\";\n\t$treffer = ($schuss * (rand($trefferQuote,100)/100));\n \n\t\n\t$angWert = $treffer * ($schaden / 100) * $a_ang;\n\t\n\t//$iRest = max(round((1 / ($v_def)) * (($v_count * $v_def) - ($angWert)) ),0);\n $iTmp = ((($v_def * $v_count) - $angWert) / ($v_def * $v_count)) * $v_count;\n $iTmp = max($iTmp,0);\n $iAbsorb = $v_def * ($v_count - $iTmp);\n \n $iRest = ceil($iTmp);\n //$iRest = (round(($v_count / ($v_count * $v_def)) * (($v_count * $v_def) - ($angWert)) ));\n\n\t//echo \"($v_count / ($v_count * $v_def)) * (($v_count * $v_def) - ($angWert)) = $iRest<br/>\";\n\t\n\treturn array(\"rest\" => $iRest, \"schuss\" => $schuss, \"treffer\" => $treffer, \"schaden\" => $angWert, \"absorb\" => $iAbsorb);\n}", "public function insertarHistoria(){\n\t\t$motivo = $_POST[\"motivo\"];\n\t\t$lugar = $_POST[\"lugar\"];\n\t\t$dosis = \"---\";\n\t\t$id_enf = $_SESSION[\"id_enf\"];\n\t\t$id_pac = $_POST[\"id_pac\"];\n\t\t$id_ser = $_POST[\"servicio\"];\n\t\t$sql = \"INSERT INTO historia VALUES (null, '\".$motivo.\"', CURRENT_DATE(), '\".$lugar.\"', '\".$dosis.\"', '\".$id_enf.\"','\".$id_pac.\"','\".$id_ser.\"')\";\n\t\t$this->db->query($sql);\n\t}", "function NUMERO_DE_HIJOS_MENORES($_ARGS) {\r\n\t$_PARAMETROS = PARAMETROS();\r\n\t\r\n\tlist($a, $m)=SPLIT( '[/.-]', $_ARGS[\"PERIODO\"]); $anio = $a - 18;\r\n\t$fecha = \"$anio-$m-01\";\r\n\r\n\t$sql = \"SELECT\r\n\t\t\t\t*\r\n\t\t\tFROM\r\n\t\t\t\trh_cargafamiliar\r\n\t\t\tWHERE\r\n\t\t\t\tCodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND\r\n\t\t\t\tParentesco = 'HI' AND\r\n\t\t\t\tFechaNacimiento >= '\".$fecha.\"'\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\treturn intval(mysql_num_rows($query));\r\n}", "public function totalq1($modalite)\r\n\t{\r\n\t$conge = new Default_Model_Conge();\r\n\t$debut_mois = $this->getAnnee_reference().'-01-01';\r\n\t$fin_mois = $this->getAnnee_reference().'-12-31'; // il faut la remplacer par l'annee de reference\r\n\t\r\n\t\r\n\t$jours_ouvres_de_annee_ref = $conge->joursOuvresDuMois($debut_mois,$fin_mois);\r\n\t$nbr_heurs_ouvrees_annee = ($jours_ouvres_de_annee_ref -14) *7.4;\r\n\t$personne = new Default_Model_Personne();\r\n\t$id_entite =1; // MBA : pourquoi entite 1 pour personne? \r\n\t$personne = $personne->fetchall('id_entite ='.$id_entite. '&&'. 'id ='.$this->getPersonne()->getId());\r\n\t//var_dump($personne);\r\n\tif (null!==$personne)\r\n\t\r\n\t{\r\n\t\tif ($modalite == 4)\r\n\t\t{\r\n\t\t\t$nbr_heurs_ouvrees_annee = ($jours_ouvres_de_annee_ref -14) *7.4;\r\n\t\t\tif($nbr_heurs_ouvrees_annee >1607)\r\n\t\t\t{\r\n\t\t\t\treturn 0.5;\r\n\t\t\t}\r\n\t\t\telseif($nbr_heurs_ouvrees_annee <1607.5)\r\n\t\t\t{\r\n\t\t\t\treturn 1.0;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telseif ($modalite == 5 ||$modalite == 6 )\r\n\t\t{\r\n\t\t\t$nbr_jours_ouvrees_annee = $jours_ouvres_de_annee_ref-243;\r\n\t\t\tif($nbr_jours_ouvrees_annee < 10)\r\n\t\t\t{\r\n\t\t\t\treturn 10.0;\r\n\t\t\t}\r\n\t\t\telseif($nbr_jours_ouvrees_annee >10)\r\n\t\t\t{\r\n\t\t\t\treturn $nbr_jours_ouvrees_annee;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telseif ($modalite == 1 ||$modalite == 2 ||$modalite == 3)\r\n\t\t{\r\n\t\t\t\treturn 10.0;\r\n\t\t}\r\n\t\r\n\t}\r\n\t\r\n\telse return 0;\r\n\t\r\n\t}", "function actualizarEstadisticaV(){\n\t\t\t$sql=\"UPDATE estadistica SET votovalido = votovalido+1,\nvotototal = votototal+1 where idestaditica=(Select max(idestaditica) from estadistica);\";\n\t\t\treturn $sql;\n\t\t}", "function getMerezcoTarjeta(){\n\t\tif($this->numero_cambio >= 3)\n\t\t\t$necesito=2;\n\t\telse\n\t\t\t$necesito=1;\n\t\t\n\t\tif($necesito <= $this->sacar_tarjeta){\n\t\t\t$this->sacar_tarjeta=0;\n\t\t\treturn 1;\n\t\t}\n\t\telse{\n\t\t\t$this->sacar_tarjeta=0;\n\t\t\treturn 0;\n\t\t}\n\t}", "function getFondoDeDefuncion(){\n\t \t$fecha\t= fechasys();\n\t \t$maximo_de_antiguedad\t= restardias($fecha, DIAS_A_ROTAR_FONDO_DE_DEFUNCION);\n\t \t$sql\t\t\t= \"SELECT\n\t\t\t\t\t`operaciones_mvtos`.`socio_afectado`,\n\t\t\t\t\t`operaciones_mvtos`.`tipo_operacion`,\n\t\t\t\t\tMAX(`operaciones_mvtos`.`fecha_afectacion`) AS `fecha_de_pago`,\n\t\t\t\t\tSUM(`operaciones_mvtos`.`afectacion_real`) AS `monto_pagado`\n\t\t\t\tFROM\n\t\t\t\t\t`operaciones_mvtos` `operaciones_mvtos`\n\t\t\t\tWHERE\n\t\t\t\t\t(`operaciones_mvtos`.`socio_afectado` = \" . $this->mCodigo . \")\n\t\t\t\t\tAND\n\t\t\t\t\t(`operaciones_mvtos`.`tipo_operacion` =902)\n\t\t\t\tGROUP BY `operaciones_mvtos`.`socio_afectado` \";\n\n\t\t$Datos\t= obten_filas($sql);\n\t\t$fecha\t= $Datos[\"fecha_de_pago\"];\n\t\t$monto\t= setNoMenorQueCero($Datos[\"monto_pagado\"]);\n\t\t$this->mMessages\t.= \"El Socio ha Pagado por Defuncion $monto, el Ultimo pago fue $fecha \\r\\n\";\n\t\tif ( $monto != 0){\n\t\t\t//Validar la Rotación\n\t\t\tif ( strtotime($fecha) < strtotime($maximo_de_antiguedad) ){\n\t\t\t\t$this->mMessages\t.= \"El Fondo ha Expirado, el pago fue $fecha, Maximo de Antiguedad en $maximo_de_antiguedad \\r\\n\";\n\t\t\t\t$monto\t\t\t\t= 0;\n\t\t\t}\n\t\t}\n\t\treturn $monto;\n\t }", "function comparar_fechas_num($fecha_inicio, $fecha_fin){\n\t\t$inicio = array();\n\t\t$inicio['anno'] = substr($fecha_inicio, 0, 4);\n\t\t$inicio['mes'] = substr($fecha_inicio, 5, 2);\n\t\t$inicio['dia'] = substr($fecha_inicio, 8, 2);\n\t\t$inicio['hora'] = substr($fecha_inicio, 11, 2);\n\t\t$inicio['min'] = substr($fecha_inicio, 14, 2);\n\t\t$inicio['sec'] = substr($fecha_inicio, 17, 2);\n\t\t\n\t\t$fin = array();\n\t\t$fin['anno'] = substr($fecha_fin, 0, 4);\n\t\t$fin['mes'] = substr($fecha_fin, 5, 2);\n\t\t$fin['dia'] = substr($fecha_fin, 8, 2);\n\t\t$fin['hora'] = substr($fecha_fin, 11, 2);\n\t\t$fin['min'] = substr($fecha_fin, 14, 2);\n\t\t$fin['sec'] = substr($fecha_fin, 17, 2);\n\t\t\n\t\t$diferencia = array();\n\t\t$diferencia['anno'] = $fin['anno'] - $inicio['anno'];\n\t\t$diferencia['mes'] = $fin['mes'] - $inicio['mes'];\n\t\t$diferencia['dia'] = $fin['dia'] - $inicio['dia'];\n\t\t$diferencia['hora'] = $fin['hora'] - $inicio['hora'];\n\t\t$diferencia['min'] = $fin['min'] - $inicio['min'];\n\t\t$diferencia['sec'] = $fin['sec'] - $inicio['sec'];\n\t\t\n\t\tif($diferencia['mes'] < 0){\n\t\t\t$diferencia['mes'] = 12 + $diferencia['mes'];\n\t\t\t$diferencia['anno'] = $diferencia['anno'] - 1;\n\t\t}\n\t\tif($diferencia['dia'] < 0){\n\t\t\t$diferencia['dia'] = 30 + $diferencia['dia'];\n\t\t\t$diferencia['mes'] = $diferencia['mes'] - 1;\n\t\t}\n\t\tif($diferencia['hora'] < 0){\n\t\t\t$diferencia['hora'] = 24 + $diferencia['hora'];\n\t\t\t$diferencia['dia'] = $diferencia['dia'] - 1;\n\t\t}\n\t\tif($diferencia['min'] < 0){\n\t\t\t$diferencia['min'] = 60 + $diferencia['min'];\n\t\t\t$diferencia['hora'] = $diferencia['hora'] - 1;\n\t\t}\n\t\tif($diferencia['sec'] < 0){\n\t\t\t$diferencia['sec'] = 60 + $diferencia['sec'];\n\t\t\t$diferencia['min'] = $diferencia['min'] - 1;\n\t\t}\n\t\t\n\t\t$resultado = sprintf(\"%02d\", $diferencia['anno']).sprintf(\"%02d\", $diferencia['mes']).sprintf(\"%02d\", $diferencia['dia']).sprintf(\"%02d\", $diferencia['hora']).sprintf(\"%02d\", $diferencia['min']);\n\t\t\n\t\treturn $resultado;\n\t}", "public function verHistorialNuevo(Request $request){\n if($request->isMethod('post')){\n $reglaDatos = array(\n 'id' => 'required',\n 'fecha1' => 'required',\n 'fecha2' => 'required'\n );\n\n $mensajeDatos = array(\n 'id.required' => 'El id motorista es requerido.',\n 'fecha1.required' => 'La fecha1 es requerido.',\n 'fecha2.required' => 'La fecha2 es requerido.'\n );\n\n $validarDatos = Validator::make($request->all(), $reglaDatos, $mensajeDatos );\n\n if($validarDatos->fails())\n {\n return [\n 'success' => 0,\n 'message' => $validarDatos->errors()->all()\n ];\n }\n\n\n if(Revisador::where('id', $request->id)->first()){\n\n $start = Carbon::parse($request->fecha1)->startOfDay();\n $end = Carbon::parse($request->fecha2)->endOfDay();\n\n $orden = DB::table('ordenes_revisadas AS r')\n ->join('ordenes AS o', 'o.id', '=', 'r.ordenes_id')\n ->select('o.id', 'o.precio_total', 'r.fecha',\n 'o.precio_envio', 'o.pago_a_propi', 'o.tipo_pago')\n ->where('r.revisador_id', $request->id)\n ->whereBetween('r.fecha', [$start, $end])\n ->orderBy('o.id', 'ASC')\n ->get();\n\n $totalcobro = 0;\n\n foreach($orden as $o){\n\n $motorista = \"\";\n\n if($mm = MotoristaOrdenes::where('ordenes_id', $o->id)->first()){\n $motorista = Motoristas::where('id', $mm->motoristas_id)->pluck('nombre')->first();\n }\n\n $o->fecha = date(\"h:i A d-m-Y\", strtotime($o->fecha));\n\n $o->motorista = $motorista;\n\n\n // buscar si aplico cupon\n if($oc = OrdenesCupones::where('ordenes_id', $o->id)->first()){\n\n\n // buscar tipo de cupon\n $tipo = Cupones::where('id', $oc->cupones_id)->first();\n\n // ver que tipo se aplico\n // el precio envio ya esta modificado\n if($tipo->tipo_cupon_id == 1){\n\n if($o->pago_a_propi == 1){\n // se paga a propietario\n\n // NO SUMAR SI PAGO CON CREDI PUNTOS\n if($o->tipo_pago == 0){\n // $totalcobro = $totalcobro + $o->precio_total;\n // MENOS LO QUE SE PAGARA A PROPIETARIO\n // MAS LO QUE CANCELARA CLIENTE\n // envio es siempre 0\n $info = -$o->precio_total + $o->precio_total;\n $totalcobro = $totalcobro + $info;\n }else{\n // credi puntos\n $totalcobro = $totalcobro - $o->precio_total;\n }\n // $o->precio_total = number_format((float), 2, '.', '');\n $o->precio_total = number_format((float)$o->precio_total, 2, '.', '');\n }else{\n // no se paga a propietario\n // no sumara precio envio, ya que esta seteado a $0.00 por cupon envio gratis\n // NO SUMAR SI PAGO CON CREDI PUNTOS\n if($o->tipo_pago == 0){\n $totalcobro = $totalcobro + $o->precio_total;\n }\n\n $o->precio_total = number_format((float)$o->precio_total, 2, '.', '');\n }\n //\n\n }else if($tipo->tipo_cupon_id == 2){\n $o->tipocupon = 2;\n // modificar precio\n $dd = AplicaCuponDos::where('ordenes_id', $o->id)->first();\n $descuento = $dd->dinero;\n\n $total = $o->precio_total - $descuento;\n if($total <= 0){\n $total = 0;\n }\n\n if($o->pago_a_propi == 1){\n\n if($o->tipo_pago == 0){ // efectivo\n $info = -$o->precio_total + ($total + $o->precio_envio);\n $totalcobro = $totalcobro + $info;\n\n }else{\n // credi puntos\n\n $totalcobro = $totalcobro - $o->precio_total;\n }\n\n $afectado = $o->precio_envio + $total;\n $o->precio_total = number_format((float)$afectado, 2, '.', '');\n\n }else{\n // no se le paga a propietario\n\n // sumar el precio de envio\n $suma = $total + $o->precio_envio;\n\n // precio modificado con el descuento dinero\n $o->precio_total = number_format((float)$suma, 2, '.', '');\n // NO SUMAR SI PAGO CON CREDI PUNTOS\n if($o->tipo_pago == 0){\n $totalcobro = $totalcobro + $suma;\n }\n }\n\n }else if($tipo->tipo_cupon_id == 3){\n\n $porcentaje = AplicaCuponTres::where('ordenes_id', $o->id)->pluck('porcentaje')->first();\n $resta = $o->precio_total * ($porcentaje / 100);\n $total = $o->precio_total - $resta;\n\n\n if($total <= 0){\n $total = 0;\n }\n\n if($o->pago_a_propi == 1){\n\n if($o->tipo_pago == 0){ // efectivo\n $info = -$o->precio_total + ($total + $o->precio_envio);\n $totalcobro = $totalcobro + $info;\n\n }else{\n // credi puntos\n\n $totalcobro = $totalcobro - $o->precio_total;\n }\n\n $afectado = $o->precio_envio + $total;\n $o->precio_total = number_format((float)$afectado, 2, '.', '');\n\n }else{\n // no se le paga a propietario\n\n // sumar el precio de envio\n $suma = $total + $o->precio_envio;\n\n // precio modificado con el descuento dinero\n $o->precio_total = number_format((float)$suma, 2, '.', '');\n // NO SUMAR SI PAGO CON CREDI PUNTOS\n if($o->tipo_pago == 0){\n $totalcobro = $totalcobro + $suma;\n }\n }\n\n }else if($tipo->tipo_cupon_id == 4){\n $o->tipocupon = 4;\n $producto = AplicaCuponCuatro::where('ordenes_id', $o->id)->pluck('producto')->first();\n\n\n if($o->pago_a_propi == 1){\n\n if($o->tipo_pago == 0){\n $info = -$o->precio_total + ($o->precio_total + $o->precio_envio);\n $totalcobro = $totalcobro + $info;\n $o->precio_total = number_format((float)$o->precio_total + $o->precio_envio, 2, '.', '');\n }else{\n // CREDI PUNTOS\n $totalcobro = $totalcobro - $o->precio_total;\n\n $o->precio_total = number_format((float)0, 2, '.', '');\n }\n\n }else{\n // no se le paga a servicio\n\n $cobro = $o->precio_total + $o->precio_envio;\n $o->precio_total = number_format((float)$cobro, 2, '.', '');\n // NO SUMAR SI PAGO CON CREDI PUNTOS\n if($o->tipo_pago == 0){\n $totalcobro = $totalcobro + $cobro;\n }\n }\n\n\n }\n else if($tipo->tipo_cupon_id == 5){\n $donacion = AplicaCuponCinco::where('ordenes_id', $o->id)->pluck('dinero')->first();\n\n $total = $donacion + $o->precio_total;\n\n if($o->pago_a_propi == 1){\n\n if($o->tipo_pago == 0){\n $info = -$o->precio_total + ($total + $o->precio_envio);\n $totalcobro = $totalcobro + $info;\n $o->precio_total = number_format((float)$total + $o->precio_envio, 2, '.', '');\n }else{\n // CREDI PUNTOS\n $totalcobro = $totalcobro - $o->precio_total;\n\n $o->precio_total = number_format((float)0, 2, '.', '');\n }\n\n }else{\n // no se le paga a servicio\n\n $cobro = $total + $o->precio_envio;\n $o->precio_total = number_format((float)$cobro, 2, '.', '');\n\n if($o->tipo_pago == 0){\n $totalcobro = $totalcobro + $cobro;\n }\n }\n\n }\n\n\n }else{\n\n if($o->pago_a_propi == 1){\n\n if($o->tipo_pago == 0){\n $info = -$o->precio_total + ($o->precio_total + $o->precio_envio);\n $totalcobro = $totalcobro + $info;\n $o->precio_total = number_format((float)$o->precio_total + $o->precio_envio, 2, '.', '');\n }else{\n // CREDI PUNTOS\n $totalcobro = $totalcobro - $o->precio_total;\n\n $o->precio_total = number_format((float)0, 2, '.', '');\n }\n\n }else{\n // no se le paga a servicio\n\n $cobro = $o->precio_total + $o->precio_envio;\n $o->precio_total = number_format((float)$cobro, 2, '.', '');\n // NO SUMAR SI PAGO CON CREDI PUNTOS\n if($o->tipo_pago == 0){\n $totalcobro = $totalcobro + $cobro;\n }\n }\n }\n }\n\n // sumar ganancia de esta fecha\n $totalcobro = number_format((float)$totalcobro, 2, '.', '');\n\n\n return ['success' => 1, 'histoorden' => $orden, 'ganado' => $totalcobro];\n }else{\n return ['success' => 2];\n }\n }\n }", "public function buscarHistorial($usuario_id)\n\t{\n\t\treturn Historial::where('usuario_id','=', $usuario_id)->first();\n\t}", "function bloc_stats_generales(\r\n\t$prev_visites,\r\n\t$global_jour,\r\n\t$date_globaljour,\r\n\t$global_stats,\r\n\t$prim_jour_stats,\r\n\t$nb_jours_stats,\r\n\t$moy_global_stats,\r\n\t$cumul_vis_art_jour,\r\n\t$moy_pages_jour,\r\n\t$global_pages_stats,\r\n\t$moy_pag_vis,\r\n\t$date_max,\r\n\t$visites_max\r\n) {\r\n\r\n\tif (is_array($prev_visites)) {\r\n\t\tif ($prev = intval($prev_visites[1])) {\r\n\t\t\t$prev = \"&nbsp;+ \" . $prev;\r\n\t\t} else {\r\n\t\t\t$prev = '';\r\n\t\t}\r\n\t}\r\n\r\n\t$aff = '';\r\n\r\n\t$aff .= debut_cadre_relief(\"statistiques-24.gif\", true)\r\n\t\t. \"<span class='verdana3 bold'>\" . _T('actijour:nombre_visites_') . \"</span>\\n\"\r\n\t\t. \"<br /><span class='verdana2'>\" . $date_globaljour . \"</span>\"\r\n\t\t. \"<div class='cell_info alter-fond'>\"\r\n\t\t. _T('actijour:global_vis_jour', array('global_jour' => $global_jour . $prev))\r\n\t\t. \"</div>\\n\"\r\n\t\t. \"<div class='cell_info'>\"\r\n\t\t. _T('actijour:global_vis_global', array('global_stats' => $global_stats))\r\n\t\t. \"</div>\\n\";\r\n\r\n\t$aff .= \"<div style='margin-top:8px;'>\\n\"\r\n\t\t. \"<span class='verdana3 bold'>\" . _T('actijour:stats_actives_') . \"</span>\\n\"\r\n\t\t. \"<div class='cell_info'>\\n\"\r\n\t\t. _T('actijour:depuis_le_prim_jour', array('prim_jour_stats' => $prim_jour_stats)) . \"<br />\\n\"\r\n\t\t. _T('actijour:soit_nbre_jours', array('nb_jours_stats' => $nb_jours_stats)) . \"<br />\\n\"\r\n\t\t. _T('actijour:soit_moyenne_par_jour', array('moy_global_stats' => $moy_global_stats)) . \"\\n\"\r\n\t\t. \"</div>\\n\"\r\n\t\t. \"</div>\\n\";\r\n\r\n\t$aff .= \"<div style='margin-top:8px;'>\\n\"\r\n\t\t. \"<span class='verdana3 bold'>\" . _T('actijour:pages_article_vues') . \"</span><br />\\n\"\r\n\t\t. \"<div class='cell_info alter-fond'>\\n\"\r\n\t\t. _T('actijour:pages_art_cumul_jour', array('cumul_vis_art_jour' => $cumul_vis_art_jour)) . \"<br />\\n\"\r\n\t\t. _T('actijour:pages_art_moyenne_jour', array('moy_pages_jour' => $moy_pages_jour)) . \"<br />\\n\"\r\n\t\t. \"</div>\\n\";\r\n\r\n\t$aff .= \"<div class='cell_info'>\\n\"\r\n\t\t. _T('actijour:pages_global_cumul_jour', array('global_pages_stats' => $global_pages_stats)) . \"<br />\\n\"\r\n\t\t. _T('actijour:pages_global_moyenne_jour', array('moy_pag_vis' => $moy_pag_vis)) . \"<br />\\n\"\r\n\t\t. \"</div>\\n\"\r\n\t\t. \"</div>\\n\";\r\n\r\n\t$aff .= \"<div style='margin-top:8px;'>\\n\"\r\n\t\t. \"<span class='verdana3 bold'>\" . _T('actijour:grosse_journee_') . \"</span>\\n\"\r\n\t\t. \"<div class='cell_info'>\\n\"\r\n\t\t. http_img_pack('puce-verte-breve.gif', 'ico', '', '') . \"&nbsp;\"\r\n\t\t. _T('actijour:date_jour_maxi_vis', array('date_max' => $date_max, 'visites_max' => $visites_max))\r\n\t\t. \"</div>\\n\"\r\n\t\t. \"</div>\\n\";\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "function getForResumenTotGen($contrato){\n\t\t\t$tipos = array(\n\t\t\t\t0=>\"CE\",\n\t\t\t\t1=>\"DS\",\n\t\t\t\t2=>\"Q\",\n\t\t\t\t3=>\"AB\",\n\t\t\t\t4=>\"DM\",\n\t\t\t\t5=>\"M\",\n\t\t\t\t6=>\"R\",\n\t\t\t\t7=>\"D\",\n\t\t\t\t8=>\"P\",\n\t\t\t\t9=>\"PA\",\n\t\t\t\t10=>\"EL\",\n\t\t\t\t11=>\"S\",\n\t\t\t\t12=>\"CI\",\n\t\t\t\t13=>\"IP\",\n\t\t\t\t14=>\"IA\",\n\t\t\t\t15=>\"DI\",\n\t\t\t\t16=>\"IPA\",\n\t\t\t\t17=>\"E\",\n\t\t\t\t18=>\"RE\",\n\t\t\t\t19=>\"C\",\n\t\t\t\t20=>\"L\",\n\t\t\t\t21=>\"LA\",\n\t\t\t\t22=>\"I\",\n\t\t\t\t23=>\"IL\",\n\t\t\t\t24=>\"DL\",\n\t\t\t\t25=>\"DE\",\n\t\t\t\t26=>\"CB\",\n\t\t\t\t27=>\"CA\"\n\t\t\t\t);\n\t\t\t$respuesta = array();\n\t\t\tforeach ($tipos as $value) {\n\t\t\t\t$sql = \"select count(*) as total from $this->tabla \n\t\t\t\t\t\tjoin referencias\n\t\t\t\t\t\t\ton referencias.id_referencia = $this->tabla.id_referencia\n\t\t\t\t\t\tjoin areas\n\t\t\t\t\t\t\ton areas.id_area = referencias.id_area\n\t\t\t\t\t\tjoin disciplinas\n\t\t\t\t\t\t\ton disciplinas.id_disciplina = areas.id_disciplina\n\t\t\t\t\t\twhere\n\t\t\t\t\t\t\t$this->tabla.tipo_discontinuidad = '\".$value.\"' \n\t\t\t\t\t\t\tand disciplinas.id_contrato=\".$contrato.\"\n\t\t\t\t\";\n\t\t\t\t//echo $sql ;\n\t\t\t\t//echo \"<br><br>\";\n\n\t\t\t\t$resultado = $this->conexion->query($sql);\n\t\t\t\t//echo $sql ;\n\t\t\t\tif($resultado->num_rows > 0){\n\t\t\t\t\t$row=$resultado->fetch_assoc() ;\n\t\t\t\t\tif($row['total']>0){\n\t\t\t\t\t\t$respuesta[$value] = $row['total'] ;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn json_encode($respuesta) ;\n\t\t}", "function AtividadesRecentesGeral($logs_descricao = \"\", $logs_id_referencia = 0,$usuarios_nome = \"\", $logs_data = \"\"){\n\n $conexao = new classeConexao();\n\n if($logs_descricao=='atualizou a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-edit';\n $label = 'label-warning';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='completou a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-check';\n $label = 'label-success';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='reativou a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-arrow-up';\n $label = 'label-danger';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='pausou a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-pause';\n $label = 'label-primary';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='aprovou a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-check';\n $label = 'label-success';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='reprovou a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-times';\n $label = 'label-danger';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='enviou para aprovação a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-mail-forward';\n $label = 'label-info';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='cancelou a aprovação da tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-times';\n $label = 'label-warning';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='criou a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-star';\n $label = 'label-info';\n $url = 'editar/tarefa/';\n }\n\n //$exibeHTML = '<li><div class=\"col1\" style=\"width:98%;\"><div class=\"cont\"><div class=\"cont-col1\"><div class=\"label label-sm '.$label.'\"><i class=\"fa '.$imagem.'\"></i></div></div><div class=\"cont-col2\">';\n //$exibeHTML .= '<div class=\"desc\">O usuário <a href=\"\">'.$usuarios_nome.'</a> '.$logs_descricao.' <a href=\"'.$url.$logs_id_referencia.'\">'.$item.'</a></div></div></div></div><div class=\"col2\">'.'<div class=\"date\">'.DataBrasilSemHoras($logs_data).'</div></div></li>';\n\n //return $exibeHTML;\n\n echo '<li>';\n echo '<div class=\"col1\" style=\"width:98%;\">';\n echo '<div class=\"cont\">';\n echo '<div class=\"cont-col1\">';\n echo '<div class=\"label label-sm '.$label.'\">';\n echo '<i class=\"fa '.$img.'\"></i>';\n echo '</div>';\n echo '</div>';\n echo '<div class=\"cont-col2\">';\n\n\n\n echo '<div class=\"desc\">O usuário <a href=\"\">'.$usuarios_nome.'</a> '.$logs_descricao.' <a href=\"'.$url.$logs_id_referencia.'\">'.$item.'</a>';\n echo '</div>';\n echo '</div>';\n echo '</div>';\n echo '</div>';\n echo '<div class=\"col2\">';\n echo '<div class=\"date\">'.DataBrasilSemHoras($logs_data).'</div>';\n echo '</div>';\n echo '</li>';\n \n}", "public function obtenerUltimoCodigoTipoResiduo(){\n //Insertar provincia se invoca al metodo en datos\n $this->tipoResiduoAccesoDatos->conectar();\n $resultado = $this->tipoResiduoAccesoDatos->obtenerUltimoCodigoTipoResiduo();\n $this->tipoResiduoAccesoDatos->cerrarConexion();\n return $resultado;\n }", "public function ListarHistorialAccesos($busqueda,$x,$y,$tipolistado)\n {\n try{\n $residuo = 0;\n $cantidad = 0;\n $numpaginas = 0;\n $i = 0;\n $sql_conexion = new Conexion_BD();\n $sql_conectar = $sql_conexion->Conectar();\n //Busqueda de producto por el comando LIMIT\n if($tipolistado == \"N\"){\n $busqueda = \"\";\n $sql_comando = $sql_conectar->prepare('CALL buscarhistorialacceso_ii(:busqueda)');\n $sql_comando -> execute(array(':busqueda' => $busqueda));\n $cantidad = $sql_comando -> rowCount();\n $numpaginas = ceil($cantidad / $y);\n $x = ($numpaginas - 1) * $y;\n $i = 1;\n } else if ($tipolistado == \"D\"){\n $sql_comando = $sql_conectar->prepare('CALL buscarhistorialacceso_ii(:busqueda)');\n $sql_comando -> execute(array(':busqueda' => $busqueda));\n $cantidad = $sql_comando -> rowCount();\n $residuo = $cantidad % $y;\n if($residuo == 0)\n {$x = $x - $y;}\n }\n //Busqueda de producto por el comando LIMIT\n $sql_comando = $sql_conectar->prepare('CALL buscarhistorialacceso(:busqueda,:x,:y)');\n $sql_comando -> execute(array(':busqueda' => $busqueda,':x' => $x,':y' => $y));\n $numpaginas = ceil($cantidad / $y);\n while($fila = $sql_comando -> fetch(PDO::FETCH_ASSOC))\n {\n if($i == ($cantidad - $x) && $tipolistado == \"N\"){\n echo '<tr bgcolor=\"#BEE1EB\">';\n } else if($fila[\"intIdHistorialAcceso\"] == $_SESSION['intIdHistorialAcceso'] && $tipolistado == \"E\"){\n echo '<tr bgcolor=\"#B3E4C0\">';\n }else {\n echo '<tr>';\n }\n\n echo '\n \t <td class=\"heading\" data-th=\"ID\"></td>\n <td>HDA-'.$fila[\"intIdHistorialAcceso\"].'</td>\n \t <td>'.$fila[\"NombreUsuario\"].'</td>\n \t <td>'.$fila[\"nvchFechaAcceso\"].'</td> \n <td>'.$fila[\"nvchIpOrigen\"].'</td> \n \t <td>'.$fila[\"nvchNavegador\"].'</td>\n\t </tr>';\n $i++;\n }\n }\n catch(PDPExceptio $e){\n echo $e->getMessage();\n } \n }", "private function\thistoryOf($nb) \n\t{\n\t\t$solutions=[];\n\t\tforeach($this->policy as $option){\n\t\t\t$solution=$this->callHistoryOf($nb,$option);\n\t\t\tif($solution!=\"\"){\n\t\t\t\t$solutions[$option]=$solution;\n\t\t\t}\n\t\t}\n\t\t$this->checkForDoubts($solutions);\n\t\t//now handle the case where multiple solutions are possible => raise warning\n\t\tif(Sargs::backtrackPolicy!=Sargs_value::random){\n\t\t\t//the random value of this global variable is to test how good is our selected policy\n\t\t\t// this is made for research only\n\t\t\t$finalVal=array_values($solutions)[0];\n\t\t}\n\t\telse{\n\t\t\t$finalVal=array_values($solutions)[mt_rand(0, count($solutions) - 1)];\n\t\t}\n\t\t$optionSelected=array_search($finalVal,$solutions);\n\t\t$policyRank=count($this->policy)-array_search($optionSelected, $this->policy);\n\t\t$this->numberReliabilityScore[$nb]=$policyRank;\n\t\t//\n\t\treturn $finalVal;\n\t\t//$lastForm\n\t}", "public function obtenerUltimoCodigoCanton() {\n\n $resultado = mysqli_query($this->connection, \"select max(codigoCanton) as ultimoCodigoCanton from tbcanton \");\n $ultimoCodigoCanton = 0;\n\n while ($filaTemporal = mysqli_fetch_array($resultado)) {\n $ultimoCodigoCanton = $filaTemporal['ultimoCodigoCanton'];\n }\n return $ultimoCodigoCanton;\n }", "function getNewCreditsRepris($id_ag, $date) {\n global $dbHandler, $global_id_agence;\n $db = $dbHandler->openConnection();\n //chercher les crédits repris aujourd'hui quel que soit l'état\n $sql = \"SELECT b.id_client, b.id_doss, b.cre_etat, b.id_prod, b.cre_mnt_octr \";\n $sql .= \"FROM ad_his a, ad_dcr b \";\n $sql .= \"WHERE a.id_ag = b.id_ag AND b.id_ag = $global_id_agence AND a.id_client = b.id_client AND \";\n $sql .= \"type_fonction = 503 AND date(date) = '$date' ;\";\n $result = $db->query($sql);\n if (DB :: isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__, $result->getMessage());\n }\n $newCrdRep = array ();\n while ($tmprow = $result->fetchrow())\n array_push($newCrdRep, $tmprow[0]);\n $dbHandler->closeConnection(true);\n return $newCrdRep;\n}", "public function otorgarPrestamo(){\n $fecha = date('d-m-y');\n $this->setFechaOtorgado($fecha);\n $cantidadCuotas = $this->getCantidadCuotas();\n $monto = $this->getMonto();\n $colObjCuota = array();\n for($i=0; $i<$cantidadCuotas; $i++){\n $montoCuota = $monto / $cantidadCuotas;\n $montoInteres = $this->calcularInteresPrestamo($i);\n $colObjCuota[$i] = new Cuota($i, $montoCuota, $montoInteres);\n }\n $this->setColObjCuota($colObjCuota);\n }", "public function buscaridproximo()\r\n {\r\n\r\n $mg = ZendExt_Aspect_TransactionManager::getInstance();\r\n $conn = $mg->getConnection('metadatos');\r\n $query = Doctrine_Query::create($conn);\r\n // eliminar el campo\r\n $result = $query->select('max(a.idcampo) as maximo')\r\n ->from('NomCampoestruc a')\r\n ->execute()\r\n ->toArray();\r\n\r\n $proximo = isset($result[0]['maximo']) ? $result[0]['maximo'] + 1 : 1;\r\n return $proximo;\r\n }" ]
[ "0.60460377", "0.60078293", "0.59037125", "0.583352", "0.57549095", "0.574019", "0.570032", "0.56959665", "0.5610018", "0.559653", "0.55471116", "0.55453736", "0.5522972", "0.5453068", "0.5444373", "0.5436694", "0.54274774", "0.5416253", "0.5415556", "0.53967655", "0.5376084", "0.53733414", "0.537039", "0.53656656", "0.5355789", "0.5354872", "0.53472555", "0.5344068", "0.5342501", "0.53204584", "0.5318044", "0.5315363", "0.5289372", "0.5286519", "0.5286519", "0.5280624", "0.5278896", "0.52681285", "0.5264022", "0.52455646", "0.5235495", "0.5233526", "0.52106", "0.5202583", "0.51946545", "0.5182814", "0.5182354", "0.5179656", "0.51774234", "0.51764876", "0.51757115", "0.51757115", "0.5168189", "0.5168189", "0.5164928", "0.51579803", "0.5157732", "0.5157172", "0.51534986", "0.5151923", "0.51473683", "0.51398337", "0.51224697", "0.51216406", "0.511958", "0.5116778", "0.5104697", "0.50990736", "0.5097806", "0.50912774", "0.50911343", "0.5084545", "0.5080533", "0.5073348", "0.50728065", "0.5068967", "0.5066415", "0.5064086", "0.5056228", "0.50503826", "0.50502014", "0.5048175", "0.5043744", "0.50418866", "0.5037525", "0.5033312", "0.50329566", "0.50283056", "0.50253236", "0.5024447", "0.5022387", "0.5019356", "0.5011306", "0.5008055", "0.49979246", "0.49953327", "0.49930185", "0.4992541", "0.49917692", "0.49907127", "0.4988233" ]
0.0
-1
Si existe la sesion lo registraos en la base de datos como salida
function cerrarSesion() { if(isset($_SESSION[USER_SESSION])) { $fin = time(); $sid = $_SESSION[USER_SESSION]["sid"]; $sql = "update sq_sesion set fin=current_timestamp() where cod = '{$sid}'"; asgMng::query($sql); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function salvar(){\n \n\t\t/*\n\t\t\tReceber dados vindos do formulario.\n\t\t*/\n\n\t\t$login = $this->post(\"login\");\n\t\t$senha = $this->post(\"senha\");\n\t\t$senha = md5($senha);\n\t\t$tipo = 2;\n\n\t\t/*\n\t\t\tInserindo dados na tabela usuário.\n\t\t*/\n\t\t$campos = \"(login,senha,tipo)\";\t\t\n\t\t$valores = \"('\".$login.\"','\".$senha.\"','\".$tipo.\"')\";\t\t\n\t\t$tabela = \"usuarios\";\n\t\t\n\t\t$this->insert( $tabela, $campos, $valores );\t\n\t\t\n\t}", "function registrarSesion () {\n\n if (!empty($this->id_usuario)) {\n $this->salvar(['ultima_session' => 'current_timestamp',\n 'activo' => 1\n ]);\n Helpers\\Sesion::sessionLogin();\n }\n else return false;\n\n }", "public function saveUsuario(){\n\t\t$conexion = new Database();\n if ($this->codigo){\n $query = sprintf('UPDATE agenda_usuario SET usuario = \"%s\" password = \"%s\" WHERE usuario_id = %d',\n $this->usuario,\n $this->password,\n $this->codigo);\n $rows = $conexion->exec( $query );\n }\n else{\n $query = sprintf('INSERT INTO agenda_usuario ( usuario, password) VALUES (\"%s\", \"%s\")',\n $this->usuario,\n $this->password );\n\t\t\t$rows = $conexion->exec( $query );\n $this->codigo = $conexion->lastInsertId();\n }\n }", "public function persist() {\n $bd = BD::getConexion();\n $sql = \"insert into usuarios (nombre, clave) values (:nombre, :clave)\";\n $sthSql = $bd->prepare($sqlInsertUsuario);\n $result = $sthSql->execute([\":nombre\" => $this->nombre, \":clave\" => $this->clave]);\n $this->id = (int) $bd->lastInsertId();\n }", "function Save(){\n $rowsAffected = 0;\n if(isset($this->legajo)){\n $rowsAffected = $this->UpdateSQL([\"legajo = \".$this->legajo]);\n }else{\n $rowsAffected = $this->InsertSQL();\n if($rowsAffected > 0){\n $this->legajo = $this->Max(\"legajo\");\n }\n }\n if($rowsAffected == 0){\n throw new \\Exception(\"Error al guardar Usuario\");\n }else{\n $this->Refresh();\n }\n }", "public function registra_sesion()\r\n {\r\n $datos_usuario = array(\r\n 'nom_usuario' => $this->session->userdata('nom_usuario'),\r\n 'id_perfil' => $this->session->userdata('id_perfil')\r\n );\r\n // $insert_id = $this->db->insert_id();\r\n // $IdSesion = $this->db->insert_id();\r\n $this->db->insert('sesiones',$datos_usuario);\r\n // $this->db->insert(userdata($IdSesion));\r\n }", "public function persist() {\n $bd = BD::getConexion();\n $sqlInsertUsuario = \"insert into usuarios (nomUsuario, clave) values (:nomUsuario, :clave)\";\n $sthSqlInsertUsuario = $bd->prepare($sqlInsertUsuario);\n $result = $sthSqlInsertUsuario->execute([\":nomUsuario\" => $this->nomUsuario, \":clave\" => $this->clave]);\n $this->id = (int) $bd->lastInsertId();\n }", "public function guardar()\n\t{\n\t\t// Crear una instancia de la conexion\n\t\t$conexion = new Conexion;\n\n\t\t// Comprobar si es un registro nuevo o uno ya existente\n\t\tif ($this->update) {\n\n\t\t\t// Preparar la sentencia para actualizar el tipo de rol en la bd\n\t\t\t$sentencia = $conexion->conn->prepare(\"UPDATE \". static::$tablaConsulta . \" SET medio= ? WHERE id= ?\");\n\n\t\t\t// Pasar los campos del objecto a la sentencia\n\t\t\t$sentencia->bind_param(\n\t\t\t\t\t'si',\n\t\t\t\t\t$this->medio,\n\t\t\t\t\t$this->id\n\t\t\t);\n\n\t\t} else {\n\n\t\t\t// Preparar la sentencia para isertar el tipo de rol en la bd\n\t\t\t$sentencia = $conexion->conn->prepare(\"INSERT INTO \". static::$tablaConsulta . \" VALUES (null, ?)\");\n\n\t\t\t// Pasar los campos del objecto a la sentencia\n\t\t\t$sentencia->bind_param(\n\t\t\t\t\t's',\n\t\t\t\t\t$this->medio\n\t\t\t);\n\t\t}\n\n\n // Ejecutar la sentencia\n\t\tif ( $sentencia->execute() ) {\n\n\t\t\t// Devolver un uno si fue un exito\n\t\t\treturn 1;\n\t\t} else {\n\n\t\t\t// Devolver un 0 si ocurrio un error\n\t\t\treturn 0;\n\t\t}\n\t}", "public function obtenerSaldo();", "function sobreMeSalvar() {\n \n $usuario = new Estado_pessoal();\n $api = new ApiUsuario();\n $usuario->codgusuario = $_SESSION['unia']->codgusario;\n $this->dados = $api->Listar_detalhe_usuario($usuario);\n if (empty($this->dados->codgusuario) && $this->dados->codgusuario == NULL) {\n \n $this->dados = array('dados'=>$api->Insert_sobreMe(new Estado_pessoal ('POST')) );\n header(\"Location:\" .APP_ADMIN.'usuario/detalhe_usuario');\n } else {\n $this->dados = array('dados'=>$api->Actualizar_sobreMe(new Estado_pessoal ('POST')) );\n header(\"Location:\" .APP_ADMIN.'usuario/detalhe_usuario');\n }\n \n }", "public function autentificacion($username,$password){\n $userService = new UsuariosServiceImp();\n //objeto de tipo usuario\n $usuario = new Usuarios();\n //llamdo al metodo definido en la capa de servicio\n $usuario = $userService->buscarPorUsernamePassword($username,$password);\n if ( is_object($usuario)){\n /*\n variable de sesion mediante variables locales\n \n $_SESSION['nombre'] = $usuario->getNombre();\n $_SESSION['correo'] = $usuario->getEmail();\n $_SESSION['id'] = $usuario->getId();\n */\n /* variable de sesion mediante un arreglo asociado\n */\n $_SESSION['miSesion'] = array();\n $_SESSION['miSesion']['nombre'] = $usuario->getNombre();\n $_SESSION['miSesion']['correo'] = $usuario->getEmail();\n $_SESSION['miSesion']['id'] = $usuario->getId();\n \n //echo \"<br>El usuario es valido\";\n header(\"location:../view/productos.class.php\");\n }else{\n //echo \"<br>Este usuario no esta registrado en la base de datos\";\n header(\"location:../view/formLogin.html\");\n }\n }", "public function saveUser($nome,$email,$senha){\n \t$id = time();\n $nome = parent::escapeString($nome);\n $senha = md5(parent::escapeString($senha));\n $email = parent::escapeString($email);\n \t//fazer uma validação para ver se o usuario já não está cad\n \t$sql = \"insert into `usuarios` ( `id`,`nome`, `email`, `senha` ) values ('$id','$nome', '$email', '$senha')\"; \n return parent::executaQuery($sql);\n }", "function salida_por_traspaso(){\n\t\t$e= new Salida();\n\t\t$e->usuario_id=$GLOBALS['usuarioid'];\n\t\t$e->empresas_id=$GLOBALS['empresaid'];\n\t\t$related = $e->from_array($_POST);\n\t\t//if($e->costo_unitario=='undefined') $e->costo_unitario=0;\n\t\t$e->espacios_fisicos_id=$GLOBALS['espacios_fisicos_id'];\n\t\t$e->costo_total=($e->cantidad * $e->costo_unitario);\n\t\t$e->cclientes_id=1;\n\t\t$e->fecha=date(\"Y-m-d H:i:s\");\n\t\tif($e->id==0)\n\t\t\tunset($e->id);\n\t\tif($e->save($related)) {\n\t\t\techo $e->id;\n\t\t} else\n\t\t\techo 0;\n\t}", "function registrar(){\n\n\t\t\t\n\t\t$sql = \"INSERT INTO USUARIOS (\n\t\t\tlogin,\n\t\t\tpassword,\n\t\t\tnombre,\n\t\t\tapellidos,\n\t\t\temail,\n\t\t\tDNI,\n\t\t\ttelefono,\n\t\t\tFechaNacimiento,\n\t\t\tfotopersonal,\n\t\t\tsexo\n\t\t\t) \n\t\t\t\tVALUES (\n\t\t\t\t\t'\".$this->login.\"',\n\t\t\t\t\t'\".$this->password.\"',\n\t\t\t\t\t'\".$this->nombre.\"',\n\t\t\t\t\t'\".$this->apellidos.\"',\n\t\t\t\t\t'\".$this->email.\"',\n\t\t\t\t\t'\".$this->DNI.\"',\n\t\t\t\t\t'\".$this->telefono.\"',\n\t\t\t\t\t'\".$this->FechaNacimiento.\"',\n\t\t\t\t\t'\".$this->fotopersonal.\"',\n\t\t\t\t\t'\".$this->sexo.\"'\n\n\t\t\t\t\t)\";\n\t\t\t\t\t\t\t\t\n\t\tif (!$this->mysqli->query($sql)) { //Si la sentencia sql no devuelve información\n\t\t\treturn 'Error de gestor de base de datos';\n\t\t}\n\t\telse{\n\t\t\treturn 'Inserción realizada con éxito'; //si es correcta\n\t\t}\t\t\n\t}", "public function esperarSalirSistema() {\n $this->setComando(\"SALIENDO\");\n }", "private function registrarLocalmente()\n\t{\n\t\t$conexionBd = new ConectorBaseDatos();\n\t\t$conexionBd->Sentencia = sprintf(\"INSERT UsuarioFacebook (IdFacebook, DatosFacebook, ValidadoPor, FbAccessToken) VALUES (%s, %s, NULL, %s)\",\n\t\t$conexionBd->Escapar($this->IdFacebook),\n\t\t$conexionBd->Escapar(addslashes(serialize($this->DatosFacebook))),\n\t\t$conexionBd->Escapar($this->accessToken)\n\t\t);\n\t\t$conexionBd->EjecutarComando();\n\t\t$conexionBd->Desconectar();\n\t}", "public function Save()\r\n\t\t{\r\n\t\t\t$db = new Db();\r\n\t\t\t$sql = \"INSERT INTO tbl_users (naam, voornaam, email, wachtwoord)\r\n\t\t\tVALUES ('\".$db->conn->real_escape_string($this->m_sName).\"',\r\n\t\t\t\t\t'\".$db->conn->real_escape_string($this->m_sFirstname).\"',\r\n\t\t\t\t\t'\".$db->conn->real_escape_string($this->m_sEmail).\"',\r\n\t\t\t\t\t'\".$db->conn->real_escape_string($this->m_sPassword).\"'\r\n\t\t\t)\";\r\n\t\t\t$db->conn->query($sql);\r\n\r\n\t\t\t//user_id van de geregistreerde gebruiker in de session variabele opslaan\r\n\t\t\t$user_id = $db->conn->insert_id;\r\n\t\t\t$_SESSION['user_id'] = $user_id;\r\n\t\t}", "public function save()\n {\n //Ejecuta el método Validate para validar que el input sea correcto\n $this->validate();\n\n //Si errors está vacío, por lo tanto el método validate no devolvió mensajes de error, ejecuta las operaciones de guardado en DB\n if (empty($this->errors)) {\n //Hashea el password que viene por _POST\n $password_hash = password_hash($this->password, PASSWORD_DEFAULT);\n\n //Instancia un nuevo token para la activacion\n $token = new Token();\n $hashed_token = $token->getHash();\n $this->activation_token = $token->getValue();\n\n //Crea la consulta SQL , conecta a la DB y prepara la sentencia\n $sql = 'INSERT INTO users \n (name, email, password_hash, activation_hash) \n VALUES \n (:name, :email, :password_hash, :activation_hash)';\n $db = static::getDB();\n $stmt = $db->prepare($sql);\n\n\n //Bindea los valores de _POST a las etiquetas de los valores de la sentencia \n $stmt->bindValue(':name', $this->name, PDO::PARAM_STR);\n $stmt->bindValue(':email', $this->email, PDO::PARAM_STR);\n $stmt->bindValue(':password_hash', $password_hash, PDO::PARAM_STR);\n $stmt->bindValue(':activation_hash', $hashed_token, PDO::PARAM_STR);\n\n\n //Ejecuta la sentencia\n return $stmt->execute();\n }\n \n //Al terminar devuelve false en caso de que la validación fracase\n return false;\n }", "public function store()\n {\n //MEMBUAT VALIDASI\n $this->validate([\n 'name' => 'required|string',\n 'username' => 'required|string',\n 'email' => 'required|string'\n ]);\n $pass = $this->password;\n //QUERY UNTUK MENYIMPAN / MEMPERBAHARUI DATA MENGGUNAKAN UPDATEORCREATE\n //DIMANA ID MENJADI UNIQUE ID, JIKA IDNYA TERSEDIA, MAKA UPDATE DATANYA\n //JIKA TIDAK, MAKA TAMBAHKAN DATA BARU\n User::updateOrCreate(['id' => $this->idz], [\n 'name' => $this->name,\n 'username' => $this->username,\n 'email' => $this->email,\n 'password' => $pass,\n ]);\n\n //BUAT FLASH SESSION UNTUK MENAMPILKAN ALERT NOTIFIKASI\n session()->flash('message', $this->id ? $this->name . ' Diperbaharui': $this->name . ' Ditambahkan');\n $this->closeUser(); //TUTUP User\n $this->resetFields(); //DAN BERSIHKAN FIELD\n }", "public function guardar($datosCampos) {\n $guardar = new SqlQuery(); //instancio objeto de la clase sqlQuery\n (string) $tabla = get_class($this); //obtengo el nombre de la clase para poder realizar la consulta\n switch ($datosCampos[\"acceso\"]) {\n case \"total\":\n $datosCampos[\"acceso\"] = 1;\n break;\n case \"restringido\":\n $datosCampos[\"acceso\"] = 2;\n break;\n default:\n $datosCampos[\"acceso\"] = 0;\n break;\n }\n $datosCampos[\"pass\"] = sha1(\"123\"); //agrego la contraseña en sha1 para que solicite el cambio cada vez que se cree un usuario\n $this->refControladorPersistencia->get_conexion()->beginTransaction(); //comienza transaccion\n $rtaVerifUser = $this->refControladorPersistencia->ejecutarSentencia(\n $guardar->verificarExistenciaUsuario($tabla, $datosCampos[\"usuario\"])); //verifico si ya hay un usuario con ese nombre \n $existeUser = $rtaVerifUser->fetch(); //paso a un array\n $this->refControladorPersistencia->get_conexion()->commit(); //cierro\n if ($existeUser[0] == '0') {//solamente si el usuario no existe se comienza con la carga a la BD\n try {\n $this->refControladorPersistencia->get_conexion()->beginTransaction(); //comienza la transacción\n $arrayCabecera = $guardar->meta($tabla); //armo la cabecera del array con los datos de la tabla de BD\n $sentencia = $guardar->armarSentencia($arrayCabecera, $tabla); //armo la sentencia\n $array = $guardar->armarArray($arrayCabecera, $datosCampos); //armo el array con los datos de la vista y los datos que obtuve de la BD \n array_shift($array); //remuevo el primer elemento id si es nuevo se genera automaticamente en la BD\n $this->refControladorPersistencia->ejecutarSentencia($sentencia, $array); //genero la consulta\n $this->refControladorPersistencia->get_conexion()->commit();\n $this->refControladorPersistencia->get_conexion()->beginTransaction();\n $ultimo = $guardar->buscarUltimo($tabla);\n $idUser = $this->refControladorPersistencia->ejecutarSentencia($ultimo); //busco el ultimo usuario para mostrarlo en la vista \n $id = $idUser->fetchColumn(); //array \n $this->refControladorPersistencia->get_conexion()->commit(); //si todo salió bien hace el commit\n } catch (PDOException $excepcionPDO) {\n echo \"<br>Error PDO: \" . $excepcionPDO->getTraceAsString() . '<br>';\n $this->refControladorPersistencia->get_conexion()->rollBack(); //si salio mal hace un rollback\n } catch (Exception $exc) {\n echo $exc->getTraceAsString();\n $this->refControladorPersistencia->get_conexion()->rollBack(); //si hay algún error hace rollback\n }\n $respuesta = $this->getUsuario($id); //busco el usuario\n return $respuesta; //regreso\n } else {\n return $id = [\"incorrecto\" => \"incorrecto\"]; //si hubo un error volvemos a vista y corregimos\n }\n }", "function altaUsuarioProfesor($datos) {\n\n if (BDConexionSistema::getInstancia()->begin_transaction()) {\n // INSERCION PROFESOR\n //Creo objeto sin enviar ID y enviando todos los datos del formulario\n $Profesor = new Profesor(null, $datos);\n $apellido = mysqli_real_escape_string(BDConexionSistema::getInstancia(), $Profesor->getApellido());\n\n if ($this->chequearEmail($Profesor->getEmail())) {\n $this->query = \"INSERT INTO PROFESOR \"\n . \"VALUES ('{$Profesor->getId()}', '0', '{$Profesor->getNombre()}', '{$apellido}',\"\n . \"'{$Profesor->getEmail()}', '{$Profesor->getCategoria()}', '{$Profesor->getPreferencias()}', '{$Profesor->getIdDepartamento()}')\";\n\n $consulta = BDConexionSistema::getInstancia()->query($this->query);\n } else {\n throw new Exception(\"El email: <b>\" . $Profesor->getEmail() . \"</b> ya corresponde a un profesor en la Base de Datos\");\n }\n\n if (!$consulta) {\n BDConexionSistema::getInstancia()->rollback();\n throw new Exception(\"No se puedo dar de alta el profesor (Error en la Base de Datos).\");\n }\n\n // INSERCION USUARIO\n\n $query = \"INSERT INTO \" . Constantes::BD_USERS . \".usuario \"\n . \"VALUES (null,'{$datos[\"nombreUsuario\"]}','{$datos[\"email\"]}')\";\n $consulta = BDConexionSistema::getInstancia()->query($query);\n if (!$consulta) {\n BDConexionSistema::getInstancia()->rollback();\n //arrojar una excepcion\n //die(BDConexion::getInstancia()->errno);\n throw new Exception(\"No se puedo dar de alta el profesor (Error en la Base de Datos).\");\n }\n\n // recuperamos la id del usuario\n $idUsuario = BDConexionSistema::getInstancia()->insert_id;\n\n // INSERCION USUARIO_ROL\n $query = \"INSERT INTO \" . Constantes::BD_USERS . \".usuario_rol \"\n . \"VALUES ({$idUsuario}, 9)\";\n $consulta = BDConexionSistema::getInstancia()->query($query);\n if (!$consulta) {\n BDConexionSistema::getInstancia()->rollback();\n //arrojar una excepcion\n //die(BDConexion::getInstancia()->errno);\n throw new Exception(\"No se puedo dar de alta el profesor (Error en la Base de Datos).\");\n }\n\n BDConexionSistema::getInstancia()->commit();\n BDConexionSistema::getInstancia()->autocommit(true);\n\n // si no se produjeron excepciones OK insercion, retornamos VERDADERO\n return TRUE;\n } else {\n throw new Exception(\"No se puedo dar de alta el profesor (Error en la Base de Datos).\");\n }\n }", "function registrar(){\r\n\r\n include('config.php');\r\n\r\n date_default_timezone_set('America/Cuiaba');\r\n $pdo = new PDO('mysql:host='.HOST.';dbname='.DATABASE, USUARIO, SENHA);\r\n\r\n $cursos = array('Engenharia da Computação', 'Engenharia de Controle e Automação', 'Engenharia de Minas', 'Engenharia de Trasportes', 'Engenharia Quimica');\r\n \r\n $nome = $_POST['nome'];\r\n $email = $_POST['email'];\r\n $rga = $_POST['rga'];\r\n $semestre = $_POST['semestre']; \r\n $data = date('Y-m-d H:i:s');\r\n $senha = $_POST['senha'];\r\n $confirmaSenha = $_POST['confirmaSenha'];\r\n $curso = '';\r\n \r\n for($i = 1; $i <= 5; $i++){ //verificando qual o curso pelo rga\r\n\r\n if($rga['9'] == $i)\r\n $curso = $cursos[$i];\r\n \r\n \r\n }\r\n \r\n\r\n $sql = $pdo->prepare(\"INSERT INTO `tabela_estudantes` VALUES (null,?,?,?,?,?,?,?)\"); //inserirndo na tabela vendas\r\n\r\n $sql->execute(array($nome, $senha, $data, $email, $curso, $semestre, $rga));\r\n\r\n echo '<h6 style=\"color: rgb(255, 255, 255);\">Usuario registrado com sucesso!</h6>';\r\n\r\n }", "function save() {\n $conn = \\DB\\getConnection();\n\n $query = sprintf(\"INSERT INTO Payments (uid, typeid, token, amount)\n VALUES (%u, %u, '%s', %f)\",\n $this->uid, $this->typeid, $conn->escape_string($this->token), $this->amount);\n\n \n\n $result = $conn->query($query);\n\n // If this is a newly created user, then update the id with the\n // newly created one\n if (!isset($this->id)) {\n $this->id = $result->insert_id;\n }\n }", "private function saveUser(){\n\n if( ! $this->checkEmail() ){\n $password = password_hash($this->_userPassword, PASSWORD_DEFAULT);\n $request = $this->_connexion->prepare(\"INSERT INTO Users (user_name, user_email, user_password) VALUES (?, ?, ?)\");\n $request->execute(array($this->_userName, $this->_userEmail, $password));\n\n return $response = json_encode([\n 'status' => 'ok',\n 'message' => 'successfuly add'\n ]);\n }\n else{\n return $response = json_encode([\n 'status' => 'failed',\n 'message' => 'this email allready exist'\n ]);\n }\n\n }", "private function sesja() {\r\n session_start();\r\n if (!isset($_SESSION['id'])) {\r\n $_SESSION['id'] = 0;\r\n }\r\n }", "function reg_active_session($id,$token,$Id_localizacion){\n $vigencia = time() + 3600;\n $date = new \\DateTime('now', new \\DateTimeZone('America/Mexico_City'));\n $date -> setTimestamp($vigencia);\n $expira = $date->format(\"Y-m-d H:i:s\");\n $params = array (\n \"token\" => $token,\n \"Id_usuario\" => $id,\n \"expira\" => $expira,\n \"Id_localizacion\" => $Id_localizacion\n );\n return dbInsert(\"sesiones_activas\",\"sisi\",$params);\n \n }", "public function guardar(){\r\n $clave_activacion = Upload::generar_nombre(32);\r\n\t\t\t\r\n\t\t\t$user_table = Config::get()->db_user_table;\r\n\t\t\t$consulta = \"INSERT INTO $user_table(dni, password, admin, email, imagen, activo, clave_activacion, timestamp)\r\n\t\t\tVALUES ('$this->dni','$this->password',0,'$this->email', '$this->imagen', 0, '$clave_activacion', default);\";\r\n\t\t\treturn Database::get()->query($consulta);\r\n\r\n\t\t}", "public function agregarUsuario(){\n \n }", "public function iniciar() {\r\n session_regenerate_id();\r\n }", "public function save()\n {\n $ins = $this->valores();\n unset($ins[\"idInscription\"]);\n\n $ins['idUser'] = $this->userO->idUser;\n unset($ins[\"userO\"]);\n\n $ins['idProject'] = $this->project->idProject;\n unset($ins[\"project\"]);\n\n if (empty($this->idInscription)) {\n $this->insert($ins);\n $this->idInscription = self::$conn->lastInsertId();\n } else {\n $this->update($this->idInscription, $ins);\n }\n }", "public function RegistrarSalas()\n{\n\tself::SetNames();\n\tif(empty($_POST[\"nombresala\"]))\n\t{\n\t\techo \"1\";\n\t\texit;\n\t}\n\t$sql = \" select nombresala from salas where nombresala = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array($_POST[\"nombresala\"]) );\n\t$num = $stmt->rowCount();\n\tif($num == 0)\n\t{\n\t\t$query = \" insert into salas values (null, ?, ?); \";\n\t\t$stmt = $this->dbh->prepare($query);\n\t\t$stmt->bindParam(1, $nombresala);\n\t\t$stmt->bindParam(2, $salacreada);\n\n\t\t$nombresala = strip_tags($_POST[\"nombresala\"]);\n\t\t$salacreada = strip_tags(date(\"Y-m-d h:i:s\"));\n\t\t$stmt->execute();\n\n\n\t\techo \"<div class='alert alert-success'>\";\n\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\techo \"<span class='fa fa-check-square-o'></span> LA SALA DEL RESTAURANT FUE REGISTRADA EXITOSAMENTE\";\n\t\techo \"</div>\";\t\t\n\t\texit;\n\t}\n\telse\n\t{\n\t\techo \"2\";\n\t\texit;\n\t}\n}", "public function save(){\n if(isset($_POST)){\n\n $nombre = isset($_POST[\"nombre\"]) ? $_POST[\"nombre\"] : false;\n $apellidos = isset($_POST[\"apellidos\"]) ? $_POST[\"apellidos\"] : false;\n $email = isset($_POST[\"email\"]) ? $_POST[\"email\"] : false;\n $password = isset($_POST[\"password\"]) ? $_POST[\"password\"] : false;\n\n\n\n if($nombre && $apellidos && $email && $password){\n \n $usuario= new Usuario(); \n $usuario->setNombre($nombre);\n $usuario->setApellidos($apellidos);\n $usuario->setEmail($email);\n $usuario->setPassword($password);\n /* llamo al metodo que tengo en el modelo para guardar el usuario */\n $save= $usuario->save();\n /* condicion por si el metodo save falla */\n if($save){\n /* cuando el registro esté correcto, abri una session */\n $_SESSION['register']= \"complete\";\n }else{\n $_SESSION['register']= \"failed\"; \n }\n }else{\n $_SESSION['register']= \"failed\"; \n }\n\n }else{\n $_SESSION['register']= \"failed\"; \n }\n /* para redirigir */\n header(\"Location:\".base_url.'usuario/registro');\n }", "public function registrarUsuario()\n {\n $datos = array();\n\n //guardamos los datos del formulario en un array \n foreach ($_POST as $clave => $valor) {\n $datos[$clave] = $valor;\n }\n\n //añadimos una clave por defecto y generamos el ciu\n $datos['clave'] = hash('sha512', \"12345678\");\n $datos['ciu'] = self::generarCiu($datos['nombre'], $datos['apellidos'], $datos['fecha_nacimiento']);\n\n //insertamos los datos y mostramos un error en funcion de si ha habido error o no\n echo $this->Usuarios_model->registrarUsuario($datos) ? 1 : 0;\n }", "public function save()\n\t{\n\t\t// Verifier le login\n\t\t$login = $this->getValue('login');\n\t\t$id = $this->getValue('id');\n\t\tif ( $this->checkLogin($login, $id) )\n\t\t{\n\t\t\t$this->_error(LOC_MSG_LOGIN_EXIST . '(' . $login . ')');\n\t\t\treturn false;\n\t\t}\n\n\t\t// Enregistrer les donnees\n\t\t$where = 'user_id=' . $id;\n\t\t$id = $this->update('users', 'user_', $this->getValues(), $where);\n\t\treturn $id;\n\t}", "function registrarUsuario($nombre,$apellidos,$email,$edad,$puntos,$passW)\n {\n $consulta =\"INSERT INTO usuario (nombre,apellidos,email,edad,puntos,password) VALUES ('$nombre','$apellidos','$email',$edad,$puntos,'$passW')\";\n if($this->conexion->query($consulta))\n {\n \n }else{ \n echo \"Falló la creación de la tabla: (\" . $this->conexion->errno . \")// \" . $this->conexion->error.\"<br>\";\n }\n }", "function post_conectar()\n\t{\n\t\t//En este metodo antiguamente se incluia codigo para asegurarse que el esquema de auditoria\n\t\t//guardara el usuario conectado.\n\t}", "public function insert(){\n\t\t$sql = new Sql();\n\t\t$results = $sql->select(\"CALL sp_insert_usuario(:LOGIN, :PASS)\", array(\n\t\t\t':LOGIN'=>$this->getDeslogin(),\n\t\t\t':PASS'=>$this->getDessenha()\n\t\t));\n\n\t\tif (isset($results[0])) {\n\t\t\t\n\t\t\t$this->setData($results[0]);\n\n\t\t}\n\t}", "public function saveToDatabase() {\n if($this->id != 0) {\n $dbResult = System::database()->query('update :table_users \n set `role_id` = :role_id, \n `login` = :login, \n `password` = :password, \n `auth_key` = :auth_key, \n `auth_expire` = :auth_expire, \n `last_login` = :last_login\n where `id` = :id');\n \n $dbResult->bindInt(':id', $this->id);\n $dbResult->bindValue(':auth_key', $this->authKey);\n $dbResult->bindInt(':auth_expire', $this->authExpired);\n $dbResult->bindInt(':last_login', $this->lastLoginTime);\n } else {\n $dbResult = System::database()->query('insert into :table_users (`role_id`, `login`, `password`)\n values (:role_id, :login, :password);');\n }\n $dbResult->bindTable(':table_users', TABLE_USERS);\n $dbResult->bindInt(':role_id', $this->role['id']);\n $dbResult->bindValue(':login', $this->login);\n $dbResult->bindValue(':password', $this->password);\n\n $dbResult->execute();\n }", "function agregar($nombre,$correo,$usuario,$rol,$zonah,$estado,$psw)\n {\n $Valores = \"'\".$usuario.\"','\".$psw.\"','\".$nombre.\"','\".$correo.\"',\".$estado.\",\".$zonah.\",\".$rol;\n $this->Insertar(\"usuarios\",\"usuario,password,nombre,correo,activo,zonashorarias_id,roles_id\",$Valores);\n }", "public function guardarRegistro2(){\r\n $this->database->execute(\"INSERT INTO empleados (nombreApellido, dni, email, pass) VALUES ('rodri', '12345678', '[email protected]', '123456'\");\r\n }", "function registro($_usuario, $_pass, $_nombre, $_apellidos, $_email) {\n\t\t$sql = \"SELECT * from usuario where usuario='\".$_usuario.\"'\";\n\n\t\t$usuario_result = $this->db->query($sql)->result();\n\n\t\tif (count($usuario_result)!='0') {\n\n\t\t\t// SI EXISTE DEVOLVEMOS \"FALSE\"\n\t\t\techo \"false\";\n\t\t} else {\n\n\t\t\t// SI NO EXISTE HACEMOS LA INSERCION Y LO GUARDAMOS EN LA VARIABLE SESSION\n\t\t\t$insert = \"INSERT INTO usuario value (NULL, '\".$_nombre.\"', '\".$_apellidos.\"', '\".$_usuario.\"', md5('\".$_pass.\"'), '\".$_email.\"', 'usuario');\";\n\n\t\t\t$this->db->query($insert);\n\n\t\t\t$sql = \"SELECT * from usuario where usuario='\".$_usuario.\"'\";\n\n\t\t\t$usuario_result = $this->db->query($sql)->result();\n\n\t\t\tforeach ($usuario_result[0] as $key => $value) {\n\t\t\t\t$usuario[0][$key] = $value;\n\t\t\t}\n\t\t\tif (count($usuario_result)=='1') {\n\t\t\t\t$this->session->id_usuario = $usuario[0]['id'];\n\t\t\t\t$this->session->nombre = $usuario[0]['usuario'];\n\t\t\t\t$this->session->email = $usuario[0]['email'];\n\t\t\t\t$this->session->privilegio = $usuario[0]['privilegio'];\n\t\t\t\t$this->session->sesion = TRUE;\n\t\t\t}\n\n\t\t\techo \"true\";\n\t\t}\n\n\t}", "public function cadastrar()\n\t{\n\t\t//conexao com o banco\n\t\t$connect = new Connect('user_login');\n\n\t\t$this->id = $connect->insert([\n\t\t\t\t'login'=> $this->login,\n\t\t\t\t'password'=> $this->password\n\t\t]);\n\n\t}", "function register() {\n\n // Validate user input\n $this->s_fname = testInput($this->s_fname);\n $this->s_lname = testInput($this->s_lname);\n $this->s_bdate = testInput($this->s_bdate);\n $this->s_sex = testInput($this->s_sex);\n $this->s_email = testInput($this->s_email);\n $this->s_password = testInput($this->s_password);\n\n // Check that student is not registered already\n $result = $this->conn->query(\"SELECT * FROM $this->tableName WHERE s_email LIKE '$this->s_email'\");\n \n if ($result->rowCount() === 0) {\n\n // Insert query \n $query = \"INSERT INTO $this->tableName (s_fname, s_lname, s_bdate, s_sex, s_email, s_password)\n VALUES(:firstName, :lastName, :birthday, :sex, :email, :hashedPassword)\";\n\n // Prepare insert statement\n $insert = $this->conn->prepare($query);\n\n $insert->bindParam(\":firstName\", $this->s_fname);\n $insert->bindParam(\":lastName\", $this->s_lname);\n $insert->bindParam(\":birthday\", $this->s_bdate);\n $insert->bindParam(\":sex\", $this->s_sex);\n $insert->bindParam(\":email\", $this->s_email);\n // Hash password before storing it\n $this->s_password = password_hash($this->s_password, PASSWORD_DEFAULT);\n $insert->bindParam(\":hashedPassword\", $this->s_password);\n\n // Send new user to DB\n try {\n $insert->execute();\n return true;\n }\n catch(PDOException $e) {\n echo $e;\n return false;\n }\n }\n else {\n return false;\n }\n }", "function savtb() {\n\t\tif (strlen($this->haslo)<40) $this->haslo=sha1($this->haslo);\n\t\t$this->llog=time();\n\t\tif (!$this->id) {\n\t\t\t$qstr='INSERT INTO users VALUES (NULL,\\''.$this->login.'\\',\\''.$this->haslo.'\\',\\''.$this->email.'\\',time())';\n\t\t\t$ret=db_exec($qstr);\n\t\t\t$id = db_lastInsertID();\n\t\t}\n\t\tif ($ret) return true;\n\t\treturn false;\n\t}", "function registrarUsuario(){\n\n\t require(\"Conexion.php\");\t\n\t \n if(isset($_POST['insertar'])){\n\t\n\t $nombre=$_POST[\"nombre\"];\n $apellido=$_POST[\"apellido\"];\n\t $correo=$_POST[\"correo\"];\n\t $direccion=$_POST[\"direccion\"];\n\t $username=$_POST[\"nombre\"];\n\t $password=$_POST[\"password\"];\n\n\t $db=new Conexion();\n\t\n\t\t /* evitar duplicaciones*/\t\t\n $sql = \"select count(*) from datos_usuario where nombre ='$nombre'\";\n\t\t\n if ($resultado = $db->connect()-> query($sql)) {\n\n /* Comprobar el número de filas que coinciden con la sentencia SELECT */\n if ($resultado->fetchColumn() > 0) {\n\n /* Ejecutar la sentencia SELECT para mostrar el nombre duplicado*/\n $sql = \"select nombre from datos_usuario where nombre = '$nombre'\";\n foreach ($db->connect()->query($sql) as $fila) {\n \n\t\t $duplicado=$nombre;\n }\t\n\n\t echo '<script language=\"javascript\">alert(\"Usuario duplicado: '.$duplicado.' ya esta en uso.\");</script>';\n\n echo \"<script>\n setTimeout(function() {\n location.href = '../vista/registro_user.php';\n }, 0001);\n </script>\";\t\t\t \n }\n \n /* No coincide ningua fila inserta */\n else {\t\t\n\t\t\t/*no hay duplicaciones insertamos*/\n\t\n $query=$db->connect()->prepare(\"insert into datos_usuario (nombre, apellido, correo, direccion)\n\t values (:nombre, :apellido, :correo,:direccion)\");\t\t\t \n $query->execute(array(\":nombre\"=>$nombre, \":apellido\"=>$apellido,\":correo\"=>$correo,\"direccion\"=>$direccion));\n\t\n\t/*----------------segunda tabla-----------------------------*/\n\t $db=new Conexion();\n\t \n\t $sql2=\"insert into usuarios(username, password, rol_id) values (:username, :password, :rol_id)\";\n\t $query=$db->connect()->prepare($sql2);\n\t\t\t \n $query->execute(array(\":username\"=>$nombre, \":password\"=>$password, \":rol_id\"=>2));\n\t\n\t\t echo'<script type=\"text/javascript\">\n alert(\"Usuario registrado\");\n </script>';\n\t\n\t \n\t echo \"<script>\n setTimeout(function() {\n location.href = '../vista/login.php';\n }, 0001);\n </script>\";\t\n\t\t } \t\n }\n }\n }", "public function RegistrarDatosPersonales(HojaVida $data){\n $modelo = new HojaVida();\n $fechahora = $modelo->get_fecha_actual();\n $datosfecha = explode(\" \",$fechahora);\n $fechalog = $datosfecha[0];\n $horalog = $datosfecha[1];\n \n $tiporegistro = \"Info. Datos Personales\";\n $accion = \"Registra una Nueva \".$tiporegistro.\" En el Sistema (HOJA VIDA) TALENTO HUMANO\";\n $detalle = $_SESSION['nombre'].\" \".$accion.\" \".$fechalog.\" \".\"a las: \".$horalog;\n $tipolog = 15;\n $idusuario = $_POST['id_usuarioR'];\n $idusuarioR = $_SESSION['idUsuario'];\n try {\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\t\t\n //EMPIEZA LA TRANSACCION\n $this->pdo->beginTransaction();\n\n $sql = \"INSERT INTO `th_personas`(`per_id_usuario`, `per_cedula`, `per_nombres`, `per_apellidos`, `per_fecha_nacimiento`,\n `per_id_dep_nacimiento`, `per_id_ciu_nacimiento`, `per_direccion`, `per_telefono`, `per_celular`, `per_email`, `per_ruta_foto`, \n `per_id_usuarioR`) \n VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n $this->pdo->prepare($sql)\n ->execute(\n array(\n $data->id_usuario,\n $data->per_cedula,\n $data->per_nombres,\n $data->per_apellidos,\n $data->per_fecha_nacimiento,\n $data->per_id_departamento,\n $data->per_id_municipio,\n $data->per_direccion,\n $data->per_telefono,\n $data->per_celular,\n $data->per_email,\n $data->per_ruta_foto,\n $idusuarioR\n )\n ); \n $this->pdo->exec(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechalog', '$accion','$detalle','$idusuario','$tipolog')\");\n \n //SE TERMINA LA TRANSACCION \n $this->pdo->commit();\n } catch (Exception $e) {\n $this->pdo->rollBack();\n die($e->getMessage());\n }\n }", "public function store(SiswaRequest $request)\n {\n\n $check = DB::table('users')->where('email', $request->email)->first();\n\n if ($check) {\n return redirect()->route('siswa.create')->with('error', 'Email sudah pernah didaftarkan!');\n } else {\n DB::transaction(function () use ($request) {\n $siswa = Siswa::create($request->all());\n\n $user = User::create([\n 'name' => $request->nama_lengkap,\n 'email' => $request->email,\n 'password' => bcrypt($request->nis),\n 'siswa_id' => $siswa->id\n ]);\n\n $user->assignRole('siswa');\n\n $data = [\n 'name' => $request->nama_lengkap,\n 'email' => $request->email,\n 'password' => $request->nis,\n 'website' => config('app.url')\n ];\n\n Mail::to($request->email)->send(new SendMail($data));\n });\n\n return redirect()->route('siswa.index')->with('success', 'Siswa Berhasil Dibuat!');\n }\n }", "public function registrarConsulta(){\n\t\tConexion::getConexion();\n\t\t$con = Conexion::$conexion;\n\t\t$ins = $con->prepare(\"INSERT INTO consulta(idconsulta, idpaciente, fechaconsulta, consulta) VALUES (:idconsulta,:idpaciente,:fechaconsulta,:consulta)\");\n\t\t$ins->execute(array(\n\t\t\t\":idconsulta\" => 0,\n\t\t\t\":idpaciente\" => $this->getIdPaciente(),\n\t\t\t\":fechaconsulta\" => $this->getFechaConsulta(),\n\t\t\t\":consulta\" => $this->getConsultaCadena()\n\t\t\t));\n\t\tConexion::killConexion();\n\t\tif ($ins) {\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "public function SesionIniciada()\n{\n \n $ConexionCassandra=new ManejadorCassandra();//Conexion con la base de datos \n $ObtenerIp=$ConexionCassandra->ConsultaPorParametro('sesion',array('ip'=>$this->ObtenerIp())); //Busco en la tabla sesion si se encuentra la ip\n $VerificarIp=$ObtenerIp->getAll();\n \n if($VerificarIp!=NULL){\n \n return true; //Retorna true si se encontra el usuario\n }\n else{\n \n return false; //Retorna false si no se encuentra el usuario\n }\n \n }", "public function _atualiza_usuario_sessao($row) {\n $session_key = $this->config['prefixo_sessao'] . '.' . $this->config['hashkey'] . '.' . $this->config['model_usuario'];\n $ses = $this->Session->read($session_key);\n $row = $row[\"{$this->config['model_usuario']}\"];\n $ses = array_merge($ses, $row);\n $this->Session->write($this->config['prefixo_sessao'] . '.' . $this->config['hashkey'] . '.' . $this->config['model_usuario'], $ses);\n }", "public function store()\n\t {\n\t\t User::register([\n\t\t\t\t'username' => 'Jefdsasfrey',\n\t\t\t\t'email' => '[email protected]',\n\t\t\t\t'password' => bcrypt('pass')\n\t\t ]);\n\n\t\t // send them a welcome email\n\n\t\t // monitor campaign for newsletter\n\n\t\t // Schedule a follow up email\n\n\t\t // update stats \n\t }", "public function save() {\n\t\t$data = array(\n\t\t\t\t\"user\" => array(\n\t\t\t\t\t\t\"email\" => $this->_data[\"email\"],\n\t\t\t\t)\n\t\t);\n\t\t\n\t\t// kontrola zmeny hesla\n\t\tif (in_array(\"password\", $this->_changed)) $data[\"user\"][\"password\"] = $this->_data[\"password\"];\n\t\t\n\t\t// odeslani dat\n\t\t$response = $this->_connection->sendRequest(self::OBJECT, \"put\", $this->_data[$this->_identifier], $data, \"post\");\n\t}", "private function saveSession() {\n $connection = \\Drupal::database();\n $select = $connection->select('conreg_payment_sessions', 'S');\n $select->addField('S', 'paysessionid');\n $select->condition('S.payid', $this->payId);\n $select->condition('S.session_id', $this->sessionId);\n // We only want to save if not already on table.\n if (empty($select->execute()->fetchField())) {\n $connection->insert('conreg_payment_sessions')->fields(['payid' => $this->payId, 'session_id' => $this->sessionId])->execute();\n }\n}", "public function guardarUsuario()\n {\n \n //ACCESO A DATOS\n $usu = new Usuario('usuarios');\n if (isset($this->request['usuario']))\n {\n $usu->load(\"id=\".$_SESSION['id']);\n }\n\n $usu->usuario=$this->request['usuario'];\n $usu->password=$this->request['nuevapassword'];\n $usu->fechamodificacion=date('Y-m-d');\n \n \n if($usu->save()){\n $this->cerrarSesion ();\n header('Location: /appnutri/index.php');\n }else echo'<script> \n alert(\"Error. No se pudo cerrar la conexion\") \n window.location=\"/appnutri/index.php\";\n </script>';\n \n }", "public function storeSession() {}", "public function salvar()\n\t{\n\t $mysqli = new mysqli(\"localhost\",\"root\",\"\",\"hogar_db\");\n\t\n\t #verifico que ho haya ocurrido un error en la conexion\n\t #esto normalmente muestra un error de php si no funciona\n\t if($mysqli->connect_errno)\n\t {\n\t\tthrow new Exception(\"Fallo al conectar a MYSQL: \". $mysqli->connect_error);\n\t\texit();\n\t }\n\t\n\t #construyo mi consulta\n\t $consulta = \"INSERT INTO tipoingreso_tb( nombreIngreso, descIngreso) VALUES( '$this->nombre', '$this->descr')\";\n\t\t\n #ejecuto consulta\n\t $resultado = $mysqli->query($consulta);\n\t\n\t #verifico k no haya algun error en la ejecucion\n\t if(!($resultado))\n\t {\n\t\t throw new Exception(\"Fallo al ejecutar la consulta\");\n\t }\n\t #cierro conexion\n\t $mysqli->close();\n\t}", "function alta_tipo_salida(){\n\t\t$u= new Tipo_salida();\n\t\t$related = $u->from_array($_POST);\n\t\t// save with the related objects\n\t\tif($u->save($related))\n\t\t{\n\t\t\techo \"<html> <script>alert(\\\"Se han registrado los datos del Tipo de Salida.\\\"); window.location='\".base_url().\"index.php/inicio/acceso/\".$GLOBALS['ruta'].\"/menu';</script></html>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tshow_error(\"\".$u->error->string);\n\t\t}\n\t}", "public function GuardarEstado()\n\t{\n\t\t$query=\"INSERT INTO estado (idpais,estado,descripcion) VALUES ($this->id_pais,'$this->estado','$this->descripcion')\";\n\t\t$resp=$this->db->consulta($query);\n\t\t$this->id_estado = $this->db->id_ultimo();\n\t\t\n\t\t\n\t\t\n\t}", "private function setSesion($usuario)\n {\n if( !$this->session->userdata('logged_in') ){\n $sesion = array(\n 'id' => $usuario->id,\n 'logged_in' => TRUE,\n 'ciudad' => $usuario->ciudad,\n 'UsuarioTipo_id' => $usuario->UsuarioTipo_id\n );\n if($sesion['UsuarioTipo_id']==5){\n $profesor = $this->m_profesores->getsalon($usuario->login);\n $sesion['salon'] = $profesor->salon;\n }\n $this->session->set_userdata($sesion);\n }\n }", "public function saveUser()\n {\n $this->_initUser();\n\n $this->generateSecurePassword();\n\n return $this->save(\n [\n 'username' => $this->username,\n 'password' => $this->password,\n 'salt' => $this->_salt,\n 'email' => $this->email,\n 'name' => $this->name,\n 'lastname' => $this->lastname,\n 'sw_active' => 1\n ], true\n );\n }", "public function insert()\n {\n $sql = new Sql();\n $result = $sql->select(\"CALL sp_usuario_insert(:LOGIN, :PASSWORD)\", array(\n \":LOGIN\"=>$this->getDeslogin(),\n \":PASSWORD\"=>$this->getDessenha()\n ));\n\n if(count($result) > 0){\n $row = $result[0];\n $this->setIdusuario($row['idusuario']);\n $this->setDeslogin($row['deslogin']);\n $this->setDessenha($row['dessenha']);\n $this->setDataCadastro(new DateTime($row['dataCadastro']));\n }\n }", "function saveUser($sVars)\n{\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/config/config.php\");\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/class/autoload.php\");\n\n // Récupérer les données\n $aData = json_decode($sVars,true);\n $db = new cMariaDb($Cfg);\n if( $aData[\"User\"][\"id\"] == 0 ){\n // id=0 > Ajoute\n $Columns = \"\";\n $Values = \"\";\n foreach( $aData[\"User\"] as $key => $value )\n {\n if( $key != \"id\"){\n $Columns .= $key.\",\";\n $Values .= \"'\".addslashes($value).\"',\"; \n }\n if( $key == \"sEmail\"){\n $Columns .= \"pMotPasse,\";\n $Values .= \"SHA1('\".$value.\"'),\";\n }\n }\n $Columns = substr($Columns,0,-1);\n $Values = substr($Values,0,-1);\n $sSQL = \"INSERT INTO sys_user ($Columns,dDateInscription) VALUES ($Values,CURRENT_TIMESTAMP);\";\n $aTmp = $db->Query($sSQL);\n $id = $db->getLastId();\n } else {\n $Set = \"\";\n foreach( $aData[\"User\"] as $key => $value )\n {\n if( $key != \"id\"){\n $Set .= $key.\"='\".addslashes($value).\"',\";\n }\n }\n $Set = substr($Set,0,-1);\n $id = $aData[\"User\"][\"id\"];\n $sSQL = \"UPDATE sys_user SET $Set WHERE id=$id;\";\n $aTmp = $db->Query($sSQL);\n }\n // Méthode pas très élégante, mais il faudrait faire un delta entre tableaux \n // et agir en conséquence... \n // On supprime tout et on insert\n // Sauvegarde des droits ($aData[\"Rights\"])\n $sSQL = \"DELETE FROM sys_user_rights WHERE idUser=$id\";\n $db->Query($sSQL);\n foreach($aData[\"Rights\"] as $Right) {\n $sSQL = \"INSERT INTO sys_user_rights SET idRights=$Right, idUser=$id;\";\n $db->Query($sSQL);\n }\n\n // $aRet = [\"Errno\" => 2, \n // \"ErrMsg\" => $sTmp, \n // \"SQL\" => $sSQL ];\n\n return [\"Errno\" => 0, \"ErrMsg\" => \"OK\", \"SQL\" => $sSQL ];\n\n header('content-type:application/json');\n echo json_encode($aRet); \n}", "function prelasesor(){\n include(\"../include/conectar.php\"); \n $query =\"UPDATE tblsemestrepro SET asesor = '$this->asesor' WHERE tblsemestrepro.id_semestrepro = $this->semestrepy;\";\n $sql = mysqli_query($conection, $query);\n mysqli_close($conection); \n if($sql){\n\t\t\t $p =\"relacion\";\n include('../plantillas/paso.php');\n } \n else\n throw new Exception (\"Error: No es posible registrar\");\n }", "public function inserir(){\r\n\t\tif(!$this->_validarCampos())\r\n\t\t\t// levantando a excessao CamposObrigatorios //\r\n\t\t\tthrow new CamposObrigatorios();\r\n\t\t\r\n\t\tif($this->_testarServicoExiste($this->getNome()))\r\n\t\t\t// levanto a excessao//\r\n\t\t\tthrow new Exception(\"Serviço já cadastrado en nossa base de dados\");\r\n\t\t\r\n\t\t// recuperando a instancia da classe de acesso a dados //\r\n\t\t$instancia = ServicoDAO::getInstancia();\r\n\t\t// retornando o Usuario //\r\n\t\treturn $servico = $instancia->inserir($this);\r\n\t}", "function crearSesion($usuario){\r\n\t\tsession_id($usuario['DNI']);\r\n\t\t//Creo la sesión.\r\n\t\tsession_start();\r\n\t\t//Almacenamos todos los datos de la sesión.\r\n\t\t$_SESSION['idUsuario'] = $usuario['idUsuario'];\r\n\t\t$_SESSION['Usuario'] = $usuario['Usuario'];\r\n\t\t$_SESSION['Password'] = $usuario['Password'];\r\n\t\t$_SESSION['Nombre'] = $usuario['Nombre'];\r\n\t\t$_SESSION['Apellido1'] = $usuario['Apellido1'];\r\n\t\t$_SESSION['Apellido2'] = $usuario['Apellido2'];\r\n\t\t$_SESSION['Telefono'] = $usuario['Telefono'];\r\n\t\t$_SESSION['Email'] = $usuario['Email'];\r\n\t\t$_SESSION['CP'] = $usuario['CP'];\r\n\t\t$_SESSION['Provincia'] = $usuario['Provincia'];\r\n\t\t$_SESSION['ComunidadAutonoma'] = $usuario['ComunidadAutonoma'];\r\n\t\t$_SESSION['Rol'] = $usuario['Rol'];\r\n\t\t$_SESSION['DNI'] = $usuario['DNI'];\r\n\t}", "public function registerData(){\n\n // Declaro el array 'valid', para almacenar los campos validados: \n $valid = [];\n\n //Se asigna la sesion 'registrar' en la varaible:\n $data = $_SESSION['registrar'];\n\n //Se instancia la clase 'Validate', para validar los datos de las propiedades:\n $validate = new Validate;\n\n //Se validan que los campos no estén vacios\n if (!empty($data)) {\n \n if ($validate->validateString($data->cedula)) {\n \n //Agregamos el campo validado :D\n $valid['cedula'] = true;\n\n }else{\n\n //Retornamos el error :/ ):\n die('{ \"registrar\":false, \"error\":\"Campo cedula erroneo\" }');\n\n }\n\n }\n\n //Se validan que los campos no estén vacios\n if (!empty($data->password) && !empty($data->confirm_password)) {\n\n //Se valida que el campo sea un String:\n if ($validate->validatePassword($data->confirm_password, $data->password)) {\n\n //Agregamos el campo validado :D\n $valid['password'] = true;\n\n }else{\n\n //Retornamos el error :/ :\n die('{ \"registrar\":false, \"error\":\"El campo password debe ser un numero\" }');\n }\n }else{\n\n //Retornamos el error :/ ):\n die('{\"registrar\":false, \"error\":\"El campo password no debe estar vacio\"}');\n }\n\n //Retornamos la respuesta: \n return ['registrar' => true, 'campos' => $valid];\n\n }", "public function Registrar_Ref_Personal(HojaVida $data){\n $modelo = new HojaVida();\n $fechahora = $modelo->get_fecha_actual();\n $datosfecha = explode(\" \",$fechahora);\n $fechalog = $datosfecha[0];\n $horalog = $datosfecha[1];\n \n $tiporegistro = \"Referencia Personal\";\n $accion = \"Registra una Nueva \".$tiporegistro.\" En el Sistema (Hoja vida) TALENTO HUMANO\";\n $detalle = $_SESSION['nombre'].\" \".$accion.\" \".$fechalog.\" \".\"a las: \".$horalog;\n $tipolog = 15;\n $idusuario = $_SESSION['idUsuario'];\n \n try {\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\t\t\n //EMPIEZA LA TRANSACCION\n $this->pdo->beginTransaction();\n\n $sql = \"INSERT INTO `th_referencias_personales`(`ref_id_hv`, `ref_id_usuario`, `ref_id_usuarioR`, `ref_nombre`, `ref_cargo`, `ref_empresa`, `ref_telefono`) \n VALUES (?,?,?,?,?,?,?)\";\n $this->pdo->prepare($sql)\n ->execute(\n array(\n $data->id,\n $data->usuario,\n $idusuario,\n $data->ref_per_nombre,\n $data->ref_per_cargo,\n $data->ref_per_empresa,\n $data->ref_per_telefono\n )\n ); \n $this->pdo->exec(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechalog', '$accion','$detalle','$idusuario','$tipolog')\");\n \n //SE TERMINA LA TRANSACCION \n $this->pdo->commit();\n } catch (Exception $e) {\n $this->pdo->rollBack();\n die($e->getMessage());\n }\n }", "public function ingresarEmpleadoSinID(){\n $conexion = new Conexion;\n $con = new mysqli($conexion->servername, $conexion->username, $conexion->password, $conexion->dbname);\n $sql = \"INSERT INTO empleado (rut, nombre, password, categoria, estado ) VALUES ('\".$this->rut.\"', '\".$this->nombre.\"','\".$this->password.\"', '\".$this->categoria.\"', 1)\";\n if ($con->connect_error) {\n die(\"Conexión fallida: \" . $con->connect_error);\n } \n if ($con->query($sql) === TRUE) {\n echo \"Empleado ingresada correctamente.\";\n } else {\n echo \"Error: \" . $sql . \"<br>\" . $con->error;\n }\n $con->close();\n }", "function iniciar_sincro($tabla)\n { \n //Marcar momento de inicio\n $registro['fecha_inicio'] = date('Y-m-d H:i:s');\n $condicion = \"nombre_tabla = '{$tabla}'\";\n \n $this->Pcrn->guardar('sis_tabla', $condicion, $registro);\n }", "public function saveEntidad(){\n\t\t$conexion = new Database();\n if ($this->codigo){\n $query = sprintf('UPDATE agenda_entidades SET entidad = \"%s\" WHERE entidad_id = %d',\n $this->entidad,\n $this->codigo);\n $rows = $conexion->exec( $query );\n }\n else{\n $query = sprintf('INSERT INTO agenda_entidades(entidad) VALUES (\"%s\")',\n $this->usuario);\n\t\t\t$rows = $conexion->exec( $query );\n $this->codigo = $conexion->lastInsertId();\n }\n }", "public function gera_senha_envia_email($dados)\r\n\t{\r\n\t\t//\tGERO A SENHA\r\n\t\t$CaracteresAceitos = 'ABCDZYWZ0123456789'; \r\n\t \t$max = strlen($CaracteresAceitos)-1;\r\n\t \t$password = null;\r\n\t \tfor($i=0; $i < 8; $i++) \r\n\t\t{ \r\n\t\t \t$password .= $CaracteresAceitos{mt_rand(0, $max)};\r\n\t \t}\r\n\t\t\r\n\t\t$senha = md5($password);\r\n\t\t\r\n\t\t//\tATUALIZO A SENHA NO BANCO\r\n\t\t$sql = \"UPDATE $this->nome_tabela SET senha = '$senha' WHERE $this->chave_tabela = '$dados[idlogin]'\";\r\n\t\tparent::executaSQL($sql);\r\n\t\t\r\n\t\t\r\n\t\t//\tENVIO O EMAIL PARA O USUARIO\r\n\t\t$texto_mensagem = \"\r\n\t\t\t\t\t\t\tCaro usuário, como solicitado segua abaixo sua nova senha. <br />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSenha: $password\r\n\t\t\t\t\t\t\t\";\r\n\t\t\r\n\t\tUtil::envia_email($dados[email], \"Recuperação de senha\", $texto_mensagem, $_SERVER['SERVER_NAME'], \"atendimento@\".$_SERVER['SERVER_NAME']);\r\n\t\t\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/*\t==================================================================================================================\t*/\r\n\t/*\tEFETUA O CADASTRO\t*/\r\n\t/*\t==================================================================================================================\t*/\r\n\tpublic function cadastra($dados)\r\n\t{\r\n\t\t$nome = Util::trata_dados_formulario($dados[nome]);\r\n\t\t$email = Util::trata_dados_formulario($dados[email]);\r\n\t\t$id_grupologin = Util::trata_dados_formulario($dados[id_grupologin]);\r\n\t\t$senha = md5($dados[senha]);\r\n\t\t\r\n\t\t//\tVERIFICO SE O GRUPO JA ESTA CADASTRADO\r\n\t\tif($this->verifica($email) == 0)\r\n\t\t{\t\t\r\n\t\t\t$sql = \"\r\n\t\t\t\t\tINSERT INTO\t\" . $this->nome_tabela. \"\r\n\t\t\t\t\t(nome, senha, email, id_grupologin)\r\n\t\t\t\t\tVALUES\r\n\t\t\t\t\t('$nome', '$senha', '$email', '$id_grupologin')\r\n\t\t\t\t\t\";\r\n\t\t\tparent::executaSQL($sql);\r\n\t\t\t\r\n\t\t\t//\tARMAZENA O LOG\r\n\t\t\tparent::armazena_log(\"tb_logs_logins\", \"CADASTRO DO LOGIN $nome\", $sql, $_SESSION[login][idlogin]);\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\t\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/*\t==================================================================================================================\t*/\r\n\t/*\tEFETUA A ALTERACAO\t*/\r\n\t/*\t==================================================================================================================\t*/\r\n\tpublic function altera($dados)\r\n\t{\r\n\t\t$nome = Util::trata_dados_formulario($dados[nome]);\r\n\t\t$email = Util::trata_dados_formulario($dados[email]);\r\n\t\t$id_grupologin = Util::trata_dados_formulario($dados[id_grupologin]);\r\n\t\t\r\n\t\t//\tVERIFICO SE O GRUPO JA ESTA CADASTRADO\r\n\t\tif($this->verifica_altera($email, $dados[id]) == 0)\r\n\t\t{\t\t\r\n\t\t\t$sql = \"UPDATE \" . $this->nome_tabela. \" SET nome = '$nome', email = '$email', id_grupologin = '$id_grupologin' WHERE \" . $this->chave_tabela. \" = '$dados[id]'\";\r\n\t\t\tparent::executaSQL($sql);\r\n\t\t\t\r\n\t\t\t//\tARMAZENA O LOG\r\n\t\t\tparent::armazena_log(\"tb_logs_logins\", \"ALTERAÇÃO DO LOGIN $dados[id]\", $sql, $_SESSION[login][idlogin]);\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\t\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/*\t==================================================================================================================\t*/\r\n\t/*\tATIVA OU DESATIVA\t*/\r\n\t/*\t==================================================================================================================\t*/\r\n\tpublic function ativar_desativar($id, $ativo)\r\n\t{\r\n\t\tif($ativo == \"SIM\")\r\n\t\t{\r\n\t\t\t$sql = \"UPDATE \" . $this->nome_tabela. \" SET ativo = 'NAO' WHERE \" . $this->chave_tabela. \" = '$id'\";\r\n\t\t\tparent::executaSQL($sql);\r\n\t\t\t\r\n\t\t\t//\tARMAZENA O LOG\r\n\t\t\tparent::armazena_log(\"tb_logs_logins\", \"DESATIVOU O LOGIN $id\", $sql, $_SESSION[login][idlogin]);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$sql = \"UPDATE \" . $this->nome_tabela. \" SET ativo = 'SIM' WHERE \" . $this->chave_tabela. \" = '$id'\";\r\n\t\t\tparent::executaSQL($sql);\r\n\t\t\t\r\n\t\t\t//\tARMAZENA O LOG\r\n\t\t\tparent::armazena_log(\"tb_logs_logins\", \"ATIVOU O LOGIN $id\", $sql, $_SESSION[login][idlogin]);\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t/*\t==================================================================================================================\t*/\r\n\t/*\tEXCLUI\t*/\r\n\t/*\t==================================================================================================================\t*/\r\n\tpublic function excluir($id)\r\n\t{\r\n\t\t//\tBUSCA OS DADOS\r\n\t\t$row = $this->select($id);\r\n\t\t\r\n\t\t$sql = \"DELETE FROM \" . $this->nome_tabela. \" WHERE \" . $this->chave_tabela. \" = '$id'\";\r\n\t\tparent::executaSQL($sql);\r\n\t\t\r\n\t\t//\tARMAZENA O LOG\r\n\t\tparent::armazena_log(\"tb_logs_logins\", \"EXCLUSÃO DO LOGIN $id, NOME: $row[nome], Email: $row[email]\", $sql, $_SESSION[login][idlogin]);\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t/*\t==================================================================================================================\t*/\r\n\t/*\tVERIFICO SE JA POSSUI O GRUPO CADASTRADO\t*/\r\n\t/*\t==================================================================================================================\t*/\r\n\tpublic function verifica($email)\r\n\t{\r\n\t\t$sql = \"SELECT * FROM \" . $this->nome_tabela. \" WHERE email = '$email'\";\r\n\t\treturn mysql_num_rows(parent::executaSQL($sql));\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t/*\t==================================================================================================================\t*/\r\n\t/*\tVERIFICO SE JA POSSUI O GRUPO CADASTRADO QUANDO ALTERAR\t*/\r\n\t/*\t==================================================================================================================\t*/\r\n\tpublic function verifica_altera($email, $id)\r\n\t{\r\n\t\t\t$sql = \"SELECT * FROM \" . $this->nome_tabela. \" WHERE email = '$email' AND \" . $this->chave_tabela. \" <> '$id'\";\r\n\t\treturn mysql_num_rows(parent::executaSQL($sql));\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\r\n\t\r\n\t/*\t==================================================================================================================\t*/\r\n\t/*\tBUSCA OS DADOS\t*/\r\n\t/*\t==================================================================================================================\t*/\r\n\tpublic function select($id = \"\")\r\n\t{\r\n\t\tif($id != \"\")\r\n\t\t{\r\n\t\t\t$sql = \"\r\n\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t*\r\n\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\" . $this->nome_tabela. \"\r\n\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\" . $this->chave_tabela. \" = '$id'\r\n\t\t\t\t\tORDER BY\r\n\t\t\t\t\t\tnome\r\n\t\t\t\t\t\";\r\n\t\t\treturn mysql_fetch_array(parent::executaSQL($sql));\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$sql = \"\r\n\t\t\t\tSELECT\r\n\t\t\t\t\t*\r\n\t\t\t\tFROM\r\n\t\t\t\t\t\" . $this->nome_tabela. \"\r\n\t\t\t\tORDER BY\r\n\t\t\t\t\tnome\r\n\t\t\t\t\";\r\n\t\t\treturn parent::executaSQL($sql);\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t/*\t==================================================================================================================\t*/\r\n\t/*\tEFETUA LOGIN\t*/\r\n\t/*\t==================================================================================================================\t*/\r\n\tpublic function efetuar_login($email, $senha)\r\n\t{\r\n\t\t$email = Util::trata_dados_formulario($email);\r\n\t\t$senha = md5($senha);\r\n\t\t\r\n\t\t$sql = \"SELECT * FROM tb_logins WHERE email = '$email' AND senha = '$senha' AND ativo = 'SIM'\";\r\n\t\t$result = parent::executaSQL($sql);\r\n\t\t\r\n\t\t\r\n\t\tif(mysql_num_rows($result) > 0)\r\n\t\t{\r\n\t\t\t\r\n\t\t\t$row = mysql_fetch_array($result);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//\tVERIFICO SE O GRUPO ESTA HABILITADO PARA ACESSAR\r\n\t\t\tif($this->verifica_grupo_ativo($row[id_grupologin]) == true)\r\n\t\t\t{\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t$_SESSION[login] = $row;\r\n\t\t\t\t\r\n\t\t\t\t//\tBUSCO AS PERMISSOES DE ACESSO DO USUARIO\r\n\t\t\t\t$sql = \"\r\n\t\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t tp.*, tmp.nome AS nome_modulo_pagina\r\n\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t tb_grupos_logins_tb_paginas tgltp, tb_paginas tp, tb_modulos_paginas tmp\r\n\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t tgltp.id_pagina = tp.idpagina\r\n\t\t\t\t\t\t AND tp.id_modulopagina = tmp.idmodulopagina\r\n\t\t\t\t\t\t AND tgltp.id_grupologin = '$row[id_grupologin]'\r\n\t\t\t\t\t\tORDER BY\r\n\t\t\t\t\t\t tmp.nome, label\r\n\t\t\t\t\t\t\";\r\n\t\t\t\t$result = parent::executaSQL($sql);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(mysql_num_rows($result) > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t$i = 0;\r\n\t\t\t\t\twhile($row = mysql_fetch_array($result))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$_SESSION[permissoes][$i][pagina] = $row[pagina];\r\n\t\t\t\t\t\t$_SESSION[permissoes][$i][label] = $row[label];\r\n\t\t\t\t\t\t$_SESSION[permissoes][$i][exibir_menu] = $row[exibir_menu];\r\n\t\t\t\t\t\t$_SESSION[permissoes][$i][id_modulopagina] = $row[id_modulopagina];\r\n\t\t\t\t\t\t$_SESSION[permissoes][$i][nome_modulo_pagina] = $row[nome_modulo_pagina];\r\n\t\t\t\t\t\t$i++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\t\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\tpublic function verifica_grupo_ativo($id_grupologin)\r\n\t{\r\n\t\t$sql = \"SELECT * FROM tb_grupos_logins WHERE idgrupologin = '$id_grupologin'\";\r\n\t\t$row = mysql_fetch_array(parent::executaSQL($sql));\r\n\t\t\r\n\t\tif($row[ativo] == 'SIM')\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/*\t==================================================================================================================\t*/\r\n\t/*\tFORMULARIO\t*/\r\n\t/*\t==================================================================================================================\t*/\r\n\tpublic function formulario($dados)\r\n\t{\r\n\t?>\r\n \t\r\n \t<script>\r\n\t\t\tjQuery(document).ready(function(){\r\n\t\t\t\t// binds form submission and fields to the validation engine\r\n\t\t\t\tjQuery(\"#form-dados\").validationEngine();\r\n\t\t\t});\r\n\t\t</script>\r\n \r\n \t<div class=\"class-form-2\">\r\n <ul>\r\n <li>\r\n <p>Nome<span></span></p>\r\n <input type=\"text\" name=\"nome\" id=\"nome\" value=\"<?php echo $dados[nome] ?>\" class=\"validate[required]\" />\r\n </li>\r\n \r\n <li>\r\n <p>Grupo<span></span></p>\r\n <?php Util::cria_select_bd(\"tb_grupos_logins\", \"idgrupologin\", \"nome\", \"id_grupologin\", $dados[id_grupologin], \"validate[required]\") ?>\r\n </li>\r\n \r\n <li>\r\n <p>Email<span></span></p>\r\n <input type=\"text\" name=\"email\" id=\"email\" value=\"<?php echo $dados[email] ?>\" class=\"validate[required]\" />\r\n </li>\r\n \r\n <li> \r\n <p>Senha<span></span></p>\r\n <input type=\"password\" name=\"senha\" id=\"senha\" class=\"validate[required]\" />\r\n </li>\r\n \r\n <li>\r\n <p>Confirme a senha<span></span></p>\r\n <input type=\"password\" name=\"senha2\" id=\"senha2\" class=\"validate[required,equals[senha]]\" />\r\n </li>\r\n </ul>\r\n </div>\r\n <?php\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/*\t==================================================================================================================\t*/\r\n\t/*\tFORMULARIO\t*/\r\n\t/*\t==================================================================================================================\t*/\r\n\tpublic function formulario_alteracao($dados)\r\n\t{\r\n\t?>\r\n \t\r\n <script>\r\n\t\t\tjQuery(document).ready(function(){\r\n\t\t\t\t// binds form submission and fields to the validation engine\r\n\t\t\t\tjQuery(\"#form-dados\").validationEngine();\r\n\t\t\t});\r\n\t\t</script>\r\n \r\n \t<div class=\"class-form-2\">\r\n <ul>\r\n <li>\r\n <p>Nome<span></span></p>\r\n <input type=\"text\" name=\"nome\" id=\"nome\" value=\"<?php echo $dados[nome] ?>\" class=\"validate[required])\" />\r\n </li>\r\n \r\n <li>\r\n <p>Grupo<span></span></p>\r\n <?php Util::cria_select_bd(\"tb_grupos_logins\", \"idgrupologin\", \"nome\", \"id_grupologin\", $dados[id_grupologin], \"validate[required]\") ?>\r\n </li>\r\n \r\n <li>\r\n <p>Email<span></span></p>\r\n <input type=\"text\" name=\"email\" id=\"email\" value=\"<?php echo $dados[email] ?>\" class=\"validate[required]\" />\r\n </li> \r\n </ul>\r\n </div>\r\n <?php\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n}", "public static function saveUserSession(){\n\t\t$_SESSION['user']=self::$_leuser;\n\t}", "function salah()\n\t{\n\t\t# debug\n\t\t$this->tanya->dapatid($_POST['password']);\n\t\t$this->papar->mesej = 'Ada masalah pada user dan password';\n\n\t\t# Set pemboleubah utama\n\t\t$this->papar->sesat = 'Enjin Carian - Sesat';\n\t\t$this->papar->isi = '';\n\n\t\t# Pergi papar kandungan\n\t\t//$this->semakPembolehubah($this->papar->mesej); # Semak data dulu\n\t\t$this->paparKandungan('index', 'salah');\n\t}", "public function store(){\n \n // comprueba que llegue el formulario con los datos\n if(empty($_POST['guardar']))\n throw new Exception('No se recibieron datos');\n \n $mascota = new Mascotas(); //crear el nuevo usuario\n \n $mascota->nombre = DB::escape($_POST['nombre']);\n $mascota->sexo = DB::escape($_POST['sexo']);\n $mascota->biografia = DB::escape($_POST['biografia']);\n $mascota->fechanacimiento = DB::escape($_POST['fechanacimiento']);\n $mascota->fechafallecimiento = DB::escape($_POST['fechafallecimiento']);\n $mascota->idusuario = Login::get()->id;\n $mascota->idraza = intval($_POST['raza']);\n \n \n \n if(!$mascota->guardar())\n throw new Exception(\"No se pudo guardar $mascota->nombre\");\n \n $mensaje=\"Guardado la mascota $mascota->nombre\";\n include 'views/exito.php'; //mostrar éxito\n }", "public function persist (){\n \n $this->query = \"INSERT INTO libros(titulo,autor,editorial) VALUES (:titulo, :autor, :editorial)\";\n\n // $this->parametros['id']=$user_data[\"id\"];\n $this->parametros['titulo']=$this->titulo;\n $this->parametros['autor']=$this->autor;\n $this->parametros['editorial']=$this->editorial;\n \n $this->get_results_from_query();\n\n\n $this->mensaje = \"Libro agregado exitosamente\";\n \n }", "public function salvar()\n\t{\n\t$mysqli = new mysqli(\"localhost\",\"root\",\"\",\"hogar_db\");\n\t\n\t#verifico que ho haya ocurrido un error en la conexion\n\t#esto normalmente muestra un error de php si no funciona\n\tif($mysqli->connect_errno)\n\t{\n\t\tthrow new Exception(\"Fallo al conectar a MYSQL: \". $mysqli->connect_error);\n\t\texit();\n\t}\n\t\n\t#construyo mi consulta\n\t$consulta = \"INSERT INTO tipogasto_tb( nombreGasto, descGasto) VALUES( '$this->nombre', '$this->descr')\";\n\t\t\n #ejecuto consulta\n\t$resultado = $mysqli->query($consulta);\n\t\n\t#verifico k no haya algun error en la ejecucion\n\tif(!($resultado))\n\t{\n\t\tthrow new Exception(\"Fallo al ejecutar la consulta\");\n\t}\n\t#cierro conexion\n\t$mysqli->close();\n\t}", "public function autualizar_dados_login()\n {\n \ttry {\n \t\t \n \t\t$con = FabricaDeConexao::conexao();\n \t\t \n \t\t$sqlquery = 'update usuario set usuario = :usuario,senha=md5(:senha),email = :email where id = :id; ';\n \t\t$stmt->$con-> prepare($sqlquery);\n \t\t$stmt->bindValue(':usuario',$dados->usuario);\n \t\t$stmt->bindValue(':senha',$dados->senha);\n \t\t$stmt->bindValue(':email',$dados->email);\n \t\t$stmt->bindValue(':id',$dados->id);\n \t\t\n \t\t$stmt->execute();\n \t\t$rowaf = $stmt->rowCount();\n \t\treturn $rowaf;\n \t}\n \tcatch (PDOException $ex)\n \t{\n \t\techo \"Erro: \".$ex->getMessage();\n \t}\n }", "public function salvar()\n\t{\n\t $mysqli = new mysqli(\"localhost\",\"root\",\"\",\"hogar_db\");\n\t\n\t #verifico que ho haya ocurrido un error en la conexion\n\t #esto normalmente muestra un error de php si no funciona\n\t if($mysqli->connect_errno)\n\t {\n\t\tthrow new Exception(\"Fallo al conectar a MYSQL: \". $mysqli->connect_error);\n\t\texit();\n\t }\n\t\n\t #construyo mi consulta\n\t $fechaString = $this->fecha->format('Y-m-d');\n\t $consulta = \"INSERT INTO transaccion_tb(nombre, fecha, saldo, descr) VALUES('$this->nombre', '$fechaString','$this->saldoTotal', '$this->descr')\";\n\t \t\t\n #ejecuto consulta\n\t $resultado = $mysqli->query($consulta);\n\t\n\t #verifico k no haya algun error en la ejecucion\n\t if(!($resultado))\n\t {\n\t\t throw new Exception(\"Fallo al ejecutar la inserción de la transacción\");\n\t }\n\t else\n\t {\n\t\t$consultaId = \"SELECT max(transaccion_tb.idTransaccion) as idMax from transaccion_tb\"; \n\t\t$resultadoId = $mysqli->query($consultaId);\n\t\t \n\t\t if(!($resultadoId))\n\t\t {\n\t\t\t throw new Exception(\"Fallo al ejecutar la selección del id\"); \n\t\t }\n\t\t else\n\t\t {\n\t\t\t $row = $resultadoId->fetch_assoc(); \n\t\t\t $id = $this->tipoIngreso->obtenerId();\n\t\t\t $consultaIngreso = \"INSERT INTO ingreso_tb(transaccion, tipoIngreso) VALUES('$row[idMax]', '$id')\";\n\t\t\t $resultadoIngreso = $mysqli->query($consultaIngreso);\n\t\t\t \n\t\t\t if(!($resultadoIngreso))\n\t\t {\n\t\t\t throw new Exception(\"Fallo al ejecutar la inserción del ingreso\"); \n\t\t }\n\t\t }\n\t\t\n\t }\n\t #cierro conexion\n\t $mysqli->close();\t\n\t}", "public function register(Request $request)\n {\n\n\n\n $this->validator($request->all())->validate();\n\n event(new Registered($user = $this->create($request->all())));\n\n\n /*pegar email */\n\n $getID = DB::table('login')\n ->where('email', '=', $request->email)\n ->where('cpf', '=', $request->cpf)\n// ->orderBy('quantity', 'asc')\n ->first();\n\n\n// return $getID->id;\n\n// return $request->simulacao_id\n//\n//porrag;\n\n\n try{\n //Find the user object from model if it exists\n $simulacao= Simulacao::findOrFail($request->simulacao_id);\n\n //$request contain your post data sent from your edit from\n //$user is an object which contains the column names of your table\n\n //Set user object attributes\n $simulacao->user_id = $getID->id;\n\n\n // Save/update user.\n // This will will update your the row in ur db.\n $simulacao->save();\n\n return view('api.ativacao', ['name' => $request->email, 'params' => $request->all()]);\n }\n catch(ModelNotFoundException $err){\n //Show error page\n }\n\n\n\n\n return redirect()->intended('index');\n// return redirect()->back()->withInput();\n // pegar o id do usuario e inserir na table simulacao_id\n\n /**///simulacao_id e editar\n\n\n }", "public function RegistrarDatosPlantaPersonal(HojaVida $data){\n $modelo = new HojaVida();\n $fechahora = $modelo->get_fecha_actual();\n $datosfecha = explode(\" \",$fechahora);\n $fechalog = $datosfecha[0];\n $horalog = $datosfecha[1];\n \n $tiporegistro = \"Planta de Personal\";\n $accion = \"Registro en \".$tiporegistro.\" En el Sistema (Planta de Personal) TALENTO HUMANO\";\n $detalle = $_SESSION['nombre'].\" \".$accion.\" \".$fechalog.\" \".\"a las: \".$horalog;\n $tipolog = 15;\n $idusuario = $_POST['id_usuarioR'];\n $idusuarioR = $_SESSION['idUsuario'];\n try {\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); \n //EMPIEZA LA TRANSACCION\n $this->pdo->beginTransaction();\n\n $sql = \"INSERT INTO `th_planta_personal`(`pla_id_usuario`, `pla_fecha`, `pla_id_cargo`, `pla_id_clase_nombra`, \n `pla_flag_licencia`, `pla_num_resolucion`,`pla_id_res_nombramiento`, `pla_fecha_inicio`, `pla_fecha_fin`, \n `pla_id_ubicacion`, `pla_id_area_cs`, `pla_num_resolu_tras`, `pla_id_usuario_reemplaza`, `pla_id_userR`, \n `pla_flag_alerta`,`pla_estado`) \n VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n $this->pdo->prepare($sql)\n ->execute(\n array(\n $data->id_usuario,\n $fechalog,\n $data->id_cargo,\n $data->pla_id_clase_nombra,\n $data->pla_flag_licencia,\n $data->num_resolucion_nombramiento,\n 0,\n $data->fecha_inicio,\n $data->fecha_fin,\n $data->id_ubicacion,\n $data->id_area,\n $data->num_resolucion_traslado,\n $data->id_user_reemplaza,\n $idusuarioR,\n $data->flag_alerta,\n 1\n )\n ); \n $this->pdo->exec(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechalog', '$accion','$detalle','$idusuario','$tipolog')\");\n \n //SE TERMINA LA TRANSACCION \n $this->pdo->commit();\n } catch (Exception $e) {\n $this->pdo->rollBack();\n die($e->getMessage());\n }\n }", "public function register($pseudo,$prenom,$nom,$email,$password,$classe,$datedenaissance,$sexe)\n {\n try\n {\n $passwordhash = passwordhash($password);\n\n $dateinscription = date('Y-m-d', time());\n $prenomplusnom = $prenom.\" \".$nom;\n $lastco = strftime('%d %B %Y à %H:%M');\n \n $stmt = $this->db->prepare(\"INSERT INTO users(pseudo,prenom,nom,prenomplusnom,email,password,classe,datedenaissance,sexe,dateinscription,notifMailPrive,allowFindSearch,comptePrive,lastco) VALUES(:pseudo, :prenom, :nom, :prenomplusnom, :email, :password, :classe, :datedenaissance, :sexe, :dateinscription, :notifMailPrive, :allowFindSearch, :comptePrive, :lastco)\"); \n $stmt->execute(array(\n 'pseudo' => $pseudo,\n 'prenom' => $prenom,\n 'nom' => $nom,\n 'prenomplusnom' => $prenomplusnom,\n 'email' => $email,\n 'password' => $passwordhash,\n 'classe' => $classe,\n 'datedenaissance' => $datedenaissance,\n 'sexe' => $sexe,\n 'dateinscription' => $dateinscription,\n 'notifMailPrive' => 'true',\n 'allowFindSearch' => 'true',\n 'comptePrive' => 'false',\n 'lastco' => $lastco\n ));\n \n return true; \n }\n catch(PDOException $e)\n {\n echo $e->getMessage();\n }\n }", "public function IniciarSesion($data){\n \n if (!$this->SesionIniciada()){ //Verificamos que el usuario no este logueado ya.\n \n $data='<?xml version=\"1.0\" encoding=\"UTF-8\" ?>'.$data; \n $xml = simplexml_load_string($data);\n \n if (!is_object($xml)){\n throw new Exception('Error en la lectura del XML',1001);\n\n }\n \n (string) $nick =(string) $xml->Usuario->Nick;\n (string) $clave = (string)$xml->Usuario->Clave;\n \n $ConexionCassandra=new ManejadorCassandra(); //Conexion con la base de datos cassandra\n $BuscaUsuario=$ConexionCassandra->ConsultaPorParametro('usuario',array('nick'=>$nick)); // Busca en la table usuario el nick \n $VerificaEnBD=$BuscaUsuario->getAll();\n \n if (($VerificaEnBD[$nick]['clave']==$clave)&&($nick!=\"\") &&($clave!=\"\")){ // Verifica en la base de datos que la clave sea igual a la que esta almacenada\n $GuardarIp=$this->ObtenerIp();\n $ConexionCassandra->Insertar('sesion',$GuardarIp,array('ip'=> $GuardarIp,'nick'=>$nick)); //Almasena en la tabla sesion la ip y el nik del usuario\n $this->nick=$nick;\n return 'UsuarioLogeado';\n \n }\n \n else{\n \n return 'Usuario o Clave incorrecta'; // Si algunos de los campos (usuario o clave) son incorrectas, muestra mensaje de error\n \n }\n \n }\n \n else{\n return 'El usuario ya inicio sesion';\n \n }\n \n \n }", "public function saveUser() {\n\n try {\n\n $this->save();\n\n }catch (Exception $e) {\n\n throw new Exception($e->getMessage());\n\n }\n }", "function store($mail, $nombre, $apellido, $password,$admin)\n {\n $sentencia = $this->db->prepare('INSERT INTO usuario(mail,nombre,apellido,password,admin) VALUES(?,?,?,?,?)');\n $sentencia->execute([$mail, $nombre, $apellido, $password,$admin]);\n }", "public function storeSessionData() {}", "public function storeSessionData() {}", "public function save()\n {\n if (isset($_POST)) {\n \n #Validación Basica\n $nombre = isset($_POST['nombre']) ? $_POST['nombre'] : false;\n $apellidos = isset($_POST['apellidos']) ? $_POST['apellidos'] : false;\n $email = isset($_POST['email']) ? $_POST['email'] : false;\n $password = isset($_POST['password']) ? $_POST['password'] : false;\n\n if ($nombre && $apellidos && $email && $password) {\n #llamar al metodo save del modelo\n $usuario = new Usuario();\n\n #Pasar datos al modelo\n $usuario->setNombre($nombre);\n $usuario->setApellidos($apellidos);\n $usuario->setEmail($email);\n $usuario->setPassword($password);\n\n #guardar en BD\n $save = $usuario->save();\n\n if ($save) {\n #Crear una sesión\n $_SESSION['register'] = \"complete\";\n //echo \"<h4>Usuario Registrado Correctamente!!</h4>\";\n }else {\n #Crear una Sesión\n $_SESSION['register'] = \"failed\";\n //echo \"<h4>Error!! Fallo al registrar usuario</h4>\"; \n }\n } else {\n $_SESSION['register'] = \"failed\";\n }\n \n header(\"Location:\".base_url.'usuario/registro'); #Redirige al registro\n }\n }", "public function registrar_usuario($usuario, $clave, $email, $pintor) {\n /*Creamos la instancia del objeto. ya estamos conectados*/\n $bd = Db::getInstance();\n $sql = \"INSERT INTO login (usuario, clave, email, pintor) VALUES (:usuario, :clave, :email, :pintor)\";\n $stmt = $bd->prepare($sql);\n $stmt->execute([\":usuario\" => $usuario, \":clave\" => $clave, \":email\" => $email, \":pintor\" => $pintor]);\n }", "public function salvarTransacao(Request $request) {\n\n $this->validate($request, [\n 'nome' => 'required|max:50',\n 'apelido' => 'required',\n 'email' => 'required|email|unique:users',\n 'password' => 'required',\n 'cursos_id' => 'required'\n ]);\n\n\n $user = new User($request->all());\n $user->tipo_users_id = TipoUser::select('id')\n ->where('designacao', '=','Estudante')\n ->first()->id;\n\n $estudante = new Estudante($request->all());\n\n\n DB::beginTransaction();\n\n if(!$user->save())\n DB::rollBack();\n else{\n $estudante->users_id = $user->id;\n if(!$estudante->save())\n DB::rollBack();\n DB::commit();\n }\n\n return response()->json(['user' => $user, 'estudante' => $estudante], 200);\n }", "function registroVentaEmpleadoDAO($salida){\n $conexion = Conexion::crearConexion();\n $exito = false;\n try {\n $valor = $salida->getValor();\n $iva = $salida->getIva();\n $total = $salida->getTotal();\n $fecha = $salida->getFecha_sal();\n \n $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $stm = $conexion->prepare(\"INSERT INTO salidas(valor,iva,total,fecha_sal) VALUES (?,?,?,?)\");\n $stm->bindParam(1, $valor, PDO::PARAM_STR);\n $stm->bindParam(2, $iva, PDO::PARAM_STR);\n $stm->bindParam(3, $total, PDO::PARAM_STR);\n $stm->bindParam(4, $fecha, PDO::PARAM_STR);\n $exito = $stm->execute();\n } catch (Exception $ex) {\n throw new Exception(\"Error al registrar la salida en bd\");\n }\n return $exito;\n }", "public function salva()\n {\n $errori = $this->convalida();\n //se sono presenti errori di convalida\n if (count($errori) > 0) {\n //esco dalla funzione\n return false;\n }\n\n global $dbconn;\n\n $id_comune = addslashes($this->id_comune);\n $denominazione = addslashes($this->denominazione);\n $provincia = addslashes($this->provincia);\n $id_area = $this->id_area;\n $lat = $this->latitudine;\n $lng = $this->longitudine;\n\n $query = \"REPLACE INTO comuni(id_comune, denominazione, provincia, id_area, latitudine, longitudine)\n VALUES ('$id_comune', '$denominazione', '$provincia', $id_area, $lat, $lng)\";\n $comando = $dbconn->prepare($query);\n $esegui = $comando->execute();\n if ($esegui == true && $comando->rowCount() == 1) {\n return true;\n } else {\n return false;\n }\n }", "public function registrar(){\n $cedula = $_POST['cedula'];\n $nombre = $_POST['nombre'];\n $apellido = $_POST['apellido'];\n $edad = $_POST['edad'];\n \n //2. Crear un objeto Estudiante y enviar a actualizar\n $estudiante = new Estudiante($cedula,$nombre,$apellido,$edad); \n \n //3. llamar al modelo para registar un Estudiante\n $this->model->registrarEstudiante($estudiante);\n \n //4. redirección index. \n $mensaje= \"El estudiante fue registrado de manera correcta!\";\n Util::mostarAlerta($mensaje);\n }", "public function registrar_registro()\n \n {\n /** \n * @brief : Metodos para ingresar registro en la base de datos.\n * @return :Vista donde nos mostrara todos lo registro.\n */\n \n $data =Request()->all();\n registro::create($data);\n\n }", "function conectar(){\n global $Usuario;\n global $Clave;\n global $_SESSION;\n $this->dataOrdenTrabajo->SetUserName($Usuario);\n $this->dataOrdenTrabajo->SetUserPassword($Clave);\n $this->dataOrdenTrabajo->SetDatabaseName($_SESSION['database']);\n $this->dataOrdenTrabajo->setConnected(true);\n }", "public function guardarUsuario()\r\n {\r\n $user = new \\App\\Models\\User;\r\n \r\n $user->Seq_Usuario = $_REQUEST['Seq_Usuario'];\r\n $user->Usuario = $_REQUEST['username'];\r\n $user->Password = $_REQUEST['password'];\r\n $user->sys_rol_id = $_REQUEST['rolID'];\r\n\r\n\r\n $userController = new App\\Controllers\\UserController;\r\n\r\n if($user->Seq_Usuario > 0) {\r\n $result = $userController->updateUser($user);\r\n } else {\r\n $result = $userController->createUser($user);\r\n }\r\n \r\n /**\r\n * Variable de sesión usada para mostrar la notificación del\r\n * resultado de la solicitud.\r\n */\r\n $_SESSION['result'] = $result;\r\n \r\n header('Location: ?c=Registro&a=usuarios');\r\n }", "public function Registrar_FormacionProfesional(HojaVida $data){\n $modelo = new HojaVida();\n $fechahora = $modelo->get_fecha_actual();\n $datosfecha = explode(\" \",$fechahora);\n $fechalog = $datosfecha[0];\n $horalog = $datosfecha[1];\n \n $tiporegistro = \"Formación Profesional\";\n $accion = \"Registra una Nueva \".$tiporegistro.\" En el Sistema (Hoja vida) TALENTO HUMANO\";\n $detalle = $_SESSION['nombre'].\" \".$accion.\" \".$fechalog.\" \".\"a las: \".$horalog;\n $tipolog = 15;\n $idusuario = $_SESSION['idUsuario'];\n try {\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\t\t\n //EMPIEZA LA TRANSACCION\n $this->pdo->beginTransaction();\n\n $sql = \"INSERT INTO `th_formacion_profesional`(`for_pro_id_HV`, `for_pro_id_user`, `for_pro_id_userR`, `for_pro_id_nivel_educacion`, \n `for_pro_titulo`,`for_pro_institucion`, `for_pro_fecha_inicio`, `for_pro_fecha_fin`, `for_pro_ruta_certificado`) \n VALUES (?,?,?,?,?,?,?,?,?)\";\n $this->pdo->prepare($sql)\n ->execute(\n array(\n $data->id,\n $data->usuario,\n $idusuario,\n $data->for_pro_id_nivel,\n $data->for_pro_titulo,\n $data->for_pro_institucion,\n $data->for_pro_fecha_inicio,\n $data->for_pro_fecha_fin,\n $data->for_pro_ruta_certificado\n )\n ); \n $this->pdo->exec(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechalog', '$accion','$detalle','$idusuario','$tipolog')\");\n //SE TERMINA LA TRANSACCION \n $this->pdo->commit();\n } catch (Exception $e) {\n $this->pdo->rollBack();\n die($e->getMessage());\n }\n }", "function iniciar_sesion($id_user, $pass){\n\t\t\t//if ( no lo encontro )\n\t\t\t\t//return false;\n\t\t\t$_SESSION['id_usuario'] = $id_usuario;\n\t\t\t$_SESSION['tipo'] = $type;\n\t\t\t$_SESSION['usuario'] = $usuario;\n\t\t\treturn true;\n\t\t}", "function saveUsuario(Usuario $objeto) {\n $campos = $this->_getCampos($objeto);\n \n $id = $campos['id'];\n unset($campos['id']);\n unset($campos['tipo']);\n unset($campos['activa']);\n unset($campos['falta']);\n if($objeto->getPassword() === null || $objeto->getPassword() === ''){\n unset($campos['password']);\n }\n return $this->db->updateParameters(self::TABLA, $campos, array('id' => $id));\n }", "function saveUser() {\n\n //datos desde el formulario\n $nombres = $this->input->post('nombres');\n $apellidos = $this->input->post('apellidos');\n $email = $this->input->post('email');\n $marca_favorita = $this->input->post('marca_favorita');\n $modelo_favorito = $this->input->post('modelo');\n $profesion = $this->input->post('profesion');\n $pais = $this->input->post('pais');\n $telefono = $this->input->post('telefono');\n\n //re-verificamos si el user existe\n $exi = $this->Secure_model->checkEmail($email);\n if ($exi == TRUE) {\n redirect(base_url() . 'index.php/site/aviso/2');\n }\n //se enviara a usuario\n //$temp_clave = \"hola\";\n $temp_clave = $this->Secure_model->generateClave($nombres);\n $clave = md5(utf8_encode($temp_clave));\n $tipo_usuario = '2';\n $estado = md5($email);\n $datos = array(\n 'nombres' => $nombres,\n 'apellidos' => $apellidos,\n 'email' => $email,\n 'pais' => $pais,\n 'clave' => $clave,\n 'tipo_usuario' => $tipo_usuario,\n 'estado' => $estado,\n 'primium' => '0',\n 'fecha_registro' => date('Y-m-d'),\n );\n //$this->session->set_userdata('temp_data',$datos);\n // GUARDAMOS QUE ACABAMOS DE CREAR Y OBTENEMOS EL ULTIMO ID\n $last_id = $this->savedata_model->guardar('cq_usuario', $datos);\n //Guardamos numero de telefono\n $dato_tel = array(\n //'id_telefono' => '',\n 'id_usuario' => $last_id,\n 'telefono' => $telefono,\n 'codigo_pais' => $pais\n );\n\n $this->savedata_model->guardar('cq_telefonos', $dato_tel);\n\n // EVIAMOS NOTIFICACION DE CORREO\n $nombre = $nombres . \" \" . $apellidos;\n\n $datos = array('tipo' => 'registro',\n 'to' => $email,\n 'clave' => $temp_clave,\n 'nombre' => $nombre);\n\n\n if ($this->function_model->enviarMail($datos)) {\n\n redirect(base_url() . 'index.php/site/aviso/1');\n } else {\n redirect(base_url() . 'index.php/site/aviso/3');\n }\n }", "public function GuardarEmpleado()\n {\n //Creo la conexion a la DB.\n $objetoAccesoDato = AccesoDatos::dameUnObjetoAcceso();\n\n //Creo la consulta INSERT.\n $consulta = $objetoAccesoDato->RetornarConsulta(\"INSERT into empleado (nombre,turno,tipo)values('$this->nombre','$this->tipo','$this->turno')\");\n\n //Ejecuto la consulta.\n $consulta->execute();\n\n //Guardo su ID.\n $this->id = $objetoAccesoDato->RetornarUltimoIdInsertado();\n\n //Retorno\n return $this->id;\n }", "public function login() {\n parent::conectarBD();\n\n $queri = parent::query(sprintf(\"select usu_id as codigo, usu_password as senha, \"\n . \"usu_token_sessao as token_sessao, usu_login as login from \"\n . table_prefix . \"usuario where usu_login = '%s' and \"\n . \"usu_password = '%s'\", $this->usu_login, $this->usu_password));\n\n if ($queri) {\n $dados = $queri->fetch_assoc();\n if ($dados) {\n $new_session_id = hash('sha256', $dados['senha'] . time());\n $queri2 = parent::query(\"update \" . table_prefix . \"usuario set usu_token_sessao = '$new_session_id' where usu_id = \" . $dados['codigo']);\n\n if ($queri2) {\n $dados['token_sessao'] = $new_session_id;\n parent::commit();\n parent::desconectarBD();\n return $dados;\n } else {\n parent::rollback();\n parent::desconectarBD();\n return false;\n }\n } else {\n parent::desconectarBD();\n return false;\n }\n } else {\n parent::desconectarBD();\n return false;\n }\n }" ]
[ "0.71754736", "0.7090055", "0.68557936", "0.6578735", "0.65174305", "0.646615", "0.645454", "0.63325536", "0.6293643", "0.62722385", "0.6165385", "0.61475617", "0.61447996", "0.6141844", "0.6110284", "0.61088765", "0.6095881", "0.6083986", "0.60812014", "0.608056", "0.6074276", "0.60628396", "0.6037781", "0.603082", "0.6022959", "0.60127974", "0.5996286", "0.5991083", "0.598889", "0.5970909", "0.59651995", "0.5946638", "0.59465396", "0.5945989", "0.5941125", "0.5934672", "0.59315413", "0.5927559", "0.59170353", "0.5912002", "0.591137", "0.58959293", "0.58910525", "0.58880407", "0.5885245", "0.58840275", "0.5882996", "0.58828014", "0.58766073", "0.5870762", "0.58646345", "0.5849258", "0.5849221", "0.58483166", "0.58445585", "0.58349955", "0.5819293", "0.5817689", "0.5815844", "0.58114314", "0.5804971", "0.5800498", "0.5798071", "0.57968205", "0.57880837", "0.5786455", "0.5784071", "0.57825506", "0.57817256", "0.57788026", "0.57784855", "0.57775193", "0.57765365", "0.57743007", "0.57727396", "0.57672703", "0.57663596", "0.57624614", "0.5760038", "0.574993", "0.57390064", "0.5736393", "0.5735376", "0.57323074", "0.572843", "0.5728168", "0.57167023", "0.57104516", "0.5704507", "0.57042336", "0.5703801", "0.5700388", "0.56946564", "0.5693747", "0.5687416", "0.56872565", "0.56798077", "0.5675734", "0.5671695", "0.5671128", "0.56695724" ]
0.0
-1
Determine if the user is authorized to make this request.
public function authorize() { return Auth::guard('admin')->check(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() != null;\n }", "public function authorize(): bool\n {\n return $this->user() !== null;\n }", "public function authorize(): bool\n {\n return $this->isUserAuthorised();\n }", "public function authorize()\n {\n return !is_null($this->user());\n }", "public function authorize()\n {\n return request()->user() != null;\n }", "public function authorize()\n\t{\n\t\t// if user is updating his profile or a user is an admin\n\t\tif( $this->user()->isSuperAdmin() || !$this->route('user') ){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function authorize()\n {\n // this was my best guess\n return $this->user()->id === $this->route('user')->id;\n }", "public function isAuthorized()\n {\n return $this->cookieHelper->requestCookieExists('auth');\n }", "public function authorize()\n {\n return !empty(Auth::user()) && ($this->user()->isAnAdmin() || $this->user()->hasRole('user'));\n }", "public function authorize()\n {\n $originAccount = Account::find($this->get('origin_account_id'));\n return $originAccount->user_id == auth()->id();\n }", "public function authorize()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default:\n return $this->user()->type == 'App\\\\Staff' ? true : false;\n break;\n }\n\n return false;\n }", "public function authorize()\n {\n if($this->user()->role == \"admin\" || $this->user()->id == $this->request->get('author_id')) return true;\n else return false;\n }", "public function authorize()\n {\n if(\\Auth::guest())\n {\n return false;\n } else {\n // Action 1 - Check if authenticated user is a superadmin\n if(\\Auth::User()->hasRole('superadmin'))\n return true;\n\n // Action 2 - Find UUID from request and compare to authenticated user\n $user = User::where('uuid', $this->user_uuid)->firstOrFail();\n if($user->id == \\Auth::User()->id)\n return true;\n\n // Action 3 - Fail request\n return false;\n }\n }", "public function authorize()\n {\n $this->model = $this->route('user');\n\n $this->model = is_null($this->model) ? User::class : $this->model;\n\n return $this->isAuthorized();\n }", "public function isAuthorized(): bool\n {\n // TODO: implement authorization check\n\n return true;\n }", "public function isAuthorized() {}", "public function authorize()\n {\n return request()->loggedin_role === 1;\n }", "public function authorize()\n {\n $this->model = $this->route('user');\n\n if ($this->isEdit() && !is_null($this->model)) {\n if (!user()->hasPermissionTo('Administrations::admin.user') && $this->model->id != user()->id) {\n return false;\n }\n }\n\n $this->model = is_null($this->model) ? User::class : $this->model;\n\n return $this->isAuthorized();\n }", "public function authorize()\n {\n $accessor = $this->user();\n\n return $accessor->isAdmin() || $accessor->hasKey('post-users');\n }", "public function authorize()\n {\n $user = \\Auth::getUser();\n\n return $user->user_type == 1;\n }", "public function authorize()\n {\n return auth()->check() ? true : false;\n }", "public function authorize()\n {\n return auth()->check() ? true : false;\n }", "public function authorize()\n {\n /**\n * @var User $user\n * @var Document $document\n */\n $user = Auth::user();\n $document = $this->route('document');\n\n return (int)$user->id === (int)$document->user_id;\n }", "public function authorize()\n {\n switch (true) {\n case $this->wantsToList():\n case $this->wantsToShow():\n if ($this->hasRoles(['owner', 'administrator'])) {\n return true;\n }\n break;\n case $this->wantsToStore():\n case $this->wantsToUpdate():\n case $this->wantsToDestroy():\n if ($this->hasRoles(['owner'])) {\n return true;\n }\n break;\n }\n\n return false;\n }", "public function authorize()\n {\n $user = JWTAuth::parseToken()->authenticate();\n $organisation = Organization::findOrFail($this->route('organizations'));\n return $organisation->admin_id == $user->id;\n }", "public function authorize()\n {\n if($this->user()->isAdmin())\n return true;\n\n return false;\n }", "function isAuthorized()\n {\n $authorized = parent::isAuthorized();\n return $authorized;\n }", "public function authorize()\n {\n $user = auth('web')->user();\n if ($user && $user->active) {\n return true;\n }\n\n return false;\n }", "public function authorize()\n {\n $this->user = User::query()->find($this->route()->parameter('user'));\n $this->merge(['verified' => $this->get('verified') ? 1 : 0]);\n\n return true;\n }", "public function authorize()\n {\n $user = request()->user('api');\n return $user->isSenior();\n }", "public function authorize()\n {\n return is_client_or_staff();\n }", "public function isAuthorized() {\n\t\treturn true;\n\t}", "public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }", "public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }", "public function authorize()\n {\n //Check if user is authorized to access this page\n if($this->user()->authorizeRoles(['admin'])) {\n return true;\n } else {\n return false;\n }\n }", "public function isAuthorized()\n\t{\n\t\t$sessionVal = Yii::$app->session->get($this->sessionParam);\n\t\treturn (!empty($sessionVal));\n\t}", "public function authorize() {\n\n return auth()->user() && auth()->user()->username === $this->user->username;\n }", "public function authorize()\n {\n return session('storefront_key') || request()->session()->has('api_credential');\n }", "public function authorize()\n {\n if ($this->user()->isAdmin($this->route('organization'))) {\n return true;\n }\n\n return false;\n\n }", "public function authorize()\n {\n return $this->user() && $this->user()->role === Constants::USER_ROLE_ADMIN;\n }", "public function authorized()\n {\n return $this->accepted && ! $this->test_mode;\n }", "public function authorize()\n {\n if (!auth()->check()) {\n return false;\n }\n return true;\n }", "public function hasAuthorized() {\n return $this->_has(1);\n }", "public function authorize()\n {\n $resource = Resource::find($this->route('id'));\n\n if (!$resource) {\n return true;\n }\n\n return $resource && $this->user()->can('access', $resource);\n }", "public function authorize()\n {\n /*\n if ($this->loan_id && is_numeric($this->loan_id) && $loan = Loan::whereId($this->loan_id)->first()) {\n // loan_id belongs to requesting user\n return $loan && $this->user()->id == $loan->user_id;\n }\n */\n return true; // let rules handle it\n }", "public function authorize()\n {\n //TODO Authorice Request (without Controller)\n return auth()->user()->role_id === 1;\n }", "public function authorize(): bool\n {\n return $this->user()->id === $this->article->user->id;\n }", "public function authorize()\n {\n return $this->user()->rol == 'admin' ? true : false;\n }", "public function isAuth()\n {\n return $this->session->hasAuthorisation();\n }", "public function authorize()\n {\n if(Auth::user())\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public function authorize()\n {\n //Check if user is authorized to access this page\n if($this->user()->authorizeRoles(['admin', 'hrmanager', 'hruser'])) {\n return true;\n } else {\n return false;\n }\n }", "public function authorize()\n {\n return \\Auth::check() ? true : false;\n }", "public function authorize()\n\t{\n\t\treturn true; //no user checking\n\t}", "public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }", "public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }", "public function authorize()\n {\n return !empty(Auth::user());\n }", "public function authorize()\n {\n return $this->groupHasUser() || $this->hasSeller();\n }", "public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}", "public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}", "public function isAuthorized() {\n\t\t\n\t}", "public function authorize()\n {\n if(Auth::check())\n {\n return (Auth::user()->has_world_admin_access);\n }\n return false;\n }", "public function authorize()\n {\n if (!\\Auth::guest()) {\n $user = \\Auth::getUser();\n if ($user->type == User::USER_TYPE_ADMIN) {\n return true;\n }\n }\n\n return false;\n }", "public function authorize()\n {\n if (auth()->user()->is_admin) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n if ($this->user()->is_admin){\n return true;\n }\n else if ($this->method == \"PUT\"){\n if ($this->user()->id == $this->input('id')){\n return true;\n }\n }\n return false;\n }", "public function authorize(): bool\n {\n return parent::authorize() && (int)$this->playList->user_id === auth()->user()->id;\n }", "public function authorize() {\n\t\treturn $this->user()->is_admin;\n\t}", "public function authorize()\n {\n if (Auth::check()) {\n \n return true;\n \n }\n return false;\n }", "public function authorize()\n {\n $user = Auth::user();\n return $user && $user->rol == 'admin';\n }", "public function authorize()\n\t{\n\t\t// Nutzern akzeptiert werden\n\t\tif(Auth::check())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function authorize()\n {\n // TODO: Check if has business\n return session()->has('id');\n }", "public function authorize()\n {\n if (auth()->check() && auth()->user()->isAdmin()) {\n return true;\n }\n\n return false;\n }", "public function authorize()\n {\n return $this->auth->check();\n }", "public function authorize() {\n\t\t$user = \\Auth::user();\n\n\t\tif ( $user->isAdmin() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function authorize()\n {\n if (auth()->user()->isAdmin() || auth()->user()->isCustomer()) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->container['auth']->check();\n }", "function isAuthorized($request) {\n return true;\n }", "public function authorize()\n {\n return Auth::guest() || isMember();\n }", "public function authorize()\n {\n return auth()->user() && auth()->user()->isCeo();\n }", "public function authorize(): bool\n {\n $deckId = $this->request->get('deck_id');\n $userId = Deck::whereKey($deckId)->value('user_id');\n\n return $userId === user()->id;\n }", "public function authorize()\n {\n return Auth::check() && Auth::user()->is_contractor;\n }", "public function authorize()\n {\n return TRUE;\n }", "public function authorize()\n {\n $user = User::find($this->id);\n\n if (!$user) {\n $user = User::where('no_ahli', $this->no_ahli)->first();\n }\n if ($user && $user->id == auth()->user()->id) return true;\n if (auth()->user()->is('admin')) return true;\n\n return false;\n }", "public function authorize()\n {\n # if it's false, it will rejected\n return true;\n }", "public function authorize()\n {\n $isValid = auth()->user()->is($this->route('task')->attempt->checklist->owner);\n\n return $isValid;\n }", "public function authorize()\n {\n $user = Auth::user();\n\n return ($user->getRole() == 'admin');\n }", "public function is_authorized() {\n\t\t$authorized = true;\n\t\tif ( $this->is_access_token_expired() ) {\n\t\t\t$authorized = false;\n\t\t}\n\n\t\treturn $authorized;\n\t}", "public function authorize()\n {\n $user = User::findOrFail($this->route('id'));\n\n return $user->hasRole('admin') || $user->hasRole('teacher');\n }", "public function authorize()\n {\n $project = \\App\\Project::find($this->request->get('project'));\n return $project && $project->isManager($this->user()->name);\n }", "public function isAuthorized() {\n\t\treturn (bool)$this->_storage->hasData();\n\t}", "public function authorize()\n {\n $idExpense = $this->input('expense');\n $expense = Expense::find($idExpense);\n\n return $expense && $this->user()->id == $expense->user_id;\n }", "public function authorize()\n {\n // User system not implemented\n return true;\n }", "public function authorize() : bool\n {\n // TODO check request to xhr in middleware\n return true;\n }", "public function authorize()\n {\n $organizationId = (string) $this->route('id');\n\n $this->organization = Organization::findByUuidOrFail($organizationId);\n\n return $this->user()->can('show', [Organization::class, $this->organization]);\n }", "public function authorize()\n {\n $user = $this->findFromUrl('user');\n return $this->user()->can('update', $user);\n }", "public function authorize()\n {\n $user = Auth::user();\n $orderElement = OrderElement::find($this->input(\"order_element_id\"));\n $order = $orderElement->order;\n\n if ($user->id == $order->user_id) {\n return true;\n } else {\n return false;\n }\n }", "public function authorize()\n {\n $current_user = auth()->user();\n $convention = Convention::find($this->route('convention_id'));\n\n // Use ClientPolicy here to authorize before checking the fields\n return $current_user->can('store', Convention::class)\n || $current_user->can('update', $convention);\n }", "public function authorize()\n {\n if (session()->has('user'))\n {\n $participantController = new ParticipantController();\n\n return !$participantController->isParticipating($this->input('id_user'), $this->input('id_event'));\n }\n else\n {\n return false;\n }\n }", "public function authorize()\n {\n return (Auth::user()->allowSuperAdminAccess || Auth::user()->allowAdminAccess);\n }" ]
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.7891453", "0.7890965", "0.7862504", "0.78414804", "0.78414804", "0.7837965", "0.78248763", "0.7812292", "0.7809632", "0.77928597", "0.7788316", "0.7781619", "0.77815884", "0.7763308", "0.7754035", "0.7717961", "0.7717961", "0.77171147", "0.77138597", "0.7705001", "0.7693082", "0.7692783", "0.76915383", "0.76909506", "0.76733255", "0.7667128", "0.7665592", "0.7656238", "0.7650853", "0.764326", "0.76431626", "0.76431614", "0.7635147", "0.76311624", "0.76294273", "0.7627076", "0.76207024", "0.76207024", "0.76139116", "0.76036394", "0.76035625", "0.76035625", "0.76032084", "0.7602515", "0.76007926", "0.75971127", "0.7588128", "0.7586303", "0.7581912", "0.7563037", "0.7554785", "0.75526226", "0.755171", "0.75436753", "0.75432944", "0.7540682", "0.7538806", "0.75280696", "0.751548", "0.75149626", "0.7501161", "0.74959517", "0.74956346", "0.74911124", "0.7489147", "0.74858016", "0.748033", "0.7478443", "0.7472642", "0.7472576", "0.7465409", "0.7464371", "0.74630046", "0.7462218", "0.7461453", "0.7449168", "0.74399257", "0.74358094", "0.7433247", "0.7432659", "0.74248093" ]
0.0
-1
Get the validation rules that apply to the request.
public function rules() { return [ 'category' => 'required|max:20', 'description' => 'required|max:50', ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the schema\n $schema = $this->getSchema();\n\n return $schema->getRules($this);\n }", "public function rules()\n {\n return $this->validationRules;\n }", "public function rules()\n {\n $rules = [];\n switch ($this->getMethod()):\n case \"POST\":\n $rules = [\n 'course_id' => 'required|numeric',\n 'questions' => 'required|array',\n ];\n break;\n case \"PUT\":\n $rules = [\n 'id' => 'required|numeric',\n 'course_id' => 'required|numeric',\n 'questions' => 'required|array',\n ];\n break;\n case \"DELETE\":\n $rules = [\n 'id' => 'required|numeric'\n ];\n break;\n endswitch;\n return $rules;\n }", "public static function getRules()\n {\n return (new static)->getValidationRules();\n }", "public function getRules()\n {\n return $this->validation_rules;\n }", "public function getValidationRules()\n {\n return [];\n }", "public function getValidationRules() {\n return [\n 'email' => 'required|email',\n 'name' => 'required|min:3',\n 'password' => 'required',\n ];\n }", "public function rules()\n {\n if($this->isMethod('post')){\n return $this->post_rules();\n }\n if($this->isMethod('put')){\n return $this->put_rules();\n }\n }", "public function rules()\n {\n $rules = [];\n\n // Validation request for stripe keys for stripe if stripe status in active\n if($this->has('stripe_status')){\n $rules[\"api_key\"] = \"required\";\n $rules[\"api_secret\"] = \"required\";\n $rules[\"webhook_key\"] = \"required\";\n }\n\n if($this->has('razorpay_status')){\n $rules[\"razorpay_key\"] = \"required\";\n $rules[\"razorpay_secret\"] = \"required\";\n $rules[\"razorpay_webhook_secret\"] = \"required\";\n }\n\n // Validation request for paypal keys for paypal if paypal status in active\n if($this->has('paypal_status')){\n $rules[\"paypal_client_id\"] = \"required\";\n $rules[\"paypal_secret\"] = \"required\";\n $rules[\"paypal_mode\"] = \"required_if:paypal_status,on|in:sandbox,live\";\n }\n\n\n return $rules;\n }", "protected function getValidationRules()\n {\n $rules = [\n 'title' => 'required|min:3|max:255',\n ];\n\n return $rules;\n }", "public function getRules()\n\t{\n\t\t$rules['user_id'] = ['required', 'exists:' . app()->make(User::class)->getTable() . ',id'];\n\t\t$rules['org_id'] = ['required', 'exists:' . app()->make(Org::class)->getTable() . ',id'];\n\t\t$rules['role'] = ['required', 'string', 'in:' . implode(',', Static::ROLES)];\n\t\t$rules['scopes'] = ['nullable', 'array'];\n\t\t$rules['ended_at'] = ['nullable', 'date'];\n\t\t$rules['photo_url'] = ['nullable', 'string'];\n\n\t\treturn $rules;\n\t}", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n case 'PUT':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n }\n }", "public function rules()\n {\n\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'min:6|same:password',\n 'role_id' => 'required'\n ];\n break;\n case 'PUT':\n case 'PATCH':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n\n default:\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n }\n return $rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n switch($this->method()) {\n case 'GET':\n return [];\n case 'POST':\n return [\n 'name' => 'required|max:50',\n 'company' => 'required|max:100',\n 'position' => 'required|max:50',\n 'email' => 'required|email|max:150',\n 'phone' => 'required|max:25',\n 'description' => 'nullable|max:500',\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'name' => 'required|max:50',\n 'company' => 'required|max:100',\n 'position' => 'required|max:50',\n 'email' => 'required|email|max:150',\n 'phone' => 'required|max:25',\n 'description' => 'nullable|max:500',\n ];\n case 'DELETE':\n return [];\n default:break;\n }\n \n }", "public function rules($request) {\n $function = explode(\"@\", $request->route()[1]['uses'])[1];\n return $this->getRouteValidateRule($this->rules, $function);\n // // 获取请求验证的函数名\n // // ltrim(strstr($a,'@'),'@')\n // if (count(explode(\"@\", Request::route()->getActionName())) >= 2) {\n // $actionFunctionName = explode(\"@\", Request::route()->getActionName()) [1];\n // }\n\n // // 取配置并返回\n // if (isset($this->rules[$actionFunctionName])) {\n // if (is_array($this->rules[$actionFunctionName])) {\n // return $this->rules[$actionFunctionName];\n // }\n // else {\n // return $this->rules[$this->rules[$actionFunctionName]];\n // }\n // }\n // else {\n // return [];\n // }\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_MovieID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CountryID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_BroadCastDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t\t'_CreatedDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n {\n if ($this->method() === 'POST') {\n return $this->rulesForCreating();\n }\n\n return $this->rulesForUpdating();\n }", "public function rules()\n {\n $validation = [];\n if ($this->method() == \"POST\") {\n $validation = [\n 'name' => 'required|unique:users',\n 'email' => 'required|unique:users|email',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'required|min:6',\n 'roles' => 'required',\n ];\n } elseif ($this->method() == \"PUT\") {\n $validation = [\n 'name' => 'required|unique:users,name,' . $this->route()->parameter('id') . ',id',\n 'email' => 'required|unique:users,email,' . $this->route()->parameter('id') . ',id|email',\n 'roles' => 'required',\n ];\n\n if ($this->request->get('change_password') == true) {\n $validation['password'] = 'required|min:6|confirmed';\n $validation['password_confirmation'] = 'required|min:6';\n }\n }\n\n return $validation;\n }", "protected function getValidationRules()\n {\n $class = $this->model;\n\n return $class::$rules;\n }", "public function rules()\n {\n $data = $this->request->all();\n $rules['username'] = 'required|email';\n $rules['password'] = 'required'; \n\n return $rules;\n }", "public function rules()\n {\n $rules = $this->rules;\n\n $rules['fee'] = 'required|integer';\n $rules['phone'] = 'required|min:8|max:20';\n $rules['facebook'] = 'required|url';\n $rules['youtube'] = 'required|url';\n $rules['web'] = 'url';\n\n $rules['requestgender'] = 'required';\n $rules['serviceaddress'] = 'required|max:150';\n $rules['servicetime'] = 'required|max:150';\n $rules['language'] = 'required|max:150';\n $rules['bust'] = 'required|max:100|integer';\n $rules['waistline'] = 'required|max:100|integer';\n $rules['hips'] = 'required|max:100|integer';\n $rules['motto'] = 'max:50';\n\n return $rules;\n }", "protected function getValidRules()\n {\n return $this->validRules;\n }", "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'POST':\n case 'PUT':\n {\n return [\n 'name' => 'required',\n ];\n }\n default:break;\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n {\n return [\n 'mobile' => ['required','max:11','min:11'],\n 'code' => ['required','max:6','min:6'],\n 'avatar' => ['required'],\n 'wx_oauth' => ['required'],\n 'password' => ['nullable','min:6','max:20']\n ];\n }\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default: {\n return [];\n }\n }\n }", "public function rules()\n {\n switch ($this->getRequestMethod()) {\n case 'index':\n return [\n 'full_name' => 'nullable|string',\n 'phone' => 'nullable|string',\n ];\n break;\n case 'store':\n return [\n 'crm_resource_id' => 'required|exists:crm_resources,id',\n 'channel' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$channel),\n 'call_status' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$call_statuses),\n ];\n break;\n default:\n return [];\n break;\n }\n }", "public function rules()\n {\n //With password\n if(request('password') || request('password_confirmation')) {\n return array_merge($this->passwordRules(), $this->defaultRules());\n }\n //Without password\n return $this->defaultRules();\n }", "public function rules()\n {\n $rules = [\n '_token' => 'required'\n ];\n\n foreach($this->request->get('emails') as $key => $val) {\n $rules['emails.'.$key] = 'required|email';\n }\n\n return $rules;\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CoverImageID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_TrackID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Status' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Rank' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CreateDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n { \n return $this->rules;\n }", "public function getValidationRules()\n {\n if (method_exists($this, 'rules')) {\n return $this->rules();\n }\n\n $table = $this->getTable();\n $cacheKey = 'validate.' . $table;\n\n if (config('validate.cache') && Cache::has($cacheKey)) {\n return Cache::get($cacheKey);\n }\n\n // Get table info for model and generate rules\n $manager = DB::connection()->getDoctrineSchemaManager();\n $details = $manager->listTableDetails($table);\n $foreignKeys = $manager->listTableForeignKeys($table);\n\n $this->generateRules($details, $foreignKeys);\n\n if (config('validate.cache')) {\n Cache::forever($cacheKey, $this->rules);\n }\n\n return $this->rules;\n }", "public function getValidationRules()\n {\n $rules = $this->getBasicValidationRules();\n\n if (in_array($this->type, ['char', 'string', 'text', 'enum'])) {\n $rules[] = 'string';\n if (in_array($this->type, ['char', 'string']) && isset($this->arguments[0])) {\n $rules[] = 'max:' . $this->arguments[0];\n }\n } elseif (in_array($this->type, ['timestamp', 'date', 'dateTime', 'dateTimeTz'])) {\n $rules[] = 'date';\n } elseif (str_contains(strtolower($this->type), 'integer')) {\n $rules[] = 'integer';\n } elseif (str_contains(strtolower($this->type), 'decimal')) {\n $rules[] = 'numeric';\n } elseif (in_array($this->type, ['boolean'])) {\n $rules[] = 'boolean';\n } elseif ($this->type == 'enum' && count($this->arguments)) {\n $rules[] = 'in:' . join(',', $this->arguments);\n }\n\n return [$this->name => join('|', $rules)];\n }", "public function rules()\n {\n $rules = [];\n if ($this->isMethod('post')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n } elseif ($this->isMethod('put')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n }\n return $rules;\n }", "public function validationRules()\n {\n return [];\n }", "public function rules()\n {\n $rules = $this->rules;\n if(Request::isMethod('PATCH')){\n $rules['mg_name'] = 'required|min:2,max:16';\n }\n return $rules;\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_EventID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_SourceID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_HasEvent' => array(\n\t\t\t\t'inArray' => array('values' => array(self::HASEVENT_0, self::HASEVENT_1),),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n {\n $rules = [];\n switch ($this->method()){\n case 'GET':\n $rules['mobile'] = ['required', 'regex:/^1[3456789]\\d{9}$/'];\n break;\n case 'POST':\n if($this->route()->getActionMethod() == 'sms') {\n $rules['area_code'] = ['digits_between:1,6'];\n if(in_array($this->get('type'), ['signup', 'reset_pay_pwd'])) {\n $rules['mobile'] = ['required', 'digits_between:5,20'];\n if($this->get('type') == 'signup' && !$this->get('area_code')) {\n $this->error('请选择区号');\n }\n }\n $rules['type'] = ['required', Rule::in(\\App\\Models\\Captcha::getSmsType())];\n }\n break;\n }\n return $rules;\n }", "public function rules()\n {\n if ($this->isMethod('post')) {\n return $this->createRules();\n } elseif ($this->isMethod('put')) {\n return $this->updateRules();\n }\n }", "public function rules()\n {\n $rules = [\n 'first_name' => ['required'],\n 'birthdate' => ['required', 'date', 'before:today'],\n ];\n\n if (is_international_session()) {\n $rules['email'] = ['required', 'email'];\n }\n\n if (should_collect_international_phone()) {\n $rules['phone'] = ['phone'];\n }\n\n if (is_domestic_session()) {\n $rules['phone'] = ['required', 'phone'];\n }\n\n return $rules;\n }", "public function rules()\n {\n dd($this->request->get('answer'));\n foreach ($this->request->get('answer') as $key => $val)\n {\n $rules['answer.'.$key] = 'required';\n }\n\n return $rules;\n }", "public function rules()\n {\n return static::$rules;\n }", "function getRules() {\n\t\t$fields = $this->getFields();\n\t\t$allRules = array();\n\n\t\tforeach ($fields as $field) {\n\t\t\t$fieldRules = $field->getValidationRules();\n\t\t\t$allRules[$field->getName()] = $fieldRules;\n\t\t}\n\n\t\treturn $allRules;\n\t}", "public static function getValidationRules(): array\n {\n return [\n 'name' => 'required|string|min:1|max:255',\n 'version' => 'required|float',\n 'type' => 'required|string',\n ];\n }", "public function rules()\n {\n $rules = [\n 'name' => 'required',\n 'phone' => 'required|numeric',\n 'subject' => 'required',\n 'message' => 'required',\n 'email' => 'required|email',\n ];\n\n return $rules;\n }", "public function getValidationRules(): array\n {\n return [\n 'email_address' => 'required|email',\n 'email_type' => 'nullable|in:html,text',\n 'status' => 'required|in:subscribed,unsubscribed,cleaned,pending',\n 'merge_fields' => 'nullable|array',\n 'interests' => 'nullable|array',\n 'language' => 'nullable|string',\n 'vip' => 'nullable|boolean',\n 'location' => 'nullable|array',\n 'location.latitude' => ['regex:/^[-]?(([0-8]?[0-9])\\.(\\d+))|(90(\\.0+)?)$/'], \n 'location.longitude' => ['regex:/^[-]?((((1[0-7][0-9])|([0-9]?[0-9]))\\.(\\d+))|180(\\.0+)?)$/'],\n 'marketing_permissions' => 'nullable|array',\n 'tags' => 'nullable|array'\n ];\n }", "protected function getValidationRules()\n {\n return [\n 'first_name' => 'required|max:255',\n 'last_name' => 'required|max:255',\n 'email' => 'required|email|max:255',\n 'new_password' => 'required_with:current_password|confirmed|regex:' . config('security.password_policy'),\n ];\n }", "public function rules()\n {\n // get 直接放行\n if( request()->isMethod('get') ){\n return []; // 规则为空\n }\n\n // 只在post的时候做验证\n return [\n 'username' => 'required|min:2|max:10', \n 'password' => 'required|min:2|max:10', \n 'email' => 'required|min:2|max:10|email', \n 'phoneNumber' => 'required|min:2|max:10', \n\n ];\n }", "public function rules()\n {\n\n $rules = [\n 'id_tecnico_mantenimiento' => 'required',\n 'id_equipo_mantenimiento' => 'required'\n ];\n\n if ($this->request->has('status')) {\n $rules['status'] = 'required';\n }\n\n if ($this->request->has('log_mantenimiento')) {\n $rules['log_mantenimiento'] = 'required';\n }\n\n return $rules;\n }", "public function rules()\n {\n $this->buildRules();\n return $this->rules;\n }", "public function rules()\n {\n $rules = [];\n\n if ($this->isUpdate() || $this->isStore()) {\n $rules = array_merge($rules, [\n 'name' => 'required|string',\n 'email' => 'email',\n 'password' => 'confirmed|min:6',\n\n ]);\n }\n\n if ($this->isStore()) {\n $rules = array_merge($rules, [\n\n ]);\n }\n\n if ($this->isUpdate()) {\n $rules = array_merge($rules, [\n ]);\n }\n\n return $rules;\n }", "public function rules()\n {\n switch (true) {\n case $this->wantsToList():\n $rules = $this->listRules;\n break;\n case $this->wantsToStore():\n $rules = $this->storeRules;\n break;\n case $this->wantsToUpdate():\n $this->storeRules['email'] = 'required|email|between:5,100|unique:users,email,' . $this->route('administrators');\n\n $rules = $this->storeRules;\n break;\n default:\n $rules = [];\n }\n\n return $rules;\n }", "public function rules()\n {\n if($this->isMethod('post')) {\n return $this->storeRules();\n }\n else if($this->isMethod('put') || $this->isMethod('patch')){\n return $this->updateRules();\n }\n }", "abstract protected function getValidationRules();", "public function rules()\n\t{\n\t\treturn ModelHelper::getRules($this);\n\t}", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return $this->getPostRules();\n case 'PUT':\n return $this->getPutRules();\n }\n }", "public function rules()\n {\n $rules = [\n 'name' => 'required|string|min:2',\n 'email' => \"required|email|unique:users,email, {$this->request->get('user_id')}\",\n 'role_id' => 'required|numeric',\n 'group_id' => 'required|numeric',\n ];\n\n if ($this->request->has('password')){\n $rules['password'] = 'required|min:6';\n }\n\n return $rules;\n }", "public function rules()\n {\n if($this->method() == 'POST')\n {\n return [\n 'reason'=>'required',\n 'date_from'=>'required',\n 'date_to'=>'required',\n 'attachment'=>'required',\n ];\n }\n }", "public function rules()\n {\n $method = $this->method();\n if ($this->get('_method', null) !== null) {\n $method = $this->get('_method');\n }\n // $this->offsetUnset('_method');\n switch ($method) {\n case 'DELETE':\n case 'GET':\n break; \n case 'POST':\n $mailRules = \\Config::get('database.default').'.users';\n break;\n case 'PUT':\n $user = $this->authService->authJWTUserForm();\n $mailRules = \\Config::get('database.default').'.users,email,'.$user->getKey();\n break;\n case 'PATCH':\n break;\n default:\n break;\n }\n \n return [\n 'name' => 'required|string|max:256',\n 'email' => 'required|string|email|max:255|unique:'.$mailRules,\n 'password' => 'required|string|min:3',\n ];\n }", "public function rules() {\n $rule = [\n 'value' => 'bail|required',\n ];\n if ($this->getMethod() == 'POST') {\n $rule += ['type' => 'bail|required'];\n }\n return $rule;\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n case 'PUT':\n case 'PATCH': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n default:\n break;\n }\n\n return [\n //\n ];\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST':\n case 'PUT':\n case 'PATCH': {\n return [\n 'name' => 'required|string|max:255',\n 'iso_code_2' => 'required|string|size:2',\n 'iso_code_3' => 'required|string|size:3',\n ];\n }\n default:\n return [];\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n return [];\n case 'POST':\n return [\n 'name' => 'required|string',\n 'lastName' => 'string',\n 'gender' => 'boolean',\n 'avatar' => 'sometimes|mimes:jpg,png,jpeg|max:3048'\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'oldPassword' => 'required|string',\n 'newPassword' => 'required|string',\n ];\n default:\n break;\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n {\n return [\n 'validation' => [\n 'accepted'\n ]\n ];\n }\n case 'POST':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'published_at_time' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n 'unpublished_time' => [\n 'nullable',\n ],\n ];\n }\n case 'PUT':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n ];\n }\n case 'PATCH':\n {\n return [];\n }\n default:\n break;\n }\n }", "public function rules()\n {\n if (in_array($this->method(), ['PUT', 'PATCH'])) {\n $user = User::findOrFail(\\Request::input('id'))->first();\n\n array_forget($this->rules, 'email');\n $this->rules = array_add($this->rules, 'email', 'required|email|max:255|unique:users,email,' . $user->id);\n }\n\n return $this->rules;\n }", "public function rules()\n {\n $method = explode('@', $this->route()->getActionName())[1];\n return $this->get_rules_arr($method);\n }", "public function rules()\n {\n $rules = parent::rules();\n $extra_rules = [];\n $rules = array_merge($rules, $extra_rules);\n return $rules;\n }", "public function rules()\n {\n\t\tswitch($this->method()) {\n\t\t\tcase 'POST':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tcase 'PUT':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tdefault:break;\n\t\t}\n }", "public function rules()\n {\n $this->sanitize();\n return [\n 'event_id' => 'required',\n 'member_id' => 'required',\n 'guild_pts' => 'required',\n 'position' => 'required',\n 'solo_pts' => 'required',\n 'league_id' => 'required',\n 'solo_rank' => 'required',\n 'global_rank' => 'required',\n ];\n }", "public function rules()\n {\n $this->rules['email'] = ['required', 'min:6', 'max:60', 'email'];\n $this->rules['password'] = ['required', 'min:6', 'max:60'];\n\n return $this->rules;\n }", "public function getValidatorRules()\n {\n if ($validator = $this->getValidator()) {\n return $validator->getRulesForField($this->owner);\n }\n \n return [];\n }", "public function getValidationRules() : array;", "public function rules()\n {\n switch ($this->route()->getActionMethod()) {\n case 'login': {\n if ($this->request->has('access_token')) {\n return [\n 'access_token' => 'required',\n 'driver' => 'required|in:facebook,github,google',\n ];\n }\n return [\n 'email' => 'required|email',\n 'password' => 'required|min:6',\n ];\n }\n case 'register': {\n return [\n 'email' => 'required|email|unique:users,email',\n 'password' => 'required|min:6',\n 'name' => 'required',\n ];\n }\n default: return [];\n }\n }", "public function rules()\n {\n Validator::extend('mail_address_available', function($attribute, $value, $parameters, $validator){\n return MailAddressSpec::isAvailable($value);\n });\n Validator::extend('password_available', function($attribute, $value, $parameters, $validator){\n return PassWordSpec::isAvailable($value);\n });\n\n return [\n 'mail_address' => [\n 'required',\n 'mail_address_available'\n ],\n 'password' => [\n 'required',\n 'password_available',\n ],\n ];\n }", "public function rules()\n {\n switch (strtolower($this->method())) {\n case 'get':\n return $this->getMethodRules();\n case 'post':\n return $this->postMethodRules();\n case 'put':\n return $this->putMethodRules();\n case 'patch':\n return $this->patchMethodRules();\n case 'delete':\n return $this->deleteMethodRules();\n }\n }", "public function rules()\n {\n /**\n * This is the original way, expecting post params for each user value\n */\n return [\n 'firstName' => 'required|min:2|max:255',\n 'lastName' => 'required|min:2|max:255',\n 'phone' => 'min:9|max:25',\n 'gender' => 'in:M,V',\n 'dateOfBirth' => 'before:today|after:1890-01-01',\n 'email' => 'email|min:12|max:255',\n ];\n }", "public function getValidationRules(): array {\n\t\t$result = [];\n\t\t\n\t\tforeach ($this->getSections() as $section) {\n\t\t\t$result = array_merge($result, $section->getValidationRules());\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function rules()\n\t{\n\t\t$rule = [];\n\t\tif(Request::path() == 'api/utility/upload-image'){\n\t\t\t$rule = [\n\t\t\t\t'imagePath' => 'required',\n\t\t\t];\n\t\t}else if(Request::path() == 'api/utility/check-transaction'){\n\t\t\t$rule = [\n\t\t\t\t'countNumber' => 'required',\n\t\t\t];\n\t\t}\n\t\treturn $rule;\n\t}", "public function rules()\n {\n $rules = array();\n return $rules;\n }", "public function rules()\n {\n $this->setValidator($this->operation_type);\n return $this->validator;\n }", "public function rules()\n {\n switch($this->method()){\n case 'POST':\n return [\n 'name' => 'required',\n 'app_id' => 'required',\n 'account_id' => 'required',\n 'start_at' => 'required',\n 'end_at' => 'required',\n 'content' => 'required',\n ];\n break;\n default:\n return [];\n break;\n }\n\n }", "protected function get_validation_rules()\n {\n }", "public function rules()\n {\n $rules = [\n 'users' => 'required|array',\n ];\n\n foreach($this->request->get('users') as $key => $user) {\n $rules['users.'. $key . '.name'] = 'required|string|min:3|max:255';\n $rules['users.'. $key . '.phone'] = 'required|regex:/^[0-9\\+\\s]+$/|min:10|max:17';\n $rules['users.'. $key . '.country'] = 'required|string|min:2:max:3';\n }\n\n return $rules;\n }", "public function rules()\n {\n $rules = [\n 'mail_driver' => 'required',\n 'mail_name' => 'required',\n 'mail_email' => 'required',\n ];\n\n $newRules = [];\n\n if($this->mail_driver == 'smtp') {\n $newRules = [\n 'mail_host' => 'required',\n 'mail_port' => 'required|numeric',\n 'mail_username' => 'required',\n 'mail_password' => 'required',\n 'mail_encryption' => 'required',\n ];\n }\n\n return array_merge($rules, $newRules);\n }", "public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n $rules['location'] = 'required';\n $rules['end_recruit_date'] = 'required';\n $rules['time_taken'] = 'required';\n $rules['payment'] = 'required';\n $rules['objective'] = 'required';\n $rules['method_desc'] = 'required';\n $rules['health_condition'] = 'required';\n $rules['required_applicant'] = 'required|integer';\n $rules['applicant'] = 'nullable';\n $rules['datetime'] = 'required';\n\n return $rules;\n }", "public function rules()\n {\n switch($this->method()) {\n\n case 'PUT':\n {\n return [\n 'company_name' => 'required',\n 'status' => 'required|integer',\n 'notify_url' => 'required',\n 'name' => 'required'\n ];\n }\n case 'POST':\n {\n return [\n 'company_name' => 'required',\n 'status' => 'required|integer',\n 'notify_url' => 'required',\n 'name' => 'required'\n ];\n }\n default:\n return [];\n }\n\n }", "public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n\n return $rules;\n }", "public function rules()\n {\n switch(Route::currentRouteName()){\n case 'adminBinding' :\n return [\n 'order_id' => 'required|integer',\n 'money' => 'required|numeric',\n ];\n case 'adminUnbinding' :\n return [\n 'order_id' => 'required|integer',\n 'pivot_id' => 'required|integer',\n ];\n case 'adminReceiptSave' :\n case 'adminReceiptUpdate' :\n return [\n 'customer_id' => 'required',\n 'receiptcorp' => 'required',\n 'account' => 'required',\n 'account_id' => 'required',\n 'bank' => 'required',\n 'currency_id' => 'required',\n 'advance_amount' => 'required|numeric',\n 'picture' => 'required',\n 'business_type' => 'required|in:1,2,3,4,5',\n 'exchange_type' => 'required_unless:currency_id,354|in:1,2',\n 'expected_received_at' => 'required|date_format:Y-m-d',\n ];\n case 'adminReceiptExchange' :\n return [\n 'rate' => 'required|numeric',\n ];\n default :\n return [];\n }\n }", "public function rules()\n {\n $rules = [];\n $method = $this->getMethod();\n switch ($method) {\n case 'GET':\n if (Route::currentRouteName() === 'schoolActivity.getSchoolActivity') {\n $rules = [\n ];\n }\n break;\n }\n return $rules;\n }", "public function rules()\n {\n $rules = new Collection();\n\n if (!$this->user() or !$this->user()->addresses()->count()) {\n $rules = $rules->merge($this->addressRules('billing'));\n if ($this->has('different_shipping_address')) {\n $rules = $rules->merge($this->addressRules('shipping'));\n }\n\n return $rules->toArray();\n }\n\n return $rules->merge([\n 'billing_address_id' => 'required|numeric',\n 'shipping_address_id' => 'required|numeric',\n ])->toArray();\n }", "public function rules(): array\n {\n switch ($this->method()) {\n case 'POST':\n return $this->__rules() + $this->__post();\n case 'PUT':\n return $this->__rules() + $this->__put();\n default:\n return [];\n }\n }", "public function defineValidationRules()\n {\n return [];\n }", "public function rules(Request $request)\n {\n return Qc::$rules;\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'user_name' => 'nullable|string',\n 'excel' => 'nullable|file|mimes:xlsx',\n 'category' => 'required|int|in:' . implode(',', array_keys(UserMessage::$categories)),\n 'content' => 'required|string|max:500',\n 'member_status' => 'required|int|in:' . implode(',', array_keys(User::$statuses)),\n ];\n break;\n }\n }", "public function rules()\n {\n return [\n 'lead_id' => [\n 'required', 'string',\n ],\n 'api_version' => [\n 'required', 'string',\n ],\n 'form_id' => [\n 'required', 'int',\n ],\n 'campaign_id' => [\n 'required', 'int',\n ],\n 'google_key' => [\n 'required', 'string', new GoogleKeyRule,\n ],\n ];\n }" ]
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7675849", "0.76724476", "0.76665044", "0.7657698", "0.7641827", "0.7630892", "0.76293766", "0.7617708", "0.76102096", "0.7607475", "0.7602442", "0.7598732", "0.7597544", "0.75924", "0.75915384", "0.7588146", "0.7581354", "0.7555758", "0.755526", "0.7551423", "0.7546329", "0.7541439", "0.75366044", "0.75363225", "0.7530296", "0.7517988", "0.75155175", "0.7508439", "0.75069886", "0.7505724", "0.749979", "0.7495976", "0.74949056", "0.7492888", "0.7491117", "0.74901396", "0.7489651", "0.7486808", "0.7486108", "0.7479687", "0.7478561", "0.7469412", "0.74635684", "0.74619836", "0.7461325", "0.74591017", "0.7455279", "0.745352", "0.7453257", "0.7449877", "0.74486", "0.7441391", "0.7440429", "0.7435489", "0.7435326", "0.74341524", "0.7430354", "0.7429103", "0.7423808", "0.741936", "0.74152505", "0.7414828", "0.741382", "0.74126065", "0.74105227", "0.740555", "0.7404385", "0.74040926", "0.74015605", "0.73905706", "0.73837525", "0.73732615", "0.7371123", "0.7369176", "0.73619753", "0.73554605", "0.73448825", "0.7344659", "0.73427117", "0.73357755" ]
0.0
-1
your addon must extend lC_Addon / Class constructor
public function Support_Tickets() { global $lC_Language; /** * The addon type (store listing category) * valid types; payment, shipping, themes, checkout, catalog, admin, reports, connectors, inventory, other */ $this->_type = 'other'; /** * The addon class name */ $this->_code = 'Support_Tickets'; /** * The addon title used in the addons store listing */ $this->_title = $lC_Language->get('addon_catalog_supporttickets_title'); /** * The addon description used in the addons store listing */ $this->_description = $lC_Language->get('addon_catalog_supporttickets_description'); /** * The addon blurb used in the addons store listing */ $this->_blurb = $lC_Language->get('addon_catalog_supporttickets_blurb'); /** * The developers name */ $this->_author = 'ContributionCentral'; /** * The developers web address */ $this->_authorWWW = 'http://www.contributioncentral.com'; /** * The addon version */ $this->_version = '1.0.0'; /** * The Loaded 7 core compatibility version */ $this->_compatibility = '7.001.0.0'; // the addon is compatible with this core version and later /** * The addon image used in the addons store listing */ $this->_thumbnail = lc_image(DIR_WS_CATALOG . 'addons/' . $this->_code . '/images/logo.png'); /** * The addon enable/disable switch */ $this->_enabled = (defined('ADDONS_CATALOG_SUPPORT_TICKETS_STATUS') && @constant('ADDONS_CATALOG_SUPPORT_TICKETS_STATUS') == '1') ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function init() {\n\t\tadd_filter('gb_addons', array(get_class(),'gb_merchant_meta_addon'), 10, 1);\n\t}", "public function __construct() {\n\n $this->admin_notices = array();\n add_action('admin_notices', array($this, 'notices_callback'));\n if (!$this->check_dependencies()) {\n return false;\n }\n\n // Initialize Addon\n add_action('init', array($this, 'init'), 90);\n\n add_action('wp_enqueue_scripts', array($this, 'front_style_scripts'), 92);\n \n add_filter('script_loader_tag', array($this, 'add_id_to_script'), 10, 3);\n\n $this->load_files();\n }", "public function __construct()\n\t\t{\n\t\t\t// Call all standard addon functions\n\t\t\t$this->SetId(strtolower(__CLASS__));\n\t\t\t$this->LoadLanguageFile();\n\t\t\t$this->SetName(GetLang('EmailChangeName'));\n\t\t\t$this->SetImage('logo.gif');\n\n\t\t\tif ($this->HasPermission()) {\n\t\t\t\t$this->RegisterMenuItem(\n\t\t\t\t\tarray(\n\t\t\t\t\t'location'\t\t=> 'mnuCustomers',\n\t\t\t\t\t'text'\t\t\t=> GetLang('EmailChangeMenuText'),\n\t\t\t\t\t'icon'\t\t\t=> 'email_edit.gif',\n\t\t\t\t\t'description'\t=> GetLang('EmailChangeMenuDesc'),\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t}", "public function __construct()\n {\n parent::__construct(array(\n 'name' => __('Promo Feature', 'fl-builder'),\n 'description' => __('A Promotional Feature Module.', 'fl-builder'),\n 'category'\t\t=> __('Promo Feature', 'fl-builder'),\n 'dir' => PROMO_FEATURE_FL_MODULE_DIR . 'modules/promo-feature/',\n 'url' => FL_MODULE_EXAMPLES_URL . 'modules/promo-feature/',\n 'editor_export' => true, // Defaults to true and can be omitted.\n 'enabled' => true, // Defaults to true and can be omitted.\n ));\n \n /** \n * Use these methods to enqueue css and js already\n * registered or to register and enqueue your own.\n */\n // Already registered\n $this->add_css('font-awesome');\n $this->add_js('jquery-bxslider');\n \n // Register and enqueue your own\n $this->add_css('promo-feature-lib', $this->url . 'css/promo-feature-lib.css');\n $this->add_js('promo-feature-lib', $this->url . 'js/promo-feature-lib.js', array(), '', true);\n }", "function Yeelight() {\n $this->name=\"Yeelight\";\n $this->title=\"Устройства Yeelight\";\n $this->module_category=\"<#LANG_SECTION_DEVICES#>\";\n $this->checkInstalled();\n}", "function __construct() {\n $this->name=\"vk_bot\";\n $this->title=\"Вконтакте\";\n $this->module_category=\"<#LANG_SECTION_APPLICATIONS#>\";\n $this->checkInstalled();\n}", "public function __construct()\n {\n $this->extendableConstruct();\n }", "function __construct() \r\n{\r\n $this->name=\"scheduled_job\";\r\n $this->title=\"scheduled job module\";\r\n $this->module_category=\"<#LANG_SECTION_SYSTEM#>\";\r\n //$this->checkInstalled();\r\n}", "public function __construct()\n {\n parent::__construct(array(\n 'name' => __('Module Boilerplate', 'fl-builder'),\n 'description' => __('An starting point for coding new modules.', 'fl-builder'),\n 'category'\t\t=> __('Advanced Modules', 'fl-builder'),\n 'dir' => MY_MODULES_DIR . 'module-name/',\n 'url' => MY_MODULES_URL . 'module-name/',\n 'editor_export' => true, // Defaults to true and can be omitted.\n 'enabled' => true, // Defaults to true and can be omitted.\n ));\n }", "function __construct() {\n $this->plugin_dir = plugin_dir_path(__FILE__);\n $this->icon_dir = $this->plugin_dir . 'images/icons/';\n\n $this->plugin_url = plugins_url('',__FILE__);\n $this->icon_url = $this->plugin_url . 'images/icons/';\n $this->admin_page = admin_url() . 'admin.php?page=' . $this->plugin_dir;\n\n $this->base_name = plugin_basename(__FILE__);\n\n $this->prefix = ADPRESS_PREFIX;\n\n $this->_configure();\n $this->_includes();\n \n // Extra help : attach the packages\n //\n $this->wpcsl->extrahelp = new ADPRESS_Extra_Help(\n array(\n 'parent' => $this->wpcsl\n )\n ); \n }", "public function addExtAddon($addon);", "function __construct() {\n $this->name=\"myrules\";\n $this->title=\"Мои Правила\";\n $this->module_category=\"<#LANG_SECTION_OBJECTS#>\";\n $this->checkInstalled();\n}", "function __construct() {\r\n\t\t//$language =& JFactory::getLanguage();\r\n\t\t//$language->load('com_jafilia');\r\n\t\tparent::__construct();\t\t\r\n\t}", "public function __construct() {\n // extensions, you'll need to inject services using this constructor\n }", "public function __construct( $pro_addons = array() ) {\n\t\t$this->pro_addons = $pro_addons;\n\t}", "function __construct()\r\n\t{\r\n\t\tparent::__construct();\r\n\t\trequire_once 'lib/helpLib.class.php';\r\n\t}", "function __construct() {\n $widget_ops = array( 'classname' => 'wplms_dash_mymodules', 'description' => __('My Courses, Units, Quizzes, Assignments, Finished Courses widget for Dashboard', 'wplms-dashboard') );\n $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'wplms_dash_mymodules' );\n parent::__construct( 'wplms_dash_mymodules', __(' DASHBOARD : My Modules Widget', 'wplms-dashboard'), $widget_ops, $control_ops );\n }", "function __construct() {\n\t\tparent::__construct('1', $this->sMod); //this calls cls.company constructor\n\t}", "function __construct () {\n\t\t$this->active_module = $this->name;\n\t\t\n\t\tparent::__construct();\n\t}", "function __construct(){\n\t\t$this->add_hooks();\n\t}", "public function __init(){}", "function __construct(){\n\t\tadd_filter('lasso_custom_options',\t\tarray($this,'options'));\n\n\t\t// if you arent using aesop story engine then this filter isnt needed\n\t\tadd_filter('aesop_avail_components',\tarray($this, 'options') );\n\t}", "function __construct() {\n $this->name=\"AliIPRelays\";\n $this->title=\"Ali IP Реле\";\n $this->lastsate=array();\n $this->module_category=\"<#LANG_SECTION_DEVICES#>\";\n $this->checkInstalled();\n}", "function __construct() {\n\t\tparent::__construct ( \"localhost\", \"demo1\", \"demo1\", \"freecomerce\" );\n\t}", "public function __construct() {\n // be shure, classes are loaded before copie\n MLSession::gi();\n MLSetting::gi();\n MLMessage::gi();\n MLController::gi('widget_message');\n MLController::gi('widget_progressbar');\n MLHelper::gi('remote');\n MLCache::gi();\n MLShop::gi();\n MLHttp::gi();\n MLLog::gi();\n MLException::factory('update');\n try {\n MLDatabase::factory('config');\n } catch (Exception $oEx) {\n // database is not part of installer\n }\n $this->sCacheName = __CLASS__.'__updateinfo.json';\n parent::__construct();\n }", "function __construct (){\n\t\t}", "function __construct(){\n\t\t\n\t\tparent::__construct();\n\t\t\n\t}", "function __construct() {\n\t\tparent::__construct();\n\t\t\n\t}", "public function __construct(){\n\t\tparent::__construct(\n\t\t\t'JNE_Tracking',\n\t\t\t'JNE Tracking',\n\t\t\tarray( 'description' => __( 'Tambahkan widget JNE Tracking.', 'agenwebsite' ) )\n\t\t);\t\n\t}", "public function __construct() {\n\n\t\tparent::__construct(\n\t\t\tself::PLUGIN_ID,\n\t\t\tself::VERSION,\n\t\t\tarray(\n\t\t\t\t'text_domain' => 'woocommerce-pip',\n\t\t\t\t'dependencies' => array(\n\t\t\t\t\t'php_extensions' => array(\n\t\t\t\t\t\t'dom',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_milestone_hooks();\n\t}", "public function __construct() {\n parent::__construct(\n 'gymfitness_widget', // Base ID\n 'Gym Fitness Clases Widget', // Name\n array( 'description' => __( 'Texto ejemplo', 'text_domain' ), ) // Args\n );\n }", "function __construct() {\r\n parent ::__construct();\r\n }", "function __construct()\t\n\t{\r\n\t\tparent::__construct();\r\n\t}", "protected function _construct()\n\t{\n\t\t$this->setUsedModuleName('Gri_CatalogCustom');\n\t}", "public function __construct($addonId)\r\n\t{\r\n\t\t$this->_addonId = strval($addonId);\r\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\t\n\t}", "function Plugin_Base()\n\t{\n\t\t// $web may actually be null if this is a page plugin loaded from\n\t\t// the commandline execution profile.\n\t\t$this->web =& Registry::get('pronto:web');\n\t\t$this->depends = new stdClass;\n\n\t\tif(method_exists($this, '__init__')) {\n\t\t\t$this->__init__();\n\t\t}\n\t}", "function __Construct()\n {\n parent::__Construct();\n }", "function __construct() {\r\n\tparent::__construct();\r\n\r\n\t}", "function __construct(){\n\t\t\tparent::__construct();\n\t\t}", "function __construct(){\n\t\t\tparent::__construct();\n\t\t}", "function __construct() {\n\n\t\t}", "function __construct() {\n\t\t\tparent::__construct();\n\t\t\t\n\t\t}", "function __construct() {\n\t\t\tparent::__construct();\n\t\t}", "function __construct() {\n\t\t\tparent::__construct();\n\t\t}", "function __construct() \n\t\t{\n\t\t\tparent::__construct();\n\t\t}", "function __construct() {\n\n\t}", "function __construct() {\n\t\tparent::__construct();\n\t\t\t\n\t\t}", "public function __init()\n {\n\n }", "public function __construct() { \n\t\n\t\t/* Do a Require Once On the needed Libraries */\n\t\trequire_once Config::get('prefix') . '/modules/mpd/mpd.class.php';\n\n\t}", "function __construct() {\n\t\tparent::__construct();\n\t}", "function __construct() {\n\t\tparent::__construct();\n\t}", "function __construct() {\n\t\tparent::__construct();\n\t}", "function __construct() {\n\t\tparent::__construct();\n\t}", "function __construct() {\n\t\tparent::__construct();\n\t}", "function __construct() {\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\n\t}", "function __construct()\n \t{\n \t\tparent::__construct();\n\n \t}", "function __construct() \n\t{\n\t\tparent::__construct(); \n\t}", "function __construct()\r\n\t{\r\n\t\tparent::__construct();\r\n\t}", "function __construct(){\n parent::__construct();\n \t \t\n }", "public function __construct() {\n\t\tparent::__construct(self::TRANSLATION_NAME, Module::ICON);\n\t}", "public function __construct()\n {\n //to be extended by children\n }", "function __construct(){}", "function __construct(){}", "function __construct(){}", "function __construct() ;", "function __construct()\n {\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\t\tparent::__construct();\n\t}", "function __construct() {\r\n\t}", "function __construct() {\r\n\t}", "function __construct(){\r\n\t\t}", "function __construct()\n \t{\n \tparent::__construct();\n \t}", "function __construct() {\n \tparent::__construct();\n \t}", "function __construct(){\n\t\t// Call parent constructor\n\t\tparent::__construct();\n\t}", "function __construct()\r\n\t\t{\r\n\t\t\t\r\n\t\t}", "function __construct(){\n\n\t\t}", "public function __construct()\n {\n parent::__construct('BaseAta_lesson');\n }", "function __construct() {\r\n \tparent::__construct();\r\n }", "function __construct() {\n parent::__construct(\n 'flare_component_overview', // Base ID\n __('Flare Component Overview', 'flare_twentysixteen'), // Name\n array('description' => __('Lists Component stats', 'flare_twentysixteen'),) // Args\n );\n }", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}", "function __construct()\n\t{\n\t\tparent::__construct();\n\t}" ]
[ "0.6614757", "0.6492445", "0.6481465", "0.6451345", "0.64448184", "0.6427025", "0.6371265", "0.63565636", "0.63398707", "0.63217723", "0.6318632", "0.6296143", "0.6276831", "0.6187692", "0.6187594", "0.61871684", "0.61851096", "0.61723584", "0.61709464", "0.61541915", "0.6146943", "0.614509", "0.61450404", "0.61389893", "0.6129699", "0.61253417", "0.6103694", "0.6101341", "0.6064699", "0.6057973", "0.6050308", "0.60474443", "0.60351133", "0.60292566", "0.6024859", "0.6022971", "0.60207736", "0.60195065", "0.60151005", "0.6014755", "0.6014755", "0.60002565", "0.59973806", "0.59940326", "0.59940326", "0.5993763", "0.59926504", "0.5991003", "0.59836435", "0.5981538", "0.59770274", "0.59770274", "0.59770274", "0.59770274", "0.59770274", "0.59770274", "0.59695745", "0.59688705", "0.5965946", "0.59654856", "0.5960845", "0.5960692", "0.5960553", "0.5958805", "0.5958805", "0.5958805", "0.5958231", "0.5957592", "0.59561664", "0.59534055", "0.59534055", "0.595173", "0.5949209", "0.5948218", "0.5945286", "0.5944375", "0.59428144", "0.594077", "0.5940502", "0.5935817", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495", "0.593495" ]
0.0
-1
Checks to see if the addon has been installed
public function isInstalled() { return (bool)defined('ADDONS_CATALOG_SUPPORT_TICKETS_STATUS'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasInstall();", "function is_installed()\n{\n return has_account() && has_meta();\n}", "public function is_installed() {\n\n }", "public function isInstalled(){\n return true;\n }", "protected function checkIfNoConflictingExtensionIsInstalled() {}", "function sloodle_is_installed()\n {\n // Is there a Sloodle entry in the modules table?\n return sloodle_record_exists('modules', 'name', 'sloodle');\n }", "private function is_required_plugin_installed() {\n\t\trequire_once( ABSPATH . 'wp-admin/includes/plugin.php' );\n\t\t$requvired_plugin_list = array(\n\t\t\t'rest-api/plugin.php',\n\t\t\t'butterbean/butterbean.php',\n\t\t);\n\t\tforeach ( $requvired_plugin_list as $plugin ) {\n\t\t\tif ( ! is_plugin_active( $plugin ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public function hasInstalled()\n {\n return $this->installed !== null;\n }", "private function isInstalled()\n {\n /** @var \\Magento\\Framework\\App\\DeploymentConfig $deploymentConfig */\n $deploymentConfig = $this->objectManager->get(\\Magento\\Framework\\App\\DeploymentConfig::class);\n return $deploymentConfig->isAvailable();\n }", "function isInstalled($moduleName);", "function isInstalled() {\r\n return extension_loaded('memcache');\r\n }", "protected function isInstalled(){\n\t\t$dsn = Configuration::get('dsn', '');\n\t\t//echo \"dsn = \" . $dsn . \"--\";\n\t\tif ($dsn == ''){\n\t\t\t$alreadyInstalled = false;\n\t\t}\n\t\telse{\n\t\t\t$alreadyInstalled = true;\n\t\t}\n\t\treturn $alreadyInstalled;\n\t}", "abstract function is_plugin_new_install();", "function checkInstallationStatus() {\n global $configFile, $_PATHCONFIG;\n\n $result = @include_once'..'.$configFile;\n if ($result === false) {\n return false;\n } else {\n return (defined('CONTREXX_INSTALLED') && CONTREXX_INSTALLED);\n }\n }", "public function isInstalled(){\n if(self::$isInstalled === true){\n return true; \n }\n \n exec('type diatheke', $output, $returnVal);\n if($returnVal === 0){\n self::$isInstalled = true;\n return true;\n }else{\n return false;\n }\n \n }", "public function isValidInstall() {\n\t\treturn $this->install !== null;\n\t}", "public static function is_installed() {\n\t\t\n if (!file_exists(APPPATH . 'config/database.php')) {\n\t\t\treturn false;\n }\n\n if (!file_exists(APPPATH . 'cache')) {\n return false;\n }\n\n $cache = Cache::instance();\n if ($cache->get('njiandan_installed')) {\n return true;\n } else {\n return false;\n }\n }", "public static function isInstalled (\n\t)\t\t\t// <bool> TRUE if successfully installed, FALSE if not.\n\t\n\t// $plugin->isInstalled();\n\t{\n\t\t// Make sure the newly installed tables exist\n\t\t$pass1 = DatabaseAdmin::columnsExist(\"explore_area\", array(\"type\", \"explore_id\"));\n\t\t$pass2 = DatabaseAdmin::columnsExist(\"explore_creatures\", array(\"explore_zone\", \"rarity\"));\n\t\t\n\t\treturn ($pass1 and $pass2);\n\t}", "public function onInstall() {\n\t\tglobal $conf;\n\n\t\treturn true;\n\n\t}", "private function checkinstallrequirement()\r\n\t{\r\n\t\t$userCount = Core_User::getUsers(array(), '', '', '', true);\r\n\t\t\r\n\r\n\t\t\r\n\t\tif($userCount > 0)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "function _isInstalled()\n\t{\n\t\t$success = false;\n\t\t\n\t\tjimport('joomla.filesystem.file');\n\t\tif (JFile::exists(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_phplist'.DS.'defines.php')) \n\t\t{\n\t\t\t// Check the registry to see if our Tienda class has been overridden\r\n\t\t\tif ( !class_exists('Phplist') )\r\n\t\t\t\tJLoader::register( \"Phplist\", JPATH_ADMINISTRATOR.DS.\"components\".DS.\"com_phplist\".DS.\"defines.php\" );\r\n\t\t\tif ( !class_exists('PhplistConfigPhplist') )\r\n\t\t\t\tJLoader::register( \"PhplistConfigPhplist\", JPATH_ADMINISTRATOR.DS.\"components\".DS.\"com_phplist\".DS.\"defines.php\" );\r\n\t\t\t\t\n\t\t\t\n\t\t\tPhplist::load( 'PhplistHelperNewsletter', 'helpers.newsletter' );\n\t\t\tPhplist::load( 'PhplistHelperMessage', 'helpers.message' );\n\t\t\tPhplist::load( 'PhplistHelperEmail', 'helpers.email' );\n\t\t\tPhplist::load( 'PhplistHelperPhplist', 'helpers.phplist' );\n\t\t\tPhplist::load( 'PhplistHelperConfigPhplist', 'helpers.configphplist' );\n\t\t\t\n\t\t\t$success = true;\n\t\t}\n\t\t\n\t\tif ($success == true) {\n\t\t\t// Also check that DB is setup\n\t\t\t$database = PhplistHelperPhplist::getDBO();\n\t\t\tif (!isset($database->error)) \n\t\t\t{\n\t\t\t\t$success = true;\n\t\t\t}\n\t\t}\n\t\treturn $success;\n\t}", "protected static function isInstallToolSession() {}", "public function is_installed() {\n return function_exists('solr_get_version');\n }", "public static function isInstalled (\n\t)\t\t\t// <bool> TRUE if successfully installed, FALSE if not.\n\t\n\t// $plugin->isInstalled();\n\t{\n\t\t// Make sure the newly installed tables exist\n\t\treturn DatabaseAdmin::columnsExist(\"account_tracker\", array(\"uni_id\", \"site_handle\"));\n\t}", "public static function isInstalled(){\n\t\treturn !empty(\\GO::config()->db_user);\n\t}", "public function alreadyInstalled()\n {\n return file_exists(storage_path('installed'));\n }", "public function alreadyInstalled()\n {\n return file_exists(storage_path('installed'));\n }", "public function isInstalled()\n {\n return $this->getDataVersion() && $this->getOldStores();\n }", "public static function isInstalled(){\n $localxml = BP . DS . self::CLIENT_DIR . DS . self::getClientCode() . DS . 'etc'. DS . 'local.xml';\n \n if(!file_exists($localxml))\n return false;\n\n $xmlObj = new Varien_Simplexml_Config($localxml); \n $date = (string)$xmlObj->getNode('global/install/date');\n if(!strtotime($date))\n return false;\n \n return true;\n }", "public function is_installed() { \n\n $sql = \"DESCRIBE `localplay_mpd`\";\n $db_results = Dba::query($sql);\n\n return Dba::num_rows($db_results);\n\n\t}", "function accountswitcher_is_installed()\n{\n\tglobal $db;\n\n\tif ($db->field_exists(\"as_uid\", \"users\") && $db->field_exists(\"as_canswitch\", \"usergroups\") && $db->field_exists(\"as_limit\", \"usergroups\"))\n\t{\n\t\treturn true;\n\t}\n\telse\n\t{\n\t\treturn false;\n\t}\n}", "public static function isInstalled (\n\t)\t\t\t// <bool> TRUE if successfully installed, FALSE if not.\n\t\n\t// $plugin->isInstalled();\n\t{\n\t\t// Make sure the newly installed tables exist\n\t\t$pass1 = DatabaseAdmin::columnsExist(\"feed_following\", array(\"uni_id\", \"hashtag\"));\n\t\t$pass2 = DatabaseAdmin::columnsExist(\"feed_display\", array(\"uni_id\", \"feed_id\"));\n\t\t$pass3 = DatabaseAdmin::columnsExist(\"users\", array(\"last_feed_update\", \"last_feed_id\"));\n\t\t\n\t\treturn ($pass1 and $pass2 and $pass3);\n\t}", "private function isInstalled()\n\t{\n\t\tif(file_exists(ITEMDATA) && file_exists(IM_DATABASE_DIR.IM_DATABASE)){return true;}\n\t\telse return false;\n\t}", "public function hasPackageManager() {}", "public function needs_installing() {\n\t\t$settings = red_get_options();\n\n\t\tif ( $settings['database'] === '' && $this->get_old_version() === false ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function isInstalled()\n\t{\n\t\t$db = JFactory::getDBO();\n\t\t$q = sprintf(\"SELECT * FROM jos_components WHERE parent = 0 AND `option` LIKE 'com_%s' LIMIT 1\",str_replace('_','',$this->name));\n\t\t$db->execute($q);\n\t\treturn ($object = $db->loadObject()) ? $object->id : false;\n\t}", "public static function isInstalled (\n\t)\t\t\t// <bool> RETURNS TRUE on success, FALSE on failure.\n\t\n\t// $plugin->isInstalled();\n\t{\n\t\t// Make sure the newly installed tables exist\n\t\treturn DatabaseAdmin::columnsExist(\"search_entries\", array(\"entry_id\", \"entry\"));\n\t}", "public static function installToolEnableFileExists() {}", "protected function isInstalledAndEnabled()\n {\n return $this->isPluginAvailable($this->identifier)\n && Settings::get('octoshop_products_enabled', true);\n }", "public function hasUninstall();", "function is_pkg_installed($pkg_name) {\n\tglobal $g;\n\n\tif (empty($pkg_name)) {\n\t\treturn false;\n\t}\n\n\treturn pkg_call(\"info -e \" . $pkg_name, true);\n}", "function psswrdhsh_is_installed()\n{\n\tglobal $db, $settings;\n\n\tif (isset($settings['psswrd_cost'])) {\n\t\treturn true;\n\t}\n\n\tif ($db->field_exists('passwordhash', 'users')) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}", "function wrmp_is_installed()\n{\n\treturn wrmp_get_settingsgroup();\n}", "protected function checkModules()\n\t{\n\t\tif (Loader::includeModule('imconnector'))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tShowError(Loc::getMessage('IMCONNECTOR_COMPONENT_FACEBOOK_MODULE_NOT_INSTALLED_MSGVER_1'));\n\n\t\t\treturn false;\n\t\t}\n\t}", "public static function isInstalled (\n\t)\t\t\t// <bool> TRUE if successfully installed, FALSE if not.\n\t\n\t// $plugin->isInstalled();\n\t{\n\t\t// Make sure the newly installed tables exist\n\t\t$pass1 = DatabaseAdmin::columnsExist(\"activity_guests\", array(\"guest_ip\", \"date_lastVisit\"));\n\t\t$pass2 = DatabaseAdmin::columnsExist(\"activity_users\", array(\"uni_id\", \"date_lastVisit\"));\n\t\t\n\t\treturn ($pass1 and $pass2);\n\t}", "function edithistory_is_installed()\n{\n\tglobal $db;\n\tif($db->table_exists(\"edithistory\"))\n\t{\n\t\treturn true;\n\t}\n\treturn false;\n}", "public function isInstalled()\n {\n $installed = false;\n // check configuration options\n if (!$this->testDossierDeadlineConfigServer()) {\n $installed = true;\n }\n \n return $installed;\n }", "public static function isInstalled (\n\t)\t\t\t// <bool> TRUE if successfully installed, FALSE if not.\n\t\n\t// $plugin->isInstalled();\n\t{\n\t\t// Make sure the newly installed tables exist\n\t\t$pass1 = DatabaseAdmin::columnsExist(\"users\", array(\"uni_id\", \"email\", \"password\", \"referred_by\"));\n\t\t$pass2 = DatabaseAdmin::columnsExist(\"invitation_codes\", array(\"uni_id\", \"invite_code\"));\n\t\t\n\t\treturn ($pass1 and $pass2);\n\t}", "public function requireInstallation() {\n return is_object($this->installer);\n }", "protected function beforeInstall(): bool\n {\n return true;\n }", "public function effectively_installed()\n {\n return isset($this->config['oxcom_phpbbch_format_only']);\n }", "function is_initial_install() : bool {\n\t// Support for PHPUnit & direct calls to install.php.\n\t// phpcs:ignore -- Ignoring requirement for isset on $_SERVER['PHP_SELF'] and wp_unslash().\n\tif ( php_sapi_name() === 'cli' && basename( $_SERVER['PHP_SELF'] ) === 'install.php' ) {\n\t\treturn true;\n\t}\n\n\tif ( ! defined( 'WP_CLI' ) ) {\n\t\treturn false;\n\t}\n\n\t$runner = WP_CLI::get_runner();\n\n\t// Check it's the core command.\n\tif ( $runner->arguments[0] !== 'core' ) {\n\t\treturn false;\n\t}\n\n\t// If it's the is-installed command and --network is set then\n\t// allow MULTISITE to be defined.\n\tif ( $runner->arguments[1] === 'is-installed' && isset( $runner->assoc_args['network'] ) ) {\n\t\treturn false;\n\t}\n\n\t// Check it's an install related command.\n\t$commands = [ 'is-installed', 'install', 'multisite-install', 'multisite-convert' ];\n\tif ( ! in_array( $runner->arguments[1], $commands, true ) ) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}", "protected function checkIfDbalExtensionIsInstalled() {}", "public function is_plugin_installed() {\n\t\trequire_once( ABSPATH . 'wp-admin/includes/plugin.php' );\n\n\t\t$plugins = get_plugins();\n\n\t\treturn ! empty( $plugins[ self::PLUGIN_SLUG ] );\n\t}", "public function install(): bool;", "public function isAlreadyInstalled()\n {\n return $this->alreadyInstalled;\n }", "public function isInstalled($code) {\n\t\t$extension_data = array();\n\t\t$query = $this->db->query(\"SELECT * FROM \" . DB_PREFIX . \"extension WHERE `code` = '\" . $this->db->escape($code) . \"'\");\n\t\tif($query->row) {\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\t\n\t}", "function isPluginInstalled( $pPackagePluginGuid ){\n\t\treturn !is_null( $this->getInstalledPluginConfig( $pPackagePluginGuid ) );\n\t}", "public function installPlugin()\n\t{\n\t\treturn true;\t\n\t}", "public static function checkInstallToolEnableFile() {}", "public function install()\n {\n Configuration::updateValue('WI_WEATHER_ENABLED', '0');\n Configuration::updateValue('WI_WEATHER_PROVIDER', '');\n Configuration::updateValue('WI_WEATHER_KEY', '');\n Configuration::updateValue('WI_WEATHER_CITY', '');\n return parent::install() &&\n $this->registerHook('header') &&\n $this->registerHook('backOfficeHeader') &&\n $this->registerHook('displayNav') &&\n $this->registerHook('displayNav1');\n }", "private function _isExtensionInstalled($name)\n {\n if ($name == '') {\n return false;\n }\n\n $allExtensions = Mage::app()->getConfig()->getNode('modules')->asArray();\n return array_key_exists($name, $allExtensions);\n }", "protected function is_addon($addon) {\n\t\tif (array_key_exists($addon, $his->addons['function'])) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function isAppInstalled() : bool\n {\n $filename = $this->storageDir.'app/.installed';\n\n return file_exists(__DIR__.'/../'.$filename);\n }", "function rtasset_check_plugin_dependecy() {\n\n\tglobal $rtasset_plugin_check;\n\t$rtasset_plugin_check = array(\n\t\t'rtbiz' => array(\n\t\t\t'project_type' => 'all',\n\t\t\t'name' => esc_html__( 'WordPress for Business.', RT_ASSET_TEXT_DOMAIN ),\n\t\t\t'active' => class_exists( 'Rt_Biz' ),\n\t\t\t'filename' => 'index.php',\n\t\t),\n\t);\n\n\t$flag = true;\n\n\tif ( ! class_exists( 'Rt_Biz' ) || ! did_action( 'rt_biz_init' ) ) {\n\t\t$flag = false;\n\t}\n\n\tif ( ! $flag ) {\n\t\tadd_action( 'admin_enqueue_scripts', 'rtasset_plugin_check_enque_js' );\n\t\tadd_action( 'wp_ajax_rtasset_activate_plugin', 'rtasset_activate_plugin_ajax' );\n\t\tadd_action( 'admin_notices', 'rtasset_admin_notice_dependency_not_installed' );\n\t}\n\n\treturn $flag;\n}", "public function checkForManager() {\n\t\t\t// if activated return version\n\t\t\tif ( defined( 'WPFCM_VERSION' ) ) {\n\t\t\t\treturn WPFCM_VERSION;\n\t\t\t}\n\n\t\t\t// if installed return true\n\t\t\tif ( is_dir( $this->wpfcm_path ) || is_link( $this->wpfcm_path ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}", "public static function isInstalled (\n\t)\t\t\t// <bool> TRUE if successfully installed, FALSE if not.\n\t\n\t// $plugin->isInstalled();\n\t{\n\t\t// Make sure the newly installed tables exist\n\t\t$pass1 = DatabaseAdmin::columnsExist(\"forum_categories\", array(\"id\", \"title\"));\n\t\t$pass2 = DatabaseAdmin::columnsExist(\"forums\", array(\"id\", \"title\"));\n\t\t$pass3 = DatabaseAdmin::columnsExist(\"forum_settings\", array(\"uni_id\", \"signature\"));\n\t\t\n\t\treturn ($pass1 and $pass2 and $pass3);\n\t}", "public function isInstalled()\n {\n return $this->resource->getProperty('installed');\n }", "public function checkInstalled() {\n $query = $this->db->query(sprintf('SHOW TABLES LIKE \"%s\"',\n Config::getTableName('requests')));\n $request_table_result = $query->rowCount();\n\n $query = $this->db->query(sprintf('SHOW TABLES LIKE \"%s\"',\n Config::getTableName('users')));\n $user_table_result = $query->rowCount();\n\n if ($request_table_result > 0 || $user_table_result > 0) {\n return true;\n } else {\n return false;\n }\n }", "protected function isInstalled()\n\t{\n\t\treturn File::exists('public/assets/css/bootstrap.min.css') ? true : false;\n\t}", "public function isAlreadyInstalled() {\n\t\t// is not a unique package and can be\n\t\t// installed as many times as you want\n\t\tif ($this->packageInfo['isUnique'] == 0) {\n\t\t\treturn false;\n\t\t}\n\t\t// this package may only be installed\n\t\t// once (e. g. library package)\n\t\telse {\n\t\t\treturn (count($this->getDuplicates()) != 0);\n\t\t}\n\t}", "public static function installerEnabled()\n {\n /** @var \\Nwidart\\Modules\\Module $installer */\n $installer = Module::find('installer');\n if (!$installer) {\n return false;\n }\n\n return $installer->isEnabled();\n }", "function ninja_forms_three_addons_version_check(){\n// $items = wp_remote_retrieve_body( $items );\n $items = file_get_contents( dirname( __FILE__ ) . '/addons-feed.json' );\n $items = json_decode( $items, true );\n\n if( is_array( $items ) ) {\n foreach ($items as $item) {\n\n if (empty($item['plugin'])) continue;\n if (!file_exists(WP_PLUGIN_DIR . '/' . $item['plugin'])) continue;\n\n $plugin_data = get_plugin_data(WP_PLUGIN_DIR . '/' . $item['plugin'], false, true);\n\n if (!$plugin_data['Version']) continue;\n if (version_compare($plugin_data['Version'], '3', '>=')) continue;\n\n /*\n * There are non-compatible add-ons installed.\n */\n\n return FALSE;\n }\n }\n\n return TRUE;\n}", "public function exist()\n {\n return $this->_info && app()->getModule($this->_info['name']) ? TRUE : FALSE;\n }", "function ppom_pro_is_installed() {\n\t\n\t$return = false;\n\t \n if( class_exists('PPOM_PRO') ) \n $return = true;\n return $return;\n}", "private function needInstallConfirmation(string $hook): bool\n {\n return $this->repository->hookExists($hook) && !$this->force;\n }", "private function needInstallConfirmation(string $hook): bool\n {\n return $this->repository->hookExists($hook) && !$this->force;\n }", "public static function IsInstalled()\n\t{\n\t\t$sTable = MetaModel::DBGetTable(__CLASS__);\n\t\tif (CMDBSource::IsTable($sTable))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "public function install()\n {\n if (!parent::install()\n || !$this->registerHook('displayBackOfficeHeader')\n || !$this->installModuleTab('onehopsmsservice', array(\n 1 => 'Onehop SMS Services'\n ), 0)\n || !$this->installDB()\n || !$this->registerHook('orderConfirmation')\n || !$this->registerHook('postUpdateOrderStatus')\n || !$this->registerHook('actionUpdateQuantity')\n || !$this->registerHook('actionObjectProductUpdateAfter')) {\n return false;\n }\n return true;\n }", "public function isSetup()\n\t{\n\t\treturn $this->fileExists($this->rocketeer->getFolder('current'));\n\t}", "protected function is_plugin_installed($plugin)\n {\n }", "public function updateIsAvailable()\n {\n return self::INSTALLED_VERSION != $this->version;\n }", "function rtasset_admin_notice_dependency_not_installed() {\n\tif ( ! rtasset_is_plugin_installed( 'rtbiz' ) ) {\n\t\t$path = rtasset_get_path_for_plugin( 'rtbiz' );\n\t\t?>\n\t\t<div class=\"error rtasset-plugin-not-installed-error\">\n\t\t\t<p>\n\t\t\t\t<b><?php _e( 'rtBiz Assets:' ) ?></b> <?php _e( esc_attr( $path ) . ' plugin is not found on this site. Please install & activate it in order to use this plugin.', RT_ASSET_TEXT_DOMAIN ); ?>\n\t\t\t</p>\n\t\t</div>\n\t<?php\n\t} else {\n\t\tif ( rtasset_is_plugin_installed( 'rtbiz' ) && ! rtasset_is_plugin_active( 'rtbiz' ) ) {\n\t\t\t$path = rtasset_get_path_for_plugin( 'rtbiz' );\n\t\t\t$nonce = wp_create_nonce( 'rtasset_activate_plugin_' . $path );\n\t\t\t?>\n\t\t\t<div class=\"error rtasset-plugin-not-installed-error\">\n\t\t\t\t<p><b><?php _e( 'rtBiz Assets:' ) ?></b> <?php _e( 'Click' ) ?>\n\t\t\t\t\t<a href=\"#\" onclick=\"activate_rtasset_plugin('<?php echo esc_attr( $path ); ?>','rtasset_activate_plugin','<?php echo esc_attr( $nonce ); ?>')\">here</a> <?php _e( 'to activate rtBiz.', 'rtbiz' ) ?>\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t<?php\n\t\t}\n\t}\n}", "public function install()\n {\n // Install default\n if (!parent::install()) {\n return false;\n }\n\n if (!$this->registrationHook()) {\n return false;\n }\n\n if (!Configuration::updateValue('EPUL_USERNAME', '')\n || !Configuration::updateValue('EPUL_PASSWORD', '')\n ) {\n return false;\n }\n\n return true;\n }", "public function check_requirements() {\r\n\r\n\t\t// Bail early if plugin meets requirements.\r\n\t\tif ( $this->meets_requirements() ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Add a dashboard notice.\r\n\t\tadd_action( 'all_admin_notices', array( $this, 'requirements_not_met_notice' ) );\r\n\r\n\t\t// Deactivate our plugin.\r\n\t\tadd_action( 'admin_init', array( $this, 'deactivate_me' ) );\r\n\r\n\t\t// Didn't meet the requirements.\r\n\t\treturn false;\r\n\t}", "function checkAddon($plugin_path,$e_xxx)\n\t{\n\t\tif(is_readable(e_PLUGIN.$plugin_path.\"/\".$e_xxx.\".php\"))\n\t\t{\n\t\t\t$file_text = file_get_contents(e_PLUGIN.$plugin_path.\"/\".$e_xxx.\".php\");\n\t\t\tif ((substr($file_text, 0, 5) != '<'.'?php')\n\t\t\t\t\t|| ( (substr($file_text, -2, 2) != '?'.'>') && (strrpos($file_text, '?'.'>') !== FALSE) )\n\t\t\t\t\t)\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}\n\t\treturn 2;\n\t}", "public static function module_exists($name) {\n\n\t\tif ($name == 'nos' || $name == 'app') {\n\t\t\treturn true;\n\t\t}\n\n\t\t\\Config::load(APPPATH.'data'.DS.'config'.DS.'app_installed.php', 'app_installed');\n\t\t$app_installed = \\Config::get('app_installed', array());\n\n\t\tif (isset($app_installed[$name])) {\n\t\t\treturn parent::module_exists($name);\n\t\t}\n\t\treturn false;\n\t}", "public function checkFundraisingPlugin() {\r\n\t\t$module = 'ynfundraising';\r\n\t\t$modulesTable = Engine_Api::_ ()->getDbtable ( 'modules', 'core' );\r\n\t\t$mselect = $modulesTable->select ()->where ( 'enabled = ?', 1 )->where ( 'name = ?', $module );\r\n\t\t$module_result = $modulesTable->fetchRow ( $mselect );\r\n\t\tif (count ( $module_result ) > 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "function myimg_is_installed()\r\n{\r\n global $db, $mybb, $cache;\r\n \r\n\t$info = myimg_info();\r\n $installed = $cache->read(\"poeja_plugins\");\r\n if ($installed[$info['name']]) {\r\n return true;\r\n }\r\n\t\r\n if (isset($mybb->settings['myimg_id'])\r\n && isset($mybb->settings['myimg_api'])\r\n && isset($mybb->settings['myimg_authdomain'])\r\n && isset($mybb->settings['myimg_databaseurl'])\r\n && isset($mybb->settings['myimg_storagebucket'])\r\n && isset($mybb->settings['myimg_messagingsenderid'])\r\n && isset($mybb->settings['myimg_groups'])\r\n && $db->table_exists('myimg')\r\n ) {\r\n return true;\r\n }\r\n \r\n return false;\r\n}", "public function pluginInstalled( string $pluginName )\n {\n return array_key_exists( $pluginName, $this->plugins );\n }", "public static function are_behat_dependencies_installed() {\n if (!is_dir(__DIR__ . '/../../../vendor/behat')) {\n return false;\n }\n return true;\n }", "function checkInstalledPlugin($template) {\n\tglobal $communityPaths;\n\n\t$pluginName = basename($template['PluginURL']);\n\tif ( ! file_exists(\"/var/log/plugins/$pluginName\") ) return false;\n\t$dupeList = readJsonFile($communityPaths['pluginDupes']);\n\tif ( ! $dupeList[$pluginName] ) return true;\n\treturn strtolower(trim(plugin(\"pluginURL\",\"/var/log/plugins/$pluginName\"))) != strtolower(trim($template['PluginURL']));\n}", "function installCheck() {\n // Check if user table exists for check.\n $result = $this->db->exec('SELECT name FROM sqlite_master WHERE type=\"table\" AND name=\"users\"');\n if (empty($result)) {\n $this->installSetupForm();\n } else {\n echo 'The site has already been installed.';\n }\n }", "function check_capabilities() {\n\n\t\tif ( ! current_user_can( 'install_plugins' ) ) {\n\t\t\treturn;\n\t\t\t// TODO: Error message\n\t\t}\n\n\t}", "function is_package_installed($package_name) {\n\treturn (get_package_id($package_name) != -1);\n}", "protected function isInitialInstallationInProgress() {}", "function is_allowed_to_install() {\n\t\t\treturn ( $this->is_premium() || ! $this->is_org_repo_compliant() );\n\t\t}", "public function isCartHandoffInstalled()\n {\n return $this->_isExtensionInstalled('Iparcel_CartHandoff');\n }", "public function installed(): bool {\n global $media_admin;\n global $media_manager;\n\n // Handle if installed\n if(file_exists($this->filenameDb)) {\n if(!defined(\"PAW_MEDIA\")) {\n define(\"PAW_MEDIA\", basename(__DIR__));\n define(\"PAW_MEDIA_PATH\", PATH_PLUGINS . PAW_MEDIA . DS);\n define(\"PAW_MEDIA_DOMAIN\", DOMAIN_PLUGINS . PAW_MEDIA . \"/\");\n define(\"PAW_MEDIA_VERSION\", self::VERSION . \"-\" . strtolower(self::STATUS));\n }\n\n // Init MediaAdmin\n if(!class_exists(\"MediaAdmin\")) {\n require_once \"system\" . DS . \"admin.php\";\n\n if(PAW_MEDIA_PLUS) {\n require_once \"system\" . DS . \"admin-plus.php\";\n $media_admin = new MediaAdminPlus();\n } else {\n $media_admin = new MediaAdmin();\n }\n }\n\n // Init MediaManager\n if(!class_exists(\"MediaManager\")) {\n require_once \"system\" . DS . \"manager.php\";\n\n if(PAW_MEDIA_PLUS) {\n require_once \"system\" . DS . \"manager-plus.php\";\n $media_manager = new MediaManagerPlus();\n } else {\n $media_manager = new MediaManager();\n }\n }\n }\n return file_exists($this->filenameDb);\n }", "protected function isGridelementsInstalled()\n {\n $geLoaded = t3lib_extMgm::isLoaded('gridelements');\n $this->results['isGridelementsInstalled'] = $geLoaded;\n return $geLoaded;\n }" ]
[ "0.76126766", "0.7502856", "0.7411276", "0.74011153", "0.7107814", "0.70921856", "0.7085542", "0.7076996", "0.70677644", "0.70325315", "0.7031371", "0.7025608", "0.69581217", "0.6900761", "0.68851346", "0.6883645", "0.68735737", "0.68677825", "0.6846862", "0.6833649", "0.68239915", "0.682347", "0.682068", "0.68130094", "0.6813005", "0.68004644", "0.68004644", "0.6793546", "0.67542523", "0.6745707", "0.6739986", "0.6724388", "0.6724232", "0.6717422", "0.6706697", "0.67010146", "0.6675579", "0.666826", "0.664638", "0.6644481", "0.6637657", "0.66374063", "0.6619073", "0.6616311", "0.66134375", "0.6611496", "0.66036373", "0.66014314", "0.65931445", "0.6588936", "0.65673053", "0.6551742", "0.6548384", "0.6545774", "0.6539789", "0.65367424", "0.653651", "0.6530821", "0.6526139", "0.65249074", "0.650943", "0.6509386", "0.6501522", "0.6490915", "0.6489374", "0.64809334", "0.6479622", "0.64781886", "0.64723164", "0.64642656", "0.64426976", "0.64388824", "0.6432608", "0.6430949", "0.64285964", "0.6415603", "0.6415603", "0.64118737", "0.64005584", "0.63992566", "0.63876945", "0.63864374", "0.6384831", "0.6365679", "0.6361935", "0.6359462", "0.63463235", "0.63391453", "0.6337412", "0.6334427", "0.6319879", "0.6318504", "0.6308915", "0.6308536", "0.6306239", "0.6304628", "0.6300757", "0.62979513", "0.6290534", "0.6289964" ]
0.680969
25
Return the configuration parameter keys array
public function getKeys() { if (!isset($this->_keys)) { $this->_keys = array('ADDONS_CATALOG_SUPPORT_TICKETS_STATUS'); } return $this->_keys; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getKeys() {\n\t\treturn $this->config->getKeys();\n\t}", "public function getParamKeys()\n {\n $array = array(\n \"controller\" => array(\n \"def_value\" => null,\n \"allow_null\" => false,\n \"filter\" => new PHPFrame_StringFilter(array(\n \"min_length\" => 2,\n \"max_length\" => 50\n ))\n ),\n \"action\" => array(\n \"def_value\" => null,\n \"allow_null\" => true,\n \"filter\" => new PHPFrame_StringFilter(array(\n \"min_length\" => 2,\n \"max_length\" => 50\n ))\n ),\n \"params\" => array(\n \"def_value\" => null,\n \"allow_null\" => true,\n \"filter\" => new PHPFrame_StringFilter()\n )\n );\n\n return array_merge(parent::getParamKeys(), $array);\n }", "public function keys()\n {\n return array_keys($this->parameters);\n }", "public function getParamKeys()\n {\n $array = array(\n \"posts_per_page\" => array(\n \"def_value\" => 10,\n \"allow_null\" => false,\n \"filter\" => new PHPFrame_IntFilter()\n )\n );\n\n return array_merge(parent::getParamKeys(), $array);\n }", "public function getKeys(): array;", "protected function getKeys(): array\n {\n return collect([\n 'site', 'title', 'image', 'description', 'url',\n 'twitter.site', 'twitter.title', 'twitter.image', 'twitter.description',\n ])\n ->merge(array_keys($this->defaults))\n ->merge(array_keys($this->values))\n ->unique()\n ->filter(function (string $key) {\n if (count($parts = explode('.', $key)) > 1) {\n if (isset($this->extensions[$parts[0]])) {\n // Is the extension allowed?\n return $this->extensions[$parts[0]];\n }\n\n return false;\n }\n\n return true;\n })\n ->toArray();\n }", "public function getKeys();", "public function getKeys() {}", "public static function keys(): array;", "public function keys(): array;", "public function keys(): array;", "public function keys(): array;", "public function getKeys()\n {\n $private_key = $this->config->getAppValue($this->appName, \"privatekey\");\n $public_key = $this->config->getAppValue($this->appName, \"publickey\");\n\n return [$private_key, $public_key];\n }", "public function getProviderKeys(): array\n {\n return array_keys($this->config['providers']);\n }", "static function getKeys();", "protected function getKeysMap(): array\n {\n return [\n 'baz' => 'greet',\n ];\n }", "abstract public function getKeys();", "function keys() {\n return array(\n\t 'MODULE_PAYMENT_PAYMENTECH_STATUS', \n\t 'MODULE_PAYMENT_PAYMENTECH_TESTMODE', \n\t 'MODULE_PAYMENT_PAYMENTECH_MERCHANT_ID_TEST', \n\t 'MODULE_PAYMENT_PAYMENTECH_MERCHANT_ID_USD', \n\t 'MODULE_PAYMENT_PAYMENTECH_MERCHANT_ID_CAD', \n\t 'MODULE_PAYMENT_PAYMENTECH_BIN', \n\t 'MODULE_PAYMENT_PAYMENTECH_TERMINAL_ID', \n\t 'MODULE_PAYMENT_PAYMENTECH_AUTHORIZATION_TYPE', \n\t 'MODULE_PAYMENT_PAYMENTECH_USE_CVV', \n\t 'MODULE_PAYMENT_PAYMENTECH_SORT_ORDER', \n\t 'MODULE_PAYMENT_PAYMENTECH_CURRENCIES');\n }", "public function keys() : array;", "public function keys() : array;", "public function getArrayKeys()\n {\n $arrayKeys = [];\n foreach ($this->getOptionArray() as $key => $value) {\n $arrayKeys[] = $key;\n }\n return $arrayKeys;\n }", "public function getKeys(): array\n {\n return $this->keys;\n }", "public function getParameterNames ()\n {\n\n return array_keys($this->parameters);\n\n }", "public static function getKeys(): array\n {\n return array_keys(self::getConstants());\n }", "public function valueKeys(): array;", "protected function getConfigKeys() {\n $aConfigKeys = parent::getConfigKeys();\n\n if (isset($aConfigKeys['StatusCancelled'])) {\n unset($aConfigKeys['StatusCancelled']);\n }\n\n return $aConfigKeys;\n }", "public static function getPropertyKeys()\n {\n return array('id', 'title', 'pic');\n }", "public function GetAllKeys()\n {\n return array_keys($this->_keyValPairs);\n }", "public function getConfigArray() {}", "public function getNonEmptyConfigKeys()\n {\n return array('arch', 'buildId', 'shortName', 'version', 'workspaceBasedir');\n }", "public function getDefinitionKeys(): array\n {\n return array_keys($this->definitions);\n }", "public function getKeysAndValues() {\n return array(\n array('key', 'key', 'value'),\n array('KEY', 'key', 'value'),\n array('Some_key', 'some-key', 'value'),\n array('SOME-KEY', 'some-key', 'value'),\n );\n }", "function get_config_array();", "protected function getParamsDefinition()\n\t{\n\t\t$config = array(\n\t\t\t\t\t'action' => array(\n\t\t\t\t\t\t'internal_key' => 'a',\n\t\t\t\t\t\t'is_list' => false,\n\t\t\t\t\t\t'apply_translation' => false\n\t\t\t\t\t),\n\t\t\t\t\t'instance' => array(\n\t\t\t\t\t\t'internal_key' => 'i',\n\t\t\t\t\t\t'is_list' => false,\n\t\t\t\t\t\t'apply_translation' => false\n\t\t\t\t\t),\n\t\t\t\t);\n\t\treturn $config;\n\t}", "public function getKeys() {\n $keys = array();\n foreach($this->mapping as $key => $value) {\n array_push($keys, $value);\n }\n return $keys;\n }", "public function getRecordKeys()\n\t{\n\t\t$arKeys = [];\n\t\t$arKey = [];\n\t\tif (Param(\"key_m\") !== NULL) {\n\t\t\t$arKeys = Param(\"key_m\");\n\t\t\t$cnt = count($arKeys);\n\t\t} else {\n\t\t\tif (Param(\"id\") !== NULL)\n\t\t\t\t$arKeys[] = Param(\"id\");\n\t\t\telseif (IsApi() && Key(0) !== NULL)\n\t\t\t\t$arKeys[] = Key(0);\n\t\t\telseif (IsApi() && Route(2) !== NULL)\n\t\t\t\t$arKeys[] = Route(2);\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = [];\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "public function createKeyArray(){\n\t$keyArray = array();\n\tif (isset($this->id)) $keyArray[\"id\"] = $this->id;\n\tif (isset($this->codice_categoria)) $keyArray[\"codice_categoria\"] = $this->codice_categoria;\n\tif (isset($this->codice)) $keyArray[\"codice\"] = $this->codice;\n\tif (isset($this->descrizione)) $keyArray[\"descrizione\"] = $this->descrizione;\n\treturn $keyArray;\n}", "public function getFilterKeys() {\n\t\t$keyList = $this->typoScriptConfiguration->getSetting('filters', 'string');\n\t\t$keys = explode(\",\", $keyList);\n\t\tif (FALSE === is_array($keys) || sizeof($keys) < 1) {\n\t\t\treturn array();\n\t\t}\n\t\t$filterKeys = array();\n\t\tforeach ($keys as $key) {\n\t\t\t$filterKeys[] = trim($key);\n\t\t}\n\t\treturn $filterKeys;\n\t}", "public function getSettingParameters() : array\n {\n \treturn $this->settings['parameters'];\n }", "public static function keys()\n {\n return static::$keys;\n }", "public function getKeys(){\n\t\treturn $this->keys;\n\t}", "public function getKeys() {\n\t\treturn $this->getAllKeys();\n\t}", "public function getKeys()\n {\n return $this->getNames();\n }", "function keys() {\r\n $keys_list = array(\r\n 'MODULE_PAYMENT_NOCHEX_STATUS',\r\n 'MODULE_PAYMENT_NOCHEX_EMAIL_ADDRESS',\r\n 'MODULE_PAYMENT_NOCHEX_ACCOUNT_TYPE',\r\n 'MODULE_PAYMENT_NOCHEX_MERCHANT_ID',\r\n 'MODULE_PAYMENT_NOCHEX_ZONE',\r\n 'MODULE_PAYMENT_NOCHEX_PROCESSING_STATUS_ID',\r\n 'MODULE_PAYMENT_NOCHEX_ORDER_STATUS_ID',\r\n 'MODULE_PAYMENT_NOCHEX_SORT_ORDER');\r\n\r\n // nochex testing/debug options go here:\r\n $keys_list[]='MODULE_PAYMENT_NOCHEX_APC_DEBUG';\r\n $keys_list[]='MODULE_PAYMENT_NOCHEX_TESTING'; /* this is for test tools, for developers only */\r\n return $keys_list;\r\n }", "public function getKeys(): array\n {\n return array_keys($this->files);\n }", "public function getParamNames();", "public function getRecordKeys()\n\t{\n\t\t$arKeys = [];\n\t\t$arKey = [];\n\t\tif (Param(\"key_m\") !== NULL) {\n\t\t\t$arKeys = Param(\"key_m\");\n\t\t\t$cnt = count($arKeys);\n\t\t} else {\n\t\t\tif (Param(\"IncomeCode\") !== NULL)\n\t\t\t\t$arKeys[] = Param(\"IncomeCode\");\n\t\t\telseif (IsApi() && Key(0) !== NULL)\n\t\t\t\t$arKeys[] = Key(0);\n\t\t\telseif (IsApi() && Route(2) !== NULL)\n\t\t\t\t$arKeys[] = Route(2);\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = [];\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "public function getKeys(): array\n {\n $keys = [];\n $arr = $this->items;\n foreach ($arr as $key=>$value) {\n $keys[] = $key;\n }\n return $keys;\n }", "public function keys();", "public function keys();", "public function keys();", "public function keys();", "public function keys();", "public function keys();", "public function explicitKeys(): array\n {\n return $this->getAttribute('explicit_keys') ?: [];\n }", "function redmine_sso_get_setting_keys() {\n return array(\n 'url',\n 'protocol',\n 'api_key',\n 'client_id',\n 'client_secret',\n 'user_filter_mode',\n 'project_id',\n 'group_id',\n 'new_user_access',\n 'role_assigning',\n 'daily_checkup',\n 'disable_login'\n );\n}", "public function arrayKeysValues()\n {\n return array(\n\t\t\t\"FirstName\" => $this->firstName,\n\t\t\t\"LastName\" => $this->lastName,\n\t\t\t\"Gender\" => $this->gender,\n\t\t\t\"YearOfBirth\" => $this->yearOfBirth,\n \"IdGenre\" => $this->genre,\n \"IsInGroup\" => $this->group\n\t\t);\n }", "public function keys()\n {\n return array('id');\n }", "public function keys()\n {\n return array('id');\n }", "function keys() {\r\n return array('MODULE_PAYMENT_AUTHORIZENET_ECHECK_STATUS', 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_LOGIN', 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_TXNKEY', 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_MD5HASH', 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_TESTMODE', 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_AUTHORIZATION_TYPE', 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_STORE_DATA', 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_EMAIL_CUSTOMER', 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_EMAIL_MERCHANT', 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_SORT_ORDER', 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_ZONE', 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_ORDER_STATUS_ID', 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_WFSS_ENABLED', 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_DEBUGGING'); //'MODULE_PAYMENT_AUTHORIZENET_ECHECK_METHOD'\r\n }", "public function getKeys()\n {\n return $this->keys;\n }", "public function getKeys()\n {\n return $this->keys;\n }", "public function getKeys()\n {\n return $this->keys;\n }", "public function getKeys()\n {\n return $this->keys;\n }", "public function getKeys()\n {\n return $this->keys;\n }", "public function getParamsNames() : array\n {\n\n // Lvd.\n $result = [];\n\n foreach ($this->params as $order => $param) {\n $result[$order] = $param['name'];\n }\n\n return $result;\n }", "function KeyNameList ( ) { return $this->_KeyNameList; }", "public function keys()\n {\n return static::from($this->keyR);\n }", "function getUseValuesAsKeys()\n\t{\n\t\treturn $this->use_values_as_keys;\n\t}", "public function getKeys() {\n\t\treturn array_keys( $this->array );\n\t}", "protected function verificationKeys() : array {\n\n\t\t\t$ret = $this->verificationKeys;\n\n\t\t\tif ($this->usesSignatures())\n\t\t\t\t$ret[$this->signKeyName()] = $this->signKey;\n\n\t\t\treturn $ret;\n\t\t}", "public function getKeys()\n {\n $this->prepare();\n\n return $this->_keys;\n }", "public function keys()\n {\n return array('MODULE_PAYMENT_SHOPGATE_STATUS',\n 'MODULE_PAYMENT_SHOPGATE_SORT_ORDER');\n }", "public function keys(): array\n {\n\t\treturn array_keys($this->values);\n\t}", "public function toKeyArray()\r\n {\r\n $result = [];\r\n $options = $this->toOptionArray();\r\n foreach ($options as $option) {\r\n $result[$option['value']] = $option['label'];\r\n }\r\n return $result;\r\n }", "final public static function getKeys(): array\n {\n return array_keys(static::getValues());\n }", "public function getVerificationKeys(): array {\n\t\t\treturn $this->verificationKeys;\n\t\t}", "public function getParameters()\n {\n return array();\n }", "protected function getWhereKeys(){\n\t\t\t$whereKeys = \"1\";\n\t\t\tif($this->keys){\n\t\t\t\t$whereKeys = array();\n\t\t\t\tforeach ($this->keys as $key) {\n\t\t\t\t\t$whereKeys[] = \"$key = :$key\";\n\t\t\t\t}\n\t\t\t\t$whereKeys = implode(\" AND \", $whereKeys);\n\t\t\t}\n\t\t\treturn $whereKeys;\n\t\t}", "public function getExtensionKeys() {}", "public function getKeys () {\n\n return array_keys($this->values);\n\n }", "public function getSupportedKeys()\n {\n return $this->fieldConfig->getSupportedKeys();\n }", "protected function configurations(string $key): array\n {\n return $this['config'];\n }", "public function getExtensionKeys()\n {\n return array_keys($this->extensions);\n }", "public function getKeys() {\n return array_keys($this->data);\n }", "protected function getPreloadKeys() {\n\t\t$keys = array(\n\t\t\t'echo-notification-timestamp',\n\t\t\t'echo-notification-timestamp-' . EchoAttributeManager::MESSAGE,\n\t\t\t'echo-notification-timestamp-' . EchoAttributeManager::ALERT,\n\t\t\t'echo-notification-count',\n\t\t\t'echo-notification-count-' . EchoAttributeManager::MESSAGE,\n\t\t\t'echo-notification-count-' . EchoAttributeManager::ALERT,\n\t\t);\n\n\t\treturn array_filter( array_merge(\n\t\t\tarray_map( array( $this, 'getMemcKey' ), $keys ),\n\t\t\tarray_map( array( $this, 'getGlobalMemcKey' ), $keys )\n\t\t) );\n\t}", "protected function getEditableConfigNames()\n {\n return [];\n }", "public function GetAll()\n {\n return $this->_keyValPairs;\n }", "public function getKeyValuePair() : array \n { \n return [\n $this->key => $this->value\n ];\n }", "public function getParameters(): array;", "public function getAllKey();", "public function getConfigFieldsValues()\n\t{\n\t\treturn array(\n\t\t\t'clerk_public_key' => Tools::getValue('clerk_public_key', Configuration::get('CLERK_PUBLIC_KEY')),\n\t\t\t'clerk_private_key' => Tools::getValue('clerk_private_key', Configuration::get('CLERK_PRIVATE_KEY')),\n\t\t\t'clerk_import_url' => _PS_BASE_URL_,\n\t\t\t'clerk_search_enabled' => Tools::getValue('clerk_search_enabled', Configuration::get('CLERK_SEARCH_ENABLED')),\n\t\t\t'clerk_search_template' => Tools::getValue('clerk_search_template', Configuration::get('CLERK_SEARCH_TEMPLATE')),\n\t\t\t'clerk_livesearch_enabled' => Tools::getValue('clerk_livesearch_enabled', Configuration::get('CLERK_LIVESEARCH_ENABLED')),\n\t\t\t'clerk_livesearch_include_categories' => Tools::getValue('clerk_livesearch_include_categories', Configuration::get('CLERK_LIVESEARCH_INCLUDE_CATEGORIES')),\n\t\t\t'clerk_livesearch_template' => Tools::getValue('clerk_livesearch_template', Configuration::get('CLERK_LIVESEARCH_TEMPLATE')),\n\t\t\t'clerk_powerstep_enabled' => Tools::getValue('clerk_powerstep_enabled', Configuration::get('CLERK_POWERSTEP_ENABLED')),\n\t\t\t'clerk_powerstep_templates' => Tools::getValue('clerk_powerstep_templates', Configuration::get('CLERK_POWERSTEP_TEMPLATES')),\n\t\t);\n\t}", "protected function getNonVersionArrayKeys()\n {\n return array('description', 'alternative');\n }", "public function keys()\n\t{\n\t\treturn $this->toBase()->keys();\n\t}", "public function getParametersAssociative()\n {\n $parameters = $this->getParameters();\n $paramsAssoc = array();\n \n for ($i=0; $i<count($parameters); $i++)\n {\n $paramsAssoc[$parameters[$i][0]] = $parameters[$i][1];\n }\n \n return $paramsAssoc;\n }", "public function getKeys()\n {\n\t\tforeach ($this->_source as $key => $value)\n\t\t{\n\t\t\t$dummy[] = $key;\n\t\t}\n\t\treturn $dummy;\n }", "public function keys() : array\n {\n return array_keys($this->entries);\n }", "public function getAuthConfig() {\n $users = [\n 'publicKey1' => 'key1',\n 'publicKey2' => 'key2',\n ];\n\n return [\n 'no public keys exists' => [[], 'public', null],\n 'public key exists' => [$users, 'publicKey2', 'key2'],\n 'public key does not exist' => [$users, 'publicKey3', null],\n ];\n }", "public function getKeys()\n\t{\n\t\treturn array_keys($this->_d);\n\t}", "public function getKeys()\n {\n $keys = array();\n\n foreach ($this->items as $item) {\n $keys[] = $item['key'];\n }\n\n return $keys;\n }" ]
[ "0.7611184", "0.759303", "0.73930305", "0.73437774", "0.72643197", "0.7080823", "0.706536", "0.70236325", "0.70132273", "0.70029926", "0.70029926", "0.70029926", "0.69999397", "0.6987623", "0.6979179", "0.6947565", "0.6911762", "0.690559", "0.69031054", "0.69031054", "0.68902683", "0.6852552", "0.68261594", "0.6820351", "0.68166906", "0.6787394", "0.67361146", "0.6709297", "0.6692625", "0.66748565", "0.6666023", "0.66635156", "0.6653416", "0.66372395", "0.66354656", "0.663533", "0.6625824", "0.66058916", "0.65838236", "0.6564312", "0.65572536", "0.6548784", "0.6536748", "0.6532928", "0.6519558", "0.6510173", "0.6505655", "0.64987946", "0.6488121", "0.6488121", "0.6488121", "0.6488121", "0.6488121", "0.6488121", "0.6481241", "0.64760053", "0.6450676", "0.64457333", "0.64457333", "0.6433395", "0.6428336", "0.6428336", "0.6428336", "0.6428336", "0.6428336", "0.6413396", "0.64014363", "0.63932914", "0.63813484", "0.63806146", "0.63805085", "0.63701886", "0.6368872", "0.6363465", "0.6359255", "0.6356508", "0.63285786", "0.6326705", "0.63239807", "0.6315944", "0.63021624", "0.63002306", "0.62994486", "0.6296097", "0.6287854", "0.6281437", "0.62796104", "0.6260386", "0.62542665", "0.6248783", "0.62418485", "0.62404764", "0.62352276", "0.62317127", "0.62257284", "0.621324", "0.62092316", "0.62071973", "0.62009346", "0.620081" ]
0.6750259
26
Creates a new N1qlQuery instance directly from a N1QL DML.
static public function fromString($str) { $res = new CouchbaseN1qlQuery(); $res->options['statement'] = $str; $res->adhoc = true; return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function newQuery();", "protected function newInstance($query)\n {\n if ($this->common) {\n $class = \"Aura\\SqlQuery\\Common\";\n } else {\n $class = \"Aura\\SqlQuery\\\\{$this->db}\";\n }\n\n $class .= \"\\\\{$query}\";\n\n return new $class(\n $this->getQuoter(),\n $this->newSeqBindPrefix()\n );\n }", "public function createQuery()\n {\n $query = &atknew(\"atk.db.atk{$this->m_current_clusternode->m_type}query\");\n $query->m_db = $this;\n return $query;\n }", "public function newQuery()\n {\n return new self($this->connection, $this->grammar, $this->getProcessor());\n }", "public static function NewQuery()\r\n\t{\r\n\t\treturn new QSqlQuery();\r\n\t}", "public function newQuery()\n {\n return new self($this->connection, $this->processor);\n }", "public static function create($sql) {\n\t\treturn new SQLBuilder($sql);\n\t}", "abstract public function createFromSql($sql);", "public function newQuery()\n {\n return new Builder($this->connection, $this->grammar, $this->processor);\n }", "public function newQuery();", "public function from($sql);", "public function newQuery()\n {\n $datasource = $this->getDatasource();\n\n $query = new Builder($datasource, $datasource->getPostProcessor());\n\n return $query->setModel($this);\n }", "public function newQuery()\n {\n return new Builder($this->connection, $this->processor);\n }", "public function createQuery(): QueryInterface;", "public function createQuery ($dql = '')\r\n {\r\n $query = parent::createQuery($dql);\r\n\r\n $lifetime = 3600;\r\n // $parameters = $query->getParameters();\r\n // $resultCacheId = md5(HOSTNAME . $query->getDQL() . serialize($parameters));\r\n $query->useResultCache(true, $lifetime)\r\n ->useQueryCache(true)\r\n ->setCacheable(true)\r\n ->setCacheMode(\\Doctrine\\ORM\\Cache::MODE_NORMAL)\r\n ->setLifetime($lifetime);\r\n\r\n return $query;\r\n }", "public static function query(int $type, string $sql) : Query\n {\n return new Query($type, $sql);\n }", "public function newQuery(): Builder\n {\n return new static($this->connection);\n }", "public function newQuery() {\n return new Builder($this->connection);\n }", "function createQuery() ;", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", "public function query($query)\n {\n $stmt = new Doctrine_Adapter_Statement_Oracle($this, $query, $this->executeMode);\n $stmt->execute();\n\n return $stmt;\n }", "public function createCommand(?string $sql = null, array $params = []): Command;", "protected function createDerivedQuery(): Query\n {\n return (clone $this->baseQuery);\n }", "public function createQuery() {\n\t\treturn $this->luceneQueryFactory->create($this);\n\t}", "public function newQuery()\n {\n $builder = $this->newAlfrescoBuilder($this->getConnection());\n $builder->setModel($this);\n return $builder;\n }", "public function createQuery() {\n\t\treturn $this->queryFactory->create($this->objectType);\n\t}", "public function query($sql)\n {\n $sql = $this->table_prefix($sql);\n\n if (self::$config[$this->_db_name]['safe_test'])\n {\n $sql = $this->filter_sql($sql);\n }\n\n $this->_sql = $sql;\n $this->_type = $this->get_type($this->_sql);\n // Save the query for debugging\n\n return $this;\n }", "function newStatement($sql, $params = array()) {\n if (preg_match('~^\\s*\\(*\\s*(\\w+).*$~m', $sql, $match)) {\n $statement = $match[1];\n } else {\n $statement = $sql;\n }\n\n if (defined('SHOW_DEBUG_INFORMATION')) {\n\t \t$GLOBALS['test_counter']++;\n\t \t$GLOBALS['sql_list'] .= \"<br/>{$sql}\";\n }\n switch(strtoupper($statement)) {\n case 'SELECT':\n case 'SHOW':\n case 'DESCRIBE':\n case 'EXPLAIN':\n if (!class_exists('MySqlQueryStatement')) {\n require_once('db/drivers/mysql/MySqlQueryStatement.class.php');\n }\n return new MySqlQueryStatement($this, $sql);\n case 'INSERT':\n if (!class_exists('MySqlInsertStatement')) {\n require_once('db/drivers/mysql/MySqlInsertStatement.class.php');\n }\n return new MySqlInsertStatement($this, $sql);\n case 'UPDATE':\n case 'DELETE':\n if (!class_exists('MySqlManipulationStatement')) {\n require_once('db/drivers/mysql/MySqlManipulationStatement.class.php'); \n }\n return new MySqlManipulationStatement($this, $sql);\n default:\n if (!class_exists('MySqlStatement')) {\n require_once('db/drivers/mysql/MySqlStatement.class.php'); \n }\n \n return new MySqlStatement($this, $sql);\n }\n }", "public function loadQuery($queryId, int $status): Query;", "public function query($sql)\n {\n try {\n return new Statement($this->pdo->query($sql));\n } catch (PDOException $e) {\n throw new Exception\\PDO($e->getMessage(), $e->getCode(), $e);\n }\n }", "public function dsql($defaults = []): Query\n {\n $class = $this->queryClass;\n $q = new $class($defaults);\n $q->connection = $this;\n\n return $q;\n }", "public static function execute($sql) {\n if (static ::$show_sql) {\n echo $sql . \"\\n\\n\";\n }\n $query = NimbleRecord::execute($sql, true);\n return $query;\n }", "public function from($name=NULL, $quot='`'){\r\n\t\t$this->check_table_name($name);\r\n\t\t$this->parent->add_sql(' FROM '.$quot.$name.$quot);\r\n\t\treturn new object_sql_query(NULL, $this->parent);\r\n\t}", "public static function query_set($query = NULL)\n\t{\n\t\treturn new Database_SQLite_DML_Set($query);\n\t}", "public function createQuery(): QueryInterface\n {\n /** @var QueryInterface $query */\n $query = $this->objectManager->get(QueryInterface::class);\n $query->setConfiguration($this->getConfiguration());\n\n return $query;\n }", "abstract protected function initQuery(Query $query): Query;", "protected function newBaseQueryBuilder()\n {\n $connection = $this->getConnection();\n\n return $connection->query();\n }", "public function newQuery()\n {\n $builder = new Builder($this->newBaseQueryBuilder());\n\n $builder->setModel($this);\n\n return $builder;\n }", "abstract public function query($sql);", "public function initQuery(Model $m) : Query\n {\n $d = $m->persistence_data['dsql'] = $this->dsql();\n\n if ($m->table) {\n if (isset($m->table_alias)) {\n $d->table($m->table, $m->table_alias);\n } else {\n $d->table($m->table);\n }\n }\n\n return $d;\n }", "private function createNativeQuery(string $sql = null): NativeQuery\n {\n $query = new NativeQuery($this->entityManagerMock);\n if (null !== $sql) {\n $query->setSQL($sql);\n }\n\n return $query;\n }", "private function sqlwrapper($sqlraw) {\n\n switch ($this->raw_query['dml']) {\n case \"SELECT\":\n self::$sql = $this->raw_query['dml'];\n self::$sql .= $sqlraw['select'];\n self::$sql .= \" FROM \";\n self::$sql .= self::$table;\n self::$sql .= isset($sqlraw['join']) ? $sqlraw['join'] : '';\n self::$sql .= isset($sqlraw['where']) ? $sqlraw['where'] : '';\n self::$sql .= isset($sqlraw['groupby']) ? $sqlraw['groupby'] : '';\n self::$sql .= isset($sqlraw['orderby']) ? $sqlraw['orderby'] : '';\n \n if (isset($this->raw_query['limit'])) {\n self::$sql .= \" \" . $this->raw_query['limit'] . \" \";\n }\n break;\n\n case \"UPDATE\":\n self::$sql = $this->raw_query['dml'] . \" \";\n self::$sql .= self::$table;\n self::$sql .= isset($sqlraw['join']) ? $sqlraw['join'] : '';\n self::$sql .= $sqlraw['update'];\n self::$sql .= isset($sqlraw['where']) ? $sqlraw['where'] : '';\n self::$sql .= isset($sqlraw['groupby']) ? $sqlraw['groupby'] : '';\n self::$sql .= isset($sqlraw['orderby']) ? $sqlraw['orderby'] : '';\n break;\n\n case \"INSERT\":\n self::$sql = $this->raw_query['dml'] . \" INTO \";\n self::$sql .= self::$table;\n self::$sql .= $sqlraw['insert'];\n break;\n\n case \"DELETE\":\n $this->sql = $this->raw_query['dml'];\n self::$sql .= \" FROM \";\n self::$sql .= self::$table;\n self::$sql .= $sqlraw['where'];\n break;\n }\n\n return $this;\n }", "public static function query($sql);", "public function addNewInsertQuery(){\r\n $query = new SQLInsertQuery();\r\n $this->add($query);\r\n return $query;\r\n }", "protected function newBaseQueryBuilder()\n {\n $conn = $this->getConnection();\n\n $grammar = $conn->getQueryGrammar();\n\n return new QueryBuilder($conn, $grammar, $conn->getPostProcessor());\n }", "public function query($query) {\n\t\t$args = func_get_args();\n\t\t\n\t\tif (count($args) == 1) {\n\t\t\t$sql = $query;\n\t\t} else {\n\t\t\t$sql = call_user_func_array(array($this, 'quoteInto'), $args);\n\t\t}\n\t\t\n\t\t$statement = $this->zendDb()->query($sql);\n\n\t\tif (!is_object($statement)) {\n\t\t\tthrow new SimpleDb_Exception('Failed to execute query: '.$query);\n\t\t}\n\n\t\treturn $statement;\n\t}", "public function newEloquentBuilder($query);", "private function query($sql)\n {\n $statement = $this->getPDO()->query($sql);\n if ($statement === false) {\n throw new Q4MException(sprintf(\"Failed to execute query. sql=[%s], message=[%s]\", $sql, implode(\",\", $this->getPDO()->errorInfo())));\n }\n\n return $statement;\n }", "protected function newBaseQueryBuilder()\n {\n return $this->getConnection()->query();\n }", "public function createInsertSql(): \\Hx\\Db\\Sql\\InsertInterface;", "public function query(string $sql): StatementInterface\n {\n try {\n $stmt = $this->pdo->query($sql);\n return new Statement($stmt);\n } catch (PDOException $ex) {\n throw Exception::execute(__METHOD__, $ex);\n }\n }", "public function prepare(): Query\n {\n if (null === $this->dbc) {\n throw new RuntimeException('No database connection set for query.');\n }\n $this->statement = $this->dbc->getStatement($this->generateQuery());\n return $this;\n }", "public function query(string ... $rowset): Query {\n $class = $this->getCorrectType('Query');\n $query = new $class($this->pdo);\n $query->from(...$rowset);\n return $query;\n }", "public function createSelectSql(): \\Hx\\Db\\Sql\\SelectInterface;", "public static function query()\n {\n return (new static)->newQuery();\n }", "public static function query()\n {\n return (new static)->newQuery();\n }", "public function prepare(string $sql): Statement\n {\n $connection = $this->getWrappedConnection();\n\n try {\n $statement = $connection->prepare($sql);\n } catch (Driver\\Exception $e) {\n throw $this->convertExceptionDuringQuery($e, $sql);\n }\n\n return new Statement($this, $statement, $sql);\n }", "public function createCommand()\r\n\t{\r\n\t\t$obj = new DbCommand($this,$this->dbms);\r\n\t\treturn $obj;\r\n\t}", "public function query($sql) {\r\n\t\t$sql = trim($sql);\r\n\t\t$resource = pg_query($this->connection, $sql)\r\n\t\t\tor $this->triggerError(pg_error(), $sql);\r\n\t\tif (strpos($sql, 'INSERT') === 0) {\r\n\t\t\t$this->insertId = pg_insert_id($this->connection);\r\n\t\t}\r\n\t\treturn $resource;\r\n\t}", "public function createExpression()\n {\n return new ezcQueryExpressionPgsql( $this );\n }", "public function getQueryBuilder(): SQLQueryBuilder;", "public function query($sql);", "public function query($sql);", "public function query($sql);", "public function query($sql);", "public function newModelQuery();", "public function queryBuilder($sql){\n\t $$this->con->query($sql); \n\t \n }", "public function query($query)\n {\n $this->using_bql = true;\n preg_match_all(\"/SELECT[\\n|\\r|\\s|\\t]{0,}(.*?)[\\n|\\r|\\s|\\t]{0,}FROM[\\n|\\r|\\s|\\t]{0,}bins[\\n|\\r|\\s]{0,}WHERE[\\n|\\r|\\s|\\t]{0,}bin[\\n|\\r|\\s|\\t]{0,}=[\\n|\\r|\\s|\\t]{0,}(.*)/i\", $query, $matches);\n $fields = $matches[1][0];\n $bin = $matches[2][0];\n $this->bindbql_bin = $bin;\n if ($fields !== '*') {\n $this->fields = explode(',', str_replace(' ', '', $fields));\n }\n return $this;\n }", "private function setQuery($sql){\n $this->isStatement = false;\n return $this->sqli->query($sql);\n }", "public function newQueryBuilder()\n {\n return new Builder($this->config);\n }", "protected function query() {\n\t\treturn new Query($this);\n\t}", "public function query($statement);", "public function createQueryBuilder()\n {\n return new QueryBuilder($this->db);\n }", "public function insert()\n {\n return new QueryProxy('insert', $this);\n }", "public function execute(): Statement;", "protected function newBaseQueryBuilder()\n {\n $connection = $this->getConnection();\n\n return new QueryBuilder($connection, $connection->getPostProcessor());\n }", "public function hydrate( $sql, Array $params = NULL) {\n\n\t\tif( \"select\" != trim(strtolower(substr($sql,0,6))) ){\n\t\t\tthrow new Exception( \"Only SELECT statements can be passed to Kwerry::hydrate().\" );\n\t\t}\n\n\t\tif( is_null( $params ) ) {\n\t\t\t$params = array();\n\t\t}\n\n\t\t$this->_recordset = $this->getConnection()->runSQL( $sql, $params );\n\t\t$this->isDirty( false );\n\n\t\treturn $this;\n\t}", "public function newQuery($query = null)\n {\n if ($query === null) {\n $query = app()->make($this->modelClass)->newQuery();\n }\n\n if ($this->trashed === 'only') {\n $query->onlyTrashed();\n } elseif ($this->trashed === 'with') {\n $query->withTrashed();\n }\n\n if (!empty($this->with)) {\n $query->with($this->with);\n }\n\n if (!empty($this->select)) {\n $query->select($this->select);\n }\n\n return $query;\n }", "protected function newBaseQueryBuilder()\n {\n $connection = $this->getConnection();\n\n return new QueryBuilder(\n $connection,\n $connection->getQueryGrammar(),\n $connection->getPostProcessor()\n );\n }", "public static function build(?DAO $dbc = null): Query\n {\n return new Query($dbc);\n }", "public function query()\n {\n return new QueryBuilder(\n $this, $this->getQueryGrammar(), $this->getPostProcessor()\n );\n }", "public function query()\n {\n return new QueryBuilder(\n $this, $this->getQueryGrammar(), $this->getPostProcessor()\n );\n }", "protected function newBaseQueryBuilder()\n {\n $connection = $this->getConnection();\n\n return new QueryBuilder(\n $connection, $connection->getQueryGrammar(), $connection->getPostProcessor()\n );\n }", "protected function newBaseQueryBuilder()\n {\n $connection = $this->getConnection();\n\n return new QueryBuilder(\n $connection, $connection->getQueryGrammar(), $connection->getPostProcessor()\n );\n }", "public function query(string $sql);", "public function sql($sql)\n {\n $this->query['sql'] = $sql;\n return $this;\n }", "protected function createQuery()\n {\n return \\PropelQuery::from($this->class);\n }", "public function createCommand($sql = null, $params = [])\n {\n $command = new Command([\n 'db' => $this,\n 'sql' => $sql,\n ]);\n\n return $command->bindValues($params);\n }", "public static function copyFrom(Query $otherQuery)\n {\n $self = new static($otherQuery->table);\n $self->alias = $otherQuery->alias;\n $self->joins = $otherQuery->joins;\n $self->where = $otherQuery->where;\n $self->orderings = $otherQuery->orderings;\n $self->offset = $otherQuery->offset;\n $self->limit = $otherQuery->limit;\n\n return $self;\n }", "public function createUpdateSql(): \\Hx\\Db\\Sql\\UpdateInterface;", "public function query($sql) {\n\t\t$query = $sql;\n\t\t$params = array();\n\t\tif ($sql instanceof Sql) {\n\t\t\t$params = $sql->getParams();\n\t\t\t$query = $sql->getSql();\n\t\t}\n\t\ttry {\n\t\t\t$info = $this->getDebugTrace();\n\t\t\t$info['type'] = 'QueryLog';\n\t\t\t$this->logQuery($sql, $info);\n\t\t\t$statement = $this->prepare($query);\n\t\t\t$this->bind($statement, $params);\n\t\t\t$statement->execute();\n\t\t} catch(\\PDOException $e) {\n\t\t\t$info = $this->getDebugTrace();\n\t\t\t$info['message'] = $e->getMessage();\n\t\t\t$info['level'] = \\Sy\\Debug\\Log::ERR;\n\t\t\t$this->logQuery($sql, $info);\n\t\t\tthrow new QueryException($e->getMessage());\n\t\t}\n\t\treturn $statement;\n\t}", "public function newQuery()\n {\n return $this->model->newQueryWithoutScopes();\n }", "public function query()\n\t{\n\t\treturn new Builder(\n\t\t\t$this, $this->getQueryGrammar(), $this->getPostProcessor()\n\t\t);\n\t}", "public function __construct($sql, PDOStatement $statement) {\n parent::__construct($sql);\n\n $startsWith = strtoupper(substr($sql, 0, 5));\n if ($startsWith != 'SELEC' && $startsWith != 'SHOW ') {\n return;\n }\n\n $this->initializeResult($statement);\n }", "public static function fromQuery(Query $query, string $class): static\n {\n return new static($class, $query);\n }", "public function getStatement($query){\n return $this->pdo->query($query);\n }", "public function newQueryWithoutScopes()\n {\n $builder = $this->newBuilder();\n\n // Once we have the query builders, we will set the model instances so the\n // builder can easily access any information it may need from the model\n // while it is constructing and executing various queries against it.\n return $builder->setModel($this);\n }" ]
[ "0.59979695", "0.59060246", "0.5843446", "0.58426446", "0.5802822", "0.57149905", "0.56897825", "0.56851864", "0.554644", "0.5507051", "0.5439355", "0.54346615", "0.54201585", "0.5399523", "0.5395473", "0.5366484", "0.5330676", "0.5316641", "0.5298395", "0.51259476", "0.512571", "0.512571", "0.512571", "0.5118784", "0.51038325", "0.50644934", "0.5047361", "0.5045196", "0.5042413", "0.49852914", "0.4983587", "0.49816528", "0.4974111", "0.4968112", "0.49628353", "0.49477974", "0.49434236", "0.49313977", "0.49168333", "0.48886782", "0.488615", "0.4876544", "0.48708308", "0.48690137", "0.48165035", "0.48141202", "0.481385", "0.4807763", "0.48029304", "0.48014528", "0.47959858", "0.4790414", "0.47898728", "0.47856218", "0.47808456", "0.47409734", "0.47365725", "0.47351134", "0.47351134", "0.47155538", "0.47085363", "0.47022906", "0.46991903", "0.46939328", "0.4679", "0.4679", "0.4679", "0.4679", "0.46704483", "0.46629557", "0.4660507", "0.4657524", "0.46563956", "0.4654684", "0.46506816", "0.4647825", "0.4639389", "0.46364656", "0.46308753", "0.4624702", "0.46234322", "0.46188003", "0.46183053", "0.46145308", "0.46145308", "0.46131518", "0.46131518", "0.46078843", "0.46077648", "0.46045876", "0.4603755", "0.4599309", "0.45957658", "0.45954365", "0.45897108", "0.45821187", "0.45806137", "0.45741403", "0.45696014", "0.4564938" ]
0.5340676
16
Supply positional parameters for query. $query = CouchbaseN1qlQuery::fromString('SELECT FROM `travelsample` WHERE city=$1 LIMIT $2'); $query>positionalParams(array('New York', 3));
public function positionalParams($params) { $this->options['args'] = $params; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function query($q, $params = []);", "abstract function query($queryString, $page = 1);", "abstract public function Query( $query, $params );", "public function buildIndexParameters(array $arguments) {\n\t\tif (isset($arguments['query']) && $arguments['query'] instanceof \\TYPO3\\Flow\\Persistence\\QueryInterface) {\n\t\t\t$query = $arguments['query'];\n\n\t\t\tif (isset($arguments['count']) && $arguments['count'] === TRUE) {\n\t\t\t\t$parameters = array();\n\t\t\t} else {\n\t\t\t\t$parameters = array(\n\t\t\t\t\t'include_docs' => TRUE\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif ($query->getLimit() !== NULL) {\n\t\t\t\t$parameters['limit'] = $query->getLimit();\n\t\t\t}\n\t\t\tif ($query->getOffset() !== NULL) {\n\t\t\t\t$parameters['skip'] = $query->getOffset();\n\t\t\t}\n\n\t\t\t$constraint = $query->getConstraint();\n\t\t\tif ($constraint !== NULL) {\n\t\t\t\t$parameters['q'] = $this->buildStatementForConstraint($constraint);\n\t\t\t} else {\n\t\t\t\tthrow new \\TYPO3\\Flow\\Exception('Call without constraint is not supported by CouchDB QueryIndex', 1299689063);\n\t\t\t}\n\n\t\t\treturn $parameters;\n\t\t} else {\n\t\t\tthrow new \\TYPO3\\Flow\\Exception('query argument for QueryIndex must implement QueryInterface', 1299689063);\n\t\t}\n\t}", "function pq($arg1, $context = null) {\n $args = func_get_args();\n return call_user_func_array(\n array('phpQuery', 'pq'),\n $args\n );\n}", "function pq($arg1, $context = null) {\n\t$args = func_get_args();\n\treturn call_user_func_array(\n\t\tarray('phpQuery', 'pq'),\n\t\t$args\n\t);\n}", "public function startQuery($sql, array $params = null, array $types = null)\n {\n }", "abstract protected function initQuery(): void;", "public function query($params)\n {\n if(is_string($params)) {\n $params_tmp = $params;\n $params = array('command' => $params,);\n }\n\n $methodData = &$GLOBALS[$this->def_method];\n /* 获取传递的page num参数 */\n if(!isset($params['pageNum'])) {\n /* 获取get中的p参数 */\n if(isset($methodData[$this->defPageNumKey]))\n $params['pageNum'] = $methodData[$this->defPageNumKey];\n /* 没有则获取默认值 */\n if(!isset($params['pageNum']))\n $params['pageNum'] = $this->pageNum;\n }\n\n /* 获取传递的page size参数 */\n if(!isset($params['pageSize'])) {\n /* 获取cookie中的默认page size */\n if(isset(Yii::app()->request->cookies['defps'])) {\n $params['pageSize'] = Yii::app()->request->cookies['defps']->value;\n }\n /* 没值则获取get参数 */\n if(!isset($params['pageSize']) && isset($methodData[$this->defPageSizeKey]))\n $params['pageSize'] = $methodData[$this->defPageSizeKey];\n /* 都没值,则获取默认值 */\n if(!isset($params['pageSize']))\n $params['pageSize'] = $this->pageSize;\n }\n\n // 如果有限定分页条目重新设定分页\n if ($this->_isFixedPageSize) {\n $params['pageSize'] = $this->pageSize;\n }\n\n $this->pageNum = abs((int)$params['pageNum']);\n if($this->pageNum < 1) $this->pageNum = 1;\n $this->pageSize = abs((int)$params['pageSize']);\n if($this->pageSize < self::MIN_pageSize || $this->pageSize > self::MAX_pageSize) $this->pageSize = 1;\n\n $records = array(); $recordCount = null;\n $offset = ($this->pageNum-1) * $this->pageSize;\n /* query by sql */\n if($params['command']) {\n if(is_string($params['command'])) {\n $params['command'] .= \" LIMIT {$offset},\".$this->pageSize;\n $params['command'] = Yii::app()->db->createCommand($params['command']);\n }\n if(!isset($params['countCommand']))\n $params['countCommand'] = 'SELECT FOUND_ROWS()';\n if(is_string($params['countCommand']))\n $params['countCommand'] = Yii::app()->db->createCommand($params['countCommand']);\n $records = $params['command']->query()->readAll();\n $recordCount = $params['countCommand']->queryScalar();\n // 异常当pageNum大于总页的情况处理\n if ($recordCount && empty($records) && is_string($params_tmp)) {\n $this->pageNum = ceil($recordCount/$this->pageSize);\n $offset = ($this->pageNum-1) * $this->pageSize;\n $params['command'] = $params_tmp;\n $params['command'] .= \" LIMIT {$offset},\".$this->pageSize;\n $params['command'] = Yii::app()->db->createCommand($params['command']);\n $records = $params['command']->query()->readAll();\n }\n }else{\n $model = $params['model'];\n $criteria = $params['criteria'];\n $criteria->offset = ($this->pageNum-1) * $this->pageSize;\n $criteria->limit = $this->pageSize;\n $records = $model->findAll($criteria);\n\n $criteria->limit = $criteria->offset = -1;\n $recordCount = $model->count($criteria);\n }\n\n $this->recordCount = $recordCount;\n $this->pageCount = ceil($recordCount/$this->pageSize);\n\n return $records;\n }", "function createQuery() ;", "public function prepare(\n string $query,\n array $globalArgs = null\n ): QueryInterface;", "abstract public function query();", "public function query($sql, $arguments = array());", "protected function query($sql, array $params)\n {\n }", "public function queryIterator($sql,$params=array());", "public function query($initialCoordinate, $finalCoordinate);", "function &SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$arg3=false,$secs2cache=0) \r\n\t {\r\n\t $offsetStr = ($offset >= 0) ? \" OFFSET $offset\" : '';\r\n\t $limitStr = ($nrows >= 0) ? \" LIMIT $nrows\" : '';\r\n\t return $secs2cache ?\r\n\t $this->CacheExecute($secs2cache,$sql.\"$limitStr$offsetStr\",$inputarr,$arg3)\r\n\t :\r\n\t $this->Execute($sql.\"$limitStr$offsetStr\",$inputarr,$arg3);\r\n\t }", "function Query ($QueryString);", "public function testQueryArgumentsIndexed()\n {\n $client = (new ClientTest())->testInstantiation();\n\n $query = $client->query(\n 'INSERT INTO typish (_0_int, _1_float, _2_decimal, _3_varchar, _4_blob, _5_date, _6_datetime, _7_nvarchar)\n VALUES (?, ?, ?, ?, ?, ?, ?, ?)',\n [\n 'name' => __FUNCTION__,\n 'validate_params' => static::VALIDATE_PARAMS,\n 'sql_minify' => true,\n 'affected_rows' => true,\n ]\n );\n\n $types = 'idssbsss';\n\n $time = new Time();\n $args = [\n 0,\n 1.0,\n '2.0',\n 'arguments indexed',\n sprintf(\"%08d\", decbin(4)),\n $time->ISODate,\n '' . $time,\n 'n varchar',\n ];\n TestHelper::queryPrepareLogOnError($query, $types, $args);\n $result = TestHelper::logOnError('query execute', $query, 'execute');\n static::assertInstanceOf(MsSqlResult::class, $result);\n static::assertSame(1, $result->affectedRows());\n\n $args[1] = 1.1;\n $args[2] = '2.2';\n $result = TestHelper::logOnError('query execute', $query, 'execute');\n static::assertInstanceOf(MsSqlResult::class, $result);\n static::assertSame(1, $result->affectedRows());\n }", "function build_table_search_params($index, $type, $query, $from = 0, $size = 1000) {\n $params = [];\n $params['index'] = $index;\n $params['type'] = $type;\n // sort the table by the first field by default\n //$sort_field = array_keys($field_content_pairs)[0];\n $params['body'] = [\n 'query' => $query,\n ];\n\n if (isset($_GET['order'])) {\n $sort_field = $_GET['order'];\n $sort_direction = isset($_GET['sort']) && $_GET['sort'] === 'desc' ? 'desc' : 'asc';\n $params['body']['sort'] = [\n $sort_field . \".raw\" => $sort_direction,\n ];\n }\n\n $params['from'] = $from;\n $params['size'] = $size;\n return $params;\n}", "public function query($sql, $limit = 0, $start = 0)\n {\n }", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", "public abstract function get_query();", "public function executeQuery($query, array $params = array());", "public function query($rawQuery, $param = array()){\n \n $stmt = $this->conn->prepare($rawQuery);\n \n $this->setParams($stmt, $param);\n \n $stmt->execute();\n \n return $stmt;\n \n}", "function getPagingInfo($sql,$input_arguments=null);", "protected function _parameterizeSQL($query) {\n\t\t\t$queryChunks = explode($this->keys['start'], $query);\n\t\t\t$parameterValues = array();\n\n\t\t\tforeach ($queryChunks as $key => $queryChunk) {\n\t\t\t\tif (\n\t\t\t\t\t($position = strpos($queryChunk, $this->keys['stop'])) !== false &&\n\t\t\t\t\t$queryChunk = str_replace($this->keys['stop'], '?', $queryChunk)\n\t\t\t\t) {\n\t\t\t\t\t$queryChunks[$key] = str_replace(($between = substr($queryChunk, 0, $position)), '', $queryChunk);\n\t\t\t\t\t$parameterValues[] = $between;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$response = array(\n\t\t\t\t'parameterizedQuery' => implode('', $queryChunks),\n\t\t\t\t'parameterizedValues' => $parameterValues\n\t\t\t);\n\t\t\treturn $response;\n\t\t}", "function _execQ($query, $param_strs, $params){\n $db = MySQLConnect::get_instance();\n $res = $db->prepare($query);\n \t array_unshift($params, $param_strs);\n call_user_func_array(array($res, 'bind_param'), $params);\n $bool = $res->execute();\n $sonuclar = $res->get_result();\n $rows = $sonuclar->fetch_all(MYSQLI_ASSOC);\n return $rows;\n }", "private function InitializeQueryParameters()\n\t{\n\t\t$this->queryParameters = array(\n\t\t\t'project' => 'p',\n\t\t\t'action' => 'a',\n\t\t\t'hash' => 'h',\n\t\t\t'hashbase' => 'hb',\n\t\t\t'hashparent' => 'hp',\n\t\t\t'graphtype' => 'g',\n\t\t\t'output' => 'o',\n\t\t\t'format' => 'fmt',\n\t\t\t'tag' => 't',\n\t\t\t'page' => 'pg',\n\t\t\t'search' => 's',\n\t\t\t'searchtype' => 'st',\n\t\t\t'diffmode' => 'd',\n\t\t\t'file' => 'f',\n\t\t\t'mark' => 'm',\n\t\t\t'prefix' => 'prefix',\n\t\t\t'sort' => 'sort',\n\t\t\t'lang' => 'l',\n\t\t\t'redirect' => 'redirect'\n\t\t);\n\t}", "public function query($q = null);", "public function fetch_multi($s_where=null,$i_start=null,$i_limit=null)\r\n {\r\n \r\n }", "function query() {}", "abstract public function findWithSort($query_string, $sortField, $reverse=false, $start=null, $rows=null, $extra=array());", "public function customQueryWithParams($query) {\n $query[\"_flat\"] = true;\n $statement = Connect::ArangoBindStatementHandler(\n $this->_arangoConnect, $query\n );\n \n // execute the statement\n $cursor = $statement->execute();\n $cursor = $cursor->getAll();\n return isset($cursor[0])?$cursor[0]:[];\n }", "public function execute()\n\t{\n\t\t$this->arrParams = func_get_args();\n\n\t\tif (is_array($this->arrParams[0]))\n\t\t{\n\t\t\t$this->arrParams = array_values($this->arrParams[0]);\n\t\t}\n\n\t\treturn $this->query();\n\t}", "public function query() {\n if (isset($this->value, $this->definition['trovequery'])) {\n $this->query->args['method'] = $this->definition['trovequery']['method'];\n if (is_array($this->value)) {\n $this->query->add_where($this->options['group'], $this->definition['trovequery']['arg'], implode($this->value, ','));\n }\n else {\n $this->query->add_where($this->options['group'], $this->definition['trovequery']['arg'], $this->value);\n }\n }\n }", "public function setParameters($params): QueryBuilderInterface;", "private function take($param) {\n if (isset($param['start']) && isset($param['offset'])) {\n $this->sql .= 'LIMIT ' . $param['start'] . ', ' . $param['offset'];\n }\n }", "public static function query();", "abstract public function newQuery();", "public function doQuery($sql, $params);", "abstract protected function getQuery();", "static public function fromString($str) {\n $res = new CouchbaseN1qlQuery();\n $res->options['statement'] = $str;\n $res->adhoc = true;\n return $res;\n }", "abstract public function prepare($params=array());", "public function customQueryAllWithParams($query) {\n $query[\"_flat\"] = true;\n $statement = Connect::ArangoBindStatementHandler(\n $this->_arangoConnect, $query\n );\n \n // execute the statement\n $cursor = $statement->execute();\n $cursor = $cursor->getAll();\n return $cursor;\n }", "abstract function query( $p_filter_input );", "function query($args, $operator = 'AND')\n {\n }", "public function search($params = []);", "public function queryAll($campos=\"*\",$criterio=\"\");", "public function makeQueryString($params)\n {\n $query = array();\n $paramsReturn = array();\n foreach($params as $p => $param)\n {\n if($param > 0 && $param != '' && !is_array($param))\n {\n $paramName = str_replace('.', '_', $p);\n $query[] = $p.' = :'.$paramName;\n $paramsReturn[$paramName] = $param;\n }\n elseif(is_array($param))\n {\n if($param['type'] == 'BETWEEN' && $param['to'] > $param['from'])\n {\n $paramNameFrom = str_replace('.', '_', $p.'_from');\n $paramNameTo = str_replace('.', '_', $p.'_to');\n $query[] = $p.' BETWEEN :'.$paramNameFrom.' AND :'.$paramNameTo;\n $paramsReturn[$paramNameFrom] = $param['from'];\n $paramsReturn[$paramNameTo] = $param['to'];\n }\n }\n }\n $queryString = implode(' AND ', $query);\n return array('query' => $queryString, 'params' => $paramsReturn);\n }", "public function queryParams();", "public function queryArray($sql, $params = array());", "public function query();", "public function query();", "public function query();", "public function query()\n {\n $args = func_get_args();\n\n $this->connect(atkDb::getQueryMode($args[0]));\n\n return call_user_method_array('query',$this->m_current_clusternode, $args);\n }", "function pdo_query(PDO $pdo, $query_string, $query_inputs = null)\n {\n $query_inputs = is_array($query_inputs) ? $query_inputs : array_slice(func_get_args(), 2);\n $prep = $pdo->prepare($query_string);\n $prep->execute((array) $query_inputs);\n return $prep;\n }", "function setQueryString($params=NULL){\r\n\t\tif(!$params) $params = array();\r\n\t\t$this->params = $params;\r\n\t\t$this->queryString = http_build_query($params,'','&');\r\n\t\t//Debug::show(\"Setting the query as :$\".$this->queryString);\r\n\t\t//if($params['q']== '') Debug::backTrace();\r\n\t}", "function dtquery($param)\n\t{\n\t\treturn $this->db->query(\"SELECT SQL_CALC_FOUND_ROWS * FROM \".$this->table.\" $param[where] $param[order] $param[limit]\");\n\t}", "public abstract function getQuery();", "function runQueryWithParams ($q, $p) {\r\n $dbSettings = getDBsettings();\r\n $db = \"mysql:host=\" . $dbSettings['DBserver'] . \";dbname=\" . $dbSettings['DBname'] . \";port=\" . $dbSettings['DBport'];\r\n $pdo = new PDO($db, $dbSettings['DBuser'], $dbSettings['DBpass']);\r\n //prepare the SQL string\r\n $stmt = $pdo->prepare($q);\r\n //execute the SQL\r\n $stmt->execute(array($p));\r\n //close the conention\r\n $pdo = null;\r\n //return the result\r\n return $stmt;\r\n}", "function interpolateQuery($query, $params) {\n\t\t $keys = array();\n\t\t # build a regular expression for each parameter\n\t\t foreach ($params as $key => $value) {\n\t\t if (is_string($key)) {\n\t\t $keys[] = '/:'.$key.'/';\n\t\t } else {\n\t\t $keys[] = '/[?]/';\n\t\t }\n\t\t }\n\t\t $query = preg_replace($keys, $params, $query, 1, $count);\n\t\t return $query;\n\t\t}", "public function simpleQuery($command,$collection,$query=NULL,$data=NULL,$param=NULL){\n $jdata=array();\n switch (strtolower($command)) {\n case 'by-example-skiplist':{\n $jdata['collection']=$collection;\n if($query!=NULL) $jdata['example']=$query; else return (array(\"error\"=>\"Example Query is required\"));\n if(isset($param['index'])) $jdata['index']=$param['index']; else return (array(\"error\"=>\"Index must be exist of SkipList type\"));\n if(isset($param['skip'])) $jada['skip']=$param['skip'];\n if(isset($param['limit']) and isset($param['skip'])) $jada['limit']=$param['limit'];\n break;\n }\n case 'by-condition-skiplist':{\n $jdata['collection']=$collection;\n if($query!=NULL) $jdata['condition']=$query; else return (array(\"error\"=>\"Condition Query is required\"));\n if(isset($param['index'])) $jdata['index']=$param['index']; else return (array(\"error\"=>\"Index must be exist of SkipList type\"));\n if(isset($param['skip'])) $jada['skip']=$param['skip'];\n if(isset($param['limit']) and isset($param['skip'])) $jada['limit']=$param['limit'];\n break;\n }\n case 'all':{\n $jdata['collection']=$collection;\n if(isset($param['skip'])) $jada['skip']=$param['skip'];\n if(isset($param['limit']) and isset($param['skip'])) $jada['limit']=$param['limit'];\n break;\n }\n case 'any':{\n $jdata['collection']=$collection;\n break;\n }\n case 'near':{\n $jdata['collection']=$collection;\n if(isset($param['latitude'])) $jdata['latitude']=$para['latitude']; else return (array(\"error\"=>\"Latitude is required\"));\n if(isset($param['longitude'])) $jdata['longitude']=$param['longitude']; else return (array(\"error\"=>\"Longitude is required\"));\n if(isset($param['distance'])) $jada['distance']=$param['distance'];\n if(isset($param['skip'])) $jada['skip']=$param['skip'];\n if(isset($param['limit']) and isset($param['skip'])) $jada['limit']=$param['limit'];\n if(isset($param['geo'])) $jada['geo']=$param['geo'];\n break;\n }\n case 'within':{\n $jdata['collection']=$collection;\n if(isset($param['latitude'])) $jdata['latitude']=$para['latitude']; else return (array(\"error\"=>\"Latitude is required\"));\n if(isset($param['longitude'])) $jdata['longitude']=$param['longitude']; else return (array(\"error\"=>\"Longitude is required\"));\n if(isset($param['radius'])) $jdata['radius']=$param['radius']; else return (array(\"error\"=>\"Radius is required\"));\n if(isset($param['distance'])) $jada['distance']=$param['distance'];\n if(isset($param['skip'])) $jada['skip']=$param['skip'];\n if(isset($param['limit']) and isset($param['skip'])) $jada['limit']=$param['limit'];\n if(isset($param['geo'])) $jada['geo']=$param['geo'];\n break;\n }\n case 'within-rectangle':{\n $jdata['collection']=$collection;\n if(isset($param['latitude1'])) $jdata['latitude1']=$para['latitude1']; else return (array(\"error\"=>\"Latitude is required\"));\n if(isset($param['longitude1'])) $jdata['longitude1']=$param['longitude1']; else return (array(\"error\"=>\"Longitude is required\"));\n if(isset($param['latitude2'])) $jdata['latitude2']=$para['latitude2']; else return (array(\"error\"=>\"Latitude is required\"));\n if(isset($param['longitude2'])) $jdata['longitude2']=$param['longitude2']; else return (array(\"error\"=>\"Longitude is required\"));\n if(isset($param['skip'])) $jada['skip']=$param['skip'];\n if(isset($param['limit']) and isset($param['skip'])) $jada['limit']=$param['limit'];\n if(isset($param['geo'])) $jada['geo']=$param['geo'];\n break;\n }\n case 'fulltext':{\n $jdata['collection']=$collection;\n if($query!=NULL) $jdata['query']=$query; else return (array(\"error\"=>\"Query is required\"));\n if(isset($param['attribute'])) $jdata['attribute']=$para['attribute']; else return (array(\"error\"=>\"Attribute is required\"));\n if(isset($param['index'])) $jdata['index']=$param['index']; else return (array(\"error\"=>\"Index is required\"));\n if(isset($param['skip'])) $jada['skip']=$param['skip'];\n if(isset($param['limit']) and isset($param['skip'])) $jada['limit']=$param['limit'];\n break;\n }\n case 'by-example':{\n $jdata['collection']=$collection;\n if($query!=NULL) $jdata['example']=$query; else return (array(\"error\"=>\"Example Query is required\"));\n if(isset($param['skip'])) $jada['skip']=$param['skip'];\n if(isset($param['limit']) and isset($param['skip'])) $jada['limit']=$param['limit'];\n break;\n }\n case 'first-example':{\n $jdata['collection']=$collection;\n if($query!=NULL) $jdata['example']=$query; else return (array(\"error\"=>\"Example Query is required\"));\n break;\n }\n case 'first':{\n $jdata['collection']=$collection;\n if(isset($param['count'])) $jdata['count']=$param['count']; else $jdata['count']=1;\n break;\n }\n case 'last':{\n $jdata['collection']=$collection;\n if(isset($param['count'])) $jdata['count']=$param['count'];\n break;\n }\n case 'range':{\n $jdata['collection']=$collection;\n if(isset($param['attribute'])) $jdata['attribute']=$para['attribute']; else return (array(\"error\"=>\"Attribute is required\"));\n if(isset($param['left'])) $jdata['left']=$param['left']; else return (array(\"error\"=>\"Left is required\"));\n if(isset($param['right'])) $jdata['rigt']=$para['right']; else return (array(\"error\"=>\"Right is required\"));\n if(isset($param['closed'])) $jdata['closed']=$param['closed']; else return (array(\"error\"=>\"Closed is required\"));\n if(isset($param['skip'])) $jada['skip']=$param['skip'];\n if(isset($param['limit']) and isset($param['skip'])) $jada['limit']=$param['limit'];\n if(isset($param['geo'])) $jada['geo']=$param['geo'];\n break;\n }\n case 'remove-by-example':{\n $jdata['collection']=$collection;\n $option=array();\n if($query!=NULL) $jdata['example']=$query; else return (array(\"error\"=>\"Example Query is required\"));\n if(isset($param['waitForSync'])) $option['waitForSync']=$param['waitForSync'];\n if(isset($param['limit'])) $option['limit']=$param['limit'];\n $jdata['options']=$option;\n break;\n }\n case 'replace-by-example':{\n $jdata['collection']=$collection;\n $option=array();\n if($query!=NULL) $jdata['example']=$query; else return (array(\"error\"=>\"Example Query is required\"));\n if($data!=NULL) $jdata['newValue']=$data; else return (array(\"error\"=>\"NewValue is required\"));\n if(isset($param['waitForSync'])) $option['waitForSync']=$param['waitForSync'];\n if(isset($param['limit'])) $option['limit']=$param['limit'];\n $jdata['options']=$option;\n break;\n }\n case 'update-by-example':{\n $jdata['collection']=$collection;\n $option=array();\n if($query!=NULL) $jdata['example']=$query; else return (array(\"error\"=>\"Example Query is required\"));\n if($data!=NULL) $jdata['newValue']=$data; else return (array(\"error\"=>\"NewValue is required\"));\n if(isset($param['keepNull'])) $option['keepNull']=$param['keepNull'];\n if(isset($param['waitForSync'])) $option['waitForSync']=$param['waitForSync'];\n if(isset($param['limit'])) $option['limit']=$param['limit'];\n $jdata['options']=$option;\n break;\n }\n case 'remove-by-keys': case 'lookup-by-keys':{\n if($query!=NULL) $jdata['keys']=$query; else return (array(\"error\"=>\"Example Query is required\"));\n $jdata['collection']=$collection;\n break;\n }\n }\n $response=$this->put('simple/'.strtolower($command),$jdata,'json');\n $cursor=$response->json;\n if(isset($cursor['count'])) $this->count=$cursor['count'];\n if(isset($cursor['count'])) if($cursor['hasMore']==true){ $this->cursor_id=$cursor['id']; $this->hasMore=$cursor['hasMore']; }\n return $response;\n }", "public function query($query);", "public function query($query);", "public function query($query);", "public abstract function get_query_args();", "public function __construct(AbstractQuery $query, ParserResult $parserResult, array $queryComponents);", "function getPagedStatement($sql,$page,$items_per_page);", "abstract public function queryRaw($q);", "function query($sql,$calculateRows=false,$fastHint=false);", "public function query($sql,$params=[]){ // (when no condition , we pass by it , sinon we pass by action methode then by it)\n $this->_error=false;\n $this->_query=$this->_pdo->prepare($sql);\n if($this->_query){\n $x=1;\n if(count($params)>0)\n {\n foreach($params as $param){\n // ;\n $this->_query->bindValue($x++,$param);\n }\n }\n\n \n if($this->_query->execute()){\n $this->_results=$this->_query->fetchALL(PDO::FETCH_OBJ);\n $this->_count=$this->_query->rowCount();\n \n }else{\n $this->_error=true;\n }\n }\n return $this; //chainning\n }", "public function buildQueryString();", "private static function genFetchByParamsQuery($param_map) {\n $fully_qualified_table_name = static::getFullyQualifiedTableName();\n $query = \"SELECT * FROM {$fully_qualified_table_name} WHERE \";\n foreach ($param_map as $p_name => $p_value) {\n $transformed_key_name = self::transformForPreparedStatement($p_name);\n $query .= $p_name .'=' . $transformed_key_name;\n $query .= ' AND ';\n }\n \n $query = substr($query, 0, -5);\n return $query;\n }", "function ibase_param_info($query, $param_number)\n{\n}", "function query($arg_str) // call this function from other units and configs\n\t\t{\n\t\t\t$query_segments = explode(';',$arg_str);\n\n\t\t\t\n\t\t\t$response = [];\n\t\t\tforeach($query_segments as $q_str) \n\t\t\t{\t\t\t\t\n\t\t\t\t$matches=[];\n\t\t\t\tif(preg_match_all( \"#^(.+)\\:\\:([[:alnum:]]+)$#Uis\",$q_str,$matches))\n\t\t\t\t{\n\t\t\t\t\t$q_str = $matches[1][0];\n\t\t\t\t\t$_q_id = $matches[2][0];\n\t\t\t\t}\n\n\t\t\t\t$_res_obj = $this->get_obj_by_route($q_str);\n\t\t\t\t\n\t\t\t\t$_new_query_obj=[\n\t\t\t\t\t'query'=>$q_str,\n\t\t\t\t\t'response'=>$_res_obj,\n\t\t\t\t];\n\t\t\t\tif(isset($_q_id))\n\t\t\t\t{\n\t\t\t\t\t$_new_query_obj['key']=$_q_id;\n\t\t\t\t\tunset($_q_id);\n\t\t\t\t}\n\n\t\t\t\t$response[]=$_new_query_obj;\n\t\t\t}\n\t\t\treturn $response;\n\t\t}", "public function cpRange($tablename,$columnname,$startvalue,$endvalue=0,$param=0) {\n $sql= \"SELECT * FROM $tablename WHERE $columnname BETWEEN '$startvalue'\";\n if($endvalue!=0){\n \n $sql.= \" AND '$endvalue'\";}\n if($param!=0)\n {\n $d_id_key= key($param);\n $d_value= $param[$d_id_key];\n $sql.= \" AND $d_id_key>0\"; \n }\n elseif ($param=0) {\n $d_id_key= key($param);\n $d_value= $param[$d_id_key];\n $sql.= \" AND $d_id_key=0\"; \n \n }\n//print_r($sql);\n $sth = $this->dbh->prepare($sql);\n $sth->execute();\n $result = $sth->fetchAll(PDO::FETCH_ASSOC);\n \n return $result;\n}", "abstract public function call($query, $config);", "public function prepare_QuickSearch($params)\n\t{\n\t\t$xml_string = \"strSearch=\".$params['strSearch'];\n\t\treturn $xml_string;\t\t\t\t\n\t}", "public function execute( Array $params = array() ) {\r\n \r\n // check if the query type is known / allowed\r\n try {\r\n if ( $this -> query_type == false ) {\r\n throw new Exception('query type not recognised');\r\n }\r\n }\r\n catch ( Exception $exc ) {\r\n $this -> errors['query'] = $exc -> getMessage();\r\n return $this -> respond( false);\r\n }\r\n\r\n try {\r\n if ( $this -> verifyParams( $params ) == false ) {\r\n throw new Exception('parameters supplied do not match query requirements');\r\n }\r\n }\r\n catch ( Exception $exc ) {\r\n $this -> errors['parameter'] = $exc -> getMessage();\r\n return $this -> respond( false);\r\n }\r\n\r\n try{\r\n $statement = $this -> connection -> prepare($this -> query_string);\r\n if ( !$statement ) {\r\n throw new Exception( $this -> connection -> error );\r\n }\r\n if ( count($params) > 0 ) {\r\n // build the parameter string, eg iii\r\n $param_string = $this -> buildParamString( $params );\r\n $statement -> bind_param( $param_string, ...$params );\r\n }\r\n if ( $statement -> execute() == false ) {\r\n throw new Exception('query' . $this -> connection -> error );\r\n }\r\n }\r\n catch( Exception $exc ) {\r\n $this -> errors['number'] = $this -> connection -> errno;\r\n $this -> errors['execution'] = $exc -> getMessage();\r\n return $this -> respond( false);\r\n }\r\n // get the result if the query is select\r\n \r\n if ( $this -> query_type == 'select' ) {\r\n $result = $statement -> get_result();\r\n // add result to $this -> data\r\n while( $row = $result -> fetch_assoc() ) {\r\n array_push( $this -> data, $row );\r\n }\r\n }\r\n return $this -> respond( true );\r\n }", "public function getPositionForMultipleSelect($param) {\n $companyId = $this->requester->getCompanyId();\n $tenantId = $this->requester->getTenantId();\n return DB::table('positions')\n ->select(\n 'id',\n 'name',\n 'code'\n )\n ->where([\n ['company_id', $companyId],\n ['tenant_id', $tenantId]\n ])\n ->whereNotIn('code', $param)\n ->get();\n }", "public function interpolateQuery( $params) {\n $query = $this->prepare->queryString;\n $keys = array();\n $values = $params;\n # build a regular expression for each parameter\n foreach ($params as $key => $value) {\n if (is_string($key)) {\n $keys[] = '/:'.$key.'/';\n } else {\n $keys[] = '/[?]/';\n }\n if (is_array($value))\n $values[$key] = implode(',', $value);\n if (is_null($value))\n $values[$key] = 'NULL';\n }\n // Walk the array to see if we can add single-quotes to strings\n array_walk($values, create_function('&$v, $k', 'if (!is_numeric($v) && $v!=\"NULL\") $v = \"\\'\".$v.\"\\'\";'));\n $query = preg_replace($keys, $values, $query, 1, $count);\n return $query;\n }", "private function BuildQuery(array $params, $fields)\n {\n $reserved = ['ORDER by', 'LIMIT', 'GROUP by'];\n $sql = \"SELECT $fields FROM $this->table WHERE \";\n $detailedParams = '';\n $paramsArray = [];\n $enableWhere = 0;\n foreach($params as $k=>$v)\n {\n if(!in_array($k, $reserved))\n {\n if(strstr($v, 'IN('))\n {\n $sql .= $k .' '.$v.' AND ';\n $enableWhere = 1;\n }\n else\n {\n $sql .= $k.' = :'.$k.' AND ';\n $paramsArray[':'.$k] = $v;\n }\n }\n else\n {\n $detailedParams .= $k.' '.$v.' ';\n }\n }\n if(substr($sql, -5) === ' AND ')\n {\n $sql = substr($sql, 0,-5);\n }\n $sql .= ' '.$detailedParams;\n\n if (!count($paramsArray) && !$enableWhere)\n $sql = str_replace('WHERE', '', $sql);\n // Pagination implementation\n if($this->pageCount)\n {\n $countQuery = preg_replace('/SELECT(.+?)FROM/is', 'SELECT COUNT(*) FROM',$sql);\n $CQ = $this->Adapter->prepare($countQuery);\n $CQ->execute($params);\n IS::app()->set('queryCount', $CQ->fetchColumn() );\n $sql .= 'LIMIT '.(int)$this->currentPage.', '.(int)$this->pageCount;\n }\n return ['sql' => $sql, 'params' => $paramsArray];\n }", "public function prepare(QueryParams $params): void\n {\n $this->prepareQuery($params, self::BUILD_FOR_DATA);\n }", "public function query($statement, array $parameters = null);", "function prepare( $query = '' )\n\t{\n\t\tif( $query == '' )\n\t\t\treturn '';\n\t\t\n\t\t//get the arguments from this method\n\t\t$args = func_get_args();\n\t\tarray_shift($args); //remove $query\n\t\t\n\t\t//If the first optional argument\n\t\t//is an array, then assume that that\n\t\t//is the supplied list of arguments\n\t\tif( is_array($args[0]) )\n\t\t\t$args = $args[0];\n\t\t\n\t\t//loop through each argument\n\t\tforeach( $args as $arg )\n\t\t{\n\t\t\t//escape any '%' in the args\n\t\t\t$arg = str_replace( '%', '\\\\\\\\%', $arg );\n\t\t\t\n\t\t\t//select each argument from left to right, one at a time, retrieving the symbol, and offset\n\t\t\tif( preg_match( '/[^\\\\\\\\]%([0-9]*?)([dfst])/is', $query, $match, PREG_OFFSET_CAPTURE ) <= 0 )\n\t\t\t\tbreak;\n\n\t\t\t//grab the info from the match\n\t\t\t$tag\t= strval($match[0][0]);\t\t//The full match (eg %3t )\n\t\t\t$param \t= intval($match[1][0]);\t\t//The number (if any) after the % (ie 4)\n\t\t\t$offset = intval($match[0][1]+1); \t//The location of these chars from the front of the string (ie 15) (+1 to offset escape slash)\n\t\t\t$symbol = strval($match[2][0]); \t//The particular parameter defined in the query (ie t)\n\t\t\n\t\t\t//prepare the argument for insertion\n\t\t\tswitch( strtolower( $symbol ) )\n\t\t\t{\n\t\t\t\t//parse as an int\n\t\t\t\tcase 'd':\n\t\t\t\tcase 'i':\n\t\t\t\t\t$arg = intval( $arg );\n\t\t\t\t\tbreak;\n\t\t\t\t//parse as a float\n\t\t\t\tcase 'f':\n\t\t\t\t\t//if an argument was given, round the float off to that set\n\t\t\t\t\tif( $param > 0 )\n\t\t\t\t\t\t$arg = round( $arg, $param );\n\t\t\t\t\t\t\n\t\t\t\t\t$arg = floatval( $arg );\n\t\t\t\t\tbreak;\n\t\t\t\tcase 't':\n\t\t\t\t\t//if prefix is an array, then param becomes the index\n\t\t\t\t\tif( is_array( $this->prefix ) )\n\t\t\t\t\t\t$prefix = $this->prefix[$param];\n\t\t\t\t\telse\n\t\t\t\t\t\t$prefix = $this->prefix;\n\t\t\t\t\n\t\t\t\t\t$arg = ($prefix).(strval( $arg ));\n\t\t\t\t\tbreak;\n\t\t\t\t//parse as a string\n\t\t\t\tcase 's':\n\t\t\t\tdefault:\n\t\t\t\t\tif( get_magic_quotes_gpc() )\n\t\t\t\t\t\t$arg = stripslashes( $arg );\n\t\t\t\t\t\n\t\t\t\t\t//sanitize with MySQL sanitation function\n\t\t\t\t\t$arg = \"'\".mysql_real_escape_string($arg, $this->link).\"'\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//remove the '%%%' string from the query\n\t\t\t$query = substr_replace( $query, '', $offset, strlen($tag)-1 );\n\t\t\t\n\t\t\t//insert the sanitized value in its place\n\t\t\t$query = substr_replace( $query, $arg, $offset, 0 );\n\t\t}\n\t\t\n\t\t//unescape the % symbols\n\t\t$query = str_replace( '\\\\\\\\%', '%', $query );\n\t\t\n\t\treturn $query;\n\t}", "public function query ($sqlString);", "static function getParams(){\n\t\t\tif (count(self::$query)>0){\n\t\t\t\t//comprovar si és parell\n\t\t\t\tif((count(self::$query)%2)==0){\n\t\t\t\t\tCoder::codear(self::$query);\n\t\t\t\t\treturn self::$query;\n\n\t\t\t\t}else{\n\t\t\t\t\techo 'ERROR in params array';\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}", "abstract public function execute($params = array(), $input = null);", "public function addQueryParams($params) {}", "public function bindQuery($entity)\n {\n $entity = getClass($entity);\n // ??? param \n $name = $entity->name;\n $email = idem;\n $localisation = idem;\n \n $query = getQuery($name, $email, $localisation);\n \n $nbr_param = 3; // ??? count or param in list ?\n \n for( $i =0; $i < $nbr_param; $i++)\n {\n $query->bindParam(':nbr_param[0]', $entity->name);\n }\n $query->execute();\n }", "public function addQueryData(array $query_params) {}", "function query_prepared($query, $param=null)\n { \n $stmt = $this->dbh->prepare($query);\n foreach ($param as $index => $val) {\n // indexing start from 1 in Sqlite3 statement\n if (is_array($val)) {\n $ok = $stmt->bindParam($index + 1, $val);\n } else {\n $ok = $stmt->bindValue($index + 1, $val, $this->getArgType($val));\n }\n \n if (!$ok) {\n $type_error = \"Unable to bind param: $val\";\n $this->register_error($type_error);\n $this->show_errors ? trigger_error($type_error,E_USER_WARNING) : null;\n return false;\n }\n }\n \n return $stmt->execute();\n }", "public function foobar()\n {\n $result = $this->db->query_params(\"SELECT field FROM table WHERE something = $1 and something_else = $2\", array('foo', 'bar'));\n // use $result as usual ...\n }", "function perform_query_three_param($query, $types, $paramOne, $paramTwo, $paramThree) {\n //If the query is null we throw and exeption\n if ($query == null) {\n throw new Exception(\"Error query null\");\n }\n $stmt = mysqli_prepare($this->database_manager, $query);\n if ($stmt) {\n $stmt->bind_param($types, $paramOne, $paramTwo, $paramThree);\n $stmt->execute();\n $results = $stmt->get_result();\n $stmt->free_result();\n $stmt->close();\n return $results;\n }\n else {\n throw new Exception(mysqli_error($this->database_manager));\n }\n }", "public function testQueryParse_Named()\n {\n \t$result = $this->conn->query(\"SELECT * FROM test WHERE status=:status\", DB::arg('status', 'ACTIVE'));\n\t\t$this->assertType('Q\\DB_Result', $result);\n\t\t\n\t\t$this->assertEquals('SELECT * FROM test WHERE status=\"ACTIVE\"', $result->getStatement());\n \t\n \t$this->assertEquals(array(1, 'one', 'first row', 'ACTIVE'), $result->fetchOrdered());\n \t$this->assertEquals(array(2, 'two', 'next row', 'ACTIVE'), $result->fetchOrdered());\n \t$this->assertNull($result->fetchOrdered());\n }", "public function search() {\n\t\tif(!isset($_REQUEST['searchType']) || $_REQUEST['searchType'] != \"AND\") $_REQUEST['searchType'] = \"OR\";\n\t\t$searchType = $_REQUEST['searchType'];\n\t\tif(!isset($_REQUEST['start']) || !is_numeric($_REQUEST['start']) || (int)$_REQUEST['start'] < 1) $_REQUEST['start'] = 0;\n\t\t$SQL_start = (int)$_REQUEST['start'];\n\t\tunset($_REQUEST['start']);\n\t\tif(!isset($_REQUEST['limit']) || !is_numeric($_REQUEST['limit']) || (int)$_REQUEST['limit'] < 1) $_REQUEST['limit'] = 20;\n\t\t$SQL_limit = (int)$_REQUEST['limit'];\n\t\tunset($_REQUEST['limit']);\n\t\tif(!isset($_REQUEST['startDate'])) $_REQUEST['startDate'] = null;\n\t\t$startDate = $_REQUEST['startDate'];\n\t\tif(!isset($_REQUEST['endDate'])) $_REQUEST['endDate'] = null;\n\t\t$endDate = $_REQUEST['endDate'];\n\t\tif(!isset($_REQUEST['columns'])) $_REQUEST['columns'] = null;\n\t\t$Columns = $_REQUEST['columns'];\n\t\tif(!isset($_REQUEST['query'])) $_REQUEST['query'] = null;\n\t\t$metadata = isset($_REQUEST['meta']) ? true : false;\n\t\t$columnModel = isset($_REQUEST['columnModel']) ? true : false;\n\t\t$treeModel = isset($_REQUEST['treeModel']) ? true : true; //Hack for the old modules, fix when upgraded.\n\t\t$QueryData = $_REQUEST['query'];\n\t\t$extraParams = isset($_REQUEST['extraParams']) ? explode(',',$_REQUEST['extraParams']) : array();\t\t\n\t\t$sudoParams = array();\n\t\t$columnModelParams = isset($_REQUEST['columnModelParams']) ? explode(',',$_REQUEST['columnModelParams']) : array();\n\t\t$Object = $this->urlParams['ID'];\n\t\tif(!isset($_REQUEST['orderBy'])) $_REQUEST['orderBy'] = null;\n\t\tif(!isset($_REQUEST['orderByDirection'])) $_REQUEST['orderByDirection'] = 'DESC';\n\t\tif(count(explode('.',$_REQUEST['orderBy']))>1){\n\t\t\t$OrderByTmpArr = explode('.',$_REQUEST['orderBy']);\n\t\t\t$OrderByTmp = $OrderByTmpArr[0].'ID';\n\t\t} else {\n\t\t\t$OrderByTmp = $_REQUEST['orderBy'];\n\t\t}\n\t\t$OrderBy = $_REQUEST['orderBy'] ? \"{$Object}.{$OrderByTmp} {$_REQUEST['orderByDirection']}\" : \"{$Object}.ID DESC\";\n\t\t$Query = '';\n\t\t$Join = '';\n\t\tif($Columns != null && $QueryData != null) {\n\t\t\t$Columns = explode(',', $Columns);\t\n\t\t\t$subObjArray = array();\n\t\t\tforeach ($Columns as $Column) {\n\t\t\t\tif($Column == 'ID') {\n\t\t\t\t\t$ID = (int)$QueryData;\n\t\t\t\t\t$Query .= \"$Object.ID='{$ID}' {$searchType} \";\n\t\t\t\t} else {\n\t\t\t\t\tif(count(explode('.',$Column))>1){\n\t\t\t\t\t\t$relation = explode('.',$Column);\n\t\t\t\t\t\t$tmpObj = Object::create($Object);\n\t\t\t\t\t\t$has_one = $tmpObj->has_one();\n\t\t\t\t\t\t$subObj = '';\n\t\t\t\t\t\tforeach($has_one as $key=>$value) {\n\t\t\t\t\t\t\tif($key == $relation[0]) {\n\t\t\t\t\t\t\t\t$subObj = $value;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!in_array($subObj, $subObjArray)) {\n\t\t\t\t\t\t\t$Join .= \"LEFT JOIN $subObj ON $subObj.ID = $Object.{$relation[0]}ID \";\n\t\t\t\t\t\t\t$subObjArray[] = $subObj;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$Query .= \"$subObj.{$relation[1]} LIKE '%$QueryData%' {$searchType} \";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$parentClass = get_parent_class($Object);\n\t\t\t\t\t\tif($parentClass != 'Object' && $parentClass != 'DataObject') {\n\t\t\t\t\t\t\t//$Join .= \"LEFT JOIN {$parentClass} ON {$parentClass}.ID = {$Object}.ID \";\n\t\t\t\t\t\t\t$pTmpObj = Object::create($parentClass);\n\t\t\t\t\t\t\t$arr = $pTmpObj->stat('db');\n\t\t\t\t\t\t\tif(isset($arr[$Column])) {\n\t\t\t\t\t\t\t\t$Query .= \"$parentClass.$Column LIKE '%$QueryData%' {$searchType} \";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tmpObj = Object::create($Object);\n\t\t\t\t\t\t$arr = $tmpObj->stat('db');\n\t\t\t\t\t\t//print_r($arr);\n\t\t\t\t\t\tif(isset($arr[$Column])) {\n\t\t\t\t\t\t\t$Query .= \"$Object.$Column LIKE '%$QueryData%' {$searchType} \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$Query = ($searchType == \"AND\") ? substr($Query, 0, strlen($Query)-5) : substr($Query, 0, strlen($Query)-4);\n\t\t\tif($startDate != null && $endDate != null) {\n\t\t\t\t$Query .= \" AND (DATE(TreeObject.Created) >= DATE('$startDate') AND DATE(TreeObject.Created) <= DATE('$endDate'))\";\n\t\t\t}\n\t\t} elseif ($startDate != null && $endDate != null) {\n\t\t\t$Query .= \"(DATE(TreeObject.Created) >= DATE('$startDate') AND DATE(TreeObject.Created) <= DATE('$endDate'))\";\n\t\t}\n\t\tif (count($extraParams) > 0) {\n\t\t\tforeach ($extraParams as $param) {\n\t\t\t\t$split = explode(':',$param);\n\t\t\t\tif (count($split) == 2) {\n\t\t\t\t\tif (strpos($split[0], \"[sudo]\") === false) {\n\t\t\t\t\t\tif ($Query == null || $Query == \"\") {\n\t\t\t\t\t\t\t$Query .= \"(`{$split[0]}` = '{$split[1]}')\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$Query .= \" AND (`{$split[0]}` = '{$split[1]}')\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$split[0] = substr($split[0], 6);\n\t\t\t\t\t\t$sudoParams[] = $split;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//echo $Query;\n\t\tif($results = DataObject::get($Object, $Query, $OrderBy, $Join, \"{$SQL_start},{$SQL_limit}\")) {\n\t\t\tif (count($sudoParams) > 0) {\n\t\t\t\tforeach ($sudoParams as $sudo) {\n\t\t\t\t\tforeach($results as $result) {\n\t\t\t\t\t\tif ($result->$sudo[0] != $sudo[1]) $results->remove($result);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$f = new JSONDataFormatter(); \n\t\t\tif($metadata == true) {\n\t\t\t\t$json = $f->convertDataObjectSet($results, null, $this->generateMetaData($Object));\n\t\t\t} else {\n\t\t\t\t$json = $f->convertDataObjectSet($results, null, '');\n\t\t\t}\n\t\t\tif($treeModel == true){\n\t\t\t\t$json = $this->update_with_tree_data($results, $json);\n\t\t\t}\n\t\t\tif($columnModel == true) {\n\t\t\t\t$json = $this->update_with_column_model($Object, $json, $columnModelParams);\n\t\t\t}\n\t\t\treturn $json;\n\t\t} else {\n\t\t\treturn $this->update_with_column_model($Object, '{\"results\": 0, \"rows\":[], \"query\":\"'.$Query.'\", \"join\":\"'.$Join.'\", '.$this->generateMetaData($Object).' \"tree\":[] }', $columnModelParams);\n\t\t}\n\t}" ]
[ "0.6143902", "0.5793368", "0.5789914", "0.57484895", "0.56357944", "0.5523129", "0.54634607", "0.5336139", "0.53252417", "0.52956706", "0.5283587", "0.5266278", "0.5237528", "0.52259856", "0.5198508", "0.518308", "0.51702917", "0.5147398", "0.51376456", "0.5131449", "0.51107246", "0.5109458", "0.5109458", "0.5109458", "0.5108203", "0.51013577", "0.5072535", "0.50691205", "0.5060069", "0.5046746", "0.50248814", "0.50024986", "0.49945846", "0.49827144", "0.49678814", "0.4953957", "0.494895", "0.4945698", "0.49441856", "0.49401164", "0.4934751", "0.49260315", "0.49172664", "0.49166366", "0.49132055", "0.49095", "0.4903664", "0.4902038", "0.48933062", "0.4893027", "0.4892712", "0.4891975", "0.48810735", "0.4878896", "0.48767996", "0.4873354", "0.4873354", "0.4873354", "0.48625615", "0.486204", "0.48581985", "0.4855626", "0.4836445", "0.4833196", "0.48311335", "0.48169762", "0.4811449", "0.4811449", "0.4811449", "0.48048264", "0.4800323", "0.47954208", "0.47931176", "0.47898406", "0.4788593", "0.4788166", "0.4785128", "0.47793612", "0.47738075", "0.47687843", "0.47677806", "0.47604465", "0.4758316", "0.4753793", "0.4752699", "0.4745881", "0.47446093", "0.47423446", "0.4739735", "0.47362912", "0.4736117", "0.47339857", "0.47332838", "0.47327143", "0.47282332", "0.4718016", "0.471576", "0.47110948", "0.47090667", "0.47046423" ]
0.47856712
76
Supply named parameters for query. $query = CouchbaseN1qlQuery::fromString('SELECT FROM `travelsample` WHERE city=$city LIMIT $limit'); $query>namedParams(array('city' => 'New York', 'limit' => 3));
public function namedParams($params) { foreach ($params as $key => $value) { $this->options['$' . $key] = $value; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function query($q, $params = []);", "abstract function query($queryString, $page = 1);", "abstract public function Query( $query, $params );", "public function buildIndexParameters(array $arguments) {\n\t\tif (isset($arguments['query']) && $arguments['query'] instanceof \\TYPO3\\Flow\\Persistence\\QueryInterface) {\n\t\t\t$query = $arguments['query'];\n\n\t\t\tif (isset($arguments['count']) && $arguments['count'] === TRUE) {\n\t\t\t\t$parameters = array();\n\t\t\t} else {\n\t\t\t\t$parameters = array(\n\t\t\t\t\t'include_docs' => TRUE\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif ($query->getLimit() !== NULL) {\n\t\t\t\t$parameters['limit'] = $query->getLimit();\n\t\t\t}\n\t\t\tif ($query->getOffset() !== NULL) {\n\t\t\t\t$parameters['skip'] = $query->getOffset();\n\t\t\t}\n\n\t\t\t$constraint = $query->getConstraint();\n\t\t\tif ($constraint !== NULL) {\n\t\t\t\t$parameters['q'] = $this->buildStatementForConstraint($constraint);\n\t\t\t} else {\n\t\t\t\tthrow new \\TYPO3\\Flow\\Exception('Call without constraint is not supported by CouchDB QueryIndex', 1299689063);\n\t\t\t}\n\n\t\t\treturn $parameters;\n\t\t} else {\n\t\t\tthrow new \\TYPO3\\Flow\\Exception('query argument for QueryIndex must implement QueryInterface', 1299689063);\n\t\t}\n\t}", "public function testQueryParse_Named()\n {\n \t$result = $this->conn->query(\"SELECT * FROM test WHERE status=:status\", DB::arg('status', 'ACTIVE'));\n\t\t$this->assertType('Q\\DB_Result', $result);\n\t\t\n\t\t$this->assertEquals('SELECT * FROM test WHERE status=\"ACTIVE\"', $result->getStatement());\n \t\n \t$this->assertEquals(array(1, 'one', 'first row', 'ACTIVE'), $result->fetchOrdered());\n \t$this->assertEquals(array(2, 'two', 'next row', 'ACTIVE'), $result->fetchOrdered());\n \t$this->assertNull($result->fetchOrdered());\n }", "public function getQuery($name = null);", "public function queryParam($name);", "function build_table_search_params($index, $type, $query, $from = 0, $size = 1000) {\n $params = [];\n $params['index'] = $index;\n $params['type'] = $type;\n // sort the table by the first field by default\n //$sort_field = array_keys($field_content_pairs)[0];\n $params['body'] = [\n 'query' => $query,\n ];\n\n if (isset($_GET['order'])) {\n $sort_field = $_GET['order'];\n $sort_direction = isset($_GET['sort']) && $_GET['sort'] === 'desc' ? 'desc' : 'asc';\n $params['body']['sort'] = [\n $sort_field . \".raw\" => $sort_direction,\n ];\n }\n\n $params['from'] = $from;\n $params['size'] = $size;\n return $params;\n}", "function createQuery() ;", "public function query($sql, $limit = 0, $start = 0)\n {\n }", "protected function _parameterizeSQL($query) {\n\t\t\t$queryChunks = explode($this->keys['start'], $query);\n\t\t\t$parameterValues = array();\n\n\t\t\tforeach ($queryChunks as $key => $queryChunk) {\n\t\t\t\tif (\n\t\t\t\t\t($position = strpos($queryChunk, $this->keys['stop'])) !== false &&\n\t\t\t\t\t$queryChunk = str_replace($this->keys['stop'], '?', $queryChunk)\n\t\t\t\t) {\n\t\t\t\t\t$queryChunks[$key] = str_replace(($between = substr($queryChunk, 0, $position)), '', $queryChunk);\n\t\t\t\t\t$parameterValues[] = $between;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$response = array(\n\t\t\t\t'parameterizedQuery' => implode('', $queryChunks),\n\t\t\t\t'parameterizedValues' => $parameterValues\n\t\t\t);\n\t\t\treturn $response;\n\t\t}", "abstract protected function initQuery(): void;", "public function prepare(\n string $query,\n array $globalArgs = null\n ): QueryInterface;", "public function query($q = null);", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", "private function InitializeQueryParameters()\n\t{\n\t\t$this->queryParameters = array(\n\t\t\t'project' => 'p',\n\t\t\t'action' => 'a',\n\t\t\t'hash' => 'h',\n\t\t\t'hashbase' => 'hb',\n\t\t\t'hashparent' => 'hp',\n\t\t\t'graphtype' => 'g',\n\t\t\t'output' => 'o',\n\t\t\t'format' => 'fmt',\n\t\t\t'tag' => 't',\n\t\t\t'page' => 'pg',\n\t\t\t'search' => 's',\n\t\t\t'searchtype' => 'st',\n\t\t\t'diffmode' => 'd',\n\t\t\t'file' => 'f',\n\t\t\t'mark' => 'm',\n\t\t\t'prefix' => 'prefix',\n\t\t\t'sort' => 'sort',\n\t\t\t'lang' => 'l',\n\t\t\t'redirect' => 'redirect'\n\t\t);\n\t}", "function &SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$arg3=false,$secs2cache=0) \r\n\t {\r\n\t $offsetStr = ($offset >= 0) ? \" OFFSET $offset\" : '';\r\n\t $limitStr = ($nrows >= 0) ? \" LIMIT $nrows\" : '';\r\n\t return $secs2cache ?\r\n\t $this->CacheExecute($secs2cache,$sql.\"$limitStr$offsetStr\",$inputarr,$arg3)\r\n\t :\r\n\t $this->Execute($sql.\"$limitStr$offsetStr\",$inputarr,$arg3);\r\n\t }", "function ibase_param_info($query, $param_number)\n{\n}", "public function testParse_Named()\n {\n $this->assertEquals('SELECT * FROM test WHERE status=\"ACTIVE\"', $this->conn->parse('SELECT * FROM test WHERE status=:status', array('status'=>'ACTIVE')));\n }", "private static function genFetchByParamsQuery($param_map) {\n $fully_qualified_table_name = static::getFullyQualifiedTableName();\n $query = \"SELECT * FROM {$fully_qualified_table_name} WHERE \";\n foreach ($param_map as $p_name => $p_value) {\n $transformed_key_name = self::transformForPreparedStatement($p_name);\n $query .= $p_name .'=' . $transformed_key_name;\n $query .= ' AND ';\n }\n \n $query = substr($query, 0, -5);\n return $query;\n }", "public function bindQuery($entity)\n {\n $entity = getClass($entity);\n // ??? param \n $name = $entity->name;\n $email = idem;\n $localisation = idem;\n \n $query = getQuery($name, $email, $localisation);\n \n $nbr_param = 3; // ??? count or param in list ?\n \n for( $i =0; $i < $nbr_param; $i++)\n {\n $query->bindParam(':nbr_param[0]', $entity->name);\n }\n $query->execute();\n }", "abstract public function parseNamedParameters($parameters);", "protected function generateQuery($criteria = array(), $limit = array())\n {\n }", "protected function generateQuery($criteria = array(), $limit = array())\n {\n }", "public function startQuery($sql, array $params = null, array $types = null)\n {\n }", "protected function query($sql, array $params)\n {\n }", "public function setParameters($params): QueryBuilderInterface;", "public function __construct(\n protected QueryBuilder $query,\n protected PaginationParameters $parameters = (new PaginationParameters),\n protected ?PaginationColumns $columnsMap = null,\n protected array $headers = []\n ) {\n }", "function Query ($QueryString);", "function query() {}", "public function searchByName($query);", "public function initQuickSearch()\r\n {\r\n $quickSearchValue = $this->getParamAdapter()->getQuickSearch();\r\n $quickSearchQuery = new \\Zend\\Db\\Sql\\Select();\r\n\r\n if (strlen($quickSearchValue)) {\r\n //Unsecure query (without quote)\r\n $quickSearchQuery->where('name like \"%' . $quickSearchValue . '%\"');\r\n $this->getSource()->setQuickSearchQuery($quickSearchQuery);\r\n }\r\n }", "function dtquery($param)\n\t{\n\t\treturn $this->db->query(\"SELECT SQL_CALC_FOUND_ROWS * FROM \".$this->table.\" $param[where] $param[order] $param[limit]\");\n\t}", "static public function fromString($str) {\n $res = new CouchbaseN1qlQuery();\n $res->options['statement'] = $str;\n $res->adhoc = true;\n return $res;\n }", "private function take($param) {\n if (isset($param['start']) && isset($param['offset'])) {\n $this->sql .= 'LIMIT ' . $param['start'] . ', ' . $param['offset'];\n }\n }", "public function setParameter($name, $value): QueryBuilderInterface;", "public function queryAll($campos=\"*\",$criterio=\"\");", "protected static function toNamedParams(&$where, array &$params) {\r\n\t\tif (is_string($where) && preg_match('/\\?/', $where, $matches)) {\r\n\t\t\t$count = count($matches);\r\n\t\t\t$namedParams = array();\r\n\t\t\tfor ($i = 0; $i < $count; $i++) {\r\n\t\t\t\t$where = preg_replace('/\\?/', ':placeholder' . $i, $where, 1);\r\n\t\t\t\t$namedParams[':placeholder' . $i] = $params[$i];\r\n\t\t\t}\r\n\t\t\t$params = $namedParams;\r\n\t\t}\r\n\t}", "public function query($name)\n\t{\n\t\t$obj = new PacoQuery($this, $name);\n\n\t\t// key always sent\n\t\t$obj->add('api_key', \t$this->api_key);\n\t\t$obj->add('method', \t'bucket.query');\n\n\t\t// return instance of the data object\n\t\treturn $obj;\n\t}", "function get_cities ($page_nr, $results_per_page = 20) {\n $ofset = ($page_nr - 1) * $results_per_page;\n $query = \"\n SELECT *\n FROM `cities`\n LIMIT {$ofset}, {$results_per_page}\n \";\n $cities = select($query); \n return $cities;\n}", "public function fetch_multi($s_where=null,$i_start=null,$i_limit=null)\r\n {\r\n \r\n }", "public function query($rawQuery, $param = array()){\n \n $stmt = $this->conn->prepare($rawQuery);\n \n $this->setParams($stmt, $param);\n \n $stmt->execute();\n \n return $stmt;\n \n}", "private function _findInIndex($keywords, $filter=null, $sortBy=null, $limit=10)\n {\n $ret = array();\n $query = $this->client->createSelect();\n // create a filterquery\n if (!empty($keywords))\n {\n // if isbn\n if (preg_match('/^\\d{10,13}$/', $keywords)) {\n $query->addFilterQuery(array(\n 'key' => 'fq1',\n // 'tag' => array('populationLimit'),\n 'query' => 'ISBN:'.$keywords,\n ));\n } else {\n $query->addFilterQuery(array(\n 'key' => 'fq1',\n // 'tag' => array('populationLimit'),\n 'query' => '\"'.$keywords.'\"'.'~0.5',\n ));\n }\n }\n if (!empty($filter))\n {\n if (!empty($filter['categoryNames']))\n {\n $query->addFilterQuery(array(\n 'key' => 'fq4',\n // 'tag' => array('populationLimit'),\n 'query' => 'categories:'.implode(' ',$filter['categoryNames']),\n ));\n }\n \n if(!empty($filter['min']) && !empty($filter['max'])) {\n $query->addFilterQuery(array(\n 'key'=> 'fq2',\n 'query' => 'min_investment: ['.($filter['min']*10000).' TO *]'\n ));\n $query->addFilterQuery(array(\n 'key'=> 'fq3',\n 'query' => 'max_investment: [* TO '.($filter['max']*10000).']'\n ));\n } elseif(!empty($filter['min']) && empty($filter['max'])) {\n $query->addFilterQuery(array(\n 'key'=> 'fq2',\n 'query' => 'min_investment: ['.($filter['min']*10000).' TO *]'\n ));\n } elseif(empty($filter['min']) && !empty($filter['max'])) {\n $query->addFilterQuery(array(\n 'key'=> 'fq3',\n 'query' => 'max_investment: [* TO '.($filter['max']*10000).']'\n ));\n }\n }\n $query->setRows($limit);\n //:['' TO *]\n //\n // *:* is equivalent to telling solr to return all docs\n $resultSet = $this->client->select($query);\n $index = 0;\n foreach ($resultSet as $result) {\n $klass = new \\StdClass;\n $klass->id = $result->id;\n $klass->name = $result->name;\n $klass->description = $result->description;\n $klass->min_investment = $result->min_investment;\n $klass->max_investment = $result->max_investment;\n $klass->address = $result->address;\n $klass->tags = $this->_getTagsOrCategories($result->tags);\n $klass->categories = $this->_getTagsOrCategories($result->categories);\n $klass->url = $result->url;\n $klass->contact_name = $result->contact_name;\n $klass->contact_email = $result->contact_email;\n $klass->contact_phone = $result->contact_phone;\n if (isset($result->big_image_url)) {\n $klass->big_image_url = $this->base_url.\\Config::get('core::core.defaults.image_base_url.item').$result->big_image_url;\n } else {\n $klass->big_image_url = $this->base_url.\\Config::get('core::core.defaults.image_base_url.item').\\Config::get('core::core.defaults.image.item');\n }\n if (isset($result->medium_image_url)) {\n $klass->medium_image_url = $this->base_url.\\Config::get('core::core.defaults.image_base_url.item').$result->medium_image_url;\n } else {\n $klass->medium_image_url = $this->base_url.\\Config::get('core::core.defaults.image_base_url.item').\\Config::get('core::core.defaults.image.item');\n }\n if (isset($result->small_image_url)) {\n $klass->small_image_url = $this->base_url.\\Config::get('core::core.defaults.image_base_url.item').$result->small_image_url;\n } else {\n $klass->small_image_url = $this->base_url.\\Config::get('core::core.defaults.image_base_url.item').\\Config::get('core::core.defaults.image.item');\n }\n $klass->company = $this->_getCompany($result->companyId, $result->companyName, $result->companyBigImageUrl, $result->companyMediumImageUrl, $result->companySmallImageUrl);\n $klass->territory = $this->_getTerritory($result->territoryId, $result->territoryName, $result->countryId, $result->countryName);\n $ret[$index++] = $klass;\n }\n\n return $this->_mapSearchResult($ret, $filter);\n }", "abstract public function query();", "public abstract function getSelect(\n $fields, $from, $where = '', $groupby = '', $limit = 0, $offset = 0\n );", "public function setQuery($request, $pageLimit, $pageNumber);", "public function __construct($query = '')\n {\n }", "private function BuildQuery(array $params, $fields)\n {\n $reserved = ['ORDER by', 'LIMIT', 'GROUP by'];\n $sql = \"SELECT $fields FROM $this->table WHERE \";\n $detailedParams = '';\n $paramsArray = [];\n $enableWhere = 0;\n foreach($params as $k=>$v)\n {\n if(!in_array($k, $reserved))\n {\n if(strstr($v, 'IN('))\n {\n $sql .= $k .' '.$v.' AND ';\n $enableWhere = 1;\n }\n else\n {\n $sql .= $k.' = :'.$k.' AND ';\n $paramsArray[':'.$k] = $v;\n }\n }\n else\n {\n $detailedParams .= $k.' '.$v.' ';\n }\n }\n if(substr($sql, -5) === ' AND ')\n {\n $sql = substr($sql, 0,-5);\n }\n $sql .= ' '.$detailedParams;\n\n if (!count($paramsArray) && !$enableWhere)\n $sql = str_replace('WHERE', '', $sql);\n // Pagination implementation\n if($this->pageCount)\n {\n $countQuery = preg_replace('/SELECT(.+?)FROM/is', 'SELECT COUNT(*) FROM',$sql);\n $CQ = $this->Adapter->prepare($countQuery);\n $CQ->execute($params);\n IS::app()->set('queryCount', $CQ->fetchColumn() );\n $sql .= 'LIMIT '.(int)$this->currentPage.', '.(int)$this->pageCount;\n }\n return ['sql' => $sql, 'params' => $paramsArray];\n }", "abstract public function newQuery();", "function q_limit($query, $limit, $off=0)\n{\n\treturn $query .' LIMIT '. $limit .' OFFSET '. $off;\n}", "function __construct($paramName = 'mdb') {\n parent::__construct();\n $this->paramName = $paramName;\n }", "public function addLimit($_params , $_query)\n {\n \n $_query->setMaxResults($_params['length'])\n ->setFirstResult($_params['offset']);\n\n return $_query;\n }", "public abstract function get_query();", "function interpolateQuery($query, $params) {\n\t\t $keys = array();\n\t\t # build a regular expression for each parameter\n\t\t foreach ($params as $key => $value) {\n\t\t if (is_string($key)) {\n\t\t $keys[] = '/:'.$key.'/';\n\t\t } else {\n\t\t $keys[] = '/[?]/';\n\t\t }\n\t\t }\n\t\t $query = preg_replace($keys, $params, $query, 1, $count);\n\t\t return $query;\n\t\t}", "public function parametersAndQueriesDataProvider() {}", "public function createNamedQuery($queryName);", "function query($param) {\n $curl = curl_init();\n $userName = $param;\n curl_setopt_array($curl, array(\n CURLOPT_URL => \"https://develop.datacrm.la/datacrm/pruebatecnica/webservice.php?operation=query&sessionName=\" . $userName . \"&query=select%20%2A%20from%20Contacts;\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"GET\",\n CURLOPT_HTTPHEADER => array(\n \"Accept: */*\",\n \"Accept-Encoding: gzip, deflate\",\n \"Cache-Control: no-cache\",\n \"Connection: keep-alive\",\n \"Host: develop.datacrm.la\",\n \"Postman-Token: 438973a9-ec4c-4c01-bc55-71ad624b746d,206316aa-adaa-4963-b5c6-bdacd9e13eb0\",\n \"User-Agent: PostmanRuntime/7.19.0\",\n \"cache-control: no-cache\"\n ),\n ));\n\n $response = curl_exec($curl);\n $err = curl_error($curl);\n\n curl_close($curl);\n\n if ($err) {\n echo \"cURL Error #:\" . $err;\n } else {\n echo $response;\n }\n }", "public function search($city);", "function getPagingInfo($sql,$input_arguments=null);", "public function queryIterator($sql,$params=array());", "public static function query();", "public function testParamBindQueryFeature()\n {\n $condition = $this->getConnection()\n ->condition()\n (\"WHERE blog_title LIKE :title\");\n $select = $this->getConnection()\n ->select()\n (['blog_id', 'blog_title'])\n ('dummy_posts')\n ($condition);\n $rows = $this->getConnection()\n ->query()\n ($select)\n ([\n ['param' => ':title', 'value' => '%o%', 'type' => PDO::PARAM_INT]\n ])\n ('fetch-all')\n ();\n return $this->assertTrue(count($rows['rows']) > 0);\n }", "public function __construct($sQuery)\n\t{\n\t\t$this->aParameters['q'] = $sQuery;\n\t}", "function query() {\n }", "function fn_cp_edost_improvement_rus_cities_find_cities($params, $lang_code, $items_per_page, $search, $fields, &$join, $condition)\n{\n}", "public function query($params)\n {\n if(is_string($params)) {\n $params_tmp = $params;\n $params = array('command' => $params,);\n }\n\n $methodData = &$GLOBALS[$this->def_method];\n /* 获取传递的page num参数 */\n if(!isset($params['pageNum'])) {\n /* 获取get中的p参数 */\n if(isset($methodData[$this->defPageNumKey]))\n $params['pageNum'] = $methodData[$this->defPageNumKey];\n /* 没有则获取默认值 */\n if(!isset($params['pageNum']))\n $params['pageNum'] = $this->pageNum;\n }\n\n /* 获取传递的page size参数 */\n if(!isset($params['pageSize'])) {\n /* 获取cookie中的默认page size */\n if(isset(Yii::app()->request->cookies['defps'])) {\n $params['pageSize'] = Yii::app()->request->cookies['defps']->value;\n }\n /* 没值则获取get参数 */\n if(!isset($params['pageSize']) && isset($methodData[$this->defPageSizeKey]))\n $params['pageSize'] = $methodData[$this->defPageSizeKey];\n /* 都没值,则获取默认值 */\n if(!isset($params['pageSize']))\n $params['pageSize'] = $this->pageSize;\n }\n\n // 如果有限定分页条目重新设定分页\n if ($this->_isFixedPageSize) {\n $params['pageSize'] = $this->pageSize;\n }\n\n $this->pageNum = abs((int)$params['pageNum']);\n if($this->pageNum < 1) $this->pageNum = 1;\n $this->pageSize = abs((int)$params['pageSize']);\n if($this->pageSize < self::MIN_pageSize || $this->pageSize > self::MAX_pageSize) $this->pageSize = 1;\n\n $records = array(); $recordCount = null;\n $offset = ($this->pageNum-1) * $this->pageSize;\n /* query by sql */\n if($params['command']) {\n if(is_string($params['command'])) {\n $params['command'] .= \" LIMIT {$offset},\".$this->pageSize;\n $params['command'] = Yii::app()->db->createCommand($params['command']);\n }\n if(!isset($params['countCommand']))\n $params['countCommand'] = 'SELECT FOUND_ROWS()';\n if(is_string($params['countCommand']))\n $params['countCommand'] = Yii::app()->db->createCommand($params['countCommand']);\n $records = $params['command']->query()->readAll();\n $recordCount = $params['countCommand']->queryScalar();\n // 异常当pageNum大于总页的情况处理\n if ($recordCount && empty($records) && is_string($params_tmp)) {\n $this->pageNum = ceil($recordCount/$this->pageSize);\n $offset = ($this->pageNum-1) * $this->pageSize;\n $params['command'] = $params_tmp;\n $params['command'] .= \" LIMIT {$offset},\".$this->pageSize;\n $params['command'] = Yii::app()->db->createCommand($params['command']);\n $records = $params['command']->query()->readAll();\n }\n }else{\n $model = $params['model'];\n $criteria = $params['criteria'];\n $criteria->offset = ($this->pageNum-1) * $this->pageSize;\n $criteria->limit = $this->pageSize;\n $records = $model->findAll($criteria);\n\n $criteria->limit = $criteria->offset = -1;\n $recordCount = $model->count($criteria);\n }\n\n $this->recordCount = $recordCount;\n $this->pageCount = ceil($recordCount/$this->pageSize);\n\n return $records;\n }", "private function queryGraphQL($query_name,$query_object,$query,$vars='') {\n $ret = array();\n // PAGE LOOP\n $page=0;\n do {\n $q = $this->buildQueryGraphQl($page,$query_name,$query_object,$query,$vars);\n echo \"$q \\n\";\n $page++;\n } while ($page<10);\n\n return $ret;\n }", "public function testFindByQWithLimit()\n {\n $dataLoader = $this->getDataLoader();\n $all = $dataLoader->getAll();\n $filters = ['q' => $all[0]['name'], 'limit' => 1];\n $this->filterTest($filters, [$all[0]]);\n $filters = ['q' => 'desc', 'limit' => 2];\n $this->filterTest($filters, [$all[0], $all[1]]);\n }", "public function search($search_term, $from_record_num, $records_per_page){\n \n // select query\n $query = \"SELECT\n c.name as category_name, p.id, p.name, p.description, p.price, p.category_id, p.created\n FROM\n \" . $this->table_name . \" p\n LEFT JOIN\n categories c\n ON p.category_id = c.id\n WHERE\n p.name LIKE ? OR p.description LIKE ?\n ORDER BY\n p.name ASC\n LIMIT\n ?, ?\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind variable values\n $search_term = \"%{$search_term}%\";\n $stmt->bindParam(1, $search_term);\n $stmt->bindParam(2, $search_term);\n $stmt->bindParam(3, $from_record_num, PDO::PARAM_INT);\n $stmt->bindParam(4, $records_per_page, PDO::PARAM_INT);\n \n // execute query\n $stmt->execute();\n \n // return values from database\n return $stmt;\n }", "abstract public function queryRaw($q);", "function search($term, $location, $price, $radius, $categories, $sort) {\n $url_params = array();\n \n $url_params['term'] = $term;\n $url_params['location'] = $location;\n $url_params['limit'] = $GLOBALS['SEARCH_LIMIT'];\n\t$url_params['open_now'] = true;\n $url_params['price'] = $price;\n $url_params['radius'] = $radius;\n $url_params['categories'] = $categories;\n $url_params['sort_by'] = $sort;\n \n return request($GLOBALS['API_HOST'], $GLOBALS['SEARCH_PATH'], $url_params);\n}", "public function queryParams();", "public function query($sql, $arguments = array());", "public function testFindByQWithOffsetAndLimit()\n {\n $dataLoader = $this->getDataLoader();\n $all = $dataLoader->getAll();\n $filters = ['q' => $all[0]['name'], 'offset' => 0, 'limit' => 1];\n $this->filterTest($filters, [$all[0]]);\n $filters = ['q' => 'desc', 'offset' => 1, 'limit' => 1];\n $this->filterTest($filters, [$all[1]]);\n }", "public function initQueryBody()\n {\n $this->queryBody = [\n 'index' => $this->connection->index(),\n 'type' => $this->connection->type(),\n 'body' => [\n 'query' => [\n 'bool' => [\n 'filter' => [\n\n ]\n ]\n ]\n ]\n ];\n }", "public function sqlQuery($sqlQuery, $limit = PHP_INT_MAX, $offset = 0);", "public function search($query, $year = null, $language = null);", "abstract protected function getQuery();", "function bind_subq($stmt){\n global $params;\n foreach ($params as $name => &$value){\n switch ($name){\n case 'grouping': case 'page': case 'sort':\n // none of these affect bindings\n break;\n case 'collection': case 'yearstart': case 'yearend':\n $stmt->bindParam(\":$name\", $value, PDO::PARAM_INT);\n break;\n default:\n // all other params are arrays\n foreach ($value as $index => &$component){\n $bindstr = ':' . $name . $index;\n $stmt->bindParam($bindstr, $component, PDO::PARAM_INT);\n }\n }\n }\n}", "public function buildQueryString();", "public function search($params = []);", "function query($arg_str) // call this function from other units and configs\n\t\t{\n\t\t\t$query_segments = explode(';',$arg_str);\n\n\t\t\t\n\t\t\t$response = [];\n\t\t\tforeach($query_segments as $q_str) \n\t\t\t{\t\t\t\t\n\t\t\t\t$matches=[];\n\t\t\t\tif(preg_match_all( \"#^(.+)\\:\\:([[:alnum:]]+)$#Uis\",$q_str,$matches))\n\t\t\t\t{\n\t\t\t\t\t$q_str = $matches[1][0];\n\t\t\t\t\t$_q_id = $matches[2][0];\n\t\t\t\t}\n\n\t\t\t\t$_res_obj = $this->get_obj_by_route($q_str);\n\t\t\t\t\n\t\t\t\t$_new_query_obj=[\n\t\t\t\t\t'query'=>$q_str,\n\t\t\t\t\t'response'=>$_res_obj,\n\t\t\t\t];\n\t\t\t\tif(isset($_q_id))\n\t\t\t\t{\n\t\t\t\t\t$_new_query_obj['key']=$_q_id;\n\t\t\t\t\tunset($_q_id);\n\t\t\t\t}\n\n\t\t\t\t$response[]=$_new_query_obj;\n\t\t\t}\n\t\t\treturn $response;\n\t\t}", "public function query();", "public function query();", "public function query();", "public function query($query);", "public function query($query);", "public function query($query);", "public function getParamDirect($name = \"\");", "function setQueryString($params=NULL){\r\n\t\tif(!$params) $params = array();\r\n\t\t$this->params = $params;\r\n\t\t$this->queryString = http_build_query($params,'','&');\r\n\t\t//Debug::show(\"Setting the query as :$\".$this->queryString);\r\n\t\t//if($params['q']== '') Debug::backTrace();\r\n\t}", "public function queryString();", "public function makeQueryString($params)\n {\n $query = array();\n $paramsReturn = array();\n foreach($params as $p => $param)\n {\n if($param > 0 && $param != '' && !is_array($param))\n {\n $paramName = str_replace('.', '_', $p);\n $query[] = $p.' = :'.$paramName;\n $paramsReturn[$paramName] = $param;\n }\n elseif(is_array($param))\n {\n if($param['type'] == 'BETWEEN' && $param['to'] > $param['from'])\n {\n $paramNameFrom = str_replace('.', '_', $p.'_from');\n $paramNameTo = str_replace('.', '_', $p.'_to');\n $query[] = $p.' BETWEEN :'.$paramNameFrom.' AND :'.$paramNameTo;\n $paramsReturn[$paramNameFrom] = $param['from'];\n $paramsReturn[$paramNameTo] = $param['to'];\n }\n }\n }\n $queryString = implode(' AND ', $query);\n return array('query' => $queryString, 'params' => $paramsReturn);\n }", "abstract public function prepare($params=array());", "abstract public function prepareSelect();", "public function select($table_name, $fields = array(), $where = array(), $order_by = '')\r\n {\r\n }", "public function customQuery($query, $paginate='') {\n $statement = Connect::ArangoStatementHandler(\n $this->_arangoConnect, $query\n );\n // execute the statement\n $cursor = $statement->execute();\n if($paginate==true) {\n $totalPages = isset($cursor->getExtra()['stats']['scannedFull'])?$cursor->getExtra()['stats']['scannedFull']:\"\"; \n return $result = ['data'=> $cursor->getAll(), 'total'=> $totalPages]; \n } \n return $cursor = $cursor->getAll();\n }", "public function addQueryData(array $query_params) {}", "public function newQuery();" ]
[ "0.5845094", "0.54652256", "0.54448855", "0.5398605", "0.5368937", "0.52734894", "0.5271273", "0.5221008", "0.5220223", "0.5122966", "0.51069784", "0.5096493", "0.50758916", "0.5056556", "0.50334895", "0.50334895", "0.50334895", "0.5032366", "0.50053895", "0.49961218", "0.4981346", "0.49736017", "0.49672714", "0.49552292", "0.49457437", "0.4938501", "0.4938501", "0.49311662", "0.4930017", "0.49247518", "0.49197626", "0.49113512", "0.49026507", "0.489503", "0.48931557", "0.4882504", "0.48692533", "0.48685247", "0.48465925", "0.48390645", "0.48333466", "0.48282737", "0.48279652", "0.48263806", "0.4818931", "0.48089", "0.48059654", "0.48057994", "0.47841245", "0.47807646", "0.47741747", "0.47732943", "0.47686237", "0.47554678", "0.47509804", "0.47502762", "0.474721", "0.47369605", "0.47341287", "0.47331926", "0.472977", "0.47281703", "0.47186986", "0.47149742", "0.47069773", "0.4706827", "0.47027904", "0.46957558", "0.4689919", "0.4685523", "0.46834058", "0.4682119", "0.46753022", "0.4675263", "0.46713537", "0.46699837", "0.46689618", "0.4666216", "0.46661675", "0.4654679", "0.46538585", "0.46495306", "0.46449465", "0.46440494", "0.46296087", "0.46292862", "0.46292862", "0.46292862", "0.46236637", "0.46236637", "0.46236637", "0.46170783", "0.4607066", "0.46058452", "0.46047807", "0.4602688", "0.46023995", "0.46020707", "0.4596088", "0.45946336", "0.45937347" ]
0.0
-1
Specify the consistency level for this query.
public function consistency($consistency) { if ($consistency == self::NOT_BOUNDED) { $this->options['scan_consistency'] = 'not_bounded'; } else if ($consistency == self::REQUEST_PLUS) { $this->options['scan_consistency'] = 'request_plus'; } else if ($consistency == self::STATEMENT_PLUS) { $this->options['scan_consistency'] = 'statement_plus'; } else { throw new CouchbaseException('invalid option passed.'); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n\n }", "public function ensureConsistency()\n {\n\n }", "public function ensureConsistency()\n\t{\n\n\t}", "public function ensureConsistency()\n\t{\n\n\t}", "public function ensureConsistency()\n\t{\n\n\t}", "public function ensureConsistency()\n\t{\n\n\t}", "public static function transactionLevel()\n {\n }", "public function transactionLevel();", "public function setVerbosity($level)\n {\n }", "public function setVerbosity(int $level);", "public function transactionLevel()\n\t{\n\t\treturn $this->neoeloquent->transactionLevel();\n\t}", "function setCompatibilityLevel($value)\n {\n $this->_props['CompatibilityLevel'] = $value;\n }", "public function setTransactionIsolation($level)\n {\n $this->transactionIsolationLevel = $level;\n\n return $this->executeStatement($this->getDatabasePlatform()->getSetTransactionIsolationSQL($level));\n }", "public function ensureConsistency()\n {\n\n if ($this->aOperations !== null && $this->op_id !== $this->aOperations->getOpId()) {\n $this->aOperations = null;\n }\n if ($this->aRCurrencies !== null && $this->operation_prime_currency_id !== $this->aRCurrencies->getRCurrencyId()) {\n $this->aRCurrencies = null;\n }\n if ($this->aRRewardTypes !== null && $this->operation_prime_r_reward_type_id !== $this->aRRewardTypes->getRRewardTypeId()) {\n $this->aRRewardTypes = null;\n }\n if ($this->aRRewardExpeditionModes !== null && $this->operation_prime_r_reward_expedition_mode_id !== $this->aRRewardExpeditionModes->getRRewardExpeditionModeId()) {\n $this->aRRewardExpeditionModes = null;\n }\n if ($this->aRRewardTransporters !== null && $this->operation_prime_r_reward_transporter_id !== $this->aRRewardTransporters->getRRewardTransporterId()) {\n $this->aRRewardTransporters = null;\n }\n }", "public function ensureConsistency()\n {\n\n if ($this->aSucursal !== null && $this->idsucursal !== $this->aSucursal->getIdsucursal()) {\n $this->aSucursal = null;\n }\n }", "public function ensureConsistency()\n {\n\n if ($this->aJenisPrasarana !== null && $this->jenis_prasarana_id !== $this->aJenisPrasarana->getJenisPrasaranaId()) {\n $this->aJenisPrasarana = null;\n }\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aTanah !== null && $this->id_tanah !== $this->aTanah->getIdTanah()) {\n $this->aTanah = null;\n }\n if ($this->aPtk !== null && $this->ptk_id !== $this->aPtk->getPtkId()) {\n $this->aPtk = null;\n }\n if ($this->aJenisHapusBuku !== null && $this->id_hapus_buku !== $this->aJenisHapusBuku->getIdHapusBuku()) {\n $this->aJenisHapusBuku = null;\n }\n if ($this->aStatusKepemilikanSarpras !== null && $this->kepemilikan_sarpras_id !== $this->aStatusKepemilikanSarpras->getKepemilikanSarprasId()) {\n $this->aStatusKepemilikanSarpras = null;\n }\n }", "public function setLevel($level);", "public function setErrorCorrectionLevel($level) {\n\t\t\tif($level !== 'L' && $level !== 'M' && $level !== 'Q' && $level !== 'H')\n\t\t\t\tthrow new \\InvalidArgumentException('Invalid error correction level.');\n\t\t\t$this->errorCorrectionLevel = $level;\n\t\t}", "public function setVerbosity($level)\n {\n $this->decoratedOutput->setVerbosity($level);\n }", "public function setBoost($documentBoostValue) {}", "public function ensureConsistency()\n {\n\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aSemester !== null && $this->semester_id !== $this->aSemester->getSemesterId()) {\n $this->aSemester = null;\n }\n if ($this->aSumberAirRelatedBySumberAirId !== null && $this->sumber_air_id !== $this->aSumberAirRelatedBySumberAirId->getSumberAirId()) {\n $this->aSumberAirRelatedBySumberAirId = null;\n }\n if ($this->aSumberAirRelatedBySumberAirMinumId !== null && $this->sumber_air_minum_id !== $this->aSumberAirRelatedBySumberAirMinumId->getSumberAirId()) {\n $this->aSumberAirRelatedBySumberAirMinumId = null;\n }\n }", "public function durabilityLevel($level): IncrementOptions\n {\n if (gettype($level) == \"integer\") {\n $level = Deprecations::convertDeprecatedDurabilityLevel(__METHOD__, $level);\n }\n $this->durabilityLevel = $level;\n return $this;\n }", "public function setLevel($level) {\n $this->level = $level;\n }", "public function consistentRead(bool $mode): Builder\n {\n $this->consistentRead = $mode;\n\n return $this;\n }", "public function level(string $level): self\n {\n $this->level = $level;\n\n return $this;\n }", "public function ensureConsistency()\n {\n if ($this->aSociete !== null && $this->soc_id_fk !== $this->aSociete->getID()) {\n $this->aSociete = null;\n }\n if ($this->aMTransport !== null && $this->transport_fk !== $this->aMTransport->getMTransport()) {\n $this->aMTransport = null;\n }\n }", "public function ensureConsistency()\n {\n if ($this->aBooks !== null && $this->_forbook !== $this->aBooks->getId()) {\n $this->aBooks = null;\n }\n if ($this->auserSysRef !== null && $this->__user__ !== $this->auserSysRef->getId()) {\n $this->auserSysRef = null;\n }\n }", "public function setVerbosity($level): void\n {\n $this->verbosity = $this->getVerbosity($level);\n }", "public function ensureConsistency()\n {\n if ($this->aPurchaseOrder !== null && $this->pothnbr !== $this->aPurchaseOrder->getPohdnbr()) {\n $this->aPurchaseOrder = null;\n }\n if ($this->aWarehouse !== null && $this->intbwhse !== $this->aWarehouse->getIntbwhse()) {\n $this->aWarehouse = null;\n }\n }", "public function transactionLevel()\n {\n return $this->transactionCount;\n }", "public function SetLevel($level)\n {\n $this->level = $level;\n }", "public function trxLevel() {\n\t\treturn $this->mTrxLevel;\n\t}", "public function transactionLevel()\n {\n return $this->store->transactions;\n }", "protected function setVerbosity($level)\n {\n $this->verbosity = $this->parseVerbosity($level);\n }", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPartie !== null && $this->partie_id !== $this->aPartie->getId()) {\n\t\t\t$this->aPartie = null;\n\t\t}\n\t\tif ($this->aPostRelatedByReplicaPostId !== null && $this->replica_post_id !== $this->aPostRelatedByReplicaPostId->getId()) {\n\t\t\t$this->aPostRelatedByReplicaPostId = null;\n\t\t}\n\t}", "public function transactionLevel()\n {\n return $this->transactions;\n }", "public function setReadLevel($var)\n {\n GPBUtil::checkInt64($var);\n $this->read_level = $var;\n\n return $this;\n }", "public function set_level($level = \"INFO\") {\n if(Validator::isa($level,\"string\") \n && ($k=array_search($level,$this->order))!==false) \n $this->level = $this->order[$k];\n else \n $this->level = \"INFO\";\n }", "public function setBoost($boost) {\n $boost = (float) $boost;\n\n if ($boost > 0.0) {\n $this->_documentBoost = $boost;\n }\n else {\n $this->_documentBoost = FALSE;\n }\n }", "private function setLevel()\n\t{\n\t\t$level_count = $this->db->cacheGetOne(\"SELECT COUNT(*) FROM `bin_level` WHERE 1\");\n\t\tif ($level_count > 1) // binary level\n\t\t{\n\t\t\t$this->levelType = 1;\n\t\t\t$this->levelArr = $this->db->getAssoc(\"SELECT `id`, `name` FROM `bin_level` WHERE 1\");\n\t\t}else{\n\t\t\t$level_count = $this->db->cacheGetOne(\"SELECT COUNT(*) FROM `bin_serial_type` WHERE 1\");\n\t\t\tif ($level_count > 1)\n\t\t\t{\n\t\t\t\t$this->levelType = 2;\n\t\t\t\t$this->levelArr = $this->db->getAssoc(\"SELECT `id`, `name` FROM `bin_serial_type` WHERE 1\");\n\t\t\t}else{\n\t\t\t\t$level_count = $this->db->cacheGetOne(\"SELECT COUNT(*) FROM `bbc_user_group` WHERE `is_admin`=0\");\n\t\t\t\tif ($level_count > 2) // user group level\n\t\t\t\t{\n\t\t\t\t\t$this->levelType = 3;\n\t\t\t\t\t$this->levelArr = $this->db->getAssoc(\"SELECT `id`, `name` FROM `bbc_user_group` WHERE `is_admin`=0\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function ensureConsistency()\n {\n\n if ($this->aSekolahLongitudinal !== null && $this->sekolah_id !== $this->aSekolahLongitudinal->getSekolahId()) {\n $this->aSekolahLongitudinal = null;\n }\n if ($this->aSekolahLongitudinal !== null && $this->semester_id !== $this->aSekolahLongitudinal->getSemesterId()) {\n $this->aSekolahLongitudinal = null;\n }\n if ($this->aRuang !== null && $this->id_ruang !== $this->aRuang->getIdRuang()) {\n $this->aRuang = null;\n }\n if ($this->aPembelajaranRelatedByBelKe01 !== null && $this->bel_ke_01 !== $this->aPembelajaranRelatedByBelKe01->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe01 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe02 !== null && $this->bel_ke_02 !== $this->aPembelajaranRelatedByBelKe02->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe02 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe03 !== null && $this->bel_ke_03 !== $this->aPembelajaranRelatedByBelKe03->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe03 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe04 !== null && $this->bel_ke_04 !== $this->aPembelajaranRelatedByBelKe04->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe04 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe05 !== null && $this->bel_ke_05 !== $this->aPembelajaranRelatedByBelKe05->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe05 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe06 !== null && $this->bel_ke_06 !== $this->aPembelajaranRelatedByBelKe06->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe06 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe07 !== null && $this->bel_ke_07 !== $this->aPembelajaranRelatedByBelKe07->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe07 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe08 !== null && $this->bel_ke_08 !== $this->aPembelajaranRelatedByBelKe08->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe08 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe09 !== null && $this->bel_ke_09 !== $this->aPembelajaranRelatedByBelKe09->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe09 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe10 !== null && $this->bel_ke_10 !== $this->aPembelajaranRelatedByBelKe10->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe10 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe11 !== null && $this->bel_ke_11 !== $this->aPembelajaranRelatedByBelKe11->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe11 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe12 !== null && $this->bel_ke_12 !== $this->aPembelajaranRelatedByBelKe12->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe12 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe13 !== null && $this->bel_ke_13 !== $this->aPembelajaranRelatedByBelKe13->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe13 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe14 !== null && $this->bel_ke_14 !== $this->aPembelajaranRelatedByBelKe14->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe14 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe15 !== null && $this->bel_ke_15 !== $this->aPembelajaranRelatedByBelKe15->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe15 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe16 !== null && $this->bel_ke_16 !== $this->aPembelajaranRelatedByBelKe16->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe16 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe17 !== null && $this->bel_ke_17 !== $this->aPembelajaranRelatedByBelKe17->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe17 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe18 !== null && $this->bel_ke_18 !== $this->aPembelajaranRelatedByBelKe18->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe18 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe19 !== null && $this->bel_ke_19 !== $this->aPembelajaranRelatedByBelKe19->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe19 = null;\n }\n if ($this->aPembelajaranRelatedByBelKe20 !== null && $this->bel_ke_20 !== $this->aPembelajaranRelatedByBelKe20->getPembelajaranId()) {\n $this->aPembelajaranRelatedByBelKe20 = null;\n }\n }", "public function getReadLevel()\n {\n return $this->read_level;\n }", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aJ002tUsuario !== null && $this->co_usuario_elabora !== $this->aJ002tUsuario->getCoUsuario()) {\n\t\t\t$this->aJ002tUsuario = null;\n\t\t}\n\t\tif ($this->aJ016tForense !== null && $this->co_forense !== $this->aJ016tForense->getCoForense()) {\n\t\t\t$this->aJ016tForense = null;\n\t\t}\n\t\tif ($this->aJ018tInformeForense !== null && $this->co_informe_forense !== $this->aJ018tInformeForense->getCoInformeForense()) {\n\t\t\t$this->aJ018tInformeForense = null;\n\t\t}\n\t}", "public function setLevel( $level )\n {\n if( !c\\LevelValues::isLevel( $level ) )\n throw new e\\UnacceptableValueException( \"The level $level is unacceptable.\" );\n \n $this->level = $level;\n return $this;\n }", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aUf !== null && $this->uf_id !== $this->aUf->getId()) {\n\t\t\t$this->aUf = null;\n\t\t}\n\t}", "public function setOutputVerbosity($level);", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPerfil !== null && $this->co_perfil !== $this->aPerfil->getCoPerfil()) {\n\t\t\t$this->aPerfil = null;\n\t\t}\n\t}", "public function setLevel(int $level) {\n\n $this->level = $level;\n\n }", "public function ensureConsistency()\n {\n if ($this->aUserAge !== null && $this->age !== $this->aUserAge->getAge()) {\n $this->aUserAge = null;\n }\n }", "function setLevel($level);", "function getCompatibilityLevel()\n {\n return $this->_props['CompatibilityLevel'];\n }", "public function setCrit()\n {\n $this->_role->crit = 100;\n }", "public function setKycLevel($level)\n\t {\n\t \t $this->json['params'][$this->account]['kyclevel'] = $level;\n\t \t \n\t \t return $this;\n\t }", "abstract public function query($sql, $errorLevel = E_USER_ERROR);", "public function ensureConsistency()\n {\n\n if ($this->aSekolah !== null && $this->sekolah_id !== $this->aSekolah->getSekolahId()) {\n $this->aSekolah = null;\n }\n if ($this->aKategoriTk !== null && $this->kategori_tk_id !== $this->aKategoriTk->getKategoriTkId()) {\n $this->aKategoriTk = null;\n }\n if ($this->aKlasifikasiLembaga !== null && $this->klasifikasi_lembaga_id !== $this->aKlasifikasiLembaga->getKlasifikasiLembagaId()) {\n $this->aKlasifikasiLembaga = null;\n }\n if ($this->aSumberDanaSekolah !== null && $this->sumber_dana_sekolah_id !== $this->aSumberDanaSekolah->getSumberDanaSekolahId()) {\n $this->aSumberDanaSekolah = null;\n }\n if ($this->aFasilitasLayanan !== null && $this->fasilitas_layanan_id !== $this->aFasilitasLayanan->getFasilitasLayananId()) {\n $this->aFasilitasLayanan = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalPmtas !== null && $this->jadwal_pmtas !== $this->aJadwalPaudRelatedByJadwalPmtas->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalPmtas = null;\n }\n if ($this->aLembagaPengangkat !== null && $this->lembaga_pengangkat_id !== $this->aLembagaPengangkat->getLembagaPengangkatId()) {\n $this->aLembagaPengangkat = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalDdtk !== null && $this->jadwal_ddtk !== $this->aJadwalPaudRelatedByJadwalDdtk->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalDdtk = null;\n }\n if ($this->aJadwalPaudRelatedByFreqParenting !== null && $this->freq_parenting !== $this->aJadwalPaudRelatedByFreqParenting->getJadwalId()) {\n $this->aJadwalPaudRelatedByFreqParenting = null;\n }\n if ($this->aBentukLembaga !== null && $this->bentuk_lembaga_id !== $this->aBentukLembaga->getBentukLembagaId()) {\n $this->aBentukLembaga = null;\n }\n if ($this->aJadwalPaudRelatedByJadwalKesehatan !== null && $this->jadwal_kesehatan !== $this->aJadwalPaudRelatedByJadwalKesehatan->getJadwalId()) {\n $this->aJadwalPaudRelatedByJadwalKesehatan = null;\n }\n }", "private function checkRowConsistency($row)\n {\n if ( $this->strict === false ) {\n return;\n }\n\n $current = count($row);\n\n if ( $this->rowConsistency === null ) {\n $this->rowConsistency = $current;\n }\n\n if ( $current !== $this->rowConsistency ) {\n throw new StrictViolationException();\n }\n\n $this->rowConsistency = $current;\n }", "public function ensureConsistency()\n\t{\n\n\t\tif ($this->aPerfil !== null && $this->perfil_id !== $this->aPerfil->getId()) {\n\t\t\t$this->aPerfil = null;\n\t\t}\n\t\tif ($this->aEndereco !== null && $this->endereco_id !== $this->aEndereco->getId()) {\n\t\t\t$this->aEndereco = null;\n\t\t}\n\t\tif ($this->aCargo !== null && $this->cargo_id !== $this->aCargo->getId()) {\n\t\t\t$this->aCargo = null;\n\t\t}\n\t\tif ($this->aDepartamento !== null && $this->departamento_id !== $this->aDepartamento->getId()) {\n\t\t\t$this->aDepartamento = null;\n\t\t}\n\t}", "public function ensureConsistency()\n {\n\n if ($this->aFeature !== null && $this->feature_id !== $this->aFeature->getFeatureId()) {\n $this->aFeature = null;\n }\n if ($this->aCvterm !== null && $this->cvterm_id !== $this->aCvterm->getCvtermId()) {\n $this->aCvterm = null;\n }\n if ($this->aPub !== null && $this->pub_id !== $this->aPub->getPubId()) {\n $this->aPub = null;\n }\n }", "public function consistentRead($active = true)\n {\n $this->consistent_read = $active;\n\n return $this;\n }", "public function getACLLevel() {\n\t\treturn $this->ACLLevel;\n\t}", "public function setAccessLevel($level) {\n $this->access_level = $level;\n }", "public function getTransactionIsolation()\n {\n return $this->transactionIsolationLevel ??= $this->getDatabasePlatform()->getDefaultTransactionIsolationLevel();\n }", "public function setViaTableCondition($value);", "public function setVerbosity( $nLevel=null )\n\t\t{\n\t\t\tif ( $nLevel === null )\n\t\t\t\t$nLevel = $this->_determineVerbosity();\n\t\t\t$this->_verbositylevel = $nLevel;\n\t\t}", "public function ensureConsistency()\n {\n if ($this->aTblProdPhotos !== null && $this->prod_id !== $this->aTblProdPhotos->getProdId()) {\n $this->aTblProdPhotos = null;\n }\n if ($this->aTblProdPrices !== null && $this->prod_id !== $this->aTblProdPrices->getProdId()) {\n $this->aTblProdPrices = null;\n }\n if ($this->aTblProdSmaller !== null && $this->prod_id !== $this->aTblProdSmaller->getProdId()) {\n $this->aTblProdSmaller = null;\n }\n if ($this->aTblProdPricing !== null && $this->prod_price_id !== $this->aTblProdPricing->getProdPriceId()) {\n $this->aTblProdPricing = null;\n }\n if ($this->aTblMenus !== null && $this->prod_category !== $this->aTblMenus->getMenuAlias()) {\n $this->aTblMenus = null;\n }\n if ($this->aTblShippingCategories !== null && $this->prod_category_shipping !== $this->aTblShippingCategories->getProdShippingPriceId()) {\n $this->aTblShippingCategories = null;\n }\n if ($this->aTblGeneral !== null && $this->prod_general !== $this->aTblGeneral->getProdGeneral()) {\n $this->aTblGeneral = null;\n }\n if ($this->aTblEra !== null && $this->prod_era !== $this->aTblEra->getEraId()) {\n $this->aTblEra = null;\n }\n }", "public function ensureConsistency()\n {\n if ($this->aShape !== null && $this->shape_id !== $this->aShape->getShapeId()) {\n $this->aShape = null;\n }\n if ($this->aCakeType !== null && $this->cake_type_id !== $this->aCakeType->getCakeTypeId()) {\n $this->aCakeType = null;\n }\n }", "public function getBoost() {\n return $this->_documentBoost;\n }", "public function setCrit()\n {\n $this->_role->crit = 0;\n }", "public function transactionLevel(): int\n {\n return $this->transactions;\n }", "public function setEscalationLevel($value)\n {\n $this->setItemValue('escalation_level', ['id' => (int)$value]);\n }", "public function getPreferLevel()\n {\n return $this->preferLevel;\n }", "public function transactionValidate ($level = 1);", "public function setLogLevel($level)\r\n {\r\n $this->level = $level;\r\n }", "public function getFileConsistency()\r\n {\r\n if (empty($this->file) && empty($this->file2)) {\r\n return false;\r\n } else if (empty($this->file)) {\r\n return $this->file2Consistency;\r\n } else if (empty($this->file2)) {\r\n return $this->file1Consistency;\r\n } else {\r\n return $this->file1Consistency && $this->file2Consistency;\r\n }\r\n }", "protected function constrain()\n {\n $this->table->where($this->foreign_key(), '=', $this->base->get_key());\n }", "public function setLevel($level)\n {\n $this->level = $level;\n $this->childContainer->setLevel($level + 1);\n }", "public function setComplianceStatus($val)\n {\n $this->_propDict[\"complianceStatus\"] = $val;\n return $this;\n }", "public function setLevel($level) \n {\n $level = abs(filter_var($level, FILTER_SANITIZE_NUMBER_INT));\n if($level < 1 || $level > 12)\n {\n throw new Exception('Level must be between 1, 12');\n } else {\n $this->level = $level;\n }\n }", "public function getLevel() {\n return $this->level;\n }", "public function setBasicQuorum($basicQuorum) {}", "public function isConsistent() {}", "public function getReadConcern()\n {\n return $this->readConcern;\n }", "protected function _ValidateStatement( $theStatement, $theLevel )\n\t{\n\t\t//\n\t\t// Check statement data type.\n\t\t//\n\t\tif( (! is_array( $theStatement ))\n\t\t && (! $theStatement instanceof CQueryStatement) )\n\t\t\tthrow new CException\n\t\t\t\t( \"Invalid query statement\",\n\t\t\t\t kERROR_INVALID_STATE,\n\t\t\t\t kMESSAGE_TYPE_ERROR,\n\t\t\t\t array( 'Statement' => $theStatement ) );\t\t\t\t\t\t// !@! ==>\n\n\t\t//\n\t\t// Parse by statement index.\n\t\t//\n\t\tswitch( $condition = key( $theStatement ) )\n\t\t{\n\t\t\tcase kOPERATOR_AND:\n\t\t\tcase kOPERATOR_NAND:\n\t\t\tcase kOPERATOR_OR:\n\t\t\tcase kOPERATOR_NOR:\n\t\t\t\t$this->_ValidateCondition( $condition, $theStatement, $theLevel + 1 );\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\n\t\t\t\t//\n\t\t\t\t// Check statement operator.\n\t\t\t\t//\n\t\t\t\tif( array_key_exists( kAPI_QUERY_OPERATOR, $theStatement ) )\n\t\t\t\t{\n\t\t\t\t\t//\n\t\t\t\t\t// Parse by operator.\n\t\t\t\t\t//\n\t\t\t\t\tswitch( $theStatement[ kAPI_QUERY_OPERATOR ] )\n\t\t\t\t\t{\n\t\t\t\t\t\tcase kOPERATOR_DISABLED:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t\tcase kOPERATOR_EQUAL:\n\t\t\t\t\t\tcase kOPERATOR_EQUAL_NOT:\n\t\t\t\t\t\tcase kOPERATOR_LIKE:\n\t\t\t\t\t\tcase kOPERATOR_LIKE_NOT:\n\t\t\t\t\t\tcase kOPERATOR_PREFIX:\n\t\t\t\t\t\tcase kOPERATOR_PREFIX_NOCASE:\n\t\t\t\t\t\tcase kOPERATOR_CONTAINS:\n\t\t\t\t\t\tcase kOPERATOR_CONTAINS_NOCASE:\n\t\t\t\t\t\tcase kOPERATOR_SUFFIX:\n\t\t\t\t\t\tcase kOPERATOR_SUFFIX_NOCASE:\n\t\t\t\t\t\tcase kOPERATOR_REGEX:\n\t\t\t\t\t\tcase kOPERATOR_LESS:\n\t\t\t\t\t\tcase kOPERATOR_LESS_EQUAL:\n\t\t\t\t\t\tcase kOPERATOR_GREAT:\n\t\t\t\t\t\tcase kOPERATOR_GREAT_EQUAL:\n\t\t\t\t\t\tcase kOPERATOR_IRANGE:\n\t\t\t\t\t\tcase kOPERATOR_ERANGE:\n\t\t\t\t\t\tcase kOPERATOR_IN:\n\t\t\t\t\t\tcase kOPERATOR_NI:\n\t\t\t\t\t\tcase kOPERATOR_ALL:\n\t\t\t\t\t\tcase kOPERATOR_NALL:\n\t\t\t\t\t\t\tif( ! array_key_exists( kAPI_QUERY_TYPE, $theStatement ) )\n\t\t\t\t\t\t\t\tthrow new CException\n\t\t\t\t\t\t\t\t\t( \"Invalid query: missing filter match data type\",\n\t\t\t\t\t\t\t\t\t kERROR_OPTION_MISSING,\n\t\t\t\t\t\t\t\t\t kMESSAGE_TYPE_ERROR,\n\t\t\t\t\t\t\t\t\t array( 'Element' => kAPI_QUERY_TYPE,\n\t\t\t\t\t\t\t\t\t\t\t 'Statement' => $theStatement ) );\t// !@! ==>\n\t\t\t\t\t\tcase kOPERATOR_EX:\n\t\t\t\t\t\t\tif( ! array_key_exists( kAPI_QUERY_DATA, $theStatement ) )\n\t\t\t\t\t\t\t\tthrow new CException\n\t\t\t\t\t\t\t\t\t( \"Invalid query: missing filter data\",\n\t\t\t\t\t\t\t\t\t kERROR_OPTION_MISSING,\n\t\t\t\t\t\t\t\t\t kMESSAGE_TYPE_ERROR,\n\t\t\t\t\t\t\t\t\t array( 'Element' => kAPI_QUERY_DATA,\n\t\t\t\t\t\t\t\t\t\t\t 'Statement' => $theStatement ) );\t// !@! ==>\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase kOPERATOR_NULL:\n\t\t\t\t\t\tcase kOPERATOR_NOT_NULL:\n\t\t\t\t\t\t\tif( ! array_key_exists( kAPI_QUERY_SUBJECT, $theStatement ) )\n\t\t\t\t\t\t\t\tthrow new CException\n\t\t\t\t\t\t\t\t\t( \"Invalid query: missing subject in statement\",\n\t\t\t\t\t\t\t\t\t kERROR_OPTION_MISSING,\n\t\t\t\t\t\t\t\t\t kMESSAGE_TYPE_ERROR,\n\t\t\t\t\t\t\t\t\t array( 'Element' => kAPI_QUERY_SUBJECT,\n\t\t\t\t\t\t\t\t\t\t\t 'Statement' => $theStatement ) );\t// !@! ==>\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new CException\n\t\t\t\t\t\t\t\t( \"Invalid query: unsupported operator\",\n\t\t\t\t\t\t\t\t kERROR_UNSUPPORTED,\n\t\t\t\t\t\t\t\t kMESSAGE_TYPE_ERROR,\n\t\t\t\t\t\t\t\t array( 'Operator'\n\t\t\t\t\t\t\t\t\t\t=> $theStatement\n\t\t\t\t\t\t\t\t\t\t\t[ kAPI_QUERY_OPERATOR ] ) );\t\t// !@! ==>\n\t\t\t\t\t\n\t\t\t\t\t} // Parsing by operator.\n\t\t\t\t\n\t\t\t\t} // Has operator.\n\t\t\t\t\n\t\t\t\t//\n\t\t\t\t// Handle missing statement.\n\t\t\t\t//\n\t\t\t\telse\n\t\t\t\t\tthrow new CException\n\t\t\t\t\t\t( \"Invalid query: missing operator in statement\",\n\t\t\t\t\t\t kERROR_OPTION_MISSING,\n\t\t\t\t\t\t kMESSAGE_TYPE_ERROR,\n\t\t\t\t\t\t array( 'Element' => kAPI_QUERY_OPERATOR,\n\t\t\t\t\t\t\t\t 'Statement' => $theStatement ) );\t\t\t\t// !@! ==>\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\n\t\t} // Parsing statement index.\n\t\t\n\t}", "function beginTransaction()\r\n\t\t{\r\n\t\t$this->transaction=FALSE;\r\n\t\t$this->query=\"START TRANSACTION \";\r\n\t\t$this->query.=($this->transaction_isolation)?\" ISOLATION LEVEL \".$this->transaction_isolation:\"\";\r\n\t\t$this->query.=($this->lock_type)?$this->lock_type:\"\";\r\n\t\t$this->runQuery();\r\n\t\t$this->transaction=TRUE;\r\n\t\t}", "public function ensureConsistency()\n {\n if ($this->aPublisher !== null && $this->publisher_id !== $this->aPublisher->getPublisherId()) {\n $this->aPublisher = null;\n }\n if ($this->aLanguage !== null && $this->language_id !== $this->aLanguage->getLanguageId()) {\n $this->aLanguage = null;\n }\n if ($this->aPlace !== null && $this->publish_place_id !== $this->aPlace->getPlaceId()) {\n $this->aPlace = null;\n }\n if ($this->aFrequency !== null && $this->frequency_id !== $this->aFrequency->getFrequencyId()) {\n $this->aFrequency = null;\n }\n if ($this->aUser !== null && $this->uid !== $this->aUser->getUserId()) {\n $this->aUser = null;\n }\n }", "public function getTransactionNestingLevel()\n {\n return $this->transactionNestingLevel;\n }", "public static function getByLevel($level = Level::LEVEL_NONE, $system = self::SCORE_SYSTEM_10)\r\n {\r\n /*if ($system === self::SCORE_SYSTEM_100) {\r\n \t$levels = [\r\n\t // rare / insignificant\r\n\t 'none' => 0,\r\n\t // unlikely / minor\r\n\t 'low' => self::SCORE_LOW_MIN,\r\n\t // possible / moderate\r\n\t 'medium' => self::SCORE_MEDIUM_MIN,\r\n\t // likely / major\r\n\t 'high' => self::SCORE_HIGH_MIN,\r\n\t // almost certain / catastrophic\r\n\t 'critical' => self::SCORE_CRITICAL_MIN,\r\n\t ];\r\n } else if ($system === self::SCORE_SYSTEM_5) {\r\n \t$levels = [\r\n\t // rare / insignificant\r\n\t 'none' => 0,\r\n\t // unlikely / minor\r\n\t 'low' => 0.16,\r\n\t // possible / moderate\r\n\t 'medium' => 2,\r\n\t // likely / major\r\n\t 'high' => 3,\r\n\t // almost certain / catastrophic\r\n\t 'critical' => 4,\r\n\t ];\r\n } else {\r\n \t$levels = [\r\n\t // rare / insignificant\r\n\t 'none' => 0,\r\n\t // unlikely / minor\r\n\t 'low' => 0.3,\r\n\t // possible / moderate\r\n\t 'medium' => 4,\r\n\t // likely / major\r\n\t 'high' => 7,\r\n\t // almost certain / catastrophic\r\n\t 'critical' => 9,\r\n\t ];\r\n }*/\r\n\r\n if ($system === self::SCORE_SYSTEM_100) {\r\n \t$levels = [\r\n\t // rare / insignificant\r\n\t 'none' => 2.9,\r\n\t // unlikely / minor\r\n\t 'low' => self::SCORE_LOW_MAX,\r\n\t // possible / moderate\r\n\t 'medium' => self::SCORE_MEDIUM_MAX,\r\n\t // likely / major\r\n\t 'high' => self::SCORE_HIGH_MAX,\r\n\t // almost certain / catastrophic\r\n\t 'critical' => self::SCORE_CRITICAL_MAX,\r\n\t ];\r\n } else if ($system === self::SCORE_SYSTEM_5) {\r\n \t$levels = [\r\n\t // rare / insignificant\r\n\t 'none' => 0.15,\r\n\t // unlikely / minor\r\n\t 'low' => 1.9,\r\n\t // possible / moderate\r\n\t 'medium' => 2.9,\r\n\t // likely / major\r\n\t 'high' => 3.9,\r\n\t // almost certain / catastrophic\r\n\t 'critical' => 5.0,\r\n\t ];\r\n } else {\r\n \t$levels = [\r\n\t // rare / insignificant\r\n\t 'none' => 0.29,\r\n\t // unlikely / minor\r\n\t 'low' => 3.9,\r\n\t // possible / moderate\r\n\t 'medium' => 6.9,\r\n\t // likely / major\r\n\t 'high' => 8.9,\r\n\t // almost certain / catastrophic\r\n\t 'critical' => 10.0,\r\n\t ];\r\n }\r\n\r\n if (isset($levels[$level])) return intval(round($levels[$level], 0, PHP_ROUND_HALF_DOWN));\r\n }", "public function getLevel()\n {\n return$this->level;\n }", "public function setRollbackOnly()\n {\n if ($this->transactionNestingLevel === 0) {\n throw ConnectionException::noActiveTransaction();\n }\n\n $this->isRollbackOnly = true;\n }", "public function testUpdateValidAlertLevel() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"alertLevel\");\n\n\t\t// create a new Alert Level and insert to into mySQL\n\t\t$alertLevel = new AlertLevel (null, $this->VALID_alertCode, $this->VALID_alertFrequency, $this->VALID_alertPoint, $this->VALID_alertOperator);\n\t\t$alertLevel->insert($this->getPDO());\n\n\t\t// edit the alertLevel and update it in mySQL\n\t\t$alertLevel->setAlertCode($this->VALID_alertCode2);\n\t\t$alertLevel->update($this->getPDO());\n\n\t\t// grab the data from mySQL and enforce the fields match our expectations\n\t\t$pdoAlertLevel = AlertLevel::getAlertLevelByAlertId($this->getPDO(), $alertLevel->getalertId());\n\t\t$this->assertSame($numRows + 1, $this->getConnection()->getRowCount(\"alertLevel\"));\n\t\t$this->assertSame($pdoAlertLevel->getAlertCode(), $this->VALID_alertCode2);\n\t\t$this->assertSame($pdoAlertLevel->getAlertFrequency(), $this->VALID_alertFrequency);\n\t\t$this->assertSame($pdoAlertLevel->getAlertPoint(), $this->VALID_alertPoint);\n\t\t$this->assertSame($pdoAlertLevel->getAlertOperator(), $this->VALID_alertOperator);\n\t}", "public function setSeverity($severity)\n {\n $this->addFieldToFilter('severity', ['eq' => $severity * 1]);\n return $this;\n }", "public function setCompressionLevel($level)\n {\n $this->compression = $level;\n }", "public function getLevel()\n {\n return $this->level;\n }", "public function getLevel()\n {\n return $this->level;\n }", "public function getLevel()\n {\n return $this->level;\n }" ]
[ "0.54391", "0.54391", "0.54391", "0.54391", "0.54391", "0.539124", "0.539124", "0.53371596", "0.53371596", "0.53371596", "0.53371596", "0.48485973", "0.471771", "0.46443698", "0.45958912", "0.45412344", "0.45077625", "0.44904783", "0.4417916", "0.44117102", "0.44077125", "0.43384445", "0.43227354", "0.43222508", "0.42658523", "0.42457053", "0.42340606", "0.4225537", "0.41910452", "0.4190474", "0.41779765", "0.4172079", "0.41541925", "0.41465905", "0.413401", "0.41311452", "0.4109646", "0.41006863", "0.4071115", "0.40529352", "0.40415394", "0.4039612", "0.40369263", "0.4012504", "0.4006033", "0.39882326", "0.3981532", "0.397482", "0.39520195", "0.39366713", "0.39249656", "0.3913337", "0.39117154", "0.39042524", "0.38957822", "0.38906065", "0.3883918", "0.38600507", "0.38465846", "0.38454786", "0.3844505", "0.38420573", "0.3831297", "0.38218373", "0.3809619", "0.38008744", "0.3800085", "0.37944475", "0.378869", "0.3784924", "0.37840965", "0.37779394", "0.37544507", "0.37390137", "0.37318763", "0.3729147", "0.37242004", "0.37208614", "0.37117758", "0.36919704", "0.36884865", "0.36857882", "0.36597738", "0.3654384", "0.36533287", "0.36473742", "0.3643605", "0.36357608", "0.36319298", "0.36311784", "0.36270773", "0.36245006", "0.36232767", "0.36186945", "0.36101952", "0.3595421", "0.35922855", "0.3583497", "0.3583497", "0.3583497" ]
0.72178763
0
Specify whether this query is a onetime query, or if it if it should be prepared.
public function adhoc($adhoc) { $this->adhoc = !!$adhoc; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_main_query()\n {\n }", "public function isPrepared();", "public function isPrepared();", "function isSQL() {\n\t\treturn $this->flagSQL;\n\t}", "private function isSelectQuery()\n\t{\n\t\treturn sizeof($this->selects) > 0;\n\t}", "public function isQueryable()\n {\n return $this->isQueryable;\n }", "function is_select_statement()\n {\n return isset($this->object->_query_args['is_select']) && $this->object->_query_args['is_select'];\n }", "public function query()\n\t{\n\t\treturn false;\n\t}", "public function canSetQueryable()\n {\n return $this->canSetQueryable;\n }", "function getBooleanQuery(){\n return $this->_query;\n }", "function is_select_statement()\n {\n return $this->object->_select_clause ? TRUE : FALSE;\n }", "public function has_query()\n\t{\n\t\treturn ! empty( $this->get_query() );\n\t}", "public function isQueryMutable($sql)\n {\n $operations = array_merge(\n Config::inst()->get(static::class, 'write_operations'),\n Config::inst()->get(static::class, 'ddl_operations')\n );\n return $this->isQueryType($sql, $operations);\n }", "public function canSetQueryName()\n {\n return $this->canSetQueryName;\n }", "private function isInsertQuery()\n\t{\n\t\treturn $this->insert_table != null;\n\t}", "public function isPrepared(): bool\n {\n return $this->ipHash() === null;\n }", "function query($query, $use_prepare=false) {\n\t\treturn false;\n\t}", "public function canSetQueryName();", "public function supports_transaction_status_query()\n\t\t{\n\t\t\treturn true;\n\t\t}", "public function isQueryExceptions()\n {\n return $this->getAttribute(\\PDO::ATTR_ERRMODE) == \\PDO::ERRMODE_EXCEPTION;\n }", "public function allow_cache() {\n\t\treturn $this->query_str == $this->query_escaped;\n\t}", "final public function setToPrepared()\n {\n $this->prepared = true;\n }", "public function getTimeEnabled()\n {\n return !empty($_GET['t']) ? $_GET['t'] : false;\n }", "public function prepare(/*# string */ $sql)/*# : bool */;", "function setQuery($ezSQL='') {\n global $_ezQuery, $_ezMysqli;// $_ezCubrid, $_ezOracle8_9, $_ezOracleTNS; 'recordset' ,'oracle8_9', 'oracletns',\n global $_ezPdo, $_ezPostgresql, $_ezRecordset, $_ezSqlite3, $_ezSqlsrv;\n if (in_array(strtolower($ezSQL), array( 'cubrid', 'mysqli', 'pdo', 'postgresql', 'sqlite3', 'sqlsrv' ))) {\n switch(strtolower($ezSQL)) {\n // case 'cubrid':\n // $_ezQuery = $_ezCubrid;\n // break;\n case 'mysqli':\n $_ezQuery = $_ezMysqli;\n break;\n // case 'oracle8_9':\n // $_ezQuery = $_ezOracle8_9;\n // break;\n // case 'oracletns':\n // $_ezQuery = $_ezOracleTNS;\n // break;\n case 'pdo':\n $_ezQuery = $_ezPdo;\n break;\n case 'postgresql':\n $_ezQuery = $_ezPostgresql;\n break;\n case 'recordset':\n $_ezQuery = $_ezRecordset;\n break;\n case 'sqlite3':\n $_ezQuery = $_ezSqlite3;\n break;\n case 'sqlsrv':\n $_ezQuery = $_ezSqlsrv;\n break; \n }\n return (!empty($_ezQuery)) ? true: false; \n } else {\n\t\t\t$_ezQuery = null;\n unset($_ezQuery);\n return false; \n }\n }", "function setQuery($ezSQL='') {\n global $_ezQuery, $_ezMysqli;// $_ezCubrid, $_ezOracle8_9, $_ezOracleTNS; 'recordset' ,'oracle8_9', 'oracletns',\n global $_ezPdo, $_ezPostgresql, $_ezRecordset, $_ezSqlite3, $_ezSqlsrv;\n if (in_array(strtolower($ezSQL), array( 'cubrid', 'mysqli', 'pdo', 'postgresql', 'sqlite3', 'sqlsrv' ))) {\n switch(strtolower($ezSQL)) {\n // case 'cubrid':\n // $_ezQuery = $_ezCubrid;\n // break;\n case 'mysqli':\n $_ezQuery = $_ezMysqli;\n break;\n // case 'oracle8_9':\n // $_ezQuery = $_ezOracle8_9;\n // break;\n // case 'oracletns':\n // $_ezQuery = $_ezOracleTNS;\n // break;\n case 'pdo':\n $_ezQuery = $_ezPdo;\n break;\n case 'postgresql':\n $_ezQuery = $_ezPostgresql;\n break;\n case 'recordset':\n $_ezQuery = $_ezRecordset;\n break;\n case 'sqlite3':\n $_ezQuery = $_ezSqlite3;\n break;\n case 'sqlsrv':\n $_ezQuery = $_ezSqlsrv;\n break; \n }\n return (!empty($_ezQuery)) ? true: false; \n } else {\n\t\t\t$_ezQuery = null;\n unset($_ezQuery);\n return false; \n }\n }", "public function scopeIsTimed($query)\n\t{\n\n\t\t$date = date(\"Y-m-d\");\n\t\treturn $query\n\t\t\t->where('is_timed', '=', 1)\n\t\t\t->where('publish_start', '<=', $date . \" 00:00:00\")\n\t\t\t->where('publish_end', '>=', $date . \" 23:59:59\");\n\n\t}", "public function canSetQueryable();", "function pre_query() { \r\n // Unset invalid date values before the query runs.\r\n if (!empty($this->view->args) && count($this->view->args) > $this->position) {\r\n $argument = $this->view->args[$this->position];\r\n $parts = $this->date_handler->arg_parts($argument);\r\n if (empty($parts[0]['date']) && empty($parts[0]['period'])) {\r\n unset($this->view->args[$this->position]); \r\n }\r\n }\r\n \r\n $this->get_query_fields();\r\n if (!empty($this->query_fields)) {\r\n foreach ($this->query_fields as $query_field) {\r\n $field = $query_field['field'];\r\n // Explicitly add this table using add_table so Views does not\r\n // remove it if it is a duplicate, since that will break the query.\r\n $this->query->add_table($field['table_name'], NULL, NULL, $field['table_name']);\r\n }\r\n }\r\n }", "function checkStateSQL($getPara) {\r\n if ($getPara == '') {\r\n return false;\r\n } else\r\n if ($getPara == null) {\r\n return false;\r\n } else\r\n if ($getPara == '0') {\r\n return false;\r\n }\r\n if (EMPTY($getPara)) {\r\n return false;\r\n }\r\n return true;\r\n}", "public function hasSql(){\n return $this->_has(1);\n }", "protected function _isCleared()\n\t{\n\t\t// Initialisation\n\t\t$return = true;\n\n\t\t// Tests\n\t\tif ($this->_query !== null) $return = false;\n\t\tif ($this->_set !== null) $return = false;\n\t\tif ($this->_where !== null) $return = false;\n\t\tif ($this->_limit !== null) $return = false;\n\n\t\treturn $return;\n\t}", "public function sql ( /* void */ )\n {\n /*\n Never used or not complete ?\n */\n if (($this->sMethod === false))\n {\n if (empty($this->aFields) and empty($this->aValues) and\n empty($this->aTables) and empty($this->aJoin) and\n empty($this->aWhere) and empty($this->aLike))\n {\n return null;\n }\n else\n {\n return false;\n }\n }\n /*\n Switch by method.\n */\n $func = '_sql_' . $this->sMethod;\n return $this->$func();\n }", "private function _prepareGenericStatement($statementName, $query)\n {\n // prepare the statement\n $this->$statementName = $this->_pdo->prepare($query);\n return ($this->$statementName) ? true : false;\n }", "public function set_query($query_string) {\n\t\t\n\t\t$query_type = 'SELECT';\n\t\t$trimmed_query = '';\n\t\t\n\t\tif ($query_string) {\n\t\t\t\n\t\t\t$trimmed_query = trim($query_string); \n\t\t\t\n\t\t\t$query_type = strtoupper(substr($trimmed_query,0,6) );\n\t\t\t\n\t\t\t$this->QUERY = $trimmed_query;\t\n\t\t\t$this->QUERY_TYPE = $query_type;\n\t\t\t\n\t\t\t// clear out the query args\n $this->clear_arguments();\n\t\t\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t$this->except(MYSQLI_ERR_MISSING_QUERY);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn True;\n\t\t\n\t}", "public function isWriteQuery( $sql ) {\n\t\treturn !preg_match( '/^(?:SELECT|BEGIN|ROLLBACK|COMMIT|SET|SHOW|EXPLAIN|\\(SELECT)\\b/i', $sql );\n\t}", "public function isSkipSql()\n {\n return ($this->skipSql || $this->isAlias() || $this->isForReferenceOnly());\n }", "public function setQuery($query){\n\t $this->instance->setQuery($query);\n\t\treturn true;\n\t}", "public function hasStatement(): bool\n {\n return !!$this->statement;\n }", "public function beforeQuery()\n\t{\n\t\tif (!$this->checkPermissions()) {\n\t\t\treturn $this->modx->lexicon('access_denied');\n\t\t}\n\n\t\treturn true;\n\t}", "public abstract function should_execute();", "protected function getQueryType()\n {\n }", "public function prepare($query) {\r\n\t\t// store query in query variable\r\n\t\t$this->query = $query;\r\n\t\t\r\n\t\treturn TRUE;\r\n\t}", "public function hasQuery() {\n return $this->_has(4);\n }", "public function beforeQuery()\n {\n if (!$this->checkPermissions()) {\n return $this->modx->lexicon('access_denied');\n }\n\n return true;\n }", "public function hasStatement();", "public function query_start($query)\n {\n if (($this->mode > 0) and (!$this->sql_query_running)) {\n $this->sql_query_running = true;\n $this->sql_query_start = microtime(true);\n $this->sql_query_string = $query;\n }\n }", "protected function _timeCondition($query) {\n if (!empty($query['conditions']['time']) && array_key_exists($query['conditions']['time'], $this->times)) {\n $this->request['uri']['query']['time'] = $query['conditions']['time'];\n }\n return $query;\n }", "abstract public function Query($query, $type = DBA::ASSOC);", "public function setQuery($q)\n {\n if (is_string($q)) {\n $this->options['Query'] = $q;\n } else {\n return false;\n }\n }", "private function overstepped(): bool {\n\t\treturn (bool) (new Storage\\ParameterizedQuery(\n\t\t\t$this->database,\n\t\t\t'SELECT 1\n\t\t\tFROM parts\n\t\t\tINNER JOIN subscriptions ON subscriptions.part_id = parts.id \n\t\t\tWHERE user_id = ?\n\t\t\tHAVING COUNT(parts.id) >= ?',\n\t\t\t[$this->user->id(), self::LIMIT]\n\t\t))->field();\n\t}", "public function hasSql(): bool\n {\n return isset($this->sql);\n }", "public function queryStart($mode){\n if (strtoupper($mode) == \"SELECT\") {\n $this->queryString = \"SELECT \";\n }elseif (strtoupper($mode) == \"UPDATE\") {\n $this->queryString = \"UPDATE \";\n }elseif (strtoupper($mode) == \"DELETE\") {\n $this->queryString = \"DELETE \";\n }elseif (strtoupper($mode) == \"INSERT\") {\n $this->queryString = \"INSERT \";\n }elseif (strtoupper($mode) == \"CREATE\") {\n $this->queryString = \"CREATE \";\n }elseif (strtoupper($mode) == \"DROP\") {\n $this->queryString = \"DROP \";\n }elseif (strtoupper($mode) == \"ALTER\") {\n $this->queryString = \"ALTER \";\n }\n return $this;\n }", "public function hasQuery()\n {\n if (func_num_args() == 0) {\n return !empty($this->query);\n }\n\n foreach (func_get_args() as $key) {\n if (!$this->hasParam($this->query, $key)) {\n return false;\n }\n }\n\n return true;\n }", "abstract function _is_conn();", "protected function getNotExpiredStatement() {}", "public static function enableQueryLog()\n {\n }", "public function execute(string $query = null): bool;", "function wp_query_checker(){\n\t\n\tglobal $wp_query;\n\t\n\tif ( ! isset( $wp_query ) ) {\n\t\t\t_doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );\n\t\t\treturn false;\n\t}\n\t\n\treturn true;\n\t\n}", "abstract protected function initQuery(): void;", "public function isQueryWrite($sql)\n {\n $operations = Config::inst()->get(static::class, 'write_operations');\n return $this->isQueryType($sql, $operations);\n }", "public function isAuthed() {\n return $this->state == 2;\n }", "private function setQuery($sql){\n $this->isStatement = false;\n return $this->sqli->query($sql);\n }", "public function setIsQueryable(?bool $value): void {\n $this->getBackingStore()->set('isQueryable', $value);\n }", "function Explain($sql,$partial=false)\n\t{\n\t\treturn false;\n\t}", "public function isPending()\n {\n return $this->isSuccessfulQuery() && $this->isPendingTransaction();\n }", "public function query($query = \"NONEE\"){\n\t\t\n\t\tif($update = $query === \"NONEE\")\n\t\t\t$query = $this->query; \t\t\t\t\t\n\t\t\n\t\t$this->query_total++;\n\t\t\n\t\t$query_check = trim($query);\n\t\t\n\t\tif($this->debug){\n\t\t\techo \"<br/><strong style=\\\"color:#E4C100\\\">&lt;DEBUG&gt;</strong><br/>\";\n\t\t\techo $this->comment != \"\" ? \"<span style=\\\"color:#D3C26E;font-style:italic\\\">#\".$this->comment.\"</span><br/>\" : \"\";\n\t\t\techo \"<span style=\\\"color:#E4C100\\\">\".$query.\"</span><br/><strong style=\\\"color:#E4C100\\\">&lt;/DEBUG&gt;</strong><br/>\";\n\t\t}\n\t\t\n\t\t$resultset = $this->showErrors ? mysqli_query($this->connection,$query) : @mysqli_query($this->connection,$query);\n\t\t\n\t\t$proceed_log = $this->log && ( \n\t\t(stripos($query_check,\"INSERT\") === 0 && $this->log_options{0} === '1')\n\t\t||\n\t\t(stripos($query_check,\"DELETE\") === 0 && $this->log_options{1} === '1')\n\t\t||\n\t\t(stripos($query_check,\"UPDATE\") === 0 && $this->log_options{2} === '1')\n\t\t||\n\t\t(stripos($query_check,\"SELECT\") === 0 && $this->log_options{3} === '1'));\n\t\t\n\t\tif(stripos($query_check,\"INSERT\") === 0 || stripos($query_check,\"DELETE\") === 0 || stripos($query_check,\"UPDATE\") === 0)\n\t\t\tif(!$resultset)\n\t\t\t\t$this->transaction = false;\n\t\t\n\t\tif($proceed_log){\n\t\t\t$log_fields = \"query,date,user\";\n\t\t\t$log_values=\"'\".$this->secure($query).\"',NOW(),\".$this->log_user;\n\t\t}\n\t\t\n\t\tif(!$resultset){\n\t\t\tif($this->showErrors){ \n\t\t\t\techo \"<br/><strong style=\\\"color:red\\\">&lt;QERROR&gt;</strong><br/>\";\n\t\t\t\techo $this->comment != \"\" ? \"<span style=\\\"color:#E88888;font-style:italic\\\">#\".$this->comment.\"</span><br/>\" : $this->comment.\"nada\";\n\t\t\t\techo \"<span style=\\\"color:red\\\">\".mysqli_error($this->connection).\" at \".$query_check.\"</span><br/><strong style=\\\"color:red\\\">&lt;/QERROR&gt;</strong><br/>\";\n\t\t\t}\n\t\t\tif($proceed_log){\n\t\t\t\t$log_fields .= \",error\";\n\t\t\t\t$log_values .= \",'\".mysqli_error($this->connection).\"'\";\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tif($proceed_log){\t\t\t\n\t\t\t@mysqli_query($this->connection,\"INSERT INTO \".$this->log_table.\"($log_fields) VALUES($log_values)\");\n\t\t}\n\t\t\n\t\tif(!$resultset && $this->closeOnError) \n\t\t\texit;\n\t\t\n\t\tif($update)\n\t\t\t$this->resultset = $resultset;\n\t\t\n\t\treturn $resultset; \n\t}", "public function prepare_query()\n {\n }", "public function isUpdate(){\n\t\treturn isset($this->{$this->getPrimaryKey()}) ? true : false;\n\t}", "function change_query($request = NULL, $user_query = NULL) {\n $default_query = array(\n 'case' => 'select',\n 'query' => QUERY_SELECT_ALL\n );\n if (!empty($request) && !is_bool($request)) {\n $getValue = array_keys($request);\n $sanitized_req = filter_var($getValue[0], FILTER_SANITIZE_STRING);\n switch ($sanitized_req) {\n case 'IMG' :\n $this->query = array(\n 'case' => 'real_img',\n 'query' => QUERY_SELECT_IMG\n );\n break;\n case 'INFO' :\n $this->query = array(\n 'case' => 'api',\n 'query' => QUERY_SELECT_JSON\n );\n break;\n default :\n $this->query = $default_query;\n }\n } else if (is_bool($request)) {\n $this->query = array(\n 'case' => 'insert',\n 'query' => $user_query\n );\n } else {\n $this->query = $default_query;\n }\n }", "function userCanQueryDatabase( $sessionID ) {\r\n\t\treturn FALSE;\r\n\t}", "public function check_queries() {\r\n\t\tQueryManager::check_queries();\r\n\t}", "final protected function is_con()\r\n\t{\r\n\t\tif (isset($this->con)) {\r\n\t\t\tif ($this->is_user($this->con))\r\n\t\t\t\treturn TRUE;\r\n\t\t}\r\n\t\treturn FALSE;\r\n\t}", "public function enableQueryLog()\n {\n $this->loggingQueries = true;\n }", "protected function prepareQuery($query) {}", "function aecom_should_filter_query( $query ) {\n if ( ! $query->is_main_query() ) return false;\n if ( $query->is_admin() ) return false;\n return true;\n}", "private function initQuery()\n {\n // reset\n $this->result = false;\n \n $this->errorCode = 0;\n $this->errorMessage = '';\n }", "private function initializeStatement( $clear = false )\r\n {\r\n if ( isset( $this->stmt ) && $this->stmt instanceof PDOStatement && !$clear ) {\r\n return;\r\n }\r\n $sql = $this->sql . \" LIMIT ? OFFSET ?\";\r\n $this->logger->log ( $sql );\r\n $this->stmt = $this->conn->prepare( $sql );\r\n $nextIndex = 1;\r\n if ( $this->mode == self::MODE_PARAMETERIZED ) {\r\n for ( $i = 0; $i < count( $this->values); $i++) {\r\n if ( is_bool( $this->values[$i] ) ) {\r\n $this->stmt->bindValue( $i+1, $this->values[$i], PDO::PARAM_BOOL );\r\n } else {\r\n $this->stmt->bindValue( $i+1, $this->values[$i] );\r\n }\r\n }\r\n $nextIndex = ++$i;\r\n }\r\n $this->index['max'] = $nextIndex++;\r\n $this->index['start'] = $nextIndex++;\r\n }", "public function isPdo();", "protected function getIsPublicQuery()\n {\n return $this->isPublicQuery;\n }", "public function isWriteQuery($sql)\n\t{\n\t\tif( ! preg_match('/^\\s*\"?(INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|TRUNCATE|LOAD DATA|SET|COPY|ALTER|GRANT|REVOKE|LOCK|UNLOCK)\\s+/i', $sql))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "abstract public function query($type, $sql, $asObject = false, array $params = null);", "public function getIsQueryable(): ?bool {\n $val = $this->getBackingStore()->get('isQueryable');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'isQueryable'\");\n }", "function OnBeforeGetDataBuildQuery($db, $format, &$mode, &$selector, &$where, &$order, &$limit){\n\t\treturn true;\n\t}", "public function query($query)\n {\n // TODO: psr Logger\n $this->_log[] = $query;\n\n if ($this->_debug_mode) {\n return false;\n }\n\n $ret = parent::query($query);\n return $ret;\n }", "public function logQueries(bool $value = true): self\n {\n $this->logQueries = $value;\n return $this;\n }", "public function query() {\n // Leave empty to avoid a query on this field.\n }", "public function isInTimeout();", "public function __construct($statement)\n {\n if (!$this->setString($statement)) {\n return false;\n }\n\n return true;\n }", "function setPrepare($on=true) {\n $this->prepareActive = ($on) ? true : false;\n\t\treturn null;\n\t}", "public function getQueryType()\n {\n return $this->query_type;\n }", "public function getIsPreparedValue () {\n return 'OK';\n }", "protected static function can($sql) {\r\n\t\t$op = strtoupper(substr(ltrim($sql),0,strpos($sql, ' ')));\r\n\t\treturn (in_array($op, self::$ignored_ops) || in_array($op, self::$journalled_ops));\r\n\t}", "public function getIsNewSingleExecution() {}", "private function allowOrdersAtAnytime()\n {\n return (bool) get_option('ALLOW_ANYTIME_FOOD_ORDERS');\n }", "public function testQueryDatasourceFalse()\n {\n $expected = [\n 'id' => 99,\n 'username' => 'ADmad',\n 'group' => ['name' => 'admin'],\n ];\n $token = JWT::encode($expected, Security::getSalt());\n $this->auth->setConfig('queryDatasource', false);\n\n $request = new ServerRequest();\n $request = $request->withEnv('HTTP_AUTHORIZATION', 'Bearer ' . $token);\n $result = $this->auth->getUser($request, $this->response);\n $this->assertEquals($expected, $result);\n\n $request = new ServerRequest(['url' => 'posts/index?token=' . $token]);\n $result = $this->auth->getUser($request, $this->response);\n $this->assertEquals($expected, $result);\n }", "public function requiresSQLGrouping()\n {\n return !$this->canToggle();\n }", "private function odbc()\n\t{\n\t\treturn FALSE;\n\t}", "function is_where( )\n {\n return !empty($this->_sWhere);\n }", "protected function getIsFriendQuery()\n {\n return $this->isFriendQuery;\n }", "protected function mysqlSetup($query){\n \treturn $this->mysqlBool($query);\n }" ]
[ "0.62132025", "0.5963333", "0.5963333", "0.57191944", "0.5574271", "0.55414736", "0.5422013", "0.53774524", "0.53589475", "0.53367025", "0.5310714", "0.5281376", "0.5254743", "0.52240187", "0.5216532", "0.5212526", "0.51900566", "0.51817244", "0.5171921", "0.5156452", "0.5150688", "0.513013", "0.5075895", "0.50111395", "0.49984667", "0.49984667", "0.4962884", "0.4962109", "0.4952049", "0.49389264", "0.49378943", "0.49362302", "0.49342656", "0.49221382", "0.49098614", "0.49080983", "0.4907672", "0.49047005", "0.49042764", "0.49032006", "0.4898536", "0.4898124", "0.48892164", "0.48861286", "0.48783225", "0.48673174", "0.486367", "0.4861236", "0.48576024", "0.4856539", "0.48446918", "0.4840962", "0.48376143", "0.48358294", "0.48342633", "0.48266402", "0.48152938", "0.4811756", "0.4810472", "0.4809398", "0.47968063", "0.4796022", "0.4772193", "0.47692788", "0.47632724", "0.47620997", "0.47575885", "0.47545528", "0.47545442", "0.47406697", "0.47375762", "0.4737534", "0.4735232", "0.4734598", "0.47340304", "0.47288564", "0.47277802", "0.47198138", "0.47197455", "0.47160682", "0.4696307", "0.4685443", "0.46712974", "0.4662853", "0.46602878", "0.46520707", "0.46518764", "0.46454376", "0.46419212", "0.46222693", "0.46132815", "0.4612193", "0.45908076", "0.4590257", "0.4586907", "0.4585588", "0.4582867", "0.45794404", "0.45793352", "0.4577782", "0.45763135" ]
0.0
-1
Generates the N1QL object as it will be passed to the server.
public function toObject() { return $this->options; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createQuery() ;", "static public function fromString($str) {\n $res = new CouchbaseN1qlQuery();\n $res->options['statement'] = $str;\n $res->adhoc = true;\n return $res;\n }", "protected function genQuery(){\n $secretKey = $this->store->getSecretAccessKey();\n \n unset($this->options['Signature']);\n $this->options['Timestamp'] = $this->genTime();\n $this->options['Signature'] = $this->_signParameters($this->options, $secretKey);\n return $this->_getParametersAsString($this->options);\n }", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", "function unity_query_k_gen() {\r\n $length = func_arg(0);\r\n $key = get_random($length);\r\n return \"{'key':'\" . $key . \"'}\";\r\n}", "abstract public function newQuery();", "function createQueryObject($ifc, $con){\r\n\t\tdie('Not implemented');\r\n\t}", "private function _generateQuery() {\n\t\t// vyhodnoceni odeslanych filtracnich dat\n\t\t$filterObj = $this->getRequest()->getParam(\"_filter\", null);\n\t\t$uuid = $this->getRequest()->getParam(\"id\", null);\n\t\t$uuids = $this->getRequest()->getParam(\"_uuids\", null);\n\t\t\n\t\t// vyhodnoceni stavu\n\t\tif ($uuid) {\n\t\t\t// uuid byl odeslan primo v requestu\n\t\t\t$this->_queryObject = array($uuid);\n\t\t\t\n\t\t\treturn;\n\t\t} elseif ($uuids) {\n\t\t\t// byl odeslan seznam uuid\n\t\t\t$this->_queryObject = (array) $uuids;\n\t\t\t\n\t\t\treturn;\n\t\t} elseif (!$filterObj) {\n\t\t\t// zadna z moznosti nebyla vyuzita\n\t\t\t$this->_queryObject = array();\n\t\t}\n\t\t\n\t\t/**\n\t\t * pokud program dosel az sem, byl odeslan plnohodnotny filtracni objekt\n\t\t */ \n\t\t\n\t\t// reset referenci\n\t\tBB_Db_Query_Reference::clearTables();\n\t\t\n\t\t// vytvoreni filtracniho objektu a ziskani seznamu tabulek\n\t\t$queryObj = BB_Db_Query_Factory::factory($filterObj);\n\t\t$tableNames = BB_Db_Query_Reference::getTables();\n\t\t\n\t\t// vygenerovani seznamu pouzitych sloupcu z index\n\t\t$usedColumns = $this->getRequest()->getParam(\"_uuidColumns\", array());\n\t\t$usedColumns = (array) $usedColumns;\n\t\t\n\t\tif (!$usedColumns) {\n\t\t\t// seznam pouzitych sloupci je prazdny - toto neni pripustne\n\t\t\tthrow new Zend_Exception(\"UUID_COLUMNS_NOT_SET\", 400);\n\t\t}\n\t\t\n\t\t$usedReferences = array();\n\t\t\n\t\tforeach ($usedColumns as $column) {\n\t\t\t$reference = new BB_Db_Query_Reference($column);\n\t\t\t\n\t\t\t// kontrola jestli je tabulka v seznamu\n\t\t\tif (!in_array($reference->getTable(), $tableNames)) {\n\t\t\t\t// tabulka neni v seznamu, vyhodi se chyba\n\t\t\t\tthrow new Zend_Exception(\"UNKNOWN_INDEX_UUID_COLUMN\", 400);\n\t\t\t}\n\t\t\t\n\t\t\t$usedReferences[] = new BB_Db_Query_Reference($column);\n\t\t}\n\t\t\n\t\t// anulace statickych vlastnosti reference\n\t\tBB_Db_Query_Reference::clearTables();\n\t\t\n\t\t// vygenerovani infomraci pro filtraci dat\n\t\t$filterData = new stdClass;\n\t\t\n\t\t$filterData->columns = $usedReferences;\n\t\t$filterData->query = $queryObj;\n\t\t$filterData->tables = $tableNames;\n\t\t\n\t\t// nastaveni objektu\n\t\t$this->_queryObject = $filterData;\n\t\t\n\t\treturn $this;\n\t}", "abstract protected function buildQuery(): string;", "public function newQuery();", "function query() {}", "function graphql_init()\n {\n }", "public function createQuery()\n {\n $query = &atknew(\"atk.db.atk{$this->m_current_clusternode->m_type}query\");\n $query->m_db = $this;\n return $query;\n }", "abstract public function query();", "public function __construct(){\n $this->parser = new Parser\\LL1_Parser(CustomQueryColumnGenerator::TOKEN_SYMBOLS, CustomQueryColumnGenerator::GRAMMAR, 'EXPR');\n $this->parser->SetExpressionTreeGenerator(new Parser\\TreeGenerators\\CustomQueryTreeGenerator(CustomQueryColumnGenerator::TOKEN_SYMBOLS));\n $this->context = new ContextEngine();\n }", "public function createQuery() {\n\t\treturn $this->queryFactory->create($this->objectType);\n\t}", "public function toQuery();", "public function assemble()\n {\n $queryString = array();\n\n $queryString[] = $this->query['type'];\n\n // Select query\n if ($this->query['type'] == \"SELECT\"\n or $this->query['type'] == \"SELECT DISTINCT\") {\n // Build columns to select\n $queryString[] = $this->buildSelectColumns();\n\n // From\n $queryString[] = \"FROM `{$this->query['table']}`\";\n\n // Joins\n if (array_key_exists('joins', $this->query)) {\n $queryString[] = $this->buildJoins();\n }\n\n // Where\n $queryString[] = $this->buildWhere();\n\n // Custom SQL\n if (array_key_exists('sql', $this->query)) {\n $queryString[] = $this->query['sql'];\n }\n\n // Order by\n if (array_key_exists('order_by', $this->query)) {\n $queryString[] = \"ORDER BY \" . implode(\", \", $this->query['order_by']);\n }\n }\n // Insert\n elseif ($this->query['type'] == \"INSERT INTO\") {\n // Table\n $queryString[] = \"`{$this->query['table']}`\";\n\n // Get the columns and values\n $columns = $values = array();\n foreach ($this->query['data'] as $column => $value) {\n $columns[] = $this->columnName($column);\n $values[] = $this->processValue($value);\n }\n\n // Add columns and values to query\n $queryString[] = \"(\" . implode(',', $columns) . \")\";\n $queryString[] = \"VALUES (\" . implode(',', $values) . \")\";\n }\n // Update\n elseif ($this->query['type'] == \"UPDATE\") {\n // Table\n $queryString[] = \"`{$this->query['table']}`\";\n\n // Set values\n $values = array();\n foreach ($this->query['data'] as $column => $value) {\n // Process column name\n $column = $this->columnName($column);\n\n // Add value to bind queue\n $valueBindKey = \"new_\" . str_replace(array('.', '`'), array('_', ''), $column);\n $this->valuesToBind[$valueBindKey] = $value;\n\n // Add to values\n $values[] = $column . \" = :{$valueBindKey}\";\n }\n\n // Add values to query\n $queryString[] = \"SET \" . implode(\", \", $values);\n\n $queryString[] = $this->buildWhere();\n }\n // Delete from\n elseif ($this->query['type'] == \"DELETE\") {\n // Table\n $queryString[] = \"FROM `{$this->query['table']}`\";\n\n // Where\n $queryString[] = $this->buildWhere();\n }\n\n return implode(\" \", str_replace(\"{prefix}\", $this->prefix, $queryString));\n }", "abstract protected function buildSQL(): string;", "public function generate_npc(){\n $this->empty_db();\n foreach ($this->npcList as $key => $npctype){\n\n if (array_key_exists('hardware', $npctype)) {\n if (array_key_exists('type', $npctype)) {\n /**\n *\n * ISP,MD,EVILCORP,SAFENET,FBI,NSA,BITCOIN,DC,TORRENT\n *\n */\n //var_dump($this->npcList[$key]);\n // echo 'Adding Special NPC, type='.$this->npcList[$key]['type'].', info='.($this->npcList[$key]).', key='.$key;\n $this->add($this->npcList[$key]['type'], $this->npcList[$key], $key);\n }\n }\n // WHOIS, BANK, PUZZLE, NPC\n if (!array_key_exists('hardware', $npctype)) {\n if (array_key_exists('type', $npctype)) {\n $required = array('LEVEL1', 'LEVEL2', 'LEVEL3');\n if (count(array_intersect_key(array_flip($required), $npctype)) === 0) {\n foreach ($this->npcList[$key] as $key2 => $array) {\n //echo 'Adding Special NPC, type='.$this->npcList[$key]['type'].', info='.($this->npcList[$key]).', key='.$key;\n if ($key2 != 'type') {\n $this->add($this->npcList[$key]['type'], $this->npcList[$key][$key2], $key . \"/\" . $key2);\n }\n }\n }\n }\n }\n // HIRE MISSIONS NPC\n if (!array_key_exists('hardware', $npctype)) {\n if (!array_key_exists('type', $npctype)) {\n if (array_key_exists('LEVEL1', $npctype)) {\n //var_dump($this->npcList[$key]);\n // echo 'Adding Special NPC, type=' . $this->npcList[$key]['type'] . ', info=' . ($this->npcList[$key]) . ', key=' . $key;\n foreach ($this->npcList[$key] as $key2 => $array) {\n\n //echo 'Adding Special NPC, type='.$this->npcList[$key]['type'].', info='.($this->npcList[$key]).', key='.$key;\n if ($this->npcList[$key][$key2]['type'] != 61) {\n //var_dump($this->npcList[$key][$key2]);\n foreach ($this->npcList[$key][$key2] as $key3 => $array) {\n if ($key3 != 'type') {\n //var_dump($this->npcList[$key][$key2][$key3]);\n $this->add($this->npcList[$key][$key2]['type'], $this->npcList[$key][$key2][$key3], $key . \"/LEVEL1/\" . $key3);\n }\n }\n }\n }\n }\n if (array_key_exists('LEVEL2', $npctype)) {\n //var_dump($this->npcList[$key]);\n // echo 'Adding Special NPC, type=' . $this->npcList[$key]['type'] . ', info=' . ($this->npcList[$key]) . ', key=' . $key;\n //$this->add($this->npcList[$key]['type'], $this->npcList[$key][$key2], $key . \"/LEVEL2/\" . $key2);\n foreach ($this->npcList[$key] as $key2 => $array) {\n\n //echo 'Adding Special NPC, type='.$this->npcList[$key]['type'].', info='.($this->npcList[$key]).', key='.$key;\n if ($this->npcList[$key][$key2]['type'] != 61) {\n //var_dump($this->npcList[$key][$key2]);\n foreach ($this->npcList[$key][$key2] as $key3 => $array) {\n if ($key3 != 'type') {\n //var_dump($this->npcList[$key][$key2][$key3]);\n $this->add($this->npcList[$key][$key2]['type'], $this->npcList[$key][$key2][$key3], $key . \"/LEVEL2/\" . $key3);\n }\n }\n }\n }\n }\n if (array_key_exists('LEVEL3', $npctype)) {\n // var_dump($this->npcList[$key]);\n // echo 'Adding Special NPC, type=' . $this->npcList[$key]['type'] . ', info=' . ($this->npcList[$key]) . ', key=' . $key;\n // $this->add($this->npcList[$key]['type'], $this->npcList[$key][$key2], $key . \"/LEVEL3/\" . $key2);\n foreach ($this->npcList[$key] as $key2 => $array) {\n\n //echo 'Adding Special NPC, type='.$this->npcList[$key]['type'].', info='.($this->npcList[$key]).', key='.$key;\n if ($this->npcList[$key][$key2]['type'] != 61) {\n //var_dump($this->npcList[$key][$key2]);\n foreach ($this->npcList[$key][$key2] as $key3 => $array) {\n if ($key3 != 'type') {\n //var_dump($this->npcList[$key][$key2][$key3]);\n $this->add($this->npcList[$key][$key2]['type'], $this->npcList[$key][$key2][$key3], $key . \"/LEVEL3/\" . $key3);\n }\n }\n }\n }\n }\n }\n }\n }\n\n }", "public function run()\n {\n DocumentType::create(['name' => 'DNI', 'digits' => '8', 'code' => '1']);\n DocumentType::create(['name' => 'Carnet Ext.', 'digits' => '12', 'code' => '4']);\n DocumentType::create(['name' => 'RUC', 'digits' => '11', 'code' => '5']);\n DocumentType::create(['name' => 'Pasaporte', 'digits' => '12', 'code' => '7']);\n DocumentType::create(['name' => 'Cedula diplomatica de identidad.', 'digits' => '15', 'code' => 'A']);\n DocumentType::create(['name' => 'No domiciliado.', 'digits' => '15', 'code' => '0']);\n DocumentType::create(['name' => 'Otros', 'digits' => '15', 'code' => '-']);\n }", "public function GenerateNewPO1ByPO1()\n\t{\n\t\t$array = array(\"PO1\");\n\t\t//PO1 01\n\t\t$array[] = $this->getPO101();\n\t\t//PO1 02\n\t\t$array[] = $this->getPO102();\n\t\t//PO1 03\n\t\t$array[] = self::PO103_EA;\n\t\t//PO1 04\n\t\t$array[] = \"\";\n\t\t//PO1 05\n\t\t$array[] = \"\";\n\t\t//PO1 06\n\t\t$array[] = self::PO106_SK;\n\t\t//PO1 07\n\t\t$array[] = $this->getPO107();\n\t\treturn new PO1($array);\n\t}", "public function constructQuery(){\n try {\n // Sparql11query.g:59:3: ( CONSTRUCT constructTemplate ( datasetClause )* whereClause solutionModifier ) \n // Sparql11query.g:60:3: CONSTRUCT constructTemplate ( datasetClause )* whereClause solutionModifier \n {\n $this->match($this->input,$this->getToken('CONSTRUCT'),self::$FOLLOW_CONSTRUCT_in_constructQuery215); \n $this->pushFollow(self::$FOLLOW_constructTemplate_in_constructQuery217);\n $this->constructTemplate();\n\n $this->state->_fsp--;\n\n // Sparql11query.g:60:31: ( datasetClause )* \n //loop8:\n do {\n $alt8=2;\n $LA8_0 = $this->input->LA(1);\n\n if ( ($LA8_0==$this->getToken('FROM')) ) {\n $alt8=1;\n }\n\n\n switch ($alt8) {\n \tcase 1 :\n \t // Sparql11query.g:60:31: datasetClause \n \t {\n \t $this->pushFollow(self::$FOLLOW_datasetClause_in_constructQuery219);\n \t $this->datasetClause();\n\n \t $this->state->_fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break 2;//loop8;\n }\n } while (true);\n\n $this->pushFollow(self::$FOLLOW_whereClause_in_constructQuery222);\n $this->whereClause();\n\n $this->state->_fsp--;\n\n $this->pushFollow(self::$FOLLOW_solutionModifier_in_constructQuery224);\n $this->solutionModifier();\n\n $this->state->_fsp--;\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "private function createBaseQuery(): string\n {\n // Prefix the table columns with 'entries.'\n $tableColumns = array_map(function ($column) {\n return 'entries.' . $column;\n }, self::TABLE_COLUMNS);\n\n if ($this->listView) {\n // Filter out the properties that are not available to the listview\n $jsonColumns = array_filter($this->properties, function (Collection\\Property $property) {\n return $property->getIncludeInJsonListView();\n });\n }\n\n // Create the select syntax for the json data column\n $jsonColumns = array_map(function (Collection\\Property $property) {\n return $this->jsonUnquote($property->getIdentifier()) . ' AS `' . $property->getIdentifier() . '`';\n }, $jsonColumns ?? $this->properties);\n\n // Merge both of the above\n $columns = array_merge($tableColumns, $jsonColumns);\n\n // Create the select statement\n $select = implode(', ', $columns);\n\n // Create the query\n // We need the entries.data to be able to perform a HAVING query on it, when parsing the entry, the DATA object is removed\n return 'SELECT entries.data, ' . $select . ' FROM collection_entries AS entries WHERE entries.collection_id = :collection_id AND entries.active = 1 ';\n }", "abstract protected function initQuery(): void;", "public static function query();", "public function newModelQuery();", "public function query();", "public function query();", "public function query();", "protected function build_sql() {\n\n\t\t$builder = new Builder();\n\n\t\t$select = $this->parse_select();\n\t\t$from = new From( $this->table->get_table_name( $GLOBALS['wpdb'] ), 'q' );\n\n\t\t$where = new Where( 1, true, 1 );\n\n\t\tif ( ( $id = $this->parse_id() ) !== null ) {\n\t\t\t$where->qAnd( $id );\n\t\t}\n\n\t\tif ( ( $transaction = $this->parse_transaction() ) !== null ) {\n\t\t\t$where->qAnd( $transaction );\n\t\t}\n\n\t\tif ( ( $customer = $this->parse_customer() ) !== null ) {\n\t\t\t$where->qAnd( $customer );\n\t\t}\n\n\t\tif ( ( $membership = $this->parse_membership() ) !== null ) {\n\t\t\t$where->qAnd( $membership );\n\t\t}\n\n\t\tif ( ( $seats = $this->parse_seats() ) !== null ) {\n\t\t\t$where->qAnd( $seats );\n\t\t}\n\n\t\tif ( ( $seats_gt = $this->parse_seats_gt() ) !== null ) {\n\t\t\t$where->qAnd( $seats_gt );\n\t\t}\n\n\t\tif ( ( $seats_lt = $this->parse_seats_lt() ) !== null ) {\n\t\t\t$where->qAnd( $seats_lt );\n\t\t}\n\n\t\tif ( ( $active = $this->parse_active() ) !== null ) {\n\t\t\t$where->qAnd( $active );\n\t\t}\n\n\t\t$order = $this->parse_order();\n\t\t$limit = $this->parse_pagination();\n\n\t\tif ( $this->args['return_value'] == 'relationships' ) {\n\n\t\t\t$match = new Where_Raw( 'r.purchase = q.id' );\n\t\t\t$match->qAnd( $where );\n\n\t\t\t$select = $this->parse_select( 'r' );\n\t\t\t$join = new Join( $from, $match );\n\n\t\t\t$from = new From(\n\t\t\t\tManager::get( 'itegms-relationships' )->get_table_name( $GLOBALS['wpdb'] ), 'r'\n\t\t\t);\n\t\t\t$where = $join;\n\t\t}\n\n\t\t$builder->append( $select );\n\t\t$builder->append( $from );\n\t\t$builder->append( $where );\n\t\t$builder->append( $order );\n\n\t\tif ( $limit !== null ) {\n\t\t\t$builder->append( $limit );\n\t\t}\n\n\t\treturn $builder->build();\n\t}", "public function __toString() {\n // to do it. This allows constructs like \"(string) $query\" to work. When\n // the query will be executed, it will be recompiled using the proper\n // placeholder generator anyway.\n if (!$this->compiled()) {\n $this->compile($this->connection, $this);\n }\n\n // Create a sanitized comment string to prepend to the query.\n $comments = $this->connection->makeComment($this->comments);\n\n // SELECT\n $query = $comments . 'SELECT ';\n if ($this->distinct) {\n $query .= 'DISTINCT ';\n }\n\n // FIELDS and EXPRESSIONS\n $fields = array();\n foreach ($this->tables as $alias => $table) {\n if (!empty($table['all_fields'])) {\n $fields[] = $this->connection->escapeTable($alias) . '.*';\n }\n }\n foreach ($this->fields as $alias => $field) {\n // Always use the AS keyword for field aliases, as some\n // databases require it (e.g., PostgreSQL).\n $fields[] = (isset($field['table']) ? $this->connection->escapeTable($field['table']) . '.' : '') . $this->connection->escapeField($field['field']) . ' AS ' . $this->connection->escapeAlias($field['alias']);\n }\n foreach ($this->expressions as $alias => $expression) {\n $fields[] = $expression['expression'] . ' AS ' . $this->connection->escapeAlias($expression['alias']);\n }\n $query .= implode(', ', $fields);\n\n\n // FROM - We presume all queries have a FROM, as any query that doesn't won't need the query builder anyway.\n $query .= \"\\nFROM \";\n foreach ($this->tables as $alias => $table) {\n $query .= \"\\n\";\n if (isset($table['join type'])) {\n $query .= $table['join type'] . ' JOIN ';\n }\n\n // If the table is a subquery, compile it and integrate it into this query.\n if ($table['table'] instanceof SelectQueryInterface) {\n // Run preparation steps on this sub-query before converting to string.\n $subquery = $table['table'];\n $subquery->preExecute();\n $table_string = '(' . (string) $subquery . ')';\n }\n else {\n $table_string = '{' . $this->connection->escapeTable($table['table']) . '}';\n }\n\n // Don't use the AS keyword for table aliases, as some\n // databases don't support it (e.g., Oracle).\n $query .= $table_string . ' ' . $this->connection->escapeTable($table['alias']);\n\n if (!empty($table['condition'])) {\n $query .= ' ON ' . $table['condition'];\n }\n }\n\n // WHERE\n if (count($this->where)) {\n // There is an implicit string cast on $this->condition.\n $query .= \"\\nWHERE \" . $this->where;\n }\n\n // GROUP BY\n if ($this->group) {\n $query .= \"\\nGROUP BY \" . implode(', ', $this->group);\n }\n\n // HAVING\n if (count($this->having)) {\n // There is an implicit string cast on $this->having.\n $query .= \"\\nHAVING \" . $this->having;\n }\n\n // ORDER BY\n if ($this->order) {\n $query .= \"\\nORDER BY \";\n $fields = array();\n foreach ($this->order as $field => $direction) {\n $fields[] = $field . ' ' . $direction;\n }\n $query .= implode(', ', $fields);\n }\n\n // RANGE\n // There is no universal SQL standard for handling range or limit clauses.\n // Fortunately, all core-supported databases use the same range syntax.\n // Databases that need a different syntax can override this method and\n // do whatever alternate logic they need to.\n if (!empty($this->range)) {\n if($this->range['start']) {\n $query .= \"\\nROWS \" . (int) $this->range['length'] . \" TO \" . (int) $this->range['start'] + (int) $this->range['length'];\n } else {\n $query .= \"\\nROWS \" . (int) $this->range['length']; \n }\n }\n\n // UNION is a little odd, as the select queries to combine are passed into\n // this query, but syntactically they all end up on the same level.\n if ($this->union) {\n foreach ($this->union as $union) {\n $query .= ' ' . $union['type'] . ' ' . (string) $union['query'];\n }\n }\n\n if ($this->forUpdate) {\n $query .= ' FOR UPDATE';\n }\n\n return $query;\n }", "public function generateEntityCode()\n {\n $tables = $this->getTables();\n \n $code = \" require_once 'grandprix.data.php';\";\n foreach ($tables as $table)\n {\n $columns = $this->getColumns($table['tableName']);\n $children = $this->getChildren($table['tableName']);\n \n $code .=\n\"\n /**\n * \" . ucfirst($table['tableName']) . \" Data Entity class.\n * \n * @package Grandprix\n * @subpackage Data\n */\n class \" . ucfirst($table['tableName']) . \" extends DataEntity\n { \n\";\n \n foreach ($columns as $column)\n {\n $code .=\n\"\n /**\n * @var \" . self::getPhpType($column['dataType']) . \"\n */\n public \\$\" . ucfirst($column['columnName']) . \";\n\";\n }\n\n $code .=\n\"\n /**\n * Creates an empty instance of this class.\n * \n * @return \" . ucfirst($table['tableName']) . \"\n */\n public static function createInstance()\n {\n \\$className = __CLASS__; return new \\$className();\n }\n \n /**\n * Creates an instance of this class based on the provided data array.\n *\n * @param array \\$data The keyed array containing the data\n * @return \" . ucfirst($table['tableName']) . \"\n */\n public static function fromData(&\\$data)\n {\n \\$entity = self::createInstance();\n \\$entity->setObjectData(\\$data);\n return \\$entity;\n }\n }\n\";\n \n }\n \n return $code;\n }", "function query() {\n }", "function build_query($data)\n {\n }", "function rpc_ql()\n{\n\n global $whitelist, $whitelist_names, $jsonrpc, $method, $params, $id;\n\n $errors = array(); // Log errors\n\n if ($_SERVER['REQUEST_METHOD'] !== 'POST') $errors[] = 'Request method should be POST.'; // Require POST\n if ( empty($jsonrpc) || empty($method) || empty($params) || empty($id) ) $errors[] = 'Please set \"jsonrpc\", \"method\", \"params\", and request \"id\".'; // Require JSON-RPC 2.0 specification.\n if (! empty($jsonrpc) && $jsonrpc !== '2.0') $errors[] = 'JSON-RPC version should be \"2.0\".'; // JSON-RPC version 2.0\n if (empty($params['token'])) $errors[] = 'Please set token as parameter.'; // Require token\n if (empty($params['query'])) $errors[] = 'Please set query as parameter.'; // Require query\n if (! isset($params['data'])) $errors[] = 'Please set data as parameter.'; // Require data; \"data\":[] if empty\n\n // Set token, query and data parameters.\n if (! empty($params['token'])) $token = $params['token'];\n if (! empty($params['query'])) $query = $params['query'];\n if (! empty($params['data'])) $data = $params['data'];\n\n // Token validation - token should be set as '12345'\n if (! hash_equals('12345', $token)) $errors[] = 'Token authentication has failed.';\n\n // Display errors and exit\n if (! empty($errors)) {\n foreach ($errors as $row) echo $row . PHP_EOL;\n exit;\n }\n\n // Retrieve whitelist display names\n $display_names = array();\n foreach ($whitelist as $row) {\n $display_names[] = $row[0];\n }\n\n /* Prepare $query for array conversion */\n // Remove special characters attached to whitelisted terms from $query.\n $query_remove = $query; // Initial conversion of $query to $query_remove.\n $query_remove = str_replace( '%', '', $query_remove );\n $query_remove = str_replace( ',', '', $query_remove );\n $query_remove = str_replace( '(', '', $query_remove );\n $query_remove = str_replace( ')', '', $query_remove );\n $query_remove = str_replace( \"'\", '', $query_remove );\n $query_remove = str_replace( '\"', '', $query_remove );\n $query_array = explode( ' ', $query_remove );\n\n // Declare an error if not in Whitelist Dictionary display names (as string)\n foreach ($query_array as $row) {\n if ( ! stristr(implode('::', $display_names), $row) ) {\n $invalid_query[] = $row;\n }\n }\n\n // Invalid query error\n if (! empty($invalid_query)) {\n $error = 'The query is not valid. Please verify with whitelisted terms.';\n $response = ['jsonrpc' => $jsonrpc, 'result' => NULL, 'error' => ['code' => 32602, 'message' => $error], 'id' => $id];\n echo json_encode($response);\n exit;\n }\n\n /* Proceed with SQL execution. */\n // Convert whitelisted terms to actual database table and field names.\n $sql = $query; // Initial conversion of $query to $sql.\n foreach ($whitelist as $row) {\n $sql = str_ireplace( $row[0], $row[1], $sql );\n }\n\n // Pass an SQL statement over JSON-RPC using PHP PDO with '?' as placeholder, and $data OR $params['data'] as data.\n $servername = \"localhost\"; // server\n $username = \"user\"; // username\n $password = \"pass\"; // password\n $database = \"rpc-ql\"; // database\n\n $conn = new PDO(\"mysql:host=$servername;dbname=$database\", $username, $password);\n $conn->setAttribute( PDO::ATTR_EMULATE_PREPARES, FALSE ); // Array binding without using $stmt->bindValue()\n\n // Convert to actual query statement.\n $stmt = $conn->prepare(\"$sql\");\n if ($stmt == FALSE) exit(json_encode(['jsonrpc' => $jsonrpc, 'error' => ['code' => 32602, 'message' => 'Invalid query statement preparation.'], 'id' => $id])); // Invalid SQL preparation\n $stmt->execute($data);\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n // Set $error to NULL if $sql is a valid query. (JSON-RPC 2.0)\n if (! empty($result) || $result !== FALSE ) $error = NULL;\n\n /* Result Output */\n // If $result from SELECT query is empty or FALSE, show error in JSON-RPC 2.0 format.\n if ( substr($sql, 0, 6) == 'SELECT' && isset($result) && (empty($result) || $result == FALSE ) ) exit(json_encode(['jsonrpc' => $jsonrpc, 'error' => ['code' => 32602, 'message' => 'No results found.'], 'id' => $id]));\n\n // If non-SELECT query is valid, show response result member as 'Success' in JSON-RPC 2.0 format.\n if ( substr($sql, 0, 6) !== 'SELECT' && isset($result) && empty($result)) $result = 'Success';\n\n $result = json_encode($result);\n foreach ($whitelist_names as $row) {\n $result = str_replace( $row[1], $row[0], $result );\n }\n $result = json_decode($result);\n\n // Show output in JSON-RPC 2.0 format.\n $response = ['jsonrpc' => $jsonrpc, 'result' => $result, 'error' => $error, 'id' => $id];\n echo json_encode($response);\n\n}", "private function _get_sql1() {\n\t\tglobal $wpdb;\n\n\t\t$this->SQL1 =\n\t\t\t\"SELECT\n\t\t\t[+count_found_rows+]\n\t\t\t{$wpdb->posts}.ID\n\t\t\t\n\t\t\tFROM {$wpdb->posts}\n\t\t\t[+author_join+]\n\t\t\t[+taxonomy_join+]\n\t\t\tLEFT JOIN {$wpdb->postmeta} ON {$wpdb->posts}.ID={$wpdb->postmeta}.post_id\n\n\t\t\t[+join_for_metasortcolumn+]\n\n\t\t\tWHERE\n\t\t\t(\n\t\t\t1\n\t\t\t[+direct_filter+]\n\t\t\t[+include+]\n\t\t\t[+exclude+]\n\t\t\t[+omit_post_type+]\n\t\t\t[+post_type+]\n\t\t\t[+post_mime_type+]\n\t\t\t[+post_parent+]\n\t\t\t[+post_status+]\n\t\t\t[+yearmonth+]\n\t\t\t[+meta+]\n\t\t\t[+author+]\n\n\n\t\t\t[+taxonomy+]\n\t\t\t[+taxonomy_term+]\n\t\t\t[+taxonomy_slug+]\n\n\t\t\t[+search+]\n\t\t\t[+exact_date+]\n\t\t\t[+date_min+]\n\t\t\t[+date_max+]\n\t\t\t)\n\t\t\t[+append+]\n\n\t\t\tGROUP BY {$wpdb->posts}.ID\n\t\t\tORDER BY [+orderby+] [+order+]\n\t\t\t[+limit+]\n\t\t\t[+offset+]\";\n\n\t\t// Substitute into the query.\n\t\t$hash = array();\n\t\t$hash['count_found_rows'] = ($this->paginate)? 'SQL_CALC_FOUND_ROWS' : '';\n\n\t\t$hash['include'] = $this->_sql_filter($wpdb->posts, 'ID', 'IN', $this->include);\n\t\t$hash['exclude'] = $this->_sql_filter($wpdb->posts, 'ID', 'NOT IN', $this->exclude);\n\t\t$hash['append'] = $this->_sql_append($wpdb->posts);\n\n\t\t$hash['omit_post_type'] = $this->_sql_filter($wpdb->posts, 'post_type', 'NOT IN', $this->omit_post_type);\n\t\t$hash['post_type'] = $this->_sql_filter($wpdb->posts, 'post_type', 'IN', $this->post_type);\n\t\t$hash['post_mime_type'] = $this->_sql_filter_post_mime_type();\n\t\t$hash['post_parent'] = $this->_sql_filter($wpdb->posts, 'post_parent', 'IN', $this->post_parent);\n\t\t$hash['post_status'] = $this->_sql_filter($wpdb->posts, 'post_status', 'IN', $this->post_status);\n\t\t$hash['yearmonth'] = $this->_sql_yearmonth();\n\t\t$hash['meta'] = $this->_sql_meta();\n\t\t\n\t\t// Only add this join if the user has searched on this criteria\n\t\tif (isset($this->author) && !empty($this->author)) {\n\t\t\t$hash['author'] = $this->_sql_filter('author', 'display_name', '=', $this->author);\n\t\t\t$hash['author_join'] = \"LEFT JOIN {$wpdb->users} author ON {$wpdb->posts}.post_author=author.ID\";\n\t\t}\n\t\t\n\t\t// Only add these if a user has searched on taxonomy criteria\n\t\tif (isset($this->taxonomy) && !empty($this->taxonomy)\n\t\t\t&& (isset($this->taxonomy_term) || isset($this->taxonomy_slug)) ) {\n\t\t\t$hash['taxonomy'] = $this->_sql_filter($wpdb->term_taxonomy, 'taxonomy', '=', $this->taxonomy);\n\t\t\t$hash['taxonomy_term'] = $this->_sql_filter($wpdb->terms, 'name', 'IN', $this->taxonomy_term);\n\t\t\t$hash['taxonomy_slug'] = $this->_sql_filter($wpdb->terms, 'slug', 'IN', $this->taxonomy_slug);\n\t\t\t$hash['taxonomy_join'] = \"\n\t\t\t\tLEFT JOIN {$wpdb->term_relationships} ON {$wpdb->posts}.ID={$wpdb->term_relationships}.object_id\n\t\t\t\tLEFT JOIN {$wpdb->term_taxonomy} ON {$wpdb->term_taxonomy}.term_taxonomy_id={$wpdb->term_relationships}.term_taxonomy_id\n\t\t\t\tLEFT JOIN {$wpdb->terms} ON {$wpdb->terms}.term_id={$wpdb->term_taxonomy}.term_id\";\n\t\t}\n\n\t\tif ($this->custom_field_date_flag) {\n\t\t\t$hash['exact_date'] = $this->_sql_custom_date_filter($this->post_date);\n\t\t\t$hash['date_min'] = $this->_sql_custom_date_filter($this->date_min, '>=');\n\t\t\t$hash['date_max'] = $this->_sql_custom_date_filter($this->date_max, '<=');\n\t\t}\n\t\telse {\n\t\t\t$hash['exact_date'] = $this->_sql_filter($wpdb->posts, $this->date_column, '=', $this->post_date);\n\t\t\t$hash['date_min'] = $this->_sql_filter($wpdb->posts, $this->date_column, '>=', $this->date_min);\n\t\t\t$hash['date_max'] = $this->_sql_filter($wpdb->posts, $this->date_column, '<=', $this->date_max);\n\t\t\t// die($hash['date_min']);\n\t\t}\n\n\t\t$hash['search'] = $this->_sql_search();\n\n\t\t$hash['order'] = $this->order;\n\t\t\n\t\t// Custom handling for sorting on custom fields\n\t\t// http://code.google.com/p/wordpress-summarize-posts/issues/detail?id=12\n\t\tif ($this->sort_by_random) {\n\t\t\t$hash['orderby'] = 'RAND()';\n\t\t\t$hash['order'] = ''; // <-- blanks this out!\n\t\t\t$hash['join_for_metasortcolumn'] = '';\n\t\t}\n\t\t// See http://code.google.com/p/wordpress-summarize-posts/issues/detail?id=20\n\t\telseif ($this->sort_by_meta_flag) {\n\t\t\t$hash['orderby'] = 'orderbymeta.meta_value';\n\t\t\t$hash['join_for_metasortcolumn'] = sprintf(\"LEFT JOIN {$wpdb->postmeta} orderbymeta ON %s.ID=orderbymeta.post_id AND orderbymeta.meta_key = %s\"\n\t\t\t\t, $wpdb->posts\n\t\t\t\t, $wpdb->prepare('%s', $this->orderby)\n\t\t\t);\n\t\t}\n\t\t// Standard: sort by a column in wp_posts\n\t\telse {\n\t\t\t$hash['orderby'] = $wpdb->posts.'.'.$this->orderby;\n\t\t\t$hash['join_for_metasortcolumn'] = '';\n\t\t}\n\t\t// This is when the user supplies their own ORDER BY parameters for complex sorting.\n\t\t// Note: right now, I can only think of doing complex sorting on the primary columns from wp_posts \n\t\t// and NOT using custom columns from wp_postmeta.\n\t\tif ($this->orderby_custom_flag) {\n\t\t\t$hash['orderby'] = $this->orderby_custom;\n\t\t\t$hash['order'] = ''; // <-- blanks this out!\t\t\t\n\t\t}\n\n\t\t$hash['limit'] = $this->_sql_limit();\n\t\t$hash['offset'] = $this->_sql_offset();\n\n\t\t// Direct filters (if any), e.g. post_author = 123 or custom_field LIKE '%horse%'\n\t\t$hash['direct_filter'] = '';\n\t\tif ($this->direct_filter_flag) {\n\t\t\tforeach($this->direct_filter_columns as $c) {\n\t\t\t\tif (in_array($c, self::$wp_posts_columns)) {\n\t\t\t\t\t$hash['direct_filter'] .= $this->_sql_filter_posts($c, $this->_get_operator($c), $this->$c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$hash['direct_filter'] .= $this->_sql_filter_postmeta($c,$this->_get_operator($c), $this->$c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!$this->include_hidden_fields) {\n\t\t\t$hash['hidden_fields'] = \"WHERE {$wpdb->postmeta}.meta_key NOT LIKE '\\_%'\";\n\t\t}\n\t\t\n\t\t$this->SQL1 = CCTM::parse($this->SQL1, $hash);\n\n\t\t// Strip whitespace\n\t\t$this->SQL1 = preg_replace('/\\s\\s+/', ' ', $this->SQL1 );\n\n\t\treturn $this->SQL1;\n\n\t}", "abstract function getSQL();", "function graphql($request_data = [])\n {\n }", "public function build()\n\t{\n\t\t$script = \"\";\n\t\t$this->addTable($script);\n\t\t$this->addIndices($script);\n\t\t$this->addForeignKeys($script);\n\t\treturn $script;\n\t}", "public abstract function get_query();", "public function generate()\n {\n $sql = new Str();\n $sql->append('`' . $this->key . '`')\n ->append(' INT');\n\n if(!is_null($this->length))\n {\n $sql->append('(' . $this->length . ')');\n }\n\n if($this->unsigned)\n {\n $sql->append(' UNSIGNED');\n }\n\n if($this->not_null)\n {\n $sql->append(' NOT NULL');\n }\n\n if($this->autoincrement)\n {\n $sql->append(' AUTO_INCREMENT');\n }\n\n if($this->primary_key)\n {\n $sql->append(' PRIMARY KEY');\n }\n\n return $sql->get();\n }", "public function build() {\n\t\t$this->validate_input();\n\n\t\t$tree = $this->sql_tree;\n\n\t\t$pagination_info = $this->make_pagination_info();\n\n\t\tif (!$this->ignore_filtering) {\n\t\t\t$tree = $this->filter_transform->alter($tree, $pagination_info);\n\t\t}\n\t\t$tree = $this->sort_transform->alter($tree, $pagination_info);\n\t\tif (!$this->ignore_pagination) {\n\t\t\tif ($pagination_info instanceof PaginationInfoWithCount) {\n\t\t\t\t$num_rows = $pagination_info->get_row_count();\n\t\t\t}\n\t\t\telseif ($this->settings === null || $this->settings->get_total_rows() === null) {\n\t\t\t\tthrow new Exception(\"SQLBuilder->settings must contain the number of rows in order to paginate properly\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$num_rows = $this->settings->get_total_rows();\n\t\t\t}\n\n\t\t\t$pagination_info_with_count = new PaginationInfoWithCount($pagination_info, $num_rows);\n\t\t\t$tree = $this->pagination_transform->alter($tree, $pagination_info_with_count);\n\t\t}\n\n\t\t$creator = new PHPSQLCreator();\n\t\treturn $creator->create($tree);\n\t}", "public function __toString()\n {\n $query = '';\n\n switch ($this->type) {\n case 'insert':\n $query .= (string) $this->insert;\n\n // Set method\n if ($this->set) {\n $query .= (string) $this->set;\n }\n // Columns-Values method\n elseif ($this->values) {\n if ($this->columns) {\n $query .= (string) $this->columns;\n }\n\n $elements = $this->insert->getElements();\n $tableName = array_shift($elements);\n\n $query .= 'VALUES ';\n $query .= (string) $this->values;\n\n if ($this->autoIncrementField) {\n $query = 'SET IDENTITY_INSERT ' . $tableName . ' ON;' . $query . 'SET IDENTITY_INSERT ' . $tableName . ' OFF;';\n }\n\n if ($this->where) {\n $query .= (string) $this->where;\n }\n }\n\n break;\n\n default:\n $query = parent::__toString();\n break;\n }\n\n return $query;\n }", "private function queryGraphQL($query_name,$query_object,$query,$vars='') {\n $ret = array();\n // PAGE LOOP\n $page=0;\n do {\n $q = $this->buildQueryGraphQl($page,$query_name,$query_object,$query,$vars);\n echo \"$q \\n\";\n $page++;\n } while ($page<10);\n\n return $ret;\n }", "public function query()\n\t{\n\t\t\n\t}", "protected function newBaseQueryBuilder()\n {\n $conn = $this->getConnection();\n\n $grammar = $conn->getQueryGrammar();\n\n $builder = new Builder($conn, $grammar, $conn->getPostProcessor());\n\n if (isset($this->rememberFor)) {\n $builder->remember($this->rememberFor);\n }\n\n if (isset($this->rememberCacheTag)) {\n $builder->cacheTags($this->rememberCacheTag);\n }\n\n //if (isset($this->rememberCachePrefix)) {\n //ToDo: see if using server_hostname or whatever speeds this up\n $tenant = app(\\Hyn\\Tenancy\\Environment::class)->tenant();\n if(isset($tenant->id)){\n $set_tenant = $tenant->id;\n }else{\n $set_tenant = \"default\";\n }\n $builder->prefix($set_tenant);\n //}\n\n if (isset($this->rememberCacheDriver)) {\n $builder->cacheDriver($this->rememberCacheDriver);\n }\n\n return $builder;\n }", "function create () {\n\t\t$stm = DB::$pdo->prepare(\"insert into `generated_object` ({$generator_insert_columns}) \n\t\t\t\t\t\t\t\t values ({$generator_insert_values})\");\n\t\t// generator bind hook\n\t\t$stm->execute();\n\n\t\t$this->id = DB::$pdo->lastInsertId();\n\t}", "public static function query()\n {\n }", "public function generate(Query $query): string;", "function createObject()\n {\n $stmt = $this->mysqli->prepare(\"INSERT INTO object(`name`, `description`, `price`, `typeCoin`, `weight`, `volume`, `limitationStrength`,\n `limitationDex`, `limitationCons`, `limitationInt`, `limitationWis`,`typeObject`, `primal`)\n VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)\");\n $stmt->bind_param(\n \"ssisiiiiiiisi\",\n $this->name,\n $this->description,\n $this->price,\n $this->typeCoin,\n $this->weight,\n $this->volume,\n $this->limitationStrength,\n $this->limitationDex,\n $this->limitationCons,\n $this->limitationInt,\n $this->limitationWis,\n $this->typeObject,\n $this->primal\n );\n $stmt->execute();\n $this->id = $this->mysqli->insert_id;\n $stmt->close();\n }", "public function createQuery(): QueryInterface;", "public function compiler(string $query): object;", "public function buildRequestQuery()\n\t{\n\t\t$query_string = '';\n\t\tforeach ($this->returnItems() as $index => $item) {\n\t\t\t$query_string .= '&' . $item->toQueryString($index++);\n\t\t}\n\t\treturn $query_string;\n\t}", "abstract public function build();", "abstract public function build();", "function to_nquads($context)\n {\n if(empty($context)) {\n throw new \\InvalidArgumentException(\"You must specify the context when serializing to nquads\");\n }\n\n $serializer = new NQuadSerializer();\n return $serializer->getSerializedIndex($this->_index, $this->_labeller->qname_to_alias($context));\n }", "function __toString() {\n\t\treturn $this->query;\n\t}", "private function gen_provSQL() {\n\t\t\t$this -> Retun_val = true;\n\t\t}", "public function __toString(): string\n {\n $this->buildQuery();\n return $this->query;\n }", "public function createQuery()\n {\n $query = $this->persistenceManager->createQueryForType($this->objectType);\n if ($this->defaultOrderings !== []) {\n $query->setOrderings($this->defaultOrderings);\n }\n if ($this->defaultQuerySettings !== null) {\n $query->setQuerySettings(clone $this->defaultQuerySettings);\n }\n return $query;\n }", "public function ormObject();", "function _encode_v1() {\n if ($this->debug) print($this->debugbeg . \"_encode_v1()<HR>\\n\");\n\n if ($this->track) {\n // ID3 v1.1\n $id3pack = 'a3a30a30a30a4a28x1C1C1';\n $newtag = pack($id3pack,\n 'TAG',\n $this->name,\n $this->artists,\n $this->album,\n $this->year,\n $this->comment,\n $this->track,\n $this->genreno\n );\n } else {\n // ID3 v1\n $id3pack = 'a3a30a30a30a4a30C1';\n $newtag = pack($id3pack,\n 'TAG',\n $this->name,\n $this->artists,\n $this->album,\n $this->year,\n $this->comment,\n $this->genreno\n );\n }\n\n if ($this->debug) {\n print('id3pack: ' . $id3pack . \"\\n\");\n $unp = unpack('H*new', $newtag);\n print_r($unp);\n }\n\n if ($this->debug) print($this->debugend);\n return $newtag;\n }", "abstract function build();", "function unity_query_quest() {\r\n $id = func_arg(0);\r\n $lilo_mongo = new LiloMongo();\r\n $lilo_mongo->selectDB('Game');\r\n $lilo_mongo->selectCollection('Quest');\r\n $data = $lilo_mongo->findOne(array(\"ID\" => $id));\r\n if ($data) {\r\n $output['IsActive'] = strtolower($data['IsActive']) == 'true' ? TRUE : FALSE;\r\n $output['IsDone'] = strtolower($data['IsDone']) == 'true' ? TRUE : FALSE;\r\n $output['IsReturn'] = strtolower($data['IsReturn']) == 'true' ? TRUE : FALSE;\r\n $output['ID'] = intval($data['ID']);\r\n $output['RequiredEnergy'] = intval($data['RequiredEnergy']);\r\n $output['Requirement'] = intval($data['Requirement']);\r\n $output['Rewards'] = $data['Rewards'];\r\n $output['RequiredItem'] = $data['RequiredItem'];\r\n $output['Description'] = $data['Description'];\r\n $output['DescriptionNormal'] = $data['DescriptionNormal'];\r\n $output['DescriptionActive'] = $data['DescriptionActive'];\r\n $output['DescriptionDone'] = $data['DescriptionDone'];\r\n $output['StartDate'] = \"\";\r\n $output['EndDate'] = \"\";\r\n if ($data['StartDate'] != \"\") {\r\n $output['StartDate'] = date('Y-m-d', $data['StartDate']->sec);\r\n }\r\n if ($data['EndDate'] != \"\") {\r\n $output['EndDate'] = date('Y-m-d', $data['EndDate']->sec);\r\n }\r\n return json_encode($output);\r\n }\r\n}", "public function make(){\n $query=$this->select.\" \".$this->from;\n if(!empty($this->where)){\n\t$query=$query.\" \".$this->where;\n }\n if(!empty($this->order)){\n\t$query= $query.\" \".$this->order;\n }\n return $query;\n}", "public function __toString()\n {\n if (empty($this->data)) {\n return \"INSERT INTO `{$this->entity->name}` (`id`) VALUES (NULL)\";\n }\n\n $fields = array_keys($this->data);\n\n $query = \"INSERT INTO `{$this->entity->name}`\";\n $query .= ' (`'.implode('`, `', $fields).'`)';\n $query .= ' VALUES (:'.implode(', :', $fields).')';\n\n if ($this->duplications) {\n $query .= ' ON DUPLICATE KEY UPDATE';\n $query .= ' id = LAST_INSERT_ID(id), '.static::buildFields($fields);\n }\n\n return $query;\n }", "public function _query()\n {\n }", "public function Query(){\n\t}", "public function Query(){\n\t}", "public function Query(){\n\t}", "abstract protected function createEntities();", "abstract public function generate();", "public function createQuery()\n\t{\n\t\t$this->tab[] = $this->action;\n\t\t$this->tab[] = !is_array($this->field) ? $this->field : join(', ',$this->field);\n\t\t$this->tab[] = ' FROM '.$this->from;\n\t\tif(!empty($this->where)){$this->tab[] = 'WHERE '.$this->where;}\n\t\tif(!empty($this->and)){$this->tab[] = 'AND '.$this->and;}\n\t\tif(!empty($this->or)){$this->tab[] = 'OR '.$this->or;}\n\t\tif(!empty($this->in)){$this->tab[] = 'IN '.$this->in;}\n\t\tif(!empty($this->beetween)){$this->tab[] = 'BEETWEEN '.$this->beetween;}\n\t\tif(!empty($this->not)){$this->tab[] = 'NOT '.$this->not;}\n\t\tif(!empty($this->like)){$this->tab[] = 'LIKE '.$this->like;}\n\t\tif(!empty($this->order)){$this->tab[] = 'ORDER BY '.$this->order;}\n\t\treturn join(\" \",$this->tab);\n\t}", "public function Query() {\n \n }", "public function newQuery()\n {\n return new Builder($this->connection, $this->grammar, $this->processor);\n }", "abstract public function\r\n\t\tget_query_for_something();", "function __construct(){\n\t\t$this->dp = new DB_Lotterytype();\n\t}", "function __construct($expr, $synt, $params=array(), $class_name='stdClass', $url='.', $params_prefix=null) {\n\t\tglobal $db; // current connection\n\t\t\n\t\t$this->db = $db;\n\t\t$this->expr = $expr;\n\t\t$this->synt = $synt;\n\t\t$this->params = $params;\n\t\t$this->class_name = $class_name;\n\t\t$this->url = $url;\n\t\t$this->params_prefix = $params_prefix;\n\t\t\n\t\t// get number of rows in result\n\t\t$this->db->query('SELECT SQL_CALC_FOUND_ROWS 1 FROM '. $this->synt);\n\t\t$this->rows = $this->db->query('SELECT FOUND_ROWS() rows')->fetch_object()->rows;\n\t\t\n\t\t// set current page number\n\t\tif (!empty($params['p']))\n\t\t\t$this->p = $params['p'];\n\t\t\n\t\t// set number of results per page\n\t\tif (!empty($params['rpp']))\n\t\t\t$this->rpp = $params['rpp'];\t\n\t}", "public function createCreateMethodDeclaration($arg1) \n\t{\n\t\t$str = \"\";\n\t\t$str .= \"public function create(\\$data)\\n{\\r\";\n\t\t$str .= \"\\t\\$sql= \\\"\".$arg1.\"\\\";\\n\";\n\t\t$str .= \"\\t\\$q = \\$this->conn->prepare(\\$sql);\\n\";\n\t\t$str .= \"\\tfor (\\$i=0; \\$i <count(\\$data); \\$i++) { \\n\";\n\t\t$str .= \"\\t\\t\\$q->bindParam(\\$i+1,\\$data[\\$i]);\\n\";\n\t\t$str .= \"\\t}\\n\";\n\t\t$str .= \"\\t\\$q->execute();\\n\";\n\t\t$str .= \"\\treturn true;\";\n\t\t$str .= \"\\n}\\n\\n\\r\";\n\t\treturn $str;\n\t}", "public function getCreateSelfDiagnosis()\n {\n return <<<CQL\nMATCH (q:Question { question: \"If maybe, what condition(s) do you believe you have?\" })-[:HAS_ANSWER]->(a)\nWITH a\nMATCH (a)<-[:ANSWERED]-(p)\nWITH a, COLLECT(p) AS respondents\nMERGE (d:Disorder { name: a.answer })\nWITH d, respondents\nUNWIND respondents AS respondent\nCREATE UNIQUE (respondent)-[:SELF_DIAGNOSIS]->(d);\nCQL;\n }", "function sparql_construct($sparql_endpoint, $uri, $format='application/ld+json')\n{\n\t$url = $sparql_endpoint;\n\t\n\t// Query is string\n\t$query = 'CONSTRUCT {\n ?thing ?p ?o .\n}\nWHERE {\n VALUES ?thing { <' . $uri . '> }\n ?thing ?p ?o .\n}';\t\n\n\t$data = 'query=' . urlencode($query);\n\t\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\tcurl_setopt($ch, CURLOPT_POST, 1);\n\tcurl_setopt($ch, CURLOPT_HEADER, 0);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array(\"Accept: \" . $format));\n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n\n\t$response = curl_exec($ch);\n\tif($response == FALSE) \n\t{\n\t\t$errorText = curl_error($ch);\n\t\tcurl_close($ch);\n\t\tdie($errorText);\n\t}\n\t\n\t$info = curl_getinfo($ch);\n\t$http_code = $info['http_code'];\n\t\n\tif ($http_code != 200)\n\t{\n\t\techo $response;\t\n\t\tdie (\"Triple store returned $http_code\\n\");\n\t}\n\t\n\tcurl_close($ch);\n\t\n\t// Fuseki returns nicely formatted JSON-LD, Blazegraph returns array of horrible JSON-LD\n\t// as first element of an array\n\t\n\t$obj = json_decode($response);\n\tif (is_array($obj))\n\t{\n\t\t$doc = $obj[0];\n\t\t\n\t\t$context = (object)array(\n\t\t\t'@vocab' => 'http://schema.org/'\n\t\t);\n\t\n\t\t$compacted = jsonld_compact($doc, $context);\n\t\t\n\t\t$response = json_encode($compacted, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);\t\t\n\t}\n\t\n\n\treturn $response;\n}", "public function getDrugsQuery ()\n\n{\n\n//this function performs the SPARQL query and saves the result in a EasyRDF array (mixed objects - literals and ressources (uri))\n\n$sparql = new \\EasyRdf_Sparql_Client(self::endpoint);\n\n\n$result = $sparql->query('SELECT ?drug ?drugname ?target ?indication\n\t\t\tWHERE {\n\t\t\t?drug a <http://bio2rdf.org/drugbank_vocabulary:Drug> .\n\t\t\t?drug rdfs:label ?drugname .\n\t\t\t?drug <http://bio2rdf.org/drugbank_vocabulary:target> ?t .\n\t\t\t?t rdfs:label ?target .\n\t\t\tOPTIONAL{\n\t\t\t?drug <http://bio2rdf.org/drugbank_vocabulary:indication> ?indication .}\n\t\t\t} LIMIT 20');\n\n echo '<pre>';\n\nreturn $result;\n\n}", "function get_generated_query($no_entities = FALSE)\n {\n $sql = array();\n if ($this->object->is_select_statement()) {\n $sql[] = $this->object->_select_clause;\n } elseif ($this->object->is_delete_statement()) {\n $sql[] = $this->object->_delete_clause;\n }\n $sql[] = 'FROM `' . $this->object->get_table_name() . '`';\n $where_clauses = array();\n foreach ($this->object->_where_clauses as $where) {\n $where_clauses[] = '(' . $where . ')';\n }\n if ($where_clauses) {\n $sql[] = 'WHERE ' . implode(' AND ', $where_clauses);\n }\n if ($this->object->is_select_statement()) {\n if ($this->object->_group_by_columns) {\n $sql[] = 'GROUP BY ' . implode(', ', $this->object->_group_by_columns);\n }\n if ($this->object->_order_clauses) {\n $sql[] = 'ORDER BY ' . implode(', ', $this->object->_order_clauses);\n }\n if ($this->object->_limit_clause) {\n $sql[] = $this->object->_limit_clause;\n }\n }\n return implode(' ', $sql);\n }", "function getObject ($oid, $recLevel = 0)\n {\n $sparql = \"select ?a ?b ?c FROM <\" . __MYURL__ . \"> WHERE{ {<\" . __MYURL__\n . \"/instances.php?oid=$oid> ?b ?c} UNION{ ?a ?b <\" . __MYURL__ . \"/instances.php?oid=$oid>}}\";\n\n $result = sparql_query($sparql);\n $properties = null;\n $relations = null;\n $type = null;\n while ($row = sparql_fetch_array($result)) {\n if (!isset($row['c'])) {\n $extractedOid = $this->extractOid($row['a']);\n if ($recLevel == 0) {\n $relations[$extractedOid] = array( $row['b'] => NULL );\n }\n else {\n $relations[$extractedOid] =\n array( $row['b'] => new RDFObject(NULL, $this, $extractedOid, $recLevel - 1) );\n }\n }\n else {\n if (!(strpos($row['c'], \"oid\") === false) && $row['b'] != \"ca:hasOid\") {\n $relations[$this->extractOid($row['c'])] = array( $row['b'] => NULL );\n }\n elseif (!(strpos($row['b'], \"instance\") === false)) {\n $type = $row['c'];\n }\n else {\n $properties[$row['b']] = $row['c'];\n\n }\n\n }\n\n }\n\n return array(\n 'relations' => $relations,\n 'properties' => $properties,\n 'type' => $type,\n\n );\n\n\n }", "public abstract function build();", "public abstract function build();", "public function query()\n {\n return new SingleStoreBuilder($this);\n }", "public function generate() {}", "public function generate() {}", "public function generate() {}", "public function generate() {}", "public function generate() {}", "public function generate() {}", "public function generate() {}", "public function generateMetaData($ObjectName) {\n\t\t$Object = Object::create($ObjectName);\n\t\t$fields = array();\n\t\t$db = $Object->db();\n\t\tarray_push($fields, array(\"name\"=>\"ID\", \"type\"=>\"int\")); //\n\t\tforeach($db as $key=>$value) {\n\t\t\t$value = $this->convertTypeToEXT($value);\n\t\t\t$xtype = $this->getInputType($value);\n\t\t\tarray_push($fields, array(\"name\"=>\"{$key}\", \"type\"=>\"{$value}\", \"xtype\"=>\"{$xtype}\")); //\n\t\t}\n\t\t$has_one = $Object->has_one();\n\t\tforeach($has_one as $key=>$value) {\n\t\t\t//array_push($fields, array(\"name\"=>\"{$key}\", \"type\"=>\"{$value}\"));\n\t\t\tif($value == 'Image') {\n\t\t\t\t$xtype = $this->getInputType($value);\n\t\t\t\tarray_push($fields, array(\"name\"=>\"{$key}\", \"mapping\"=>\"{$key}\", \"xtype\"=>\"{$xtype}\"));\n\t\t\t} else {\n\t\t\t\tarray_push($fields, array(\"name\"=>\"{$key}ID\", \"type\"=>\"int\", \"mapping\"=>\"{$key}ID\"));\n\t\t\t}\n\t\t\t$sObject = Object::create($value);\n\t\t\tif($sObject == $Object) {\n\t\t\t} else {\n\t\t\t\t$sdb = $sObject->db();\n\t\t\t\tarray_push($fields, array(\"name\"=>\"{$key}.ID\", \"type\"=>\"int\", \"mapping\"=>\"{$key}.ID\")); //, \"mapping\"=>\"{$key}.ID\"\n\t\t\t\tforeach($sdb as $sKey=>$sValue) {\n\t\t\t\t\t$sValue = $this->convertTypeToEXT($sValue);\n\t\t\t\t\t$xtype = $this->getInputType($sValue);\n\t\t\t\t\tarray_push($fields, array(\"name\"=>\"{$key}.{$sKey}\", \"type\"=>\"{$sValue}\", \"mapping\"=>\"{$key}.{$sKey}\", \"xtype\"=>\"{$xtype}\")); //, \"mapping\"=>\"{$key}.{$sKey}\"\n\t\t\t\t}\n\t\t\t\t$shas_one = $sObject->has_one();\n\t\t\t\tforeach($shas_one as $sKey=>$sValue) {\n\t\t\t\t\t$sValue = $this->convertTypeToEXT($sValue);\n\t\t\t\t\t$xtype = $this->getInputType($sValue);\n\t\t\t\t\tarray_push($fields, array(\"name\"=>\"{$key}.{$sKey}\", \"type\"=>\"{$sValue}\", \"mapping\"=>\"{$key}.{$sKey}\", \"xtype\"=>\"{$xtype}\")); //, \"mapping\"=>\"{$key}.{$sKey}\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$fields = Convert::array2json($fields);\n\t\t$metaData = \"\n\t\t\\\"metaData\\\": {\n\t\t\\\"idProperty\\\": \\\"ID\\\",\n \\\"root\\\": \\\"rows\\\",\n \\\"totalProperty\\\": \\\"results\\\",\n \\\"start\\\": 0,\n \\\"limit\\\": 20,\n \\\"successProperty\\\": \\\"success\\\",\n \\\"fields\\\": {$fields}\n \t},\n \t\";\n\t\treturn $metaData;\n\t}", "public function __toString()\n\t{\n\t\treturn \"Telegram Bot Client coded by Nightfox Nicita\";\n\t}", "function execute()\n\t{\n\t\t$this->obj_table = New table;\n\n\t\t$this->obj_table->language\t= $_SESSION[\"user\"][\"lang\"];\n\t\t$this->obj_table->tablename\t= \"name_servers\";\n\n\t\t// define all the columns and structure\n\t\t$this->obj_table->add_column(\"standard\", \"domain_name\", \"domain_name\");\n\t\t$this->obj_table->add_column(\"standard\", \"domain_serial\", \"soa_serial\");\n\t\t$this->obj_table->add_column(\"standard\", \"domain_description\", \"domain_description\");\n\n\t\t// defaults\n\t\t$this->obj_table->columns\t\t= array(\"domain_name\", \"domain_serial\", \"domain_description\");\n\n\t\t// TODO: we should stop querying directly and use the domains class logic, this would also provide support for multiple backends.\n\t\t// use seporate zone database\n\t\t//$this->obj_table->sql_obj->session_init(\"mysql\", $GLOBALS[\"config\"][\"ZONE_DB_HOST\"], $GLOBALS[\"config\"][\"ZONE_DB_NAME\"], $GLOBALS[\"config\"][\"ZONE_DB_USERNAME\"], $GLOBALS[\"config\"][\"ZONE_DB_PASSWORD\"]);\n\n\t\t// fetch all the domains\n\t\t$this->obj_table->sql_obj->prepare_sql_settable(\"dns_domains\");\n\t\t$this->obj_table->sql_obj->prepare_sql_addfield(\"id\", \"\");\n\t\t$this->obj_table->sql_obj->prepare_sql_addorderby(\"REVERSE(domain_name) LIKE 'apra%'\");\n\t\t$this->obj_table->sql_obj->prepare_sql_addorderby(\"domain_description\");\n\t\t$this->obj_table->sql_obj->prepare_sql_addorderby(\"domain_name\");\n\n\t\t// load data\n\t\t$this->obj_table->generate_sql();\n\t\t$this->obj_table->load_data_sql();\n\t}" ]
[ "0.5777307", "0.5546724", "0.53556037", "0.53152674", "0.53152674", "0.53152674", "0.53151816", "0.53073007", "0.5226906", "0.51508737", "0.5048628", "0.5005474", "0.5004466", "0.49930707", "0.49888346", "0.49442458", "0.49336052", "0.49266568", "0.49264377", "0.48870426", "0.48846123", "0.48614937", "0.48377055", "0.4835115", "0.48224938", "0.4820352", "0.48162368", "0.48143214", "0.4805152", "0.4793419", "0.47933847", "0.47933847", "0.47933847", "0.47774693", "0.47702184", "0.47668767", "0.4746623", "0.47367954", "0.47340184", "0.47283864", "0.47277725", "0.47261497", "0.4719271", "0.47094843", "0.47029036", "0.46987745", "0.46888492", "0.4684859", "0.46795648", "0.4656493", "0.4654644", "0.4653632", "0.46412307", "0.4639584", "0.46385", "0.46377745", "0.46376637", "0.46255898", "0.46255898", "0.46239442", "0.46161774", "0.46146554", "0.4614012", "0.46089897", "0.4607489", "0.45917094", "0.45894182", "0.4588724", "0.45795855", "0.45792925", "0.4566016", "0.45624644", "0.45624644", "0.45624644", "0.45601195", "0.4557817", "0.45573473", "0.45541143", "0.4546233", "0.45445865", "0.45435405", "0.45396778", "0.45343578", "0.45340142", "0.45314223", "0.4525189", "0.45243147", "0.4523584", "0.4522776", "0.4522776", "0.45176193", "0.4512397", "0.4512397", "0.45123905", "0.45123905", "0.45123905", "0.45123905", "0.45123905", "0.45121264", "0.45116526", "0.4507564" ]
0.0
-1
Returns the string representation of this N1ql query (the statement).
public function toString() { return $this->options['statement']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toString()\n {\n return \"is equivalent to the SQL query \". \\PHPUnit_Util_Type::toString($this->sql);\n }", "public function __toString(): string\n {\n $this->buildQuery();\n return $this->query;\n }", "public function __toString()\n {\n $query = '';\n\n switch ($this->type) {\n case 'insert':\n $query .= (string) $this->insert;\n\n // Set method\n if ($this->set) {\n $query .= (string) $this->set;\n }\n // Columns-Values method\n elseif ($this->values) {\n if ($this->columns) {\n $query .= (string) $this->columns;\n }\n\n $elements = $this->insert->getElements();\n $tableName = array_shift($elements);\n\n $query .= 'VALUES ';\n $query .= (string) $this->values;\n\n if ($this->autoIncrementField) {\n $query = 'SET IDENTITY_INSERT ' . $tableName . ' ON;' . $query . 'SET IDENTITY_INSERT ' . $tableName . ' OFF;';\n }\n\n if ($this->where) {\n $query .= (string) $this->where;\n }\n }\n\n break;\n\n default:\n $query = parent::__toString();\n break;\n }\n\n return $query;\n }", "public function __toString() {\n\t\treturn $this->query;\n\t}", "public function __toString(): string\n {\n $last = $this->withColumnName ? \"($this->column)\" : '';\n return $this->query . $last;\n }", "public function __toString() {\n return $this->query;\n }", "public function __toString()\n {\n return $this->getSQL();\n }", "public function __toString(){\n\t\t$output = '';\n\t\tforeach ($this->_queries as $query){\n\t\t\tif (isset($query['sql'])){\n\t\t\t\t$output .= $query['sql'] . PHP_EOL . PHP_EOL;\n\t\t\t}\n\t\t}\n\n\t\treturn $output;\n\t}", "function __toString(): string {\n return $this->getSQL(null);\n }", "protected function sqlToString()\n {\n return implode(' ', $this->query);\n }", "public function __toString()\n {\n return $this->sql;\n }", "public function __toString()\n {\n return $this->sql;\n }", "public function __toString() {\n\t\treturn $this->sql;\n\t}", "function __toString() {\n\t\treturn $this->query;\n\t}", "public function __toString()\n {\n return $this->builder->getSql();\n }", "public function __toString()\n\t{\n\t\treturn $this->sql;\n\t}", "public function __toString() {\r\n return $this->to_sql();\r\n }", "public function __toString(): string\n {\n return sprintf(\n 'SELECT %s FROM %s WHERE %s',\n implode(', ', $this->fields),\n implode(', ', $this->table),\n implode(', ', $this->condition)\n );\n }", "public function to_str() {\n //\n //Construct the sql (select) statement\n $stmt = \n \"select \\n\"\n //\n //Field selection \n . \"{$this->fields->to_str()} \\n\"\n . \"from \\n\"\n //\n //For now the root is simply the name of a table or a bracketed \n //enclose sql \n . \"{$this->root->fromexp()} \\n\"\n //\n //The joins, if any\n . \"{$this->joins->to_str()} \\n\"\n //\n //The where clause, if necessary \n .\"{$this->wheres->to_str()}\";\n return $stmt;\n \n }", "public function __toString() {\n\t\treturn $this->getQuery();\n\t}", "function to_str() {\n return \n //\n //For now we are deleting everything in that record\n \"DELETE {$this->str_values()}\"\n //\n //Get the from expression of the root\n . \"FROM {$this->root->fromexp()}\"\n //\n //the where condition is that the primary value is equal to the \n //primary column\n .\"WHERE {$this->wheres->to_str()} \\n\";\n }", "public function toAql(): string\n {\n $query = $this->query;\n\n foreach ($this->queryParameters as $parameter) {\n if (!$this->container->has($parameter)) {\n throw new StatementException(\"Parameter ($parameter) was not defined for this statement\");\n }\n\n $query = str_replace($parameter, $this->output($parameter), $query);\n }\n\n return utf8_encode($query);\n }", "function to_str(){\n //\n $op1 = $this->operand1->to_str();\n $op2 = $this->operand2->to_str();\n \n //return a valid where clause\n return \"$op1 $this->operator $op2\";\n }", "public function __toString()\n {\n if (empty($this->data)) {\n return \"INSERT INTO `{$this->entity->name}` (`id`) VALUES (NULL)\";\n }\n\n $fields = array_keys($this->data);\n\n $query = \"INSERT INTO `{$this->entity->name}`\";\n $query .= ' (`'.implode('`, `', $fields).'`)';\n $query .= ' VALUES (:'.implode(', :', $fields).')';\n\n if ($this->duplications) {\n $query .= ' ON DUPLICATE KEY UPDATE';\n $query .= ' id = LAST_INSERT_ID(id), '.static::buildFields($fields);\n }\n\n return $query;\n }", "public function __toString() {\n return $this->getQueryId();\n }", "public function __toString()\n {\n return $this->getQuery();\n }", "public function __toString() {\n return str_replace(array_keys($this->param), array_values($this->param), $this->sql);\n }", "public function toString()\n\t{\n\t\tif($this->str === null)\n\t\t{\n\t\t\tif(!empty($this->values))\n\t\t\t{\n\t\t\t\t$len = count($this->values);\n\t\t\t\t$conditions = '';\n\n\t\t\t\tforeach($this->values as $i => $value)\n\t\t\t\t{\n\t\t\t\t\tswitch($value[self::TYPE])\n\t\t\t\t\t{\n\t\t\t\t\t\tcase self::TYPE_RAW:\n\n\t\t\t\t\t\t\t$conditions.= $value[self::COLUMN] . ' ' . $value[self::OPERATOR] . ' ' . $value[self::VALUE];\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase self::TYPE_IN:\n\n\t\t\t\t\t\t\t$params = array();\n\n\t\t\t\t\t\t\tforeach($value[self::VALUE] as $val)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$params[] = self::escape($val);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$conditions.= $value[self::COLUMN] . ' IN (' . implode(',', $params) . ')';\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase self::TYPE_SCALAR:\n\t\t\t\t\t\tdefault:\n\n\t\t\t\t\t\t\t$conditions.= $value[self::COLUMN] . ' ' . $value[self::OPERATOR] . ' ' . self::escape($value[self::VALUE]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\t$conditions.= ($i < $len - 1) ? ' ' . $value[self::CONJUNCTION] . ' ' : '';\n\t\t\t\t}\n\n\t\t\t\treturn $this->str = 'WHERE ' . $conditions;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn $this->str = '';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->str;\n\t\t}\n\t}", "public function getSQL(): string\n {\n if ($this->query === null) {\n throw new Exception('Query wasn\\'t set');\n }\n\n if (is_object($this->query)) {\n if (method_exists($this->query, '__toString')) {\n return $this->query->__toString();\n }\n } else {\n return trim($this->query);\n }\n\n $className = get_class($this->query);\n throw new Exception(\"Can not use class={$className} as database query because it can't be used as string\");\n }", "function to_str() {\n //\n //Test if this sql has an elias \n $alias= is_null($this->alias) ? \"\":\"as `$this->alias`\";\n //\n //the update statement \n $smt=\"\"\n //This is an update statement \n .\"UPDATE \\n\"\n //\n //Get the root from expression as the source table of this update \n //statement \n . \"{$this->root->fromexp()} \\n\"\n . \"SET \\n\"\n //\n //get the values as key values pairs \n .\"{$this->str_values()} \\n\"\n //\n //The joins, if any\n . \"{$this->joins->to_str()} \\n\"\n //\n //the where condition is that the primary value is equal to the \n //primary column\n .\"WHERE {$this->wheres->to_str()} \\n\"\n //\n //include an ellias if any \n .\"$alias\";\n //\n //Return the sql statement\n return $smt;\n }", "public function __toString()\n {\n // SELECT\n $parts = [\"SELECT\"];\n if ($this->select) {\n $parts[] = join(\", \", $this->select);\n } else {\n $parts[] = \"*\";\n }\n\n // FROM\n $parts[] = \"FROM\";\n $parts[] = $this->buildFrom();\n\n\n if (!empty($this->joins)) {\n foreach ($this->joins as $type => $joins) {\n foreach ($joins as [$table, $condition]) {\n $parts[] = strtoupper($type) . \" JOIN $table ON $condition\";\n }\n }\n }\n\n // WHERE\n if (!empty($this->where)) {\n $parts[] = \"WHERE\";\n $parts[] = \"(\" . join(\") AND (\", $this->where) . \")\";\n }\n\n // GROUP BY\n if (!empty($this->group)) {\n $parts[] = \"GROUP BY\";\n $parts[] = join(\", \", $this->group);\n }\n\n // ORDER BY\n if (!empty($this->order)) {\n $parts[] = \"ORDER BY\";\n $parts[] = join(\", \", $this->order);\n }\n\n // LIMIT\n if (!empty($this->limit)) {\n $parts[] = \"LIMIT {$this->limit}\";\n }\n\n return join(\" \", $parts);\n }", "public function __toString() {\n\t\t$sSelect = \"(&\";\n\t\t$sSelect .= $this->sFrom;\n\t\t$sSelect .= $this->sWhere;\n\t\t$sSelect .= \")\";\n\t\treturn $sSelect;\n\t}", "function str()\n\t{\n return\n \"SELECT $this->select\" .\n \" FROM $this->from \" .\n \" WHERE $this->where \" .\n ($this->group_by ? \" GROUP BY $this->group_by\": '') .\n ($this->having ? \" HAVING $this->having\" : '') .\n ($this->order_by ? \" ORDER BY $this->order_by\": '') .\n ($this->limit ? \" LIMIT $this->limit\": '');\t\t\t\n }", "public function __toString() {\n // to do it. This allows constructs like \"(string) $query\" to work. When\n // the query will be executed, it will be recompiled using the proper\n // placeholder generator anyway.\n if (!$this->compiled()) {\n $this->compile($this->connection, $this);\n }\n\n // Create a sanitized comment string to prepend to the query.\n $comments = $this->connection->makeComment($this->comments);\n\n // SELECT\n $query = $comments . 'SELECT ';\n if ($this->distinct) {\n $query .= 'DISTINCT ';\n }\n\n // FIELDS and EXPRESSIONS\n $fields = array();\n foreach ($this->tables as $alias => $table) {\n if (!empty($table['all_fields'])) {\n $fields[] = $this->connection->escapeTable($alias) . '.*';\n }\n }\n foreach ($this->fields as $alias => $field) {\n // Always use the AS keyword for field aliases, as some\n // databases require it (e.g., PostgreSQL).\n $fields[] = (isset($field['table']) ? $this->connection->escapeTable($field['table']) . '.' : '') . $this->connection->escapeField($field['field']) . ' AS ' . $this->connection->escapeAlias($field['alias']);\n }\n foreach ($this->expressions as $alias => $expression) {\n $fields[] = $expression['expression'] . ' AS ' . $this->connection->escapeAlias($expression['alias']);\n }\n $query .= implode(', ', $fields);\n\n\n // FROM - We presume all queries have a FROM, as any query that doesn't won't need the query builder anyway.\n $query .= \"\\nFROM \";\n foreach ($this->tables as $alias => $table) {\n $query .= \"\\n\";\n if (isset($table['join type'])) {\n $query .= $table['join type'] . ' JOIN ';\n }\n\n // If the table is a subquery, compile it and integrate it into this query.\n if ($table['table'] instanceof SelectQueryInterface) {\n // Run preparation steps on this sub-query before converting to string.\n $subquery = $table['table'];\n $subquery->preExecute();\n $table_string = '(' . (string) $subquery . ')';\n }\n else {\n $table_string = '{' . $this->connection->escapeTable($table['table']) . '}';\n }\n\n // Don't use the AS keyword for table aliases, as some\n // databases don't support it (e.g., Oracle).\n $query .= $table_string . ' ' . $this->connection->escapeTable($table['alias']);\n\n if (!empty($table['condition'])) {\n $query .= ' ON ' . $table['condition'];\n }\n }\n\n // WHERE\n if (count($this->where)) {\n // There is an implicit string cast on $this->condition.\n $query .= \"\\nWHERE \" . $this->where;\n }\n\n // GROUP BY\n if ($this->group) {\n $query .= \"\\nGROUP BY \" . implode(', ', $this->group);\n }\n\n // HAVING\n if (count($this->having)) {\n // There is an implicit string cast on $this->having.\n $query .= \"\\nHAVING \" . $this->having;\n }\n\n // ORDER BY\n if ($this->order) {\n $query .= \"\\nORDER BY \";\n $fields = array();\n foreach ($this->order as $field => $direction) {\n $fields[] = $field . ' ' . $direction;\n }\n $query .= implode(', ', $fields);\n }\n\n // RANGE\n // There is no universal SQL standard for handling range or limit clauses.\n // Fortunately, all core-supported databases use the same range syntax.\n // Databases that need a different syntax can override this method and\n // do whatever alternate logic they need to.\n if (!empty($this->range)) {\n if($this->range['start']) {\n $query .= \"\\nROWS \" . (int) $this->range['length'] . \" TO \" . (int) $this->range['start'] + (int) $this->range['length'];\n } else {\n $query .= \"\\nROWS \" . (int) $this->range['length']; \n }\n }\n\n // UNION is a little odd, as the select queries to combine are passed into\n // this query, but syntactically they all end up on the same level.\n if ($this->union) {\n foreach ($this->union as $union) {\n $query .= ' ' . $union['type'] . ' ' . (string) $union['query'];\n }\n }\n\n if ($this->forUpdate) {\n $query .= ' FOR UPDATE';\n }\n\n return $query;\n }", "public function __toString()\n\t{\n\t\t// Initialize variables.\n\t\t$query = '';\n\n\t\t// Add the SELECT and FROM clauses.\n\t\t$query .= 'SELECT '.implode(',', $this->_select);\n\t\t$query .= \"\\nFROM \".implode(',', $this->_from);\n\n\t\t// Special case for JOIN clauses.\n\t\tif ($this->_join) {\n\t\t\t$query .= \"\\n\".implode(\"\\n\", $this->_join);\n\t\t}\n\n\t\t// Add the WHERE clause if it exists.\n\t\tif ($this->_where) {\n\t\t\t$query .= \"\\nWHERE \".$this->_where;\n\t\t}\n\n\t\t// Add the optional GROUP BY and HAVING clauses if they exist.\n\t\tif ($this->_group) {\n\t\t\t$query .= \"\\nGROUP BY \".implode(',', $this->_group);\n\t\t}\n\t\tif ($this->_having) {\n\t\t\t$query .= \"\\nHAVING \".implode(',', $this->_having);\n\t\t}\n\n\t\t// Add any UNION queries.\n\t\tforeach ($this->_union as $union)\n\t\t{\n\t\t\t$query .= \"\\nUNION\".((!$union->unionDistinct) ? ' ALL' : '');\n\t\t\t$query .= \"\\n\".$union;\n\t\t}\n\n\t\t// Add the optional ORDER BY clause if it exists.\n\t\tif ($this->_order) {\n\t\t\t$query .= \"\\nORDER BY \".implode(',', $this->_order);\n\t\t}\n\n\t\treturn $query;\n\t}", "public function getSQL() {\n return $this->_connection->processQuery($this, true);\n }", "public function getSQL(): string\n {\n return $this->getQuery()->getSQL();\n }", "public function __toString()\n {\n $sql = array();\n foreach ($this->items as $command => $args)\n if (!empty($args))\n $sql[] = sprintf(\"%s %s\", $command, $args);\n\n return implode(' ', $sql);\n }", "public function __toString(): string\n {\n return \"DELETE FROM \".$this->table.$this->getWhere();\n }", "public function toSql()\n {\n if (0 === count($this->getParams())) {\n return 'SELECT *';\n } else {\n return 'SELECT ' . implode(', ', $this->getParams());\n }\n }", "public function __toString()\n {\n return '' . $this->_rs;\n }", "public function __toString(){\r\n\t\treturn $this->queryString();\r\n\t}", "function to_str(){\n //\n //Get the name of the entity \n $ename= $this->entity->name;\n //\n //The type of the join eg inner join, outer join\n $join_str=\"$this->type\"\n //\n //The on clause\n . \"\\t `$ename` \\tON \\t{$this->get_ons()}\";\n return $join_str;\n }", "public function __toString()\n {\n $sql = parent::__toString();\n $this->connection->limit($sql, $this->limit);\n return $sql;\n }", "public function toString() {\n return $this->prepare('/' . Fn::join_ne('/', $this->data));\n }", "public function __toString(){\n return $this->execute();\n }", "public function showQuery() {\n return $this->_sql;\n }", "public function showQuery() {\n return $this->_sql;\n }", "public function getStatement(): string\n {\n return $this->statement;\n }", "public function getStatement(): string\n {\n return $this->statement;\n }", "function __toString()\n {\n $sTmp = 'DELETE ' .\n ' FROM ' . $this->_sTable;\n if( !empty($this->_sWhere))\n {\n $sTmp .= ' WHERE ' . $this->_sWhere;\n }\n return $sTmp;\n }", "public function getSql() : string {\n return $this->sql;\n }", "function to_str() {\n $smt=\"INSERT \\n\"\n //\n //Get the root of the sql \n . \"INTO {$this->root->fromexp()}\\n\"\n //The values\n . \"{$this->str_values()}\\n\"\n //\n //The joins if any because some insert may have sqls as their root\n .\"{$this->joins->to_str()}\" \n \n \n ;\n //\n //Return the sql statement that inserts \n return $smt;\n }", "public function toSql()\n\t{\n\t\treturn $this->getQuery()->getDQL();\n\t}", "public function __toString() {\n // Special case for a single, nested condition group:\n if (count($this->conditions) == 1) {\n return (string) reset($this->conditions);\n }\n $lines = [];\n foreach ($this->conditions as $condition) {\n $lines[] = str_replace(\"\\n\", \"\\n \", (string) $condition);\n }\n return $lines ? \"(\\n \" . implode(\"\\n {$this->conjunction}\\n \", $lines) . \"\\n)\" : '';\n }", "function toStringIncludingTriples() \r\n\t{\r\n\t \t$dump = $this->toString() . chr(13);\r\n\t \t$stateIt=new StatementIterator($this->find(null,null,null));\r\n\t\twhile($statement=$stateIt->next())\r\n\t\t{\r\n\t \t\t$dump .= $statement->toString() . chr(13);\r\n\t \t}\r\n\t \treturn $dump;\r\n\t}", "public function getStatement()\n {\n $myStatement = \"\";\n if ((filter_var($this->ip, FILTER_VALIDATE_IP))) {\n $myStatement = $this->ip . \" är av typ \" . $this->getIpType() . \". Plats \" . $this->getLatitude() . \", \" . $this->getLongitude() . \" \" . $this->getCity() . \", \" .$this->getCountry();\n } else {\n $myStatement = $this->ip . \" är inte giltig och har ingen plats.\";\n }\n return $myStatement;\n }", "public final function getQueryDebug()\n {\n $sql = $this->buildSqlString();\n\n $out = '\n\t\t<div class=\"debug\">\n\t\t\t<h3>SQL</h3>\n\t\t\t<p>' . $sql . '</p>\n\t\t\t<h3>Params</h3>\n\t\t\t' . $this->debug($this->param) . '\n\t\t\t<h3>Full query</h3>\n\t\t\t' . $this->db->quote($sql, $this->param) . '\n\t\t</div>';\n\n return $out;\n }", "public function getQuery(): string {\n\t\t// Store previous output before changing to temp\n\t\t$output = $this->get('output');\n\t\t\n\t\ttry {\n\t\t\t$this->set('output', SqlAdapter::SQL_QUERY);\n\t\t\t$result = $this->run();\n\t\t} finally {\n\t\t\t$this->set('output', $output);\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function getQuery(): string\n {\n return (string) $this->query;\n }", "public function toString()\n {\n return '{0 < $query->count() < 2}';\n }", "public function fetchSqlString()\n\t{\n\t\treturn $this->cur_query;\n\t}", "function to_str(){\n $expressions = $this->expressions;\n //\n //loop through the expressions returns a string for each \n $strs = array_map(function($exp){\n return $exp->to_str();}\n //\n //Array that contains the expressions\n ,$expressions);\n //\n $sep = is_null($this->sep) ? \",\": \" as `$this->sep`\";\n $args = implode($sep, $strs);\n $alias = is_null($this->alias) ? \"\": \" as `$this->alias`\";\n //\n return \"$this->name($args)$alias\";\n }", "public function __toString()\n {\n $q = $this->getQteReste();\n return (string)$q;\n\n // return \" \";\n\n }", "public function __toString()\n {\n $query = '';\n if (count($this->options)) {\n $query = [];\n foreach ($this->options as $key => $value) {\n if (is_array($value)) {\n $value = implode(',', $value);\n }\n $query[] = '$' . $key . '=' . $value;\n }\n $query = '?' . implode('&', $query);\n }\n\n return $query;\n }", "public function toString() {\n $s= $this->getClassName().\"@{\\n\";\n foreach ($this->conditions as $condition) {\n $s.= ' '.xp::stringOf($condition).\"\\n\";\n }\n return $s.'}';\n }", "public function __toString()\n {\n return 'operator('\n . (null === $this->p_catalog ? '' : (string)$this->p_catalog . '.')\n . (null === $this->p_schema ? '' : (string)$this->p_schema . '.')\n . (string)$this->p_operator . ')';\n }", "public function sql(){\n $str = \"\";\n foreach($this->params as $key => $val){\n if($val != false){\n $str .= \"$key $val \";\n }\n }\n return $str;\n }", "public function sql () {\n\n return $this->_sql;\n }", "function to_str(){\n //\n //Get the entity name using the magic function get parent since the \n //parent entity is protected \n $e = $this->column->get_parent();\n //\n //Include the alias\n $alias= is_null($this->alias) ? \"\":\"as `$this->alias`\";\n //\n //compile the complete string version of the \n return \"`{$e->name}`.`{$this->column->name}` $alias\";\n }", "public function to_str() {\n //\n //Get the parent of this column using\n $e= $this->column->get_parent();\n //\n //Include the alias\n $alias= is_null($this->alias) ? \"\":\"as `$this->alias`\";\n return \"`$e->name`.`{$this->column->name}` $alias\";\n }", "public function toString() {\n\t\tif ($this->isVariable()) {\n\t\t\t$encloseWith = \"\";\n\t\t\tif ($this->isValueString()) {\n\t\t\t\t$encloseWith = \"'\";\n\t\t\t}\n\t\t\treturn sprintf(\"\\$%s = %s%s%s;\", $this->parsedVarName, $encloseWith, $this->parsedVarValue, $encloseWith);\n\t\t}\n\t\treturn $this->lineContent;\n\t}", "public function toString(): string\n {\n return implode(' ', $this->toFields());\n }", "public function to_sql() {\r\n if ($this->sql == null) {\r\n $this->sql = $this->builder->{$this->type}($this);\r\n }\r\n\r\n return $this->sql;\r\n }", "private function createBaseQuery(): string\n {\n // Prefix the table columns with 'entries.'\n $tableColumns = array_map(function ($column) {\n return 'entries.' . $column;\n }, self::TABLE_COLUMNS);\n\n if ($this->listView) {\n // Filter out the properties that are not available to the listview\n $jsonColumns = array_filter($this->properties, function (Collection\\Property $property) {\n return $property->getIncludeInJsonListView();\n });\n }\n\n // Create the select syntax for the json data column\n $jsonColumns = array_map(function (Collection\\Property $property) {\n return $this->jsonUnquote($property->getIdentifier()) . ' AS `' . $property->getIdentifier() . '`';\n }, $jsonColumns ?? $this->properties);\n\n // Merge both of the above\n $columns = array_merge($tableColumns, $jsonColumns);\n\n // Create the select statement\n $select = implode(', ', $columns);\n\n // Create the query\n // We need the entries.data to be able to perform a HAVING query on it, when parsing the entry, the DATA object is removed\n return 'SELECT entries.data, ' . $select . ' FROM collection_entries AS entries WHERE entries.collection_id = :collection_id AND entries.active = 1 ';\n }", "public function toString()\n {\n $value = $this->_constraint->toString();\n return parent::toString().' and the corresponding value '.$value;\n\n }", "public function __toString()\n {\n $result = \"[ columnName = $this->columnName, dataType = \" . (string)$this->dataType . \" ]\";\n return $result;\n }", "function to_str(){\n \n //Include the alias\n $alias= is_null($this->alias) ? \"\":\"as `$this->alias`\";\n return \"`{$this->entity->name}`.`{$this->entity->name}`$alias \";\n }", "public function toString() {\n \n return $this->toScalar();\n }", "public function toString(): string\n {\n $conditions = \\array_map(static function (ConditionInterface $condition): string {\n return $condition->toString();\n }, $this->conditions);\n\n return \\sprintf('( %s )', \\implode(' OR ', $conditions));\n }", "public function get_sql() {\n\t\treturn $this->SQL1;\n\t}", "function __toString()\n{\n\ttry {\n\t\t$s = 'Object.Selection<br>';\n\t\t$s .= $this->getSql().'<br>';\n\t\tforeach ($this->toArray() as $key => $value) {\n\t\t\t$s.= \"$key: $value<br>\";\n\t\t}\n\t\treturn $s;\n\t} catch (\\Exception $e) {\n\t\ttrigger_error($e->getMessage(), E_USER_ERROR);\n\t}\n\n\t//return json_encode($this->toArray());\n}", "public function toString()\n {\n $func = 'build'.ucfirst(strtolower($this->operation));\n return $this->$func();\n }", "public function __toString()\n\t{\n\t\t$string = '';\n\n\t\tforeach ($this->_conditions as $i => $condition)\n\t\t{\n\t\t\tif ($i > 0) {\n\t\t\t\t$string .= ' '.$condition['g'].' ';\n\t\t\t}\n\n\t\t\tif (is_string($condition['c'])) {\n\t\t\t\t$string .= $condition['c'];\n\t\t\t}\n\t\t\telseif (is_array($condition['c'])) {\n\t\t\t\t$string .= '('.implode(' '.$condition['g'].' ', $condition['c']).')';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$string .= '('.$condition['c'].')';\n\t\t\t}\n\t\t}\n\n\t\treturn $string;\n\t}", "public function to_sql()\n\t\t{\n\t\t\treturn $this->id;\n\t\t}", "public function getQuery()\n {\n $query = 'SELECT ';\n $query .= implode(', ', $this->select) . ' ';\n $query .= \"FROM $this->kind \";\n \n if ( ! empty($this->where) )\n {\n $query .= \"WHERE $this->where \";\n }\n \n if ( ! empty($this->groupBy) )\n {\n $query .= \"GROUP BY $this->groupBy \";\n }\n \n if ( ! empty($this->orderBy) )\n {\n $query .= \"ORDER BY $this->orderBy $this->orderByDirection \";\n }\n \n if ( $this->limit !== null )\n {\n $query .= \"LIMIT $this->limit \";\n }\n \n if ( $this->offset !== null )\n {\n $query .= \"OFFSET $this->offset\";\n }\n \n return trim($query);\n }", "public function getQuery(){\n $sql = \"select %s from %s %s %s %s %s %s\";\n\n return sprintf($sql, $this->param, $this->table,\n empty($this->join) ? '' : implode($this->join),\n empty($this->where) ? '' : 'where '. $this->where,\n empty($this->having)? '' : 'having '. $this->having,\n empty($this->order) ? '' : 'order by '. $this->order,\n empty($this->setOperations) ? '' : implode($this->setOperations)\n );\n }", "public function getQuerySql() {\n $sql = parent::getQuerySql();\n $connection = $this->model->getMeta()->getConnection();\n\n return $this->parseVariablesIntoSql($sql, $connection);\n }", "public function __toString()\n\t\t{\n\t\t\treturn $this->quoteValue ? \"$this->field $this->relation '$this->value'\" : \"$this->field $this->relation $this->value\";\n\t\t}", "public function sql(): string {\n\t\treturn strval($this->duration);\n\t}", "public function sql() {\n\t\t$sqlT = \\lulo\\twig\\TwigTemplate::factoryHtmlResource(\\lulo\\query\\Query::PATH . \"/select/query.twig.sql\");\n\t\treturn $sqlT->render([\"query\" => $this]);\n\t}", "public function __toString()\n {\n $type = $this->typeAsString();\n $str = \"'{$this->name}' {$type}\";\n $str .= ($this->_length > 0) ? \"({$this->_length})\" : \"\";\n $str .= \" {$this->size}\";\n $str .= ($this->isPrimaryKey()) ? \" PRIMARY KEY\" : \"\";\n $str .= ($this->isNotNull()) ? \" NOT NULL\" : \" NULL\";\n $str .= ($this->isUnsigned()) ? \" UNSIGNED\" : \"\";\n $str .= ($this->isAutoIncrement()) ? \" AUTO INCREMENT\" : \"\";\n $str .= (!is_null($this->default)) ?\n \" DEFAULT '{$this->default}'\" : \"\";\n $str .= (!is_null($this->description)) ?\n \" DESCRIPTION '{$this->description}'\" : \"\";\n return $str;\n }", "public function getQuery()\n {\n\n if (empty($this->_query))\n return '';\n\n return $this->_query;\n }", "public function toSql()\n {\n $this->compile();\n\n return $this->compilerState->compiledParts['sql'] ?? false;\n }", "public function toString()\n {\n return $this->cast('string');\n }", "public function __toString(): string\n {\n $nullConstraint = ($this->isNull) ? 'NULL' : 'NOT NULL';\n $type = $this->type === 'INT(11)' ? 'INT' : $this->type;\n $column = \"`{$this->name}` {$type} {$nullConstraint}\";\n\n if ($this->default === null && $this->isNull) {\n $column .= ' DEFAULT NULL';\n } elseif ($this->default !== null) {\n $defaultValue = is_numeric($this->default) === false ? \"'{$this->default}'\" : $this->default;\n $column .= \" DEFAULT {$defaultValue}\";\n }\n\n if ($this->isAutoIncrement) {\n $column .= ' AUTO_INCREMENT';\n }\n\n return $column;\n }", "public function getQuery(): string\n {\n return $this->query;\n }", "public function getQuery(): string\n {\n return $this->query;\n }", "public function getQuery(): string\n {\n return $this->query;\n }", "public function get_sql() {\n return $this->sql;\n }" ]
[ "0.77558", "0.76190877", "0.7612805", "0.75188756", "0.75185144", "0.7500625", "0.74511397", "0.74171126", "0.74170387", "0.7396947", "0.7364301", "0.7364301", "0.7360879", "0.7357231", "0.73188484", "0.7301447", "0.7189828", "0.71619916", "0.7120991", "0.70652103", "0.7053931", "0.7013103", "0.7011684", "0.69942415", "0.6973826", "0.6971439", "0.69670993", "0.69543844", "0.69211614", "0.6835962", "0.6817846", "0.67834216", "0.6754722", "0.67388064", "0.6735664", "0.6722512", "0.6705295", "0.6691594", "0.6666165", "0.6661715", "0.66468006", "0.66149753", "0.6598809", "0.6587751", "0.6580598", "0.65734595", "0.6551814", "0.6551814", "0.6523568", "0.6523568", "0.65048003", "0.6488645", "0.6456722", "0.6456606", "0.64488316", "0.6447125", "0.6424419", "0.64106566", "0.6400962", "0.63877547", "0.6364156", "0.6338368", "0.63374275", "0.6326934", "0.63249326", "0.6311315", "0.63065255", "0.6300607", "0.62946284", "0.62508166", "0.6250439", "0.62216365", "0.621866", "0.6206641", "0.61944366", "0.6179796", "0.6174978", "0.61730736", "0.6165613", "0.6157908", "0.61517835", "0.6147475", "0.6142906", "0.6142371", "0.61379266", "0.6137075", "0.61128485", "0.6106257", "0.60998327", "0.6098031", "0.6095429", "0.60874504", "0.60861164", "0.607316", "0.60613304", "0.6053186", "0.60444444", "0.60444444", "0.60444444", "0.60363716" ]
0.7468743
6
Setup before running any test cases
public static function setUpBeforeClass() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function doSetup(): void\n {\n }", "public function setup() {}", "protected function setUp ()\n {}", "function setUp() {\n\t\t\n\t}", "function setUp() {\n\t\t\n\t}", "private function setup()\r\n\t{ }", "protected function setUp() { }", "protected function setUp() { }", "protected function setup(){\n }", "function quickSetUp()\n {\n $this->setUp(null, null, null, null, null);\n }", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}" ]
[ "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.82985723", "0.82985723", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.829808", "0.82344025", "0.81765306", "0.8172459", "0.81542856", "0.81542856", "0.8106448", "0.80816454", "0.80816454", "0.8051928", "0.8037265", "0.8031149", "0.8031149" ]
0.0
-1
Setup before running each test case
public function setUp() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "function setUp() {\n\t\t\n\t}", "function setUp() {\n\t\t\n\t}", "protected function doSetup(): void\n {\n }", "protected function setUp ()\n {}", "public function setUp(): void\n {\n $this->setUpWithNoResult();\n }", "protected function setUp() { }", "protected function setUp() { }", "public function setUp()\n {\n\n $this->db = Db::getActive();\n $this->response = Response::getActive();\n\n }", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}" ]
[ "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.81356287", "0.81356287", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.8134937", "0.80421937", "0.80421937", "0.80289686", "0.8018776", "0.793929", "0.7926855", "0.7926855", "0.7909959", "0.7904265", "0.7904265", "0.7904265", "0.7904265" ]
0.0
-1
Clean up after running each test case
public function tearDown() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp();", "public function cleanUp();", "public function cleanUp();", "public function cleanup() {\n\t\t//TODO\n\t}", "public function cleanTestActivities()\n {\n\n $this->collectCurrentTestUsers();\n $this->cleanExerciseUploadPictures();\n $this->cleanDeviceUploadPictures();\n $this->resetDatabase();\n }", "protected function tearDown(): void {\n unset($this->integration);\n unset($this->ccm);\n unset($this->session);\n }", "public function teardown()\n {\n //\n }", "protected function tearDown(): void\n {\n $this->config = null;\n $this->container = null;\n $this->instance = null;\n }", "public function tearDown()\n {\n unset($this->db);\n unset($this->statement);\n unset($this->mockData);\n }", "protected function tearDown() {\n\n $this->client = null;\n $this->deleteTestLocations();\n $this->locIDs = null;\n reuse_generateXML();\n }", "public function cleanup()\n {\n }", "protected function tearDown(): void {\n\t\t$this->http_client = null;\n\t\t$this->process_transactions = array();\n\n\t\tif ( ! empty( $this->transactions ) ) {\n\t\t\t$this->transactions = array();\n\n\t\t\tCrudTable\\delete_rows( 'transactions', $this->key_pairs, 100 );\n\n\t\t\t$this->key_pairs['tag'] = $this->tag;\n\t\t\tCrudTable\\delete_rows( 'transactions', $this->key_pairs, 100 );\n\n\t\t\tTestHelpers::removeJsonFile( $this->process_tag );\n\t\t\tTestHelpers::removeJsonFile( $this->tag );\n\t\t}\n\t}", "protected function cleanUp()\n\t{\n\t\t// clean\n\t\t$this->killExceededTasks();\n\t\t$this->cleanHistory();\n\t}", "public function teardown()\n {\n }", "function __destruct() {\n if ($this->testDir) {\n $this->eraseTempDir();\n }\n $this->unsetMockSession();\n }", "public function tearDown()\n {\n unset($this->_standardLib);\n unset($this->_daughter);\n }", "public function tearDown(): void\n {\n parent::tearDown();\n unset($this->purifier);\n unset($this->em);\n unset($this->objectiveManager);\n unset($this->learningMaterialManager);\n unset($this->courseLearningMaterialManager);\n unset($this->sessionLearningMaterialManager);\n unset($this->sessionDescriptionManager);\n unset($this->commandTester);\n }", "public function cleanup()\n\t{\n\t}", "public function tearDown() {\n $this->container = null;\n $this->model = null;\n $this->request = null;\n $this->response = null;\n $this->responseHeaders = null;\n $this->responseWriter = null;\n }", "protected function tearDown()\n {\n unset($this->output);\n }", "public function tearDown(): void\n {\n parent::tearDown();\n unset($this->filesystem);\n unset($this->diskSpace);\n unset($this->commandTester);\n }", "protected function tearDown() {\n $this->osapiCollection = null;\n $this->list = null;\n parent::tearDown();\n }", "public function tearDown()\n {\n // delete your instance\n OGR_DS_Destroy($this->hSrcDataSource);\n\n delete_directory($this->strPathToOutputData);\n\n unset($this->strPathToOutputData);\n unset($this->strTmpDumpFile);\n unset($this->strPathToData);\n unset($this->strPathToStandardData);\n unset($this->bUpdate);\n unset($this->hOGRSFDriver);\n unset($this->hLayer);\n unset($this->iSpatialFilter);\n unset($this->hSrcDataSource);\n }", "public function cleanup()\n\t{\n\t\t\n\t}", "protected function tearDown()\r\n {\r\n DirectoryManager::recursiveRemoveDir('data/tests');\r\n }", "public function tearDown(): void\n {\n self::$environ->cleanupTestUploadFiles();\n self::$environ->clean();\n }", "public function tearDown() {\n $this->resource = null;\n $this->response = null;\n $this->database = null;\n $this->storage = null;\n $this->event = null;\n $this->manager = null;\n }", "public function tearDown()\n\t{\n\t\tunset($this->target);\n\t}", "protected function tearDown(): void\n {\n $this->provider = null;\n $this->response = null;\n }", "public function tearDown() : void {\n\t\tunset($this->ls); /* Kill circular references */\n\t\tunset($this->lsconn); /* Kill circular references */\n\t}", "public function cleanup(): void\n {\n }", "public function cleanup(): void\n {\n }", "protected function tearDown(): void\n\t{\n\t\tglobal $modSettings;\n\n\t\t// remove temporary test data\n\t\tunset($modSettings);\n\t}", "protected function tearDown() {\n gc_collect_cycles();\n }", "public function tearDown(): void {\n // Remove any temporary directories that were created.\n $filesystem = new Filesystem();\n foreach ($this->tmpDirs as $dir) {\n $filesystem->remove($dir);\n }\n // Clear out variables from the previous pass.\n $this->tmpDirs = [];\n $this->io = NULL;\n // Clear the composer cache dir, if it was set\n putenv('COMPOSER_CACHE_DIR=');\n }", "public function tearDown() {\n $this->transformation = null;\n }", "public function tearDown() {\n $this->transformation = null;\n }", "public function tearDown() {\n $this->transformation = null;\n }", "protected function tearDown()\n {\n $this->regular1 = null;\n $this->regular2 = null;\n $this->rental1 = null;\n $this->rental2 = null;\n }", "protected function tearDown()\n {\n $this->calculator = NULL;\n }", "protected function tearDown(): void {\n $this->parser = null;\n }", "public function teardown()\n {\n if ($this->csvFile) {\n unlink($this->csvFile);\n $this->csvFile = null;\n }\n\n if ($this->photoZip) {\n unlink($this->photoZip);\n $this->photoZip = null;\n }\n }", "public function tearDown()\n {\n unset(\n $this->plugins,\n $this->events,\n $this->connection,\n $this->config\n );\n }", "protected function tearDown()\n {\n session_destroy(); //req'd because Kml class sets a cookie\n $this->clearRequest();\n $this->clearTmpFiles();\n }", "public function Cleanup()\r\n\t{\r\n\t}", "protected function tearDown()\n {\n \tunset($this->object);\n }", "protected function tearDown()\n {\n \tunset($this->object);\n }", "protected function tearDown()\n {\n \tunset($this->object);\n }", "protected function tearDown()\n {\n \tunset($this->object);\n }", "public function tearDown() {\n\t\tFixtures::clear('db');\n\t\tGalleries::reset();\n\t\tImages::reset();\n\t}", "public function tearDown() {\r\n\t\tunset($this->ImgTblHelper, $this->Controller, $this->View);\r\n\t\tparent::tearDown();\r\n\t}", "protected function tearDown(): void\n {\n $this->autorizacao = null;\n $this->transacao = null;\n $this->object = null;\n }", "protected function tearDown() {\r\n\t\t$this->dbh = null;\r\n\t\t$this->storage = null;\r\n\t\tparent::tearDown ();\r\n\t}", "public function tearDown()\n {\n $this->objectManager->create(\\Magento\\Tax\\Test\\TestStep\\DeleteAllTaxRulesStep::class, [])->run();\n }", "protected function tearDown() {\n $this->stack = null;\n }" ]
[ "0.7987785", "0.7987785", "0.7987785", "0.7987785", "0.7987785", "0.7987785", "0.7987785", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7985815", "0.7985815", "0.7985815", "0.7985815", "0.7985815", "0.7985815", "0.7850843", "0.7850843", "0.7850843", "0.76951295", "0.7688187", "0.76663786", "0.76383704", "0.76116425", "0.76023465", "0.759858", "0.7592881", "0.7578189", "0.75721014", "0.7563723", "0.7532292", "0.7532245", "0.7510675", "0.7466052", "0.745502", "0.7447906", "0.7437516", "0.7432085", "0.7422239", "0.742056", "0.74127865", "0.7395499", "0.7393894", "0.73909515", "0.7390909", "0.7389362", "0.7387827", "0.7387827", "0.7384437", "0.7381771", "0.73808354", "0.73763293", "0.73763293", "0.73763293", "0.73758084", "0.7359128", "0.7354937", "0.7352378", "0.73359734", "0.7333032", "0.7329993", "0.7327933", "0.7327933", "0.7327933", "0.7327933", "0.73216355", "0.7312936", "0.7306989", "0.7304376", "0.7294614", "0.72820467" ]
0.0
-1
Clean up after running all test cases
public static function tearDownAfterClass() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp();", "public function cleanUp();", "public function cleanUp();", "public function cleanup() {\n\t\t//TODO\n\t}", "public function cleanTestActivities()\n {\n\n $this->collectCurrentTestUsers();\n $this->cleanExerciseUploadPictures();\n $this->cleanDeviceUploadPictures();\n $this->resetDatabase();\n }", "public function cleanup()\n {\n }", "protected function cleanUp()\n\t{\n\t\t// clean\n\t\t$this->killExceededTasks();\n\t\t$this->cleanHistory();\n\t}", "public function tearDown()\n {\n unset($this->db);\n unset($this->statement);\n unset($this->mockData);\n }", "public function tearDown()\n {\n unset($this->_standardLib);\n unset($this->_daughter);\n }", "public function teardown()\n {\n //\n }", "protected function tearDown(): void {\n unset($this->integration);\n unset($this->ccm);\n unset($this->session);\n }", "protected function tearDown() {\n\n $this->client = null;\n $this->deleteTestLocations();\n $this->locIDs = null;\n reuse_generateXML();\n }", "public function cleanup()\n\t{\n\t}", "protected function tearDown(): void\n {\n $this->config = null;\n $this->container = null;\n $this->instance = null;\n }", "public function tearDown(): void\n {\n parent::tearDown();\n unset($this->purifier);\n unset($this->em);\n unset($this->objectiveManager);\n unset($this->learningMaterialManager);\n unset($this->courseLearningMaterialManager);\n unset($this->sessionLearningMaterialManager);\n unset($this->sessionDescriptionManager);\n unset($this->commandTester);\n }", "public function teardown()\n {\n }", "public function cleanup()\n\t{\n\t\t\n\t}", "function __destruct() {\n if ($this->testDir) {\n $this->eraseTempDir();\n }\n $this->unsetMockSession();\n }", "protected function tearDown(): void {\n\t\t$this->http_client = null;\n\t\t$this->process_transactions = array();\n\n\t\tif ( ! empty( $this->transactions ) ) {\n\t\t\t$this->transactions = array();\n\n\t\t\tCrudTable\\delete_rows( 'transactions', $this->key_pairs, 100 );\n\n\t\t\t$this->key_pairs['tag'] = $this->tag;\n\t\t\tCrudTable\\delete_rows( 'transactions', $this->key_pairs, 100 );\n\n\t\t\tTestHelpers::removeJsonFile( $this->process_tag );\n\t\t\tTestHelpers::removeJsonFile( $this->tag );\n\t\t}\n\t}", "protected function tearDown()\r\n {\r\n DirectoryManager::recursiveRemoveDir('data/tests');\r\n }", "public function tearDown()\n {\n // delete your instance\n OGR_DS_Destroy($this->hSrcDataSource);\n\n delete_directory($this->strPathToOutputData);\n\n unset($this->strPathToOutputData);\n unset($this->strTmpDumpFile);\n unset($this->strPathToData);\n unset($this->strPathToStandardData);\n unset($this->bUpdate);\n unset($this->hOGRSFDriver);\n unset($this->hLayer);\n unset($this->iSpatialFilter);\n unset($this->hSrcDataSource);\n }", "protected function tearDown() {\n gc_collect_cycles();\n }", "public function tearDown() {\n $this->container = null;\n $this->model = null;\n $this->request = null;\n $this->response = null;\n $this->responseHeaders = null;\n $this->responseWriter = null;\n }", "public function tearDown(): void\n {\n parent::tearDown();\n unset($this->filesystem);\n unset($this->diskSpace);\n unset($this->commandTester);\n }", "public function tearDown(): void {\n // Remove any temporary directories that were created.\n $filesystem = new Filesystem();\n foreach ($this->tmpDirs as $dir) {\n $filesystem->remove($dir);\n }\n // Clear out variables from the previous pass.\n $this->tmpDirs = [];\n $this->io = NULL;\n // Clear the composer cache dir, if it was set\n putenv('COMPOSER_CACHE_DIR=');\n }", "public function cleanup(): void\n {\n }", "public function cleanup(): void\n {\n }", "public function Cleanup()\r\n\t{\r\n\t}", "public function tearDown() : void {\n\t\tunset($this->ls); /* Kill circular references */\n\t\tunset($this->lsconn); /* Kill circular references */\n\t}", "protected function tearDown()\n {\n unset($this->output);\n }", "public function tearDown(): void\n {\n self::$environ->cleanupTestUploadFiles();\n self::$environ->clean();\n }", "protected function tearDown() {\n $this->osapiCollection = null;\n $this->list = null;\n parent::tearDown();\n }", "protected function tearDown()\n {\n $this->calculator = NULL;\n }", "protected function tearDown(): void {\n $this->parser = null;\n }", "protected function tearDown()\n {\n $this->compilerPass = null;\n $this->container = null;\n parent::tearDown();\n }", "protected function tearDown()\n {\n $this->regular1 = null;\n $this->regular2 = null;\n $this->rental1 = null;\n $this->rental2 = null;\n }", "public function tearDown() {\n\t\tFixtures::clear('db');\n\t\tGalleries::reset();\n\t\tImages::reset();\n\t}", "protected function tearDown()\n {\n \\RPI\\Foundation\\Helpers\\FileUtils::delTree(__DIR__.\"/LESSPHPTest/ROOT\");\n }", "public function tearDown() {\n $this->resource = null;\n $this->response = null;\n $this->database = null;\n $this->storage = null;\n $this->event = null;\n $this->manager = null;\n }", "protected function tearDown(): void\n\t{\n\t\tglobal $modSettings;\n\n\t\t// remove temporary test data\n\t\tunset($modSettings);\n\t}", "public function tearDown() {\n if ($this->wedisabledgc) {\n gc_enable();\n }\n $this->wedisabledgc = false;\n }", "public function tearDown()\n {\n $fs = new SymfonyFileSystem();\n $fs->remove($this->fakeTestFileDir);\n\n unset($this->builder);\n unset($this->builder);\n unset($this->fs);\n m::close();\n }", "protected function tearDown(): void\n {\n $this->provider = null;\n $this->response = null;\n }", "function endTest() {\n unset($this->CalendarRecursion);\n unset($this->CalendarInstance);\n unset($this->Activity);\n ClassRegistry::flush();\n }", "public function tearDown()\n {\n unset(\n $this->plugins,\n $this->events,\n $this->connection,\n $this->config\n );\n }", "protected function tearDown()\n {\n session_destroy(); //req'd because Kml class sets a cookie\n $this->clearRequest();\n $this->clearTmpFiles();\n }", "public function tearDown() {\r\n\t\tunset($this->ImgTblHelper, $this->Controller, $this->View);\r\n\t\tparent::tearDown();\r\n\t}", "public function tearDown() {\n $this->transformation = null;\n }", "public function tearDown() {\n $this->transformation = null;\n }", "public function tearDown() {\n $this->transformation = null;\n }", "protected function tearDown() {\r\n\t\t$this->dbh = null;\r\n\t\t$this->storage = null;\r\n\t\tparent::tearDown ();\r\n\t}", "public function tearDown()\n\t{\n\t\tunset($this->target);\n\t}", "function tearDown() {\n\t\t$this->wfRecursiveRemoveDir( $this->tmpName );\n\t}", "protected function tearDown()\n {\n Phlash::clear();\n }", "public function tearDown()\n {\n unset($this->filterRepositoryMock);\n unset($this->notificationContextManagerMock);\n unset($this->notificationTranslatorMock);\n unset($this->filterManager);\n }" ]
[ "0.79781395", "0.79781395", "0.79781395", "0.79781395", "0.79781395", "0.79781395", "0.79781395", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976344", "0.7976344", "0.7976344", "0.7976344", "0.7976344", "0.7976344", "0.78772247", "0.78772247", "0.78772247", "0.77385294", "0.7622718", "0.7590846", "0.7581981", "0.75642306", "0.75500023", "0.7537886", "0.75273365", "0.7519937", "0.7509883", "0.7505579", "0.74835205", "0.74744475", "0.7472191", "0.7471073", "0.7448932", "0.74277306", "0.74264514", "0.7404205", "0.739177", "0.7386229", "0.7383461", "0.738092", "0.738092", "0.73677146", "0.73663706", "0.73597026", "0.734277", "0.7338558", "0.73383325", "0.7336859", "0.73303896", "0.7327291", "0.73259425", "0.7311458", "0.7303411", "0.7294846", "0.7285744", "0.7283386", "0.7278399", "0.7277675", "0.7275594", "0.72737646", "0.7273622", "0.7269152", "0.7269152", "0.7269152", "0.72667706", "0.72666764", "0.7249254", "0.7248658", "0.72467804" ]
0.0
-1
Test case for addVendorComplianceSurvey Create a vendorComplianceSurvey.
public function testAddVendorComplianceSurvey() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addVendorComplianceSurvey($body)\n {\n list($response) = $this->addVendorComplianceSurveyWithHttpInfo($body);\n return $response;\n }", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function testAddVendorComplianceSurveyTag()\n {\n }", "public function addVendorComplianceSurveyAsync($body)\n {\n return $this->addVendorComplianceSurveyAsyncWithHttpInfo($body)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function testAddVendorComplianceSurveyFile()\n {\n }", "public function testDeleteVendorComplianceSurvey()\n {\n }", "protected function addVendorComplianceSurveyAuditRequest($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyAudit'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_audit' is set\n if ($vendor_compliance_survey_audit === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_audit when calling addVendorComplianceSurveyAudit'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/audit/{vendorComplianceSurveyAudit}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_audit !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyAudit' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_audit),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testAddVendorComplianceSurveyAudit()\n {\n }", "protected function addVendorComplianceSurveyRequest($body)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function addVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling addVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function addVendorComplianceSurveyWithHttpInfo($body)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->addVendorComplianceSurveyRequest($body);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 405:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\ApiResponse',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "public function testGetDuplicateVendorComplianceSurveyById()\n {\n }", "public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }", "protected function getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getDuplicateVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/duplicate/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testGetVendorComplianceSurveyById()\n {\n }", "public function add_reseller_program_survey()\n {\n $this->loadModel('ResellerProgramSurveys');\n if (!$this->request->is('post')) {\n throw new MethodNotAllowedException(__('BAD_REQUEST'));\n }\n \n $resellerProgramId = $this->Auth->user('id');\n $this->request->data['reseller_program_id'] = $resellerProgramId;\n $resellerProgramSurveys=$this->request->data;\n\n $resellerProgramSurveys = $this->ResellerProgramSurveys->newEntity($resellerProgramSurveys);\n //pr($resellerProgramSurveys); die;\n if ($this->ResellerProgramSurveys->save($resellerProgramSurveys)) {\n $this->set('resellerProgramSurveys', $resellerProgramSurveys);\n $this->set('response', ['status' => \"OK\"]);\n } else {\n //pr($resellerProgramSurveys->errors()); die;\n throw new InternalErrorException(__('Internal Error'));\n }\n $data =array();\n $data['status']=true;\n $data['data']['id']=$resellerProgramSurveys->id;\n $this->set('response',$data);\n $this->set('_serialize', ['response']);\n }", "public function add_reseller_program_survey_question()\n {\n $this->loadModel('ResellerProgramSurveyQuestions');\n if (!$this->request->is('post')) {\n throw new MethodNotAllowedException(__('BAD_REQUEST'));\n }\n $resellerProgramSurveyQuestion=$this->request->data;\n $resellerProgramSurveyQuestion = $this->ResellerProgramSurveyQuestions->newEntity($resellerProgramSurveyQuestion);\n if ($this->ResellerProgramSurveyQuestions->save($resellerProgramSurveyQuestion)) {\n $this->set('resellerProgramSurveyQuestion', $resellerProgramSurveyQuestion);\n $this->set('response', ['status' => \"OK\"]);\n } else {\n throw new InternalErrorException(__('Internal Error'));\n }\n $data =array();\n $data['status']=true;\n $data['data']['id']=$resellerProgramSurveyQuestion->id;\n $this->set('response',$data);\n $this->set('_serialize', ['response']);\n }", "protected function getVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testCreateSurvey0()\n {\n }", "public function testCreateSurvey0()\n {\n }", "public function testGetVendorComplianceSurveyByFilter()\n {\n }", "public function testAddVendorComplianceSurveyFileByURL()\n {\n }", "protected function addVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_name)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_name' is set\n if ($file_name === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_name when calling addVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileName}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_name !== null) {\n $resourcePath = str_replace(\n '{' . 'fileName' . '}',\n ObjectSerializer::toPathValue($file_name),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function updateVendorComplianceSurvey($body)\n {\n $this->updateVendorComplianceSurveyWithHttpInfo($body);\n }", "public function addVendorComplianceSurveyAsyncWithHttpInfo($body)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->addVendorComplianceSurveyRequest($body);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "public function test_can_vendor_create(){\n $data = [\n 'Name' => $this->faker->name,\n 'category' => $this->faker->category,\n ];\n\n $this->json('POST','/api/vendor_create',$data);\n }", "public function actionCreate($vendor_id)\n\t{\n\t\t//die('here');\n\t\t$w_id = '';\n\t\tif(isset(Yii::app()->session['w_id']) && !empty(Yii::app()->session['w_id'])){\n\t\t\t$w_id = Yii::app()->session['w_id'];\n\t\t}\n\t\tif(!$this->checkAccessByData('VendorCreditEditor', array('warehouse_id'=>$w_id))){\n\t\t\tYii::app()->user->setFlash('premission_info', 'You dont have permission.! Bitch');\n\t\t\tYii::app()->controller->redirect(\"index.php?r=vendor/admin&w_id=\".$w_id);\n\t\t}\n $initial_pending_date = VendorDao::getInitialPendingDate();\n\t\t$model=new VendorPayment;\n\t\t$model->vendor_id = $vendor_id;\n\t\t$vendor = Vendor::model()->findByPk($vendor_id);\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['VendorPayment']))\n\t\t{\n if(strtotime($_POST['VendorPayment']['date']) <= strtotime($initial_pending_date)){\n Yii::app()->user->setFlash('error', \"Can't create payment to be created before base_date. Please Ask Developer\" );\n Yii::app()->controller->redirect(\"index.php?r=vendorPayment/admin&w_id=\".$w_id);\n }\n\t\t\t$model->attributes=$_POST['VendorPayment'];\n\t\t\t$model->created_at = date('Y-m-d');\n\t\t\tif($model->save()){\n\t\t\t\t$vendor->total_pending_amount-= $model->paid_amount;\n\t\t\t\tif(!$vendor->save()){\n\t\t\t\t\techo '<pre>';\n\t\t\t\t\tdie(print_r($vendor->getErrors()));\n\t\t\t\t}\n\t\t\t\t$this->redirect(array('vendor/admin'));\n\t\t\t}\n\t\t}\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t\t'vendor' => $vendor,\n\t\t\t));\n\t}", "public function testVenueSubmitSurvey()\n {\n $this->buildVenueSurvey();\n\n $venueG = $this->venueGroup;\n $venueQ = $this->venueQuestion;\n\n $response = $this->json('POST', 'survey/submit', [\n 'slot_id' => $this->slot->id,\n 'type' => Survey::TRAINING,\n 'survey' => [\n [\n 'survey_group_id' => $venueG->id,\n 'answers' => [\n [\n 'survey_question_id' => $venueQ->id,\n 'response' => 'a response'\n ]\n ]\n ],\n ]\n ]);\n\n $response->assertStatus(200);\n\n $this->assertDatabaseHas('survey_answer', [\n 'person_id' => $this->user->id,\n 'slot_id' => $this->slot->id,\n 'survey_question_id' => $venueQ->id,\n 'response' => 'a response'\n ]);\n }", "private function buildVenueSurvey()\n {\n $this->year = current_year();\n\n $this->trainer = Person::factory()->create();\n\n $this->survey = Survey::factory()->create(['year' => $this->year, 'position_id' => Position::TRAINING]);\n $surveyId = $this->survey->id;\n\n $this->venueGroup = SurveyGroup::factory()->create(['survey_id' => $surveyId, 'sort_index' => 1]);\n $this->venueQuestion = SurveyQuestion::factory()->create(['survey_id' => $surveyId, 'survey_group_id' => $this->venueGroup->id]);\n\n $this->trainerGroup = SurveyGroup::factory()->create(['survey_id' => $surveyId, 'type' => 'trainer', 'sort_index' => 2]);\n $this->trainerQuestion = SurveyQuestion::factory()->create(['survey_id' => $surveyId, 'survey_group_id' => $this->trainerGroup->id]);\n\n $this->slot = Slot::factory()->create([\n 'description' => 'Venue 1',\n 'position_id' => Position::TRAINING,\n 'begins' => \"{$this->year}-01-01 00:00\",\n 'ends' => \"{$this->year}-01-01 00:01\"\n ]);\n PersonSlot::factory()->create(['person_id' => $this->user->id, 'slot_id' => $this->slot->id]);\n TraineeStatus::factory()->create(['person_id' => $this->user->id, 'slot_id' => $this->slot->id, 'passed' => true]);\n $this->trainerSlot = Slot::factory()->create([\n 'description' => 'Venue 1',\n 'position_id' => Position::TRAINER,\n 'begins' => \"{$this->year}-01-01 00:00\",\n 'ends' => \"{$this->year}-01-01 00:01\"\n ]);\n PersonSlot::factory()->create(['person_id' => $this->trainer->id, 'slot_id' => $this->trainerSlot->id]);\n TrainerStatus::factory()->create([\n 'person_id' => $this->trainer->id,\n 'slot_id' => $this->slot->id,\n 'trainer_slot_id' => $this->trainerSlot->id,\n 'status' => TrainerStatus::ATTENDED\n ]);\n }", "public function testAddConsent(): void\n\t{\n\t\t$request = $this->httpClient->post('ApprovalsRegister/Record', \\App\\Utils::merge(['json' => [\n\t\t\t'subject' => 'Text',\n\t\t\t'approvalsid' => self::$approvalId,\n\t\t\t'contactid' => self::$recordId,\n\t\t\t'approvals_register_type' => 'PLL_ACCEPTANCE',\n\t\t\t'approvals_register_status' => 'PLL_ACCEPTED',\n\t\t\t'registration_date' => date('Y-m-d H:i:s'),\n\t\t]], self::$requestOptions));\n\t\t$this->logs = $body = $request->getBody()->getContents();\n\t\t$response = \\App\\Json::decode($body);\n\t\tstatic::assertSame(200, $request->getStatusCode(), 'ApprovalsRegister/RecordAPI error: ' . PHP_EOL . $request->getReasonPhrase() . '|' . $body);\n\t\tstatic::assertSame(1, $response['status'], 'ApprovalsRegister/Record API error: ' . PHP_EOL . $request->getReasonPhrase() . '|' . $body);\n\t\tstatic::assertNotEmpty($response['result'], 'ApprovalsRegister/Record result is empty and should have at least one entry.');\n\t\tstatic::assertNotEmpty($response['result']['id'], 'ApprovalsRegister/Record record should not be empty');\n\t\tself::assertResponseBodyMatch($response, self::$schemaManager, '/webservice/ManageConsents/ApprovalsRegister/Record', 'post', 200);\n\t\t\\ApprovalsRegister_Module_Model::reloadApprovals(self::$recordId);\n\t}", "public function addquestion(Request $request, Survey $survey)\n {\n $this->validate($request, [\n 'label'=>'required|max:255',\n 'options'=>'required_if:type,select,checkbox-list,section',\n 'required'=>'boolean'\n ]);\n $data = array();\n $data = $request->intersect([\n 'label', 'question_type', 'options', 'required', 'css_class'\n ]);\n /*\n $data['label'] = $request->input('label');\n $data['question_type'] = $request->input('type');\n if($request->has('options')) {\n $data['options'] = $request->input('options');\n }\n if($request->has('required') && $request->input('type') != 'section') {\n $data['required'] = '1';\n }\n */\n // return($data);\n $survey->questions()->create($data);\n return redirect('/addquestion/' . $survey->id . '#new-question-form');\n }", "public function testCreateSurvey()\n {\n $data = [\n 'year' => 2020,\n 'type' => Survey::TRAINER,\n 'title' => 'My Awesome Survey',\n 'prologue' => 'Take the survey',\n 'epilogue' => 'Did you take it?'\n ];\n\n $response = $this->json('POST', 'survey', [\n 'survey' => $data\n ]);\n\n $response->assertStatus(200);\n $this->assertDatabaseHas('survey', $data);\n }", "protected function addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addVendorComplianceSurveyFileByURL'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFileByURL'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function deleteVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling deleteVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testDeleteVendorComplianceSurveyTag()\n {\n }", "public function getVendorComplianceSurveyByFilter($filter = null, $page = null, $limit = null, $sort = null)\n {\n list($response) = $this->getVendorComplianceSurveyByFilterWithHttpInfo($filter, $page, $limit, $sort);\n return $response;\n }", "public function actionCreate() {\n $model = new Vendor();\n\n // display_array(var_dump(Yii::$app->request->post()));\n // exit;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n if (isset($_POST['VendorContactPerson']) && !empty($_POST['VendorContactPerson'])) {\n $this->vendorContactPerson($_POST['VendorContactPerson'], $model->id);\n }\n\n\n \\Yii::$app->session->setFlash('success', 'Form save successfully');\n return $this->redirect(['index', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function testGetVendorComplianceSurveyFiles()\n {\n }", "public function testCreateSurveyQuestion0()\n {\n }", "public function testCreateSurveyQuestion0()\n {\n }", "public function addVendorComplianceSurveyFile($vendor_compliance_survey_id, $file_name)\n {\n $this->addVendorComplianceSurveyFileWithHttpInfo($vendor_compliance_survey_id, $file_name);\n }", "function survey_add($d){\n $url = $this->url.\"survey_add\";\n $data['case_id'] =$d['case_id'] ;\n $data['satisfactoriness'] =$d['satisfactoriness'] ;\n $data['satisfied_reason'] =$d['satisfied_reason'] ;\n $data['submitter'] =$d['submitter'] ;\n $this->setTransactionToLog(\"method:\".__METHOD__);\n $result = $this->_exec($url,$data);\n }", "protected function getVendorComplianceSurveyTagsRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyTags'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function store(Request $request)\n {\n $request->validate(['company'=>'required','applicationtype'=>'required','address'=>'required','city'=>'required','country'=>'required','zipcode'=>'required','bank'=>'required','accountnumber'=>'required','branch'=>'required','branchcode'=>'required','email'=>'required','name'=>'required','surname'=>'required','position'=>'required','year'=>'required']);\n return $this->vendor->create($request);\n }", "public function testGetVendorComplianceSurveyTags()\n {\n }", "public function actionCreate()\n\t{\n\t\t$model=new Vendor;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Vendor']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Vendor'];\n\t\t\t$model->type = $_POST['Vendor']['type'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('index'));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function store(StoreVendorRequest $request)\n {\n $this->authorize('create-contact');\n\n $vendor = new \\App\\Contact;\n $vendor->organization_name = $request->input('organization_name');\n $vendor->display_name = $request->input('organization_name');\n $vendor->sort_name = $request->input('organization_name');\n $vendor->contact_type = config('polanco.contact_type.organization');\n $vendor->subcontact_type = config('polanco.contact_type.vendor');\n $vendor->save();\n\n $vendor_address = new \\App\\Address;\n $vendor_address->contact_id = $vendor->id;\n $vendor_address->location_type_id = config('polanco.location_type.main');\n $vendor_address->is_primary = 1;\n $vendor_address->street_address = $request->input('street_address');\n $vendor_address->supplemental_address_1 = $request->input('supplemental_address_1');\n $vendor_address->city = $request->input('city');\n $vendor_address->state_province_id = $request->input('state_province_id');\n $vendor_address->postal_code = $request->input('postal_code');\n $vendor_address->country_id = $request->input('country_id');\n $vendor_address->save();\n\n $vendor_main_phone = new \\App\\Phone;\n $vendor_main_phone->contact_id = $vendor->id;\n $vendor_main_phone->location_type_id = config('polanco.location_type.main');\n $vendor_main_phone->is_primary = 1;\n $vendor_main_phone->phone = $request->input('phone_main_phone');\n $vendor_main_phone->phone_type = 'Phone';\n $vendor_main_phone->save();\n\n $vendor_fax_phone = new \\App\\Phone;\n $vendor_fax_phone->contact_id = $vendor->id;\n $vendor_fax_phone->location_type_id = config('polanco.location_type.main');\n $vendor_fax_phone->phone = $request->input('phone_main_fax');\n $vendor_fax_phone->phone_type = 'Fax';\n $vendor_fax_phone->save();\n\n $vendor_email_main = new \\App\\Email;\n $vendor_email_main->contact_id = $vendor->id;\n $vendor_email_main->is_primary = 1;\n $vendor_email_main->location_type_id = config('polanco.location_type.main');\n $vendor_email_main->email = $request->input('email_main');\n $vendor_email_main->save();\n\n //TODO: add contact_id which is the id of the creator of the note\n if (! empty($request->input('note'))) {\n $vendor_note = new \\App\\Note;\n $vendor_note->entity_table = 'contact';\n $vendor_note->entity_id = $vendor->id;\n $vendor_note->note = $request->input('note');\n $vendor_note->subject = 'Vendor note';\n $vendor_note->save();\n }\n\n $url_main = new \\App\\Website;\n $url_main->contact_id = $vendor->id;\n $url_main->url = $request->input('url_main');\n $url_main->website_type = 'Main';\n $url_main->save();\n\n $url_work = new \\App\\Website;\n $url_work->contact_id = $vendor->id;\n $url_work->url = $request->input('url_work');\n $url_work->website_type = 'Work';\n $url_work->save();\n\n $url_facebook = new \\App\\Website;\n $url_facebook->contact_id = $vendor->id;\n $url_facebook->url = $request->input('url_facebook');\n $url_facebook->website_type = 'Facebook';\n $url_facebook->save();\n\n $url_google = new \\App\\Website;\n $url_google->contact_id = $vendor->id;\n $url_google->url = $request->input('url_google');\n $url_google->website_type = 'Google';\n $url_google->save();\n\n $url_instagram = new \\App\\Website;\n $url_instagram->contact_id = $vendor->id;\n $url_instagram->url = $request->input('url_instagram');\n $url_instagram->website_type = 'Instagram';\n $url_instagram->save();\n\n $url_linkedin = new \\App\\Website;\n $url_linkedin->contact_id = $vendor->id;\n $url_linkedin->url = $request->input('url_linkedin');\n $url_linkedin->website_type = 'LinkedIn';\n $url_linkedin->save();\n\n $url_twitter = new \\App\\Website;\n $url_twitter->contact_id = $vendor->id;\n $url_twitter->url = $request->input('url_twitter');\n $url_twitter->website_type = 'Twitter';\n $url_twitter->save();\n\n return Redirect::action('VendorController@index');\n }", "public function getDuplicateVendorComplianceSurveyByIdWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "public function create(Request $request)\n {\n\n $this->validate($request, [\n 'name' => 'required|max:255',\n 'kiosk_mode' => 'boolean',\n 'begin_at' => 'nullable|date',\n 'end_at' => 'nullable|date'\n ]);\n\n $survey_details = $request->intersect([\n 'name', 'description', 'return_url', 'css', 'thank_you_message',\n 'slug', 'kiosk_mode', 'begin_at', 'end_at'\n ]);\n\n if(isset($survey_details['slug'])) {\n $survey_details['slug'] = str_replace(' ','_', $survey_details['slug']);\n }\n\n if(isset($survey_details['begin_at'])) {\n $survey_details['begin_at'] = date('Y-m-d H:i:s', strtotime($survey_details['begin_at']));\n }\n\n if(isset($survey_details['end_at'])) {\n $survey_details['end_at'] = date('Y-m-d H:i:s', strtotime($survey_details['end_at']));\n }\n\n //ok, we're valid, now to save form data as a new survey:\n $survey = Survey::create(\n $survey_details\n );\n return redirect('/addquestion/' . $survey->id . '#new-question-form');\n }", "public function store($vendorId)\n\t{\n\t\tInput::merge(array_map('trim', Input::all()));\n $validator = Validator::make(\n array('intVendorId' => $vendorId),\n array('intVendorId' => 'required')\n );\n\n if ($validator->fails()) {\n return $this->respondBadRequest('Invalid Vendor Id.');\n }\n\n $validator = Validator::make(\n Input::get(),\n array(\n 'contactName' => 'required|max:200',\n 'contactDesignation' => 'sometimes|max:200',\n 'contactEmail' => 'sometimes|email|max:200',\n 'contactPhone1' => 'sometimes|max:20',\n 'contactPhone2' => 'sometimes|max:20'\n ));\n if ($validator->fails()) {\n return $this->respondBadRequest('Invalid input.', array('app_error' => $validator->messages()->toArray()));\n }\n\n $vendor = Vendor::find($vendorId);\n if (!$vendor) {\n return $this->respondNotFound('Vendor does not exist.');\n }\n\n $vendorContact = new VendorContact;\n $vendorContact->intVendorId = $vendorId;\n $vendorContact->strContactFullName =Input::get('contactName');\n $vendorContact->strContactDesgnation =Input::get('contactDesignation');\n $vendorContact->strContactEmail =Input::get('contactEmail');\n $vendorContact->strContactPhone1 =Input::get('contactPhone1');\n $vendorContact->strContactPhone2 =Input::get('contactPhone2');\n\n try {\n $vendorContact->save();\n } catch (\\Exception $e) {\n return $this->respondInternalError('Unable to save Vendor contact.');\n }\n $insertedVendorContact = VendorContact::find($vendorContact->intVendorContactId);\n return $this->setStatusCode(ApiController::HTTP_CREATED)->respond($this->vendorContactTransformer->transform($insertedVendorContact));\n\n\t}", "public function addVendorComplianceSurveyFileByURL($body, $vendor_compliance_survey_id)\n {\n $this->addVendorComplianceSurveyFileByURLWithHttpInfo($body, $vendor_compliance_survey_id);\n }", "protected function updateVendorComplianceSurveyRequest($body)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling updateVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testCreateSurveyQuestionChoice0()\n {\n }", "public function testCreateSurveyQuestionChoice0()\n {\n }", "public function testDeleteVendorComplianceSurveyFile()\n {\n }", "public function isValidVendor() {\n\t\t$input = file_get_contents('php://input');\n\t\t$_POST = json_decode($input, TRUE);\n\n\t\t// if no splits then vendor_id is required otherwise MUST be NULL (will be ignored in Save)\n\t\tif (empty($_POST['splits']) && empty($_POST['vendor_id'])) {\n\t\t\t$this->form_validation->set_message('isValidVendor', 'The Vendor Field is Required');\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "function cmst_vendor_add() {\n\t\tglobal $conn;\n\n\t\t// Initialize table object\n\t\t$GLOBALS[\"mst_vendor\"] = new cmst_vendor();\n\n\t\t// Intialize page id (for backward compatibility)\n\t\tif (!defined(\"EW_PAGE_ID\"))\n\t\t\tdefine(\"EW_PAGE_ID\", 'add', TRUE);\n\n\t\t// Initialize table name (for backward compatibility)\n\t\tif (!defined(\"EW_TABLE_NAME\"))\n\t\t\tdefine(\"EW_TABLE_NAME\", 'mst_vendor', TRUE);\n\n\t\t// Open connection to the database\n\t\t$conn = ew_Connect();\n\t}", "public function insert($vendor);", "public function store(CreateVendorRequest $request)\n {\n $this->validate($request, [\n 'vendor_name' => ['required', 'unique:vendors,vendor_name'],\n ]);\n\n\n $input = $request->all();\n\n $vendor = $this->vendorRepository->create($input);\n\n Flash::success('Vendor saved successfully.');\n\n return redirect(route('admin.vendor.vendors.index'));\n }", "function add()\n\t{\n\t\t$companies = $this->company_model->get_many_by(array('active_status' => 1));\n\t\t$violation_levels = $this->violation_level_model->get_many_by(array('active_status' => 1));\n\t\t$violation_types = $this->violation_type_model->get_many_by(array('active_status' => 1));\n\t\t\n\t\t$this->data = array(\n 'page_header' \t=> 'Add New Violation',\n 'notification' \t=> array(\"sound\"=>false),\n\t\t\t'companies'\t\t=> $companies,\n\t\t\t'violation_levels'\t=>$violation_levels,\n\t\t\t'violation_types'\t=>$violation_types\n );\n\t\t$this->load_view('forms/violation-add');\n\t}", "public function create() {\n\t\tif (!$this->isActive()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$log_file = 'spectrum.create';\n\t\t$log_key = strtoupper(Utils::rand('4'));\n\t\t$time_start = microtime(true);\n\t\t\n\t\tif (!isset($this->params['spectrum_survey_id'])) {\n\t\t\t$this->lecho('FAILED: You are missing spectrum_survey_id', $log_file, $log_key);\n\t\t\t$this->lecho('Completed create (Execution time: '.(microtime(true) - $time_start).')', $log_file, $log_key);\n\t\t\treturn false;\n\t\t}\n\t\tif (!$this->loadSettings($log_file, $log_key, $time_start)) {\n\t\t\t$this->lecho('Completed create (Execution time: '.(microtime(true) - $time_start).')', $log_file, $log_key);\n\t\t\t// this method logs the errors already\n\t\t\treturn false;\n\t\t}\n\t\t$this->lecho('Starting create #S'.$this->params['spectrum_survey_id'], $log_file, $log_key);\n\t\t\n\t\t$spectrum_project = $this->SpectrumProject->find('first', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'SpectrumProject.spectrum_survey_id' => $this->params['spectrum_survey_id']\n\t\t\t),\n\t\t\t'order' => 'SpectrumProject.id DESC'\n\t\t));\n\t\tif ($spectrum_project && $spectrum_project['SpectrumProject']['project_id'] > 0) {\n\t\t\t$this->lecho('FAILED: #S'.$this->params['spectrum_survey_id'].' has already been created.', $log_file, $log_key);\n\t\t\t$this->lecho('Completed create (Execution time: '.(microtime(true) - $time_start).')', $log_file, $log_key);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$spectrum_survey_api = $this->getSpectrumSurvey(array('Survey', 'SurveyQuotasAndQualifications')); \n\t\tif (!$spectrum_survey_api) {\n\t\t\t$this->lecho('FAILED: #S'.$this->params['spectrum_survey_id'].' not found in allocations.', $log_file, $log_key);\n\t\t\t$this->lecho('Completed create (Execution time: '.(microtime(true) - $time_start).')', $log_file, $log_key);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$spectrum_countries = Set::extract('Survey.countries.{n}.code', $spectrum_survey_api);\n\t\tif (!in_array('US', $spectrum_countries)) {\n\t\t\t$this->lecho('FAILED: #S'.$this->params['spectrum_survey_id'].' does not have US as country.', $log_file, $log_key);\n\t\t\t$this->lecho('Completed create (Execution time: '.(microtime(true) - $time_start).')', $log_file, $log_key);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$spectrum_survey = $spectrum_survey_api['Survey'];\n\t\t$survey_quotas = $spectrum_survey_api['SurveyQuotas'];\n\t\t// extract partner rate, client rate and award amounts\n\t\t$payouts = $this->Spectrum->payout($spectrum_survey);\n\t\t$overall_quota = $this->Spectrum->quota($spectrum_survey);\n\t\t$direct_allocation = false; // todo: Need to confirm with api\n\t\t$client_link = $this->client_link($spectrum_survey, $log_file, $log_key);\n\t\t$bid_ir = $this->Spectrum->ir($spectrum_survey);\n\t\t$loi = $this->Spectrum->loi($spectrum_survey);\n\t\t$min_time = round($loi / 4);\n\t\tif ($min_time < 1) {\n\t\t\t$min_time = 1;\n\t\t}\n\t\t\n\t\t$save = false;\n\t\t$projectSource = $this->Project->getDataSource();\n\t\t$projectSource->begin();\n\t\t$this->Project->create();\n\t\t$project_data = array('Project' => array(\n\t\t\t'prj_name' => $spectrum_survey['survey_name'],\n\t\t\t'client_id' => $this->spectrum_client['Client']['id'],\n\t\t\t'date_created' => date(DB_DATETIME),\n\t\t\t'bid_ir' => $bid_ir,\n\t\t\t'client_rate' => $payouts['client_rate'],\n\t\t\t'partner_rate' => $payouts['partner_rate'],\n\t\t\t'user_payout' => $payouts['partner_rate'],\n\t\t\t'quota' => $overall_quota,\n\t\t\t'est_length' => $loi,\n\t\t\t'minimum_time' => $min_time,\n\t\t\t'country' => 'US',\n\t\t\t'group_id' => $this->spectrum_group['Group']['id'],\n\t\t\t'status' => PROJECT_STATUS_STAGING,\n\t\t\t'client_project_id' => $spectrum_survey['survey_id'],\n\t\t\t'singleuse' => true,\n\t\t\t'touched' => date(DB_DATETIME),\n\t\t\t'language' => $this->Spectrum->language($spectrum_survey),\n\t\t\t'survey_name' => 'Survey for you!',\n\t\t\t'award' => $payouts['award'],\n\t\t\t'active' => false, // after qualifications load, we'll activate it\n\t\t\t'dedupe' => true,\n\t\t\t'client_survey_link' => $client_link,\n\t\t\t'description' => 'Survey for you!'\n\t\t));\n\t\tif ($this->Project->save($project_data)) {\n\t\t\t$project_id = $this->Project->getInsertId();\n\t\t\t\n\t\t\tMintVine::project_quota_statistics('spectrum', $overall_quota, $project_id);\n\t\t\t\n\t\t\t// Update mask field\n\t\t\t$this->Project->create();\n\t\t\t$this->Project->save(array('Project' => array(\n\t\t\t\t'id' => $project_id,\n\t\t\t\t'mask' => $spectrum_survey['survey_id']\n\t\t\t)), true, array('mask'));\n\t\t\t$projectSource->commit();\n\t\t\t\n\t\t\t$spectrumProjectSource = $this->SpectrumProject->getDataSource();\n\t\t\t$spectrumProjectSource->begin();\n\t\t\t$this->SpectrumProject->create();\n\t\t\t$this->SpectrumProject->save(array('SpectrumProject' => array(\n\t\t\t\t'project_id' => $project_id,\n\t\t\t\t'spectrum_survey_id' => $spectrum_survey['survey_id'],\n\t\t\t\t'current_quota' => $overall_quota,\n\t\t\t\t'status' => SPECTRUM_SURVEY_CREATED,\n\t\t\t\t'direct' => $direct_allocation\n\t\t\t)));\n\t\t\t$spectrum_project = $this->SpectrumProject->find('first', array(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'SpectrumProject.id' => $this->SpectrumProject->getInsertId()\n\t\t\t\t)\n\t\t\t));\n\t\t\t$spectrumProjectSource->commit();\n\t\t\t$this->set_security_group($spectrum_project, $spectrum_survey);\n\t\t\t\n\t\t\t// add mintvine as a partner\n\t\t\t$this->Project->SurveyPartner->create();\n\t\t\t$this->Project->SurveyPartner->save(array('SurveyPartner' => array(\n\t\t\t\t'survey_id' => $project_id,\n\t\t\t\t'partner_id' => $this->mv_partner['Partner']['id'],\n\t\t\t\t'rate' => $payouts['partner_rate'],\n\t\t\t\t'complete_url' => HOSTNAME_WWW.'/surveys/complete/{{ID}}/',\n\t\t\t\t'nq_url' => HOSTNAME_WWW.'/surveys/nq/{{ID}}/',\n\t\t\t\t'oq_url' => HOSTNAME_WWW.'/surveys/oq/{{ID}}/',\n\t\t\t\t'pause_url' => HOSTNAME_WWW.'/surveys/paused/',\n\t\t\t\t'fail_url' => HOSTNAME_WWW.'/surveys/sec/{{ID}}/',\n\t\t\t)));\n\t\t\t$save = true;\n\t\t}\n\t\telseif ($this->Project->validationErrors) {\n\t\t\t$projectSource->commit();\n\t\t\t$this->lecho('[ERROR] Failed saving survey due to internal error', $log_file, $log_key); \n\t\t\t$this->lecho(print_r($this->Project->validationErrors, true), $log_file, $log_key); \n\t\t\t$this->lecho(print_r($project_data, true), $log_file, $log_key); \n\t\t}\n\t\telse {\n\t\t\t$projectSource->commit();\n\t\t}\n\n\t\tif ($save) {\n\t\t\t$this->ProjectLog->create();\n\t\t\t$this->ProjectLog->save(array('ProjectLog' => array(\n\t\t\t\t'project_id' => $project_id,\n\t\t\t\t'type' => 'created',\n\t\t\t\t'description' => ''\n\t\t\t)));\n\t\t\t\n\t\t\tif (!defined('IS_DEV_INSTANCE') || IS_DEV_INSTANCE === false) {\n\t\t\t\t$this->post_on_slack('Spectrum project created <https://cp.mintvine.com/surveys/dashboard/'.$project_id.'>');\n\t\t\t}\n\t\t\t$this->lecho('[SUCCESS] #S'.$spectrum_survey['survey_id'].' created successfully as Project.id#'.$project_id, $log_file, $log_key); \n\t\t\t// run qualifications on this project\n\t\t\t$this->params['spectrum_survey_id'] = $spectrum_survey['survey_id'];\n\t\t\t$this->qqq($spectrum_survey_api);\n\t\t\t\n\t\t\t// launch this project\n\t\t\t$this->Project->bindModel(array('hasOne' => array(\n\t\t\t\t'SpectrumProject' => array(\n\t\t\t\t\t'className' => 'SpectrumProject',\n\t\t\t\t\t'foreignKey' => 'project_id'\n\t\t\t\t)\n\t\t\t)));\n\t\t\t$project = $this->Project->find('first', array(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'Project.id' => $project_id\n\t\t\t\t)\n\t\t\t));\n\t\t\t$this->launchProject($project, $spectrum_survey_api, $log_file, $log_key);\n\t\t\t\n\t\t\t// alert direct allocations to slack\n\t\t\tif ($direct_allocation) {\n\t\t\t\t// post to slack\n\t\t\t\t$setting = $this->Setting->find('first', array(\n\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t'Setting.name' => 'slack.alerts.webhook',\n\t\t\t\t\t\t'Setting.deleted' => false\n\t\t\t\t\t),\n\t\t\t\t\t'fields' => array('Setting.value')\n\t\t\t\t));\n\t\t\t\tif ($setting) {\n\t\t\t\t\t$http = new HttpSocket(array(\n\t\t\t\t\t\t'timeout' => '2',\n\t\t\t\t\t\t'ssl_verify_host' => false // PHP does not seem to check SANs for CNs\n\t\t\t\t\t));\n\t\t\t\t\t$http->post($setting['Setting']['value'], json_encode(array(\n\t\t\t\t\t\t'text' => 'Direct allocation project created from Spectrum: #'.$project_id.' <https://cp.mintvine.com/surveys/dashboard/'.$project_id.'>',\n\t\t\t\t\t\t'link_names' => 1,\n\t\t\t\t\t\t'username' => 'bernard'\n\t\t\t\t\t)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lecho('Completed create (Execution time: '.(microtime(true) - $time_start).')', $log_file, $log_key);\n\t}", "public function addVendorComplianceSurveyFileAsync($vendor_compliance_survey_id, $file_name)\n {\n return $this->addVendorComplianceSurveyFileAsyncWithHttpInfo($vendor_compliance_survey_id, $file_name)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function addVendorComplianceSurveyAuditAsync($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n {\n return $this->addVendorComplianceSurveyAuditAsyncWithHttpInfo($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function addVendorComplianceSurveyFileByURLAsync($body, $vendor_compliance_survey_id)\n {\n return $this->addVendorComplianceSurveyFileByURLAsyncWithHttpInfo($body, $vendor_compliance_survey_id)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "function _civicrm_api3_configexport_create_spec(array &$spec) {\n $spec['entity_type']['api.required'] = 1;\n $spec['entity_id']['api.required'] = 1;\n}", "public function created(TechnicalVendorSchedule $technical_vendor_schedule)\n {\n //\n }", "function add_ad_specification( $category_id, $sub_cate_id, $specification_title, $specification_sort_order, $specification_status )\n\t{\n\t\t$q = \"INSERT INTO title_dev_ad_specifications(`category_id`, `sub_cate_id`, `specification_title`, `specification_sort_order`, `specification_status`, `addeddate`, `modifieddate`)\n\t\t\t VALUES('\".$category_id.\"', '\".$sub_cate_id.\"', '\".$specification_title.\"', '\".$specification_sort_order.\"', '\".$specification_status.\"', '\".date('Y-m-d H:i:s').\"', '\".date('Y-m-d H:i:s').\"')\";\n\t\t$r = $this -> db -> insertRecord( $q );\n\t\tif( $r )\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public function getVendorComplianceSurveyByIdWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->getVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "public function testQuestionCreatePostWithValidData() {\n //Select catalogs\n $catalog = $this->course->catalog()->first();\n $subcatalogs = $catalog->children()->get();\n $ids = array();\n\n foreach ($subcatalogs as $c) {\n $ids[] = $c->id;\n }\n\n $post_data = array(\n 'course' => $this->course->id,\n 'type' => 'Question y',\n 'question' => 'Question y',\n 'answer' => 'Question y',\n 'catalogs' => $ids\n );\n $response = $this->post('question/create', $post_data);\n $this->assertEquals('200', $response->foundation->getStatusCode());\n $this->assertEquals('general.permission', $response->content->view);\n }", "function testSimpleSurvey()\n\t{\n\t\t$this->loadAndCacheFixture();\n\t\t$this->switchUser(FORGE_ADMIN_USERNAME);\n\t\t$this->gotoProject('ProjectA');\n\n\t\t$this->clickAndWait(\"link=Surveys\");\n\t\t$this->clickAndWait(\"link=Administration\");\n\n\t\t// Create some questions\n\t\t$this->clickAndWait(\"link=Add Question\");\n\t\t$this->type(\"question\", \"This is my first question (radio) ?\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->type(\"question\", \"This is my second question (text area) ?\");\n\t\t$this->select($this->byName(\"question_type\"))->selectOptionByLabel(\"Text Area\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->type(\"question\", \"This is my third question (yes/no) ?\");\n\t\t$this->select($this->byName(\"question_type\"))->selectOptionByLabel(\"Radio Buttons Yes/No\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->type(\"question\", \"This is a comment line of text\");\n\t\t$this->select($this->byName(\"question_type\"))->selectOptionByLabel(\"Comment Only\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->type(\"question\", \"This is a my fifth question (text field) ?\");\n\t\t$this->select($this->byName(\"question_type\"))->selectOptionByLabel(\"Text Field\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->type(\"question\", \"L'année dernière à Noël, 3 < 4, 中国 \\\" <em>, père & fils\");\n\t\t$this->select($this->byName(\"question_type\"))->selectOptionByLabel(\"Text Field\");\n\t\t$this->clickAndWait(\"submit\");\n\n\t\t// Create survey\n\t\t$this->clickAndWait(\"link=Add Survey\");\n\t\t$this->type(\"survey_title\", \"My first survey: L'année dernière à Noël, 3 < 4, 中国 \\\" <em>, père & fils\");\n\t\t$this->clickAndWait(\"to_add[]\");\n\t\t$this->clickAndWait(\"//input[@name='to_add[]' and @value='4']\");\n\t\t$this->clickAndWait(\"//input[@name='to_add[]' and @value='2']\");\n\t\t$this->clickAndWait(\"//input[@name='to_add[]' and @value='5']\");\n\t\t$this->clickAndWait(\"//input[@name='to_add[]' and @value='3']\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->clickAndWait(\"link=My first survey: L'année dernière à Noël, 3 < 4, 中国 \\\" <em>, père & fils\");\n\t\t$this->waitForPageToLoad();\n\t\t$this->assertTextPresent(\"This is a my fifth question (text field) ?\");\n\t\t$this->assertTextPresent(\"This is a comment line of text\");\n\t\t$this->assertTextPresent(\"This is my third question (yes/no) ?\");\n\t\t$this->assertTextPresent(\"This is my second question (text area) ?\");\n\t\t$this->clickAndWait(\"//input[@name='_1' and @value='3']\");\n\t\t$this->type(\"_2\", \"hello\");\n\t\t$this->clickAndWait(\"_3\");\n\t\t$this->clickAndWait(\"_5\");\n\t\t$this->type(\"_5\", \"text\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->clickAndWait(\"link=Administration\");\n\t\t$this->clickAndWait(\"link=Show Results\");\n\t\t$this->clickAndWait(\"link=My first survey: L'année dernière à Noël, 3 < 4, 中国 \\\" <em>, père & fils\");\n\t\t$this->waitForPageToLoad();\n\t\t$this->assertTextPresent(\"Warning - you are about to vote a second time on this survey.\");\n\t\t$this->clickAndWait(\"link=Administration\");\n\t\t$this->clickAndWait(\"link=Show Results\");\n\t\t$this->clickAndWait(\"link=Result\");\n\t\t$this->assertTextPresent(\"YES (1)\");\n\t\t$this->assertTextPresent(\"3 (1)\");\n\t\t$this->assertTextPresent(\"1, 2, 3, 4, 5\");\n\t\t// Check that the number of votes is 1\n\t\t$this->assertEquals(\"1\", $this->getText(\"//main[@id='maindiv']/table/tbody/tr/td[5]\"));\n\n\t\t// Now testing by adding new questions to the survey.\n\t\t$this->clickAndWait(\"link=Surveys\");\n\t\t$this->clickAndWait(\"link=Administration\");\n\t\t$this->clickAndWait(\"link=Add Survey\");\n\t\t$this->clickAndWait(\"link=Add Question\");\n\t\t$this->type(\"question\", \"Another added question ?\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->clickAndWait(\"link=Add Survey\");\n\t\t$this->clickAndWait(\"link=Edit\");\n\t\t$this->clickAndWait(\"to_add[]\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->clickAndWait(\"link=Add Survey\");\n\t\t$this->type(\"survey_title\", \"Q10 ?\");\n\t\t$this->clickAndWait(\"link=Add Question\");\n\t\t$this->type(\"question\", \"Q8 ?\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->type(\"question\", \"Q9 ?\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->type(\"question\", \"Q10 ?\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->clickAndWait(\"link=Add Survey\");\n\t\t$this->clickAndWait(\"link=Edit\");\n\t\t$this->clickAndWait(\"to_add[]\");\n\t\t$this->clickAndWait(\"//input[@name='to_add[]' and @value='8']\");\n\t\t$this->clickAndWait(\"//input[@name='to_add[]' and @value='9']\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->assertTextPresent(\"1, 2, 3, 4, 5, 6, 7, 8, 9\");\n\n\t\t// Check that survey is public.\n\t\t$this->logout();\n\t\t$this->gotoProject('ProjectA');\n\t\t$this->clickAndWait(\"link=Surveys\");\n\t\t$this->assertTextPresent(\"My first survey: L'année dernière à Noël, 3 < 4, 中国 \\\" <em>, père & fils\");\n\n//\t\t// Set survey to private\n//\t\t$this->login(FORGE_ADMIN_USERNAME);\n//\n//\t\t$this->open(\"/survey/?group_id=6\");\n//\t\t$this->clickAndWait(\"link=Surveys\");\n//\t\t$this->clickAndWait(\"link=Administration\");\n//\t\t$this->clickAndWait(\"link=Add Survey\");\n//\t\t$this->clickAndWait(\"link=Edit\");\n//\t\t$this->clickAndWait(\"//input[@name='is_public' and @value='0']\");\n//\t\t$this->clickAndWait(\"submit\");\n//\t\t// Log out and check no survey is visible\n//\t\t$this->clickAndWait(\"link=Log Out\");\n//\t\t$this->select($this->byName(\"none\"))->selectOptionByLabel(\"projecta\");\n//\t\t$this->waitForPageToLoad();\n//\t\t$this->clickAndWait(\"link=Surveys\");\n//\t\t$this->assertTextPresent(\"No Survey is found\");\n//\n//\t\t// Check direct access to a survey.\n//\t\t$this->open(\"/survey/survey.php?group_id=6&survey_id=1\");\n//\t\t$this->waitForPageToLoad();\n//\t\t$this->assertFalse($this->isTextPresent(\"My first survey: L'année dernière à Noël, 3 < 4, 中国 \\\" <em>, père & fils\"));\n\t}", "public function create_billing_agreement_with_paypal($requestData){\n \n $agreement = new Agreement();\n if($this->checkEmptyObject($requestData['agreement'])){\n $this->setArrayToMethods(array_filter($requestData['agreement']), $agreement);\n } \n // Add Plan ID\n // Please note that the plan Id should be only set in this case.\n $plan = new Plan();\n $plan->setId($requestData['planId']);\n \n if($this->checkEmptyObject((array)$plan)){\n $agreement->setPlan($plan);\n } \n // Add Payer \n $payer = new Payer();\n if($this->checkEmptyObject($requestData['payer'])){\n $this->setArrayToMethods(array_filter($requestData['payer']), $payer);\n }\n if($this->checkEmptyObject((array)$payer)){\n $agreement->setPayer($payer);\n }\n // Add Shipping Address\n $shippingAddress = new ShippingAddress();\n if($this->checkEmptyObject($requestData['shippingAddress'])){\n $this->setArrayToMethods(array_filter($requestData['shippingAddress']), $shippingAddress);\n }\n if($this->checkEmptyObject((array)$shippingAddress)){\n $agreement->setShippingAddress($shippingAddress);\n } \n // ### Create Agreement\n try {\n // Please note that as the agreement has not yet activated, we wont be receiving the ID just yet.\n $requestArray = clone $agreement;\n $result = $agreement->create($this->_api_context); \n $approvalUrl = $agreement->getApprovalLink(); \n $returnArray['RESULT'] = 'Success';\n $returnArray['ApprovalURL'] = $approvalUrl; \n $returnArray['AGREEMENT'] =$result->toArray(); \n $returnArray['RAWREQUEST']=$requestArray->toJSON();\n $returnArray['RAWRESPONSE']=$agreement->toJSON();\n return $returnArray; \n } catch (\\PayPal\\Exception\\PayPalConnectionException $ex) {\n return $this->createErrorResponse($ex);\n }\n }", "public function addVendor() {\n try {\n if (!($this->vendor instanceof Base_Model_ObtorLib_App_Core_Catalog_Entity_Vendor)) {\n throw new Base_Model_ObtorLib_App_Core_Catalog_Exception(\" Vendor Entity not initialized\");\n } else {\n $objVendor = new Base_Model_ObtorLib_App_Core_Catalog_Dao_Vendor();\n $objVendor->vendor = $this->vendor;\n return $objVendor->addVendor();\n }\n } catch (Exception $ex) {\n throw new Base_Model_ObtorLib_App_Core_Catalog_Exception($ex);\n }\n }", "public function addVendorComplianceSurveyTag($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n $this->addVendorComplianceSurveyTagWithHttpInfo($vendor_compliance_survey_id, $vendor_compliance_survey_tag);\n }", "public function actionCreate() {\n $model = new Surveys();\n\n if ($model->load(Yii::$app->request->post())) {\n if ($model->validate() == TRUE) {\n // print_r($model);\n $model->save();\n Yii::$app->session->setFlash('success', \"Poll Created Succsesfully\");\n\n return $this->redirect('create');\n } else {\n $sessions = Yii::$app->session->set(\"Error\", \"Error when creating Survey\");\n }\n //print_r($model);\n //return $this->redirect(['view', 'id' => $model->survey_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "function addCompany() {\n\t\t\t\t\tPartner::create(array( 'name'\t\t =>\t$_POST['inputName'],\n\t\t\t\t\t\t\t\t\t\t\t'city'\t\t =>\t$_POST['inputCity'],\n\t\t\t\t\t\t\t\t\t\t\t'unix_linux' =>\t$_POST['inputUnixLinux'],\n\t\t\t\t\t\t\t\t\t\t\t'sql'\t\t =>\t$_POST['inputSql'],\n\t\t\t\t\t\t\t\t\t\t\t'git'\t\t =>\t$_POST['inputGit'],\n\t\t\t\t\t\t\t\t\t\t\t'wordpress'\t =>\t$_POST['inputWordpress'],\n\t\t\t\t\t\t\t\t\t\t\t'drupal'\t =>\t$_POST['inputDrupal'],\n\t\t\t\t\t\t\t\t\t\t\t'python'\t =>\t$_POST['inputPython'],\n\t\t\t\t\t\t\t\t\t\t\t'svn'\t\t =>\t$_POST['inputSVN'],\n\t\t\t\t\t\t\t\t\t\t\t'objective_c' =>\t$_POST['inputObjectiveC'],\n\t\t\t\t\t\t\t\t\t\t\t'ruby_rails' =>\t$_POST['inputRuby'],\n\t\t\t\t\t\t\t\t\t\t\t'c_plusplus' =>\t$_POST['inputCPlusPlus'],\n\t\t\t\t\t\t\t\t\t\t\t'dot_net'\t =>\t$_POST['inputNet'],\n\t\t\t\t\t\t\t\t\t\t\t'php'\t\t =>\t$_POST['inputPHP'],\n\t\t\t\t\t\t\t\t\t\t\t'html_css'\t =>\t$_POST['inputHtmlCss'],\n\t\t\t\t\t\t\t\t\t\t\t'java'\t\t =>\t$_POST['inputJava'],\n\t\t\t\t\t\t\t\t\t\t\t'javascript' =>\t$_POST['inputJavascript'],\n\t\t\t\t\t\t\t\t\t\t\t'comments'\t =>\t$_POST['inputComments'])\n\t\t\t\t\t);\n\n\t\t\t\t\t$success = new h2o('views/happySuccess.html');\n\t\t\t\t\techo $success->render();\n\t\t\t\t}", "public function add()\n {\n\n //Log::write('debug',$this->request);\n\n $clientIdentifier = '1234567890';\n //$clientIdentifier = $this->request->query['client_id'];\n if(!$clientIdentifier){\n throw new UnauthorizedException('Client Identifier not found');\n }\n \n /*if(empty($data['email'])){\n throw new BadRequestException(__('Email is required','email'));\n }*/\n\n //$ref_code = 'ref12';\n //$ref_code = $this->request->query['ref_code'];\n /*validate vendor on basis of client identifier*/\n $this->loadModel('Vendors');\n $getVendorId = $this->Vendors->find()->where(['client_identifier'=>$clientIdentifier])->first()->id;\n if (!$getVendorId) {\n throw new UnauthorizedException('This Vendor is not linked to upwardly');\n }\n // Generate username _suggestUsername function\n // $first_name = $this->request->data()['first_name'];\n // $last_name = $this->request->data()['last_name'];\n // $this->request->data['username'] = $this->_suggestUsername($first_name.$last_name);\n\n // $this->request->data['username'] = $username;\n // Create vendor players data\n $this->request->data['vendor_players'][0]['vendor_id'] = $getVendorId;\n // $this->request->data['vendor_players'][0]['ref_code'] = $ref_code;\n $this->request->data['vendor_players'][0]['created'] = '2017-09-06 06:27:24';\n $this->request->data['vendor_players'][0]['modified'] = '2017-09-06 06:27:24';\n $player = $this->Players->newEntity();\n if ($this->request->is('post')) {\n $player = $this->Players->patchEntity($player, $this->request->getData(),['associated'=>['VendorPlayers']]);\n // pr($player); die('ssx');\n if ($this->Players->save($player,['associated'=>['VendorPlayers']])) {\n $data =array();\n $data['status']=true;\n $data['data'] = $player;\n $this->set('data',$data['data']);\n $this->set('status',$data['status']);\n $this->set('_serialize', ['status','data']);\n }\n }\n }", "public function createOrganizationsSurvey()\n {\n return $this->mailer->createOrganizationsSurvey($this->data);\n }", "public function create_survey($category)\n {\n\n $survey = \\App\\Survey::where('name', '=', $category)->first();\n $prepare_questions= $survey->questions()\n ->with('choices')\n ->get();\n $new_survey['prepare_questions'] = $prepare_questions;\n $new_survey['survey_id'] = $survey->id;\n\n\n return json_encode($new_survey);\n\n }", "public function store(Request $request)\n {\n $request->validate(\n [\n 'title' => 'required|max:100',\n 'price' => 'numeric|nullable',\n 'duration' => 'required|numeric',\n 'product_limitation' => 'required|numeric',\n 'description' => 'max:200',\n\n ],\n [\n 'product_limitation.required' => 'No. of Product is required',\n 'product_limitation.numeric' => 'No. of Product must be a numeric value',\n ]\n );\n\n $vendorPlan = new VendorSubscriptionPlans();\n\n $vendorPlan->title = $request->title;\n $vendorPlan->price = $request->price ?? 0;\n $vendorPlan->duration = $request->duration;\n $vendorPlan->product_limitation = $request->product_limitation;\n $vendorPlan->description = $request->description;\n\n if ($vendorPlan->save()){\n Session::flash('success','Vendor Subscription Plan Added');\n return redirect()->route('vendor-subscription-plan.index');\n }else{\n Session::flash('error','Vendor Subscription Plan Not Added');\n return redirect()->back()->withInput();\n }\n }", "public function submit_survey_post()\n\t\t{\n\t\t\t$testId = $this->post('testId');\n\t\t\t$uuid = $this->post('uuid');\n\t\t\t$weekSend = $this->post('weekSend');\n\t\t\tif(!empty($testId) &&\n\t\t\t\t!empty($uuid) &&\n\t\t\t\t!empty($weekSend)\n\t\t\t)\n\t\t\t{\n\t\t\t\t$insertData = array(\n\t\t\t\t\t'ts_uuid' => $uuid,\n\t\t\t\t\t'ts_test_id' => $testId,\n\t\t\t\t\t'ts_week' => $weekSend,\n\t\t\t\t\t'ts_submitted_on' => date('Y-m-d H:i:s')\n\t\t\t\t);\n\t\t\t\t$tempStatus = $this->Student_survey_model->insertSurvey($insertData);\n\t\t\t\tif($tempStatus)\n\t\t\t\t{\n\t\t\t\t\t$data['status'] = $this->lang->line('SUCCESS');\n\t\t\t\t\t$data['message'] = $this->lang->line('VALID_TOKEN_MESSAGE');\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data['status'] = $this->lang->line('FAIL');\n\t\t\t\t\t$data['message'] = $this->lang->line('unable_save_answer');\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$data['status'] = $this->lang->line('FAIL');\n\t\t\t\t$data['message'] = $this->lang->line('please_pass_required');\n\t\t\t}\n\t\t\t$this->response($data , 200);\n\t\t}", "function addeditvendor( $ketObj )\n{\n\t//vendor table array\n\t$strimp = createtable(\"ketechvp\");\n\t$VendorCityArray = explode( \"/\",$_POST['vcity'] );\n\t\n\t$VendorAreaArray = explode( \"/\",$_POST['varea'] );\n\t\n\t/*echo \"<pre>\";\n\tprint_r( $VendorCityArray );\n\tprint_r( $VendorAreaArray );\n\tdie();*/\n\t\n\t$ketechVendor['vname'] =\t$_POST['vname'];\n\t$ketechVendor['vaddress'] =\tstrtolower( $_POST['vaddress'] );\n\t$ketechVendor['vmail'] =\t$_POST['vemail'];\n\t$ketechVendor['vphone']\t =\t$_POST['vphone'];\n\t$ketechVendor['vcname'] =\t$_POST['vcname'];\n\t$ketechVendor['vcaddress'] =\t$_POST['vcaddress'];\n\t$ketechVendor['vcmail'] =\t$_POST['vcemail'];\n\t$ketechVendor['vcphone'] =\t$_POST['vcphone'];\n\t$ketechVendor['varea'] =\t$VendorAreaArray['1'];\n\t$ketechVendor['vareaid'] =\t$VendorAreaArray['0'];\n\t$ketechVendor['vcity'] =\t$VendorCityArray['1'];\n\t$ketechVendor['vcityid'] =\t$VendorCityArray['0'];\n\t$hidvid\t\t\t\t =\t $_POST['hidvid'];\n\t\n\t//usertable array\n\t$ketechUser['uname'] =\t$_POST['vname'];\n\t$ketechUser['uaddress'] =\tstrtolower( $_POST['vaddress'] );\n\t$ketechUser['uemail'] =\t$_POST['vemail'];\n\t$ketechUser['uphone']\t =\t$_POST['vphone'];\n\t$ketechUser['upassword'] = substr($_POST['vphone'],6);\n\t$ketechUser['urole'] =\t 'vendor';\n\t$ketechUser['ucity'] =\t $VendorCityArray['1'];\n\t$ketechUser['ucityid'] = $VendorCityArray['0'];\n\t$ketechUser['uarea'] =\t $VendorAreaArray['1'];\n\t$ketechUser['uareaid'] = $VendorAreaArray['0'];\n\t$hiduid\t =\t$_POST['hiduid'];\n\t\n\t\n\t//$allSet = $ketObj->runquery( \"SELECT\", \"*\", \"ketechprod\", array(), \"\" );\n\tif( isset( $hiduid ) && $hiduid > 0 && isset( $hiduid ) && $hiduid > 0 )\n\t{\n\t\t /*echo \"<pre>\";\n print_r( $_POST );\n die();*/\n\t\t$allSet = $ketObj->runquery( \"UPDATE\", \"\", \"ketechvendor\", $ketechVendor, \"WHERE id=\".$hidvid );\n\t\t$allSet = $ketObj->runquery( \"UPDATE\", \"\", \"ketechuser\", $ketechUser, \"WHERE id=\".$hiduid );\n\t\t\n\t}else\n\t{\n\t\t$allSet = $ketObj->runquery( \"INSERT\", \"*\", \"ketechuser\", $ketechUser );\n\t\t$ketechVendor['uid'] =\tmysql_insert_id();\n\t\t\n\t\t$allSet = $ketObj->runquery( \"INSERT\", \"*\", \"ketechvendor\", $ketechVendor );\n\t\t$subkey = \tmysql_insert_id();\n\t\t$querycreatetable = \"CREATE TABLE IF NOT EXISTS ketechvp_\".$subkey.\" (\".$strimp.\")\";\n\t\t$querycreatetable = \"CREATE TABLE IF NOT EXISTS ketechord_\".$subkey.\" (\".$strimp.\")\";\n\t\tmysql_query( $querycreatetable );\n\t\t/*echo $querycreatetable;\n\t\tdie();*/\n\t}\n\t\t\n\t header( \"Location: index.php?v=\".$_POST['c'].\"&f=\".$_POST['f'] );\n\n}", "protected function getVendorComplianceSurveyFilesRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyFiles'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function create(Productquestion $productquestion)\n {\n //\n }", "public function store(SaveVendorRequest $request)\n {\n $vendor = new Vendor;\n $vendor->vendor_id = $request->input('vendor_id');\n $vendor->vendor_code = $request->input('vendor_code');\n $vendor->supplier_name = $request->input('supplier_name');\n $vendor->contact_person = $request->input('contact_person');\n $vendor->address = $request->input('address');\n $vendor->city = $request->input('city');\n $vendor->state_or_province = $request->input('state_or_province');\n $vendor->country = $request->input('country');\n $vendor->postal_code = $request->input('postal_code');\n $vendor->phone_number = $request->input('phone_number');\n $vendor->fax_number = $request->input('fax_number');\n $vendor->email = $request->input('email');\n $vendor->save();\n\n return redirect()->route('vendors.index')->with('success', 'Vendor created successfully.');\n }", "public function updateVendorComplianceSurveyWithHttpInfo($body)\n {\n $returnType = '';\n $request = $this->updateVendorComplianceSurveyRequest($body);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "public function store(CreateVendorRequest $request)\n {\n $input = $request->all();\n\n $vendor = $this->vendorRepository->create($input);\n\n Session::Flash('msg.success', 'Vendor saved successfully.');\n\n return redirect(route('admin.vendors.index'));\n }", "public function addVendorComplianceSurveyTagAsync($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n return $this->addVendorComplianceSurveyTagAsyncWithHttpInfo($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function addVendorComplianceSurveyFileWithHttpInfo($vendor_compliance_survey_id, $file_name)\n {\n $returnType = '';\n $request = $this->addVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_name);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "public function testCreateSurveyResponse0()\n {\n }", "public function testCreateSurveyResponse0()\n {\n }", "public function store(StoreDhaagaClothingVendor $request)\n {\n \n \n $validatedData = $request->validated();\n\n $dhaagaClothingvendorModel = new DhaagaClothingVendor();\n\n $dhaagaClothingvendorModel->dhaaga_clothing_vendor_id = IdGenerator::generate(['table' => 'dhaaga_clothing_vendors', 'length' => 13, 'field' => 'dhaaga_clothing_vendor_id', 'prefix' => 'VNDR-']);;\n $dhaagaClothingvendorModel->vendor_type = $validatedData['vendor_type'];\n $dhaagaClothingvendorModel->vendor_name = $validatedData['vendor_name'];\n $dhaagaClothingvendorModel->purchased_products = $validatedData['product_purchased'];\n\n $dhaagaClothingvendorModel->phoneNo = $validatedData['phoneNo'];\n $dhaagaClothingvendorModel->address = $validatedData['address'];\n\n $dhaagaClothingvendorModel->status = '1';\n $dhaagaClothingvendorModel->created_by = Auth::id();\n\n\n if ($dhaagaClothingvendorModel->save()) {\n return response()->json(['status'=>'true' , 'message' => 'vendor data add successfully'] , 200);\n }else{\n return response()->json(['status'=>'errorr' , 'message' => 'error occured please try again'] , 200);\n }\n }", "function _approveNewVendor(){\n \n $this->ci->load->library('form_validation');\n $person_id = $this->ci->session->userdata('user_id');\n \n $this->resetResponse();\n\n $this->ci->form_validation->set_rules('personId', 'Vendor Person Id', 'trim|required|xss_clean|encode_php_tags|integer', array('required' => 'You must provide a %s.'));\n\n if ($this->ci->form_validation->run() == FALSE) { \n $this->_status = false;\n $this->_message = $this->ci->lang->line('person_id_missing');\n return $this->getResponse();\n } else {\n\n $personId = $this->ci->input->post('personId', true);\n $result = $this->model->get_tb('mm_person', 'person_id', array('person_id' => $personId))->result();\n if (count($result) > 0) {\n $this->model->update_tb('mm_person', array('person_id' => $personId), array('person_status'=>1));\n \n if( $this->model->getAffectedRowCount() > 0 ) {\n $this->_status = true;\n $this->_message = $this->ci->lang->line('vendor_approved'); \n }\n } else {\n $this->_status = FALSE;\n $this->_message = $this->ci->lang->line('invalid_data'); \n \n }\n\n return $this->getResponse();\n }\n \n }", "public function getCreateSurvey()\n {\n return 'MERGE (s:Survey { id: 1 }) SET s.year = 2016';\n }", "public function installVendorForms()\n {\n $allowedAttributes = [\n 'public_name',\n 'shop_url',\n 'created_at',\n 'status',\n 'group',\n 'name',\n 'gender',\n 'profile_picture',\n 'email',\n 'contact_number',\n 'company_name',\n 'about',\n 'company_logo',\n 'company_banner',\n 'company_address',\n 'support_number',\n 'support_email',\n ];\n\n $typeId = $this->vendorModel->getEntityTypeId();\n\n $vendorAttributes = $this->attributeFactory->create()->getCollection()\n ->addFieldToFilter('entity_type_id', ['eq' => $typeId])\n //->addFieldToFilter('attribute_code',['in'=>$allowedAttributes))\n ->setOrder('attribute_id', 'ASC');\n\n foreach ($vendorAttributes as $attribute) {\n $sortOrder = array_keys($allowedAttributes, $attribute->getAttributeCode());\n $sortOrder = isset($sortOrder[0]) ? $sortOrder[0] : 0;\n $visibility = in_array($attribute->getAttributeCode(), $allowedAttributes) ? 1 : 0;\n $data[] = [\n 'attribute_id' => $attribute->getId(),\n 'attribute_code' => $attribute->getAttributeCode(),\n 'is_visible' => $visibility,\n 'sort_order' => $sortOrder,\n 'store_id' => 0\n ];\n }\n\n if (!empty($data)) {\n $this->form->insertMultiple($data);\n }\n }", "public function create()\n {\n $steps[] = array('name'=>'Company Details','status'=>\"active\");\n $steps[] = array('name'=>'Invoice Settlement','status'=>\"pending\");\n $steps[] = array('name'=>'Finish','status'=>\"pending\");\n\n $types[] = array(\"id\"=>\"NEW\",\"name\"=>\"NEW\");\n $types[] = array(\"id\"=>\"RENEW\",\"name\"=>\"RENEW\");\n $countries[] = array(\"id\"=>'ZIMBABWE',\"name\"=>\"ZIMBABWE\");\n $countries[] = array(\"id\"=>\"FOREIGN\",\"name\"=>\"FOREIGN\");\n return view('user.vendorregistrations.create',compact('steps',\"types\",\"countries\"));\n }", "public function addVendorComplianceSurveyAudit($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n {\n $this->addVendorComplianceSurveyAuditWithHttpInfo($vendor_compliance_survey_id, $vendor_compliance_survey_audit);\n }", "private function validateSurveyStore($request) {\n $this->validate($request, [\n 'surveyName' => 'required|max:255',\n 'deliveryfrequency' => 'required|max:255',\n 'programstartdate' => 'required|date',\n 'chooseSurvey' => 'required|max:255',\n 'participantOne' => 'required|max:255',\n 'participantTwo' => 'required|max:255',\n 'participantThree' => 'required|max:255',\n 'participantFour' => 'required|max:255',\n 'participantFive' => 'required|max:255',\n 'questionOne' => 'required|max:255',\n 'questionTwo' => 'required|max:255',\n 'questionThree' => 'required|max:255',\n 'questionFour' => 'required|max:255',\n 'questionFive' => 'required|max:255',\n 'questionOneLikert' => 'required|max:255',\n 'questionTwoLikert' => 'required|max:255',\n 'questionThreeLikert' => 'required|max:255',\n 'questionFourLikert' => 'required|max:255',\n 'questionFiveLikert' => 'required|max:255'\n ]);\n\n return true;\n }", "function adstrue_vendor_add_provice() {\n return build_form_province();\n}", "public function testVenueQuestionnaire()\n {\n $this->buildVenueSurvey();\n\n $response = $this->json('GET', \"survey/questionnaire\", ['slot_id' => $this->slot->id, 'type' => Survey::TRAINING]);\n $response->assertStatus(200);\n\n $survey = $this->survey;\n $venueGroup = $this->venueGroup;\n $venueQ = $this->venueQuestion;\n $trainerGroup = $this->trainerGroup;\n $trainerQ = $this->trainerQuestion;\n\n $response->assertJson([\n 'survey' => [\n 'id' => $survey->id,\n 'type' => Survey::TRAINING,\n 'year' => $survey->year,\n 'title' => $survey->title,\n ]\n ]);\n\n $response->assertJson([\n 'survey' => [\n 'survey_groups' => [\n [\n 'id' => $venueGroup->id,\n 'title' => $venueGroup->title,\n 'description' => $venueGroup->description,\n 'survey_questions' => [\n [\n 'id' => $venueQ->id,\n 'sort_index' => $venueQ->sort_index,\n 'type' => $venueQ->type,\n 'description' => $venueQ->description,\n ]\n ]\n ],\n\n [\n 'id' => $trainerGroup->id,\n 'title' => $trainerGroup->title,\n 'description' => $trainerGroup->description,\n 'survey_questions' => [\n [\n 'id' => $trainerQ->id,\n 'sort_index' => $trainerQ->sort_index,\n 'type' => $trainerQ->type,\n 'description' => $trainerQ->description,\n ]\n ]\n\n ]\n ]\n ]\n ]);\n\n $trainer = $this->trainer;\n\n $response->assertJson([\n 'trainers' => [\n [\n 'id' => $trainer->id,\n 'callsign' => $trainer->callsign,\n 'position_id' => Position::TRAINER\n ]\n ]\n ]);\n\n $slot = $this->slot;\n $response->assertJson([\n 'slot' => [\n 'id' => $slot->id,\n 'begins' => $slot->begins\n ]\n ]);\n //return response()->json(['survey' => $survey, 'trainers' => $trainers, 'slot' => $slot]);\n\n }" ]
[ "0.7047817", "0.6537694", "0.61607873", "0.6111061", "0.6014949", "0.60021234", "0.5973309", "0.5960863", "0.5832383", "0.5815311", "0.58092386", "0.58035237", "0.5728759", "0.5726923", "0.57082355", "0.5653393", "0.56231815", "0.55713123", "0.55346024", "0.5522425", "0.5522425", "0.5449154", "0.5434106", "0.5409703", "0.5400502", "0.53976375", "0.53871757", "0.5356595", "0.5348249", "0.5346178", "0.53328973", "0.529199", "0.52867746", "0.5271756", "0.52682066", "0.5264654", "0.5242794", "0.5197051", "0.5196981", "0.51868147", "0.51868147", "0.5167489", "0.5142282", "0.51105374", "0.50771105", "0.5041714", "0.50408345", "0.49999946", "0.4905597", "0.48989525", "0.48970336", "0.48933178", "0.4883034", "0.4877531", "0.4877531", "0.48465115", "0.48433447", "0.4842515", "0.48355398", "0.48002535", "0.47810835", "0.47690544", "0.47651058", "0.47460583", "0.4741244", "0.4735424", "0.47256434", "0.4714212", "0.47110516", "0.47035", "0.4698468", "0.46770123", "0.4660499", "0.46601823", "0.46457374", "0.4644342", "0.4638464", "0.46322727", "0.46274367", "0.46253505", "0.4624128", "0.4621814", "0.46121088", "0.4605736", "0.46016535", "0.45977458", "0.45829034", "0.45676607", "0.45636588", "0.45458928", "0.45458928", "0.4544997", "0.45418617", "0.453776", "0.45235655", "0.45181867", "0.45110613", "0.45100507", "0.4500525", "0.4499518" ]
0.67274946
1
Test case for addVendorComplianceSurveyAudit Add new audit for a vendorComplianceSurvey.
public function testAddVendorComplianceSurveyAudit() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addVendorComplianceSurveyAuditRequest($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyAudit'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_audit' is set\n if ($vendor_compliance_survey_audit === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_audit when calling addVendorComplianceSurveyAudit'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/audit/{vendorComplianceSurveyAudit}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_audit !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyAudit' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_audit),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testAddVendorComplianceSurvey()\n {\n }", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function addVendorComplianceSurvey($body)\n {\n list($response) = $this->addVendorComplianceSurveyWithHttpInfo($body);\n return $response;\n }", "public function testAddVendorComplianceSurveyTag()\n {\n }", "public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }", "public function testGetDuplicateVendorComplianceSurveyById()\n {\n }", "public function testAddVendorComplianceSurveyFile()\n {\n }", "public function addVendorComplianceSurveyAuditAsync($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n {\n return $this->addVendorComplianceSurveyAuditAsyncWithHttpInfo($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function addVendorComplianceSurveyAuditWithHttpInfo($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n {\n $returnType = '';\n $request = $this->addVendorComplianceSurveyAuditRequest($vendor_compliance_survey_id, $vendor_compliance_survey_audit);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "public function addVendorComplianceSurveyAudit($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n {\n $this->addVendorComplianceSurveyAuditWithHttpInfo($vendor_compliance_survey_id, $vendor_compliance_survey_audit);\n }", "public function testGetVendorComplianceSurveyById()\n {\n }", "public function testDeleteVendorComplianceSurvey()\n {\n }", "public function addAudit(Audit $audit);", "protected function addVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling addVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function test_addLegacyLowstockContactAudit() {\n\n }", "public function addVendorAudit($vendor_id, $vendor_audit)\n {\n list($response, $statusCode, $httpHeader) = $this->addVendorAuditWithHttpInfo ($vendor_id, $vendor_audit);\n return $response; \n }", "public function testGetVendorComplianceSurveyByFilter()\n {\n }", "public function testAddVendorComplianceSurveyFileByURL()\n {\n }", "public function addVendorComplianceSurveyAsync($body)\n {\n return $this->addVendorComplianceSurveyAsyncWithHttpInfo($body)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function addVendorComplianceSurveyWithHttpInfo($body)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->addVendorComplianceSurveyRequest($body);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 405:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\ApiResponse',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "public function add_reseller_program_survey_question()\n {\n $this->loadModel('ResellerProgramSurveyQuestions');\n if (!$this->request->is('post')) {\n throw new MethodNotAllowedException(__('BAD_REQUEST'));\n }\n $resellerProgramSurveyQuestion=$this->request->data;\n $resellerProgramSurveyQuestion = $this->ResellerProgramSurveyQuestions->newEntity($resellerProgramSurveyQuestion);\n if ($this->ResellerProgramSurveyQuestions->save($resellerProgramSurveyQuestion)) {\n $this->set('resellerProgramSurveyQuestion', $resellerProgramSurveyQuestion);\n $this->set('response', ['status' => \"OK\"]);\n } else {\n throw new InternalErrorException(__('Internal Error'));\n }\n $data =array();\n $data['status']=true;\n $data['data']['id']=$resellerProgramSurveyQuestion->id;\n $this->set('response',$data);\n $this->set('_serialize', ['response']);\n }", "function survey_add($d){\n $url = $this->url.\"survey_add\";\n $data['case_id'] =$d['case_id'] ;\n $data['satisfactoriness'] =$d['satisfactoriness'] ;\n $data['satisfied_reason'] =$d['satisfied_reason'] ;\n $data['submitter'] =$d['submitter'] ;\n $this->setTransactionToLog(\"method:\".__METHOD__);\n $result = $this->_exec($url,$data);\n }", "protected function getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getDuplicateVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/duplicate/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "private function ensure_auditing()\n {\n // ignore if auditing is not enabled\n $setting_manager = bus\\setting_manager::self();\n if( !$setting_manager->get_setting( 'audit_db', 'enabled' ) ) return;\n\n // check the primary key value\n $primary_key_name = static::get_primary_key_name();\n if( is_null( $this->$primary_key_name ) )\n {\n log::warning( 'Cannot ensure auditing for phase with no id.' );\n return;\n }\n \n // check the sid\n if( is_null( $this->sid ) )\n {\n log::warning( 'Cannot ensure auditing for phase with no sid.' );\n return;\n }\n \n $survey_table = $setting_manager->get_setting( 'survey_db', 'prefix' ).'survey_'.$this->sid;\n $audit_table = $setting_manager->get_setting( 'audit_db', 'prefix' ).'survey_'.$this->sid;\n\n // check to see if the audit table already exists\n $count = static::db()->get_one( sprintf(\n ' SELECT COUNT(*)'.\n ' FROM information_schema.TABLES'.\n ' WHERE TABLE_SCHEMA = %s'.\n ' AND TABLE_NAME = %s',\n database::format_string( $setting_manager->get_setting( 'audit_db', 'database' ) ),\n database::format_string( $audit_table ) ) );\n \n if( 0 == $count )\n {\n $audit_db = bus\\session::self()->get_audit_database();\n $survey_db = bus\\session::self()->get_survey_database();\n\n // get the survey table's create syntax\n $row = $survey_db->get_row( 'SHOW CREATE TABLE '.$survey_table );\n $sql = $row['Create Table'];\n\n // add a timestamp\n $insert_pos = strpos( $sql, '`submitdate`' );\n $insert_sql =\n substr( $sql, 0, $insert_pos ).\n '`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP'.\n \" ON UPDATE CURRENT_TIMESTAMP,\\n\".\n substr( $sql, $insert_pos );\n\n // remove the auto increment\n $insert_sql = preg_replace( '/ AUTO_INCREMENT(=[0-9]+)?/', '', $insert_sql );\n\n // remove the primary key\n $insert_sql = str_replace( \",\\nPRIMARY KEY (`id`)\", '', $insert_sql );\n\n // set the table name\n $insert_sql = preg_replace( '/`'.$survey_table.'` \\(\\n/',\n '`'.$audit_table.\"` ( \\n\", $insert_sql );\n\n $audit_db->execute( $insert_sql );\n\n // TODO: need to add the trigger\n }\n }", "function add()\n\t{\n\t\t$companies = $this->company_model->get_many_by(array('active_status' => 1));\n\t\t$violation_levels = $this->violation_level_model->get_many_by(array('active_status' => 1));\n\t\t$violation_types = $this->violation_type_model->get_many_by(array('active_status' => 1));\n\t\t\n\t\t$this->data = array(\n 'page_header' \t=> 'Add New Violation',\n 'notification' \t=> array(\"sound\"=>false),\n\t\t\t'companies'\t\t=> $companies,\n\t\t\t'violation_levels'\t=>$violation_levels,\n\t\t\t'violation_types'\t=>$violation_types\n );\n\t\t$this->load_view('forms/violation-add');\n\t}", "public function addVendorComplianceSurveyAuditAsyncWithHttpInfo($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n {\n $returnType = '';\n $request = $this->addVendorComplianceSurveyAuditRequest($vendor_compliance_survey_id, $vendor_compliance_survey_audit);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n return [null, $response->getStatusCode(), $response->getHeaders()];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "public function test_addCustomerAudit() {\n\n }", "public function testAddConsent(): void\n\t{\n\t\t$request = $this->httpClient->post('ApprovalsRegister/Record', \\App\\Utils::merge(['json' => [\n\t\t\t'subject' => 'Text',\n\t\t\t'approvalsid' => self::$approvalId,\n\t\t\t'contactid' => self::$recordId,\n\t\t\t'approvals_register_type' => 'PLL_ACCEPTANCE',\n\t\t\t'approvals_register_status' => 'PLL_ACCEPTED',\n\t\t\t'registration_date' => date('Y-m-d H:i:s'),\n\t\t]], self::$requestOptions));\n\t\t$this->logs = $body = $request->getBody()->getContents();\n\t\t$response = \\App\\Json::decode($body);\n\t\tstatic::assertSame(200, $request->getStatusCode(), 'ApprovalsRegister/RecordAPI error: ' . PHP_EOL . $request->getReasonPhrase() . '|' . $body);\n\t\tstatic::assertSame(1, $response['status'], 'ApprovalsRegister/Record API error: ' . PHP_EOL . $request->getReasonPhrase() . '|' . $body);\n\t\tstatic::assertNotEmpty($response['result'], 'ApprovalsRegister/Record result is empty and should have at least one entry.');\n\t\tstatic::assertNotEmpty($response['result']['id'], 'ApprovalsRegister/Record record should not be empty');\n\t\tself::assertResponseBodyMatch($response, self::$schemaManager, '/webservice/ManageConsents/ApprovalsRegister/Record', 'post', 200);\n\t\t\\ApprovalsRegister_Module_Model::reloadApprovals(self::$recordId);\n\t}", "public function testGetVendorComplianceSurveyFiles()\n {\n }", "public function add_reseller_program_survey()\n {\n $this->loadModel('ResellerProgramSurveys');\n if (!$this->request->is('post')) {\n throw new MethodNotAllowedException(__('BAD_REQUEST'));\n }\n \n $resellerProgramId = $this->Auth->user('id');\n $this->request->data['reseller_program_id'] = $resellerProgramId;\n $resellerProgramSurveys=$this->request->data;\n\n $resellerProgramSurveys = $this->ResellerProgramSurveys->newEntity($resellerProgramSurveys);\n //pr($resellerProgramSurveys); die;\n if ($this->ResellerProgramSurveys->save($resellerProgramSurveys)) {\n $this->set('resellerProgramSurveys', $resellerProgramSurveys);\n $this->set('response', ['status' => \"OK\"]);\n } else {\n //pr($resellerProgramSurveys->errors()); die;\n throw new InternalErrorException(__('Internal Error'));\n }\n $data =array();\n $data['status']=true;\n $data['data']['id']=$resellerProgramSurveys->id;\n $this->set('response',$data);\n $this->set('_serialize', ['response']);\n }", "public function testDeleteVendorComplianceSurveyTag()\n {\n }", "public function testGetVendorComplianceSurveyTags()\n {\n }", "protected function deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function addVendorAuditWithHttpInfo($vendor_id, $vendor_audit)\n {\n \n // verify the required parameter 'vendor_id' is set\n if ($vendor_id === null) {\n throw new \\InvalidArgumentException('Missing the required parameter $vendor_id when calling addVendorAudit');\n }\n // verify the required parameter 'vendor_audit' is set\n if ($vendor_audit === null) {\n throw new \\InvalidArgumentException('Missing the required parameter $vendor_audit when calling addVendorAudit');\n }\n \n // parse inputs\n $resourcePath = \"/beta/vendor/{vendorId}/audit/{vendorAudit}\";\n $httpBody = '';\n $queryParams = array();\n $headerParams = array();\n $formParams = array();\n $_header_accept = ApiClient::selectHeaderAccept(array('application/json'));\n if (!is_null($_header_accept)) {\n $headerParams['Accept'] = $_header_accept;\n }\n $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array('application/json'));\n \n \n \n // path params\n \n if ($vendor_id !== null) {\n $resourcePath = str_replace(\n \"{\" . \"vendorId\" . \"}\",\n $this->apiClient->getSerializer()->toPathValue($vendor_id),\n $resourcePath\n );\n }// path params\n \n if ($vendor_audit !== null) {\n $resourcePath = str_replace(\n \"{\" . \"vendorAudit\" . \"}\",\n $this->apiClient->getSerializer()->toPathValue($vendor_audit),\n $resourcePath\n );\n }\n // default format to json\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n\n \n \n \n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n } elseif (count($formParams) > 0) {\n $httpBody = $formParams; // for HTTP post (form)\n }\n \n // this endpoint requires API key authentication\n $apiKey = $this->apiClient->getApiKeyWithPrefix('API-Key');\n if (strlen($apiKey) !== 0) {\n $headerParams['API-Key'] = $apiKey;\n }\n \n \n // make the API Call\n try {\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\n $resourcePath, 'PUT',\n $queryParams, $httpBody,\n $headerParams\n );\n \n return array(null, $statusCode, $httpHeader);\n \n } catch (ApiException $e) {\n switch ($e->getCode()) { \n }\n \n throw $e;\n }\n }", "public function test_addExternalShipmentAudit() {\n\n }", "public function test_addLowStockAudit() {\n\n }", "public function addVendorComplianceSurveyAsyncWithHttpInfo($body)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->addVendorComplianceSurveyRequest($body);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "public function insert($vendor);", "protected function addVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_name)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_name' is set\n if ($file_name === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_name when calling addVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileName}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_name !== null) {\n $resourcePath = str_replace(\n '{' . 'fileName' . '}',\n ObjectSerializer::toPathValue($file_name),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function test_addOrderLineActivityAudit() {\n\n }", "protected function addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addVendorComplianceSurveyFileByURL'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFileByURL'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testAddPackingPlanAudit()\n {\n }", "public function addquestion(Request $request, Survey $survey)\n {\n $this->validate($request, [\n 'label'=>'required|max:255',\n 'options'=>'required_if:type,select,checkbox-list,section',\n 'required'=>'boolean'\n ]);\n $data = array();\n $data = $request->intersect([\n 'label', 'question_type', 'options', 'required', 'css_class'\n ]);\n /*\n $data['label'] = $request->input('label');\n $data['question_type'] = $request->input('type');\n if($request->has('options')) {\n $data['options'] = $request->input('options');\n }\n if($request->has('required') && $request->input('type') != 'section') {\n $data['required'] = '1';\n }\n */\n // return($data);\n $survey->questions()->create($data);\n return redirect('/addquestion/' . $survey->id . '#new-question-form');\n }", "public function addVendorComplianceSurveyFileByURLAsync($body, $vendor_compliance_survey_id)\n {\n return $this->addVendorComplianceSurveyFileByURLAsyncWithHttpInfo($body, $vendor_compliance_survey_id)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "protected function getVendorComplianceSurveyTagsRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyTags'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function getVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testAddItemSubCategoryAudit()\n {\n }", "public function save()\n {\n parent::save();\n\n // make sure that we are auditing this phase's survey\n $this->ensure_auditing();\n }", "public function addVendorComplianceSurveyFile($vendor_compliance_survey_id, $file_name)\n {\n $this->addVendorComplianceSurveyFileWithHttpInfo($vendor_compliance_survey_id, $file_name);\n }", "public function testCreateSurvey0()\n {\n }", "public function testCreateSurvey0()\n {\n }", "protected function deleteVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling deleteVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function test_addReplenishmentProcessAudit() {\n\n }", "protected function addVendorComplianceSurveyRequest($body)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "function cmst_vendor_add() {\n\t\tglobal $conn;\n\n\t\t// Initialize table object\n\t\t$GLOBALS[\"mst_vendor\"] = new cmst_vendor();\n\n\t\t// Intialize page id (for backward compatibility)\n\t\tif (!defined(\"EW_PAGE_ID\"))\n\t\t\tdefine(\"EW_PAGE_ID\", 'add', TRUE);\n\n\t\t// Initialize table name (for backward compatibility)\n\t\tif (!defined(\"EW_TABLE_NAME\"))\n\t\t\tdefine(\"EW_TABLE_NAME\", 'mst_vendor', TRUE);\n\n\t\t// Open connection to the database\n\t\t$conn = ew_Connect();\n\t}", "public function executeCustomerEnquiryAdd()\n {\n }", "public function actionCreate($vendor_id)\n\t{\n\t\t//die('here');\n\t\t$w_id = '';\n\t\tif(isset(Yii::app()->session['w_id']) && !empty(Yii::app()->session['w_id'])){\n\t\t\t$w_id = Yii::app()->session['w_id'];\n\t\t}\n\t\tif(!$this->checkAccessByData('VendorCreditEditor', array('warehouse_id'=>$w_id))){\n\t\t\tYii::app()->user->setFlash('premission_info', 'You dont have permission.! Bitch');\n\t\t\tYii::app()->controller->redirect(\"index.php?r=vendor/admin&w_id=\".$w_id);\n\t\t}\n $initial_pending_date = VendorDao::getInitialPendingDate();\n\t\t$model=new VendorPayment;\n\t\t$model->vendor_id = $vendor_id;\n\t\t$vendor = Vendor::model()->findByPk($vendor_id);\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['VendorPayment']))\n\t\t{\n if(strtotime($_POST['VendorPayment']['date']) <= strtotime($initial_pending_date)){\n Yii::app()->user->setFlash('error', \"Can't create payment to be created before base_date. Please Ask Developer\" );\n Yii::app()->controller->redirect(\"index.php?r=vendorPayment/admin&w_id=\".$w_id);\n }\n\t\t\t$model->attributes=$_POST['VendorPayment'];\n\t\t\t$model->created_at = date('Y-m-d');\n\t\t\tif($model->save()){\n\t\t\t\t$vendor->total_pending_amount-= $model->paid_amount;\n\t\t\t\tif(!$vendor->save()){\n\t\t\t\t\techo '<pre>';\n\t\t\t\t\tdie(print_r($vendor->getErrors()));\n\t\t\t\t}\n\t\t\t\t$this->redirect(array('vendor/admin'));\n\t\t\t}\n\t\t}\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t\t'vendor' => $vendor,\n\t\t\t));\n\t}", "public function testAddExternalShipmentAudit()\n {\n }", "public function testNewPaidYearlyAccountAddValidRecord()\n {\n $this->insight->accounts->addPaid(12345, new PlanM(), new Yearly());\n\n $row = $this->connection->executeFirstRow(\"SELECT * FROM {$this->insight->getTableName('accounts')} WHERE `id` = ?\", 12345);\n\n $this->assertInternalType('array', $row);\n $this->assertEquals(12345, $row['id']);\n $this->assertEquals(AccountsInterface::PAID, $row['status']);\n $this->assertEquals(PlanM::class, $row['plan']);\n $this->assertEquals(Yearly::class, $row['billing_period']);\n $this->assertEquals($this->current_timestamp->format('Y-m-d H:i:s'), $row['created_at']->format('Y-m-d H:i:s'));\n $this->assertEquals(date('Y'), $row['cohort_year']);\n $this->assertEquals(date('m'), $row['cohort_month']);\n $this->assertNull($row['canceled_at']);\n $this->assertEquals(41.583, $row['mrr_value']);\n $this->assertFalse($row['had_trial']);\n }", "public function test_addItemCategoryAudit() {\n\n }", "public function testVenueSubmitSurvey()\n {\n $this->buildVenueSurvey();\n\n $venueG = $this->venueGroup;\n $venueQ = $this->venueQuestion;\n\n $response = $this->json('POST', 'survey/submit', [\n 'slot_id' => $this->slot->id,\n 'type' => Survey::TRAINING,\n 'survey' => [\n [\n 'survey_group_id' => $venueG->id,\n 'answers' => [\n [\n 'survey_question_id' => $venueQ->id,\n 'response' => 'a response'\n ]\n ]\n ],\n ]\n ]);\n\n $response->assertStatus(200);\n\n $this->assertDatabaseHas('survey_answer', [\n 'person_id' => $this->user->id,\n 'slot_id' => $this->slot->id,\n 'survey_question_id' => $venueQ->id,\n 'response' => 'a response'\n ]);\n }", "protected function addParcelInvoiceAuditRequest($parcel_invoice_id, $parcel_invoice_audit)\n {\n // verify the required parameter 'parcel_invoice_id' is set\n if ($parcel_invoice_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $parcel_invoice_id when calling addParcelInvoiceAudit'\n );\n }\n // verify the required parameter 'parcel_invoice_audit' is set\n if ($parcel_invoice_audit === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $parcel_invoice_audit when calling addParcelInvoiceAudit'\n );\n }\n\n $resourcePath = '/beta/parcelInvoice/{parcelInvoiceId}/audit/{parcelInvoiceAudit}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($parcel_invoice_id !== null) {\n $resourcePath = str_replace(\n '{' . 'parcelInvoiceId' . '}',\n ObjectSerializer::toPathValue($parcel_invoice_id),\n $resourcePath\n );\n }\n // path params\n if ($parcel_invoice_audit !== null) {\n $resourcePath = str_replace(\n '{' . 'parcelInvoiceAudit' . '}',\n ObjectSerializer::toPathValue($parcel_invoice_audit),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function addVendorComplianceSurveyFileByURL($body, $vendor_compliance_survey_id)\n {\n $this->addVendorComplianceSurveyFileByURLWithHttpInfo($body, $vendor_compliance_survey_id);\n }", "function addeditvendor( $ketObj )\n{\n\t//vendor table array\n\t$strimp = createtable(\"ketechvp\");\n\t$VendorCityArray = explode( \"/\",$_POST['vcity'] );\n\t\n\t$VendorAreaArray = explode( \"/\",$_POST['varea'] );\n\t\n\t/*echo \"<pre>\";\n\tprint_r( $VendorCityArray );\n\tprint_r( $VendorAreaArray );\n\tdie();*/\n\t\n\t$ketechVendor['vname'] =\t$_POST['vname'];\n\t$ketechVendor['vaddress'] =\tstrtolower( $_POST['vaddress'] );\n\t$ketechVendor['vmail'] =\t$_POST['vemail'];\n\t$ketechVendor['vphone']\t =\t$_POST['vphone'];\n\t$ketechVendor['vcname'] =\t$_POST['vcname'];\n\t$ketechVendor['vcaddress'] =\t$_POST['vcaddress'];\n\t$ketechVendor['vcmail'] =\t$_POST['vcemail'];\n\t$ketechVendor['vcphone'] =\t$_POST['vcphone'];\n\t$ketechVendor['varea'] =\t$VendorAreaArray['1'];\n\t$ketechVendor['vareaid'] =\t$VendorAreaArray['0'];\n\t$ketechVendor['vcity'] =\t$VendorCityArray['1'];\n\t$ketechVendor['vcityid'] =\t$VendorCityArray['0'];\n\t$hidvid\t\t\t\t =\t $_POST['hidvid'];\n\t\n\t//usertable array\n\t$ketechUser['uname'] =\t$_POST['vname'];\n\t$ketechUser['uaddress'] =\tstrtolower( $_POST['vaddress'] );\n\t$ketechUser['uemail'] =\t$_POST['vemail'];\n\t$ketechUser['uphone']\t =\t$_POST['vphone'];\n\t$ketechUser['upassword'] = substr($_POST['vphone'],6);\n\t$ketechUser['urole'] =\t 'vendor';\n\t$ketechUser['ucity'] =\t $VendorCityArray['1'];\n\t$ketechUser['ucityid'] = $VendorCityArray['0'];\n\t$ketechUser['uarea'] =\t $VendorAreaArray['1'];\n\t$ketechUser['uareaid'] = $VendorAreaArray['0'];\n\t$hiduid\t =\t$_POST['hiduid'];\n\t\n\t\n\t//$allSet = $ketObj->runquery( \"SELECT\", \"*\", \"ketechprod\", array(), \"\" );\n\tif( isset( $hiduid ) && $hiduid > 0 && isset( $hiduid ) && $hiduid > 0 )\n\t{\n\t\t /*echo \"<pre>\";\n print_r( $_POST );\n die();*/\n\t\t$allSet = $ketObj->runquery( \"UPDATE\", \"\", \"ketechvendor\", $ketechVendor, \"WHERE id=\".$hidvid );\n\t\t$allSet = $ketObj->runquery( \"UPDATE\", \"\", \"ketechuser\", $ketechUser, \"WHERE id=\".$hiduid );\n\t\t\n\t}else\n\t{\n\t\t$allSet = $ketObj->runquery( \"INSERT\", \"*\", \"ketechuser\", $ketechUser );\n\t\t$ketechVendor['uid'] =\tmysql_insert_id();\n\t\t\n\t\t$allSet = $ketObj->runquery( \"INSERT\", \"*\", \"ketechvendor\", $ketechVendor );\n\t\t$subkey = \tmysql_insert_id();\n\t\t$querycreatetable = \"CREATE TABLE IF NOT EXISTS ketechvp_\".$subkey.\" (\".$strimp.\")\";\n\t\t$querycreatetable = \"CREATE TABLE IF NOT EXISTS ketechord_\".$subkey.\" (\".$strimp.\")\";\n\t\tmysql_query( $querycreatetable );\n\t\t/*echo $querycreatetable;\n\t\tdie();*/\n\t}\n\t\t\n\t header( \"Location: index.php?v=\".$_POST['c'].\"&f=\".$_POST['f'] );\n\n}", "public function getDuplicateVendorComplianceSurveyByIdWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "function add_ad_specification( $category_id, $sub_cate_id, $specification_title, $specification_sort_order, $specification_status )\n\t{\n\t\t$q = \"INSERT INTO title_dev_ad_specifications(`category_id`, `sub_cate_id`, `specification_title`, `specification_sort_order`, `specification_status`, `addeddate`, `modifieddate`)\n\t\t\t VALUES('\".$category_id.\"', '\".$sub_cate_id.\"', '\".$specification_title.\"', '\".$specification_sort_order.\"', '\".$specification_status.\"', '\".date('Y-m-d H:i:s').\"', '\".date('Y-m-d H:i:s').\"')\";\n\t\t$r = $this -> db -> insertRecord( $q );\n\t\tif( $r )\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public function add($sAccount, $sVendor, $sCategory, $sDate, $iDebit, $iFixed, $sAmount, $sNotes)\n {\n \n //global $m_pSession;\n\n $sEnteredOn = date(\"Y-m-d H:i:s\");\n \n $bNewVendor = false;\n $bNewAccount = false;\n $bNewCategory = false;\n\n //Clean Account, Vendor and Category fields. Trim account and vender. Clean up Category and sub categories within the delemiter.\n $sVendor = trim($sVendor);\n $sAccount = trim($sAccount);\n $sCategory = $this->cleanCategory($sCategory);\n\n //Dealing with empty strings sent to add\n if(strlen($sVendor)!=0)\n $iVendorId = $this->pDatabase->selectValue(\"vendors/get_id_by_name\", $this->iUserId, $sVendor);\n else\n $iVendorId = 'NULL';\n \n if(strlen($sAccount)!=0)\n $iAccountId = $this->pDatabase->selectValue(\"accounts/get_id_by_name\", $this->iUserId, $sAccount);\n else\n $iAccountId = 'NULL';\n \n //Get category id form the database.\n if(strlen($sCategory)!=0)\n $iCategoryId = $this->pDatabase->selectValue(\"categories/get_id_by_name\", $this->iUserId, $sCategory);\n else\n $iCategoryId = 'NULL';\n \n //In case that any values are empty that shouldn't be empty\n if(($iVendorId=='NULL') && (strlen($sVendor)!=0)){ \n $this->addNew(\"vendors\",$sVendor); $bNewVendor=true;\n }\n if(($iCategoryId=='NULL') && (strlen($sCategory)!=0)){ \n $this->addNew(\"categories\",$sCategory); $bNewCategory=true;\n }\n if(($iAccountId=='NULL') && (strlen($sAccount)!=0)){ \n $this->addNew(\"accounts\",$sAccount); $bNewAccount=true;\n }\n \n \n \n //Add the transaction to the databse.\n $sTransactionId = $this->pDatabase->insert(\"transactions/add\", \"transactions\", $this->iUserId, $iVendorId, $iAccountId, $iCategoryId, $sDate, $iDebit, $iFixed, $sAmount, $sNotes, $sEnteredOn);\n\n //If error adding the transaction then clean up and report error.\n if ($sTransactionId == null)\n {\n //If vendor, account or category was created then delete them.\n if ($bNewVendor) $this->pDatabase->delete(\"vendors/delete\", $this->iUserId, $iVendorId);\n if ($bNewAccount) $this->pDatabase->delete(\"accounts/delete\", $this->iUserId, $iAccountId);\n if ($bNewCategory) $this->pDatabase->delete(\"categories/delete\", $this->iUserId, $iCategoryId);\n \n return XML::serialize(true, \"addTransaction\", \"type\",\"ERROR\",\"id\", \"-1\");\n }\n\n //If transaction is within visible period then add it to the list add it to the sorted list.\n\n\n return XML::serialize(true, \"addTransaction\", \"type\",\"OK\", \"id\",$sTransactionId);\n }", "public function testAddReplenishmentAudit()\n {\n }", "public function addVendorComplianceSurveyFileByURLAsyncWithHttpInfo($body, $vendor_compliance_survey_id)\n {\n $returnType = '';\n $request = $this->addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n return [null, $response->getStatusCode(), $response->getHeaders()];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "public function testDeleteVendorComplianceSurveyFile()\n {\n }", "public function NEG_it_checks_create_audits() {\n\n $type = 'Bob';\n\n $taskType = new TaskType();\n $taskType->setType($type);\n $taskType->setDescription('was here');\n $taskType->created_at = Carbon::now();\n $taskType->updated_at = Carbon::now();\n $taskType->client_id = 1;\n\n $result = $taskType->checkTaskTypeCreateAudits($taskType);\n\n $this->assertEquals($result, 0);\n }", "function releaseSurvey($id=null)\r\n {//deprecated, this function is not used\r\n $eventArray = array();\r\n\r\n $this->Survey->setId($id);\r\n $this->params['data'] = $this->Survey->read();\r\n $this->params['data']['Survey']['released'] = 1;\r\n\r\n //add survey to eventsx();\r\n //set up Event params\r\n $eventArray['Event']['title'] = $this->params['data']['Survey']['name'];\r\n $eventArray['Event']['course_id'] = $this->params['data']['Survey']['course_id'];\r\n $eventArray['Event']['event_template_type_id'] = 3;\r\n $eventArray['Event']['template_id'] = $this->params['data']['Survey']['id'];\r\n $eventArray['Event']['self_eval'] = 0;\r\n $eventArray['Event']['com_req'] = 0;\r\n $eventArray['Event']['due_date'] = $this->params['data']['Survey']['due_date'];\r\n $eventArray['Event']['release_date_begin'] = $this->params['data']['Survey']['release_date_begin'];\r\n $eventArray['Event']['release_date_end'] = $this->params['data']['Survey']['release_date_end'];\r\n $eventArray['Event']['creator_id'] = $this->params['data']['Survey']['creator_id'];\r\n $eventArray['Event']['created'] = $this->params['data']['Survey']['created'];\r\n\r\n //Save Data\r\n if ($this->Event->save($eventArray)) {\r\n //Save Groups for the Event\r\n //$this->GroupEvent->insertGroups($this->Event->id, $this->params['data']['Event']);\r\n\r\n //$this->redirect('/events/index/The event is added successfully.');\r\n }\r\n\r\n $this->Survey->save($this->params['data']);\r\n\r\n\r\n\t\t$this->set('data', $this->Survey->findAll(null, null, 'id'));\r\n\t\t$this->set('message', 'The survey was released.');\r\n\t\t$this->index();\r\n\t\t$this->render('index');\r\n\t}", "public function testAddLowStockAudit()\n {\n }", "public function updateVendorComplianceSurvey($body)\n {\n $this->updateVendorComplianceSurveyWithHttpInfo($body);\n }", "public function test_addCartonActivityAudit() {\n\n }", "public function test_can_vendor_create(){\n $data = [\n 'Name' => $this->faker->name,\n 'category' => $this->faker->category,\n ];\n\n $this->json('POST','/api/vendor_create',$data);\n }", "public function store(\\Illuminate\\Http\\Request $request){\n // return view('survey::survey-add');\n\n\n $valid = $this->validate($request,[\n 'name' => 'required|min:3'\n ]);\n\n $publised = false;\n\n if($request->has('published')){\n $publised = true;\n }\n if($valid) {\n // dd($request->all());\n Audit::create([\n 'name' => $request->input('name'),\n 'user_id' => 1,\n 'is_published' => $publised,\n 'is_archieved' => 1,\n 'checklist_id' => 1\n ]);\n\n return redirect()->route('survey-add')->with(['success'=>'Audit information added successfully.']);\n }\n else{\n return redirect()->route('survey-add')->withErrors();\n }\n }", "public function addVendor(Vendor $vendor): void\n {\n $this->vendors[] = $vendor;\n }", "public function addAnalytics($system, $versionSystem, $modelDevice, $brandDevice, $idUser)\n {\n\n $xAccess = 1;\n $date = date('Y-m-d H:i:s');\n error_log(\"date :\" . $date);\n $firstDate = $this->isUserIDExists($idUser);\n if ($firstDate != null) {\n $xAccess = $this->getLastAmount($idUser) + 1;\n } else {\n $firstDate = date('Y-m-d H:i:s');\n }\n\n //Crating an statement\n $stmt = $this->con->prepare(\"INSERT INTO tbl_analitics(sistema, versao_sis, modelo_disp, marca_disp, primeiro_acesso, ultimo_acesso, qtde_acessos,fk_usuario) values(?, ?, ?, ?, ?, ?, ?, ?)\");\n\n //Binding the parameters\n $stmt->bind_param(\"ssssssii\", $system, $versionSystem, $modelDevice, $brandDevice, $firstDate, $date, $xAccess, $idUser);\n\n //Executing the statment\n $result = $stmt->execute();\n\n //If statment executed successfully\n if ($result) {\n return LOG_ADD;\n } else {\n return LOG_FAILURE;\n }\n }", "public function addVendor() {\n try {\n if (!($this->vendor instanceof Base_Model_ObtorLib_App_Core_Catalog_Entity_Vendor)) {\n throw new Base_Model_ObtorLib_App_Core_Catalog_Exception(\" Vendor Entity not initialized\");\n } else {\n $objVendor = new Base_Model_ObtorLib_App_Core_Catalog_Dao_Vendor();\n $objVendor->vendor = $this->vendor;\n return $objVendor->addVendor();\n }\n } catch (Exception $ex) {\n throw new Base_Model_ObtorLib_App_Core_Catalog_Exception($ex);\n }\n }", "function WriteAuditTrailOnAdd(&$rs) {\n\t\tglobal $mst_vendor;\n\t\t$table = 'mst_vendor';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= EW_COMPOSITE_KEY_SEPARATOR;\n\t\t$key .= $rs['kode'];\n\n\t\t// Write Audit Trail\n\t\t$filePfx = \"log\";\n\t\t$curDate = date(\"Y/m/d\");\n\t\t$curTime = date(\"H:i:s\");\n\t\t$id = ew_ScriptName();\n\t $curUser = CurrentUserName();\n\t\t$action = \"A\";\n\t\t$oldvalue = \"\";\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif ($mst_vendor->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore Blob Field\n\t\t\t\t$newvalue = ($mst_vendor->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) ? \"<MEMO>\" : $rs[$fldname]; // Memo Field\n\t\t\t\tew_WriteAuditTrail($filePfx, $curDate, $curTime, $id, $curUser, $action, $table, $fldname, $key, $oldvalue, $newvalue);\n\t\t\t}\n\t\t}\n\t}", "public function addVendorComplianceSurveyFileWithHttpInfo($vendor_compliance_survey_id, $file_name)\n {\n $returnType = '';\n $request = $this->addVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_name);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "function addSensSpec() {\n\t\t$data =&$this->params['form'];\n\t\t// Create the Sensitivity object\n\t\t$this->Sensitivity->create(\n\t\t\tarray(\"study_id\" =>$data['study_id'],\n\t\t\t\t\"sensitivity\"=>$data['sensitivity'],\n\t\t\t\t\"specificity\"=>$data['specificity'],\n\t\t\t\t\"prevalence\" =>$data['prevalence'],\n\t\t\t\t\"specificAssayType\" => $data['specificAssayType'],\n\t\t\t\t\"notes\"=>$data['sensspec_details'])\n\t\t\t);\n\t\t$this->Sensitivity->save();\n\t\t$sensitivity_id = $this->Sensitivity->getLastInsertId();\n\t\t\n\t\t// Create the HABTM link\n\t\t$this->checkSession(\"/biomarkers/organs/{$data['biomarker_id']}/{$data['organ_data_id']}\");\n\t\t$this->StudyData->habtmAdd('Sensitivity',$data['study_data_id'],$sensitivity_id);\n\t\t// Redirect\n\t\t$this->redirect(\"/biomarkers/organs/{$data['biomarker_id']}/{$data['organ_data_id']}\");\n\t}", "public function testCreateSurveyQuestion0()\n {\n }", "public function testCreateSurveyQuestion0()\n {\n }", "public function addVendorComplianceSurveyTag($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n $this->addVendorComplianceSurveyTagWithHttpInfo($vendor_compliance_survey_id, $vendor_compliance_survey_tag);\n }", "public function addVendorComplianceSurveyFileByURLWithHttpInfo($body, $vendor_compliance_survey_id)\n {\n $returnType = '';\n $request = $this->addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "public function created(CustomerInquiry $customerInquiry)\n {\n FollowupEvent::dispatch(0,0,0,0, $customerInquiry->customer_inquiry_id,'Customer Inquiry Created',Auth::user()->id,null);\n }", "public function add_requirement( sn\\base\\requirement\\I_Requirement $requirement );", "public function add()\n {\n\n //Log::write('debug',$this->request);\n\n $clientIdentifier = '1234567890';\n //$clientIdentifier = $this->request->query['client_id'];\n if(!$clientIdentifier){\n throw new UnauthorizedException('Client Identifier not found');\n }\n \n /*if(empty($data['email'])){\n throw new BadRequestException(__('Email is required','email'));\n }*/\n\n //$ref_code = 'ref12';\n //$ref_code = $this->request->query['ref_code'];\n /*validate vendor on basis of client identifier*/\n $this->loadModel('Vendors');\n $getVendorId = $this->Vendors->find()->where(['client_identifier'=>$clientIdentifier])->first()->id;\n if (!$getVendorId) {\n throw new UnauthorizedException('This Vendor is not linked to upwardly');\n }\n // Generate username _suggestUsername function\n // $first_name = $this->request->data()['first_name'];\n // $last_name = $this->request->data()['last_name'];\n // $this->request->data['username'] = $this->_suggestUsername($first_name.$last_name);\n\n // $this->request->data['username'] = $username;\n // Create vendor players data\n $this->request->data['vendor_players'][0]['vendor_id'] = $getVendorId;\n // $this->request->data['vendor_players'][0]['ref_code'] = $ref_code;\n $this->request->data['vendor_players'][0]['created'] = '2017-09-06 06:27:24';\n $this->request->data['vendor_players'][0]['modified'] = '2017-09-06 06:27:24';\n $player = $this->Players->newEntity();\n if ($this->request->is('post')) {\n $player = $this->Players->patchEntity($player, $this->request->getData(),['associated'=>['VendorPlayers']]);\n // pr($player); die('ssx');\n if ($this->Players->save($player,['associated'=>['VendorPlayers']])) {\n $data =array();\n $data['status']=true;\n $data['data'] = $player;\n $this->set('data',$data['data']);\n $this->set('status',$data['status']);\n $this->set('_serialize', ['status','data']);\n }\n }\n }", "public function testAddOrderAudit()\n {\n }", "function _approveNewVendor(){\n \n $this->ci->load->library('form_validation');\n $person_id = $this->ci->session->userdata('user_id');\n \n $this->resetResponse();\n\n $this->ci->form_validation->set_rules('personId', 'Vendor Person Id', 'trim|required|xss_clean|encode_php_tags|integer', array('required' => 'You must provide a %s.'));\n\n if ($this->ci->form_validation->run() == FALSE) { \n $this->_status = false;\n $this->_message = $this->ci->lang->line('person_id_missing');\n return $this->getResponse();\n } else {\n\n $personId = $this->ci->input->post('personId', true);\n $result = $this->model->get_tb('mm_person', 'person_id', array('person_id' => $personId))->result();\n if (count($result) > 0) {\n $this->model->update_tb('mm_person', array('person_id' => $personId), array('person_status'=>1));\n \n if( $this->model->getAffectedRowCount() > 0 ) {\n $this->_status = true;\n $this->_message = $this->ci->lang->line('vendor_approved'); \n }\n } else {\n $this->_status = FALSE;\n $this->_message = $this->ci->lang->line('invalid_data'); \n \n }\n\n return $this->getResponse();\n }\n \n }", "public function testDuplicateSurvey()\n {\n $year = 2018;\n $currentYear = current_year();\n $origSurvey = Survey::factory()->create(['year' => $year, 'title' => \"$year Survey Title\"]);\n $origGroup = SurveyGroup::factory()->create(['survey_id' => $origSurvey->id]);\n $origQuestion = SurveyQuestion::factory()->create(['survey_id' => $origSurvey->id, 'survey_group_id' => $origGroup->id]);\n\n $response = $this->json('POST', \"survey/{$origSurvey->id}/duplicate\");\n $response->assertStatus(200);\n $newId = $response->json('survey_id');\n\n $this->assertDatabaseHas('survey', ['id' => $newId, 'title' => \"$currentYear Survey Title\"]);\n $this->assertDatabaseHas('survey_group', ['survey_id' => $newId, 'title' => $origGroup->title]);\n $this->assertDatabaseHas('survey_question', ['survey_id' => $newId, 'description' => $origQuestion->description]);\n }", "public function addVendorComplianceSurveyTagAsync($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n return $this->addVendorComplianceSurveyTagAsyncWithHttpInfo($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function testComDayCqReplicationAuditReplicationEventListener()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.day.cq.replication.audit.ReplicationEventListener';\n\n $crawler = $client->request('POST', $path);\n }", "public function testCreateSurvey()\n {\n $data = [\n 'year' => 2020,\n 'type' => Survey::TRAINER,\n 'title' => 'My Awesome Survey',\n 'prologue' => 'Take the survey',\n 'epilogue' => 'Did you take it?'\n ];\n\n $response = $this->json('POST', 'survey', [\n 'survey' => $data\n ]);\n\n $response->assertStatus(200);\n $this->assertDatabaseHas('survey', $data);\n }", "function writeUserAgreementSignatureEvent($userObject, $userAgreementVersion, $clientAddress, $clientHostname, $globalCurrentDate, $sid, $dbh)\n\t{\n\t\t$responseObject\t\t\t\t\t\t\t\t\t= array();\n\t\t$responseObject['wroteUserAgreementSignature']\t= false;\n\t\t$responseObject['resultMessage']\t\t\t\t= \"\";\n\t\t\n\t\t$trialExpirationDate\t\t\t\t\t\t\t\t\t\t\t= new DateTime($globalCurrentDate);\n\t\t$trialExpirationDate -> modify('+14 day');\n\t\t$trialExpirationDateString\t\t\t\t\t\t\t\t\t\t= date_format($trialExpirationDate, \"Y-m-d\");\n\t\t\n\t\ttry\n\t\t{\t\n\t\t\t$updateUserAgreementInfoInUserAccount\t\t= $dbh->prepare(\"UPDATE\n\tUserAccounts\nSET\n\tuserAgreementDate = :userAgreementDate,\n\tuserAgreementVersion = :userAgreementVersion,\n\tmodificationDate = :modificationDate,\n\ttrialExpirationDate = :trialExpirationDate\nWHERE\n\tuserAccountID = :accountID\");\n\t\t\t\n\t\t\t\n\t\t\t$addUserAgreementSignatureEvent\t\t\t\t= $dbh->prepare(\"INSERT INTO UserAgreementSignatureHistory\n(\n\tFK_AccountID,\n\tsignatureDateTime,\n\tagreementVersionNumber,\n\tencryptedHostIP,\n\tencryptedHostName,\n\tencryptedSid\n)\nVALUES\n(\n\t:FK_AccountID,\n\t:signatureDateTime,\n\t:agreementVersionNumber,\n\tAES_ENCRYPT(:encryptedHostIP, UNHEX(SHA2('b9Gf98252c8!0aea1f(31c4c753d351',512))),\n\tAES_ENCRYPT(:encryptedHostName, UNHEX(SHA2('b9Gf98252c8!0aea1f(31c4c753d351',512))),\n\tAES_ENCRYPT(:encryptedSid, UNHEX(SHA2('b9Gf98252c8!0aea1f(31c4c753d351',512)))\n)\");\n\n\t\t\t$addUserAgreementSignatureEvent -> bindValue(':FK_AccountID', $userObject -> getUserAccountID());\n\t\t\t$addUserAgreementSignatureEvent -> bindValue(':signatureDateTime', $globalCurrentDate);\n\t\t\t$addUserAgreementSignatureEvent -> bindValue(':agreementVersionNumber', $userAgreementVersion);\n\t\t\t$addUserAgreementSignatureEvent -> bindValue(':encryptedHostIP', $clientAddress);\n\t\t\t$addUserAgreementSignatureEvent -> bindValue(':encryptedHostName', $clientHostname);\n\t\t\t$addUserAgreementSignatureEvent -> bindValue(':encryptedSid', $sid);\n\t\t\n\t\t\tif ($addUserAgreementSignatureEvent -> execute())\n\t\t\t{\n\t\t\t\t$responseObject['wroteUserAgreementSignature']\t= true;\n\t\t\t\t$responseObject['resultMessage']\t\t\t\t= \"Thank you for signing the user agreement.\";\n\t\t\t\t\n\t\t\t\t$updateUserAgreementInfoInUserAccount -> bindValue(':accountID', $userObject -> getUserAccountID());\n\t\t\t\t$updateUserAgreementInfoInUserAccount -> bindValue(':userAgreementDate', $globalCurrentDate);\n\t\t\t\t$updateUserAgreementInfoInUserAccount -> bindValue(':userAgreementVersion', $userAgreementVersion);\n\t\t\t\t$updateUserAgreementInfoInUserAccount -> bindValue(':modificationDate', $globalCurrentDate);\n\t\t\t\t$updateUserAgreementInfoInUserAccount -> bindValue(':trialExpirationDate', $trialExpirationDateString);\n\t\t\t\t\n\t\t\t\t$updateUserAgreementInfoInUserAccount -> execute();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$responseObject['resultMessage']\t\t\t\t= \"We were unable to update the database to record your signature.\";\n\t\t\t}\t\t\t\n\t\t}\n\t catch (PDOException $e) \n\t {\n\t \t$responseObject['resultMessage']\t\t\t\t\t= \"Error: We were unable to update the database to record your signature due to a database error: \".$e->getMessage();\t\n\t\t}\n\t\t\n\t\treturn $responseObject;\n\t}", "public function addnewclaimquestion(){\n\tif(isset($this->getData['opertaors']) && !empty($this->getData['opertaors'])){\n\t $operators = commonfunction::implod_array($this->getData['opertaors']);\n\t}\n\telse{\n\t $operators = '';\n \t}\n\tif($this->getData['question_type']=='file'){\n\t $file_upload = 1;\n\t}else{\n\t $file_upload = 0;\n\t}\n\t$question_options ='';\n\tif($this->getData['question_type']=='select' || $this->getData['question_type']=='radio'){\n\t foreach($this->getData['questionoption'] as $key=>$que_option){\n\t\t$que_value = $this->getData['questionvalue'][$key];\n\t\t$question_options .= $que_option.'|'.$que_value.';';\n\t }\n\t}\n\tif(isset($this->getData['subquestion_a']) && $this->getData['subquestion_a']!=''){\n\t $sub_question = isset($this->getData['subquestion_a'])?$this->getData['subquestion_a']:'';\n\t $sub_que_option = isset($this->getData['subquestion_option_a'])?$this->getData['subquestion_option_a']:'';\n\t}else{\n\t $sub_question = isset($this->getData['subquestion'])?$this->getData['subquestion']:'';\n\t $sub_que_option = isset($this->getData['subquestion_option'])?$this->getData['subquestion_option']:'';\n\t}\n\t$lastinserted_id = $this->insertInToTable(CLAIM_QUESTIONS, array(array('sub_question'=>$sub_question,'sub_question_option'=>$sub_que_option,'question_type'=>$this->getData['question_type'],'question'=>$this->getData['question'],'question_options'=>$question_options,'operators'=>$operators,'file_upload'=>$file_upload,'status'=>$this->getData['claim_status'],'created_by'=>$this->Useconfig['user_id'],'created_ip'=>commonfunction::loggedinIP())));\n\treturn $lastinserted_id;\n }", "public function test_addBillingCodeTypeAudit() {\n\n }" ]
[ "0.70903134", "0.6212814", "0.61721814", "0.6085663", "0.58962935", "0.57401407", "0.57172084", "0.570038", "0.56519437", "0.56224126", "0.55424285", "0.5507082", "0.5494336", "0.5437067", "0.53705806", "0.52649516", "0.5234765", "0.5205509", "0.5186142", "0.5152541", "0.509666", "0.5080372", "0.5059036", "0.5055914", "0.5055309", "0.5049971", "0.5037004", "0.5025901", "0.500429", "0.49790755", "0.49779868", "0.49751145", "0.4955028", "0.48708907", "0.48545155", "0.48408043", "0.48057303", "0.47941077", "0.47878775", "0.47840348", "0.47702006", "0.47611895", "0.47495762", "0.47478706", "0.47356606", "0.472903", "0.4725175", "0.47229055", "0.47212705", "0.4702629", "0.46693555", "0.46693555", "0.46636236", "0.4663054", "0.46610406", "0.4653748", "0.46373123", "0.46349767", "0.46347383", "0.460021", "0.45995927", "0.45879486", "0.4580715", "0.4577977", "0.45754796", "0.45688337", "0.45478", "0.45303088", "0.45287302", "0.4517981", "0.45122495", "0.4510792", "0.4505434", "0.44875598", "0.4449576", "0.44494727", "0.44446975", "0.44309026", "0.44178602", "0.44168815", "0.44080034", "0.44048595", "0.4394896", "0.4390582", "0.4387773", "0.4387773", "0.43872204", "0.4383474", "0.43802962", "0.43798658", "0.43788984", "0.43745106", "0.43407527", "0.43394375", "0.43258893", "0.42897162", "0.4288815", "0.42871004", "0.42827392", "0.4282409" ]
0.68058395
1
Test case for addVendorComplianceSurveyFile Attach a file to a vendorComplianceSurvey.
public function testAddVendorComplianceSurveyFile() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_name)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_name' is set\n if ($file_name === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_name when calling addVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileName}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_name !== null) {\n $resourcePath = str_replace(\n '{' . 'fileName' . '}',\n ObjectSerializer::toPathValue($file_name),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addVendorComplianceSurveyFileByURL'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFileByURL'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testAddVendorComplianceSurveyFileByURL()\n {\n }", "protected function deleteVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_id' is set\n if ($file_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_id !== null) {\n $resourcePath = str_replace(\n '{' . 'fileId' . '}',\n ObjectSerializer::toPathValue($file_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testGetVendorComplianceSurveyFiles()\n {\n }", "public function testDeleteVendorComplianceSurveyFile()\n {\n }", "protected function getVendorComplianceSurveyFilesRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyFiles'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testIsVendorFileReturnsTrueIfFileIsLocatedInVendorDirectory()\n {\n $this->assertTrue(VendorResources::isVendorFile($this->getVendorFilePath()));\n }", "public function testIsVendorFileReturnsTrueIfFileThatIsReferencedByFileObjectIsLocatedInVendorDirectory()\n {\n $this->assertTrue(VendorResources::isVendorFile(new \\SplFileInfo($this->getVendorFilePath())));\n }", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function attach_file($file){\n\t \t\t//ERROR CHECKNG , SET OJESCT ATTRIBUTESss\n\t \t\tif(!$file || empty($file) || !is_array($file)){\n\t \t\t\t$this->errors[] = \"No file was uploaded. \";\n\t \t\t\treturn false;\n\t \t\t}elseif($file['error'] != 0){\n\t \t\t\t$this->errors[] = $this->upload->errors[$file['error']];\n\t \t\t\treturn false;\n\t \t\t}else{\n\t \t\t\tif (!isset($this->testimony_id)) \n\t \t\t\t\t$this->setTestimonyid();\n\n\t \t\t\t$this->temp_path = $file['tmp_name'];\n\t \t\t\t$this->passport = str_replace(\"/\", \"_\", $this->testimony_id).\".\".basename($file[\"type\"]);\n\t \t\t\t$this->type = $file['type'];\n\t \t\t\t$this->size = $file['size'];\n\t \t\t\treturn true;\n\t \t\t}\n\t \t}", "public function addVendorComplianceSurveyFileAsync($vendor_compliance_survey_id, $file_name)\n {\n return $this->addVendorComplianceSurveyFileAsyncWithHttpInfo($vendor_compliance_survey_id, $file_name)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function addVendorComplianceSurveyFile($vendor_compliance_survey_id, $file_name)\n {\n $this->addVendorComplianceSurveyFileWithHttpInfo($vendor_compliance_survey_id, $file_name);\n }", "public function attach_file($file){\n\t \t\t//ERROR CHECKNG , SET OJESCT ATTRIBUTESss\n\t \t\tif(!$file || empty($file) || !is_array($file)){\n\t \t\t\t$this->errors[] = \"No file was uploaded. \";\n\t \t\t\treturn false;\n\t \t\t}elseif($file['error'] != 0){\n\t \t\t\t$this->errors[] = $this->upload->errors[$file['error']];\n\t \t\t\treturn false;\n\t \t\t}else{\n\t \t\t\tif (!isset($this->interview_id)) \n\t \t\t\t\t$this->setInterviewid();\n\n\t \t\t\t$this->temp_path = $file['tmp_name'];\n\t \t\t\t$this->passport = str_replace(\"/\", \"_\", $this->interview_id).\".\".basename($file[\"type\"]);\n\t \t\t\t$this->type = $file['type'];\n\t \t\t\t$this->size = $file['size'];\n\t \t\t\treturn true;\n\t \t\t}\n\t \t}", "protected function addVendorComplianceSurveyAuditRequest($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyAudit'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_audit' is set\n if ($vendor_compliance_survey_audit === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_audit when calling addVendorComplianceSurveyAudit'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/audit/{vendorComplianceSurveyAudit}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_audit !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyAudit' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_audit),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testAddVendorComplianceSurvey()\n {\n }", "public function attach_file($file) {\r\n // Perform error checking on the form parameters\r\n if(!$file || empty($file) || !is_array($file)) {\r\n // error: nothing uploaded or wrong argument usage\r\n $this->errors[] = \"No file was uploaded.\";\r\n return FALSE;\r\n } elseif ($file['error'] != 0 ) {\r\n // error: report what PHP says went wrong\r\n $this->errors[] = $this->upload_errors[$file['error']];\r\n return FALSE;\r\n } else {\r\n // Set object attributes to the form parameters.\r\n $this->temp_path = $file['tmp_name'];\r\n $this->passport_path = basename($file['name']);\r\n\r\n return TRUE;\r\n }\r\n }", "public function testIsVendorFileReturnsTrueIfVendorDirectoryIsProvided()\n {\n $directory = dirname($this->getVendorFilePath());\n $this->assertTrue(VendorResources::isVendorFile($directory));\n }", "public function uploadFileVendors(){\r\n\r\n $file = Input::file('file');\r\n $vendorId = Input::get('CONSULTANT');\r\n $consultantVendor = Consultant::find($vendorId);\r\n $rol = $this->getRol($vendorId);\r\n $projectId = Input::get('PROJECT');\r\n $now = new \\DateTime('now');\r\n if($projectId != 0){\r\n $project = Project::find($projectId);\r\n if($project!=null){\r\n if($file){\r\n $fileName = $file->getClientOriginalName();\r\n $file->move(public_path().'/files/projects/'.$project->lead->fileno.'/'.$project->id.'/vendors', $fileName);\r\n\r\n //create the row in upload file\r\n $uploadFile = UploadedFiles::where(['fileName'=>$fileName,'admin_id'=>$vendorId,'project_id'=>$projectId])->first();\r\n if($uploadFile != null){\r\n $uploadFile->delete();\r\n }\r\n $uploadFile = new UploadedFiles();\r\n $uploadFile->project_id = $projectId;\r\n $uploadFile->url = \"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/vendors/$fileName\";\r\n $uploadFile->fileName = $fileName;\r\n $uploadFile->$rol = 1;\r\n $uploadFile->admin_id = $vendorId;\r\n $uploadFile->ip = $_SERVER[\"REMOTE_ADDR\"];\r\n $uploadFile->save();\r\n\r\n //complete the row for that project.\r\n $projectVendor = ProjectProduction::where(['consultant_id'=>$vendorId,'project_id'=>$projectId])->where('completed','<>',1)->first();\r\n if($projectVendor!=null){\r\n $projectVendor->completed = 1;\r\n $projectVendor->completedDate = $now->format(\"Y-m-d H:i:s\");\r\n $projectVendor->save();\r\n }\r\n\r\n //create the row in inbox to let Production know\r\n $msg = \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msg .= \"Pin: \".$project->id.\"\\r\\n\";\r\n $msg .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n $msg .= \"File Name: \".$fileName.\"\\r\\n\";\r\n\r\n $extArray = explode(\".\",$fileName);\r\n $ext = $extArray[count($extArray)-1];\r\n\r\n //let consultant and production know that the patent search was uploaded be the attorney\r\n if($consultantVendor != null){\r\n if(strpos($consultantVendor->rol, 'attorney')!== false){\r\n $uploadFile->internal = 1;\r\n $uploadFile->save();\r\n if($ext == 'doc'|| $ext == 'docx'){\r\n Inbox::createInbox($project->lead->id, $project->consultant_id, \"Patent Search uploaded by the attorney.\\r\\n\".$msg, 'PRODUCTION', 'PRODUCTION');\r\n Inbox::createInbox($project->lead->id, 30, \"Patent Search uploaded by the attorney.\\r\\n\".$msg, 'FILE UPLOADED', 'PRODUCTION');\r\n Transaction::createTransaction($vendorId,'','','UPLOAD_FILE_VENDOR','Patent Search: '.$fileName,$projectId,'','','','','');\r\n }\r\n }else{\r\n //if is not an attorney let production know\r\n Inbox::createInbox($project->lead->id, 30, \"File uploaded By Vendor.\\r\\n\".$msg, 'FILE UPLOADED', 'PRODUCTION');\r\n Transaction::createTransaction($vendorId,'','','UPLOAD_FILE_VENDOR',$fileName,$projectId,'','','','','');\r\n }\r\n }\r\n }\r\n }\r\n }else{\r\n if($file){\r\n $fileName = $file->getClientOriginalName();\r\n $myProjects = ProjectProduction::where(['consultant_id'=>$vendorId])->where('completed','<>',1)->get();\r\n foreach($myProjects as $projectVendor){\r\n $project = $projectVendor->project;\r\n if(strpos(strval($fileName),strval($project->lead->fileno)) !== false){\r\n $file->move(public_path().'/files/projects/'.$project->lead->fileno.'/'.$project->id.'/vendors', $fileName);\r\n //create the row in upload file\r\n $uploadFile = UploadedFiles::where(['fileName'=>$fileName,'admin_id'=>$vendorId,'project_id'=>$project->id])->first();\r\n if($uploadFile != null){\r\n $uploadFile->delete();\r\n }\r\n $uploadFile = new UploadedFiles();\r\n $uploadFile->project_id = $project->id;\r\n $uploadFile->url = \"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/vendors/$fileName\";\r\n $uploadFile->fileName = $fileName;\r\n $uploadFile->$rol = 1;\r\n $uploadFile->admin_id = $vendorId;\r\n $uploadFile->save();\r\n\r\n $projectVendor->completed = 1;\r\n $projectVendor->completedDate = $now->format(\"Y-m-d H:i:s\");\r\n $projectVendor->save();\r\n\r\n //create the row in inbox to let Production know\r\n $msg = \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msg .= \"Pin: \".$project->id.\"\\r\\n\";\r\n $msg .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n $msg .= \"File Name: \".$fileName.\"\\r\\n\";\r\n Inbox::createInbox($project->lead->id, 30, \"File uploaded By Vendor.\\r\\n\".$msg, 'FILE UPLOADED', 'PRODUCTION');\r\n\r\n\r\n $extArray = explode(\".\",$fileName);\r\n $ext = $extArray[count($extArray - 1)];\r\n //let consultant know that the patent search was uploaded be the attorney\r\n if($consultantVendor != null && strpos($consultantVendor->rol, 'attorney')!== false && ($ext == 'doc'|| $ext == 'docx')){\r\n Inbox::createInbox($project->lead->id, $project->consultant_id, \"Patent Search uploaded for the attorney.\\r\\n\".$msg, 'PRODUCTION', 'PRODUCTION');\r\n $uploadFile->internal = 1;\r\n $uploadFile->save();\r\n }\r\n\r\n Transaction::createTransaction($vendorId,'','','UPLOAD_FILE_VENDOR',$fileName,$project->id,'','','','','');\r\n }\r\n }\r\n }\r\n }\r\n\r\n }", "public function addVendorComplianceSurveyFileWithHttpInfo($vendor_compliance_survey_id, $file_name)\n {\n $returnType = '';\n $request = $this->addVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_name);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }", "public function addVendorComplianceSurvey($body)\n {\n list($response) = $this->addVendorComplianceSurveyWithHttpInfo($body);\n return $response;\n }", "public function addFile($file);", "public function add_case_study_via_file($deal_id,$mem_id,$partner_id,$partner_type,$caption,$access_rule_code,$file_field_name,$file_destination_path,$is_approved,&$validation_passed,&$err_arr){\n\t\t$validation_passed = true;\n\t\t\n\t\t//validation\n\t\tif($partner_id == \"\"){\n\t\t\t$validation_passed = false;\n\t\t\t$err_arr['partner_id'] = \"Please specify the partner\";\n\t\t}\n\t\tif($caption == \"\"){\n\t\t\t$validation_passed = false;\n\t\t\t$err_arr['caption'] = \"Please specify a caption\";\n\t\t}\n\t\tif($_FILES[$file_field_name]['name']==\"\"){\n\t\t\t$validation_passed = false;\n\t\t\t$err_arr['filename'] = \"Please specify the file\";\n\t\t}else{\n\t\t\t/*******************************************************************\n\t\t\tsng:17/Nov/2011\n\t\t\tfilename specified, get the extension and check against the list\n\t\t\tof accepted extensions\n\t\t\t***********/\n\t\t\t$file_extension = get_file_extension($_FILES[$file_field_name]['name']);\n\t\t\t$valid_filetypes = $this->file_extensions_for_case_studies();\n\t\t\tif(!array_key_exists($file_extension,$valid_filetypes)){\n\t\t\t\t$validation_passed = false;\n\t\t\t\t$err_arr['filename'] = \"Files of this type is not accepted\";\n\t\t\t}\n\t\t}\n\t\tif(!$validation_passed){\n\t\t\treturn true;\n\t\t}\n\t\t//basic validation passed passed, now check if the firm was in the deal\n\t\t$q = \"select count(*) as cnt from \".TP.\"transaction_partners where transaction_id='\".$deal_id.\"' and partner_id='\".$partner_id.\"' and partner_type='\".$partner_type.\"'\";\n\t\t$res = mysql_query($q);\n\t\tif(!$res){\n\t\t\treturn false;\n\t\t}\n\t\t$row = mysql_fetch_assoc($res);\n\t\tif(0 == $row['cnt']){\n\t\t\t//not found, this firm did not worked in this deal\n\t\t\t$validation_passed = false;\n\t\t\t$err_arr['partner_id'] = \"This firm was not involved in the deal\";\n\t\t}\n\t\t//check again\n\t\tif(!$validation_passed){\n\t\t\treturn true;\n\t\t}\n\t\t//validation passed\n\t\t//be careful with space in file name\n\t\t$upload_file_name = time().\"_\".clean_filename(basename($_FILES[$file_field_name]['name']));\n\t\t$upload_path = $file_destination_path.\"/\".$upload_file_name;\n\t\t$upload_src = $_FILES[$file_field_name]['tmp_name'];\n\t\t$success = move_uploaded_file($upload_src,$upload_path);\n\t\tif(!$success){\n\t\t\treturn false;\n\t\t}\n\t\t//file uploaded, insert data\n\t\t$q = \"insert into \".TP.\"transaction_case_studies set transaction_id='\".$deal_id.\"',mem_id='\".$mem_id.\"',partner_id='\".$partner_id.\"',partner_type='\".$partner_type.\"',caption='\".$caption.\"',access_rule_code='\".$access_rule_code.\"',filename='\".$upload_file_name.\"',uploaded_on='\".date('Y-m-d').\"',is_approved='\".$is_approved.\"'\";\n\t\t$result = mysql_query($q);\n\t\tif(!$result){\n\t\t\t//echo mysql_error();\n\t\t\treturn false;\n\t\t}\n\t\t//data inserted\n\t\t/*******************************\n\t\tsng:18/nov/2011\n\t\tNotify admin that a case study has been uploaded. Problem is, we have many admins.\n\t\tSo let us send the email to a site email. We cannot use the curent admin id because\n\t\tnow admin no longer upload case study. This code is triggered by front end.\n\t\t*******************************/\n\t\t\n\t\trequire_once(\"classes/class.sitesetup.php\");\n\t\tglobal $g_site;\n\t\t$site_emails = NULL;\n\t\t$success = $g_site->get_site_emails($site_emails);\n\t\tif(!$success){\n\t\t\t//do not bother\n\t\t\treturn true;\n\t\t}\n\t\t$to = $site_emails['contact_email'];\n\t\t$from = $site_emails['mem_related_email'];\n\t\t\n\t\t$headers = 'MIME-Version: 1.0' . \"\\r\\n\";\n\t\t$headers .= 'Content-type: text/plain;charset=iso-8859-1' . \"\\r\\n\";\n\t\t$headers .= \"From: \".$from.\"\\r\\n\";\n\t\t\n\t\t$subject = \"data-cx.com case study uploaded\";\n\t\t\n\t\t\n\t\t$msg = \"A case study has been uploaded. The details are:\\r\\n\";\n\t\t$msg.=\"Caption: \".$caption.\"\\r\\n\";\n\t\t$msg.=\"Filename: \".$upload_file_name.\"\\r\\n\";\n\t\t\n\t\trequire_once(\"classes/class.mailer.php\");\n\t\t$mailer = new mailer();\n\t\t\n\t\t$to = $work_email;\n\t\t/**********\n\t\tsng:18/nov/2011\n\t\tIgnore mailer exception\n\t\t**************/\n\t\ttry{\n\t\t\t$mailer->mail($to,$subject,$msg);\n\t\t}catch(Exception $e){}\n\t\treturn true;\n\t}", "public function addVendorComplianceSurveyFileAsyncWithHttpInfo($vendor_compliance_survey_id, $file_name)\n {\n $returnType = '';\n $request = $this->addVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_name);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n return [null, $response->getStatusCode(), $response->getHeaders()];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "abstract public function attachFile($filePath, $name = null);", "public function attach_file($file){\n\t\tif(!$file || empty($file) || !is_array($file)) {\n\t\t\t // error: nothing uploaded or wrong argument usage\n\t\t\t $this->errors[] = \"No file was uploaded.\";\n\t\t\t return false;\n\t\t} elseif($file['error'] != 0) {\n\t\t\t // error: report what PHP says went wrong\n\t\t\t $this->errors[] = $this->upload_errors[$file['error']];\n\t\t\t return false;\n\t\t} else {\n\t\t\t//set object attributes\n\t\t\t $this->temp_path = $file['tmp_name'];\n\t\t\t\t$this->filename = basename($file['name']);\n\t\t\t\t$this->type = $file['type'];\n\t\t\t\t$this->size = $file['size'];\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "public function testIsVendorFileReturnsFalseIfFileIsNotLocatedInVendorDirectory()\n {\n $this->assertFalse(VendorResources::isVendorFile(__FILE__));\n }", "protected function add_valid_file( $file ) {\r\n\t\t\t$file['isvalid'] = true;\r\n\t\t\t$file['name'] = ( empty( $file['name'] ) ) ? self::uniqString() : $file['name'];\r\n\t\t\t\r\n\t\t\t$this->Files_valid[] = $file;\r\n\t\t\t$this->Files_valid_count++;\r\n\t\t}", "public function addVendorComplianceSurveyAsync($body)\n {\n return $this->addVendorComplianceSurveyAsyncWithHttpInfo($body)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function attach_file($file){\n\t\t\t//perform error checking on form parameters.\n\t\t\tif(!$file || empty($file) || !is_array($file)){\n\t\t\t\t$this->error[]=\"No File Was Uploaded!\";\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telseif($file[\"error\"]!=0){\n\t\t\t\t$this->error[]=$this->upload_errors[$file[\"error\"]];\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//setting object attributes to form params.\n\t\t\t\t$this->temp_path=$file[\"tmp_name\"];\n\t\t\t\t$this->filename=basename($file[\"name\"]);\n\t\t\t\t$this->type=$file[\"type\"];\n\t\t\t\t$this->size=$file[\"size\"];\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}", "public function uploadFileManufacturer(){\r\n $file = Input::file('file');\r\n $manufacturerId = Input::get('MANUFACTURER');\r\n $adminId = Input::get('CONSULTANT');\r\n $manufacturer = Project::find($manufacturerId);\r\n if($manufacturer!=null){\r\n if($file){\r\n $fileName = $file->getClientOriginalName();\r\n if(!File::exists(\"files/manufacturerFiles/\".$manufacturerId.\"/\")) {\r\n File::makeDirectory(\"files/manufacturerFiles/\".$manufacturerId.\"/\", 0755, true);\r\n }\r\n $file->move(public_path().'/files/manufacturerFiles/'.$manufacturerId.'/', $fileName);\r\n //create the row in upload file\r\n $uploadFile = new UploadedFiles();\r\n $uploadFile->project_id = 0;\r\n $uploadFile->manufacturer_id = $manufacturerId;\r\n $uploadFile->url = \"files/manufacturerFiles/\".$manufacturerId.\"/$fileName\";\r\n $uploadFile->fileName = $fileName;\r\n $uploadFile->admin_id = $adminId;\r\n $uploadFile->ip = $_SERVER[\"REMOTE_ADDR\"];\r\n $uploadFile->save();\r\n Transaction::createTransaction($adminId,'','','UPLOAD_FILE_FROM_MANUFACTURER',$fileName,'','','','','','');\r\n }\r\n }\r\n }", "public function testIsVendorFileReturnsFalseIfFileThatIsReferencedByFileObjectIsNotLocatedInVendorDirectory()\n {\n $this->assertFalse(VendorResources::isVendorFile(new \\SplFileInfo(__FILE__)));\n }", "public function testAddVendorComplianceSurveyTag()\n {\n }", "public function testAddVendorComplianceSurveyAudit()\n {\n }", "protected function addVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling addVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function addFile($file = null){\n $client = Yii::$app->fileService;\n return $client->add(['sid'=>$this->sid,'file'=>$file]);\n }", "public function addVendorComplianceSurveyFileByURLWithHttpInfo($body, $vendor_compliance_survey_id)\n {\n $returnType = '';\n $request = $this->addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "public function addAttachment($file)\n {\n $this->hasAttachment = true;\n $this->attachments[] = $file;\n }", "public function addVendorComplianceSurveyFileByURLAsyncWithHttpInfo($body, $vendor_compliance_survey_id)\n {\n $returnType = '';\n $request = $this->addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n return [null, $response->getStatusCode(), $response->getHeaders()];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "function add_attach_file($file, $encoding = \"base64\", $dispo = \"attachment\", $type = \"application/octet-stream\") {\n\t\t$file_str = $this->get_file_data($file);\n\t\tif ($file_str == \"\") {\n\t\t\treturn;\n\t\t}else{\n\t\t\tif ($encoding == \"base64\"){\n\t\t\t\t$file_str = base64_encode($file_str);\n\t\t\t\t}\n\t\t\t$this->att_files[] = array(\n\t\t\t\t\"data\"=>chunk_split($file_str),\n\t\t\t\t\"name\"=>basename($file), \n\t\t\t\t\"cont_type\"=>$type, \n\t\t\t\t\"trans_enc\"=>$encoding,\n\t\t\t\t\"disposition\"=>$dispo);\n\t\t\t}\n\t\t}", "protected function deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testIsVendorFileThrowsExceptionIfNoValidFileReferenceIsProvided()\n {\n $this->expectException('InvalidArgumentException');\n VendorResources::isVendorFile(__DIR__ . '/this/files/does/not/exist');\n }", "public function testDeleteVendorComplianceSurvey()\n {\n }", "public function addVendorComplianceSurveyFileByURLAsync($body, $vendor_compliance_survey_id)\n {\n return $this->addVendorComplianceSurveyFileByURLAsyncWithHttpInfo($body, $vendor_compliance_survey_id)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function attach_file($file)\n {\n if(!$file || empty($file) || !is_array($file))\n {\n $this->errors[] = \"No file was uploaded\";\n return false;\n } elseif($file['error'] != 0)\n {\n $this->errors[] = $this->upload_error[$file['error']];\n return false;\n }\n //set object attributes to the form parameters\n $this->temp_path = $file['tmp_name'];\n $this->filename = basename($file['name']);\n $this->type = $file['type'];\n $this->size = $file['size'];\n\n return true;\n }", "public function uploadFileAttCS(){\r\n $file = Input::file('file');\r\n $attId = Input::get('CONSULTANT');\r\n $projectId = Input::get('PROJECT');\r\n $command = Input::get('COMMAND');\r\n $project = Project::find($projectId);\r\n if($project!=null){\r\n if($file){\r\n $fileName = $file->getClientOriginalName();\r\n if(!File::exists(\"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/attClientServices\")) {\r\n File::makeDirectory(\"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/attClientServices\", 0755, true);\r\n }\r\n $file->move(public_path().'/files/projects/'.$project->lead->fileno.'/'.$project->id.'/attClientServices', $fileName);\r\n\r\n //create the row in upload file\r\n $uploadFile = UploadedFiles::where(['fileName'=>$fileName,'project_id'=>$projectId])->first();\r\n if($uploadFile != null){\r\n $uploadFile->delete();\r\n }\r\n $uploadFile = new UploadedFiles();\r\n $uploadFile->project_id = $projectId;\r\n $uploadFile->url = \"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/attClientServices/$fileName\";\r\n $uploadFile->fileName = $fileName;\r\n $uploadFile->attorney = 1;\r\n $uploadFile->admin_id = $attId;\r\n $uploadFile->ip = $_SERVER[\"REMOTE_ADDR\"];\r\n if($command == 'APP') {\r\n $otherFiles = UploadedFiles::where('project_id',$projectId)->where('filingReceipt',1)->get();\r\n foreach($otherFiles as $otherF){\r\n $otherF->filingReceipt=0;\r\n $otherF->save();\r\n }\r\n $uploadFile->filingReceipt = 1;\r\n }\r\n $uploadFile->save();\r\n\r\n Transaction::createTransaction($attId,'','','UPLOAD_FILE_CS_ATT',$fileName,$projectId,'','','','','');\r\n }\r\n }\r\n }", "public function addVendorComplianceSurveyFileByURL($body, $vendor_compliance_survey_id)\n {\n $this->addVendorComplianceSurveyFileByURLWithHttpInfo($body, $vendor_compliance_survey_id);\n }", "public function add($name, \\SetaPDF_Core_FileSpecification $fileSpecification) {}", "protected function getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getDuplicateVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/duplicate/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function addVendorComplianceSurveyRequest($body)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function addVendorComplianceSurveyWithHttpInfo($body)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->addVendorComplianceSurveyRequest($body);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 405:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\ApiResponse',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "public function addFile(\\Models\\File $file) {\n $this->files[] = $file;\n }", "public function createQAfile()\r\n {\r\n $originalFile = realpath(__DIR__ . '/../Resources/files/templates/QA-sample.txt');\r\n $newFile = $this->destination_dir.'/QA.txt';\r\n\r\n $this->createCopiedFile($originalFile, $newFile);\r\n }", "function test_File($file)\n{\n // print_r($file);\n global $uploadedFile;\n\n // $err = array();\n\n // Upload attachment file\n if (!empty($file[\"name\"])) {\n\n // File path config\n // make sure submitted file is not too large, can't be larger than 1 MB\n if ($file['size'] > (1024000)) {\n return array('valid' => false, \"msg\" => \"the File must be less than 1 MB in size.\");\n }\n $targetDir = \"../app/uploads/\";\n $fileName = time() . basename($file[\"name\"]);\n $targetFilePath = __DIR__ . '/' . $targetDir . $fileName;\n // echo $targetFilePath;\n $fileType = pathinfo($targetFilePath, PATHINFO_EXTENSION);\n\n // Allow certain file formats\n $allowTypes = array('pdf','PDF', 'doc','DOC', 'docx','DOCX', 'rtf','RTF','txt','TXT');\n if (in_array($fileType, $allowTypes)) {\n // Upload file to the server\n // make sure the 'uploads' folder exists if not, create it\n if (!is_dir($targetDir)) {\n mkdir($targetDir);\n }\n\n if (move_uploaded_file($file[\"tmp_name\"], $targetFilePath)) {\n $uploadedFile .= $fileName;\n }else{\n return array('valid' => false, \"msg\" => \"Sorry, Failed while uploading the file.\");\n }\n\n\n\n } else {\n return array('valid' => false, \"msg\" => \"Sorry, only PDF, DOC,DOCX,RTF and TXT files are allowed to upload.\");\n }\n }\n return array('valid' => true, \"msg\" => \"\");\n}", "public function testGetDuplicateVendorComplianceSurveyById()\n {\n }", "public function setFileSpecification($fileSpecification) {}", "public function setFileSpecification($fileSpecification) {}", "public function setFileSpecification($fileSpecification) {}", "public function setFileSpecification($fileSpecification) {}", "public function setFileSpecification($fileSpecification) {}", "public function uploadFileILCVendors(){\r\n $file = Input::file('file');\r\n $projectId = Input::get('PROJECT');\r\n $adminId = Input::get('CONSULTANT');\r\n $project = Project::find($projectId);\r\n if($project!=null){\r\n if($file){\r\n $fileName = $file->getClientOriginalName();\r\n $file->move(public_path().'/files/projects/'.$project->lead->fileno.'/'.$project->id.'/uploaded', $fileName);\r\n //create the row in upload file\r\n $uploadFile = UploadedFiles::where(['fileName'=>$fileName,'project_id'=>$project->id])->first();\r\n if($uploadFile != null){\r\n $uploadFile->delete();\r\n }\r\n $uploadFile = new UploadedFiles();\r\n $uploadFile->project_id = $projectId;\r\n $uploadFile->url = \"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/uploaded/$fileName\";\r\n $uploadFile->fileName = $fileName;\r\n $uploadFile->admin_id = $adminId;\r\n $uploadFile->ilcVendors = 1;\r\n $uploadFile->ip = $_SERVER[\"REMOTE_ADDR\"];\r\n $uploadFile->save();\r\n //put note in ilc\r\n $iid = Input::get('IID');\r\n $ilcV = IlcVendors::find($iid);\r\n $ilcNote = new IlcNotes();\r\n $ilcNote->ilc_id = $ilcV->ilc_id;\r\n $ilcNote->notes = \"File closed by vendor and uploaded \".$fileName.\" document.\";\r\n $ilcNote->system=1;\r\n $ilcNote->save();\r\n }\r\n }\r\n\r\n }", "public function verifyFile(){\n if (isset($_POST[\"submitbutton\"])){//if submit button is pressed\n if ($_FILES[\"fileSelectField\"][\"type\"] != \"application/pdf\"){//checks file type\n return \"File must be a pdf file\";\n }\n else if ($_FILES[\"fileSelectField\"][\"size\"] > 100000){//checks file size\n return \"File is too big\";\n }\n else {//runs function to add file if no problems\n return $this->addFile();\n }\n }\n }", "public function import_survey_file($session_key, $sid, $sSurveyfile) \n\t{\n\t\tYii::app()->loadHelper('admin/import');\n\t\tif ($this->_checkSessionKey($session_key))\n { \n\t\t\tif (Yii::app()->session['USER_RIGHT_CREATE_SURVEY'])\n\t\t\t{\t\t\t\t\n\t\t\t\t$surveyidExists = Survey::model()->findByPk($sid);\n\t\t\t\tif (isset($surveyidExists))\n\t\t\t\t\tthrow new Zend_XmlRpc_Server_Exception('Survey already exists', 27);\n\n\t\t\t\t//Assuming that surveys should be in the upload/surveys directory\n\t\t\t\t$sFullFilepath = Yii::app()->getConfig('uploaddir').'/surveys/'.$sSurveyfile;\n\t\t\t\tif ($sSurveyfile!='' && file_exists($sFullFilepath))\n\t\t\t\t{\t\n\t\t\t\t\t$aPathInfo = pathinfo($sFullFilepath);\n\t\t\t\t\t$sExtension = $aPathInfo['extension'];\n\n\t\t\t\t\tif (isset($sExtension) && strtolower($sExtension)=='csv')\n\t\t\t\t\t{\n\t\t\t\t\t\t$aImportResults=CSVImportSurvey($sFullFilepath,$sid);\n\t\t\t\t\t}\n\t\t\t\t\telseif (isset($sExtension) && strtolower($sExtension)=='lss')\n\t\t\t\t\t{\n\t\t\t\t\t\t$aImportResults=XMLImportSurvey($sFullFilepath,NULL,NULL,$sid);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new Zend_XmlRpc_Server_Exception('Invalid input', 21);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\tif(array_key_exists('error',$aImportResults))\n\t\t\t\t\t\tthrow new Zend_XmlRpc_Server_Exception($aImportResults['error'], 29);\n\n\t\t\t\t\tif($aImportResults['newsid']==NULL )\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Zend_XmlRpc_Server_Exception('Import failed', 29);\n\t\t\t\t\t\texit;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$iNewSid = $aImportResults['newsid'];\n\t\t\t\t\t\tSurvey::model()->updateByPk($iNewSid, array('datecreated'=> date(\"Y-m-d\")));\n\t\t\t\t\t\treturn $iNewSid;\n\t\t\t\t\t}\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tthrow new Zend_XmlRpc_Server_Exception('Survey file does not exist (in server)', 21);\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new Zend_XmlRpc_Server_Exception('No permission', 2);\t\n\t\t\t\n }\t\t\n\t}", "function insertFile ($filename, $origname='', $extraData='')\n{\n if (!$filename)\n v4b_exit ('Invalid filename passed to IbUtil::insertFile ...');\n\n if ($origname)\n $ext = FileUtil::getExtension ($origname);\n else\n $ext = FileUtil::getExtension ($filename);\n\n $data = '';\n $err = '';\n $cmd = '';\n global $v4bConfig;\n $txtFile = $v4bConfig['V4B_FILE_TMP_PATH'] . '/' . FileUtil::getBasename($filename) . '.txt';\n if ($ext == 'txt')\n $txtFile = $filename;\n else if ($ext == 'doc')\n $cmd = \"/usr/local/bin/antiword \\\"$filename\\\" > \\\"$txtFile\\\"\";\n else if ($ext == 'pdf')\n $cmd = \"pdftotext \\\"$filename\\\" \\\"$txtFile\\\"\";\n else if ($ext == 'ps')\n $cmd = \"ps2ascii \\\"$filename\\\" \\\"$txtFile\\\"\";\n else \n return -1;\n\n $rc = system ($cmd, $err);\n if ($err)\n return -1;\n\n $fp = fopen ($txtFile, \"a\");\n $swrite = \"\\nextraData\\n\";\n @fwrite ($fp, $swrite);\n fclose ($fp);\n\n $data = FileUtil::readFile ($txtFile);\n @unlink ($txtFile);\n\n if ($data)\n return IbUtil::insert ($data);\n\n return -1;\n}", "public function testAddExternalShipmentFile()\n {\n }", "function addFile(FileUpload $file)\n\t{\n\t\t$file->move($this->getUniqueFilePath());\n\t\t$this->query('INSERT INTO files (queueID, created, data, name) VALUES (\"' . sqlite_escape_string($this->getQueueID()) . '\",' . time() . ',\\'' . sqlite_escape_string(serialize($file)) . '\\', \\'' . sqlite_escape_string($file->getName()) . '\\')');\n\t}", "public function attachFile($filePath) {\n if ($this->validateAttachFile($filePath)) {\n $this->setAttachFileName($filePath);\n $buffer_file = file_get_contents($filePath);\n $this->file_content = base64_encode($buffer_file);\n } else {\n throw new Exception('Invalid file path!');\n }\n }", "protected function getVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function addVendorComplianceSurveyAsyncWithHttpInfo($body)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->addVendorComplianceSurveyRequest($body);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "function handle_upload_ticket_suite_statement(){\r\n\t\t$config = array();\r\n\t\t$config['upload_path'] = './assets/image_uploads/bank_statement';\r\n\t\t$config['allowed_types'] = 'gif|jpg|png|pdf';\r\n $new_name = time().'_'.$_FILES[\"bank_attachment_for_ts\"]['name'];\r\n\t\t$config['file_name'] = $new_name;\r\n\t\t$this->load->library('upload', $config);\r\n\t\t$this->upload->initialize($config);\r\n\r\n\t\tif (isset($_FILES['bank_attachment_for_ts']) && !empty($_FILES['bank_attachment_for_ts']['name'])){\r\n\r\n\t\t\tif ($this->upload->do_upload('bank_attachment_for_ts')){\r\n\t\t\t\t// set a $_POST value for 'image' that we can use later\r\n\t\t\t\t$upload_data = $this->upload->data();\r\n\t\t\t\t$_POST['old_bank_ticket_suite_statement'] = $upload_data['file_name'];\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\t// possibly do some clean up ... then throw an error\r\n\t\t\t\t$this->form_validation->set_message('handle_upload_ticket_suite_statement', $this->upload->display_errors());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private function attachFile(&$paragraph, $file, $doc_type) {\n $id = $file == 'NOFILE' ? [] : ['target_id' => $file->id()];\n $field = array(\n 'SDS' => 'field_sap_sds_file',\n 'SPC' => 'field_sap_spec_sheet',\n 'PIS' => 'field_product_info_sheet',\n );\n try {\n if (!empty($doc_type)) {\n $fileObj = $paragraph->{$field[$doc_type]}->entity;\n if (!empty($fileObj)) {\n $fileObj->delete();\n }\n $paragraph->{$field[$doc_type]}->setValue($id);\n }\n }\n catch (\\Exception $error) {\n return new JsonResponse($error->getMessage(), 400);\n }\n }", "function addFile(File $newFile)\r\n\t{\r\n\t\tif( file_exists( $this->path . '/' . $newFile->getName( ) ) )\r\n\t\t{\r\n\t\t\t$this->filesCollection->add( $newFile );\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttrigger_error( \"arquivo inexistente! não foi possível adicionar\" );\r\n\t\t}\r\n\t}", "public function testAddFieldVisualisationFile() {\n $new_field_label = 'Testing visualisation file field';\n $new_field_name = 'testing_vis_file_field';\n $storage_type = 'dvf_file';\n\n $this->addNewFieldToPage($new_field_label, $new_field_name, $storage_type);\n }", "function OnFileUploaded($file) {\n\tAddFileToDatabase($file);\n\tScanFileOnVirusTotal($file);\n}", "function setPurchaseInvoiceCreditNoteAttachment() {\n header('Content-Type:application/json; charset=utf-8');\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"SET NAMES utf8\";\n $this->q->fast($sql);\n }\n $sql = null;\n $qqfile = null;\n $uploader = new \\qqFileUploader($this->getAllowedExtensions(), $this->getSizeLimit());\n $result = $uploader->handleUpload($this->getUploadPath());\n if (isset($_GET['qqfile'])) {\n $qqfile = $_GET['qqfile'];\n }\n// to pass data through iframe you will need to encode all html tags\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `purchaseinvoicecreditnotetemp`(\n `companyId`,\n `staffId`,\n `leafId`,\n `purchaseInvoiceCreditNoteTempName`, \n `isNew`, \n `executeBy`, \n `executeTime`\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->getStaffId() . \"',\n 120,\n '\" . $this->strict($qqfile, 'w') . \"',\n 1,\n '\" . $_SESSION['staffId'] . \"',NOW())\";\n } else if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [purchaseInvoiceCreditNoteTemp](\n [companyId],\n [staffId],\n [leafId],\n [purchaseInvoiceCreditNoteTempName],\n [isNew],\n [executeBy],\n [executeTime]\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->getStaffId() . \"',\n 120,\n '\" . $this->strict($_GET['qqfile'], 'w') . \"',\n 1,\n '\" . $_SESSION['staffId'] . \"',NOW())\";\n } else if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PURCHASEINVOICECREDITNOTETEMP(\n COMPANYID,\n STAFFID,\n LEAFID,\n PURCHASEINVOICECREDITNOTETEMPNAME,\n ISNEW,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->getStaffId() . \"',\n 120,\n '\" . $this->strict($_GET['qqfile'], 'w') . \"',\n 1,\n '\" . $_SESSION['staffId'] . \"',NOW())\";\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n header('Content-Type:application/json; charset=utf-8');\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n echo htmlspecialchars(json_encode($result), ENT_NOQUOTES);\n exit();\n }", "private function json_submitSurvey()\n {\n\n // Gets the input data entered in the Front-End\n $input = json_decode(file_get_contents(\"php://input\"));\n $title = $_POST['title'];\n $description = $_POST['description'];\n $question = $_POST['question'];\n $file = $_FILES['file']['name'];\n\n // Gets the last SurveyID\n $query = \"SELECT surveyID FROM Surveys ORDER BY surveyID DESC LIMIT 1;\";\n $params = [];\n $resLastSurveyID = json_decode($this->recordset->getJSONRecordSet($query, $params), true);\n $currentSurveyID = $resLastSurveyID['data']['0']['surveyID'] + 1;\n\n // Gets the last QuestionID\n $query = \"SELECT questionID FROM Questions ORDER BY questionID DESC LIMIT 1;\";\n $params = [];\n $resLastQuestionID = json_decode($this->recordset->getJSONRecordSet($query, $params), true);\n $currentQuestionID = $resLastQuestionID['data']['0']['questionID'] + 1;\n\n // Create the Uploads Directory\n $uploadsDirectory = dirname(__FILE__, 2) . \"/uploads\";\n $surveyDirectory = $uploadsDirectory . \"/\" . $currentSurveyID;\n $questionDirectory = $surveyDirectory . \"/\" . $currentQuestionID;\n// $questionDirectory = $questionDirectory . \"/\";\n\n // File Permissions\n if (!file_exists($questionDirectory)) {\n mkdir($questionDirectory, 0777, true);\n }\n\n // File Checks\n $path = pathinfo($file);\n $filename = $path['filename'];\n $ext = $path['extension'];\n $temp_name = $_FILES['file']['tmp_name'];\n $path_filename_ext = $questionDirectory . \"/\" . $filename . \".\" . $ext;\n if (file_exists($path_filename_ext)) {\n // echo \"Sorry, File Already Exists.\";\n } else {\n move_uploaded_file($temp_name, $path_filename_ext);\n // echo \"Congratulations! File Uploaded Successfully.\";\n }\n $media_url = \"uploads/\" . $currentSurveyID . \"/\" . $currentQuestionID . \"/\" . $_FILES['file']['name'];\n\n // Insert survey data into the Survey table\n $createSurveyQuery = \"INSERT INTO Surveys (surveyTitle, surveyDescription) VALUES (:surveyTitle, :surveyDescription);\";\n\n $createSurveyParams =\n [\n \":surveyTitle\" => $title,\n \":surveyDescription\" => $description,\n ];\n\n $resCreateSurvey = json_decode($this->recordset->getJSONRecordSet($createSurveyQuery, $createSurveyParams), true);\n\n print_r($resCreateSurvey);\n\n // Insert question data into the Questions table\n $createQuestionQuery = \"INSERT INTO Questions (question, mediaPath, surveyID) VALUES (:question, :media_url, :surveyID);\";\n\n $createQuestionParams =\n [\n \":question\" => $question,\n \":media_url\" => $media_url,\n \":surveyID\" => $currentSurveyID,\n ];\n\n $resCreateQuestion = json_decode($this->recordset->getJSONRecordSet($createQuestionQuery, $createQuestionParams), true);\n\n $res['status'] = 200;\n $res['filename'] = $file;\n $res['dirnametest'] = dirname(__FILE__, 2);\n $res['lastSurveyID'] = $resLastSurveyID;\n $res['lastQuestionID'] = $resLastQuestionID;\n $res['questionDirectory'] = $questionDirectory;\n\n return json_encode($res);\n }", "public function testInboundDocumentAddAttachment()\n {\n }", "public function setCustomizationService(Customization\\FileInterface $service);", "public function addDesignFile(DesignFile $designFile)\n {\n DesignFileLink::create([\n 'invoice_item_id' => $this->id,\n 'design_file_id' => $designFile->id\n ]);\n if (is_null($this->product_id) || $this->product->productPrint->id != $designFile->product_print_id) {\n $this->_resetProduct(array('productPrint' => $designFile->product_print_id));\n }\n }", "public function acfedu_do_something_with_file() {\n\n\t\t\t\tif ( isset( $_POST[\"select_file_nonce\"] ) ) {\n\t\t\t\t\tif ( ! wp_verify_nonce( $_POST[\"select_file_nonce\"], 'select-file-nonce' ) ) {\n\t\t\t\t\t\t$this->acfedu_errors()->add( 'error_nonce_no_match', esc_html__( 'Something went wrong. Please try again.', 'acf-faculty-selector' ) );\n\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif ( ! isset( $_POST['file_name'] ) ) {\n\t\t\t\t\t\t\t$this->acfedu_errors()->add( 'error_no_file_selected', esc_html__( \"You didn't select a file.\", 'acf-faculty-selector' ) );\n\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$file_name = $_POST['file_name'];\n\t\t\t\t\t\t$import = ! empty( $_POST['import'] ) ? $_POST['import'] : false;\n\t\t\t\t\t\t$remove = ! empty( $_POST['remove'] ) ? $_POST['remove'] : false;\n\t\t\t\t\t\t$verify = ! empty( $_POST['verify'] ) ? $_POST['verify'] : false;\n\n\t\t\t\t\t\tif ( ! empty( $verify ) ) {\n\n\t\t\t\t\t\t\t$read_data = acfedu_read_file_only( $file_name[0] );\n\t\t\t\t\t\t\t$verified_data = acfedu_verify_csv_data( $read_data );\n\n\t\t\t\t\t\t\tif ( false != $verified_data ) {\n\t\t\t\t\t\t\t\t$this->acfedu_errors()->add( 'success_no_errors_in_csv', esc_html__( 'Congratulations, there appear to be no errors in your CSV.', 'acf-faculty-selector' ) );\n\n\t\t\t\t\t\t\t\tdo_action( 'acfedu_after_success_verify' );\n\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} elseif ( ! empty( $import ) ) {\n\n\t\t\t\t\t\t\t// import data\n\t\t\t\t\t\t\t$read_data = acfedu_read_file_only( $file_name[0] );\n\t\t\t\t\t\t\t$verified_data = acfedu_verify_csv_data( $read_data );\n\t\t\t\t\t\t\tif ( false != $verified_data ) {\n\t\t\t\t\t\t\t\t$line_number = 0;\n\t\t\t\t\t\t\t\tforeach ( $verified_data as $line ) {\n\t\t\t\t\t\t\t\t\t$line_number ++;\n\n\t\t\t\t\t\t\t\t\t$faculty = $line[0];\n\t\t\t\t\t\t\t\t\t$univ_abbr = $line[1];\n\t\t\t\t\t\t\t\t\t$univ = $line[2];\n\t\t\t\t\t\t\t\t\t$country_abbr = $line[3];\n\t\t\t\t\t\t\t\t\t$country = $line[4];\n\t\t\t\t\t\t\t\t\t$price = $line[5];\n\n\t\t\t\t\t\t\t\t\t$faculty_row = array(\n\t\t\t\t\t\t\t\t\t\t'faculty_name' => $faculty,\n\t\t\t\t\t\t\t\t\t\t'univ_code' => $univ_abbr,\n\t\t\t\t\t\t\t\t\t\t'univ_name' => $univ,\n\t\t\t\t\t\t\t\t\t\t'country_code' => $country_abbr,\n\t\t\t\t\t\t\t\t\t\t'country' => $country,\n\t\t\t\t\t\t\t\t\t\t'price' => $price,\n\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\tglobal $wpdb;\n\t\t\t\t\t\t\t\t\t$wpdb->insert( $wpdb->prefix . 'faculty', $faculty_row );\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t$this->acfedu_errors()->add( 'success_lines_imported', sprintf( esc_html__( 'Congratulations. You have successfully imported %d faculty.', 'acf-faculty-selector' ), $line_number ) );\n\n\t\t\t\t\t\t\t\tdo_action( 'acfedu_after_success_import' );\n\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} elseif ( ! empty( $remove ) ) {\n\n\t\t\t\t\t\t\tif ( isset( $_POST['file_name'] ) ) {\n\t\t\t\t\t\t\t\tforeach ( $_POST['file_name'] as $file_name ) {\n\t\t\t\t\t\t\t\t\t// delete file\n\t\t\t\t\t\t\t\t\tunlink( wp_upload_dir()['basedir'] . '/acfedu/' . $file_name );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ( count( $_POST['file_name'] ) == 1 ) {\n\t\t\t\t\t\t\t\t\t$this->acfedu_errors()->add( 'success_file_deleted', sprintf( esc_html__( 'File \"%s\" successfully deleted.', 'acf-faculty-selector' ), $file_name ) );\n\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$this->acfedu_errors()->add( 'success_files_deleted', esc_html__( 'Files successfully deleted.', 'acf-faculty-selector' ) );\n\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public function processVendor()\n {\n $directory=\"data/vendor\";\n set_time_limit(160);\n \n\n $files = File::allFiles($directory);\n\n foreach ($files as $file) {\n $file_exists=File_load::where('file_name', $file)\n ->where('type', 10)\n ->exists();\n if(!$file_exists){\n $count_insert=0;\n $count_update=0;\n \n $data = Excel::load($file)->toArray();\n foreach ($data as $row) {\n \n $data_value=$row;\n if (Vendor::where('vendor_number', '=', $data_value['vendornumber'])->count() > 0) {\n $vendor= Vendor::where('vendor_number', '=', $data_value['vendornumber'])->first();\n $vendor->name = $data_value['vendorname'];\n $budget_monthly->save();\n $count_update++;\n }else{\n $vendor=Vendor::create([\n 'vendor_number' => $data_value['vendornumber'],\n 'name' => $data_value['vendorname'],\n 'account_number' => \"\"\n ]); \n $count_insert++;\n } \n \n \n }\n\n File_load::create([\n 'file_name' => $file,\n 'type' => 10, \n 'count_insert'=> $count_insert,\n 'count_update'=> $count_update, \n ]);\n }\n } \n return \"Data Inserted\";\n }", "public function testDeleteVendorComplianceSurveyTag()\n {\n }", "public function addFile($file)\n {\n $this->paths[] = $file;\n }", "public function addFile($file) {\n $this->files[$file->getName()] = $file;\n }", "public function testUploadFile()\n {\n // initialize the API client\n $config = (new Configuration())->setHost('http://petstore.swagger.io/v2');\n $api_client = new ApiClient($config);\n $pet_api = new Api\\PetApi($api_client);\n // upload file\n $pet_id = 10001;\n $response = $pet_api->uploadFile($pet_id, \"test meta\", \"./composer.json\");\n // return ApiResponse\n $this->assertInstanceOf('Swagger\\Client\\Model\\ApiResponse', $response);\n }", "public function testNoViolationsInFileOnValidVersion()\n {\n $file = $this->sniffFile(__FILE__, '7.3');\n $this->assertNoViolation($file);\n }", "public function testGetVendorComplianceSurveyById()\n {\n }", "public function setFile($file) {}", "public function test_upload_file() {\n $target_url = \"http://localhost:9111/src/upload.php\";\n // test1.txt is just a file\n $file_with_full_path = realpath(\"../_files/test1.txt\");\n $post = array(\"username\"=>\"ddd\", \"password\"=>\"123456\", \"file\"=>'@'.$file_with_full_path);\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $target_url);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $post);\n $result=curl_exec ($ch);\n curl_close ($ch);\n $this->assertEquals(1, $result);\n }", "public static function filecheck($file)\n \t{\n \t\tif (CREATE_PACKAGE):\n\t \t\tif (!file_exists($file)):\n\t\t\t\tfopen($file, 'w') or die('can\\'t open file');\n\t\t\t\t//fclose($file);\n\t\t\tendif;\n\t\tendif;\n \t}", "public function testNoViolationsInFileOnValidVersion()\n {\n $file = $this->sniffFile(__FILE__, '8.1');\n $this->assertNoViolation($file);\n }", "function testVerifyFileSubmission()\n {\n $this->deleteLog($this->logfilename);\n //Verify file exists in the database\n $query = $this->db->query(\"SELECT buildid, fileid FROM build2uploadfile\");\n if(count($query) == 0)\n {\n $this->fail('No build2upload records were added to the database');\n return;\n }\n $this->BuildId = $query[0]['buildid'];\n\n $content = $this->connect($this->url.\"/viewFiles.php?buildid=$this->BuildId\");\n if(!$content)\n {\n return;\n }\n \n $this->assertClickable('http://www.kitware.com/company/about.html');\n \n $this->clickLink('CMakeCache.txt');\n if(!$this->checkLog($this->logfilename))\n {\n return;\n }\n\n //Verify symlink and content exist on disk\n $query = $this->db->query(\"SELECT id, sha1sum FROM uploadfile WHERE filename='CMakeCache.txt'\");\n if(count($query) == 0)\n {\n $this->fail('CMakeCache.txt was not added to the uploadfile table');\n return;\n }\n $this->FileId = $query[0]['id'];\n $this->Sha1Sum = $query[0]['sha1sum'];\n\n global $cdashpath;\n global $CDASH_DOWNLOAD_RELATIVE_URL;\n $dirName = $cdashpath.'/'.$CDASH_DOWNLOAD_RELATIVE_URL.'/'.$this->Sha1Sum;\n if(!is_dir($dirName))\n {\n $this->fail(\"Directory $dirName was not created\");\n return;\n }\n if(!file_exists($dirName.'/'.$this->Sha1Sum))\n {\n $this->fail(\"File contents were not written to $dirName/$this->Sha1Sum\");\n return;\n }\n if(!file_exists($dirName.'/CMakeCache.txt'))\n {\n $this->fail(\"File symlink was not written to $dirName/CMakeCache.txt\");\n return;\n }\n $this->pass('Uploaded file exists in database and on disk');\n }", "public function uploadFileProduction(){\r\n $file = Input::file('file');\r\n $projectId = Input::get('PROJECT');\r\n $adminId = Input::get('CONSULTANT');\r\n $project = Project::find($projectId);\r\n if($project!=null){\r\n if($file){\r\n $fileName = $file->getClientOriginalName();\r\n if(!File::exists(\"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/production\")) {\r\n File::makeDirectory(\"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/production/\", 0755, true);\r\n }\r\n $file->move(public_path().'/files/projects/'.$project->lead->fileno.'/'.$project->id.'/production', $fileName);\r\n //create the row in upload file\r\n $uploadFile = UploadedFiles::where(['fileName'=>$fileName,'admin_id'=>$adminId,'project_id'=>$project->id])->first();\r\n if($uploadFile != null){\r\n $uploadFile->delete();\r\n }\r\n\r\n $uploadFile = new UploadedFiles();\r\n $uploadFile->project_id = $projectId;\r\n $uploadFile->url = \"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/production/$fileName\";\r\n $uploadFile->fileName = $fileName;\r\n $uploadFile->internal = 1;\r\n $uploadFile->admin_id = $adminId;\r\n $uploadFile->ip = $_SERVER[\"REMOTE_ADDR\"];\r\n $uploadFile->save();\r\n\r\n //create the row in inbox to let consultant know\r\n $msg = \"File uploaded By Production.\\r\\n\";\r\n $msg .= \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msg .= \"Pin: \".$project->id.\"\\r\\n\";\r\n $msg .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n $msg .= \"File Name: \".$fileName;\r\n Inbox::createInbox($project->lead->id, $project->consultant_id, $msg, 'PRODUCTION', 'PRODUCTION');\r\n\r\n //complete the row for that project.\r\n $projectProduction = ProjectProduction::where(['project_id'=>$projectId,'typeVendor'=>'production'])->first();\r\n if($projectProduction!=null){\r\n $projectProduction->completed = 4;\r\n $projectProduction->save();\r\n }\r\n //create the Transaction\r\n Transaction::createTransaction($adminId,'','','COMPLETE_UPLOAD_FILE_PRODUCTION',$fileName,$projectId,'','','','','');\r\n }\r\n }\r\n }", "function addFile($file_name,$uploaded_file,$description=null) {\n\t\t\n\t\t\t$this->success = false;\n\t\t\t\t\t\t\n\t\t\t// if the file already exists, update it.\n\t\t\tif (!$file = $this->files()->contains('file_name',$file_name)) { \n\t\t\t\t// create a new file\n\t\t\t\t$file = $this->POD->getFile();\n\t\t\t}\n\t\t\n\t\t\tif ($uploaded_file['name']!='') {\n\t\t\t\t\t\n\t\t\t\t\t$file->set('file_name',$file_name);\n\t\t\t\t\t$file->set('original_name',$uploaded_file['name']);\n\t\t\t\t\t$file->set('tmp_name',$uploaded_file['tmp_name']);\n\t\t\t\t\t$file->set('contentId',$this->get('id'));\n\t\t\t\t\t$file->set('description',$description);\n\t\t\t\t\t$file->save();\t\t\n\t\t\t\t\tif (!$file->success()) {\n\t\t\t\t\t\t$this->throwError($file->error());\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->success = true;\n\t\t\t\t\t\treturn $file;\n\t\t\t\t\t}\n\t\t\t} else if ($uploaded_file['error']!= 0 && $uploaded_file['error']!= UPLOAD_ERR_NO_FILE) {\n\t\t\t\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_INI_SIZE) {\n\t\t\t\t\t$this->throwError('The file ' . $file_name . ' exceeds the maximum allowed upload size on this server.');\n\t\t\t\t}\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_FORM_SIZE) {\n\t\t\t\t\t$this->throwError('The file ' . $file_name . ' exceeds the maximum allowed upload size for this form.');\n\t\t\t\t}\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_PARTIAL) {\n\t\t\t\t\t$this->throwError('The file ' . $file_name . ' did not successfully upload.');\n\t\t\t\t}\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_NO_TMP_DIR) {\n\t\t\t\t\t$this->throwError('PeoplePods cannot find a temporary folder to store the uploaded files.');\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_CANT_WRITE) {\n\t\t\t\t\t$this->throwError('PeoplePods cannot write to the temporary folder.');\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_EXTENSION) {\n\t\t\t\t\t$this->throwError('A PHP extension stopped the file upload.');\n\t\t\t\t}\t\t\t\t\n\n\t\t\t\treturn false;\n\t\t\t\n\t\t\t} else {\n\n\t\t\t\t// sometimes an invalid record gets into $_FILES where no tmp_name is specified\n\t\t\t\t// this normally happens when a javascript form validator has caused the file input to submit\n\t\t\t\t// even though there is no file!\n\t\t\t\t// we don't want to throw an error if this happens, we just want to silently ignore this record.\n\n\t\t\t\t//$file->set('description',$description);\n\t\t\t\t//$file->save();\n\t\t\t\t\n\t\t\t\t$this->success = true;\n\t\t\t}\n\t\t\n\t\t\treturn $this->success;\n\t\t\n\t\t}", "public function postCreate(RequestValidation $request, ProductFile $uploader)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'description' => 'required',\n 'price' => 'required|numeric',\n 'file' => 'required',\n 'categories_list' => 'required'\n ]);\n $files = Request::file('file');\n\n return $uploader->insertProduct($request, $files);\n }", "public function support($file);", "public function addFile(File $file)\n {\n $file->setFileset($this);\n $this->files->add($file);\n }", "function privAddFile($p_filedescr, &$p_header, &$p_options)\n {\n }", "public function testAddReplenishmentFile()\n {\n }" ]
[ "0.7099123", "0.6453667", "0.6424213", "0.5979541", "0.5956533", "0.5840125", "0.5657401", "0.56251615", "0.5587976", "0.55585176", "0.5544165", "0.54320997", "0.5431144", "0.54178476", "0.5410682", "0.5382054", "0.5372956", "0.53595155", "0.5335313", "0.53324795", "0.5315624", "0.53032243", "0.5281137", "0.5256384", "0.51951855", "0.51800394", "0.515328", "0.5141675", "0.5132355", "0.51276326", "0.51256716", "0.51166344", "0.5106939", "0.50753933", "0.50729644", "0.50342715", "0.50303376", "0.50164104", "0.4999778", "0.4999208", "0.49871105", "0.49852747", "0.49849582", "0.49839872", "0.4983414", "0.49557313", "0.4901755", "0.4899813", "0.48951215", "0.48854885", "0.48659316", "0.48486686", "0.47982603", "0.47890317", "0.47736245", "0.4761362", "0.47552767", "0.47552767", "0.47552767", "0.47552767", "0.47552767", "0.47235462", "0.47232357", "0.47149637", "0.46851534", "0.4680483", "0.46654126", "0.46637174", "0.46619475", "0.4659414", "0.46536365", "0.46344197", "0.4617798", "0.46047103", "0.45881283", "0.4573909", "0.45683512", "0.45651338", "0.4564452", "0.4555169", "0.45540598", "0.45516992", "0.45486394", "0.45452645", "0.45395023", "0.45312795", "0.4513314", "0.4492922", "0.448591", "0.4476507", "0.4473525", "0.44732466", "0.4470114", "0.44673872", "0.44654882", "0.44642863", "0.445792", "0.4457099", "0.4456253", "0.44549927" ]
0.66960925
1
Test case for addVendorComplianceSurveyFileByURL Attach a file to a vendorComplianceSurvey by URL..
public function testAddVendorComplianceSurveyFileByURL() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddVendorComplianceSurveyFile()\n {\n }", "protected function addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addVendorComplianceSurveyFileByURL'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFileByURL'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testAddExternalShipmentFileByURL()\n {\n }", "public function testAddReplenishmentFileByURL()\n {\n }", "public function testGetVendorComplianceSurveyFiles()\n {\n }", "public function testAddPackingPlanFileByURL()\n {\n }", "protected function addVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_name)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_name' is set\n if ($file_name === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_name when calling addVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileName}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_name !== null) {\n $resourcePath = str_replace(\n '{' . 'fileName' . '}',\n ObjectSerializer::toPathValue($file_name),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function add_case_study_via_file($deal_id,$mem_id,$partner_id,$partner_type,$caption,$access_rule_code,$file_field_name,$file_destination_path,$is_approved,&$validation_passed,&$err_arr){\n\t\t$validation_passed = true;\n\t\t\n\t\t//validation\n\t\tif($partner_id == \"\"){\n\t\t\t$validation_passed = false;\n\t\t\t$err_arr['partner_id'] = \"Please specify the partner\";\n\t\t}\n\t\tif($caption == \"\"){\n\t\t\t$validation_passed = false;\n\t\t\t$err_arr['caption'] = \"Please specify a caption\";\n\t\t}\n\t\tif($_FILES[$file_field_name]['name']==\"\"){\n\t\t\t$validation_passed = false;\n\t\t\t$err_arr['filename'] = \"Please specify the file\";\n\t\t}else{\n\t\t\t/*******************************************************************\n\t\t\tsng:17/Nov/2011\n\t\t\tfilename specified, get the extension and check against the list\n\t\t\tof accepted extensions\n\t\t\t***********/\n\t\t\t$file_extension = get_file_extension($_FILES[$file_field_name]['name']);\n\t\t\t$valid_filetypes = $this->file_extensions_for_case_studies();\n\t\t\tif(!array_key_exists($file_extension,$valid_filetypes)){\n\t\t\t\t$validation_passed = false;\n\t\t\t\t$err_arr['filename'] = \"Files of this type is not accepted\";\n\t\t\t}\n\t\t}\n\t\tif(!$validation_passed){\n\t\t\treturn true;\n\t\t}\n\t\t//basic validation passed passed, now check if the firm was in the deal\n\t\t$q = \"select count(*) as cnt from \".TP.\"transaction_partners where transaction_id='\".$deal_id.\"' and partner_id='\".$partner_id.\"' and partner_type='\".$partner_type.\"'\";\n\t\t$res = mysql_query($q);\n\t\tif(!$res){\n\t\t\treturn false;\n\t\t}\n\t\t$row = mysql_fetch_assoc($res);\n\t\tif(0 == $row['cnt']){\n\t\t\t//not found, this firm did not worked in this deal\n\t\t\t$validation_passed = false;\n\t\t\t$err_arr['partner_id'] = \"This firm was not involved in the deal\";\n\t\t}\n\t\t//check again\n\t\tif(!$validation_passed){\n\t\t\treturn true;\n\t\t}\n\t\t//validation passed\n\t\t//be careful with space in file name\n\t\t$upload_file_name = time().\"_\".clean_filename(basename($_FILES[$file_field_name]['name']));\n\t\t$upload_path = $file_destination_path.\"/\".$upload_file_name;\n\t\t$upload_src = $_FILES[$file_field_name]['tmp_name'];\n\t\t$success = move_uploaded_file($upload_src,$upload_path);\n\t\tif(!$success){\n\t\t\treturn false;\n\t\t}\n\t\t//file uploaded, insert data\n\t\t$q = \"insert into \".TP.\"transaction_case_studies set transaction_id='\".$deal_id.\"',mem_id='\".$mem_id.\"',partner_id='\".$partner_id.\"',partner_type='\".$partner_type.\"',caption='\".$caption.\"',access_rule_code='\".$access_rule_code.\"',filename='\".$upload_file_name.\"',uploaded_on='\".date('Y-m-d').\"',is_approved='\".$is_approved.\"'\";\n\t\t$result = mysql_query($q);\n\t\tif(!$result){\n\t\t\t//echo mysql_error();\n\t\t\treturn false;\n\t\t}\n\t\t//data inserted\n\t\t/*******************************\n\t\tsng:18/nov/2011\n\t\tNotify admin that a case study has been uploaded. Problem is, we have many admins.\n\t\tSo let us send the email to a site email. We cannot use the curent admin id because\n\t\tnow admin no longer upload case study. This code is triggered by front end.\n\t\t*******************************/\n\t\t\n\t\trequire_once(\"classes/class.sitesetup.php\");\n\t\tglobal $g_site;\n\t\t$site_emails = NULL;\n\t\t$success = $g_site->get_site_emails($site_emails);\n\t\tif(!$success){\n\t\t\t//do not bother\n\t\t\treturn true;\n\t\t}\n\t\t$to = $site_emails['contact_email'];\n\t\t$from = $site_emails['mem_related_email'];\n\t\t\n\t\t$headers = 'MIME-Version: 1.0' . \"\\r\\n\";\n\t\t$headers .= 'Content-type: text/plain;charset=iso-8859-1' . \"\\r\\n\";\n\t\t$headers .= \"From: \".$from.\"\\r\\n\";\n\t\t\n\t\t$subject = \"data-cx.com case study uploaded\";\n\t\t\n\t\t\n\t\t$msg = \"A case study has been uploaded. The details are:\\r\\n\";\n\t\t$msg.=\"Caption: \".$caption.\"\\r\\n\";\n\t\t$msg.=\"Filename: \".$upload_file_name.\"\\r\\n\";\n\t\t\n\t\trequire_once(\"classes/class.mailer.php\");\n\t\t$mailer = new mailer();\n\t\t\n\t\t$to = $work_email;\n\t\t/**********\n\t\tsng:18/nov/2011\n\t\tIgnore mailer exception\n\t\t**************/\n\t\ttry{\n\t\t\t$mailer->mail($to,$subject,$msg);\n\t\t}catch(Exception $e){}\n\t\treturn true;\n\t}", "public function testAddItemSubCategoryFileByURL()\n {\n }", "public function testDeleteVendorComplianceSurveyFile()\n {\n }", "public function testAddLowStockFileByURL()\n {\n }", "function testVerifyFileSubmission()\n {\n $this->deleteLog($this->logfilename);\n //Verify file exists in the database\n $query = $this->db->query(\"SELECT buildid, fileid FROM build2uploadfile\");\n if(count($query) == 0)\n {\n $this->fail('No build2upload records were added to the database');\n return;\n }\n $this->BuildId = $query[0]['buildid'];\n\n $content = $this->connect($this->url.\"/viewFiles.php?buildid=$this->BuildId\");\n if(!$content)\n {\n return;\n }\n \n $this->assertClickable('http://www.kitware.com/company/about.html');\n \n $this->clickLink('CMakeCache.txt');\n if(!$this->checkLog($this->logfilename))\n {\n return;\n }\n\n //Verify symlink and content exist on disk\n $query = $this->db->query(\"SELECT id, sha1sum FROM uploadfile WHERE filename='CMakeCache.txt'\");\n if(count($query) == 0)\n {\n $this->fail('CMakeCache.txt was not added to the uploadfile table');\n return;\n }\n $this->FileId = $query[0]['id'];\n $this->Sha1Sum = $query[0]['sha1sum'];\n\n global $cdashpath;\n global $CDASH_DOWNLOAD_RELATIVE_URL;\n $dirName = $cdashpath.'/'.$CDASH_DOWNLOAD_RELATIVE_URL.'/'.$this->Sha1Sum;\n if(!is_dir($dirName))\n {\n $this->fail(\"Directory $dirName was not created\");\n return;\n }\n if(!file_exists($dirName.'/'.$this->Sha1Sum))\n {\n $this->fail(\"File contents were not written to $dirName/$this->Sha1Sum\");\n return;\n }\n if(!file_exists($dirName.'/CMakeCache.txt'))\n {\n $this->fail(\"File symlink was not written to $dirName/CMakeCache.txt\");\n return;\n }\n $this->pass('Uploaded file exists in database and on disk');\n }", "public function attach_file($file){\n\t \t\t//ERROR CHECKNG , SET OJESCT ATTRIBUTESss\n\t \t\tif(!$file || empty($file) || !is_array($file)){\n\t \t\t\t$this->errors[] = \"No file was uploaded. \";\n\t \t\t\treturn false;\n\t \t\t}elseif($file['error'] != 0){\n\t \t\t\t$this->errors[] = $this->upload->errors[$file['error']];\n\t \t\t\treturn false;\n\t \t\t}else{\n\t \t\t\tif (!isset($this->testimony_id)) \n\t \t\t\t\t$this->setTestimonyid();\n\n\t \t\t\t$this->temp_path = $file['tmp_name'];\n\t \t\t\t$this->passport = str_replace(\"/\", \"_\", $this->testimony_id).\".\".basename($file[\"type\"]);\n\t \t\t\t$this->type = $file['type'];\n\t \t\t\t$this->size = $file['size'];\n\t \t\t\treturn true;\n\t \t\t}\n\t \t}", "private function submitFile()\n {\n\n $encoded_url = urlencode($this->getFileUrl());\n\n wp_remote_get(self::GOOGLE_WEBMASTER_TOOLS_URL . $encoded_url);\n wp_remote_get(self::BING_WEBMASTER_TOOLS_URL . $encoded_url);\n\n }", "public function add_file_from_url( $url ) {\r\n\t\t\t$url = ( substr( $url, 0, 4 ) !== 'http' ) ? 'http://' . str_replace( '//', '', $url ) : $url;\r\n\t\t\t\r\n\t\t\t$file = self::FILE_OBJECT_TEMPLATE;\r\n\t\t\t$file['path'] = $url;\r\n\t\t\t$file['origname'] = $url;\r\n\t\t\t$file['name'] = self::strip_to_valid_filename( substr( strrchr( $url, '/' ), 1 ) );\r\n\t\t\t$file['isurl'] = true;\r\n\t\t\t\r\n\t\t\t$this->process_file_add( $file, true );\r\n\t\t}", "function setPurchaseInvoiceCreditNoteAttachment() {\n header('Content-Type:application/json; charset=utf-8');\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"SET NAMES utf8\";\n $this->q->fast($sql);\n }\n $sql = null;\n $qqfile = null;\n $uploader = new \\qqFileUploader($this->getAllowedExtensions(), $this->getSizeLimit());\n $result = $uploader->handleUpload($this->getUploadPath());\n if (isset($_GET['qqfile'])) {\n $qqfile = $_GET['qqfile'];\n }\n// to pass data through iframe you will need to encode all html tags\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `purchaseinvoicecreditnotetemp`(\n `companyId`,\n `staffId`,\n `leafId`,\n `purchaseInvoiceCreditNoteTempName`, \n `isNew`, \n `executeBy`, \n `executeTime`\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->getStaffId() . \"',\n 120,\n '\" . $this->strict($qqfile, 'w') . \"',\n 1,\n '\" . $_SESSION['staffId'] . \"',NOW())\";\n } else if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [purchaseInvoiceCreditNoteTemp](\n [companyId],\n [staffId],\n [leafId],\n [purchaseInvoiceCreditNoteTempName],\n [isNew],\n [executeBy],\n [executeTime]\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->getStaffId() . \"',\n 120,\n '\" . $this->strict($_GET['qqfile'], 'w') . \"',\n 1,\n '\" . $_SESSION['staffId'] . \"',NOW())\";\n } else if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PURCHASEINVOICECREDITNOTETEMP(\n COMPANYID,\n STAFFID,\n LEAFID,\n PURCHASEINVOICECREDITNOTETEMPNAME,\n ISNEW,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->getStaffId() . \"',\n 120,\n '\" . $this->strict($_GET['qqfile'], 'w') . \"',\n 1,\n '\" . $_SESSION['staffId'] . \"',NOW())\";\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n header('Content-Type:application/json; charset=utf-8');\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n echo htmlspecialchars(json_encode($result), ENT_NOQUOTES);\n exit();\n }", "private function json_submitSurvey()\n {\n\n // Gets the input data entered in the Front-End\n $input = json_decode(file_get_contents(\"php://input\"));\n $title = $_POST['title'];\n $description = $_POST['description'];\n $question = $_POST['question'];\n $file = $_FILES['file']['name'];\n\n // Gets the last SurveyID\n $query = \"SELECT surveyID FROM Surveys ORDER BY surveyID DESC LIMIT 1;\";\n $params = [];\n $resLastSurveyID = json_decode($this->recordset->getJSONRecordSet($query, $params), true);\n $currentSurveyID = $resLastSurveyID['data']['0']['surveyID'] + 1;\n\n // Gets the last QuestionID\n $query = \"SELECT questionID FROM Questions ORDER BY questionID DESC LIMIT 1;\";\n $params = [];\n $resLastQuestionID = json_decode($this->recordset->getJSONRecordSet($query, $params), true);\n $currentQuestionID = $resLastQuestionID['data']['0']['questionID'] + 1;\n\n // Create the Uploads Directory\n $uploadsDirectory = dirname(__FILE__, 2) . \"/uploads\";\n $surveyDirectory = $uploadsDirectory . \"/\" . $currentSurveyID;\n $questionDirectory = $surveyDirectory . \"/\" . $currentQuestionID;\n// $questionDirectory = $questionDirectory . \"/\";\n\n // File Permissions\n if (!file_exists($questionDirectory)) {\n mkdir($questionDirectory, 0777, true);\n }\n\n // File Checks\n $path = pathinfo($file);\n $filename = $path['filename'];\n $ext = $path['extension'];\n $temp_name = $_FILES['file']['tmp_name'];\n $path_filename_ext = $questionDirectory . \"/\" . $filename . \".\" . $ext;\n if (file_exists($path_filename_ext)) {\n // echo \"Sorry, File Already Exists.\";\n } else {\n move_uploaded_file($temp_name, $path_filename_ext);\n // echo \"Congratulations! File Uploaded Successfully.\";\n }\n $media_url = \"uploads/\" . $currentSurveyID . \"/\" . $currentQuestionID . \"/\" . $_FILES['file']['name'];\n\n // Insert survey data into the Survey table\n $createSurveyQuery = \"INSERT INTO Surveys (surveyTitle, surveyDescription) VALUES (:surveyTitle, :surveyDescription);\";\n\n $createSurveyParams =\n [\n \":surveyTitle\" => $title,\n \":surveyDescription\" => $description,\n ];\n\n $resCreateSurvey = json_decode($this->recordset->getJSONRecordSet($createSurveyQuery, $createSurveyParams), true);\n\n print_r($resCreateSurvey);\n\n // Insert question data into the Questions table\n $createQuestionQuery = \"INSERT INTO Questions (question, mediaPath, surveyID) VALUES (:question, :media_url, :surveyID);\";\n\n $createQuestionParams =\n [\n \":question\" => $question,\n \":media_url\" => $media_url,\n \":surveyID\" => $currentSurveyID,\n ];\n\n $resCreateQuestion = json_decode($this->recordset->getJSONRecordSet($createQuestionQuery, $createQuestionParams), true);\n\n $res['status'] = 200;\n $res['filename'] = $file;\n $res['dirnametest'] = dirname(__FILE__, 2);\n $res['lastSurveyID'] = $resLastSurveyID;\n $res['lastQuestionID'] = $resLastQuestionID;\n $res['questionDirectory'] = $questionDirectory;\n\n return json_encode($res);\n }", "public function testAddExternalShipmentFile()\n {\n }", "public function testInboundDocumentAddAttachment()\n {\n }", "public function attach_file($file){\n\t \t\t//ERROR CHECKNG , SET OJESCT ATTRIBUTESss\n\t \t\tif(!$file || empty($file) || !is_array($file)){\n\t \t\t\t$this->errors[] = \"No file was uploaded. \";\n\t \t\t\treturn false;\n\t \t\t}elseif($file['error'] != 0){\n\t \t\t\t$this->errors[] = $this->upload->errors[$file['error']];\n\t \t\t\treturn false;\n\t \t\t}else{\n\t \t\t\tif (!isset($this->interview_id)) \n\t \t\t\t\t$this->setInterviewid();\n\n\t \t\t\t$this->temp_path = $file['tmp_name'];\n\t \t\t\t$this->passport = str_replace(\"/\", \"_\", $this->interview_id).\".\".basename($file[\"type\"]);\n\t \t\t\t$this->type = $file['type'];\n\t \t\t\t$this->size = $file['size'];\n\t \t\t\treturn true;\n\t \t\t}\n\t \t}", "public function addFile($file);", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function test_uploadedfile_route() {\n global $CFG;\n list($user, , $talkpoint) = $this->_setup_single_user_in_single_talkpoint();\n\n // current time\n $now = time();\n\n // create a talkpoint\n $this->loadDataSet($this->createArrayDataSet(array(\n 'talkpoint_talkpoint' => array(\n array('id', 'instanceid', 'userid', 'title', 'uploadedfile', 'nimbbguid', 'mediatype', 'closed', 'timecreated', 'timemodified'),\n array(1, $talkpoint->id, $user->id, 'Talkpoint 001', 'mod_talkpoint_web_test.txt', null, 'file', 0, $now, $now),\n ),\n )));\n\n // spit a dummy existing file\n check_dir_exists($CFG->dataroot . '/into/mod_talkpoint/' . $talkpoint->id . '/1');\n file_put_contents($CFG->dataroot . '/into/mod_talkpoint/' . $talkpoint->id . '/1/mod_talkpoint_web_test.txt', 'dummy contents');\n\n // request the file\n $client = new Client($this->_app);\n $client->request('GET', '/uploadedfile/1');\n $this->assertTrue($client->getResponse()->isOk());\n }", "public function uploadFileManufacturer(){\r\n $file = Input::file('file');\r\n $manufacturerId = Input::get('MANUFACTURER');\r\n $adminId = Input::get('CONSULTANT');\r\n $manufacturer = Project::find($manufacturerId);\r\n if($manufacturer!=null){\r\n if($file){\r\n $fileName = $file->getClientOriginalName();\r\n if(!File::exists(\"files/manufacturerFiles/\".$manufacturerId.\"/\")) {\r\n File::makeDirectory(\"files/manufacturerFiles/\".$manufacturerId.\"/\", 0755, true);\r\n }\r\n $file->move(public_path().'/files/manufacturerFiles/'.$manufacturerId.'/', $fileName);\r\n //create the row in upload file\r\n $uploadFile = new UploadedFiles();\r\n $uploadFile->project_id = 0;\r\n $uploadFile->manufacturer_id = $manufacturerId;\r\n $uploadFile->url = \"files/manufacturerFiles/\".$manufacturerId.\"/$fileName\";\r\n $uploadFile->fileName = $fileName;\r\n $uploadFile->admin_id = $adminId;\r\n $uploadFile->ip = $_SERVER[\"REMOTE_ADDR\"];\r\n $uploadFile->save();\r\n Transaction::createTransaction($adminId,'','','UPLOAD_FILE_FROM_MANUFACTURER',$fileName,'','','','','','');\r\n }\r\n }\r\n }", "public function testAddVendorComplianceSurvey()\n {\n }", "public function testPostFile()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "function test_File($file)\n{\n // print_r($file);\n global $uploadedFile;\n\n // $err = array();\n\n // Upload attachment file\n if (!empty($file[\"name\"])) {\n\n // File path config\n // make sure submitted file is not too large, can't be larger than 1 MB\n if ($file['size'] > (1024000)) {\n return array('valid' => false, \"msg\" => \"the File must be less than 1 MB in size.\");\n }\n $targetDir = \"../app/uploads/\";\n $fileName = time() . basename($file[\"name\"]);\n $targetFilePath = __DIR__ . '/' . $targetDir . $fileName;\n // echo $targetFilePath;\n $fileType = pathinfo($targetFilePath, PATHINFO_EXTENSION);\n\n // Allow certain file formats\n $allowTypes = array('pdf','PDF', 'doc','DOC', 'docx','DOCX', 'rtf','RTF','txt','TXT');\n if (in_array($fileType, $allowTypes)) {\n // Upload file to the server\n // make sure the 'uploads' folder exists if not, create it\n if (!is_dir($targetDir)) {\n mkdir($targetDir);\n }\n\n if (move_uploaded_file($file[\"tmp_name\"], $targetFilePath)) {\n $uploadedFile .= $fileName;\n }else{\n return array('valid' => false, \"msg\" => \"Sorry, Failed while uploading the file.\");\n }\n\n\n\n } else {\n return array('valid' => false, \"msg\" => \"Sorry, only PDF, DOC,DOCX,RTF and TXT files are allowed to upload.\");\n }\n }\n return array('valid' => true, \"msg\" => \"\");\n}", "public function import_survey_file($session_key, $sid, $sSurveyfile) \n\t{\n\t\tYii::app()->loadHelper('admin/import');\n\t\tif ($this->_checkSessionKey($session_key))\n { \n\t\t\tif (Yii::app()->session['USER_RIGHT_CREATE_SURVEY'])\n\t\t\t{\t\t\t\t\n\t\t\t\t$surveyidExists = Survey::model()->findByPk($sid);\n\t\t\t\tif (isset($surveyidExists))\n\t\t\t\t\tthrow new Zend_XmlRpc_Server_Exception('Survey already exists', 27);\n\n\t\t\t\t//Assuming that surveys should be in the upload/surveys directory\n\t\t\t\t$sFullFilepath = Yii::app()->getConfig('uploaddir').'/surveys/'.$sSurveyfile;\n\t\t\t\tif ($sSurveyfile!='' && file_exists($sFullFilepath))\n\t\t\t\t{\t\n\t\t\t\t\t$aPathInfo = pathinfo($sFullFilepath);\n\t\t\t\t\t$sExtension = $aPathInfo['extension'];\n\n\t\t\t\t\tif (isset($sExtension) && strtolower($sExtension)=='csv')\n\t\t\t\t\t{\n\t\t\t\t\t\t$aImportResults=CSVImportSurvey($sFullFilepath,$sid);\n\t\t\t\t\t}\n\t\t\t\t\telseif (isset($sExtension) && strtolower($sExtension)=='lss')\n\t\t\t\t\t{\n\t\t\t\t\t\t$aImportResults=XMLImportSurvey($sFullFilepath,NULL,NULL,$sid);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new Zend_XmlRpc_Server_Exception('Invalid input', 21);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\tif(array_key_exists('error',$aImportResults))\n\t\t\t\t\t\tthrow new Zend_XmlRpc_Server_Exception($aImportResults['error'], 29);\n\n\t\t\t\t\tif($aImportResults['newsid']==NULL )\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Zend_XmlRpc_Server_Exception('Import failed', 29);\n\t\t\t\t\t\texit;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$iNewSid = $aImportResults['newsid'];\n\t\t\t\t\t\tSurvey::model()->updateByPk($iNewSid, array('datecreated'=> date(\"Y-m-d\")));\n\t\t\t\t\t\treturn $iNewSid;\n\t\t\t\t\t}\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tthrow new Zend_XmlRpc_Server_Exception('Survey file does not exist (in server)', 21);\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new Zend_XmlRpc_Server_Exception('No permission', 2);\t\n\t\t\t\n }\t\t\n\t}", "function add_attach_file($file, $encoding = \"base64\", $dispo = \"attachment\", $type = \"application/octet-stream\") {\n\t\t$file_str = $this->get_file_data($file);\n\t\tif ($file_str == \"\") {\n\t\t\treturn;\n\t\t}else{\n\t\t\tif ($encoding == \"base64\"){\n\t\t\t\t$file_str = base64_encode($file_str);\n\t\t\t\t}\n\t\t\t$this->att_files[] = array(\n\t\t\t\t\"data\"=>chunk_split($file_str),\n\t\t\t\t\"name\"=>basename($file), \n\t\t\t\t\"cont_type\"=>$type, \n\t\t\t\t\"trans_enc\"=>$encoding,\n\t\t\t\t\"disposition\"=>$dispo);\n\t\t\t}\n\t\t}", "public function uploadFileVendors(){\r\n\r\n $file = Input::file('file');\r\n $vendorId = Input::get('CONSULTANT');\r\n $consultantVendor = Consultant::find($vendorId);\r\n $rol = $this->getRol($vendorId);\r\n $projectId = Input::get('PROJECT');\r\n $now = new \\DateTime('now');\r\n if($projectId != 0){\r\n $project = Project::find($projectId);\r\n if($project!=null){\r\n if($file){\r\n $fileName = $file->getClientOriginalName();\r\n $file->move(public_path().'/files/projects/'.$project->lead->fileno.'/'.$project->id.'/vendors', $fileName);\r\n\r\n //create the row in upload file\r\n $uploadFile = UploadedFiles::where(['fileName'=>$fileName,'admin_id'=>$vendorId,'project_id'=>$projectId])->first();\r\n if($uploadFile != null){\r\n $uploadFile->delete();\r\n }\r\n $uploadFile = new UploadedFiles();\r\n $uploadFile->project_id = $projectId;\r\n $uploadFile->url = \"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/vendors/$fileName\";\r\n $uploadFile->fileName = $fileName;\r\n $uploadFile->$rol = 1;\r\n $uploadFile->admin_id = $vendorId;\r\n $uploadFile->ip = $_SERVER[\"REMOTE_ADDR\"];\r\n $uploadFile->save();\r\n\r\n //complete the row for that project.\r\n $projectVendor = ProjectProduction::where(['consultant_id'=>$vendorId,'project_id'=>$projectId])->where('completed','<>',1)->first();\r\n if($projectVendor!=null){\r\n $projectVendor->completed = 1;\r\n $projectVendor->completedDate = $now->format(\"Y-m-d H:i:s\");\r\n $projectVendor->save();\r\n }\r\n\r\n //create the row in inbox to let Production know\r\n $msg = \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msg .= \"Pin: \".$project->id.\"\\r\\n\";\r\n $msg .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n $msg .= \"File Name: \".$fileName.\"\\r\\n\";\r\n\r\n $extArray = explode(\".\",$fileName);\r\n $ext = $extArray[count($extArray)-1];\r\n\r\n //let consultant and production know that the patent search was uploaded be the attorney\r\n if($consultantVendor != null){\r\n if(strpos($consultantVendor->rol, 'attorney')!== false){\r\n $uploadFile->internal = 1;\r\n $uploadFile->save();\r\n if($ext == 'doc'|| $ext == 'docx'){\r\n Inbox::createInbox($project->lead->id, $project->consultant_id, \"Patent Search uploaded by the attorney.\\r\\n\".$msg, 'PRODUCTION', 'PRODUCTION');\r\n Inbox::createInbox($project->lead->id, 30, \"Patent Search uploaded by the attorney.\\r\\n\".$msg, 'FILE UPLOADED', 'PRODUCTION');\r\n Transaction::createTransaction($vendorId,'','','UPLOAD_FILE_VENDOR','Patent Search: '.$fileName,$projectId,'','','','','');\r\n }\r\n }else{\r\n //if is not an attorney let production know\r\n Inbox::createInbox($project->lead->id, 30, \"File uploaded By Vendor.\\r\\n\".$msg, 'FILE UPLOADED', 'PRODUCTION');\r\n Transaction::createTransaction($vendorId,'','','UPLOAD_FILE_VENDOR',$fileName,$projectId,'','','','','');\r\n }\r\n }\r\n }\r\n }\r\n }else{\r\n if($file){\r\n $fileName = $file->getClientOriginalName();\r\n $myProjects = ProjectProduction::where(['consultant_id'=>$vendorId])->where('completed','<>',1)->get();\r\n foreach($myProjects as $projectVendor){\r\n $project = $projectVendor->project;\r\n if(strpos(strval($fileName),strval($project->lead->fileno)) !== false){\r\n $file->move(public_path().'/files/projects/'.$project->lead->fileno.'/'.$project->id.'/vendors', $fileName);\r\n //create the row in upload file\r\n $uploadFile = UploadedFiles::where(['fileName'=>$fileName,'admin_id'=>$vendorId,'project_id'=>$project->id])->first();\r\n if($uploadFile != null){\r\n $uploadFile->delete();\r\n }\r\n $uploadFile = new UploadedFiles();\r\n $uploadFile->project_id = $project->id;\r\n $uploadFile->url = \"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/vendors/$fileName\";\r\n $uploadFile->fileName = $fileName;\r\n $uploadFile->$rol = 1;\r\n $uploadFile->admin_id = $vendorId;\r\n $uploadFile->save();\r\n\r\n $projectVendor->completed = 1;\r\n $projectVendor->completedDate = $now->format(\"Y-m-d H:i:s\");\r\n $projectVendor->save();\r\n\r\n //create the row in inbox to let Production know\r\n $msg = \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msg .= \"Pin: \".$project->id.\"\\r\\n\";\r\n $msg .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n $msg .= \"File Name: \".$fileName.\"\\r\\n\";\r\n Inbox::createInbox($project->lead->id, 30, \"File uploaded By Vendor.\\r\\n\".$msg, 'FILE UPLOADED', 'PRODUCTION');\r\n\r\n\r\n $extArray = explode(\".\",$fileName);\r\n $ext = $extArray[count($extArray - 1)];\r\n //let consultant know that the patent search was uploaded be the attorney\r\n if($consultantVendor != null && strpos($consultantVendor->rol, 'attorney')!== false && ($ext == 'doc'|| $ext == 'docx')){\r\n Inbox::createInbox($project->lead->id, $project->consultant_id, \"Patent Search uploaded for the attorney.\\r\\n\".$msg, 'PRODUCTION', 'PRODUCTION');\r\n $uploadFile->internal = 1;\r\n $uploadFile->save();\r\n }\r\n\r\n Transaction::createTransaction($vendorId,'','','UPLOAD_FILE_VENDOR',$fileName,$project->id,'','','','','');\r\n }\r\n }\r\n }\r\n }\r\n\r\n }", "public function testAddOrderFileByURL()\n {\n }", "protected function getVendorComplianceSurveyFilesRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyFiles'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "function _drush_patchfile_add_patch($project_name, $patch_url, $file) {\n $output = \"\\nprojects[{$project_name}][patch][] = \\\"{$patch_url}\\\"\\n\";\n $result = file_put_contents($file, $output, FILE_APPEND);\n if ($result !== FALSE) {\n drush_log(dt('Added patch @patch to @project in @file.', array('@patch' => $patch_url, '@project' => $project_name, '@file' => $file)), 'success');\n return TRUE;\n }\n else {\n return drush_set_error('DRUSH_MAKE_FILE_NO_WRITE', dt('Unable to append to file @file.', array('@file' => $file)));\n }\n}", "public function test_upload_file() {\n $target_url = \"http://localhost:9111/src/upload.php\";\n // test1.txt is just a file\n $file_with_full_path = realpath(\"../_files/test1.txt\");\n $post = array(\"username\"=>\"ddd\", \"password\"=>\"123456\", \"file\"=>'@'.$file_with_full_path);\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $target_url);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $post);\n $result=curl_exec ($ch);\n curl_close ($ch);\n $this->assertEquals(1, $result);\n }", "abstract public function attachFile($filePath, $name = null);", "function test(){\n\t\t// See http://www.atk14.net/api/en/file_uploads/create_new/\n\n\t\t$adf = new ApiDataFetcher(\"http://www.atk14.net/api/\",array(\n\t\t\t\"logger\" => new Logger()\n\t\t));\n\t\t$data = $adf->postFile(\"file_uploads/create_new\",\"sandokan.jpg\");\n\n\t\t$this->assertEquals(201,$adf->getStatusCode());\n\t\t$this->assertEquals(\"POST\",$adf->getMethod());\n\t\t$this->assertEquals(\"http://www.atk14.net/api/en/file_uploads/create_new/?format=json\",$adf->getUrl());\n\t\t$this->assertEquals(\"sandokan.jpg\",$data[\"filename\"]);\n\t\t$this->assertEquals(\"image/jpeg\",$data[\"mime_type\"]);\n\t\t$this->assertEquals(\"d5d4599e3586064e0524d18e8ee8bce5\",$data[\"md5sum\"]);\n\t}", "public function testInboundDocumentUploadFilePdf()\n {\n }", "public function testAddReplenishmentFile()\n {\n }", "private function newFileRecord($url, $fileName) {\n\n /** @var URLRequest $record */\n $record = new URLRequest();\n $record->url = $url;\n $record->status = 'Requested';\n $record->fileName = $fileName;\n $record->save();\n\n }", "public function testGetDuplicateVendorComplianceSurveyById()\n {\n }", "public function testUploadCertificateImage()\n {\n }", "protected function deleteVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_id' is set\n if ($file_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_id !== null) {\n $resourcePath = str_replace(\n '{' . 'fileId' . '}',\n ObjectSerializer::toPathValue($file_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function uploadFileAttCS(){\r\n $file = Input::file('file');\r\n $attId = Input::get('CONSULTANT');\r\n $projectId = Input::get('PROJECT');\r\n $command = Input::get('COMMAND');\r\n $project = Project::find($projectId);\r\n if($project!=null){\r\n if($file){\r\n $fileName = $file->getClientOriginalName();\r\n if(!File::exists(\"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/attClientServices\")) {\r\n File::makeDirectory(\"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/attClientServices\", 0755, true);\r\n }\r\n $file->move(public_path().'/files/projects/'.$project->lead->fileno.'/'.$project->id.'/attClientServices', $fileName);\r\n\r\n //create the row in upload file\r\n $uploadFile = UploadedFiles::where(['fileName'=>$fileName,'project_id'=>$projectId])->first();\r\n if($uploadFile != null){\r\n $uploadFile->delete();\r\n }\r\n $uploadFile = new UploadedFiles();\r\n $uploadFile->project_id = $projectId;\r\n $uploadFile->url = \"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/attClientServices/$fileName\";\r\n $uploadFile->fileName = $fileName;\r\n $uploadFile->attorney = 1;\r\n $uploadFile->admin_id = $attId;\r\n $uploadFile->ip = $_SERVER[\"REMOTE_ADDR\"];\r\n if($command == 'APP') {\r\n $otherFiles = UploadedFiles::where('project_id',$projectId)->where('filingReceipt',1)->get();\r\n foreach($otherFiles as $otherF){\r\n $otherF->filingReceipt=0;\r\n $otherF->save();\r\n }\r\n $uploadFile->filingReceipt = 1;\r\n }\r\n $uploadFile->save();\r\n\r\n Transaction::createTransaction($attId,'','','UPLOAD_FILE_CS_ATT',$fileName,$projectId,'','','','','');\r\n }\r\n }\r\n }", "public function uploadFileILCVendors(){\r\n $file = Input::file('file');\r\n $projectId = Input::get('PROJECT');\r\n $adminId = Input::get('CONSULTANT');\r\n $project = Project::find($projectId);\r\n if($project!=null){\r\n if($file){\r\n $fileName = $file->getClientOriginalName();\r\n $file->move(public_path().'/files/projects/'.$project->lead->fileno.'/'.$project->id.'/uploaded', $fileName);\r\n //create the row in upload file\r\n $uploadFile = UploadedFiles::where(['fileName'=>$fileName,'project_id'=>$project->id])->first();\r\n if($uploadFile != null){\r\n $uploadFile->delete();\r\n }\r\n $uploadFile = new UploadedFiles();\r\n $uploadFile->project_id = $projectId;\r\n $uploadFile->url = \"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/uploaded/$fileName\";\r\n $uploadFile->fileName = $fileName;\r\n $uploadFile->admin_id = $adminId;\r\n $uploadFile->ilcVendors = 1;\r\n $uploadFile->ip = $_SERVER[\"REMOTE_ADDR\"];\r\n $uploadFile->save();\r\n //put note in ilc\r\n $iid = Input::get('IID');\r\n $ilcV = IlcVendors::find($iid);\r\n $ilcNote = new IlcNotes();\r\n $ilcNote->ilc_id = $ilcV->ilc_id;\r\n $ilcNote->notes = \"File closed by vendor and uploaded \".$fileName.\" document.\";\r\n $ilcNote->system=1;\r\n $ilcNote->save();\r\n }\r\n }\r\n\r\n }", "public function testUploadUrlSuccess()\n {\n $mock_response = new MockHttpResponse(\n 200,\n json_encode([\n 'filename' => 'somefilename.jpg',\n 'size' => '1000',\n 'type' => 'image/jpg',\n 'url' => 'https://cdn.filestack.com/somefilehandle',\n ]),\n );\n\n $stub_http_client = $this->createMock(\\GuzzleHttp\\Client::class);\n $stub_http_client->method('request')\n ->willReturn($mock_response);\n\n $client = new FilestackClient(\n $this->test_api_key,\n $this->test_security,\n $stub_http_client\n );\n\n $filelink = $client->uploadUrl($this->test_file_url, [\n 'location' => 's3',\n 'filename' => 'filestack-php-sdk-test.jpg'\n ]);\n\n $this->assertNotNull($filelink);\n }", "function attachFile($contactID){\r\n\t\t\r\n\t\tglobal $file_upload_folder;\r\n\t\t\r\n\t\t//extensions that can be uploaded\r\n\t\t$allowed_ext = 'jpg,gif,png,pdf,doc,docx,txt,zip,mp3,jpeg,xls,xlsx,ppt,pptx';\t\r\n\t\t\r\n\t\t// important file variables\r\n\t\t$userfile_name = $_FILES['userfile']['name'];\r\n\t\t$userfile_size = $_FILES['userfile']['size'];\r\n\t\t$userfile_type = $_FILES['userfile']['type'];\r\n\t\t$userfile_error = $_FILES['userfile']['error'];\r\n\t\t$userfile_tmp_name = $_FILES['userfile']['tmp_name'];\r\n\t\t$max_file_size = $_POST['MAX_FILE_SIZE'];\r\n\t\r\n\t\t// get issue id\r\n\t\t$query = \"SELECT `Issue` FROM `contacts` WHERE ID='$contactID'\";\r\n\t\t$result = mysql_query($query);\r\n\t\t$result = mysql_fetch_array($result);\t\r\n\t\t$issueID = $result['Issue'];\r\n\t\t\r\n\t\tif( $this->userCanAttachFile($sessionID, $issueID)){\r\n\t\t\r\n\t\t\t// test link\r\n\t\t\tif(empty($this->link)){\r\n\t\t\t\techo \"Not connected to database You must instantiate the DataAccessManager before performing\r\n\t\t\t\t\tdatabase accesses.\";\r\n\t\t\t\texit;\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// begin hack to generate attachment id\r\n\t\t\t$IDs = array();\r\n\t\t\t$ID = date('m').date('d').date('Y').'-';\r\n\t\t\t$result = mysql_query(\"SELECT * FROM attachments WHERE ID like '%$ID%'\");\r\n\t\t\tfor($i=0; $results = mysql_fetch_assoc($result); $i++){\r\n\t\t\t\t$IDs[$i] = $results['ID'];\r\n\t\t\t}\r\n\t\t\t$idnumber = mysql_num_rows($result) + 1;\r\n\t\t\twhile(in_array('A'.$ID.$idnumber, $IDs)){\r\n\t\t\t\t$idnumber++;\r\n\t\t\t}\r\n\t\t\t$ID ='A'.$ID.$idnumber;\r\n\t\t\t// end hack to generate id\r\n\t\t\t\r\n\t\t\t// get extension\r\n\t\t\t$extension = pathinfo($userfile_name);\r\n\t\t\t$extension = $extension[extension];\r\n\t\t\t$extension = strtolower($extension);\r\n\t\t\r\n\t\t\t// check entension\r\n\t\t\t$allowed_paths = explode(',', $allowed_ext);\r\n\t\t\tfor($i = 0; $i < count($allowed_paths); $i++){\r\n\t\t\t\tif ($allowed_paths[$i] == $extension){\r\n\t\t\t\t\t$ok = '1';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif ($ok != '1') {\r\n\t\t\t\tprint '<font color=\"red\">Sorry, incorrect file type. File extension must be one of: '.$allowed_ext.'</font>';\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// do the upload\r\n\t\t\tif(move_uploaded_file($userfile_tmp_name, $file_upload_folder.$ID)) {\r\n\t\t\t\t\r\n\t\t\t\t// send queries to update 'attachments' table\r\n\t\t\t\t$query = \"insert into `attachments` (id, extension, alias, contactid)\r\n\t\t\t\t\tvalues ('$ID','$extension','$userfile_name', '$contactID')\";\r\n\t\t\t\tmysql_query($query);\t\t\r\n\r\n\t\r\n\t\t\t\treturn $ID;\r\n\t\t\t} \r\n\t\t\telse{\r\n\t\t\t\tswitch ($userfile_error){\r\n\t\t\t \tcase 1:\r\n\t\t\t\t\tprint '<font color=\"red\">Error: The file is bigger than this PHP installation allows.</font>';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tprint '<font color=\"red\">Error: File must be no greater than '.($max_file_size / 1000).' KB.</font>';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tprint '<font color=\"red\">Error: Only part of the file was uploaded - please try again.</font>';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tprint '<font color=\"red\">Error: No file was uploaded.</font>';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault: \r\n\t\t\t\t\tprint '<font color=\"red\">Unknown error - please retry.</font>';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t \r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\techo 'Permission to attach files denied.';\r\n\t\treturn false; // user doesn't have permission\r\n\t}", "public function addFile($file = null){\n $client = Yii::$app->fileService;\n return $client->add(['sid'=>$this->sid,'file'=>$file]);\n }", "public function testDeleteVendorComplianceSurvey()\n {\n }", "public function attach_file($file) {\r\n // Perform error checking on the form parameters\r\n if(!$file || empty($file) || !is_array($file)) {\r\n // error: nothing uploaded or wrong argument usage\r\n $this->errors[] = \"No file was uploaded.\";\r\n return FALSE;\r\n } elseif ($file['error'] != 0 ) {\r\n // error: report what PHP says went wrong\r\n $this->errors[] = $this->upload_errors[$file['error']];\r\n return FALSE;\r\n } else {\r\n // Set object attributes to the form parameters.\r\n $this->temp_path = $file['tmp_name'];\r\n $this->passport_path = basename($file['name']);\r\n\r\n return TRUE;\r\n }\r\n }", "public function _curl_storeFile ( $url, $file, $content_type ) {\n\t\tif ( !strlen($url) )\tthrow new InvalidArgumentException(\"Attachment URL can't be empty\");\n\t\tif ( !strlen($file) OR !is_file($file) OR !is_readable($file) )\tthrow new InvalidArgumentException(\"Attachment file does not exist or is not readable\");\n\t\tif ( !strlen($content_type) ) throw new InvalidArgumentException(\"Attachment Content Type can't be empty\");\n\t\t$url = $this->dsn.$url;\n\t\t$http = curl_init($url);\n\t\t$http_headers = array('Accept: application/json,text/html,text/plain,*/*','Content-Type: '.$content_type,'Expect: ') ;\n\t\tcurl_setopt($http, CURLOPT_PUT, 1);\n\t\tcurl_setopt($http, CURLOPT_HTTPHEADER,$http_headers);\n\t\tcurl_setopt($http, CURLOPT_UPLOAD, true);\n\t\tcurl_setopt($http, CURLOPT_HEADER, true);\n\t\tcurl_setopt($http, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($http, CURLOPT_FOLLOWLOCATION, true);\n\t\t$fstream=fopen($file,'r');\n\t\tcurl_setopt($http, CURLOPT_INFILE, $fstream);\n\t\tcurl_setopt($http, CURLOPT_INFILESIZE, filesize($file));\n\t\t$response = curl_exec($http);\n\t\tfclose($fstream);\n\t\tcurl_close($http);\n\t\treturn $response;\n\t}", "public function insert_document(Request $request){\n //validate data\n $this->validate($request, [\n 'filename' => 'required',\n 'revision' => 'required',\n 'department' => 'required',\n 'originator' => 'required',\n 'location' => 'required',\n 'additional_security' => 'required',\n 'owner' => 'required',\n 'reviewer' => 'required',\n 'electronic_distribution' => 'required',\n 'hardcopy' => 'required',\n 'category' => 'required',\n 'system_element' => 'required',\n 'original_date' => 'required',\n 'effective_date' => 'required',\n 'url' => 'required',\n 'review_date' => 'required'\n ]);\n\n $url = $request->file('url');\n $new_url = $url->getClientOriginalName();\n $url->move(public_path('/uploads/files/'), $new_url);\n\n $form_data = array(\n 'url' => $new_url,\n 'filename' => $request->filename,\n 'revision' => $request->revision,\n 'department' => $request->department,\n 'originator' => $request->originator,\n 'location' => $request->location,\n 'additional_security' => $request->additional_security,\n 'owner' => $request->owner,\n 'reviewer' => $request->reviewer,\n 'electronic_distribution' => $request->electronic_distribution,\n 'hardcopy' => $request->hardcopy,\n 'category' => $request->category,\n 'system_element' => $request->system_element,\n 'description' => $request->description,\n 'original_date' => $request->original_date,\n 'effective_date' => $request->effective_date,\n 'review_date' => $request->review_date,\n 'user_id' => Auth::user()->id,\n 'iso_management_id' => $request->iso_management_id,\n 'folder_id' => $request->folder_id,\n 'project_id' => $request->project_id,\n 'doc_number' => $this->getNextDocNumber()\n );\n\n File::create($form_data);\n\n //store status message\n Session::flash('success_msg', 'Draft added successfully!');\n\n //redirect back to the main page\n return redirect()->route('document_control.document_new_draft');\n }", "public function testAddFieldVisualisationFile() {\n $new_field_label = 'Testing visualisation file field';\n $new_field_name = 'testing_vis_file_field';\n $storage_type = 'dvf_file';\n\n $this->addNewFieldToPage($new_field_label, $new_field_name, $storage_type);\n }", "public function addAttachment(){\n $header = $this->app->request->headers->all();\n $body = $this->app->request->getBody();\n $fileObjects = Attachment::decodeAttachment($body);\n\n // always been an array\n $arr = true;\n if ( !is_array( $fileObjects ) ){\n $fileObjects = array( $fileObjects );\n $arr = false;\n }\n\n $res = array( );\n $files=array();\n\n foreach ( $fileObjects as $fileObject )\n $files[] = $fileObject->getFile();\n\n //add the Files\n $result = Request::routeRequest(\n 'POST',\n '/file',\n array(),\n File::encodeFile($files),\n $this->_postFile,\n 'file'\n );\n\n $tempFiles = File::decodeFile($result['content']);\n\n // checks the correctness of the query\n if ( $result['status'] === 201 && isset($result['content'])){\n\n // upload files\n $countObjects = count($fileObjects);\n for($i=0;$i<$countObjects;$i++){\n if ($tempFiles[$i]->getStatus() === 201){\n $fileObjects[$i]->setFile($tempFiles[$i]);\n\n if ($files[$i] !== null)\n $files[$i]->setStatus(201);\n } else {\n $fileObjects[$i]->setStatus(409);\n $fileObjects[$i]->addMessage(\"Die Datei konnte nicht gespeichert werden.\");\n if ($files[$i] !== null)\n $files[$i]->setBody();\n }\n }\n } else {\n $this->app->response->setStatus(409);\n $this->app->response->setBody( Attachment::encodeAttachment( new Attachment()) );\n $this->app->stop();\n }\n\n // upload attachments\n $result = Request::routeRequest(\n 'POST',\n '/attachment',\n array(),\n Attachment::encodeAttachment($fileObjects),\n $this->_postAttachment,\n 'attachment'\n );\n\n if ( $result['status'] === 201 && isset($result['content'])){\n $tempAttachments = Attachment::decodeAttachment($result['content']);\n\n $countObjects = count($fileObjects);\n for($i=0;$i<$countObjects;$i++){\n $fileObjects[$i]->setStatus($tempAttachments[$i]->getStatus());\n $fileObjects[$i]->addMessages($tempAttachments[$i]->getMessages());\n\n if ($tempAttachments[$i]->getStatus() !== 201){\n $fileObjects[$i]->addMessage('Anhang konnte nicht erstellt werden.');\n $fileObjects[$i]->getFile()->setBody();\n } else\n $fileObjects[$i]->setId($tempAttachments[$i]->getId());\n\n $res[] = $fileObjects[$i];\n }\n\n } else {\n $this->app->response->setStatus(409);\n $this->app->response->setBody( Attachment::encodeAttachment( new Attachment()) );\n $this->app->stop();\n\n }\n\n if ( !$arr &&\n count( $res ) == 1 )\n $res = $res[0];\n\n $this->app->response->setBody( Attachment::encodeAttachment( $res ) );\n $this->app->response->setStatus( 201 );\n }", "protected abstract function createUrl($file);", "function handle_upload_ticket_suite_statement(){\r\n\t\t$config = array();\r\n\t\t$config['upload_path'] = './assets/image_uploads/bank_statement';\r\n\t\t$config['allowed_types'] = 'gif|jpg|png|pdf';\r\n $new_name = time().'_'.$_FILES[\"bank_attachment_for_ts\"]['name'];\r\n\t\t$config['file_name'] = $new_name;\r\n\t\t$this->load->library('upload', $config);\r\n\t\t$this->upload->initialize($config);\r\n\r\n\t\tif (isset($_FILES['bank_attachment_for_ts']) && !empty($_FILES['bank_attachment_for_ts']['name'])){\r\n\r\n\t\t\tif ($this->upload->do_upload('bank_attachment_for_ts')){\r\n\t\t\t\t// set a $_POST value for 'image' that we can use later\r\n\t\t\t\t$upload_data = $this->upload->data();\r\n\t\t\t\t$_POST['old_bank_ticket_suite_statement'] = $upload_data['file_name'];\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\t// possibly do some clean up ... then throw an error\r\n\t\t\t\t$this->form_validation->set_message('handle_upload_ticket_suite_statement', $this->upload->display_errors());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected function add_valid_file( $file ) {\r\n\t\t\t$file['isvalid'] = true;\r\n\t\t\t$file['name'] = ( empty( $file['name'] ) ) ? self::uniqString() : $file['name'];\r\n\t\t\t\r\n\t\t\t$this->Files_valid[] = $file;\r\n\t\t\t$this->Files_valid_count++;\r\n\t\t}", "function type_url_form_file()\n {\n }", "public function testUploadFile()\n {\n // initialize the API client\n $config = (new Configuration())->setHost('http://petstore.swagger.io/v2');\n $api_client = new ApiClient($config);\n $pet_api = new Api\\PetApi($api_client);\n // upload file\n $pet_id = 10001;\n $response = $pet_api->uploadFile($pet_id, \"test meta\", \"./composer.json\");\n // return ApiResponse\n $this->assertInstanceOf('Swagger\\Client\\Model\\ApiResponse', $response);\n }", "public function uploadAttachment(Request $request)\n {\n // Check authorisation and throw 404 if not\n //if (!(Auth::user()->allowed2('add.site.inspection') || Auth::user()->allowed2('edit.site.inspection', $report)))\n // return json_encode(\"failed\");\n\n //dd('here');\n //dd(request()->all());\n // Handle file upload\n $files = $request->file('multifile');\n foreach ($files as $file) {\n $path = \"filebank/site/\" . $request->get('site_id') . '/inspection';\n $name = $request->get('site_id') . '-' . sanitizeFilename(pathinfo($file->getClientOriginalName(), PATHINFO_FILENAME)) . '.' . strtolower($file->getClientOriginalExtension());\n\n // Ensure filename is unique by adding counter to similiar filenames\n $count = 1;\n while (file_exists(public_path(\"$path/$name\")))\n $name = $request->get('site_id') . '-' . sanitizeFilename(pathinfo($file->getClientOriginalName(), PATHINFO_FILENAME)) . '-' . $count ++ . '.' . strtolower($file->getClientOriginalExtension());\n $file->move($path, $name);\n\n $doc_request = $request->only('site_id');\n $doc_request['name'] = pathinfo($file->getClientOriginalName(), PATHINFO_FILENAME);\n $doc_request['company_id'] = Auth::user()->company_id;\n $doc_request['type'] = (in_array(strtolower($file->getClientOriginalExtension()), ['jpg', 'jpeg', 'gif', 'png'])) ? 'photo' : 'doc';\n\n // Create SiteMaintenanceDoc\n $doc = SiteInspectionDoc::create($doc_request);\n $doc->table = 'plumbing';\n $doc->inspect_id = $request->get('report_id');\n $doc->attachment = $name;\n $doc->save();\n }\n\n return json_encode(\"success\");\n }", "public function testIsVendorFileReturnsTrueIfFileIsLocatedInVendorDirectory()\n {\n $this->assertTrue(VendorResources::isVendorFile($this->getVendorFilePath()));\n }", "function addFile($file_name,$uploaded_file,$description=null) {\n\t\t\n\t\t\t$this->success = false;\n\t\t\t\t\t\t\n\t\t\t// if the file already exists, update it.\n\t\t\tif (!$file = $this->files()->contains('file_name',$file_name)) { \n\t\t\t\t// create a new file\n\t\t\t\t$file = $this->POD->getFile();\n\t\t\t}\n\t\t\n\t\t\tif ($uploaded_file['name']!='') {\n\t\t\t\t\t\n\t\t\t\t\t$file->set('file_name',$file_name);\n\t\t\t\t\t$file->set('original_name',$uploaded_file['name']);\n\t\t\t\t\t$file->set('tmp_name',$uploaded_file['tmp_name']);\n\t\t\t\t\t$file->set('contentId',$this->get('id'));\n\t\t\t\t\t$file->set('description',$description);\n\t\t\t\t\t$file->save();\t\t\n\t\t\t\t\tif (!$file->success()) {\n\t\t\t\t\t\t$this->throwError($file->error());\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->success = true;\n\t\t\t\t\t\treturn $file;\n\t\t\t\t\t}\n\t\t\t} else if ($uploaded_file['error']!= 0 && $uploaded_file['error']!= UPLOAD_ERR_NO_FILE) {\n\t\t\t\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_INI_SIZE) {\n\t\t\t\t\t$this->throwError('The file ' . $file_name . ' exceeds the maximum allowed upload size on this server.');\n\t\t\t\t}\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_FORM_SIZE) {\n\t\t\t\t\t$this->throwError('The file ' . $file_name . ' exceeds the maximum allowed upload size for this form.');\n\t\t\t\t}\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_PARTIAL) {\n\t\t\t\t\t$this->throwError('The file ' . $file_name . ' did not successfully upload.');\n\t\t\t\t}\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_NO_TMP_DIR) {\n\t\t\t\t\t$this->throwError('PeoplePods cannot find a temporary folder to store the uploaded files.');\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_CANT_WRITE) {\n\t\t\t\t\t$this->throwError('PeoplePods cannot write to the temporary folder.');\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_EXTENSION) {\n\t\t\t\t\t$this->throwError('A PHP extension stopped the file upload.');\n\t\t\t\t}\t\t\t\t\n\n\t\t\t\treturn false;\n\t\t\t\n\t\t\t} else {\n\n\t\t\t\t// sometimes an invalid record gets into $_FILES where no tmp_name is specified\n\t\t\t\t// this normally happens when a javascript form validator has caused the file input to submit\n\t\t\t\t// even though there is no file!\n\t\t\t\t// we don't want to throw an error if this happens, we just want to silently ignore this record.\n\n\t\t\t\t//$file->set('description',$description);\n\t\t\t\t//$file->save();\n\t\t\t\t\n\t\t\t\t$this->success = true;\n\t\t\t}\n\t\t\n\t\t\treturn $this->success;\n\t\t\n\t\t}", "public function testAddVendorComplianceSurveyAudit()\n {\n }", "public function testIsVendorFileReturnsTrueIfFileThatIsReferencedByFileObjectIsLocatedInVendorDirectory()\n {\n $this->assertTrue(VendorResources::isVendorFile(new \\SplFileInfo($this->getVendorFilePath())));\n }", "public function add() {\n $this->usePostRequest();\n //$this->dbFileModel->add_file();\n }", "function addArtifactAttachedFile($sessionKey,$group_id,$group_artifact_id,$artifact_id,$encoded_data,$description,$filename,$filetype) {\n global $art_field_fact; \n if (session_continue($sessionKey)) {\n $pm = ProjectManager::instance();\n try {\n $grp = $pm->getGroupByIdForSoap($group_id, 'addArtifactAttachedFile');\n } catch (SoapFault $e) {\n return $e;\n }\n\n $at = new ArtifactTracker($grp,$group_artifact_id);\n if (!$at || !is_object($at)) {\n return new SoapFault(get_artifact_type_fault,'Could Not Get ArtifactTracker','addArtifactFile');\n } elseif ($at->isError()) {\n return new SoapFault(get_artifact_type_fault,$at->getErrorMessage(),'addArtifactFile');\n }\n \n $art_field_fact = new ArtifactFieldFactory($at);\n if (!$art_field_fact || !is_object($art_field_fact)) {\n return new SoapFault(get_artifact_field_factory_fault, 'Could Not Get ArtifactFieldFactory','addArtifactFile');\n } elseif ($art_field_fact->isError()) {\n return new SoapFault(get_artifact_field_factory_fault, $art_field_fact->getErrorMessage(),'addArtifactFile');\n }\n\n $a = new Artifact($at,$artifact_id);\n if (!$a || !is_object($a)) {\n return new SoapFault(get_artifact_fault,'Could Not Get Artifact','addArtifactFile');\n } elseif ($a->isError()) {\n return new SoapFault(get_artifact_fault,$a->getErrorMessage(),'addArtifactFile');\n }\n\n $af = new ArtifactFile($a);\n if (!$af || !is_object($af)) {\n return new SoapFault(get_artifact_file_fault,'Could Not Create File Object','addArtifactFile');\n } else if ($af->isError()) {\n return new SoapFault(get_artifact_file_fault,$af->getErrorMessage(),'addArtifactFile');\n }\n\n $bin_data = base64_decode($encoded_data);\n\n $filesize = strlen($bin_data);\n\n $id = $af->create($filename,$filetype,$filesize,$bin_data,$description, $changes);\n\n if (!$id) {\n return new SoapFault(get_artifact_file_fault,$af->getErrorMessage(),'addArtifactFile');\n } else {\n // Send the notification\n if ($changes) {\n $agnf =& new ArtifactGlobalNotificationFactory();\n $addresses = $agnf->getAllAddresses($at->getID(), true);\n $a->mailFollowupWithPermissions($addresses, $changes);\n }\n }\n\n return $id;\n } else {\n return new SoapFault(invalid_session_fault, 'Invalid Session', 'addArtifactFile');\n }\n}", "public function testAddVendorComplianceSurveyTag()\n {\n }", "public function verifyFile(){\n if (isset($_POST[\"submitbutton\"])){//if submit button is pressed\n if ($_FILES[\"fileSelectField\"][\"type\"] != \"application/pdf\"){//checks file type\n return \"File must be a pdf file\";\n }\n else if ($_FILES[\"fileSelectField\"][\"size\"] > 100000){//checks file size\n return \"File is too big\";\n }\n else {//runs function to add file if no problems\n return $this->addFile();\n }\n }\n }", "public function acfedu_do_something_with_file() {\n\n\t\t\t\tif ( isset( $_POST[\"select_file_nonce\"] ) ) {\n\t\t\t\t\tif ( ! wp_verify_nonce( $_POST[\"select_file_nonce\"], 'select-file-nonce' ) ) {\n\t\t\t\t\t\t$this->acfedu_errors()->add( 'error_nonce_no_match', esc_html__( 'Something went wrong. Please try again.', 'acf-faculty-selector' ) );\n\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif ( ! isset( $_POST['file_name'] ) ) {\n\t\t\t\t\t\t\t$this->acfedu_errors()->add( 'error_no_file_selected', esc_html__( \"You didn't select a file.\", 'acf-faculty-selector' ) );\n\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$file_name = $_POST['file_name'];\n\t\t\t\t\t\t$import = ! empty( $_POST['import'] ) ? $_POST['import'] : false;\n\t\t\t\t\t\t$remove = ! empty( $_POST['remove'] ) ? $_POST['remove'] : false;\n\t\t\t\t\t\t$verify = ! empty( $_POST['verify'] ) ? $_POST['verify'] : false;\n\n\t\t\t\t\t\tif ( ! empty( $verify ) ) {\n\n\t\t\t\t\t\t\t$read_data = acfedu_read_file_only( $file_name[0] );\n\t\t\t\t\t\t\t$verified_data = acfedu_verify_csv_data( $read_data );\n\n\t\t\t\t\t\t\tif ( false != $verified_data ) {\n\t\t\t\t\t\t\t\t$this->acfedu_errors()->add( 'success_no_errors_in_csv', esc_html__( 'Congratulations, there appear to be no errors in your CSV.', 'acf-faculty-selector' ) );\n\n\t\t\t\t\t\t\t\tdo_action( 'acfedu_after_success_verify' );\n\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} elseif ( ! empty( $import ) ) {\n\n\t\t\t\t\t\t\t// import data\n\t\t\t\t\t\t\t$read_data = acfedu_read_file_only( $file_name[0] );\n\t\t\t\t\t\t\t$verified_data = acfedu_verify_csv_data( $read_data );\n\t\t\t\t\t\t\tif ( false != $verified_data ) {\n\t\t\t\t\t\t\t\t$line_number = 0;\n\t\t\t\t\t\t\t\tforeach ( $verified_data as $line ) {\n\t\t\t\t\t\t\t\t\t$line_number ++;\n\n\t\t\t\t\t\t\t\t\t$faculty = $line[0];\n\t\t\t\t\t\t\t\t\t$univ_abbr = $line[1];\n\t\t\t\t\t\t\t\t\t$univ = $line[2];\n\t\t\t\t\t\t\t\t\t$country_abbr = $line[3];\n\t\t\t\t\t\t\t\t\t$country = $line[4];\n\t\t\t\t\t\t\t\t\t$price = $line[5];\n\n\t\t\t\t\t\t\t\t\t$faculty_row = array(\n\t\t\t\t\t\t\t\t\t\t'faculty_name' => $faculty,\n\t\t\t\t\t\t\t\t\t\t'univ_code' => $univ_abbr,\n\t\t\t\t\t\t\t\t\t\t'univ_name' => $univ,\n\t\t\t\t\t\t\t\t\t\t'country_code' => $country_abbr,\n\t\t\t\t\t\t\t\t\t\t'country' => $country,\n\t\t\t\t\t\t\t\t\t\t'price' => $price,\n\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\tglobal $wpdb;\n\t\t\t\t\t\t\t\t\t$wpdb->insert( $wpdb->prefix . 'faculty', $faculty_row );\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t$this->acfedu_errors()->add( 'success_lines_imported', sprintf( esc_html__( 'Congratulations. You have successfully imported %d faculty.', 'acf-faculty-selector' ), $line_number ) );\n\n\t\t\t\t\t\t\t\tdo_action( 'acfedu_after_success_import' );\n\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} elseif ( ! empty( $remove ) ) {\n\n\t\t\t\t\t\t\tif ( isset( $_POST['file_name'] ) ) {\n\t\t\t\t\t\t\t\tforeach ( $_POST['file_name'] as $file_name ) {\n\t\t\t\t\t\t\t\t\t// delete file\n\t\t\t\t\t\t\t\t\tunlink( wp_upload_dir()['basedir'] . '/acfedu/' . $file_name );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ( count( $_POST['file_name'] ) == 1 ) {\n\t\t\t\t\t\t\t\t\t$this->acfedu_errors()->add( 'success_file_deleted', sprintf( esc_html__( 'File \"%s\" successfully deleted.', 'acf-faculty-selector' ), $file_name ) );\n\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$this->acfedu_errors()->add( 'success_files_deleted', esc_html__( 'Files successfully deleted.', 'acf-faculty-selector' ) );\n\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "function drush_patchfile_patch_add($project_name, $url) {\n $file = drush_get_option('patch-file');\n\n $args = array(\n '@project' => $project_name,\n '@url' => &$url,\n );\n\n $project_directory = drush_patchfile_project_get_directory($project_name);\n if (empty($project_directory)) {\n return drush_set_error('DRUSH_PROJECT_NOT_FOUND', dt(\"The project @project was not found.\", $args));\n }\n\n // Attempt to convert generic URLs to patch-specific URLs.\n $original_url = $url;\n if (_drush_patchfile_is_url($url)) {\n if (!drush_patchfile_process_url($url)) {\n return FALSE;\n }\n }\n\n $patch = $url;\n if (!_drush_patchfile_preprocess_local_file_url($patch, $file)) {\n return FALSE;\n }\n\n // Check to see if this project is already patched with this patch.\n $projects = drush_patchfile_get_patched_projects();\n if (isset($projects[$project_name])) {\n if (in_array($patch, $projects[$project_name]['patch']) || in_array($url, $projects[$project_name]['patch'])) {\n return drush_set_error('DRUSH_PATCH_ALREADY_LISTED', dt(\"The patch @url is already listed as a patch for @project.\", $args));\n }\n }\n\n if (!drush_get_option('no-apply')) {\n if (_drush_patchfile_project_apply_patches($project_name, array($patch), $project_directory) || drush_get_option('force')) {\n _drush_patchfile_add_patch($project_name, $patch['url'], $file);\n }\n else {\n if (drush_confirm(\"Would you still like to add this patch to the patch file?\")) {\n _drush_patchfile_add_patch($project_name, $patch['url'], $file);\n }\n return FALSE;\n }\n }\n else {\n if (_make_download_file($patch['url']) || drush_get_option('force')) {\n _drush_patchfile_add_patch($project_name, $patch['url'], $file);\n }\n else {\n return drush_set_error('DOWNLOAD_ERROR', dt('Unable to download or fetch @url.', $args));\n }\n }\n}", "protected function shouldAddCertificate($forUrl): void\n {\n $this->app->extend(CertificateBuilder::class, function ($builder, $app) use ($forUrl) {\n $mock = \\Mockery::mock(CertificateBuilder::class);\n $mock->shouldReceive('build')\n ->with($forUrl)\n ->once();\n\n return $mock;\n });\n }", "function LibraryMediaFileUpload() {\n $file = file_get_contents('test_files/test.csv');\n $payload = base64_encode($file);\n\n $params = array(\n 'service' => 'rest',\n 'method' => 'LibraryMediaFileUpload',\n 'response' => RESPONSE,\n 'fileId' => NULL,\n 'checksum' => md5($payload),\n 'payload' => $payload\n );\n\n callService($params, true);\n}", "public function upload_file()\n {\n if (!isset($_POST['ticket']) || empty($_POST['ticket'])) {\n $response['status'] = false;\n $response['error'] = __('Ticket not set.', 'kong-helpdesk');\n die(json_encode($response));\n }\n\n $id = intval($_POST['ticket']);\n\n $author = get_userdata(get_current_user_id());\n\n $commentdata = array(\n 'comment_post_ID' => $id,\n 'comment_author' => $author->display_name,\n 'comment_author_email' => $author->user_email,\n 'comment_author_url' => '',\n 'comment_content' => sanitize_text_field($_FILES['helpdesk-attachments']['name'][0]),\n 'comment_type' => '',\n 'comment_parent' => 0,\n 'user_id' => $author->ID,\n );\n\n //Insert new comment and get the comment ID\n $comment_id = wp_new_comment($commentdata, true);\n\n if (!is_int($comment_id)) {\n die('Error while inserting comment');\n }\n\n $response = array(\n 'status' => 'true',\n 'message' => ''\n );\n\n $status = $this->attachments->save_comment_attachments(null, get_comment($comment_id) );\n\n if (!$status) {\n $response['status'] = 'false';\n $response['error'] = __('Error while uploading your attachment.', 'kong-helpdesk');\n }\n\n die(json_encode($response));\n }", "public function attach_file($file){\n\t\tif(!$file || empty($file) || !is_array($file)) {\n\t\t\t // error: nothing uploaded or wrong argument usage\n\t\t\t $this->errors[] = \"No file was uploaded.\";\n\t\t\t return false;\n\t\t} elseif($file['error'] != 0) {\n\t\t\t // error: report what PHP says went wrong\n\t\t\t $this->errors[] = $this->upload_errors[$file['error']];\n\t\t\t return false;\n\t\t} else {\n\t\t\t//set object attributes\n\t\t\t $this->temp_path = $file['tmp_name'];\n\t\t\t\t$this->filename = basename($file['name']);\n\t\t\t\t$this->type = $file['type'];\n\t\t\t\t$this->size = $file['size'];\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "function importObject($file_info, $svy_qpl_id)\n\t{\n\t\tif ($svy_qpl_id < 1) $svy_qpl_id = -1;\n\t\t// check if file was uploaded\n\t\t$source = $file_info[\"tmp_name\"];\n\t\t$error = \"\";\n\t\tif (($source == 'none') || (!$source) || $file_info[\"error\"] > UPLOAD_ERR_OK)\n\t\t{\n\t\t\t$error = $this->lng->txt(\"import_no_file_selected\");\n\t\t}\n\t\t// check correct file type\n\t\t$isXml = FALSE;\n\t\t$isZip = FALSE;\n\t\tif ((strcmp($file_info[\"type\"], \"text/xml\") == 0) || (strcmp($file_info[\"type\"], \"application/xml\") == 0))\n\t\t{\n\t\t\t$isXml = TRUE;\n\t\t}\n\t\t// too many different mime-types, so we use the suffix\n\t\t$suffix = pathinfo($file_info[\"name\"]);\n\t\tif (strcmp(strtolower($suffix[\"extension\"]), \"zip\") == 0)\n\t\t{\n\t\t\t$isZip = TRUE;\n\t\t}\n\t\tif (!$isXml && !$isZip)\n\t\t{\n\t\t\t$error = $this->lng->txt(\"import_wrong_file_type\");\n\t\t\tglobal $ilLog;\n\t\t\t$ilLog->write(\"Survey: Import error. Filetype was \\\"\" . $file_info[\"type\"] .\"\\\"\");\n\t\t}\n\t\tif (strlen($error) == 0)\n\t\t{\n\t\t\t// import file as a survey\n\t\t\t$import_dir = $this->getImportDirectory();\n\t\t\t$import_subdir = \"\";\n\t\t\t$importfile = \"\";\n\t\t\tinclude_once \"./Services/Utilities/classes/class.ilUtil.php\";\n\t\t\tif ($isZip)\n\t\t\t{\n\t\t\t\t$importfile = $import_dir.\"/\".$file_info[\"name\"];\n\t\t\t\tilUtil::moveUploadedFile($source, $file_info[\"name\"], $importfile);\n\t\t\t\tilUtil::unzip($importfile);\n\t\t\t\t$found = $this->locateImportFiles($import_dir);\n\t\t\t\tif (!((strlen($found[\"dir\"]) > 0) && (strlen($found[\"xml\"]) > 0)))\n\t\t\t\t{\n\t\t\t\t\t$error = $this->lng->txt(\"wrong_import_file_structure\");\n\t\t\t\t\treturn $error;\n\t\t\t\t}\n\t\t\t\t$importfile = $found[\"xml\"];\n\t\t\t\t$import_subdir = $found[\"dir\"];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$importfile = tempnam($import_dir, \"survey_import\");\n\t\t\t\tilUtil::moveUploadedFile($source, $file_info[\"name\"], $importfile);\n\t\t\t}\n\t\t\t$fh = fopen($importfile, \"r\");\n\t\t\tif (!$fh)\n\t\t\t{\n\t\t\t\t$error = $this->lng->txt(\"import_error_opening_file\");\n\t\t\t\treturn $error;\n\t\t\t}\n\t\t\t$xml = fread($fh, filesize($importfile));\n\t\t\t$result = fclose($fh);\n\t\t\tif (!$result)\n\t\t\t{\n\t\t\t\t$error = $this->lng->txt(\"import_error_closing_file\");\n\t\t\t\treturn $error;\n\t\t\t}\n\n\t\t\tunset($_SESSION[\"import_mob_xhtml\"]);\n\t\t\tif (strpos($xml, \"questestinterop\"))\n\t\t\t{\n\t\t\t\tinclude_once \"./Services/Survey/classes/class.SurveyImportParserPre38.php\";\n\t\t\t\t$import = new SurveyImportParserPre38($svy_qpl_id, \"\", TRUE);\n\t\t\t\t$import->setSurveyObject($this);\n\t\t\t\t$import->setXMLContent($xml);\n\t\t\t\t$import->startParsing();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinclude_once \"./Services/Survey/classes/class.SurveyImportParser.php\";\n\t\t\t\t$import = new SurveyImportParser($svy_qpl_id, \"\", TRUE);\n\t\t\t\t$import->setSurveyObject($this);\n\t\t\t\t$import->setXMLContent($xml);\n\t\t\t\t$import->startParsing();\n\t\t\t}\n\n\t\t\tif (is_array($_SESSION[\"import_mob_xhtml\"]))\n\t\t\t{\n\t\t\t\tinclude_once \"./Services/MediaObjects/classes/class.ilObjMediaObject.php\";\n\t\t\t\tinclude_once \"./Services/RTE/classes/class.ilRTE.php\";\n\t\t\t\tinclude_once \"./Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php\";\n\t\t\t\tforeach ($_SESSION[\"import_mob_xhtml\"] as $mob)\n\t\t\t\t{\n\t\t\t\t\t$importfile = $import_subdir . \"/\" . $mob[\"uri\"];\n\t\t\t\t\tif (file_exists($importfile))\n\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\tif (!$mob[\"type\"])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$mob[\"type\"] = \"svy:html\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$media_object = ilObjMediaObject::_saveTempFileAsMediaObject(basename($importfile), $importfile, FALSE);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// survey mob\n\t\t\t\t\t\tif ($mob[\"type\"] == \"svy:html\")\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tilObjMediaObject::_saveUsage($media_object->getId(), \"svy:html\", $this->getId());\n\t\t\t\t\t\t\t$this->setIntroduction(str_replace(\"src=\\\"\" . $mob[\"mob\"] . \"\\\"\", \"src=\\\"\" . \"il_\" . IL_INST_ID . \"_mob_\" . $media_object->getId() . \"\\\"\", $this->getIntroduction()));\n\t\t\t\t\t\t\t$this->setOutro(str_replace(\"src=\\\"\" . $mob[\"mob\"] . \"\\\"\", \"src=\\\"\" . \"il_\" . IL_INST_ID . \"_mob_\" . $media_object->getId() . \"\\\"\", $this->getOutro()));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// question mob\n\t\t\t\t\t\telse if($import->questions[$mob[\"id\"]])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$new_qid = $import->questions[$mob[\"id\"]];\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tilObjMediaObject::_saveUsage($media_object->getId(), $mob[\"type\"], $new_qid);\t\t\t\t\t\t\n\t\t\t\t\t\t\t$new_question = SurveyQuestion::_instanciateQuestion($new_qid);\t\t\t\n\t\t\t\t\t\t\t$qtext = $new_question->getQuestiontext();\n\t\t\t\t\t\t\t$qtext = ilRTE::_replaceMediaObjectImageSrc($qtext, 0);\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$qtext = str_replace(\"src=\\\"\" . $mob[\"mob\"] . \"\\\"\", \"src=\\\"\" . \"il_\" . IL_INST_ID . \"_mob_\" . $media_object->getId() . \"\\\"\", $qtext);\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$qtext = ilRTE::_replaceMediaObjectImageSrc($qtext, 1);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$new_question->setQuestiontext($qtext);\n\t\t\t\t\t\t\t$new_question->saveToDb();\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// also fix existing original in pool\n\t\t\t\t\t\t\tif($new_question->getOriginalId())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$pool_question = SurveyQuestion::_instanciateQuestion($new_question->getOriginalId());\n\t\t\t\t\t\t\t\t$pool_question->setQuestiontext($qtext);\n\t\t\t\t\t\t\t\t$pool_question->saveToDb();\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tglobal $ilLog;\n\t\t\t\t\t\t$ilLog->write(\"Error: Could not open XHTML mob file for test introduction during test import. File $importfile does not exist!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->setIntroduction(ilRTE::_replaceMediaObjectImageSrc($this->getIntroduction(), 1));\n\t\t\t\t$this->setOutro(ilRTE::_replaceMediaObjectImageSrc($this->getOutro(), 1));\n\t\t\t\t$this->saveToDb();\n\t\t\t}\n\n\t\t\t// delete import directory\n\t\t\tilUtil::delDir($this->getImportDirectory());\n\t\t}\n\t\treturn $error;\n\t}", "function upload_file(string $fileName, string $slug, string $userName)\n{\n global $uploadTmpDir, $uploadDir;\n $_FILES[\"upload_file\"] = [\n \"tmp_name\" => $uploadTmpDir . \"/$fileName\",\n \"name\" => $fileName,\n ];\n $_POST[\"upload_slug\"] = $slug;\n setTestCSRFToken(\"uploadmedia\");\n\n $user = getUser($userName);\n loadSite(\"section=admin:medias&action=create\", $user[\"id\"]);\n\n assertMessageSaved(\"File uploaded successfully.\");\n assertRedirect(buildUrl(\"admin:medias\", \"read\"));\n\n $media = queryTestDB(\"SELECT * FROM medias WHERE slug=?\", $slug)->fetch();\n assertDifferent($media, false);\n assertIdentical($slug, $media[\"slug\"]);\n $date = date(\"Y-m-d\");\n $fileName = preg_replace(\"/(\\.[a-z0-9]+)$/i\", \"-$slug-$date$1\", $fileName);\n assertIdentical($fileName, $media[\"filename\"]);\n assertIdentical($user[\"id\"], $media[\"user_id\"]);\n\n assertIdentical(true, file_exists(\"$uploadDir/$fileName\"));\n}", "private function attachFile(&$paragraph, $file, $doc_type) {\n $id = $file == 'NOFILE' ? [] : ['target_id' => $file->id()];\n $field = array(\n 'SDS' => 'field_sap_sds_file',\n 'SPC' => 'field_sap_spec_sheet',\n 'PIS' => 'field_product_info_sheet',\n );\n try {\n if (!empty($doc_type)) {\n $fileObj = $paragraph->{$field[$doc_type]}->entity;\n if (!empty($fileObj)) {\n $fileObj->delete();\n }\n $paragraph->{$field[$doc_type]}->setValue($id);\n }\n }\n catch (\\Exception $error) {\n return new JsonResponse($error->getMessage(), 400);\n }\n }", "public function testGetExternalShipmentFiles()\n {\n }", "function wpdev_make_file_upload( &$file, $dir , $url ) {\r\n\r\n // The default error handler.\r\n if (! function_exists( 'wp_handle_upload_error' ) ) { function wp_handle_upload_error( &$file, $message ) { return array( 'error'=>$message ); } }\r\n\r\n // Courtesy of php.net, the strings that describe the error indicated in $_FILES[{form field}]['error'].\r\n $upload_error_strings = array( false,\r\n __( \"The uploaded file exceeds the <code>upload_max_filesize</code> directive in <code>php.ini</code>.\" ),\r\n __( \"The uploaded file exceeds the <em>MAX_FILE_SIZE</em> directive that was specified in the HTML form.\" ),\r\n __( \"The uploaded file was only partially uploaded.\" ),\r\n __( \"No file was uploaded.\" ),\r\n '',\r\n __( \"Missing a temporary folder.\" ),\r\n __( \"Failed to write file to disk.\" ),\r\n __( \"File upload stopped by extension.\" ));\r\n\r\n // A successful upload will pass this test. It makes no sense to override this one.\r\n if ( $file['error'] > 0 ) return wp_handle_upload_error( $file, $upload_error_strings[$file['error']] );\r\n\r\n // A non-empty file will pass this test.\r\n if ( !($file['size'] > 0 ) ) return wp_handle_upload_error( $file, __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini.' ));\r\n\r\n // A properly uploaded file will pass this test. There should be no reason to override this one.\r\n if (! @ is_uploaded_file( $file['tmp_name'] ) ) return wp_handle_upload_error( $file, __( 'Specified file failed upload test.' ));\r\n\r\n // If you override this, you must provide $ext and $type!!!!\r\n $test_type = true;\r\n $mimes = false;\r\n\r\n // A correct MIME type will pass this test. Override $mimes or use the upload_mimes filter.\r\n $wp_filetype = wp_check_filetype( $file['name'], $mimes );\r\n extract( $wp_filetype );\r\n if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) ) return wp_handle_upload_error( $file, __( 'File type does not meet security guidelines. Try another.' ));\r\n if ( !$ext ) $ext = ltrim(strrchr($file['name'], '.'), '.');\r\n if ( !$type ) $type = $file['type'];\r\n\r\n // A writable uploads dir will pass this test. Again, there's no point overriding this one.\r\n if ( ! isset( $dir) ) return wp_handle_upload_error( $file, __('Source upload directory is not set') );\r\n\r\n $filename = wp_unique_filename( $dir, $file['name'], null );\r\n\r\n // Move the file to the uploads dir\r\n $new_file = $dir . \"/$filename\";\r\n if ( false === @ move_uploaded_file( $file['tmp_name'], $new_file ) ) return wp_handle_upload_error( $file, sprintf( __('The uploaded file could not be moved to %s.' ), $dir ) );\r\n\r\n // Set correct file permissions\r\n $stat = stat( dirname( $new_file ));\r\n $perms = $stat['mode'] & 0000666;\r\n @ chmod( $new_file, 0766 /*$perms */);\r\n\r\n // Compute the URL\r\n $url = $url . \"/$filename\";\r\n\r\n return array( 'file' => $new_file, 'url' => $url, 'type' => $type ) ;\r\n }", "public function add(){\n\t\t\n\t\t// Open or create file\n\t\t$f = fopen($this->file, 'wb');\n\t\tfclose($f);\n\t}", "function addFile($file_name, $mime_type, $file, $comment) {\n global $pdo;\n $id = '';\n for ($i = 0; $i < 16; $i++) $id .= chr(rand(97, 122));\n $file = base64_encode($file);\n $statement = $pdo->prepare('INSERT INTO `file` (`sid`, `mime_type`, `file`, `name`, `comment`) VALUES (:sid, :mime_type, :file, :name, :comment)');\n $statement->bindParam(\":sid\", $id);\n $statement->bindParam(\":mime_type\", $mime_type);\n $statement->bindParam(\":file\", $file);\n $statement->bindParam(\":name\", $file_name);\n $statement->bindParam(\":comment\", $comment);\n $statement->execute();\n return getFileId($pdo->lastInsertId())['sid'];\n}", "private function add_file()\n {\n \t$helperPluginManager = $this->getServiceLocator();\n \t$serviceManager = $helperPluginManager->getServiceLocator();\n \t\n \t$file = $serviceManager->get('PM/Model/Files');\n \t\n \t$result = $file->getFileById($this->pk);\n \tif($result)\n \t{\n \t\tif($result['company_name'] != '' && $result['company_id'] && $result['company_id'] > 0)\n \t\t{\n \t\t\t$company_url = $this->view->url('companies/view', array('company_id' => $result['company_id']));\n \t\t\t$this->add_breadcrumb($company_url, $result['company_name']);\n \t\t}\n \t\t\n \t\tif($result['project_name'] != '' && $result['project_id'] && $result['project_id'] > 0)\n \t\t{ \t\t\n \t\t\t$project_url = $this->view->url('projects/view', array('project_id' => $result['project_id']));\n \t\t\t$this->add_breadcrumb($project_url, $result['project_name']);\n \t\t}\n \t\t\n \t\tif($result['task_name'] != '' && $result['task_id'] && $result['task_id'] > 0)\n \t\t{\n \t\t\t$task_url = $this->view->url('tasks/view', array('task_id' => $result['task_id']));\n \t\t\t$this->add_breadcrumb($task_url, $result['task_name']);\n \t\t}\n \t\t\n \t\t$file_url = $this->view->url('pm', array('module' => 'pm','controller' => 'files','action'=>'view', 'id' => $result['file_id']), null, TRUE);\n \t\t$this->add_breadcrumb($file_url, 'File: '.$result['name'], TRUE); \t\t\n \t}\n }", "function privAddFile($p_filedescr, &$p_header, &$p_options)\n {\n }", "public function url($file, $type = NULL);", "function upload_file($url, $file, $dir=\"uploaded_file\"){\n $path_part = pathinfo($file[\"name\"]);\n if(preg_match('#[\\x00-\\x1F\\x7F-\\x9F/\\\\\\\\]#', basename($file[\"name\"]))){\n return false;\n }else{\n if($path_part['extension'] == \"json\" || $path_part['extension'] == \"xml\"){\n $path_file = __DIR__.\"/\".$dir.\"/\".basename($file[\"name\"]);\n if(file_exists($path_file)){\n unlink($path_file);\n }\n\n $path_file = __DIR__.\"/\".$dir.\"/\".basename($file[\"name\"]);\n\n if(move_uploaded_file($file[\"tmp_name\"], $path_file)){\n return true;\n }\n }\n return false;\n }\n}", "public function testIsVendorFileThrowsExceptionIfNoValidFileReferenceIsProvided()\n {\n $this->expectException('InvalidArgumentException');\n VendorResources::isVendorFile(__DIR__ . '/this/files/does/not/exist');\n }", "public function testAddPackingPlanFile()\n {\n }", "public function attach_file($file){\n\t\t\t//perform error checking on form parameters.\n\t\t\tif(!$file || empty($file) || !is_array($file)){\n\t\t\t\t$this->error[]=\"No File Was Uploaded!\";\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telseif($file[\"error\"]!=0){\n\t\t\t\t$this->error[]=$this->upload_errors[$file[\"error\"]];\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//setting object attributes to form params.\n\t\t\t\t$this->temp_path=$file[\"tmp_name\"];\n\t\t\t\t$this->filename=basename($file[\"name\"]);\n\t\t\t\t$this->type=$file[\"type\"];\n\t\t\t\t$this->size=$file[\"size\"];\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}", "public function uploadFile($adapter)\n {\n }", "public function testInboundDocumentDocumentFile()\n {\n }", "public function testGetVendorComplianceSurveyById()\n {\n }", "public function addDocument()\n\t{\n\t\t$id = $this->getId();\n\t\t$moduleName = $this->getModuleName();\n\n\t\tif (!$this->isNew) {\n\t\t\t$commessaPrec = $this->getPreviousValue('doccommessa');\n\t\t\tif($commessaPrec !== false) {\n\t\t\t\tunset($this->changes['doccommessa']);\n\t\t\t}\n\t\t}\n\t\tif (isset($_FILES['docfilename'])) {\n\t\t\t$file = $_FILES['docfilename'];\n\n\t\t\tif (empty($file['tmp_name'])) {\n\t\t\t\tunset($this->changes['docfilename']);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t$fileInstance = \\App\\Fields\\File::loadFromRequest($file);\n\t\t\tif (!$fileInstance->validate()) {\n\t\t\t\tunset($this->changes['docfilename']);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t$commessaId = $this->get('doccommessa');\n\t\t\tif (!empty($commessaId)) {\n\t\t\t\t$commessa = Vtiger_Record_Model::getInstanceById($commessaId, 'Commesse');\n\t\t\t\t$commessaPath = $commessa->get('nome');\n\t\t\t} else {\n\t\t\t\t$commessaPath = 'Condivisa';\n\t\t\t}\n\t\t\t$configDocPath = !empty(AppConfig::module($moduleName, 'DOC_PATH')) ? AppConfig::module($moduleName, 'DOC_PATH') : 'storage/Documenti';\n\t\t\t$uploadFilePath = ROOT_DIRECTORY . DIRECTORY_SEPARATOR . $configDocPath. DIRECTORY_SEPARATOR . $commessaPath;\n\t\t\tif (!is_dir($uploadFilePath)) { //create new folder\n\t\t\t\tif(!mkdir($uploadFilePath, 0744, true)) {\n\t\t\t\t\tunset($this->changes['docfilename']);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Verifico se esiste gia` un documento allegato\n\t\t\t$fileName = !empty($this->get('docfilename')) ? $this->get('docfilename') : false;\n\n\t\t\tif (empty($fileName)) {\n\t\t\t\t$fileName = trim(App\\Purifier::purify($fileInstance->name));\n\t\t\t\t$fileNameWithoutExt = trim(App\\Purifier::purify($fileInstance->getNameWithoutExtension()));\n\t\t\t\t$extension = pathinfo($fileName, PATHINFO_EXTENSION);\n\t\t\t\t$count = 0;\n\t\t\t\twhile (file_exists($uploadFilePath . DIRECTORY_SEPARATOR. $fileName)) {\n\t\t\t\t $count = $count + 1;\n\t\t\t\t $fileName = \"{$fileNameWithoutExt}_{$count}.{$extension}\";\n\t\t\t\t}\n\t\t\t\tif ($fileInstance->moveFile($uploadFilePath . DIRECTORY_SEPARATOR. $fileName)) {\n\t\t\t\t\t$this->set('docnome', $fileNameWithoutExt);\n\t\t\t\t\t$this->set('docfilename', $fileName);\n\t\t\t\t\t$this->set('doctype', $file['type']);\n\t\t\t\t\t$this->set('docpath', $uploadFilePath);\n\t\t\t\t\t$this->set('docsize', $file['size']);\n\t\t\t\t\t$this->set('docinuso', 0);\n\t\t\t\t\t$version = $this->get('docversione');\n\t\t\t\t\t$version +=1;\n\t\t\t\t\t$this->set('docversione',$version);\n\t\t\t\t} else {\n\t\t\t\t\t\\App\\Log::error('Error on the save attachment process.');\n\t\t\t\t\tunset($this->changes['docfilename']);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(!$this->validateUploadedFileName($fileName)) {\n\t\t\t\t\tunset($this->changes['docfilename']);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif ($fileInstance->moveFile($uploadFilePath . DIRECTORY_SEPARATOR. $fileName)) {\n\t\t\t\t\t$this->set('doctype', $file['type']);\n\t\t\t\t\t$this->set('docsize', $file['size']);\n\t\t\t\t\t$this->set('docinuso', 0);\n\t\t\t\t\t$version = $this->get('docversione');\n\t\t\t\t\t$version +=1;\n\t\t\t\t\t$this->set('docversione',$version);\n\t\t\t\t} else {\n\t\t\t\t\t\\App\\Log::error('Error on the save attachment process.');\n\t\t\t\t\tunset($this->changes['docfilename']);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\tunset($this->changes['docfilename']);\n\t\t\treturn false;\n\t\t}\n\n\t}", "public function testGetAttachment()\n {\n }", "public function upload_file() {\n $csv = $this->create_csv();\n\n if(!empty($csv)) {\n\n // upload to sharefile\n $this->token = $this->get_token();\n\n if($this->token) {\n $uri = \"https://\".$this->get_hostname().\"/sf/v3/Items(\".self::RECEIVED_PATIENT_FORMS_FOLDER_ID.\")/Upload\";\n //echo \"GET \".$uri.\"\\n\";\n\n $headers = $this->get_authorization_header();\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $uri);\n curl_setopt($ch, CURLOPT_TIMEOUT, 300);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch, CURLOPT_VERBOSE, FALSE);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n\n $curl_response = curl_exec($ch);\n\n $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n $curl_error_number = curl_errno($ch);\n $curl_error = curl_error($ch);\n\n $upload_config = json_decode($curl_response);\n\n if ($http_code == 200) {\n $post[\"File1\"] = new CurlFile($this->local_path, 'application/csv', $this->filename);\n curl_setopt ($ch, CURLOPT_URL, $upload_config->ChunkUri);\n curl_setopt ($ch, CURLOPT_POST, true);\n curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);\n curl_setopt ($ch, CURLOPT_VERBOSE, FALSE);\n curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt ($ch, CURLOPT_HEADER, true);\n\n $upload_response = curl_exec($ch);\n\n //echo \"<br /><br />\";\n //echo $upload_response.\"\\n\";\n\n curl_close($ch);\n\n header('Content-Type: application/json');\n echo json_encode(array(\"status\" => \"success\"));\n die();\n }\n\n }\n } else {\n echo json_encode(array(\"status\" => \"error\", \"error\" => \"CSV not created\"));\n die();\n }\n }", "public function addVendorComplianceSurveyFileByURLWithHttpInfo($body, $vendor_compliance_survey_id)\n {\n $returnType = '';\n $request = $this->addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "public function testInboundDocumentAttachment()\n {\n }", "function testForInterestFile(){\r\n\t\tif($this->accessType == \"api\"){\r\n\t\t\t//$interestFile = $this->interestFileName;\r\n\t\t\t$iData = explode(PHP_EOL, $this->interestFileData);\r\n\t\t\t$this->processInterestData($iData);\r\n\t\t}else{\r\n\t\t\t$iName = basename($_FILES[\"uploadFile\"][\"name\"][1]);\r\n\t\t\t$interestFile = \"/home/nobody/\".$_POST['clientId'].\"/\".$iName;\r\n\t\t\tif(file_exists($interestFile)){\r\n\t\t\t\t$thisInterestData = file($interestFile);\r\n\t\t\t\t$this->processInterestData($thisInterestData);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $this->exportData;\r\n\t}", "function addFile($path)\n {\n }", "public function testComAdobeCqSocialFilelibraryClientEndpointsFilelibraryDownloadGe()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.adobe.cq.social.filelibrary.client.endpoints.FilelibraryDownloadGetServlet';\n\n $crawler = $client->request('POST', $path);\n }", "public function addPostFile($name, $file, $content_type = null) {}", "public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }" ]
[ "0.64774317", "0.64061517", "0.62513965", "0.6089294", "0.6080073", "0.6044074", "0.6038264", "0.5878985", "0.5844206", "0.58036274", "0.5672194", "0.54980135", "0.5432378", "0.53772897", "0.53339636", "0.53320974", "0.5321754", "0.531954", "0.5303674", "0.5252528", "0.5241457", "0.522773", "0.5196118", "0.5187221", "0.5169956", "0.51592803", "0.5144927", "0.51069635", "0.5086967", "0.50483227", "0.5043413", "0.5040829", "0.5029181", "0.50235003", "0.50187284", "0.5015455", "0.50042355", "0.5003384", "0.50004375", "0.49720216", "0.49642956", "0.49639553", "0.4960044", "0.49536097", "0.49509946", "0.49451795", "0.49406365", "0.49331442", "0.4931896", "0.49314967", "0.4920183", "0.49184212", "0.4897654", "0.48960283", "0.48862454", "0.4885176", "0.4879247", "0.4869199", "0.4862809", "0.48613343", "0.48565128", "0.48507005", "0.4849559", "0.48467213", "0.48453572", "0.4843091", "0.48411417", "0.48241356", "0.4819014", "0.48170426", "0.4811415", "0.48051044", "0.4794152", "0.47913894", "0.47898245", "0.47857898", "0.47749436", "0.47712415", "0.4759973", "0.47545597", "0.47477192", "0.47402057", "0.4729021", "0.47282523", "0.47270066", "0.47216704", "0.47167695", "0.4713431", "0.4708855", "0.4704566", "0.47036195", "0.47035632", "0.47026202", "0.4700381", "0.4697031", "0.46950877", "0.4691872", "0.4685512", "0.4684767", "0.46816552" ]
0.77354425
0
Test case for addVendorComplianceSurveyTag Add new tags for a vendorComplianceSurvey..
public function testAddVendorComplianceSurveyTag() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetVendorComplianceSurveyTags()\n {\n }", "public function testDeleteVendorComplianceSurveyTag()\n {\n }", "public function testAddVendorComplianceSurvey()\n {\n }", "public function testAddVendorComplianceSurveyAudit()\n {\n }", "protected function addVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling addVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function test_addLegacyLowstockContactTag() {\n\n }", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function testAddVendorComplianceSurveyFile()\n {\n }", "public function testGetDuplicateVendorComplianceSurveyById()\n {\n }", "public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }", "public function testDeleteVendorComplianceSurvey()\n {\n }", "public function test_addCustomerTag() {\n\n }", "public function test_addExternalShipmentTag() {\n\n }", "public function test_addLowStockTag() {\n\n }", "protected function getVendorComplianceSurveyTagsRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyTags'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function test_addReplenishmentProcessTag() {\n\n }", "public function testGetVendorComplianceSurveyById()\n {\n }", "public function test_addOrderLineActivityTag() {\n\n }", "public function test_attachTagRequest() {\n\n }", "public function testGetVendorComplianceSurveyByFilter()\n {\n }", "public function testAddVendorComplianceSurveyFileByURL()\n {\n }", "public function testAddItemSubCategoryTag()\n {\n }", "public function test_addItemCategoryTag() {\n\n }", "public function test_createTagRequest() {\n\n }", "protected function deleteVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling deleteVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "private function addTag()\n {\n $params = array();\n $params['db_link'] = $this->db;\n $params['ticket_id'] = $_REQUEST['ticket_id'];\n \n $data = array();\n $tagTitle = stripslashes(trim($_REQUEST['tag']));\n $tag = Utils::sanitize($tagTitle);\n \n $Tickets = new Tickets($params);\n $Tickets->addTag($tag, $tagTitle);\n \n echo '[{\"isError\":0, \"message\":\"Successfully added tag\"}]';\n exit;\n }", "public function testAddPackingPlanTag()\n {\n }", "public function testGetVendorComplianceSurveyFiles()\n {\n }", "public function testAddLowStockTag()\n {\n }", "public function testAddExternalShipmentTag()\n {\n }", "function addeditvendor( $ketObj )\n{\n\t//vendor table array\n\t$strimp = createtable(\"ketechvp\");\n\t$VendorCityArray = explode( \"/\",$_POST['vcity'] );\n\t\n\t$VendorAreaArray = explode( \"/\",$_POST['varea'] );\n\t\n\t/*echo \"<pre>\";\n\tprint_r( $VendorCityArray );\n\tprint_r( $VendorAreaArray );\n\tdie();*/\n\t\n\t$ketechVendor['vname'] =\t$_POST['vname'];\n\t$ketechVendor['vaddress'] =\tstrtolower( $_POST['vaddress'] );\n\t$ketechVendor['vmail'] =\t$_POST['vemail'];\n\t$ketechVendor['vphone']\t =\t$_POST['vphone'];\n\t$ketechVendor['vcname'] =\t$_POST['vcname'];\n\t$ketechVendor['vcaddress'] =\t$_POST['vcaddress'];\n\t$ketechVendor['vcmail'] =\t$_POST['vcemail'];\n\t$ketechVendor['vcphone'] =\t$_POST['vcphone'];\n\t$ketechVendor['varea'] =\t$VendorAreaArray['1'];\n\t$ketechVendor['vareaid'] =\t$VendorAreaArray['0'];\n\t$ketechVendor['vcity'] =\t$VendorCityArray['1'];\n\t$ketechVendor['vcityid'] =\t$VendorCityArray['0'];\n\t$hidvid\t\t\t\t =\t $_POST['hidvid'];\n\t\n\t//usertable array\n\t$ketechUser['uname'] =\t$_POST['vname'];\n\t$ketechUser['uaddress'] =\tstrtolower( $_POST['vaddress'] );\n\t$ketechUser['uemail'] =\t$_POST['vemail'];\n\t$ketechUser['uphone']\t =\t$_POST['vphone'];\n\t$ketechUser['upassword'] = substr($_POST['vphone'],6);\n\t$ketechUser['urole'] =\t 'vendor';\n\t$ketechUser['ucity'] =\t $VendorCityArray['1'];\n\t$ketechUser['ucityid'] = $VendorCityArray['0'];\n\t$ketechUser['uarea'] =\t $VendorAreaArray['1'];\n\t$ketechUser['uareaid'] = $VendorAreaArray['0'];\n\t$hiduid\t =\t$_POST['hiduid'];\n\t\n\t\n\t//$allSet = $ketObj->runquery( \"SELECT\", \"*\", \"ketechprod\", array(), \"\" );\n\tif( isset( $hiduid ) && $hiduid > 0 && isset( $hiduid ) && $hiduid > 0 )\n\t{\n\t\t /*echo \"<pre>\";\n print_r( $_POST );\n die();*/\n\t\t$allSet = $ketObj->runquery( \"UPDATE\", \"\", \"ketechvendor\", $ketechVendor, \"WHERE id=\".$hidvid );\n\t\t$allSet = $ketObj->runquery( \"UPDATE\", \"\", \"ketechuser\", $ketechUser, \"WHERE id=\".$hiduid );\n\t\t\n\t}else\n\t{\n\t\t$allSet = $ketObj->runquery( \"INSERT\", \"*\", \"ketechuser\", $ketechUser );\n\t\t$ketechVendor['uid'] =\tmysql_insert_id();\n\t\t\n\t\t$allSet = $ketObj->runquery( \"INSERT\", \"*\", \"ketechvendor\", $ketechVendor );\n\t\t$subkey = \tmysql_insert_id();\n\t\t$querycreatetable = \"CREATE TABLE IF NOT EXISTS ketechvp_\".$subkey.\" (\".$strimp.\")\";\n\t\t$querycreatetable = \"CREATE TABLE IF NOT EXISTS ketechord_\".$subkey.\" (\".$strimp.\")\";\n\t\tmysql_query( $querycreatetable );\n\t\t/*echo $querycreatetable;\n\t\tdie();*/\n\t}\n\t\t\n\t header( \"Location: index.php?v=\".$_POST['c'].\"&f=\".$_POST['f'] );\n\n}", "public function test_getReplenishmentProcessTags() {\n\n }", "function addIndusTag($indus_tag_details){\n\t if ($this->db->insert('vc_indus_tag',$indus_tag_details))\n\t\t\t{ \n\t\t\treturn TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\treturn FALSE;\n\t\t\t}\n }", "public function testAddReplenishmentTag()\n {\n }", "public function test_getLegacyLowstockContactTags() {\n\n }", "public function testGetExternalShipmentTags()\n {\n }", "public function test_getExternalShipmentTags() {\n\n }", "public function test_addBillingCodeTypeTag() {\n\n }", "function survey_add($d){\n $url = $this->url.\"survey_add\";\n $data['case_id'] =$d['case_id'] ;\n $data['satisfactoriness'] =$d['satisfactoriness'] ;\n $data['satisfied_reason'] =$d['satisfied_reason'] ;\n $data['submitter'] =$d['submitter'] ;\n $this->setTransactionToLog(\"method:\".__METHOD__);\n $result = $this->_exec($url,$data);\n }", "function cmst_vendor_add() {\n\t\tglobal $conn;\n\n\t\t// Initialize table object\n\t\t$GLOBALS[\"mst_vendor\"] = new cmst_vendor();\n\n\t\t// Intialize page id (for backward compatibility)\n\t\tif (!defined(\"EW_PAGE_ID\"))\n\t\t\tdefine(\"EW_PAGE_ID\", 'add', TRUE);\n\n\t\t// Initialize table name (for backward compatibility)\n\t\tif (!defined(\"EW_TABLE_NAME\"))\n\t\t\tdefine(\"EW_TABLE_NAME\", 'mst_vendor', TRUE);\n\n\t\t// Open connection to the database\n\t\t$conn = ew_Connect();\n\t}", "public function testPostTag() : void\n {\n $request = [\n 'name' => static::$tagName\n ];\n\n $response = $this->actingAs(static::$user, 'api')\n ->post('/api/tag', $request);\n\n $response->assertStatus(201);\n\n $response->assertJsonStructure([\n 'id',\n 'name'\n ]);\n }", "public function testGetPackingPlanTags()\n {\n }", "public function testCreateSurvey0()\n {\n }", "public function testCreateSurvey0()\n {\n }", "public function test_getOrderLineActivityTags() {\n\n }", "public function test_addCartonActivityTag() {\n\n }", "public function testGetReplenishmentTags()\n {\n }", "public function testCreateSurveyQuestion0()\n {\n }", "public function testCreateSurveyQuestion0()\n {\n }", "public function testAddOrderTag()\n {\n }", "public function insert($vendor);", "function InfAddTag($inf_contact_id, $inf_tag_id) {\n\treturn Infusionsoft_ContactService::addToGroup($inf_contact_id, $inf_tag_id);\t\t\n}", "public function test_getTagRequest() {\n\n }", "function TestCase_add_tag($case_id, $tag_name) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestCase.add_tag', array(new xmlrpcval($case_id, \"int\"), new xmlrpcval($tag_name, \"string\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "public function addNewTag($tagName) {\n $sql = \"INSERT INTO t_tags VALUES(?)\";\n $select = $this->con->prepare($sql);\n $select->bind_param(\"s\", $tagName);\n $select->execute();\n $select->close();\n }", "public function addVendorComplianceSurvey($body)\n {\n list($response) = $this->addVendorComplianceSurveyWithHttpInfo($body);\n return $response;\n }", "private function _addTags()\n {\n $metadata = $this->getRecordMetadata();\n $this->_record->addTags($metadata[self::TAGS]);\n }", "public function test_can_vendor_create(){\n $data = [\n 'Name' => $this->faker->name,\n 'category' => $this->faker->category,\n ];\n\n $this->json('POST','/api/vendor_create',$data);\n }", "public function test_addLegacyLowstockContactAudit() {\n\n }", "public function addSuperTag(Kohana_Company $company,Kohana_SuperTag $tag) {\n\n $realTagName = str_replace( ' ', '_',strtolower($tag->getName() ) );\n $reqUrl = 'https://' . $this->_account . '.batchbook.com/service/companies/' . $company->getId() . '/super_tags/' . $realTagName . '.xml';\n error_log( 'requrl:' . $reqUrl );\n\n\n $httpClient = new Zend_Http_Client(\n $reqUrl \n );\n\n\n $paramsPut = array();\n\n $fields = $tag->getFields();\n\n foreach( $fields as $key => $value ) { \n \n //keys must be lower case and have spaces replaced with underscore \n $realKey = str_replace( ' ', '_',strtolower($key) ); \n $realValue = urlencode( $value ); \n\n error_log('realKey:' . $realKey );\n error_log('realValue:' . $realValue );\n\n $paramsPut['super_tag[' . strtolower($realKey) . ']' ] = $value; \n };\n\n $httpClient->setAuth($this->_token, 'x');\n $httpClient->setHeaders(\n Zend_Http_Client::CONTENT_TYPE,\n Zend_Http_Client::ENC_URLENCODED\n );\n $httpClient->setRawData(\n http_build_query($paramsPut, '', '&'),\n Zend_Http_Client::ENC_URLENCODED\n );\n $response = $httpClient->request(Zend_Http_Client::PUT);\n if (200 != $response->getStatus()) {\n //TODO: throw more specific exception\n throw new Exception('SuperTag \\'' . $tag->getName() . '\\' not added to Company with id=' . $company->getId() . \"\\n\" . $response->getMessage() . \"\\n\" .\n $response->getBody() . \"\\n\" . $httpClient->getLastRequest() );\n } \n\n }", "public function test_getItemCategoryTags() {\n\n }", "function addeditvendorProduct( $ketObj )\n{ \n\n\tif( isset( $_REQUEST['avid'] ) && $_REQUEST['avid'] > 0 ){\n\t\t\t$avid = $_REQUEST['avid'];\n\t\t\n\t}else{\n\t\t\t$avid = \"\";\n\t}\n\t\tif( isset( $_REQUEST['productCat'] ) && ($_REQUEST['productCat'] > 0 || $_REQUEST['productCat']=\"ap\" )){\n\t\t\t$productCat = $_REQUEST['productCat'];\n\t\t\t\n\t\t\n\t\t}else{\n\t\t\t$productCat = \"\";\n\t\t}\n\t\tif( isset( $_REQUEST['searchbyproduct'] ) && $_REQUEST['searchbyproduct'] != \"\" ){\n\t\t\t$searchbyproduct = $_REQUEST['searchbyproduct'];\n\t\t\t\n\t\t\n\t\t}else{\n\t\t\t$searchbyproduct = \"\";\n\t\t}if( isset( $_REQUEST['searchp'] ) && $_REQUEST['searchp'] != \"\" ){\n\t\t\t$searchp = $_REQUEST['searchp'];\n\t\t\t\n\t\t\n\t\t}else{\n\t\t\t$searchp = \"\";\n\t\t}if( isset( $_REQUEST['buscatidS'] ) && $_REQUEST['buscatidS'] != \"\" ){\n\t\t\t$buscatidS = $_REQUEST['buscatidS'];\n\t\t}else{\n\t\t\t$buscatidS = $_REQUEST['buscatidS'];\n\t\t}if( isset( $_REQUEST['admin_approval'] ) && $_REQUEST['admin_approval'] != \"\" ){\n\t\t\t$admin_approval = $_REQUEST['admin_approval'];\n\t\t}else{\n\t\t\t$admin_approval = \"\";\n\t\t}\n\t\n $Cattext = \"\";\n $busCat = \"\";\n\tif( isset( $_POST['Catsecond'] ) && is_array( $_POST['Catsecond'] ) && count( $_POST['Catsecond'] ) > 0 )\n\t{\n\t\t\n\t\t$subCattext = $_POST['Catsecond'];\n\t\t\n\t\tforeach( $subCattext as $sub )\n\t\t{\n\t\t\t$Cattext = $Cattext.\"*\".$sub.\"*,\";\n\t\t\t$busCat = $sub;\n\t\t}\n\t\t\n}else {\n\t\t\t$Cattext = $_POST['sub_cat_text'];\n\t\t\t$busCat = $_POST['b_cat'];\n\t\n\t\n\t}\n\t\n\tif( isset( $_POST['productCat'] ) && $_POST['productCat'] > 0 ){ \n\t\t$parent_cat = $_POST['productCat'];\n\t}else {\n\t\t\t$parent_cat = $_POST['parent_cat'];\n\t\n\t}\n\t\n\tif( isset( $_POST['f_product'] ) && $_POST['f_product'] > 0 ){\n\t\t\t$mpq_fp = $_POST['mpq_fp'];\n\t\n\t}else {\n\t\t\t$mpq_fp = 1;\n\t\n\t}\n \n\tif( isset( $_POST['product'] ) && $_POST['product'] != \"\") { $pide = $_POST['product'];}else{$pide = $_POST['pide']; }\n\t$ketechVendorP['vid'] = $_POST['vid'];\n\t$ketechVendorP['b_cat'] = $busCat;\n\t$ketechVendorP['p_cat'] = $parent_cat;\n\t$ketechVendorP['sub_cat_text'] = $Cattext;\n\t$ketechVendorP['pid'] = $pide;\n\tif( isset( $_POST['modbasep']) && isset( $_POST['modsellp']) )\n\t{\n\t\t$ketechVendorP['modify_baseprice'] = \"\";\n\t $ketechVendorP['modify_sellprice'] = \"\";\n\t\t$ketechVendorP['admin_approval'] = 0;\n\t}\n\t$ketechVendorP['baseprice'] = $_POST['baseprice'];\n\t$ketechVendorP['sellprice'] = $_POST['sellprice'];\n\t$ketechVendorP['f_product'] = $_POST['f_product'];\n\t$ketechVendorP['mpq_fp'] = $mpq_fp;\n\t$ketechVendorP['stock'] = $_POST['stock'];\n\t$ketechVendorP['status'] =\t$_POST['status'];\n\t$ketechVendorP['max_buy_limit'] =\t$_POST['mblpq'];\n\t$hidcid\t\t\t\t =\t $_POST['hidcid'];\n\t\n // echo \"<pre>\";\n // print_r( $_POST );\n //die();\n\t\n\t//$allSet = $ketObj->runquery( \"SELECT\", \"*\", \"ketechprod\", array(), \"\" );\n\tif( isset( $hidcid ) && $hidcid > 0 )\n\t{\n\t\t$allSet = $ketObj->runquery( \"UPDATE\", \"\", \"ketechvp_\".$_POST['hidchild'].\"\", $ketechVendorP, \"WHERE id=\".$hidcid );\n\t}else\n\t{\n\t\t$allSet = $ketObj->runquery( \"INSERT\", \"*\", \"ketechvp_\".$_POST['hidchild'].\"\", $ketechVendorP );\n\t}\n\tif( isset( $_POST['modbasep']) && isset( $_POST['modsellp']) )\n\t {\n\t\t\t\n\t\t\theader( \"Location: index.php?v=\".$_POST['v'].\"&f=\".$_POST['f'].\"&vid=\".$ketechVendorP['vid'].\"&avid=\".$avid.\"&productCat=\".$productCat.\"&searchbyproduct=\".$searchbyproduct.\"&searchp=\".$searchp.\"&buscatid=\".$buscatidS.\"&admin_approval=y\" );\n\t\t}else{\n\t\t\t\theader( \"Location: index.php?v=\".$_POST['v'].\"&f=\".$_POST['f'].\"&vid=\".$ketechVendorP['vid'].\"&avid=\".$avid.\"&productCat=\".$productCat.\"&searchbyproduct=\".$searchbyproduct.\"&searchp=\".$searchp.\"&buscatid=\".$buscatidS.\"&admin_approval=\".$admin_approval.\"\" );\n\t\t}\n}", "public function test_getCustomerTags() {\n\n }", "public function test_listTagsRequest() {\n\n }", "function addPersonalityTag($personality_tag_details){\n\t if ($this->db->insert('vc_personality_tag',$personality_tag_details))\n\t\t\t{ \n\t\t\treturn TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\treturn FALSE;\n\t\t\t}\n }", "private function processTags($string, Question $question)\n {\n $string = preg_replace(\"/[^a-zA-Z0-9]/\", \" \", $string);\n $string = preg_replace('/\\s+/', ' ', $string);\n $string = strtolower($string);\n\n $tags = explode(' ', $string);\n $em = $this->getDoctrine()->getManager();\n $i = 0;\n\n foreach($question->getTags() as $tag)\n $question->removeTag($tag);\n $em->persist($question);\n $em->flush();\n\n\n foreach($tags as $tagName)\n {\n if(++$i > 5) break;\n $res = $this->getDoctrine()->getRepository('AppBundle:Tag')->findBy(['name' => $tagName]);\n if(empty(trim($tagName))) break;\n if(empty($res)) {\n $tag = new Tag();\n $tag->setName($tagName);\n $em->persist($tag);\n $em->flush();\n }\n else {\n $tag = $res[0];\n }\n if($question->getTags()->contains($tag)) break;\n $question->addTag($tag);\n $em->persist($question);\n $em->flush();\n }\n }", "public function testTags()\n\t{\n\t\t$this->call('GET', '/api/tags');\n\t}", "protected function addTags ($tagsToAdd, $objectType, $partnerId)\r\n\t{\r\n\t \r\n\t foreach ($tagsToAdd as $tagToAdd)\r\n\t {\r\n\t if (strlen($tagToAdd) >= TagSearchPlugin::MIN_TAG_SEARCH_LENGTH)\r\n\t {\r\n \t $tag = new Tag();\r\n \t $tag->setTag(trim($tagToAdd));\r\n \t $tag->setObjectType($objectType);\r\n \t $tag->setPartnerId($partnerId);\r\n \t $tag->save();\r\n\t }\r\n\t }\r\n\t}", "private function XML_addTestedVulnerabilities() {\n\n\t\t// Making the tested vulnerabilities xml block.\n\t\t$testedVulnerabilitiesEntity = $this->xmlHandler->createElement('testedvulnerabilities');\n\n\t\t// Making for all vulnerabilites its own xml block.\n\t\t// Form: <vulnerability security_level=SECURITY_LEVEL>VULNERABBILITY_NAME</vulnearbility>\n\t\tforeach($this->testedVulnerabilities as $vulnerabilityData) {\n\n\n\t\t\t$vulnerabilityEntity = $this->xmlHandler->createElement('vulnerability');\n\t\t\t$vulnerabilityEntity->appendChild($this->xmlHandler->createTextNode($vulnerabilityData['vulnerability']));\n\n\t\t\t$vulnerabilitySecurityLevelEntity = $this->xmlHandler->createAttribute('security_level');\n\t\t\t$vulnerabilitySecurityLevelEntity->appendChild($this->xmlHandler->createTextNode($vulnerabilityData['securityLevel']));\n\n\t\t\t$vulnerabilityEntity->appendChild($vulnerabilitySecurityLevelEntity);\n\n\t\t\t$testedVulnerabilitiesEntity->appendChild($vulnerabilityEntity);\n\t\t}\n\n\t\t// Appends the vulnerabilities xml block to the root xml-block.\n\t\t$this->xmlRoot->appendChild($testedVulnerabilitiesEntity);\n\t}", "public function frontendTagVerification($tags, $product)\n {\n if (is_string($tags))\n $tags = $this->_convertTagsStringToArray($tags);\n //Verification in \"My Recent tags\" area\n $this->addParameter('productName', $product);\n foreach ($tags as $tag) {\n $this->navigate('customer_account');\n $this->addParameter('tagName', $tag);\n $this->assertTrue($this->controlIsPresent('link', 'tag'), \"Cannot find tag with name: $tag\");\n $this->clickControl('link', 'tag');\n $this->assertTrue($this->controlIsPresent('pageelement', 'tag_name_box'), \"Cannot find tag $tag in My Tags\");\n $this->assertTrue($this->controlIsPresent('link', 'product_name'),\"Cannot find product $product tagged with $tag\");\n }\n //Verification in \"My Account -> My Tags\"\n foreach ($tags as $tag) {\n $this->navigate('my_account_my_tags');\n $this->addParameter('tagName', $tag);\n $this->assertTrue($this->controlIsPresent('link', 'tag_name'), \"Cannot find tag with name: $tag\");\n $this->clickControl('link', 'tag_name');\n $this->assertTrue($this->controlIsPresent('pageelement', 'tag_name_box'), \"Cannot find tag $tag in My Tags\");\n $this->assertTrue($this->controlIsPresent('link', 'product_name'),\"Cannot find product $product tagged with $tag\");\n }\n }", "public function testInsertValidTag() {\n\t\t// Count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"tag\");\n\n\t\t// Create a new tag and insert it into mySQL\n\t\t$tag = new Tag(null, $this->VALID_TAG_LABEL);\n\t\t$tag->insert($this->getPDO());\n\n\t\t//Grab the data from mySQL and check the fields against our expectations\n\t\t$pdoTag = Tag::getTagByTagId($this->getPDO(), $tag->getTagId());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"tag\"));\n\t\t$this->assertEquals($pdoTag->getTagLabel(), $this->VALID_TAG_LABEL);\n\t}", "function TestPlan_add_tag($plan_id, $tag_name) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestPlan.add_tag', array(new xmlrpcval($plan_id, \"int\"), new xmlrpcval($tag_name, \"string\")), \"array\");\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "public function testDeleteVendorComplianceSurveyFile()\n {\n }", "public function test_getLowStockTags() {\n\n }", "public function testGetLowStockTags()\n {\n }", "public function add_reseller_program_survey_question()\n {\n $this->loadModel('ResellerProgramSurveyQuestions');\n if (!$this->request->is('post')) {\n throw new MethodNotAllowedException(__('BAD_REQUEST'));\n }\n $resellerProgramSurveyQuestion=$this->request->data;\n $resellerProgramSurveyQuestion = $this->ResellerProgramSurveyQuestions->newEntity($resellerProgramSurveyQuestion);\n if ($this->ResellerProgramSurveyQuestions->save($resellerProgramSurveyQuestion)) {\n $this->set('resellerProgramSurveyQuestion', $resellerProgramSurveyQuestion);\n $this->set('response', ['status' => \"OK\"]);\n } else {\n throw new InternalErrorException(__('Internal Error'));\n }\n $data =array();\n $data['status']=true;\n $data['data']['id']=$resellerProgramSurveyQuestion->id;\n $this->set('response',$data);\n $this->set('_serialize', ['response']);\n }", "protected function addVendorComplianceSurveyAuditRequest($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyAudit'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_audit' is set\n if ($vendor_compliance_survey_audit === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_audit when calling addVendorComplianceSurveyAudit'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/audit/{vendorComplianceSurveyAudit}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_audit !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyAudit' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_audit),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function test_deleteLegacyLowstockContactTag() {\n\n }", "public function test_addLegacyLowstockContact() {\n\n }", "public function addTag($tag) {\n $this->init(); //it would actually work without it\n\n if (!in_array($tag,$this->tags)) {\n $tag = trim($tag);\n\n $this->tags['new'][] = $tag;\n return true;\n }\n\n return false;\n }", "public function add_tag(Request $request, $campaign_id, $tag_id)\n {\n\n if ($request->ajax()) {\n $campaign = Campaign::find($campaign_id);\n //dd($campaign);\n $tag_id = [$tag_id];\n if ($campaign->tags()->attach($tag_id)) {\n return 200;\n } else {\n return 500;\n }\n }\n }", "public function testAddItemSubCategoryAudit()\n {\n }", "public function testVenueSubmitSurvey()\n {\n $this->buildVenueSurvey();\n\n $venueG = $this->venueGroup;\n $venueQ = $this->venueQuestion;\n\n $response = $this->json('POST', 'survey/submit', [\n 'slot_id' => $this->slot->id,\n 'type' => Survey::TRAINING,\n 'survey' => [\n [\n 'survey_group_id' => $venueG->id,\n 'answers' => [\n [\n 'survey_question_id' => $venueQ->id,\n 'response' => 'a response'\n ]\n ]\n ],\n ]\n ]);\n\n $response->assertStatus(200);\n\n $this->assertDatabaseHas('survey_answer', [\n 'person_id' => $this->user->id,\n 'slot_id' => $this->slot->id,\n 'survey_question_id' => $venueQ->id,\n 'response' => 'a response'\n ]);\n }", "public function testGetAllValidTags() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"tag\");\n\t\t// create a new Tag and insert to into mySQL\n\t\t$tag = new Tag(null, $this->VALID_TAGCONTENT);\n\t\t$tag->insert($this->getPDO());\n\t\t// grab the data from mySQL and enforce the fields match our expectations\n\t\t$results = Tag::getAllTags($this->getPDO());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"tag\"));\n\t\t$this->assertCount(1, $results);\n\t\t\t\t// grab the result from the array and validate it\n\t\t$pdoTag = $results[0];\n\t\t\t\t$this->assertEquals($pdoTag->getTagName(), $this->VALID_TAGCONTENT);\n\t}", "function action_attach_tags_validate( $p_bug_id ) {\n\t\tglobal $g_action_attach_tags_valid;\n\t\tif ( !isset( $g_action_attach_tags_valid ) ) {\n\t\t\t$f_tag_string = gpc_get_string( 'tag_string' );\n\t\t\t$f_tag_select = gpc_get_string( 'tag_select' );\n\n\t\t\tglobal $g_action_attach_tags_attach, $g_action_attach_tags_create, $g_action_attach_tags_failed;\n\t\t\t$g_action_attach_tags_attach = array();\n\t\t\t$g_action_attach_tags_create = array();\n\t\t\t$g_action_attach_tags_failed = array();\n\n\t\t\t$t_tags = tag_parse_string( $f_tag_string );\n\t\t\t$t_can_attach = access_has_bug_level( config_get( 'tag_attach_threshold' ), $p_bug_id );\n\t\t\t$t_can_create = access_has_global_level( config_get( 'tag_create_threshold' ) );\n\n\t\t\tforeach ( $t_tags as $t_tag_row ) {\n\t\t\t\tif ( -1 == $t_tag_row['id'] ) {\n\t\t\t\t\tif ( $t_can_create && $t_can_attach ) {\n\t\t\t\t\t\t$g_action_attach_tags_create[] = $t_tag_row;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$g_action_attach_tags_failed[] = $t_tag_row;\n\t\t\t\t\t}\n\t\t\t\t} else if ( -2 == $t_tag_row['id'] ) {\n\t\t\t\t\t$g_action_attach_tags_failed[] = $t_tag_row;\n\t\t\t\t} else if ( $t_can_attach ) {\n\t\t\t\t\t$g_action_attach_tags_attach[] = $t_tag_row;\n\t\t\t\t} else {\n\t\t\t\t\t$g_action_attach_tags_failed[] = $t_tag_row;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( 0 < $f_tag_select && tag_exists( $f_tag_select ) ) {\n\t\t\t\tif ( $t_can_attach ) {\n\t\t\t\t\t$g_action_attach_tags_attach[] = tag_get( $f_tag_select );\n\t\t\t\t} else {\n\t\t\t\t\t$g_action_attach_tags_failed[] = tag_get( $f_tag_select );\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tglobal $g_action_attach_tags_attach, $g_action_attach_tags_create, $g_action_attach_tags_failed;\n\n\t\treturn true;\n\t}", "public function add()\n {\n\n //Log::write('debug',$this->request);\n\n $clientIdentifier = '1234567890';\n //$clientIdentifier = $this->request->query['client_id'];\n if(!$clientIdentifier){\n throw new UnauthorizedException('Client Identifier not found');\n }\n \n /*if(empty($data['email'])){\n throw new BadRequestException(__('Email is required','email'));\n }*/\n\n //$ref_code = 'ref12';\n //$ref_code = $this->request->query['ref_code'];\n /*validate vendor on basis of client identifier*/\n $this->loadModel('Vendors');\n $getVendorId = $this->Vendors->find()->where(['client_identifier'=>$clientIdentifier])->first()->id;\n if (!$getVendorId) {\n throw new UnauthorizedException('This Vendor is not linked to upwardly');\n }\n // Generate username _suggestUsername function\n // $first_name = $this->request->data()['first_name'];\n // $last_name = $this->request->data()['last_name'];\n // $this->request->data['username'] = $this->_suggestUsername($first_name.$last_name);\n\n // $this->request->data['username'] = $username;\n // Create vendor players data\n $this->request->data['vendor_players'][0]['vendor_id'] = $getVendorId;\n // $this->request->data['vendor_players'][0]['ref_code'] = $ref_code;\n $this->request->data['vendor_players'][0]['created'] = '2017-09-06 06:27:24';\n $this->request->data['vendor_players'][0]['modified'] = '2017-09-06 06:27:24';\n $player = $this->Players->newEntity();\n if ($this->request->is('post')) {\n $player = $this->Players->patchEntity($player, $this->request->getData(),['associated'=>['VendorPlayers']]);\n // pr($player); die('ssx');\n if ($this->Players->save($player,['associated'=>['VendorPlayers']])) {\n $data =array();\n $data['status']=true;\n $data['data'] = $player;\n $this->set('data',$data['data']);\n $this->set('status',$data['status']);\n $this->set('_serialize', ['status','data']);\n }\n }\n }", "public function addVendorComplianceSurveyTagAsync($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n return $this->addVendorComplianceSurveyTagAsyncWithHttpInfo($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function testReportsSkillv1reportsskillidbranches()\n {\n\n }", "public function test_addItemCategoryAudit() {\n\n }", "public function bhadd(){\n $this->autoRender = false;\n $this->BullhornConnection->BHConnect();\n $params = $this->request->data; \n if(!isset($params['candidate_id'])){\n echo json_encode(\n [\n 'status' => 0,\n 'message' => \"Candidate id is required!\"\n ]\n );\n exit;\n }\n if(isset($params['skill_ids']) && is_array($params['skill_ids'])){\n //pr($params);\n $skills = implode(',', $params['skill_ids']);\n $skillSetUpdate = \"\";\n list($categories,$skillsL,$catSkills) = $this->split_cat_skill($params['existingSkillSet']);\n $isDuplicated = array_count_values($skillsL);\n if(isset($params['existingSkillSet']) && isset($params['skillSet'])){\n $skillArr = array_filter(explode(',',$params['existingSkillSet']));\n $getIndex = array_search($params['skillSet'],$skillArr);\n //pr($skillArr);\n //echo $params['skillSet'];\n if($getIndex == false){\n $skillArr[] = $params['skillSet'];\n }\n\n $skillSetUpdate = implode(',',$skillArr);\n if(!isset($isDuplicated[$params['skill_ids'][0]])){\n $url = $_SESSION['BH']['restURL'] . '/entity/Candidate/'.$params['candidate_id'].'/primarySkills/'.$skills.'?BhRestToken=' . $_SESSION['BH']['restToken'];\n\n $post_params = json_encode([]);\n $req_method = 'PUT';\n $response = $this->BullhornCurl->curlFunction($url, $post_params, $req_method);\n }\n }\n /* if(isset($response['errors'])){ // if adding skill returns any errors\n echo json_encode([\n 'status' => 0,\n 'message' => $response \n ]); \n exit; \n }else{ */\n // $skillIds = []; \n $url = $_SESSION['BH']['restURL'] . '/entity/Candidate/' . $params['candidate_id'] . '?BhRestToken=' . $_SESSION['BH']['restToken'];\n\n $post_params = json_encode([\n 'id' => $params['candidate_id'],\n 'skillSet' => $skillSetUpdate\n ]);\n $req_method = 'POST';\n $response = $this->BullhornCurl->curlFunction($url, $post_params, $req_method);\n if(isset($response['data'])){\n list($categories,$skills,$catSkills) = $this->split_cat_skill($response['data']['skillSet']);\n /* foreach($response['data']['primarySkills']['data'] as $skill){\n $skillIds[] = $skill['id'];\n }*/\n if(empty($catSkills)){\n $result = $this->getSkills($skills); // returns duplicate skills with different category\n }else{\n $result = $this->getSkills($skills,'skill_id',$catSkills);\n }\n echo json_encode(\n [\n 'status' => 1,\n 'data' => isset($result['data'])?$result['data']:[],\n 'existingSkillSet' => $response['data']['skillSet'],\n ]\n );\n exit;\n }else{\n echo json_encode(\n [\n 'status' => 0,\n 'data' => $response\n ]\n );\n exit;\n }\n //}\n\n }else{\n echo json_encode(\n [\n 'status' => 0,\n 'message' => \"skill ids are required and also it need to be in array format!\"\n ]\n );\n exit;\n }\n }", "public function testGetAllValidTags() {\n\t\t// Count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"tag\");\n\n\t\t// Create a new tag and insert to into mySQL\n\t\t$tag = new Tag(null, $this->VALID_TAG_LABEL);\n\t\t$tag->insert($this->getPDO());\n\n\t\t// Grab the data from mySQL and enforce the fields match our expectations\n\t\t$results = Tag::getAllTags($this->getPDO());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"tag\"));\n\t\t$this->assertCount(1, $results);\n\t\t$this->assertContainsOnlyInstancesOf(\"Edu\\\\Cnm\\\\Brewcrew\\\\Tag\", $results);\n\n\t\t// Grab the result from the array and validate it\n\t\t$pdoTag = $results[0];\n\t\t$this->assertEquals($pdoTag->getTagLabel(), $this->VALID_TAG_LABEL);\n\t}", "public function testInsertValidTag() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"tag\");\n\n\t\t// create a new Tag and insert to into mySQL\n\t\t$tag = new Tag(null, $this->VALID_TAGCONTENT);\n\t\t$tag->insert($this->getPDO());\n\t\t// grab the data from mySQL and enforce the fields match our expectations\n\t\t$pdoTag = Tag::getTagByTagId($this->getPDO(), $tag->getTagId());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"tag\"));\n\t\t$this->assertEquals($pdoTag->getTagName($this->VALID_TAGCONTENT), $this->VALID_TAGCONTENT);\n\t}", "public function test_listBundlesForTagsRequest() {\n\n }", "public function testInsertBrandUsingPOST()\n {\n }", "public function testCreateSurveyQuestionChoice0()\n {\n }", "public function testCreateSurveyQuestionChoice0()\n {\n }", "public function add_tags() \n\t{\n\t\t$this->admin_header();\n\t\t\n\t\t//fetch the total number of categories\n\t\t$data['total_num_category'] = $this->Admin_model->fetch_all_rows('category');\n\t\t\n\t\t//fetch the total number of tags\n\t\t$data['total_num_tags'] = $this->Admin_model->fetch_all_rows('tags');\n\t\t\n\t\tif((isset($_POST) && (!empty($_POST)))){\n\t\t\tif ($this->form_validation->run('add_tags-form') === FALSE)\n\t\t\t{\n\t\t\t\t$this->add_tag_template('add_tag', $data);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif ($this->Admin_model->insert_tags() === TRUE) {\n\t\t\t\t\t$data['msg'] = '<div class=\"alert alert-success col-sm-offset-2\"><a href=\"#\" class=\"close\" data-dismiss=\"alert\" aria-label=\"close\">&times;</a>Tags Has Been Added Successfully.</div>';\n\t\t\n\t\t\t\t\t$this->add_tag_template('add_tag', $data);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data['msg'] = '<div class=\"alert alert-danger col-sm-offset-2\"><a href=\"#\" class=\"close\" data-dismiss=\"alert\" aria-label=\"close\">&times;</a>An Error Was Encountered While Adding Tags. Pls Try Again</div>';\n\t\t\t\t\t\n\t\t\t\t\t$this->add_tag_template('add_tag', $data);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t$this->add_tag_template('add_tag', $data);\n\t\t}\n\t}", "public function testComDayCqTaggingImplTagGarbageCollector()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.day.cq.tagging.impl.TagGarbageCollector';\n\n $crawler = $client->request('POST', $path);\n }", "function dynamicTagsMethod ($bean, $event, $arguments)\n {\n if ($bean->fetched_row['description'] !== $bean->description) {\n $link = \"tag_link\"; //name of relationship: bean to Tags\n $tags = [\"tag\"=> []]; //array for relating tags\n\n //retreive tags already related to the target record\n if ($bean->load_relationship($link)) {\n $relatedTags = $bean->$link->getBeans();\n if (!empty($relatedTags)) {\n\n //tag relationships cannot survive this hook\n //so to preserve already related tags, we must re-relate them\n foreach ($relatedTags as $relatedTag) {\n array_push($tags[tag],$relatedTag->name); \n }\n }\n }\n $desc = $bean->description;\n $desc = preg_replace(\"/\\r|\\n/\", \" \",$desc); //convert line breaks to spaces\n $descArray = [];\n $tagArray = [];\n $tagField = $bean->getTagField();\n $tagFieldProperties = $bean->field_defs[$tagField];\n $descArray = explode(\" \", $desc); //split description into array items at each space\n foreach ($descArray as $key => $descValue){\n if (substr($descValue, 0, 1) == '#') {\n $descValue = substr($descValue,1); \n array_push($tagArray,$descValue); //makes array of only those words beginning with hashtag\n foreach($tagArray as $tagName){\n $tagName = preg_replace('/[.,;:?!)}]/', '', $tagName); //removes punctuation from each word\n array_push($tags[tag],$tagName); //adds hashtag words as tags\n }\n }\n }\n\n //create and relate new and exiting tag records\n $SugarFieldTag = new SugarFieldTag();\n $SugarFieldTag->apiSave($bean, $tags, $tagField, $tagFieldProperties);\n }\n }", "public function testDeleteLowStockTag()\n {\n }" ]
[ "0.7272383", "0.684376", "0.6710105", "0.6561944", "0.63787377", "0.6318094", "0.6198338", "0.61687243", "0.6005345", "0.5990046", "0.5942052", "0.5940935", "0.5906524", "0.58989793", "0.58268875", "0.5817135", "0.5784253", "0.57697695", "0.5754871", "0.5754049", "0.5744009", "0.5737061", "0.57267195", "0.566082", "0.5628685", "0.5582454", "0.55750924", "0.5531544", "0.5488488", "0.5459753", "0.5452015", "0.5435302", "0.54230326", "0.5421529", "0.54156274", "0.5399301", "0.5362165", "0.5358364", "0.5321708", "0.5314062", "0.5311876", "0.5306801", "0.5300313", "0.5300313", "0.5294334", "0.52548075", "0.5250311", "0.52472997", "0.52472997", "0.52465665", "0.5245444", "0.52401125", "0.52138746", "0.52053297", "0.51908064", "0.51857245", "0.51695776", "0.5168325", "0.5162903", "0.511885", "0.5111658", "0.51107997", "0.5108479", "0.5099049", "0.50956243", "0.5075857", "0.5074086", "0.5055369", "0.50284404", "0.5027418", "0.50259984", "0.50193304", "0.50154936", "0.5006795", "0.5001111", "0.4967845", "0.49582165", "0.49569538", "0.4948552", "0.49402058", "0.4931501", "0.49267694", "0.49213615", "0.4911303", "0.49102223", "0.49024957", "0.49021623", "0.48933816", "0.4887076", "0.48863947", "0.4883871", "0.48799103", "0.48780236", "0.48753873", "0.48700482", "0.48700482", "0.48684344", "0.48597407", "0.4854046", "0.48514703" ]
0.7894823
0
Test case for deleteVendorComplianceSurvey Delete a vendorComplianceSurvey.
public function testDeleteVendorComplianceSurvey() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteVendorComplianceSurveyTag()\n {\n }", "protected function deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testDeleteVendorComplianceSurveyFile()\n {\n }", "public function testDeleteSurvey()\n {\n $survey = Survey::factory()->create();\n $surveyId = $survey->id;\n\n $response = $this->json('DELETE', \"survey/{$surveyId}\");\n\n $response->assertStatus(204);\n $this->assertDatabaseMissing('survey', ['id' => $surveyId]);\n }", "public function testDeleteSurvey0()\n {\n }", "public function testDeleteSurvey0()\n {\n }", "public function testDeleteSurveyQuestionChoice0()\n {\n }", "public function testDeleteSurveyQuestionChoice0()\n {\n }", "public function testUpdateVendorComplianceSurvey()\n {\n }", "protected function deleteVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling deleteVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testDeleteSurveyQuestion0()\n {\n }", "public function testDeleteSurveyQuestion0()\n {\n }", "function deleteSurveyRecord()\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_svy WHERE survey_id = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\n\t\t$result = $ilDB->queryF(\"SELECT questionblock_fi FROM svy_qblk_qst WHERE survey_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\t$questionblocks = array();\n\t\twhile ($row = $ilDB->fetchAssoc($result))\n\t\t{\n\t\t\tarray_push($questionblocks, $row[\"questionblock_fi\"]);\n\t\t}\n\t\tif (count($questionblocks))\n\t\t{\n\t\t\t$affectedRows = $ilDB->manipulate(\"DELETE FROM svy_qblk WHERE \" . $ilDB->in('questionblock_id', $questionblocks, false, 'integer'));\n\t\t}\n\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_qblk_qst WHERE survey_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\t$this->deleteAllUserData();\n\n\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_anonymous WHERE survey_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\t\n\t\t// delete export files\n\t\tinclude_once \"./Services/Utilities/classes/class.ilUtil.php\";\n\t\t$svy_data_dir = ilUtil::getDataDir().\"/svy_data\";\n\t\t$directory = $svy_data_dir.\"/svy_\".$this->getId();\n\t\tif (is_dir($directory))\n\t\t{\n\t\t\tinclude_once \"./Services/Utilities/classes/class.ilUtil.php\";\n\t\t\tilUtil::delDir($directory);\n\t\t}\n\n\t\tinclude_once(\"./Services/MediaObjects/classes/class.ilObjMediaObject.php\");\n\t\t$mobs = ilObjMediaObject::_getMobsOfObject(\"svy:html\", $this->getId());\n\t\t// remaining usages are not in text anymore -> delete them\n\t\t// and media objects (note: delete method of ilObjMediaObject\n\t\t// checks whether object is used in another context; if yes,\n\t\t// the object is not deleted!)\n\t\tforeach($mobs as $mob)\n\t\t{\n\t\t\tilObjMediaObject::_removeUsage($mob, \"svy:html\", $this->getId());\n\t\t\t$mob_obj =& new ilObjMediaObject($mob);\n\t\t\t$mob_obj->delete();\n\t\t}\n\t}", "public function destroy(ClientSurvey $clientSurvey)\n {\n //\n }", "public function delete($vendor_id);", "public function destroy(Survey $survey)\n {\n //\n }", "public function testDeleteSurveyGroup()\n {\n $surveyGroup = SurveyGroup::factory()->create();\n $surveyGroupId = $surveyGroup->id;\n\n $response = $this->json('DELETE', \"survey-group/{$surveyGroupId}\");\n\n $response->assertStatus(204);\n $this->assertDatabaseMissing('survey_group', [ 'id' => $surveyGroupId ]);\n }", "public function deleteVendorComplianceSurveyWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '';\n $request = $this->deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "public function testAddVendorComplianceSurvey()\n {\n }", "public function deleted(CustomerInquiry $customerInquiry)\n {\n\n }", "public function testGetVendorComplianceSurveyById()\n {\n }", "protected function deleteVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_id' is set\n if ($file_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_id !== null) {\n $resourcePath = str_replace(\n '{' . 'fileId' . '}',\n ObjectSerializer::toPathValue($file_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testDeletePromotionCampaignApplicationUsingDELETE()\n {\n }", "public function delete(SurveyService $surveyService, QuestionService $questionService)\n {\n $type = \\request('type', 'survey');\n $id = \\request('id', 0);\n if (0 == $id) {\n return $this->error('params error');\n }\n if ('survey' == $type) {\n $ret = $surveyService->delete($id);\n } else {\n $ret = $questionService->delete($id);\n }\n\n if (empty($ret)) {\n return $this->error('failed to delete it');\n }\n return $this->success('delete success');\n }", "public function testDeleteCampaignFromPromotionUsingDELETE()\n {\n }", "public function testGetDuplicateVendorComplianceSurveyById()\n {\n }", "public function destroy(Survey $survey)\n {\n $survey->delete();\n return Redirect::route('surveys');\n }", "function admin_delete_vendor($vendor_id = null){\n\t\t\n\t\t$this->layout = \"\";\n\t\t$this->autoRender = false;\n\t\t$vendor_id = DECRYPT_DATA($vendor_id);\n\t\tif(isset($vendor_id)){\n\t\t\t$this->Vendor->updateAll(array(\"Vendor.is_deleted\"=>\"'1'\"),array(\"Vendor.id\"=>$vendor_id));\n\t\t\tApp::import(\"Model\",\"Product\");\n\t\t\t$this->Product = new Product();\n\t\t\t$this->Product->updateAll(array(\"Product.is_deleted\"=>\"'1'\"),array(\"Product.vendor_id\"=>$vendor_id));\n\t\t\tApp::import(\"Model\",\"Coupon\");\n\t\t\t$this->Coupon = new Coupon();\n\t\t\t$this->Coupon->updateAll(array(\"Coupon.is_deleted\"=>\"'1'\"),array(\"Coupon.vendor_id\"=>$vendor_id));\n\t\t\t$this->Session->setFlash(RECORD_DELETED, 'message/green');\n\t\t}\n\t\t$this->redirect($this->referer());exit();\t\n\t}", "public function deleteSportsVenue($venue);", "protected function getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getDuplicateVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/duplicate/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function deleted(TechnicalVendorSchedule $technical_vendor_schedule)\n {\n //\n }", "public function testDeleteDiseaseModelCondition()\n {\n //$user = factory(User::class)->create();\n\n $condition = $this->diseaseModel->conditions()->create([\n 'disease_model_id' => $this->diseaseModel->id,\n 'clsf_weather_parameter' => ClsfWeatherParameters::Temperature,\n 'start_range' => 10,\n 'end_range' => 20,\n 'time' => 60\n ]);\n\n $this->seeInDatabase('disease_conditions', [\n 'id' => $condition->id,\n 'clsf_weather_parameter' => $condition->clsf_weather_parameter,\n 'start_range' => $condition->start_range,\n 'end_range' => $condition->end_range,\n 'time' => $condition->time\n ]);\n\n DiseaseCondition::find($condition->id)->delete();\n\n $this->notSeeInDatabase('disease_conditions', [\n 'id' => $condition->id,\n 'clsf_weather_parameter' => $condition->clsf_weather_parameter,\n 'start_range' => $condition->start_range,\n 'end_range' => $condition->end_range,\n 'time' => $condition->time\n ]);\n }", "public function testDelete()\n {\n\n // Create exhibits and items.\n $neatline1 = $this->_createNeatline('Test Exhibit 1', '', 'test-exhibit-1');\n $neatline2 = $this->_createNeatline('Test Exhibit 2', '', 'test-exhibit-2');\n $item1 = $this->_createItem();\n $item2 = $this->_createItem();\n\n // Create records.\n $record1 = new NeatlineDataRecord($item1, $neatline1);\n $record2 = new NeatlineDataRecord($item2, $neatline1);\n $record3 = new NeatlineDataRecord($item1, $neatline2);\n $record4 = new NeatlineDataRecord($item2, $neatline2);\n $record1->save();\n $record2->save();\n $record3->save();\n $record4->save();\n\n // 2 exhibits, 4 data records.\n $_exhibitsTable = $this->db->getTable('NeatlineExhibit');\n $_recordsTable = $this->db->getTable('NeatlineDataRecord');\n $this->assertEquals($_exhibitsTable->count(), 2);\n $this->assertEquals($_recordsTable->count(), 4);\n\n // Call delete.\n $neatline1->delete();\n\n // 1 exhibits, 2 data records.\n $this->assertEquals($_exhibitsTable->count(), 1);\n $this->assertEquals($_recordsTable->count(), 2);\n\n }", "public function delete(Datastore $db)\n {\n $stmt = $db->prepare('DELETE FROM tbl_survey WHERE col_uuid = :surveyUuid');\n $stmt->bindValue(':surveyUuid', $this->uuid, PDO::PARAM_STR);\n $db->execute($stmt);\n }", "public function testDeleteSuppliersUsingDELETE()\n {\n }", "public function test_deleteLegacyLowstockContact() {\n\n }", "public function delete_question(){\n $question_id = $this->input->post('question_id');\n $challenge_id = $this->input->post('challenge_id');\n\n $question = new stdClass();\n\n if($this->questionlib->isSafeToDelete($question_id) === true){\n $question->question_id = $question_id;\n\n $this->question_model->delete($question);\n $this->challenge_question_model->delete($challenge_id, $question_id);\n $out['deleted'] = true;\n }else{\n $out['message'] = \"Question have associate data, it can't be deleted\";\n }\n $this->output->set_output(json_encode($out));\n\n }", "public function deleted(OnlineInquiry $onlineInquiry)\n {\n //\n }", "public function delete($consultation_vp_id){\n\t\t$sql = 'DELETE FROM consultation_vp WHERE consultation_vp_id = ?';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t$sqlQuery->setNumber($consultation_vp_id);\n\t\treturn $this->executeUpdate($sqlQuery);\n\t}", "public function deleteVendorComplianceSurveyAsync($vendor_compliance_survey_id)\n {\n return $this->deleteVendorComplianceSurveyAsyncWithHttpInfo($vendor_compliance_survey_id)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function destroy(enquiryForm $enquiryForm)\n {\n //\n }", "public function deleted(InterviewQuestion $interviewQuestion): void\n {\n //\n }", "protected function getVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testValidateAndDelete() {\r\n\t\ttry {\r\n\t\t\t$postData = array();\r\n\t\t\t$this->ShopProductAttribute->validateAndDelete('invalidShopProductAttributeId', $postData);\r\n\t\t} catch (OutOfBoundsException $e) {\r\n\t\t\t$this->assertEqual($e->getMessage(), 'Invalid Shop Product Attribute');\r\n\t\t}\r\n\t\ttry {\r\n\t\t\t$postData = array(\r\n\t\t\t\t'ShopProductAttribute' => array(\r\n\t\t\t\t\t'confirm' => 0));\r\n\t\t\t$result = $this->ShopProductAttribute->validateAndDelete('shopproductattribute-1', $postData);\r\n\t\t} catch (Exception $e) {\r\n\t\t\t$this->assertEqual($e->getMessage(), 'You need to confirm to delete this Shop Product Attribute');\r\n\t\t}\r\n\r\n\t\t$postData = array(\r\n\t\t\t'ShopProductAttribute' => array(\r\n\t\t\t\t'confirm' => 1));\r\n\t\t$result = $this->ShopProductAttribute->validateAndDelete('shopproductattribute-1', $postData);\r\n\t\t$this->assertTrue($result);\r\n\t}", "public function testDeleteBrandUsingDELETE()\n {\n }", "public function deleteVendor() {\n try {\n if (!($this->vendor instanceof Base_Model_ObtorLib_App_Core_Catalog_Entity_Vendor)) {\n throw new Base_Model_ObtorLib_App_Core_Catalog_Exception(\" Vendor Entity not initialized\");\n } else {\n $objVendor = new Base_Model_ObtorLib_App_Core_Catalog_Dao_Vendor();\n $objVendor->vendor = $this->vendor;\n return $objVendor->deleteVendor();\n }\n } catch (Exception $ex) {\n throw new Base_Model_ObtorLib_App_Core_Catalog_Exception($ex);\n }\n }", "public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }", "public function testAddVendorComplianceSurveyFile()\n {\n }", "public function test_deleteLegacyLowstockContactTag() {\n\n }", "private function createDeleteForm(Survey $survey) {\n return $this->createFormBuilder(array(), array('csrf_token_id' => 'authenticate'))\n ->setAction($this->generateUrl('survey_delete', array('id' => $survey->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function testDeleteChallenge()\n {\n }", "public function deleted(KriteriaAHP $kriteriaAHP)\n {\n //\n }", "public function test_an_admin_can_destroy_a_role_competency()\n {\n $this->actingAs($this->admin);\n\n $roleCompetency = factory('App\\RoleCompetency')->create();\n\n $response = $this->delete(route('role_competencies.destroy', $roleCompetency->id));\n $response->assertRedirect();\n $this->assertDatabaseMissing('role_competencies', ['id' => $roleCompetency->id]);\n }", "function deleteSurveyCode($survey_code)\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\tif (strlen($survey_code) > 0)\n\t\t{\n\t\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_anonymous WHERE survey_fi = %s AND survey_key = %s\",\n\t\t\t\tarray('integer', 'text'),\n\t\t\t\tarray($this->getSurveyId(), $survey_code)\n\t\t\t);\n\t\t}\n\t}", "public function test_deleting_question() {\n global $DB;\n\n // create a user\n $user = $this->getDataGenerator()->create_user();\n\n // create a course\n $course = $this->getDataGenerator()->create_course();\n\n // create a course module\n $videoquanda = $this->getDataGenerator()->create_module('videoquanda', array(\n 'course' => $course->id\n ));\n\n $now = time();\n\n $this->loadDataSet($this->createArrayDataSet(array(\n 'videoquanda_questions' => array(\n array('id', 'instanceid', 'userid', 'timecreated', 'timemodified' ,'seconds', 'text'),\n array(1, $videoquanda->id, $user->id, $now, $now + 1, 2, 'dummy text')\n )\n )));\n\n // enrol the user on the course\n $this->getDataGenerator()->enrol_user($user->id, $course->id, $DB->get_field('role', 'id', array(\n 'shortname' => 'student',\n )));\n\n // login the user\n $this->setUser($user);\n\n $client = new Client($this->_app);\n $client->request('DELETE', '/api/v1/' . $videoquanda->id . '/questions/1');\n\n $this->assertEquals(204, $client->getResponse()->getStatusCode());\n $this->assertFalse($DB->record_exists('videoquanda_questions', array('instanceid' => $videoquanda->id)));\n }", "public function testDeleteReport() {\n $operator = $this->createOperator();\n $patient = $this->createPatient();\n $report = $this->createReport($patient);\n $this->actingAs($operator)->visit(\"dashboard\")->see(\"delete_$report->id\")\n ->press(\"delete_$report->id\")\n ->seePageIs(\"dashboard\")\n ->dontSee($patient->name)\n ->dontSee($report->report_name)\n ->dontSee(\"delete_$report->id\")\n ->dontSee($report->case_number);\n \n $this->deleteReport($report);\n $this->deleteUser($patient);\n $this->deleteUser($operator);\n }", "public function deleteAdditionalDesigner()\n { \n\t\tAditionalDesigner::find(Input::get('id'))->delete();\n\t\treturn Response::json(array('status' => 'deleted'),200);\n \n }", "public function deleteByCriterion(stubCriterion $criterion, stubBaseReflectionClass $entityClass);", "public function deleteById($inquiryId);", "public function testCompanyConfigurationsStatusesIdDelete()\n {\n\n }", "FUNCTION ServiceSurvey_remove_Survey( &$dbh,\n\t\t\t\t\t\t$aspid,\n\t\t\t\t\t\t$surveyid )\n\t{\n\t\tif ( ( $aspid == \"\" ) || ( $surveyid == \"\" ) )\n\t\t{\n\t\t\treturn false ;\n\t\t}\n\t\t$aspid = database_mysql_quote( $aspid ) ;\n\t\t$surveyid = database_mysql_quote( $surveyid ) ;\n\n\t\t$query = \"DELETE FROM chatsurveylogs WHERE aspID = $aspid AND surveyID = $surveyid\" ;\n\t\tdatabase_mysql_query( $dbh, $query ) ;\n\t\t$query = \"DELETE FROM chatsurveys WHERE aspID = $aspid AND surveyID = $surveyid\" ;\n\t\tdatabase_mysql_query( $dbh, $query ) ;\n\t\t$query = \"UPDATE chatrequestlogs SET surveyID = 0 WHERE surveyID = $surveyid AND aspID = $aspid\" ;\n\t\tdatabase_mysql_query( $dbh, $query ) ;\n\n\t\tif ( $dbh[ 'ok' ] )\n\t\t{\n\t\t\treturn true ;\n\t\t}\n\n\t\treturn false ;\n\t}", "public function Delete($surveyid)\n\t{\n\t\t$surveyid = (int)$surveyid;\n\t\t$prefix = $this->Db->TablePrefix;\n\n\t\t// First Delete all Widgets Associated with the form,\n\t\t$widgets = $this->getWidgets($surveyid);\n\t\tforeach ($widgets as $key=>$widget) {\n\t\t\t\t// for each widget delete all the fields related ..\n\t\t\t\t$query = \"DELETE FROM {$prefix}surveys_fields WHERE surveys_widget_id = {$widget['id']}\";\n\t\t\t\t$this->Db->Query($query);\n\t\t}\n\n\t\t// Delete the actual widget,\n\t\t$query = \"DELETE FROM {$prefix}surveys_widgets WHERE surveys_id = {$surveyid}\";\n\t\t$this->Db->Query($query);\n\n\t\t// Lastly delete the actual suvey\n\t\t$query = \"DELETE FROM {$prefix}surveys WHERE id = $surveyid\";\n\t\t$this->Db->Query($query);\n\n\t\t// Delete all the responses and response value as well..\n\t\t$query = \"DELETE sr, srv\n\t\t\t\t FROM {$prefix}surveys_response as sr, {$prefix}surveys_response_value as srv\n\t\t\t\t WHERE sr.id = srv.surveys_response_id and\n\t\t\t\t sr.surveys_id = {$surveyid}\";\n\n\n\t\t// Delete all the files uploaded from the survey folders..\n\t\t$survey_images_dir = TEMP_DIRECTORY . DIRECTORY_SEPARATOR . 'surveys' . DIRECTORY_SEPARATOR . $surveyid;\n\n\t\tif (is_dir($survey_images_dir)) {\n\t\t// Delete using our library file\n\t\t\t\t$dir = new IEM_FileSystem_Directory($survey_images_dir);\n\t\t\t\t$dir->delete();\n\t\t}\n\n\t\t$this->Db->Query($query);\n\t}", "public function destroy(CompanyUserVerification $companyUserVerification)\n {\n //\n }", "public function deleteVendorComplianceSurveyAsyncWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '';\n $request = $this->deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n return [null, $response->getStatusCode(), $response->getHeaders()];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "public function forceDeleted(CustomerInquiry $customerInquiry)\n {\n //\n }", "public function testMarketingCampaignsTypesIdSubTypesSubTypeIdDelete()\n {\n\n }", "public function deleting(Vendor $vendor)\n {\n $vendor->deleted_by = Auth::User()->id;\n\n //services\n foreach ($vendor->services()->get() as $service) {\n $service->vendor_id = null;\n $service->save();\n }\n\n //comments\n $vendor->comments()->each(function ($item) {\n $item->delete();\n });\n\n }", "public function deleteProgramDomainId();", "public function testWebinarPollDelete()\n {\n }", "public function testDeleteSupplierGroup()\n {\n }", "public function testDeleteValidAlertLevel() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"alertLevel\");\n\n\t\t// create a new Alert Level and insert to into mySQL\n\t\t$alertLevel = new AlertLevel (null, $this->VALID_alertCode, $this->VALID_alertFrequency, $this->VALID_alertPoint, $this->VALID_alertOperator);\n\t\t$alertLevel->insert($this->getPDO());\n\n\t\t// delete the Vendor from mySQL\n\t\t$this->assertSame($numRows + 1, $this->getConnection()->getRowCount(\"alertLevel\"));\n\t\t$alertLevel->delete($this->getPDO());\n\n\t\t// grab the data from mySQL and enforce the AlertLevel does not exist\n\t\t$pdoAlertLevel = AlertLevel::getAlertLevelByAlertId($this->getPDO(), $alertLevel->getalertId());\n\t\t$this->assertNull($pdoAlertLevel);\n\t\t$this->assertSame($numRows, $this->getConnection()->getRowCount(\"alertLevel\"));\n\t}", "public function testQuestionDeleteWithValidData() {\n $response = $this->get('question/' . $this->question->id . '/delete');\n $this->assertEquals('200', $response->foundation->getStatusCode());\n $this->assertEquals('general.permission', $response->content->view);\n }", "public function testDeletePurchase()\n {\n $headers = $this->authenticate();\n\n $response = $this->json('DELETE', '/api/user/products/battery-4', [], $headers);\n $response->assertStatus(200);\n }", "public function destroy(vehiclereport $vehiclereport)\n {\n //\n }", "public function deleteProcuct($productModel) {\n\n }", "function delete_certificates($agent, $player, $stock) {\n // Delete the exiting records\n $this->db->where('agent', $agent);\n $this->db->where('player', $player);\n $this->db->where('stock', $stock);\n\n $this->db->delete($this->_tableName);\n }", "public function testDeleteValidStrainReview() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"strainReview\");\n\n\t\t// create a new StrainReview and insert to into mySQL\n\t\t$strainReview = new StrainReview(null, $this->profile->getProfileId(), $this->strain->getstrainId(), $this->VALID_STRAINREVIEWDATETIME, $this->VALID_STRAINREVIEWTXT);\n\t\t$strainReview->insert($this->getPDO());\n\n\t\t// delete the StrainReview from mySQL\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"strainReview\"));\n\t\t$strainReview->delete($this->getPDO());\n\n\t\t// grab the data from mySQL and enforce the StrainReview does not exist\n\t\t$pdoStrainReview = StrainReview::getStrainReviewsByStrainReviewId($this->getPDO(), $strainReview->getStrainReviewId());\n\t\t$this->assertNull($pdoStrainReview);\n\t\t$this->assertEquals($numRows, $this->getConnection()->getRowCount(\"strainReview\"));\n\t}", "public function testGetVendorComplianceSurveyFiles()\n {\n }", "public function testDelete()\n {\n $this->clientAuthenticated->request('DELETE', '/invoice/delete/' . self::$objectId);\n $response = $this->clientAuthenticated->getResponse();\n $this->assertJsonResponse($response, 200);\n\n //Deletes physically the entity created by test\n $this->deleteEntity('Invoice', 'invoiceId', self::$objectId);\n }", "public function delete($Enterprise) { ; }", "public function testDeleteAuthorizationDivision()\n {\n }", "public function testAddVendorComplianceSurveyTag()\n {\n }", "public function destroy(StudentAnswerController $studentAnswer)\n {\n //\n }", "public function testDeleteSuccessForHr() {\n\t\t$userInfo = [\n\t\t\t'role' => USER_ROLE_USER | USER_ROLE_HUMAN_RESOURCES,\n\t\t\t'prefix' => 'hr'\n\t\t];\n\t\t$opt = [\n\t\t\t'method' => 'POST',\n\t\t];\n\t\t$this->applyUserInfo($userInfo);\n\t\t$this->generateMockedController();\n\t\t$url = '/hr/deferred/delete/3';\n\t\t$this->testAction($url, $opt);\n\t\t$this->checkFlashMessage(__('The deferred save has been deleted.'));\n\t\t$result = $this->Controller->Deferred->find('list', ['recursive' => -1]);\n\t\t$expected = [\n\t\t\t1 => '1',\n\t\t\t2 => '2',\n\t\t\t4 => '4',\n\t\t\t5 => '5',\n\t\t];\n\t\t$this->assertData($expected, $result);\n\t}", "public function execute()\n {\n $agreementModel = $this->_initBillingAgreement();\n\n if ($agreementModel) {\n try {\n $agreementModel->delete();\n $this->messageManager->addSuccessMessage(\n __('You deleted the billing agreement.')\n );\n $this->_redirect('paypal/*/');\n return;\n } catch (\\Magento\\Framework\\Exception\\LocalizedException $e) {\n $this->messageManager->addExceptionMessage(\n $e,\n $e->getMessage()\n );\n } catch (\\Exception $e) {\n $this->messageManager->addExceptionMessage(\n $e,\n __('We can\\'t delete the billing agreement.')\n );\n }\n $this->_redirect('paypal/*/view', ['_current' => true]);\n }\n $this->_redirect('paypal/*/');\n }", "public function sDeleteComparisons()\n {\n $this->productComparisons->sDeleteComparisons();\n }", "public function destroy($id_Vendor)\n {\n $vendorvoyage = Vendorvoyage::where('id_Vendor','=',$id_Vendor);\n $vendorvoyage->delete();\n return redirect(\"/vendor-voyage\");\n }", "public function testGetVendorComplianceSurveyByFilter()\n {\n }", "public function destroy(Question_Test $question_Test)\n {\n //\n }", "public function destroy(ContinuousAssessment $continuousAssessment)\n {\n //\n }", "function delete($id = null) {\n if (is_null($id)) { // check for a value in the id variable\n $this->Session->setFlash('Invalid id for survey', true, null, \"error\"); // send an error message\n $this->redirect(array('action'=>'index')); // go back to the index action\n }\n $i = $this->Survey->Respondent->Response->find('count', array('conditions' => array('survey_id' => $id)));\n if ($i > 0) {\n $this->Session->setFlash('A survey that has responses cannot be deleted. Please delete all survey responses first.', true, null, \"error\"); // send an error message\n $this->redirect(array('action'=>'index')); // go back to the index action\n }\n if ($this->Survey->delete($id)) { // delete the survey and return true if successful\n $this->Session->setFlash('Survey deleted', true, null, \"confirm\"); // send a confirmation message\n $this->redirect(array('action'=>'index')); // go back to the index view\n }\n // continue when the delete function returns false\n $this->Session->setFlash('Survey was not deleted', true, null, \"error\"); // send an error message\n $this->redirect(array('action' => 'index')); // go back to the index view\n }", "public function testWebinarDelete()\n {\n }", "public function testAddVendorComplianceSurveyAudit()\n {\n }", "public function testDeleteAuthorizationSubjectDivisionRole()\n {\n }", "public function testDeleteCertificate()\n {\n }", "public function testDeleteChallengeTemplate()\n {\n }", "public function testComDayCqWcmDesignimporterImplCanvasPageDeleteHandler()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.day.cq.wcm.designimporter.impl.CanvasPageDeleteHandler';\n\n $crawler = $client->request('POST', $path);\n }", "public function delete_survey($session_key, $sid)\n {\n if ($this->_checkSessionKey($session_key))\n {\n if (hasSurveyPermission($sid, 'survey', 'delete'))\n {\n Survey::model()->deleteAllByAttributes(array('sid' => $sid));\n rmdirr(Yii::app()->getConfig(\"uploaddir\") . '/surveys/' . $sid);\n return array('status' => 'OK');\n }\n else\n throw new Zend_XmlRpc_Server_Exception('No permission', 2);\n }\n }", "public function delete_post() {\n $this->form_validation->set_rules('SessionKey', 'SessionKey', 'trim|required|callback_validateSession');\n $this->form_validation->set_rules('ContestGUID', 'ContestGUID', 'trim|required|callback_validateEntityGUID[Contest,ContestID]|callback_validateAnyUserJoinedContest[delete]');\n $this->form_validation->validation($this); /* Run validation */\n\n /* Delete Contests Data */\n $this->SnakeDrafts_model->deleteContest($this->SessionUserID, $this->ContestID);\n $this->Return['Message'] = \"Contest deleted successfully.\";\n }", "public function destroy(VendorSubscriptionPlans $vendorSubscriptionPlan)\n {\n if ($vendorSubscriptionPlan->delete()){\n Session::flash('success','Vendor Subscription Plan Deleted');\n return redirect()->back();\n }else{\n Session::flash('error','Vendor Subscription Plan Not Deleted');\n return redirect()->back();\n }\n }" ]
[ "0.6932628", "0.6759162", "0.6747259", "0.64157975", "0.63229185", "0.63229185", "0.60964894", "0.60964894", "0.60822535", "0.6078156", "0.6064927", "0.6064927", "0.5869132", "0.5758861", "0.5694972", "0.5688069", "0.5595517", "0.5561817", "0.5528854", "0.5476757", "0.54456836", "0.54426533", "0.5435283", "0.53867465", "0.5377395", "0.53028786", "0.5279576", "0.5246026", "0.52156645", "0.52115995", "0.51666015", "0.509952", "0.50951713", "0.50879216", "0.505854", "0.505516", "0.5050708", "0.50324386", "0.5027166", "0.50190705", "0.5009635", "0.49979416", "0.4994433", "0.49927863", "0.4991631", "0.49763834", "0.49659893", "0.49489892", "0.49421003", "0.493747", "0.4930843", "0.49304223", "0.49289435", "0.4928097", "0.49132788", "0.49120852", "0.49115568", "0.49064055", "0.48995888", "0.48841694", "0.48813623", "0.48762146", "0.486991", "0.48679084", "0.4864024", "0.48603582", "0.48593524", "0.48578387", "0.4857453", "0.4857263", "0.4855178", "0.48550636", "0.48547873", "0.485398", "0.48520735", "0.48516896", "0.48347443", "0.48219666", "0.4816486", "0.4814443", "0.48133016", "0.48061538", "0.47962275", "0.47955796", "0.47850427", "0.4783862", "0.4778107", "0.47754833", "0.4761251", "0.4757143", "0.47571144", "0.4745955", "0.4744659", "0.47415712", "0.4740079", "0.4738734", "0.4735086", "0.47263074", "0.47235888", "0.47234747" ]
0.7542483
0
Test case for deleteVendorComplianceSurveyFile Delete a file for a vendorComplianceSurvey..
public function testDeleteVendorComplianceSurveyFile() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteVendorComplianceSurvey()\n {\n }", "public function testDeleteReplenishmentFile()\n {\n }", "public function testDeleteVendorComplianceSurveyTag()\n {\n }", "public function testDeleteExternalShipmentFile()\n {\n }", "public function testDeleteFile()\n {\n\n }", "public function testDeletePackingPlanFile()\n {\n }", "public function testDeleteFile()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testDeleteOrderFile()\n {\n }", "public function testGetVendorComplianceSurveyFiles()\n {\n }", "public function testDeleteLowStockFile()\n {\n }", "protected function deleteVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_id' is set\n if ($file_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_id !== null) {\n $resourcePath = str_replace(\n '{' . 'fileId' . '}',\n ObjectSerializer::toPathValue($file_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testDeleteSurvey0()\n {\n }", "public function testDeleteSurvey0()\n {\n }", "function deleteSurveyRecord()\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_svy WHERE survey_id = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\n\t\t$result = $ilDB->queryF(\"SELECT questionblock_fi FROM svy_qblk_qst WHERE survey_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\t$questionblocks = array();\n\t\twhile ($row = $ilDB->fetchAssoc($result))\n\t\t{\n\t\t\tarray_push($questionblocks, $row[\"questionblock_fi\"]);\n\t\t}\n\t\tif (count($questionblocks))\n\t\t{\n\t\t\t$affectedRows = $ilDB->manipulate(\"DELETE FROM svy_qblk WHERE \" . $ilDB->in('questionblock_id', $questionblocks, false, 'integer'));\n\t\t}\n\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_qblk_qst WHERE survey_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\t$this->deleteAllUserData();\n\n\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_anonymous WHERE survey_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\t\n\t\t// delete export files\n\t\tinclude_once \"./Services/Utilities/classes/class.ilUtil.php\";\n\t\t$svy_data_dir = ilUtil::getDataDir().\"/svy_data\";\n\t\t$directory = $svy_data_dir.\"/svy_\".$this->getId();\n\t\tif (is_dir($directory))\n\t\t{\n\t\t\tinclude_once \"./Services/Utilities/classes/class.ilUtil.php\";\n\t\t\tilUtil::delDir($directory);\n\t\t}\n\n\t\tinclude_once(\"./Services/MediaObjects/classes/class.ilObjMediaObject.php\");\n\t\t$mobs = ilObjMediaObject::_getMobsOfObject(\"svy:html\", $this->getId());\n\t\t// remaining usages are not in text anymore -> delete them\n\t\t// and media objects (note: delete method of ilObjMediaObject\n\t\t// checks whether object is used in another context; if yes,\n\t\t// the object is not deleted!)\n\t\tforeach($mobs as $mob)\n\t\t{\n\t\t\tilObjMediaObject::_removeUsage($mob, \"svy:html\", $this->getId());\n\t\t\t$mob_obj =& new ilObjMediaObject($mob);\n\t\t\t$mob_obj->delete();\n\t\t}\n\t}", "public function testAddVendorComplianceSurveyFile()\n {\n }", "public function testDeleteItemSubCategoryFile()\n {\n }", "function _webform_delete_file($data, $component) {\r\n // Delete an individual submission file.\r\n $filedata = unserialize($data['value']['0']);\r\n if (isset($filedata['filepath']) && is_file($filedata['filepath'])) {\r\n unlink($filedata['filepath']);\r\n db_query(\"DELETE FROM {files} WHERE filepath = '%s'\", $filedata['filepath']);\r\n }\r\n}", "public function testDeleteSurveyQuestion0()\n {\n }", "public function testDeleteSurveyQuestion0()\n {\n }", "public function deleteFile(){\n\t\t$db = $this->db;\n\t\t$id = $_GET[\"id\"];\n\t\t\n\t\t$file = $db->fetchRow($db->select()->from(array(\"tbf\"=>\"tb_applicant_files\"))->where(\"id = ?\", $id));\n\t\tif ($file){\n\t\t\tif ($file[\"userid\"]!=$_SESSION[\"userid\"]){\n\t\t\t\treturn array(\"success\"=>false);\n\t\t\t}\n\t\t\t//$db->delete(\"tb_applicant_files\", $db->quoteInto(\"id = ?\", $id));\n\t\t\t$db->update(\"tb_applicant_files\", array(\"is_deleted\" => 1), $db->quoteInto(\"id = ?\", $id));\n $db->delete(\"solr_candidates\", $db -> quoteInto(\"userid=?\",$_SESSION[\"userid\"]));\n\t\t\t\n\t\t\tglobal $base_api_url;\n\t\t\t\n\t\t\tfile_get_contents($base_api_url . \"/solr-index/sync-candidates/\");\n\t\t\t\n\t\t\tif (file_exists(getcwd().\"/../applicants_files/\".$file[\"name\"])){\n\t\t\t\tunlink(getcwd().\"/../applicants_files/\".$file[\"name\"]);\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfile_get_contents($base_api_url . \"/mongo-index/sync-candidates-files/?userid=\" . $_SESSION[\"userid\"]);\n\t\t\t\n\t\t\t\n\t\t\treturn array(\"success\"=>true);\n\t\t}else{\n\t\t\treturn array(\"success\"=>false);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public function deleteFile($adapter)\n {\n }", "public function delete($file) {\n\t}", "abstract function delete_file($filepath);", "public function testDeleteSurveyQuestionChoice0()\n {\n }", "public function testDeleteSurveyQuestionChoice0()\n {\n }", "public function delete_file(){\n if($this->file_name != 'sample.jpg'){\n unlink($this->dir_location . $this->file_name);\n }\n }", "function deleteFile() {\r\n\t\tif (file_exists($this->data[$this->alias]['path'])) {\r\n\t\t\tunlink($this->data[$this->alias]['path']);\r\n\t\t}\r\n\t}", "public function testAddVendorComplianceSurveyFileByURL()\n {\n }", "function cemhub_delete_file($file_name) {\n $successfully_deleted = FALSE;\n\n $file_details = cemhub_retrieve_file_details($file_name);\n if (!empty($file_details)) {\n $successfully_deleted = file_delete($file_details, TRUE);\n }\n else {\n $repository_path = cemhub_get_files_repository_path(TRUE);\n $successfully_deleted = file_unmanaged_delete($repository_path . '/' . $file_name);\n }\n\n if ($successfully_deleted) {\n watchdog('cemhub', 'The file \"' . $file_name . '\" was deleted successfully.');\n }\n else {\n watchdog('cemhub', 'It was not possible to delete file \"' . $file_name . '\", checks the Drupal file log to view more details.');\n }\n\n return $successfully_deleted;\n}", "public function delete_file(){\n\t\t$api_url \t= \"https://api002.backblazeb2.com\";\n\t\t$auth_token = \"4_002147cd01b5a680000000000_018d4c36_d47af5_acct_8SQ4r2LRCypwp1wl0rPo1ySwDm4=\"; \n\t\t$file_id \t= \"4_zd184771c8d50b17b65ba0618_f10273ca4a9b98700_d20190704_m095545_c002_v0001126_t0048\"; \n\t\t$file_name = \"main.html\"; \n\n\t\t$session = curl_init($api_url . \"/b2api/v2/b2_delete_file_version\");\n\t\n\t\t$data = array(\"fileId\" => $file_id, \"fileName\" => $file_name);\n\t\t$post_fields = json_encode($data);\n\t\tcurl_setopt($session, CURLOPT_POSTFIELDS, $post_fields); \n\n\t\t$headers = array();\n\t\t$headers[] = \"Authorization: \" . $auth_token;\n\t\tcurl_setopt($session, CURLOPT_HTTPHEADER, $headers); \n\n\t\tcurl_setopt($session, CURLOPT_POST, true); \n\t\tcurl_setopt($session, CURLOPT_RETURNTRANSFER, true); \n\t\t$server_output = curl_exec($session); \n\t\tcurl_close ($session); \n\t\techo ($server_output); \n\t}", "public function testDeleteAttachment()\n {\n }", "function languagelesson_delete_submitted_file($filerecord) {\n $fs = get_file_storage();\n $file = $fs->get_file_instance($filerecord);\n \n if ($file->delete()) {\n return true;\n } else {\n print_error('Cannot delete previously submitted file');\n }\n\n }", "protected function deleteProtocolFile() {}", "private function _deleteFile($fileResource)\n {\n $store = $this->_owApp->erfurt->getStore();\n\n // remove file from file system (silently)\n $pathHashed = $this->getFullPath($fileResource);\n if (is_readable($pathHashed)) {\n unlink($pathHashed);\n }\n\n // remove all statements from sysconfig\n $store->deleteMatchingStatements(\n (string)$this->_getConfigModelUri(),\n $fileResource,\n null,\n null\n );\n }", "abstract public function deleteFile(FileData $fileData);", "public function delete($filepath);", "function Trigger_FileDelete1(&$tNG) {\r\r\n $deleteObj = new tNG_FileDelete($tNG);\r\r\n $deleteObj->setFolder(\"../assets/images/magasins/\");\r\r\n $deleteObj->setDbFieldName(\"photo2\");\r\r\n return $deleteObj->Execute();\r\r\n}", "public function file_delete($filename);", "function DeleteUploadFile(){\n\n}", "public function test_deleteLegacyLowstockContact() {\n\n }", "public function deleteDocument() {\n $file = $this->getDocumentFile().$this->getAttribute('evidencias')[2];\n\n// check if file exists on server\n if (empty($file) || !file_exists($file)) {\n return false;\n }\n\n// check if uploaded file can be deleted on server\n if (!unlink($file)) {\n return false;\n }\n\n// if deletion successful, reset your file attributes\n $this->evidencias = null;\n\n return true;\n }", "function deleteFile($db, $strDetailID = \"\")\n{\n global $words;\n $bolNewData = true;\n if ($strDetailID != \"\") {\n $strSQL = \"SELECT * FROM hrd_training_request \";\n $strSQL .= \"WHERE id = '$strDetailID' \";\n $resDb = $db->execute($strSQL);\n if ($rowDb = $db->fetchrow($resDb)) {\n $strFile = $rowDb['doc'];\n if ($strFile != \"\") {\n if (file_exists(\"trainingdoc/\" . $strFile)) {\n unlink(\"trainingdoc/\" . $strFile);\n }\n $strSQL = \"UPDATE hrd_training_request SET doc = '' WHERE id = '$strDetailID' \";\n $resExec = $db->execute($strSQL);\n //writeLog(ACTIVITY_DELETE, MODULE_PAYROLL,\"file $strDetailID\",0);\n }\n }\n }\n return true;\n}", "public function testDeletePromotionCampaignApplicationUsingDELETE()\n {\n }", "function Trigger_FileDelete2(&$tNG) {\r\r\n $deleteObj = new tNG_FileDelete($tNG);\r\r\n $deleteObj->setFolder(\"../assets/images/magasins/\");\r\r\n $deleteObj->setDbFieldName(\"photo3\");\r\r\n return $deleteObj->Execute();\r\r\n}", "public function test_deleteLegacyLowstockContactTag() {\n\n }", "function DeleteFile()\n{\n\t$sFileUrl = '';\n\t\n\tif(isset($_REQUEST['file-path']) === false)\n\t{\n\t\techo '<fail>no file path</fail>';\n\t\treturn;\n\t}\n\t\n\t$sFileUrl = $_REQUEST['file-path']; \n\t\n\tif(file_exists($sFileUrl) === false)\n\t{\n\t\techo '<fail>file not exist</fail>';\n\t\treturn;\n\t}\n\t\n\t\n\t$bIsFileDelete = false; \n\t\n\tif(is_dir($sFileUrl) === true)\n\t{\n\t\t$bIsFileDelete = UnlinkRecursive($sFileUrl);\n\t} else\n\t{\n\t\t$bIsFileDelete = unlink($sFileUrl);\n\t}\n\t\n\tif($bIsFileDelete === true)\n\t{\n\t\tif(file_exists($sFileUrl) === false)\n\t\t{\n\t\t\techo '<correct>correct delete file</correct>';\n\t\t}\n\t} else\n\t{\n\t\techo '<fail>cant delete file</fail>';\n\t}\n\t\n\treturn;\n}", "public function testDeleteCampaignFromPromotionUsingDELETE()\n {\n }", "public function DeleteFile() {\n\n\t\tif ($this->parameter_check) {\n\n\t\t\t/* DATABASE CONNECTION */\n\t\t\t$db=$GLOBALS['db'];\n\n\t\t\t/* DESCRIPTION MUST ALWAYS COME FIRST BEFORE WE DELETE THE RECORDS */\n\t\t\t$description=GetColumnValue(\"filename\",\"document_files\",\"document_id\",$this->document_id,\"\"). \" - deleted\";\n\n\t\t\t/* LOG FIRST */\n\t\t\tLogDocumentFileHistory($this->GetColVal(\"filename\"),$this->GetColVal(\"category_id\"),$this->GetColVal(\"version_number\"),$description);\n\n\t\t\t$sql=\"DELETE FROM \".$GLOBALS['database_prefix'].\"document_files\n\t\t\t\t\t\tWHERE filename = '\".$this->GetColVal(\"filename\").\"'\n\t\t\t\t\t\t\";\n\t\t\t$result=$db->Query($sql);\n\t\t\tif ($db->AffectedRows($result) > 0) {\n\t\t\t\treturn True;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn False;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$this->Errors(\"Parameter check failed\");\n\t\t\treturn False;\n\t\t}\n\t}", "public function testDeleteChallengeTemplate()\n {\n }", "public function test_deleteExternalShipmentTag() {\n\n }", "public function testDeleteWhenDepotFileDeleted()\n {\n $services = $this->getApplication()->getServiceManager();\n // Override the service container to set depot_storage_path\n $config = $services->get('config');\n $config['depot_storage']['base_path'] = '//depot/swarm-attachments';\n $services->setService('config', $config);\n $depot = $services->get('depot_storage');\n $services->get('p4_admin')->setService('depot_storage', $depot);\n $attachment = new Attachment($this->p4);\n $attachment->set(\n array(\n 'name' => 'test.txt',\n 'size' => 4,\n 'type' => 'text/plain',\n )\n );\n\n $tempFile = tempnam(DATA_PATH, 'attachtest');\n file_put_contents($tempFile, 'test');\n\n $attachment->save($tempFile);\n\n $attachmentId = $attachment->getId();\n $attachment = Attachment::fetch($attachmentId, $this->p4);\n\n $fileSpec = $attachment->get('depotFile');\n\n // certain conditions might cause $attachment->delete() to fail unexpectedly. Here, we try to simulate one.\n // the call to $depot->delete() that is *inside* $attachment->delete() will fail, but failure\n // should be caught and ignored.\n $depot->delete($fileSpec);\n $attachment->delete();\n\n // then, when an attempt is made to fetch the attachment record, it shouldn't exist.\n // this verifies that the attachment records are deleted cleanly.\n $attachmentRefetch = false;\n try {\n $attachmentRefetch = Attachment::fetch($attachmentId, $this->p4);\n } catch (NotFoundException $e) {\n if ($e->getMessage() != 'Cannot fetch entry. Id does not exist.') {\n throw $e;\n }\n }\n\n $this->assertSame(false, $attachmentRefetch);\n }", "function Trigger_FileDelete(&$tNG) {\r\r\n $deleteObj = new tNG_FileDelete($tNG);\r\r\n $deleteObj->setFolder(\"../assets/images/magasins/\");\r\r\n $deleteObj->setDbFieldName(\"photo1\");\r\r\n return $deleteObj->Execute();\r\r\n}", "public function delete($filename);", "function configurationDeleteFile($fileToDelete){\n\n\t\tif (file_exists($_SERVER['DOCUMENT_ROOT'].'/uploads/' . $fileToDelete))\n\t\t\t{\n\t\t\tunlink($_SERVER['DOCUMENT_ROOT'].'/uploads/' . $fileToDelete);\n\t\t\t}\t\t\t\t\n\t}", "public function deleteFile($questionId) {\n $query = $this->Questions->Choices->find('all', [\n 'keyField' => 'id',\n 'valueField' => 'text'\n ])->where([\n 'question_id' => $questionId,\n 'text LIKE' => '%'. $_SERVER['SERVER_NAME'] .'%'\n ]);\n $choice = $query->first();\n if (!empty($choice)) {\n $imageInfo = pathinfo($choice->text);\n if (file_exists(WWW_ROOT . 'uploads/questions/' . $imageInfo['basename'])) {\n unlink(WWW_ROOT . 'uploads/questions/' . $imageInfo['basename']);\n }\n }\n }", "public function testDeleteSuppliersUsingDELETE()\n {\n }", "public function delete_file() {\n $post_data = $_POST;\n $where_cond = array(\n \"id\" => $post_data['id'],\n );\n $update_data = array(\n \"row_status\" => 0\n );\n $status = $this->fileupload_model->update_fileupload_data($where_cond, $update_data);\n if ($status) {\n echo json_encode(array(\n \"status\" => \"success\",\n \"message\" => \"File delted successfully.\"\n ));\n exit;\n }\n echo json_encode(array(\n \"status\" => \"success\",\n \"message\" => \"File deltion failed.\"\n ));\n exit;\n }", "public function test_deleteExternalShipment() {\n\n }", "public function delete_file($key)\n {\n }", "public function testDeleteChallenge()\n {\n }", "public function testCompanyManagementBackupsIdDelete()\n {\n\n }", "public function testDeleteBrandUsingDELETE()\n {\n }", "function file_deleteData($vPageID) {\n\tglobal $Auth;\n\t\n\t## multiclient\n\t$client_id = $Auth->auth[\"client_id\"];\n\n\t## data connection\n\t$db_connectionMain = new DB_Sql();\n\t$f = new file_object(); \n\t\n\t## first we need to get the files in order to delete them from the filesystem- then remove\n\t## them from the db\n\t$pageData = array();\n\tfile_getData($vPageID,$pageData);\n\n\tforeach($pageData as $current_file) {\n\t\t## remove the file\n\t\t$f->delete_file(MATRIX_UPLOADDIR_DOCS.$current_file['filename']);\n\t}\n\n\t## finally delete all files\n\t$query = \"DELETE FROM \".PAGE_FILE.\" WHERE page_id='$vPageID' and client_id='$client_id'\";\n\t$result_pointer = $db_connectionMain->query($query);\n}", "public function actionDeleteFile() \r\n {\r\n extract($_POST);\r\n $res=0;\r\n\r\n $res = FileMaster::model()->findByAttributes(array('FileID'=>$FileID));\r\n $pathToFile = Yii::app()->basePath.\"/../images/uploads/\";\r\n $fileToDelete = $res->Image;\r\n print \"path and file is\".$pathToFile.$fileToDelete;\r\n unlink($pathToFile.$fileToDelete) or die(\"File not deleted\");\r\n print $query = \"Delete From `filemaster` where `FileID`='$FileID'\";//AND LandID = '$LandID'\r\n $command =Yii::app()->db->createCommand($query);\r\n \r\n if($command->execute()) $res=1;\r\n print CJSON::encode($res);\r\n }", "public function testDeleteSurvey()\n {\n $survey = Survey::factory()->create();\n $surveyId = $survey->id;\n\n $response = $this->json('DELETE', \"survey/{$surveyId}\");\n\n $response->assertStatus(204);\n $this->assertDatabaseMissing('survey', ['id' => $surveyId]);\n }", "function filecabinet_delete_file($file_id, $min = 0) {\n // The passed $min parameter is the smallest count value that allows file deletion\n // if the file is not used, delete it (it may still be used in old revisions)\n $count = db_result(db_query(\"SELECT COUNT(afid) FROM {org_documents} WHERE afid = %d\", $file_id));\n if ($count <= $min) {\n $filepath = db_result(db_query(\"SELECT filepath FROM {files} WHERE fid = %d\", $file_id));\n if ($filepath) {\n file_delete($filepath);\n }\n }\n}", "public function testDeleteSupplierGroup()\n {\n }", "function Trigger_FileDelete(&$tNG) {\n $deleteObj = new tNG_FileDelete($tNG);\n $deleteObj->setFolder(\"../images/quangcao/\");\n $deleteObj->setDbFieldName(\"taptinquangcao\");\n return $deleteObj->Execute();\n}", "public function beforeDelete()\n {\n $fileService = $this->getCustomizationService();\n $fileService->delete($this);\n return parent::beforeDelete();\n }", "public function delete($file){\n\t\t\n\t\t//If the users file exists try to delete it\n\t\tif(file_exists($file))\n\t\t{\n\t\t\tunlink($file) or die($this->openFile(\"core/fragments/errors/error34.phtml\"));\n\t\t}\n\t}", "public function deleteFile($filename) {\r\n global $db;\r\n\r\n $userId= $this->userId;\r\n $trackingId = $this->trackingFormId;\r\n\r\n $basePath = FILEPATH . $userId. '/' . $trackingId;\r\n $filePath = $basePath . '/' . $filename;\r\n\r\n\r\n if(!isset($userId) || !isset($trackingId)) {\r\n throw new Exception(\"Unable to delete file \" . $filePath . \". Missing tracking form information.\");\r\n }\r\n\r\n\r\n $basePath = FILEPATH . $userId. '/' . $trackingId;\r\n $filePath = $basePath . '/' . $filename;\r\n\r\n $filePath = realpath($filePath);\r\n if(is_readable($filePath)){\r\n unlink($filePath);\r\n $sql = \"DELETE FROM `forms_tracking_files` WHERE `name` = '\" . $filename . \"' AND `trackingId` = \" . $trackingId;\r\n $db->Execute($sql);\r\n }\r\n\r\n $this->loadFilesFromDir($basePath); // refresh what files are associated with this trackingform\r\n }", "public function deleteAction() {\n $fileID = (int) $this->params()->fromRoute('id', 0);\n $request = $this->getRequest();\n\n if ($fileID and $request->isXmlHttpRequest()) {\n try {\n\n $file = $this->getFileTable()->getFile($fileID);\n $filePath = $this->getOptions()->getUploadFolderPath() . '/' . $file->url;\n\n if (file_exists($filePath)) {\n if (!unlink($filePath)) {\n throw new \\Exception('Could not delete file');\n }\n }\n\n $this->getFileTable()->deleteFile($fileID);\n\n echo json_encode(array('state' => true));\n exit();\n } catch (\\Exception $e) {\n echo json_encode(array('state' => false));\n exit();\n }\n }\n }", "public function testDeleteUserrecording()\n {\n }", "function delete() {\n\t\tif (!forge_check_perm ('tracker', $this->Artifact->ArtifactType->getID(), 'tech')) {\n\t\t\t$this->setPermissionDeniedError();\n\t\t\treturn false;\n\t\t}\n\t\t$res = db_query_params ('DELETE FROM artifact_file WHERE id=$1',\n\t\t\t\t\tarray ($this->getID())) ;\n\t\tif (!$res || db_affected_rows($res) < 1) {\n\t\t\t$this->setError('ArtifactFile: Unable to Delete');\n\t\t\treturn false;\n\t\t} else {\n\t\t\tArtifactStorage::instance()->delete($this->getID())->commit();\n\n\t\t\t$this->Artifact->addHistory('File Deleted',$this->getID().': '.$this->getName());\n\t\t\treturn true;\n\t\t}\n\t}", "public function executeDeletefile(sfWebRequest $request)\n {\n if (!$this->getUser()->getGuardUser()->getIsSuperAdmin())\n $this->redirect('ingreso');\n\n $archivo = Doctrine_Core::getTable('Actualizacionestrat')->find(array($request['id']));\n\n $archivo_nombre = sfConfig::get('app_pathfiles_folder').\"/../actualizacionestrat\".'/'.$archivo->getImagefile();\n\n if (file_exists($archivo_nombre)) unlink($archivo_nombre);\n\n $archivo->delete();\n\n return true;\n\n }", "public function testDeleteCertificate()\n {\n }", "public function delete($vendor_id);", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function delete() {\n\n\t \t if(!unlink($this->directory .'/' . $_FILES[$this->inputName]['name']))\n Log::debug('Upload::delete Failed to delete upload');\n else\n Log::debug('Upload::delete Delete successful');\n\t }", "public function test_deleteReplenishmentProcessTag() {\n\n }", "function delete_data($id, $qr_file)\n {\n /* Delete QR Code Image from Directory */\n unlink($qr_file);\n\n /* Delete QR Code from Database */\n $this->db->where('id', $id);\n $this->db->delete($this->tbl_qr);\n return ($this->db->affected_rows());\n }", "public function DeleteFile()\r\n\t{\r\n\t\t$queryDeleteFile = \"UPDATE files SET status=\\\"DELETED\\\" WHERE file_id=\".$this->fileId;\r\n\t\t$this->sqlDataBase->nonSelectQuery($queryDeleteFile);\r\n\t\tunlink(UPLOAD_PATH. DIRECTORY_SEPARATOR .$this->fileId);\r\n\t}", "public function deletefile($id)\n\t{\n\t\t//\n $paths = Config::get('uploads');\n\n $file = McFile::find($id);\n $product = ProductCategory::find(Input::get('product_category_id'));\n\n\n\n\n //$full = $filepath.\"/\".$file->file_name;\n //echo $full;\n\n //Delete from Files Table\n $file->delete();\n\n //Delete from Files/Product Table\n $product->files()->where('file_id','=',$id)->delete();\n\n //Delete Files\n foreach($paths as $path) {\n $filepath = $path .\"/\".$file->file_name;\n if(File::exists($filepath)) {\n\n File::delete($filepath);\n\n // echo \"Deleted: \".$filepath.\"<br>\";\n }\n }\n\n Session::flash('message', 'Successfully deleted files for ' .$product->title );\n\n return Redirect::to('admin/products/'.Input::get('product_category_id').'/files');\n\n\t}", "public function testDeletePackingPlan()\n {\n }", "protected function deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "private function delete_file($file){\n\t\t$fileLink = fopen($file,'w');\n\t\tfclose($fileLink);\n\t\tunlink($file);\n\t}", "public function testCompanyConfigurationsStatusesIdDelete()\n {\n\n }", "public function deleted(File $file)\n {\n //\n }", "public function testDeleteExternalShipment()\n {\n }", "function Trigger_FileDelete(&$tNG) {\n $deleteObj = new tNG_FileDelete($tNG);\n $deleteObj->setFolder(\"uploads/fotos/\");\n $deleteObj->setDbFieldName(\"foto1\");\n return $deleteObj->Execute();\n}", "function fileDelete(){\n\t\t$result = mysql_query(getFile($_GET['file']));\n\t\tif($row = mysql_fetch_assoc($result)) {\n\t\t\tgetFileGlobals($row);\n\t\t\tmysql_query(deleteObject($GLOBALS['objectId']));\n\t\t\tmysql_query(deleteFile($GLOBALS['fileId']));\n\t\t\tdie();\n\t\t}\n\t\theader('Location:' . fullURL(getLangVar(\"filesURL\")));\n\t}", "public function testDeleteFinancialStatementUsingDelete()\n {\n }", "public function deleteAsset($path_to_file)\n\t{\n\t\t$path_to_file = rawurlencode(urldecode($path_to_file));\n\t\t\n\t\t$url = \"http://{$this->wnServer}/webnative/portalDI?action=filemgr&filemgraction=delete&filename=\".$path_to_file;\n\t\t$result = json_decode($this->curlObj->fetch_url($url),true);\n \n\t\treturn $result[\"MSG\"];\n\t}", "public function testDeleteDocument()\n {\n }", "public function testDeleteChallengeActivityTemplate()\n {\n }", "public function deleteFile(){\r\n\t\t//Get the storage name\r\n\t\t$storage_name = $this->uri->segment(3);\r\n\r\n\t\t//Check if the file exists\r\n\t\tif(!$this->DataModel->fileExists($storage_name) == TRUE){\r\n\t\t\t//File doesn't exist\r\n\t\t\tredirect('dashboard');\r\n\t\t}\r\n\r\n\t\t//Check if the user has permission to delete the file\r\n\t\tif(!$this->DataModel->userPermission('edit', $storage_name, $this->authentication->uid)){\r\n\t\t\t//User doesn't has permission to edit / delete this file\r\n\t\t\tredirect('dashboard');\r\n\t\t}\r\n\r\n\t\t//Get information of file\r\n\t\t$file = $this->DataModel->fileInformation($storage_name);\r\n\r\n\t\t//Mark the file as deleted in the database so they get displayed in the trashcan\r\n\t\t$this->DataModel->fileIntoTrash($file['id']);\r\n\t\t$this->successMessage($this->lang->line('success_file_deleted'));\r\n\r\n\t\t//Check if the file was deleted by the original owner or by a user who has access\r\n\t\tif($this->authentication->uid == $file['user_id']){\r\n\t\t\tif($file['parent'] == 0 ){\r\n\t\t\t\tredirect('/dashboard');\r\n\t\t\t}else{\r\n\t\t\t\t//Get parent information\r\n\t\t\t\t$parent = $this->DataModel->getFolderInfo(array('id' => $file['parent']), $this->authentication->uid);\r\n\t\t\t\tredirect('folders/'.$parent['public_key']);\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t$parent = $this->DataModel->getFolderInfo(array('id' => $file['parent']));\r\n\t\t\tredirect('sharedFolder/'.$parent['public_key']);\r\n\t\t}\r\n\t}", "public function testDeleteExternalShipmentTag()\n {\n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "static public function deleteFile($file = false) {\n\n if ($file)\n unlink($file);\n else\n unlink($this->filePath);\n }", "function delete_file() {\n $is_logged_in = $this->common_lib->is_logged_in();\n if ($is_logged_in == FALSE) {\n\t\t\t$this->session->set_userdata('sess_post_login_redirect_url', current_url());\n if($this->data['is_admin'] === TRUE){\n redirect($this->router->directory.'admin/login');\n }else{\n redirect($this->router->directory.'user/login');\n }\n }\n\n $id = $this->input->get_post('id');\n $file_path = $this->input->get_post('file_path');\n if ($id) {\n $where_array = array('id' => $id);\n $res = $this->user_model->delete($where_array, 'uploads');\n if ($res) {\n $this->common_lib->unlink_file(array(FCPATH . $file_path));\n }\n echo json_encode(\"success\");\n } else {\n echo json_encode(\"error\");\n }\n }" ]
[ "0.7365383", "0.69776917", "0.6969207", "0.68709624", "0.6763314", "0.67562115", "0.6615763", "0.654256", "0.6489594", "0.6449828", "0.6433483", "0.63997024", "0.63997024", "0.63175905", "0.6317303", "0.6243808", "0.61395884", "0.61081845", "0.61081845", "0.6054983", "0.6025742", "0.6023213", "0.60138136", "0.6010102", "0.6010102", "0.6000354", "0.5993523", "0.5972774", "0.5924301", "0.5924002", "0.5918756", "0.5892356", "0.5884749", "0.587741", "0.5846116", "0.5843017", "0.580071", "0.57968736", "0.5781324", "0.576027", "0.5759571", "0.5752298", "0.5733274", "0.5729365", "0.57120866", "0.5707575", "0.5695876", "0.56955576", "0.56630766", "0.56599313", "0.56564194", "0.56530184", "0.564427", "0.561147", "0.56081784", "0.56073254", "0.5570223", "0.55662024", "0.55643153", "0.5559382", "0.5558173", "0.55550283", "0.5550784", "0.55399203", "0.55371565", "0.55328673", "0.55056727", "0.5486977", "0.5486088", "0.548403", "0.54830843", "0.54781526", "0.5474836", "0.54695255", "0.5458649", "0.54582673", "0.5456291", "0.54448056", "0.5439782", "0.543537", "0.5429634", "0.5408802", "0.53953123", "0.5393213", "0.5387165", "0.53862554", "0.538167", "0.5378186", "0.53706676", "0.5358913", "0.53566325", "0.5355283", "0.5353619", "0.5353345", "0.5347571", "0.5342805", "0.5337557", "0.5335217", "0.53344786", "0.53342503" ]
0.8609572
0
Test case for deleteVendorComplianceSurveyTag Delete a tag for a vendorComplianceSurvey..
public function testDeleteVendorComplianceSurveyTag() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteVendorComplianceSurvey()\n {\n }", "public function testDeleteReplenishmentTag()\n {\n }", "public function testDeleteVendorComplianceSurveyFile()\n {\n }", "public function test_deleteReplenishmentProcessTag() {\n\n }", "public function test_deleteLegacyLowstockContactTag() {\n\n }", "public function test_deleteExternalShipmentTag() {\n\n }", "public function testDeleteExternalShipmentTag()\n {\n }", "public function testDeletePackingPlanTag()\n {\n }", "protected function deleteVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling deleteVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testDeleteOrderTag()\n {\n }", "public function test_deleteCustomerTag() {\n\n }", "public function test_deleteLowStockTag() {\n\n }", "public function test_deleteTagRequest() {\n\n }", "public function testDeleteSurvey0()\n {\n }", "public function testDeleteSurvey0()\n {\n }", "public function test_deleteOrderLineActivityTag() {\n\n }", "public function testDeleteLowStockTag()\n {\n }", "public function test_deleteItemCategoryTag() {\n\n }", "public function testAddVendorComplianceSurveyTag()\n {\n }", "public function testDeleteSurveyQuestion0()\n {\n }", "public function testDeleteSurveyQuestion0()\n {\n }", "public function test_deleteBillingCodeTypeTag() {\n\n }", "public function testDeleteSurveyQuestionChoice0()\n {\n }", "public function testDeleteSurveyQuestionChoice0()\n {\n }", "public function testDeleteItemSubCategoryTag()\n {\n }", "public function testGetVendorComplianceSurveyTags()\n {\n }", "public function testDeleteTagAdmin(): void\n {\n // given\n $expectedStatusCode = 200;\n $adminUser = $this->createUser([User::ROLE_USER, User::ROLE_ADMIN]);\n $this->logIn($adminUser);\n\n $expectedTag = new Tag();\n $expectedTag->setName('Test Tag To Delete');\n $tagRepository = self::$container->get(TagRepository::class);\n $tagRepository->save($expectedTag);\n\n // when\n $crawler = $this->httpClient->request('GET', '/tag/'.$expectedTag->getId().'/delete');\n $resultStatusCode = $this->httpClient->getResponse()->getStatusCode();\n $form = $crawler->selectButton('usuń')->form();\n $this->httpClient->submit($form);\n $this->httpClient->followRedirect();\n\n // then\n $this->assertEquals($expectedStatusCode, $resultStatusCode);\n $this->assertStringContainsString('Usuwanie powiodło się', $this->httpClient->getResponse()->getContent());\n }", "public function test_deleteCartonActivityTag() {\n\n }", "public function testDeletePromotionCampaignApplicationUsingDELETE()\n {\n }", "public function delete($vendor_id);", "public function delete_tag($tag);", "public function test_detachTagRequest() {\n\n }", "public function testDeleted()\n {\n // Make a tag, then request it's deletion\n $tag = $this->resources->tag();\n $result = $this->writedown->getService('api')->tag()->delete($tag->id);\n\n // Attempt to grab the tag from the database\n $databaseResult = $this->writedown->getService('entityManager')\n ->getRepository('ByRobots\\WriteDown\\Database\\Entities\\Tag')\n ->findOneBy(['id' => $tag->id]);\n\n $this->assertTrue($result['success']);\n $this->assertNull($databaseResult);\n }", "public function testDeleteCampaignFromPromotionUsingDELETE()\n {\n }", "public function testDeleteSurvey()\n {\n $survey = Survey::factory()->create();\n $surveyId = $survey->id;\n\n $response = $this->json('DELETE', \"survey/{$surveyId}\");\n\n $response->assertStatus(204);\n $this->assertDatabaseMissing('survey', ['id' => $surveyId]);\n }", "public function testDeleteValidTag() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"tag\");\n\t\t// create a new Tag and insert to into mySQL\n\t\t$tag = new Tag(null, $this->VALID_TAGCONTENT);\n\t\t$tag->insert($this->getPDO());\n\t\t// delete the Tag from mySQL\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"tag\"));\n\t\t$tag->delete($this->getPDO());\n\t\t// grab the data from mySQL and enforce the Tag does not exist\n\t\t$pdoTag = Tag::getTagByTagId($this->getPDO(), $tag->getTagId());\n\t\t$this->assertNull($pdoTag);\n\t\t$this->assertEquals($numRows, $this->getConnection()->getRowCount(\"tag\"));\n\t}", "public function testDeleteBrandUsingDELETE()\n {\n }", "public function testDeleteValidTag() {\n\t\t// Count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"tag\");\n\n\t\t// Create a new tag and insert it into mySQL\n\t\t$tag = new Tag(null, $this->VALID_TAG_LABEL);\n\t\t$tag->insert($this->getPDO());\n\n\t\t// Delete the tag from mySQL\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"tag\"));\n\t\t$tag->delete($this->getPDO());\n\n\t\t// Grab the data from MySQL and enforce the tag does not exist\n\t\t$pdoTag = Tag::getTagByTagId($this->getPDO(), $tag->getTagId());\n\t\t$this->assertNull($pdoTag);\n\t\t$this->assertSame($numRows, $this->getConnection()->getRowCount(\"tag\"));\n\t}", "public function testDeleteBucketTagging()\n\t{\n\t\t$expectedResult = $this->commonDeleteTestOperations(\"?tagging\");\n\t\t$this->assertThat(\n\t\t\t$this->object->delete->deleteBucketTagging($this->options->get(\"testBucket\")),\n\t\t\t$this->equalTo($expectedResult)\n\t\t);\n\t}", "public function testDeleteInvalidTag() {\n\t\t// Create a tag and then try to delete it without inserting it into mySQL\n\t\t$tag = new Tag(null, $this->VALID_TAG_LABEL);\n\t\t$tag->delete($this->getPDO());\n\t}", "public function testDeleteProductUsingDELETE()\n {\n }", "public function test_deleteLegacyLowstockContact() {\n\n }", "public function testDeleteChallengeTemplate()\n {\n }", "public function testDeleteSupplierGroup()\n {\n }", "public function testCompanyConfigurationsStatusesIdDelete()\n {\n\n }", "public function testDeleteValidImageTag() {\n\t\t//Count the number of rows for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"imageTag\");\n\t\t$imageTag = new ImageTag($this->imageTagImage->getImageId(), $this->imageTagTag->getTagId());\n\t\t$imageTag->insert($this->getPDO());\n\n\t\t//Delete the ImageTag from mySQL\n\t\t$this->assertEquals($numRows+1, $this->getConnection()->getRowCount(\"imageTag\"));\n\t\t$imageTag->delete($this->getPDO());\n\n\t\t//Grab the data from mySQL to make sure it is really dead\n\t\t$pdoImageTag = ImageTag::getImageTagByImageIdAndTagId($this->getPDO(), $this->imageTagImage->getImageId(), $this->imageTagTag->getTagId());\n\t\t$this->assertNull($pdoImageTag);\n\t\t$this->assertEquals($numRows, $this->getConnection()->getRowCount(\"imageTag\"));\n\t}", "public function testMarketingCampaignsTypesIdSubTypesSubTypeIdDelete()\n {\n\n }", "public function testDeleteTagUser(): void\n {\n // given\n $expectedStatusCode = 302;\n $user = $this->createUser([User::ROLE_USER]);\n $this->logIn($user);\n\n $expectedTag = new Tag();\n $expectedTag->setName('Test Tag');\n $tagRepository = self::$container->get(TagRepository::class);\n $tagRepository->save($expectedTag);\n\n // when\n $this->httpClient->request('GET', '/tag/'.$expectedTag->getId().'/delete');\n $resultStatusCode = $this->httpClient->getResponse()->getStatusCode();\n\n // then\n $this->assertEquals($expectedStatusCode, $resultStatusCode);\n }", "public function testDeleteInvalidTag() {\n\t\t// create a Tag and try to delete it without actually inserting it\n\t\t$tag = new Tag(null, $this->VALID_TAGCONTENT);\n\t\t$tag->delete($this->getPDO());\n\t}", "public function testDeleteCategoryUsingDELETE()\n {\n }", "public function testDeleteSuppliersUsingDELETE()\n {\n }", "function deleteSurveyRecord()\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_svy WHERE survey_id = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\n\t\t$result = $ilDB->queryF(\"SELECT questionblock_fi FROM svy_qblk_qst WHERE survey_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\t$questionblocks = array();\n\t\twhile ($row = $ilDB->fetchAssoc($result))\n\t\t{\n\t\t\tarray_push($questionblocks, $row[\"questionblock_fi\"]);\n\t\t}\n\t\tif (count($questionblocks))\n\t\t{\n\t\t\t$affectedRows = $ilDB->manipulate(\"DELETE FROM svy_qblk WHERE \" . $ilDB->in('questionblock_id', $questionblocks, false, 'integer'));\n\t\t}\n\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_qblk_qst WHERE survey_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\t$this->deleteAllUserData();\n\n\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_anonymous WHERE survey_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\t\n\t\t// delete export files\n\t\tinclude_once \"./Services/Utilities/classes/class.ilUtil.php\";\n\t\t$svy_data_dir = ilUtil::getDataDir().\"/svy_data\";\n\t\t$directory = $svy_data_dir.\"/svy_\".$this->getId();\n\t\tif (is_dir($directory))\n\t\t{\n\t\t\tinclude_once \"./Services/Utilities/classes/class.ilUtil.php\";\n\t\t\tilUtil::delDir($directory);\n\t\t}\n\n\t\tinclude_once(\"./Services/MediaObjects/classes/class.ilObjMediaObject.php\");\n\t\t$mobs = ilObjMediaObject::_getMobsOfObject(\"svy:html\", $this->getId());\n\t\t// remaining usages are not in text anymore -> delete them\n\t\t// and media objects (note: delete method of ilObjMediaObject\n\t\t// checks whether object is used in another context; if yes,\n\t\t// the object is not deleted!)\n\t\tforeach($mobs as $mob)\n\t\t{\n\t\t\tilObjMediaObject::_removeUsage($mob, \"svy:html\", $this->getId());\n\t\t\t$mob_obj =& new ilObjMediaObject($mob);\n\t\t\t$mob_obj->delete();\n\t\t}\n\t}", "public function testDeleteSurveyGroup()\n {\n $surveyGroup = SurveyGroup::factory()->create();\n $surveyGroupId = $surveyGroup->id;\n\n $response = $this->json('DELETE', \"survey-group/{$surveyGroupId}\");\n\n $response->assertStatus(204);\n $this->assertDatabaseMissing('survey_group', [ 'id' => $surveyGroupId ]);\n }", "public function test_deleteSubscriber() {\n\n }", "function TestCase_remove_tag($case_id, $tag_name) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestCase.remove_tag', array(new xmlrpcval($case_id, \"int\"), new xmlrpcval($tag_name, \"string\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "public function testDeleteVoicemailMessage()\n {\n }", "public function deleteTag($imageID, $tagName) {\n $sql = \"DELETE FROM t_tags_included WHERE fk_pk_tags=? AND fk_pk_bild_id=?\";\n $select = $this->con->prepare($sql);\n $select->bind_param(\"ss\", $tagName, $imageID);\n $select->execute();\n $select->close();\n }", "public function testDeleteTemplate()\n {\n\n }", "public function testDeleteChallengeActivityTemplate()\n {\n }", "public function testDeleteInvalidPostTag() {\n\t\t// create a PostTag and try to delete it without actually inserting it\n\t\t$postTag = new PostTag( GigHubTest::INVALID_KEY, GigHubTest::INVALID_KEY );\n\t\t$postTag->delete( $this->getPDO() );\n\t}", "public function testWebinarPollDelete()\n {\n }", "public function testGetVendorComplianceSurveyById()\n {\n }", "public function test_deleteExternalShipment() {\n\n }", "public function deleted(CustomerInquiry $customerInquiry)\n {\n\n }", "public function testCompanyManagementBackupsIdDelete()\n {\n\n }", "public function deleted(InterviewQuestion $interviewQuestion): void\n {\n //\n }", "function we_tag_delete(array $attribs){\n\t$id = weTag_getAttribute('id', $attribs, 0, we_base_request::INT);\n\t$type = weTag_getAttribute('type', $attribs, 'document', we_base_request::STRING);\n\t$userid = weTag_getAttribute('userid', $attribs, 0, we_base_request::STRING); // deprecated use protected=true instead\n\t$protected = weTag_getAttribute('protected', $attribs, false, we_base_request::BOOL);\n\t$admin = weTag_getAttribute('admin', $attribs, '', we_base_request::STRING);\n\t$mail = weTag_getAttribute('mail', $attribs, '', we_base_request::EMAIL);\n\t$mailfrom = weTag_getAttribute('mailfrom', $attribs, '', we_base_request::EMAIL);\n\t$charset = weTag_getAttribute('charset', $attribs, \"iso-8859-1\", we_base_request::STRING);\n\t$doctype = weTag_getAttribute('doctype', $attribs, '', we_base_request::STRING);\n\t$classid = weTag_getAttribute('classid', $attribs, '', we_base_request::INT);\n\t$pid = weTag_getAttribute('pid', $attribs, 0, we_base_request::INT);\n\t$forceedit = weTag_getAttribute('forceedit', $attribs, false, we_base_request::BOOL);\n\n\tswitch($type){\n\t\tcase 'document':\n\t\t\t$docID = $id ? : we_base_request::_(we_base_request::INT, 'we_delDocument_ID');\n\t\t\tif(!$docID){\n\t\t\t\treturn '';\n\t\t\t}\n\t\t\t$doc = new we_webEditionDocument();\n\t\t\t$doc->initByID($docID);\n\t\t\t$table = FILE_TABLE;\n\t\t\tif($doctype){\n\t\t\t\t$doctypeID = f('SELECT ID FROM ' . DOC_TYPES_TABLE . ' WHERE DocType LIKE \"' . $GLOBALS['DB_WE']->escape($doctype) . '\"');\n\t\t\t\tif($doc->DocType != $doctypeID){\n\t\t\t\t\t$GLOBALS['we_' . $type . '_delete_ok'] = false;\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($mail){\n\t\t\t\t$mailtext = sprintf(g_l('global', '[std_mailtext_delDoc]'), $doc->Path);\n\t\t\t\t$subject = g_l('global', '[std_subject_delDoc]');\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'object':\n\t\t\t$docID = $id ? : we_base_request::_(we_base_request::INT, 'we_delObject_ID', $id);\n\t\t\tif(!$docID){\n\t\t\t\treturn '';\n\t\t\t}\n\t\t\t$doc = new we_objectFile();\n\t\t\t$doc->initByID($docID, OBJECT_FILES_TABLE);\n\t\t\t$table = OBJECT_FILES_TABLE;\n\t\t\tif($classid && $doc->TableID != $classid){//FIXME: IsClassFolder\n\t\t\t\t$GLOBALS['we_' . $type . '_delete_ok'] = false;\n\t\t\t\treturn '';\n\t\t\t}\n\t\t\tif($mail){\n\t\t\t\t$mailtext = sprintf(g_l('global', '[std_mailtext_delObj]'), $doc->Path);\n\t\t\t\t$subject = g_l('global', '[std_subject_delObj]');\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn;\n\t}\n\n\tif($pid && $doc->ParentID != $pid){\n\t\t$GLOBALS['we_' . $type . '_delete_ok'] = false;\n\t\treturn '';\n\t}\n\n\t$isOwner = !empty($_SESSION['webuser']['registered']) && isset($_SESSION['webuser']['ID']) && (\n\t\t($protected && $_SESSION['webuser']['ID'] == $doc->WebUserID) ||\n\t\t($userid && $_SESSION['webuser']['ID'] == $doc->getElement($userid))\n\t\t);\n\n\n\t$isAdmin = !empty($_SESSION['webuser']['registered']) && $admin && !empty($_SESSION['webuser'][$admin]);\n\n\tif($isAdmin || $isOwner || $forceedit){\n\t\twe_base_delete::deleteEntry($docID, $table);\n\t\t$GLOBALS['we_' . $type . '_delete_ok'] = true;\n\t\tif($mail){\n\t\t\tif(!$mailfrom){\n\t\t\t\t$mailfrom = 'dontReply@' . $_SERVER['SERVER_NAME'];\n\t\t\t}\n\t\t\t$phpmail = new we_helpers_mail($mail, $subject, $mailfrom);\n\t\t\t$phpmail->setCharSet($charset);\n\t\t\t$phpmail->addTextPart(trim($mailtext));\n\t\t\t$phpmail->buildMessage();\n\t\t\t$phpmail->Send();\n\t\t}\n\t} else {\n\t\t$GLOBALS['we_' . $type . '_delete_ok'] = false;\n\t}\n\treturn '';\n}", "public function testWebinarDelete()\n {\n }", "public function testAddVendorComplianceSurvey()\n {\n }", "public function testGetDuplicateVendorComplianceSurveyById()\n {\n }", "public function test_P_DeleteSubscriptionAction_1() \n {\n $kuchi = parent::$repositoryKuchi->findOneByName(\"P_DeleteSubscriptionAction_1\");\n \n $komi = parent::$repositoryKomi->findOneByRandomId(\"P_DeleteSubscriptionAction_1_Android_1\");\n $this->template_test_P_DeleteSubscriptionAction_1($kuchi, $komi, Subscription::TYPE_NFC);\n \n $komi = parent::$repositoryKomi->findOneByRandomId(\"P_DeleteSubscriptionAction_1_Android_2\");\n $this->template_test_P_DeleteSubscriptionAction_1($kuchi, $komi, Subscription::TYPE_QRCode);\n \n $komi = parent::$repositoryKomi->findOneByRandomId(\"P_DeleteSubscriptionAction_1_Android_3\");\n $this->template_test_P_DeleteSubscriptionAction_1($kuchi, $komi, Subscription::TYPE_WEB);\n\n $komi = parent::$repositoryKomi->findOneByRandomId(\"P_DeleteSubscriptionAction_1_iOS_1\");\n $this->template_test_P_DeleteSubscriptionAction_1($kuchi, $komi, Subscription::TYPE_NFC);\n \n $komi = parent::$repositoryKomi->findOneByRandomId(\"P_DeleteSubscriptionAction_1_iOS_2\");\n $this->template_test_P_DeleteSubscriptionAction_1($kuchi, $komi, Subscription::TYPE_QRCode);\n \n $komi = parent::$repositoryKomi->findOneByRandomId(\"P_DeleteSubscriptionAction_1_iOS_3\");\n $this->template_test_P_DeleteSubscriptionAction_1($kuchi, $komi, Subscription::TYPE_WEB);\n \n }", "public function testDeleteChallenge()\n {\n }", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function deleteTag($tag){\n\t\tif(is_array($tag)){\n\t\t\t$success = true;\n\t\t\tforeach($tag as $t){\n\t\t\t\tif(!$this->deleteTag($t)){\n\t\t\t\t\t$success = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $success;\n\t\t}else{\n\t\t\t$user = $this->getUser();\n\t\t\t$singletag = $this->getTag($tag);\n\t\t\tif(!isset($user[\"id\"])||!isset($singletag[\"tagid\"])){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif($user[\"status\"] == DBConfig::$userStatus[\"admin\"]){\n\t\t\t\t$this->log(\"@\".$user[\"id\"].\" (\".$user[\"username\"].\") deletes tag '\".$tag.\"'\");\n\t\t\t\t$query = Queries::deletetag($singletag[\"tagid\"]);\n\t\t\t\tif(!$this->query($query))return false;\n\t\t\t\t$query = Queries::removetag($singletag[\"tagid\"]);\n\t\t\t\treturn $this->query($query);\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "public function test_deleteItemCategory() {\n\n }", "public function testDeletePet()\n {\n\n }", "public function testDeleteAuthorizationDivision()\n {\n }", "public function testDeleteDocument()\n {\n }", "public function delete_ajax_tag(Request $request)\n {\n //die($request);\n // echo '<pre>';print_r($_POST);die();\n $result = 0;\n $productTag = ProductTag::where('id','=', $request->tag_id)->first(); \n $product_tag = ProductTag::find($productTag->id); \n \n if($product_tag->delete()){\n $result = 1;\n }\n\n return response()->json(['success'=> $result]);\n }", "public function delete($tag)\n {\n getAuthentication()->requireAuthentication();\n $res = $this->tag->delete($tag);\n if($res)\n return $this->noContent('Tag deleted successfully', true);\n else\n return $this->error('Tag could not be deleted', false);\n }", "public function testDeleteChallengeEvent()\n {\n }", "public function testProjectProjectIDInviteeInviteIDDelete()\n {\n }", "public function delete($Enterprise) { ; }", "public function testDeletePackingPlan()\n {\n }", "public static function delete(){\n\t\tglobal $current_user;\n\t\tinsert('DELETE FROM tag WHERE id=' . $_POST['id'] .\n\t\t\t\t'AND user_id=' . $current_user['id']);\n\t}", "public function testDeleteFinancialStatementUsingDelete()\n {\n }", "public function testDeleteChallengeActivity()\n {\n }", "function admin_delete_vendor($vendor_id = null){\n\t\t\n\t\t$this->layout = \"\";\n\t\t$this->autoRender = false;\n\t\t$vendor_id = DECRYPT_DATA($vendor_id);\n\t\tif(isset($vendor_id)){\n\t\t\t$this->Vendor->updateAll(array(\"Vendor.is_deleted\"=>\"'1'\"),array(\"Vendor.id\"=>$vendor_id));\n\t\t\tApp::import(\"Model\",\"Product\");\n\t\t\t$this->Product = new Product();\n\t\t\t$this->Product->updateAll(array(\"Product.is_deleted\"=>\"'1'\"),array(\"Product.vendor_id\"=>$vendor_id));\n\t\t\tApp::import(\"Model\",\"Coupon\");\n\t\t\t$this->Coupon = new Coupon();\n\t\t\t$this->Coupon->updateAll(array(\"Coupon.is_deleted\"=>\"'1'\"),array(\"Coupon.vendor_id\"=>$vendor_id));\n\t\t\t$this->Session->setFlash(RECORD_DELETED, 'message/green');\n\t\t}\n\t\t$this->redirect($this->referer());exit();\t\n\t}", "public function testDeleteCertificate()\n {\n }", "public function tag_delete($id)\n{\n $productstag = ProductTag::where('product_id','=',$id)->get();\n\n foreach ($productstag as $key => $protag) {\n\n $productTag = ProductTag::find($protag->id);\n $productTag->delete();\n }\n\n}", "public function testDeleteVoicemailMessages()\n {\n }", "public function testDeletesPostTagRelationship()\n {\n // Create the post and tag\n $post = $this->resources->post();\n $tag = $this->resources->tag();\n\n // Add the tag to the post\n $result = $this->writedown->getService('api')->postTag()->create([\n 'post_id' => $post->id,\n 'tag_id' => $tag->id,\n ]);\n\n // Now delete the tag\n $this->writedown->getService('api')->tag()->delete($tag->id);\n\n // Check the relationship no longer exists\n $databaseResult = $this->writedown->getService('entityManager')\n ->getRepository('ByRobots\\WriteDown\\Database\\Entities\\PostTag')\n ->findOneBy(['post_id' => $post->id, 'tag_id' => $tag->id]);\n\n $this->assertNull($databaseResult);\n }", "public function delete_extraproduct(){\n if($this->uri->segment(3) == \"temp\"){\n $id = $this->uri->segment(4);\n $result = MU_Model::deletedRecordById(\"temp_table\",array(\"ID\" => $id));\n }else{\n $id = $this->uri->segment(3);\n $result = MU_Model::deletedRecordById(\"extra_acti\",array(\"extraproduct_id\" => $id));\n }\n if($result) echo 't';\n }", "public function testDeleteExternalShipment()\n {\n }", "public function test_deleteBillingCodeType() {\n\n }", "public function testComDayCqTaggingImplTagGarbageCollector()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.day.cq.tagging.impl.TagGarbageCollector';\n\n $crawler = $client->request('POST', $path);\n }", "public function deleteTag($searchData)\n {\n $this->openTag($searchData);\n $this->clickButtonAndConfirm('delete_tag', 'confirmation_for_delete');\n }", "function fn_giftreg_delete_field_variants($field_id)\n{\n\n $vars = db_get_fields(\"SELECT variant_id FROM ?:giftreg_field_variants WHERE field_id = ?i\", $field_id);\n if (!empty($vars)) {\n db_query(\"DELETE FROM ?:giftreg_descriptions WHERE object_id IN (?a) AND object_type = 'V'\", $vars);\n db_query(\"DELETE FROM ?:giftreg_field_variants WHERE field_id = ?i\", $field_id);\n }\n}", "protected function deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testDeleteGlobalTemplate()\n {\n\n }" ]
[ "0.75001514", "0.70544374", "0.7025557", "0.68971145", "0.6834549", "0.6813373", "0.6797553", "0.6786324", "0.67576134", "0.67004544", "0.66620636", "0.6638457", "0.66014445", "0.66011566", "0.66011566", "0.6531757", "0.6512446", "0.6496821", "0.6480844", "0.64776444", "0.64776444", "0.63997287", "0.6386554", "0.6386554", "0.6349866", "0.6319847", "0.62040997", "0.61802703", "0.61467", "0.6131901", "0.6124275", "0.6037742", "0.6009347", "0.59964514", "0.5971922", "0.5961486", "0.5910705", "0.59052706", "0.58801097", "0.5807049", "0.5784904", "0.5753078", "0.5745833", "0.57088846", "0.5702873", "0.57013065", "0.56950474", "0.56915975", "0.5667587", "0.565399", "0.56532794", "0.56112325", "0.5606209", "0.55687827", "0.5555931", "0.55538195", "0.5543791", "0.5531385", "0.55256397", "0.55248487", "0.5516566", "0.54998386", "0.54974437", "0.5489881", "0.54841775", "0.5476547", "0.5464833", "0.5448819", "0.5440504", "0.54380834", "0.54351485", "0.54324", "0.5422396", "0.541544", "0.54091597", "0.54066855", "0.539924", "0.53913444", "0.5378743", "0.5371814", "0.53618205", "0.536076", "0.5353581", "0.5341494", "0.5340188", "0.5334554", "0.53276664", "0.53256595", "0.5318236", "0.5316527", "0.53160834", "0.5309161", "0.52949876", "0.5291062", "0.52878654", "0.528558", "0.5279474", "0.52779573", "0.52760035", "0.52759343" ]
0.8647851
0
Test case for getDuplicateVendorComplianceSurveyById Get a duplicated a vendorComplianceSurvey by id.
public function testGetDuplicateVendorComplianceSurveyById() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getDuplicateVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/duplicate/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testDuplicateSurvey()\n {\n $year = 2018;\n $currentYear = current_year();\n $origSurvey = Survey::factory()->create(['year' => $year, 'title' => \"$year Survey Title\"]);\n $origGroup = SurveyGroup::factory()->create(['survey_id' => $origSurvey->id]);\n $origQuestion = SurveyQuestion::factory()->create(['survey_id' => $origSurvey->id, 'survey_group_id' => $origGroup->id]);\n\n $response = $this->json('POST', \"survey/{$origSurvey->id}/duplicate\");\n $response->assertStatus(200);\n $newId = $response->json('survey_id');\n\n $this->assertDatabaseHas('survey', ['id' => $newId, 'title' => \"$currentYear Survey Title\"]);\n $this->assertDatabaseHas('survey_group', ['survey_id' => $newId, 'title' => $origGroup->title]);\n $this->assertDatabaseHas('survey_question', ['survey_id' => $newId, 'description' => $origQuestion->description]);\n }", "public function getDuplicateVendorComplianceSurveyByIdWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "public function testGetVendorComplianceSurveyById()\n {\n }", "protected function getVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "function duplicateQuestionForSurvey($question_id, $a_force = false)\n\t{\n\t\tglobal $ilUser;\n\t\t\n\t\t$questiontype = $this->getQuestionType($question_id);\n\t\t$question_gui = $this->getQuestionGUI($questiontype, $question_id);\n\n\t\t// check if question is a pool question at all, if not do nothing\n\t\tif($this->getId() == $question_gui->object->getObjId() && !$a_force)\n\t\t{\n\t\t\treturn $question_id;\n\t\t}\n\n\t\t$duplicate_id = $question_gui->object->duplicate(true);\n\t\treturn $duplicate_id;\n\t}", "protected function deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function dataProcessingsDuplicateRequest($id, $workspace_id, $tenant_id)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $id when calling dataProcessingsDuplicate'\n );\n }\n // verify the required parameter 'workspace_id' is set\n if ($workspace_id === null || (is_array($workspace_id) && count($workspace_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $workspace_id when calling dataProcessingsDuplicate'\n );\n }\n // verify the required parameter 'tenant_id' is set\n if ($tenant_id === null || (is_array($tenant_id) && count($tenant_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $tenant_id when calling dataProcessingsDuplicate'\n );\n }\n\n $resourcePath = '/v1/tenant/{tenantId}/ws/{workspaceId}/DataProcessings/{id}/duplicate';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // path params\n if ($id !== null) {\n $resourcePath = str_replace(\n '{' . 'id' . '}',\n ObjectSerializer::toPathValue($id),\n $resourcePath\n );\n }\n // path params\n if ($workspace_id !== null) {\n $resourcePath = str_replace(\n '{' . 'workspaceId' . '}',\n ObjectSerializer::toPathValue($workspace_id),\n $resourcePath\n );\n }\n // path params\n if ($tenant_id !== null) {\n $resourcePath = str_replace(\n '{' . 'tenantId' . '}',\n ObjectSerializer::toPathValue($tenant_id),\n $resourcePath\n );\n }\n\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n []\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n [],\n []\n );\n }\n\n // for model (json/xml)\n if (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires HTTP basic authentication\n if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) {\n $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . \":\" . $this->config->getPassword());\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function testDeleteVendorComplianceSurvey()\n {\n }", "protected function addVendorComplianceSurveyAuditRequest($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyAudit'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_audit' is set\n if ($vendor_compliance_survey_audit === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_audit when calling addVendorComplianceSurveyAudit'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/audit/{vendorComplianceSurveyAudit}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_audit !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyAudit' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_audit),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function getDuplicateVendorComplianceSurveyByIdAsyncWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "public function getDuplicateVendorByIdWithHttpInfo($vendor_id)\n {\n \n // verify the required parameter 'vendor_id' is set\n if ($vendor_id === null) {\n throw new \\InvalidArgumentException('Missing the required parameter $vendor_id when calling getDuplicateVendorById');\n }\n \n // parse inputs\n $resourcePath = \"/beta/vendor/duplicate/{vendorId}\";\n $httpBody = '';\n $queryParams = array();\n $headerParams = array();\n $formParams = array();\n $_header_accept = ApiClient::selectHeaderAccept(array('application/json'));\n if (!is_null($_header_accept)) {\n $headerParams['Accept'] = $_header_accept;\n }\n $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array());\n \n \n \n // path params\n \n if ($vendor_id !== null) {\n $resourcePath = str_replace(\n \"{\" . \"vendorId\" . \"}\",\n $this->apiClient->getSerializer()->toPathValue($vendor_id),\n $resourcePath\n );\n }\n // default format to json\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n\n \n \n \n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n } elseif (count($formParams) > 0) {\n $httpBody = $formParams; // for HTTP post (form)\n }\n \n // this endpoint requires API key authentication\n $apiKey = $this->apiClient->getApiKeyWithPrefix('API-Key');\n if (strlen($apiKey) !== 0) {\n $headerParams['API-Key'] = $apiKey;\n }\n \n \n // make the API Call\n try {\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\n $resourcePath, 'GET',\n $queryParams, $httpBody,\n $headerParams, '\\Infoplus\\Model\\Vendor'\n );\n \n if (!$response) {\n return array(null, $statusCode, $httpHeader);\n }\n\n return array(\\Infoplus\\ObjectSerializer::deserialize($response, '\\Infoplus\\Model\\Vendor', $httpHeader), $statusCode, $httpHeader);\n \n } catch (ApiException $e) {\n switch ($e->getCode()) { \n case 200:\n $data = \\Infoplus\\ObjectSerializer::deserialize($e->getResponseBody(), '\\Infoplus\\Model\\Vendor', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n }\n \n throw $e;\n }\n }", "public function testGetDuplicatePackingPlanById()\n {\n }", "public function getDuplicateVendorById($vendor_id)\n {\n list($response, $statusCode, $httpHeader) = $this->getDuplicateVendorByIdWithHttpInfo ($vendor_id);\n return $response; \n }", "public function test_getDuplicateLegacyLowstockContactById() {\n\n }", "public function test_getDuplicateExternalShipmentById() {\n\n }", "public function getDuplicateVendorComplianceSurveyByIdAsync($vendor_compliance_survey_id)\n {\n return $this->getDuplicateVendorComplianceSurveyByIdAsyncWithHttpInfo($vendor_compliance_survey_id)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function duplicateInvoice($id) {\n\t\ttry{\n\t\t\t$invoiceTbl = $this->_serviceManager->get('Invoice\\Model\\InvoiceTable');\n\t\n\t\t\t$invoiceItems = $invoiceTbl->fetchInvoiceItemsById($id);\n\t\t\t\n\t\t\t$invoiceData = $invoiceTbl->getInvoiceDetailsById($id);\n\t\t\t\n\t\t\t$xml = $this->generateDuplicateXml($invoiceData, $invoiceItems);\n\t\t\t\n\t\t\t$response = $this->_XeroOAuth->request('POST', $this->_XeroOAuth->url('Invoices', 'core'), array(), $xml);\n\t\t\t\n\t\t\tif ($this->_XeroOAuth->response['code'] == 200) {\n\t\t\t\t$invoice = $this->_XeroOAuth->parseResponse($this->_XeroOAuth->response['response'], $this->_XeroOAuth->response['format']);\n\t\t\t\t\n\t\t\t\tif (count($invoice->Invoices[0]) > 0) {\n\t\t\t\t\t$data = (array) $invoiceTbl->getInvoiceById($id);\n\t\t\t\t\tunset($data['id']);\n\t\t\t\t\t$data['invoice_id'] = $invoice->Invoices[0]->Invoice->InvoiceID;\n\t\t\t\t\t$data['invoice_number'] = $invoice->Invoices[0]->Invoice->InvoiceNumber;\n\t\t\t\t\t\n\t\t\t\t\t$invoice_id = $this->saveDuplicateData($data, $invoiceItems);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false; \n\t\t}catch(\\Exception $e){\n\t\t\t\\De\\Log::logApplicationInfo ( \"Caught Exception: \" . urldecode($response['response']) . ' -- File: ' . __FILE__ . ' Line: ' . __LINE__ );\n\t\t}\n }", "public function test_getDuplicateReplenishmentProcessById() {\n\n }", "public function testGetDuplicateReplenishmentById()\n {\n }", "public function test_getDuplicateCustomerById() {\n\n }", "public function testDuplicate()\n {\n $this->duplicate(\n [\n 'catalogId' => 1,\n 'catalogInstanceId' => 1,\n 'count' => 1,\n 'status' => 0,\n ],\n [\n 'count' => ['minValue']\n ]\n );\n }", "public function store($vendorId)\n\t{\n\t\tInput::merge(array_map('trim', Input::all()));\n $validator = Validator::make(\n array('intVendorId' => $vendorId),\n array('intVendorId' => 'required')\n );\n\n if ($validator->fails()) {\n return $this->respondBadRequest('Invalid Vendor Id.');\n }\n\n $validator = Validator::make(\n Input::get(),\n array(\n 'contactName' => 'required|max:200',\n 'contactDesignation' => 'sometimes|max:200',\n 'contactEmail' => 'sometimes|email|max:200',\n 'contactPhone1' => 'sometimes|max:20',\n 'contactPhone2' => 'sometimes|max:20'\n ));\n if ($validator->fails()) {\n return $this->respondBadRequest('Invalid input.', array('app_error' => $validator->messages()->toArray()));\n }\n\n $vendor = Vendor::find($vendorId);\n if (!$vendor) {\n return $this->respondNotFound('Vendor does not exist.');\n }\n\n $vendorContact = new VendorContact;\n $vendorContact->intVendorId = $vendorId;\n $vendorContact->strContactFullName =Input::get('contactName');\n $vendorContact->strContactDesgnation =Input::get('contactDesignation');\n $vendorContact->strContactEmail =Input::get('contactEmail');\n $vendorContact->strContactPhone1 =Input::get('contactPhone1');\n $vendorContact->strContactPhone2 =Input::get('contactPhone2');\n\n try {\n $vendorContact->save();\n } catch (\\Exception $e) {\n return $this->respondInternalError('Unable to save Vendor contact.');\n }\n $insertedVendorContact = VendorContact::find($vendorContact->intVendorContactId);\n return $this->setStatusCode(ApiController::HTTP_CREATED)->respond($this->vendorContactTransformer->transform($insertedVendorContact));\n\n\t}", "public function testGetDuplicateExternalShipmentById()\n {\n }", "public function testAddVendorComplianceSurvey()\n {\n }", "public function check_duplicate()\n {\n }", "function getSurveyId()\n\t{\n\t\treturn $this->survey_id;\n\t}", "public function duplicate($id, EstAsistencium $estAsistencium)\n\t{\n\t\t$estAsistencium=$estAsistencium->find($id);\n\t\treturn view('estAsistencias.duplicate', compact('estAsistencium'))\n\t\t\t->with( 'list', EstAsistencium::getListFromAllRelationApps() );\n\t}", "public function duplicate( $id ) {\r\r\n global $wpdb;\r\r\n\r\r\n $this->refresh = true;\r\r\n\r\r\n return $wpdb->query(\r\r\n $wpdb->prepare(\"\r\r\n INSERT INTO \" . wd_asp()->db->table('main') . \"( name, data )\r\r\n SELECT CONCAT(name, ' duplicate'), data FROM \" . wd_asp()->db->table('main') . \"\r\r\n WHERE id=%d;\"\r\r\n , $id)\r\r\n );\r\r\n }", "public function duplicateCurriculumSetting($id)\n {\n }", "public function getDuplicateVendorComplianceSurveyById($vendor_compliance_survey_id)\n {\n list($response) = $this->getDuplicateVendorComplianceSurveyByIdWithHttpInfo($vendor_compliance_survey_id);\n return $response;\n }", "function chkDuplicate($fileds,$data){\r\n $filedsArr = @explode(',',$fileds);\r\n for($i=0;$i<count($filedsArr);$i++){\r\n $where.= \" AND \".$filedsArr[$i].\" = '\".$data[$filedsArr[$i]].\"'\";\r\n }\r\n $sql = \"SELECT iInvoiceID as ID FROM \".PRJ_DB_PREFIX.\"_inovice_order_heading WHERE 1 $where\";\r\n\t\t$row = $this->_obj->MySqlSelect($sql);\r\n //Prints($row);exit;\r\n if(count($row) > 0){\r\n $dup = $row[0][ID];\r\n }else{\r\n $dup = 0;\r\n }\r\n return $dup;\r\n }", "public function duplicateQuote($id) {\n\t\ttry{\n\t\t\t$invoiceTbl = $this->_serviceManager->get('Invoice\\Model\\InvoiceTable');\n\t\n\t\t\t$invoiceItems = $invoiceTbl->fetchInvoiceItemsById($id);\n\t\t\t\n\t\t\t$data = (array) $invoiceTbl->getInvoiceById($id);\n\t\t\tunset($data['id']);\n\t\t\tunset($data['invoice_id']);\n\t\t\tunset($data['invoice_number']);\n\t\t\t\n\t\t\t$invoice_id = $this->saveDuplicateData($data, $invoiceItems);\n\n\t\t\treturn false; \n\t\t}catch(\\Exception $e){\n\t\t\t\\De\\Log::logApplicationInfo ( \"Caught Exception: \" . urldecode($response['response']) . ' -- File: ' . __FILE__ . ' Line: ' . __LINE__ );\n\t\t}\n }", "protected function callPlanDuplicateRequest($id, $accountid)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $id when calling callPlanDuplicate'\n );\n }\n // verify the required parameter 'accountid' is set\n if ($accountid === null || (is_array($accountid) && count($accountid) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $accountid when calling callPlanDuplicate'\n );\n }\n\n $resourcePath = '/{accountid}/callplan/duplicate/{id}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($id !== null) {\n $resourcePath = str_replace(\n '{' . 'id' . '}',\n ObjectSerializer::toPathValue($id),\n $resourcePath\n );\n }\n // path params\n if ($accountid !== null) {\n $resourcePath = str_replace(\n '{' . 'accountid' . '}',\n ObjectSerializer::toPathValue($accountid),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json', 'text/json', 'application/xml', 'text/xml']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json', 'text/json', 'application/xml', 'text/xml'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function deleteVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_id' is set\n if ($file_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_id !== null) {\n $resourcePath = str_replace(\n '{' . 'fileId' . '}',\n ObjectSerializer::toPathValue($file_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function insertResult($surveyId, $data)\n\t{\n\t\t$result = $this->result->newInstance(array(\n\t\t\t'name' => array_get($data, 'name'),\n\t\t\t'program_id' => array_get($data, 'program'),\n\t\t\t'survey_id' => $surveyId\n\t\t));\n\n\t\t$result->save();\n\n\t\t$answers = $this->buildAnswerModels(array_get($data, 'question', array()));\n\n\t\t$result->answers()->saveMany($answers);\n\t}", "protected function addVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_name)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_name' is set\n if ($file_name === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_name when calling addVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileName}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_name !== null) {\n $resourcePath = str_replace(\n '{' . 'fileName' . '}',\n ObjectSerializer::toPathValue($file_name),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function check_duplicate()\n {\n // set table\n $this->record->table = $this->table;\n // set where\n $this->record->where['classification'] = trim($this->input->post('classification'));\n // execute retrieve\n $this->record->retrieve();\n \n if (!empty($this->record->field))\n echo \"1\"; // duplicate\n else \n echo \"0\";\n }", "public function duplicate($id, HAsistenciaR $hAsistenciaR)\n\t{\n\t\t$hAsistenciaR=$hAsistenciaR->find($id);\n\t\treturn view('hAsistenciaRs.duplicate', compact('hAsistenciaR'))\n\t\t\t->with( 'list', HAsistenciaR::getListFromAllRelationApps() );\n\t}", "abstract public function isDuplicatePIMAddition($id);", "public function getVendorThatExists()\n {\n // Given\n $this->_mockApi->expects($this->once())\n ->method('getResource')\n ->with($this->equalTo(\"vendors/v1\"))\n ->will($this->returnValue(self::$VENDOR_RESPONSE));\n\n // When\n $result = $this->_vendorProvider->getById(\"v1\");\n\n // Then\n $this->assertResult($result);\n }", "public function duplicar($id) \n {\n $qry_terminos = $this->M_politicas->obtener_terminos($id);\n if($qry_terminos->num_rows() > 0)\n {\n $terminos = $qry_terminos->row();\n $this->data['acc'] = DUPLICAR;\n $this->data['politicas'] = $terminos; \n $this->_vista('comun');\n }\n else\n {\n echo false;\n }\n }", "function insertQuestion($question_id) \n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\tinclude_once \"./Modules/SurveyQuestionPool/classes/class.SurveyQuestion.php\";\n\t\tif (!SurveyQuestion::_isComplete($question_id))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// get maximum sequence index in test\n\t\t\t$result = $ilDB->queryF(\"SELECT survey_question_id FROM svy_svy_qst WHERE survey_fi = %s\",\n\t\t\t\tarray('integer'),\n\t\t\t\tarray($this->getSurveyId())\n\t\t\t);\n\t\t\t$sequence = $result->numRows();\n\t\t\t$duplicate_id = $this->duplicateQuestionForSurvey($question_id);\n\t\t\t$next_id = $ilDB->nextId('svy_svy_qst');\n\t\t\t$affectedRows = $ilDB->manipulateF(\"INSERT INTO svy_svy_qst (survey_question_id, survey_fi, question_fi, sequence, tstamp) VALUES (%s, %s, %s, %s, %s)\",\n\t\t\t\tarray('integer', 'integer', 'integer', 'integer', 'integer'),\n\t\t\t\tarray($next_id, $this->getSurveyId(), $duplicate_id, $sequence, time())\n\t\t\t);\n\t\t\t$this->loadQuestionsFromDb();\n\t\t\treturn TRUE;\n\t\t}\n\t}", "protected function getVendorComplianceSurveyFilesRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyFiles'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function getVendorComplianceSurveyTagsRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyTags'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function add_reseller_program_survey_question()\n {\n $this->loadModel('ResellerProgramSurveyQuestions');\n if (!$this->request->is('post')) {\n throw new MethodNotAllowedException(__('BAD_REQUEST'));\n }\n $resellerProgramSurveyQuestion=$this->request->data;\n $resellerProgramSurveyQuestion = $this->ResellerProgramSurveyQuestions->newEntity($resellerProgramSurveyQuestion);\n if ($this->ResellerProgramSurveyQuestions->save($resellerProgramSurveyQuestion)) {\n $this->set('resellerProgramSurveyQuestion', $resellerProgramSurveyQuestion);\n $this->set('response', ['status' => \"OK\"]);\n } else {\n throw new InternalErrorException(__('Internal Error'));\n }\n $data =array();\n $data['status']=true;\n $data['data']['id']=$resellerProgramSurveyQuestion->id;\n $this->set('response',$data);\n $this->set('_serialize', ['response']);\n }", "public function test_getDuplicateOrderLineActivityById() {\n\n }", "public function testDuplicate()\n {\n $this->duplicate(\n [\n 'imageModel' => $this->_imageModelCreateData(),\n 'tabModel' => $this->_tabModelCreateData(),\n 'fieldModel' => $this->_fieldModelCreateData(),\n 'descriptionTextModel'\n => $this->_descriptionTextModelCreateData(),\n 'designCatalogModel' => array_merge(\n $this->_designCatalogModelCreateData1(),\n $this->_designCatalogModelCreateData2()\n ),\n 'hasImages' => true,\n 'useAutoload' => true,\n 'pageNavigationSize' => 10,\n 'shortCardDateType' => 1,\n 'fullCardDateType' => 1,\n 'hasRelations' => true,\n 'relationsLabel' => 'Relations label',\n 'hasBin' => true,\n ],\n [\n 'imageModel' => $this->_imageModelExpectData(),\n 'tabModel' => $this->_tabModelExpectData(),\n 'descriptionTextModel'\n => $this->_descriptionTextModelExpectData(),\n 'designCatalogModel'\n => $this->_designCatalogModelExpectData(),\n 'hasImages' => true,\n 'useAutoload' => true,\n 'pageNavigationSize' => 10,\n 'shortCardDateType' => 1,\n 'fullCardDateType' => 1,\n 'hasRelations' => true,\n 'relationsLabel' => 'Relations label',\n 'hasBin' => true,\n ],\n null,\n [\n 'imageModel',\n 'tabModel',\n 'fieldModel',\n 'descriptionTextModel',\n 'designCatalogModel',\n ]\n );\n }", "public function test_getDuplicateItemCategoryById() {\n\n }", "public function testGetDuplicateLowStockById()\n {\n }", "public function test_getDuplicateLowStockById() {\n\n }", "abstract protected function getExistingVendorProduct(int $vendorProductId);", "private function isDuplicate($videoId) {\n// print_r($channelId);\n// print_r($title);\n $count = $this->Vod_Detail->find('count', array(\n 'conditions' => array(\n array('id_videoId' => $videoId),\n // array('published' => '0'),\n )\n ));\n return $count;\n }", "function checkForDuplicateUnique(){\n $_ufields_arr = explode(\",\", $this->listSettings->GetItem(\"MAIN\", \"UNIQUE_FIELDS\"));\n $check_fields = true;\n for ($i = 0; $i < sizeof($_ufields_arr); $i ++) {\n list ($_field[$i], $_value[$i]) = explode(\"=\", $_ufields_arr[$i]);\n if (strlen($_value[$i])) {\n $check_fields = false;\n $_query_arr[$_field[$i]] = $_value[$i];\n if ($this->_data[$_field[$i]] == $_value[$i]) {\n $check_fields = true;\n }\n }\n else {\n $_query_arr[$_field[$i]] = $this->_data[$_field[$i]];\n }\n }\n if ($check_fields) {\n $_data = $this->Storage->GetByFields($_query_arr, null);\n }\n else {\n $_data = array();\n }\n if (! empty($_data)) {\n if (($this->item_id != $_data[$this->key_field])) {\n if ($this->Kernel->Errors->HasItem($this->library_ID, \"RECORD_EXISTS\")) {\n $_error_section = $this->library_ID;\n }\n else {\n $_error_section = \"GlobalErrors\";\n }\n $this->validator->SetCustomError($_ufields_arr, \"RECORD_EXISTS\", $_error_section);\n }\n }\n }", "public function create() {\n\t\tif (!$this->isActive()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$log_file = 'spectrum.create';\n\t\t$log_key = strtoupper(Utils::rand('4'));\n\t\t$time_start = microtime(true);\n\t\t\n\t\tif (!isset($this->params['spectrum_survey_id'])) {\n\t\t\t$this->lecho('FAILED: You are missing spectrum_survey_id', $log_file, $log_key);\n\t\t\t$this->lecho('Completed create (Execution time: '.(microtime(true) - $time_start).')', $log_file, $log_key);\n\t\t\treturn false;\n\t\t}\n\t\tif (!$this->loadSettings($log_file, $log_key, $time_start)) {\n\t\t\t$this->lecho('Completed create (Execution time: '.(microtime(true) - $time_start).')', $log_file, $log_key);\n\t\t\t// this method logs the errors already\n\t\t\treturn false;\n\t\t}\n\t\t$this->lecho('Starting create #S'.$this->params['spectrum_survey_id'], $log_file, $log_key);\n\t\t\n\t\t$spectrum_project = $this->SpectrumProject->find('first', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'SpectrumProject.spectrum_survey_id' => $this->params['spectrum_survey_id']\n\t\t\t),\n\t\t\t'order' => 'SpectrumProject.id DESC'\n\t\t));\n\t\tif ($spectrum_project && $spectrum_project['SpectrumProject']['project_id'] > 0) {\n\t\t\t$this->lecho('FAILED: #S'.$this->params['spectrum_survey_id'].' has already been created.', $log_file, $log_key);\n\t\t\t$this->lecho('Completed create (Execution time: '.(microtime(true) - $time_start).')', $log_file, $log_key);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$spectrum_survey_api = $this->getSpectrumSurvey(array('Survey', 'SurveyQuotasAndQualifications')); \n\t\tif (!$spectrum_survey_api) {\n\t\t\t$this->lecho('FAILED: #S'.$this->params['spectrum_survey_id'].' not found in allocations.', $log_file, $log_key);\n\t\t\t$this->lecho('Completed create (Execution time: '.(microtime(true) - $time_start).')', $log_file, $log_key);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$spectrum_countries = Set::extract('Survey.countries.{n}.code', $spectrum_survey_api);\n\t\tif (!in_array('US', $spectrum_countries)) {\n\t\t\t$this->lecho('FAILED: #S'.$this->params['spectrum_survey_id'].' does not have US as country.', $log_file, $log_key);\n\t\t\t$this->lecho('Completed create (Execution time: '.(microtime(true) - $time_start).')', $log_file, $log_key);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$spectrum_survey = $spectrum_survey_api['Survey'];\n\t\t$survey_quotas = $spectrum_survey_api['SurveyQuotas'];\n\t\t// extract partner rate, client rate and award amounts\n\t\t$payouts = $this->Spectrum->payout($spectrum_survey);\n\t\t$overall_quota = $this->Spectrum->quota($spectrum_survey);\n\t\t$direct_allocation = false; // todo: Need to confirm with api\n\t\t$client_link = $this->client_link($spectrum_survey, $log_file, $log_key);\n\t\t$bid_ir = $this->Spectrum->ir($spectrum_survey);\n\t\t$loi = $this->Spectrum->loi($spectrum_survey);\n\t\t$min_time = round($loi / 4);\n\t\tif ($min_time < 1) {\n\t\t\t$min_time = 1;\n\t\t}\n\t\t\n\t\t$save = false;\n\t\t$projectSource = $this->Project->getDataSource();\n\t\t$projectSource->begin();\n\t\t$this->Project->create();\n\t\t$project_data = array('Project' => array(\n\t\t\t'prj_name' => $spectrum_survey['survey_name'],\n\t\t\t'client_id' => $this->spectrum_client['Client']['id'],\n\t\t\t'date_created' => date(DB_DATETIME),\n\t\t\t'bid_ir' => $bid_ir,\n\t\t\t'client_rate' => $payouts['client_rate'],\n\t\t\t'partner_rate' => $payouts['partner_rate'],\n\t\t\t'user_payout' => $payouts['partner_rate'],\n\t\t\t'quota' => $overall_quota,\n\t\t\t'est_length' => $loi,\n\t\t\t'minimum_time' => $min_time,\n\t\t\t'country' => 'US',\n\t\t\t'group_id' => $this->spectrum_group['Group']['id'],\n\t\t\t'status' => PROJECT_STATUS_STAGING,\n\t\t\t'client_project_id' => $spectrum_survey['survey_id'],\n\t\t\t'singleuse' => true,\n\t\t\t'touched' => date(DB_DATETIME),\n\t\t\t'language' => $this->Spectrum->language($spectrum_survey),\n\t\t\t'survey_name' => 'Survey for you!',\n\t\t\t'award' => $payouts['award'],\n\t\t\t'active' => false, // after qualifications load, we'll activate it\n\t\t\t'dedupe' => true,\n\t\t\t'client_survey_link' => $client_link,\n\t\t\t'description' => 'Survey for you!'\n\t\t));\n\t\tif ($this->Project->save($project_data)) {\n\t\t\t$project_id = $this->Project->getInsertId();\n\t\t\t\n\t\t\tMintVine::project_quota_statistics('spectrum', $overall_quota, $project_id);\n\t\t\t\n\t\t\t// Update mask field\n\t\t\t$this->Project->create();\n\t\t\t$this->Project->save(array('Project' => array(\n\t\t\t\t'id' => $project_id,\n\t\t\t\t'mask' => $spectrum_survey['survey_id']\n\t\t\t)), true, array('mask'));\n\t\t\t$projectSource->commit();\n\t\t\t\n\t\t\t$spectrumProjectSource = $this->SpectrumProject->getDataSource();\n\t\t\t$spectrumProjectSource->begin();\n\t\t\t$this->SpectrumProject->create();\n\t\t\t$this->SpectrumProject->save(array('SpectrumProject' => array(\n\t\t\t\t'project_id' => $project_id,\n\t\t\t\t'spectrum_survey_id' => $spectrum_survey['survey_id'],\n\t\t\t\t'current_quota' => $overall_quota,\n\t\t\t\t'status' => SPECTRUM_SURVEY_CREATED,\n\t\t\t\t'direct' => $direct_allocation\n\t\t\t)));\n\t\t\t$spectrum_project = $this->SpectrumProject->find('first', array(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'SpectrumProject.id' => $this->SpectrumProject->getInsertId()\n\t\t\t\t)\n\t\t\t));\n\t\t\t$spectrumProjectSource->commit();\n\t\t\t$this->set_security_group($spectrum_project, $spectrum_survey);\n\t\t\t\n\t\t\t// add mintvine as a partner\n\t\t\t$this->Project->SurveyPartner->create();\n\t\t\t$this->Project->SurveyPartner->save(array('SurveyPartner' => array(\n\t\t\t\t'survey_id' => $project_id,\n\t\t\t\t'partner_id' => $this->mv_partner['Partner']['id'],\n\t\t\t\t'rate' => $payouts['partner_rate'],\n\t\t\t\t'complete_url' => HOSTNAME_WWW.'/surveys/complete/{{ID}}/',\n\t\t\t\t'nq_url' => HOSTNAME_WWW.'/surveys/nq/{{ID}}/',\n\t\t\t\t'oq_url' => HOSTNAME_WWW.'/surveys/oq/{{ID}}/',\n\t\t\t\t'pause_url' => HOSTNAME_WWW.'/surveys/paused/',\n\t\t\t\t'fail_url' => HOSTNAME_WWW.'/surveys/sec/{{ID}}/',\n\t\t\t)));\n\t\t\t$save = true;\n\t\t}\n\t\telseif ($this->Project->validationErrors) {\n\t\t\t$projectSource->commit();\n\t\t\t$this->lecho('[ERROR] Failed saving survey due to internal error', $log_file, $log_key); \n\t\t\t$this->lecho(print_r($this->Project->validationErrors, true), $log_file, $log_key); \n\t\t\t$this->lecho(print_r($project_data, true), $log_file, $log_key); \n\t\t}\n\t\telse {\n\t\t\t$projectSource->commit();\n\t\t}\n\n\t\tif ($save) {\n\t\t\t$this->ProjectLog->create();\n\t\t\t$this->ProjectLog->save(array('ProjectLog' => array(\n\t\t\t\t'project_id' => $project_id,\n\t\t\t\t'type' => 'created',\n\t\t\t\t'description' => ''\n\t\t\t)));\n\t\t\t\n\t\t\tif (!defined('IS_DEV_INSTANCE') || IS_DEV_INSTANCE === false) {\n\t\t\t\t$this->post_on_slack('Spectrum project created <https://cp.mintvine.com/surveys/dashboard/'.$project_id.'>');\n\t\t\t}\n\t\t\t$this->lecho('[SUCCESS] #S'.$spectrum_survey['survey_id'].' created successfully as Project.id#'.$project_id, $log_file, $log_key); \n\t\t\t// run qualifications on this project\n\t\t\t$this->params['spectrum_survey_id'] = $spectrum_survey['survey_id'];\n\t\t\t$this->qqq($spectrum_survey_api);\n\t\t\t\n\t\t\t// launch this project\n\t\t\t$this->Project->bindModel(array('hasOne' => array(\n\t\t\t\t'SpectrumProject' => array(\n\t\t\t\t\t'className' => 'SpectrumProject',\n\t\t\t\t\t'foreignKey' => 'project_id'\n\t\t\t\t)\n\t\t\t)));\n\t\t\t$project = $this->Project->find('first', array(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'Project.id' => $project_id\n\t\t\t\t)\n\t\t\t));\n\t\t\t$this->launchProject($project, $spectrum_survey_api, $log_file, $log_key);\n\t\t\t\n\t\t\t// alert direct allocations to slack\n\t\t\tif ($direct_allocation) {\n\t\t\t\t// post to slack\n\t\t\t\t$setting = $this->Setting->find('first', array(\n\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t'Setting.name' => 'slack.alerts.webhook',\n\t\t\t\t\t\t'Setting.deleted' => false\n\t\t\t\t\t),\n\t\t\t\t\t'fields' => array('Setting.value')\n\t\t\t\t));\n\t\t\t\tif ($setting) {\n\t\t\t\t\t$http = new HttpSocket(array(\n\t\t\t\t\t\t'timeout' => '2',\n\t\t\t\t\t\t'ssl_verify_host' => false // PHP does not seem to check SANs for CNs\n\t\t\t\t\t));\n\t\t\t\t\t$http->post($setting['Setting']['value'], json_encode(array(\n\t\t\t\t\t\t'text' => 'Direct allocation project created from Spectrum: #'.$project_id.' <https://cp.mintvine.com/surveys/dashboard/'.$project_id.'>',\n\t\t\t\t\t\t'link_names' => 1,\n\t\t\t\t\t\t'username' => 'bernard'\n\t\t\t\t\t)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lecho('Completed create (Execution time: '.(microtime(true) - $time_start).')', $log_file, $log_key);\n\t}", "protected function deleteVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling deleteVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function getVendorComplianceSurveyByIdWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->getVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "public function add_reseller_program_survey()\n {\n $this->loadModel('ResellerProgramSurveys');\n if (!$this->request->is('post')) {\n throw new MethodNotAllowedException(__('BAD_REQUEST'));\n }\n \n $resellerProgramId = $this->Auth->user('id');\n $this->request->data['reseller_program_id'] = $resellerProgramId;\n $resellerProgramSurveys=$this->request->data;\n\n $resellerProgramSurveys = $this->ResellerProgramSurveys->newEntity($resellerProgramSurveys);\n //pr($resellerProgramSurveys); die;\n if ($this->ResellerProgramSurveys->save($resellerProgramSurveys)) {\n $this->set('resellerProgramSurveys', $resellerProgramSurveys);\n $this->set('response', ['status' => \"OK\"]);\n } else {\n //pr($resellerProgramSurveys->errors()); die;\n throw new InternalErrorException(__('Internal Error'));\n }\n $data =array();\n $data['status']=true;\n $data['data']['id']=$resellerProgramSurveys->id;\n $this->set('response',$data);\n $this->set('_serialize', ['response']);\n }", "public function duplicate($id, Aviso $aviso)\n\t{\n\t\t$aviso=$aviso->find($id);\n\t\treturn view('avisos.duplicate', compact('aviso'))\n\t\t\t->with( 'list', Aviso::getListFromAllRelationApps() );\n\t}", "public function duplicateCampaign(Request $request, $oldCampaignId)\n {\n $newCampaign = Campaign::create([\n \"advertiser_id\" => Input::get(\"advertiser_id\"),\n \"name\" => Input::get(\"name\"),\n \"campaign_type_id\" => Input::get(\"campaign_type_id\"),\n \"posting_url\" => Input::get(\"posting_url\")\n ]);\n\n // Get the campaign attributes.\n $oldCampaignAttributes = CampaignAttribute::whereCampaignId($oldCampaignId)->get();\n foreach($oldCampaignAttributes as $campaignAttribute) {\n $storageItem = (new MutableDataProcessorProvider())->createNewDataPair($newCampaign->id, \"campaign\", $campaignAttribute->data->value);\n CampaignAttribute::create([\n \"campaign_id\" => $newCampaign->id,\n \"name\" => $campaignAttribute->name,\n \"storage_id\" => $storageItem->id\n ]);\n }\n\n // Get the campaign fields.\n $oldCampaignFields = CampaignField::whereCampaignId($oldCampaignId)->get();\n foreach($oldCampaignFields as $campaignField) {\n CampaignField::create(array_merge([\n \"campaign_id\" => $newCampaign->id\n ],collect($campaignField)->except([\"id\",\"campaign_id\",\"created_at\",\"updated_at\"])->toArray()));\n }\n\n // Redirect to the new campaign.\n return redirect(route(\"campaigns.show\",[\"id\" => $newCampaign->id]));\n }", "public static function duplicate($service) {\n\n $serviceid = $service->id;\n\n // duplicate service\n $newservice = ORM::forTable('service')->create();\n Admin::duplicateRecord($service, $newservice);\n $newservice->code = \"CHANGE\";\n $newservice->date = date(\"Y-m-d\");\n $newservice->visible = 0;\n $newservice->save();\n $newserviceid = $newservice->id();\n\n // duplicate destinations\n // create a map of old to new ids\n $destmap = array();\n $destinations = ORM::forTable('destination')->where('serviceid', $serviceid)->findMany();\n if ($destinations) {\n foreach ($destinations as $destination) {\n $newdestination = ORM::forTable('destination')->create();\n Admin::duplicateRecord($destination, $newdestination);\n $newdestination->serviceid = $newserviceid;\n $newdestination->save();\n $destmap[$destination->id] = $newdestination->id();\n }\n }\n\n // duplicate pricebandgroup\n // create a map of old to new ids\n $pbmap = array();\n $pricebandgroups = ORM::forTable('pricebandgroup')->where('serviceid', $serviceid)->findMany();\n if ($pricebandgroups) {\n foreach ($pricebandgroups as $pricebandgroup) {\n $newpricebandgroup = ORM::forTable('pricebandgroup')->create();\n $newpricebandgroup->serviceid = $newserviceid;\n $newpricebandgroup->name = $pricebandgroup->name;\n $newpricebandgroup->save();\n $pbmap[$pricebandgroup->id] = $newpricebandgroup->id();\n }\n }\n\n // duplicate joining\n $joinings = ORM::forTable('joining')->where('serviceid', $serviceid)->findMany();\n if ($joinings) {\n foreach ($joinings as $joining) {\n $newjoining = ORM::forTable('joining')->create();\n Admin::duplicateRecord($joining, $newjoining);\n $newjoining->serviceid = $newserviceid;\n if (empty($pbmap[$joining->pricebandgroupid])) {\n throw new Exception('No pricebandgroup mapping exists for id = ' . $joining->pricebandgroupid);\n }\n $newjoining->pricebandgroupid = $pbmap[$joining->pricebandgroupid];\n $newjoining->save();\n }\n }\n\n // duplicate pricebands\n $pricebands = ORM::forTable('priceband')->where('serviceid', $serviceid)->findMany();\n if ($pricebands) {\n foreach ($pricebands as $priceband) {\n if (empty($pbmap[$priceband->pricebandgroupid])) {\n throw new Exception('No pricebandgroup mapping exists for id = ' . $priceband->pricebandgroupid);\n }\n $newpriceband = ORM::forTable('priceband')->create();\n Admin::duplicateRecord($priceband, $newpriceband);\n $newpriceband->serviceid = $newserviceid;\n if (empty($destmap[$priceband->destinationid])) {\n throw new Exception('No destination mapping exists for id = ' . $priceband->destinationid);\n }\n $newpriceband->destinationid = $destmap[$priceband->destinationid];\n if (empty($pbmap[$priceband->pricebandgroupid])) {\n throw new Exception('No pricebandgroup mapping exists for id = ' . $priceband->pricebandgroupid);\n }\n $newpriceband->pricebandgroupid = $pbmap[$priceband->pricebandgroupid];\n $newpriceband->save();\n }\n }\n\n // duplicate limits\n $limits = ORM::forTable('limits')->where('serviceid', $serviceid)->findOne();\n if ($limits) {\n $newlimits = ORM::forTable('limits')->create();\n Admin::duplicateRecord($limits, $newlimits);\n $newlimits->serviceid = $newserviceid;\n $newlimits->save();\n }\n\n return $newservice;\n }", "private function get_product_to_duplicate( $id ) {\r\n $id = absint( $id );\r\n if ( ! $id ){\r\n return false;\r\n }\r\n\r\n global $wpdb;\r\n\r\n $post = $wpdb->get_results( \"SELECT * FROM $wpdb->posts WHERE ID=$id\" );\r\n\r\n if ( isset( $post->post_type ) && $post->post_type == \"revision\" ) {\r\n $id = $post->post_parent;\r\n $post = $wpdb->get_results( \"SELECT * FROM $wpdb->posts WHERE ID=$id\" );\r\n }\r\n return $post[0];\r\n }", "public function createDuplicate();", "public function testAddVendorComplianceSurveyAudit()\n {\n }", "protected function addVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling addVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function addVendorComplianceSurveyWithHttpInfo($body)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->addVendorComplianceSurveyRequest($body);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 405:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\ApiResponse',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "public function actionDuplicate($id) {\n $model = $this->loadModel($id); // record that we want to duplicate\n $this->render('duplicate', [\n 'model' => $model,\n ]);\n }", "function survey_add($d){\n $url = $this->url.\"survey_add\";\n $data['case_id'] =$d['case_id'] ;\n $data['satisfactoriness'] =$d['satisfactoriness'] ;\n $data['satisfied_reason'] =$d['satisfied_reason'] ;\n $data['submitter'] =$d['submitter'] ;\n $this->setTransactionToLog(\"method:\".__METHOD__);\n $result = $this->_exec($url,$data);\n }", "public function test_getDuplicateCartonActivityById() {\n\n }", "function duplicate_product($src_products_id, $dest_categories_id) {\n\n\t\t$product_query = xtDBquery(\"SELECT *\n\t\t\t\t \t FROM \".TABLE_PRODUCTS.\"\n\t\t\t\t \t WHERE products_id = '\".olc_db_input($src_products_id).\"'\");\n\n\t\t$product = olc_db_fetch_array($product_query);\n\t\tif ($dest_categories_id == 0) { $startpage = 1; $products_status = 1; } else { $startpage= 0; $products_status = $product['products_status'];}\n\t\t\n\t\t$sql_data_array=array('products_quantity'=>$product['products_quantity'],\n\t\t\t\t\t\t'products_model'=>$product['products_model'],\n\t\t\t\t\t\t'products_ean'=>$product['products_ean'],\n\t\t\t\t\t\t'products_shippingtime'=>$product['products_shippingtime'],\n\t\t\t\t\t\t'products_sort'=>$product['products_sort'],\n\t\t\t\t\t\t'products_startpage'=>$startpage,\n\t\t\t\t\t\t'products_sort'=>$product['products_sort'],\n\t\t\t\t\t\t'products_price'=>$product['products_price'],\n\t\t\t\t\t\t'products_discount_allowed'=>$product['products_discount_allowed'],\n\t\t\t\t\t\t'products_date_added'=>'now()',\n\t\t\t\t\t\t'products_date_available'=>$product['products_date_available'],\n\t\t\t\t\t\t'products_weight'=>$product['products_weight'],\n\t\t\t\t\t\t'products_status'=>$products_status,\n\t\t\t\t\t\t'products_tax_class_id'=>$product['products_tax_class_id'],\n\t\t\t\t\t\t'manufacturers_id'=>$product['manufacturers_id'],\n\t\t\t\t\t\t'product_template'=>$product['product_template'],\n\t\t\t\t\t\t'options_template'=>$product['options_template'],\n\t\t\t\t\t\t'products_fsk18'=>$product['products_fsk18'],\n\t\t\t\t\t\t);\t\t\n\t\t\t\t\t\t\n\t\t$customers_statuses_array = olc_get_customers_statuses();\n\n\t\tfor ($i = 0; $n = sizeof($customers_statuses_array), $i < $n; $i ++) {\n\t\t\tif (isset($customers_statuses_array[$i]['id']))\n\t\t\t\t$sql_data_array = array_merge($sql_data_array, array ('group_permission_'.$customers_statuses_array[$i]['id'] => $product['group_permission_'.$customers_statuses_array[$i]['id']]));\n\n\t\t}\n\t\t\n\t\tolc_db_perform(TABLE_PRODUCTS, $sql_data_array);\n\n\t\t//get duplicate id\n\t\t$dup_products_id = olc_db_insert_id();\n\t\t\n\t\t//duplicate image if there is one\n\t\tif ($product['products_image'] != '') {\n\n\t\t\t//build new image_name for duplicate\n\t\t\t$pname_arr = explode('.', $product['products_image']);\n\t\t\t$nsuffix = array_pop($pname_arr);\n\t\t\t$dup_products_image_name = $dup_products_id.'_0'.'.'.$nsuffix;\n\n\t\t\t//write to DB\n\t\t\txtDBquery(\"SQL_UPDATE \".TABLE_PRODUCTS.\" SET products_image = '\".$dup_products_image_name.\"' WHERE products_id = '\".$dup_products_id.\"'\");\n\n\t\t\t@ copy(DIR_FS_CATALOG_ORIGINAL_IMAGES.'/'.$product['products_image'], DIR_FS_CATALOG_ORIGINAL_IMAGES.'/'.$dup_products_image_name);\n\t\t\t@ copy(DIR_FS_CATALOG_INFO_IMAGES.'/'.$product['products_image'], DIR_FS_CATALOG_INFO_IMAGES.'/'.$dup_products_image_name);\n\t\t\t@ copy(DIR_FS_CATALOG_THUMBNAIL_IMAGES.'/'.$product['products_image'], DIR_FS_CATALOG_THUMBNAIL_IMAGES.'/'.$dup_products_image_name);\n\t\t\t@ copy(DIR_FS_CATALOG_POPUP_IMAGES.'/'.$product['products_image'], DIR_FS_CATALOG_POPUP_IMAGES.'/'.$dup_products_image_name);\n\n\t\t} else {\n\t\t\tunset ($dup_products_image_name);\n\t\t}\n\n\t\t$description_query = olc_db_query(\"SELECT *\n\t\t\t\t \t FROM \".TABLE_PRODUCTS_DESCRIPTION.\"\n\t\t\t\t \t WHERE products_id = '\".olc_db_input($src_products_id).\"'\");\n\n\t\t$old_products_id = olc_db_input($src_products_id);\n\t\twhile ($description = olc_db_fetch_array($description_query)) {\n\t\t\tolc_db_query(\"INSERT INTO \".TABLE_PRODUCTS_DESCRIPTION.\"\n\t\t\t\t\t\t \t\t SET products_id = '\".$dup_products_id.\"', \n\t\t\t\t\t\t \t\t language_id = '\".$description['language_id'].\"', \n\t\t\t\t\t\t \t\t products_name = '\".addslashes($description['products_name']).\"', \n\t\t\t\t\t\t \t\t products_description = '\".addslashes($description['products_description']).\"', \n\t\t\t\t\t\t \t\t products_keywords = '\".addslashes($description['products_keywords']).\"',\n\t\t\t\t\t\t \t\t products_short_description = '\".addslashes($description['products_short_description']).\"',\n\t\t\t\t\t\t \t\t products_meta_title = '\".addslashes($description['products_meta_title']).\"', \n\t\t\t\t\t\t \t\t products_meta_description = '\".addslashes($description['products_meta_description']).\"', \n\t\t\t\t\t\t \t\t products_meta_keywords = '\".addslashes($description['products_meta_keywords']).\"', \n\t\t\t\t\t\t \t\t products_url = '\".$description['products_url'].\"', \n\t\t\t\t\t\t \t\t products_viewed = '0'\");\n\t\t}\n\n\t\tolc_db_query(\"INSERT INTO \".TABLE_PRODUCTS_TO_CATEGORIES.\"\n\t\t\t\t \t SET products_id = '\".$dup_products_id.\"',\n\t\t\t\t \t categories_id = '\".olc_db_input($dest_categories_id).\"'\");\n\n\t\t//mo_images by [email protected]\n\t\t$mo_images = olc_get_products_mo_images($src_products_id);\n\t\tif (is_array($mo_images)) {\n\t\t\tforeach ($mo_images AS $dummy => $mo_img) {\n\n\t\t\t\t//build new image_name for duplicate\n\t\t\t\t$pname_arr = explode('.', $mo_img['image_name']);\n\t\t\t\t$nsuffix = array_pop($pname_arr);\n\t\t\t\t$dup_products_image_name = $dup_products_id.'_'.$mo_img['image_nr'].'.'.$nsuffix;\n\n\t\t\t\t//copy org images to duplicate\n\t\t\t\t@ copy(DIR_FS_CATALOG_ORIGINAL_IMAGES.'/'.$mo_img['image_name'], DIR_FS_CATALOG_ORIGINAL_IMAGES.'/'.$dup_products_image_name);\n\t\t\t\t@ copy(DIR_FS_CATALOG_INFO_IMAGES.'/'.$mo_img['image_name'], DIR_FS_CATALOG_INFO_IMAGES.'/'.$dup_products_image_name);\n\t\t\t\t@ copy(DIR_FS_CATALOG_THUMBNAIL_IMAGES.'/'.$mo_img['image_name'], DIR_FS_CATALOG_THUMBNAIL_IMAGES.'/'.$dup_products_image_name);\n\t\t\t\t@ copy(DIR_FS_CATALOG_POPUP_IMAGES.'/'.$mo_img['image_name'], DIR_FS_CATALOG_POPUP_IMAGES.'/'.$dup_products_image_name);\n\n\t\t\t\tolc_db_query(\"INSERT INTO \".TABLE_PRODUCTS_IMAGES.\"\n\t\t\t\t\t\t\t\t \t\t\t SET products_id = '\".$dup_products_id.\"',\n\t\t\t\t\t\t\t\t \t\t\t image_nr = '\".$mo_img['image_nr'].\"',\n\t\t\t\t\t\t\t\t \t\t\t image_name = '\".$dup_products_image_name.\"'\");\n\t\t\t}\n\t\t}\n\t\t//mo_images EOF\n\n\t\t$products_id = $dup_products_id;\n\n\t\t$i = 0;\n\t\t$group_query = olc_db_query(\"SELECT customers_status_id\n\t\t\t\t \t FROM \".TABLE_CUSTOMERS_STATUS.\"\n\t\t\t\t \t WHERE language_id = '\".(int) $_SESSION['languages_id'].\"'\n\t\t\t\t \t AND customers_status_id != '0'\");\n\n\t\twhile ($group_values = olc_db_fetch_array($group_query)) {\n\t\t\t// load data into array\n\t\t\t$i ++;\n\t\t\t$group_data[$i] = array ('STATUS_ID' => $group_values['customers_status_id']);\n\t\t}\n\n\t\tfor ($col = 0, $n = sizeof($group_data); $col < $n +1; $col ++) {\n\t\t\tif ($group_data[$col]['STATUS_ID'] != '') {\n\n\t\t\t\t$copy_query = olc_db_query(\"SELECT quantity,\n\t\t\t\t\t\t\t\t \t\t\t personal_offer\n\t\t\t\t\t\t\t\t \t\t\t FROM personal_offers_by_customers_status_\".$group_data[$col]['STATUS_ID'].\"\n\t\t\t\t\t\t\t\t \t\t\t WHERE products_id = '\".$old_products_id.\"'\");\n\n\t\t\t\twhile ($copy_data = olc_db_fetch_array($copy_query)) {\n\t\t\t\t\tolc_db_query(\"INSERT INTO personal_offers_by_customers_status_\".$group_data[$col]['STATUS_ID'].\"\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t SET price_id = '',\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t products_id = '\".$products_id.\"',\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t quantity = '\".$copy_data['quantity'].\"',\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t personal_offer = '\".$copy_data['personal_offer'].\"'\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "public function shouldGetProductWhenGivenIdExist()\n {\n $product = factory(Product::class)->create();\n\n $this->json($this->method, str_replace(':id', $product->id, $this->endpoint))\n ->assertOk()\n ->assertJsonPath('data.id', $product->id)\n ->assertJsonPath('data.short_name', $product->short_name)\n ->assertJsonPath('data.internal_code', $product->internal_code)\n ->assertJsonPath('data.customer_code', $product->customer_code)\n ->assertJsonPath('data.wire_gauge_in_bwg', $product->wire_gauge_in_bwg)\n ->assertJsonPath('data.wire_gauge_in_mm', $product->wire_gauge_in_mm);\n }", "public function duplicate() {\n \t\t\n \t\ttry {\n\t\t\t\n\t \t\t// start duplicate\n\t\t\t$class = get_class($this);\n \t\t\t$duplicate = new $class;\n \t\t\t\n\t \t\t// duplicate row fields\n\t \t\t$this->duplicateRow($duplicate);\n\t \t\t\n \t\t\t// duplicate data\n\t \t\t$this->duplicateData($duplicate);\n\t \t\t\n\t \t\t// duplicate items\n\t \t\t$this->duplicateChildren($duplicate);\n\t \t\t\n\t \t\t$duplicate->setDuplicate($this->getId());\n \t\t\n \t\t\treturn $duplicate;\n \t\t\t\n \t\t} catch (Exception $e) {\n \t\t\n \t\t\treturn false;\n \t\t\t\n \t\t}\n \t\t\n \t}", "protected function addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addVendorComplianceSurveyFileByURL'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFileByURL'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function checkReport($id)\n {\n if ($_SERVER[\"REQUEST_METHOD\"] != \"GET\")\n {\n echo $this->encodeJson(\"Wrong resource call\", 0xDEAD, NULL);\n\n return;\n }\n\n $this->inspection->id = $id;\n\n // read the details of product to be edited\n $report_count = $this->inspection->countOne();\n\n if ($report_count > 0)\n {\n echo $this->encodeJson(\"Inspections found.\", 0x00, $report_count);\n }\n else\n {\n echo $this->encodeJson(\"No inspections found.\", 0xD1ED, NULL);\n }\n }", "function test_addStore_duplicate()\n {\n $brand_name = \"Nike\";\n $test_brand = new Brand($brand_name);\n $test_brand->save();\n\n $store_name = 'Nordstorm';\n $test_store = new Store($store_name);\n $test_store->save();\n\n $test_brand->addStore($test_store);\n $test_brand->addStore($test_store);\n\n $result = $test_brand->getStores();\n\n $this->assertEquals([$test_store], $result);\n }", "public function testDuplicate()\n {\n $this->duplicate(\n array_merge(\n $this->_createData1(),\n $this->_createData2()\n ),\n array_merge(\n $this->_expectData1(),\n $this->_expectData2()\n )\n );\n }", "abstract public function getUnique($id);", "public function set_security_group($spectrum_project, $spectrum_survey) {\n\t\t$survey_group_exists = false;\n\t\t$api_group_spectrum_survey_ids = array();\n\t\tif (!empty($spectrum_survey['survey_grouping']['survey_ids'])) {\n\t\t\t$api_group_spectrum_survey_ids = $spectrum_survey['survey_grouping']['survey_ids'];\n\t\t\t$survey_group_exists = true; \n\t\t}\n\t\t\n\t\tif ($survey_group_exists != $spectrum_project['SpectrumProject']['survey_group_exists']) {\n\t\t\t$this->SpectrumProject->create();\n\t\t\t$this->SpectrumProject->save(array('SpectrumProject' => array(\n\t\t\t\t'id' => $spectrum_project['SpectrumProject']['id'],\n\t\t\t\t'survey_group_exists' => $survey_group_exists\n\t\t\t)), true, array('survey_group_exists'));\n\t\t}\n\t\t\n\t\t$db_group_spectrum_survey_ids = $this->SpectrumSurveyGroup->find('list', array(\n\t\t\t'fields' => array('SpectrumSurveyGroup.id', 'SpectrumSurveyGroup.group_spectrum_survey_id'),\n\t\t\t'conditions' => array(\n\t\t\t\t'SpectrumSurveyGroup.project_id' => $spectrum_project['SpectrumProject']['project_id'],\n\t\t\t\t'SpectrumSurveyGroup.deleted is null'\n\t\t\t)\n\t\t));\n\t\t\n\t\tif ($survey_group_exists) {\n\t\t\t$missing_from_db = array_diff($api_group_spectrum_survey_ids, $db_group_spectrum_survey_ids); \n\t\t\t$missing_from_api = array_diff($db_group_spectrum_survey_ids, $api_group_spectrum_survey_ids); \n\t\t}\n\t\telse {\n\t\t\t$missing_from_db = array();\n\t\t\t$missing_from_api = $db_group_spectrum_survey_ids;\n\t\t}\n\t\t\n\t\tif (!empty($missing_from_db)) {\n\t\t\t$spectrum_projects = $this->SpectrumProject->find('list', array(\n\t\t\t\t'fields' => array('SpectrumProject.spectrum_survey_id', 'SpectrumProject.project_id'),\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'SpectrumProject.spectrum_survey_id' => $missing_from_db\n\t\t\t\t)\n\t\t\t));\n\t\t\tforeach ($missing_from_db as $group_spectrum_survey_id) {\n\t\t\t\t$this->SpectrumSurveyGroup->create();\n\t\t\t\t$this->SpectrumSurveyGroup->save(array('SpectrumSurveyGroup' => array(\n\t\t\t\t\t'project_id' => $spectrum_project['SpectrumProject']['project_id'],\n\t\t\t\t\t'spectrum_survey_id' => $spectrum_project['SpectrumProject']['spectrum_survey_id'],\n\t\t\t\t\t'group_spectrum_survey_id' => $group_spectrum_survey_id,\n\t\t\t\t\t'group_project_id' => isset($spectrum_projects[$group_spectrum_survey_id]) ? $spectrum_projects[$group_spectrum_survey_id] : ''\n\t\t\t\t)));\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!empty($missing_from_api)) {\n\t\t\tforeach ($missing_from_api as $group_spectrum_survey_id) {\n\t\t\t\t$key = array_search($group_spectrum_survey_id, $db_group_spectrum_survey_ids); \n\t\t\t\tif ($key !== false) {\n\t\t\t\t\t$this->SpectrumSurveyGroup->create();\n\t\t\t\t\t$this->SpectrumSurveyGroup->save(array('SpectrumSurveyGroup' => array(\n\t\t\t\t\t\t'id' => $key,\n\t\t\t\t\t\t'deleted' => date(DB_DATETIME),\n\t\t\t\t\t\t'modified' => false\n\t\t\t\t\t)), true, array('deleted')); \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static function insertSurvey()\n\t{\n\t\tif(isset($_POST['SurveyID']) && (is_numeric($_POST['SurveyID'])))\n\t\t{//insert response!\n\t\t\t$iConn = IDB::conn();\n\t\t\t// turn off auto-commit\n\t\t\tmysqli_autocommit($iConn, FALSE);\n\t\t\t//insert response\n\t\t\t$sql = sprintf(\"INSERT into \" . PREFIX . \"responses(SurveyID,DateAdded) VALUES ('%d',NOW())\",$_POST['SurveyID']);\n\t\t\t$result = @mysqli_query($iConn,$sql); //moved or die() below!\n\t\t\t\n\t\t\tif(!$result)\n\t\t\t{// if error, roll back transaction\n\t\t\t\tmysqli_rollback($iConn);\n\t\t\t\tdie(trigger_error(\"Error Entering Response: \" . mysqli_error($iConn), E_USER_ERROR));\n\t\t\t} \n\t\t\t\n\t\t\t//retrieve responseid\n\t\t\t$ResponseID = mysqli_insert_id($iConn); //get ID of last record inserted\n\t\t\t\n\t\t\tif(!$result)\n\t\t\t{// if error, roll back transaction\n\t\t\t\tmysqli_rollback($iConn);\n\t\t\t\tdie(trigger_error(\"Error Retrieving ResponseID: \" . mysqli_error($iConn), E_USER_ERROR));\n\t\t\t} \n\t\n\t\t\t//loop through and insert answers\n\t\t\tforeach($_POST as $varName=> $value)\n\t\t\t{//add objects to collection\n\t\t\t\t $qTest = substr($varName,0,2); //check for \"obj_\" added to numeric type\n\t\t\t\t if($qTest==\"q_\")\n\t\t\t\t {//add choice!\n\t\t\t\t \t$QuestionID = substr($varName,2); //identify question\n\t\t\t\t \t\n\t\t\t\t \tif(is_array($_POST[$varName]))\n\t\t\t\t \t{//checkboxes are arrays, and we need to loop through each checked item to insert\n\t\t\t\t\t \twhile (list ($key,$value) = @each($_POST[$varName])){\n\t\t\t\t\t\t \t$sql = \"insert into \" . PREFIX . \"responses_answers(ResponseID,QuestionID,AnswerID) values($ResponseID,$QuestionID,$value)\";\n\t\t\t\t\t \t\t$result = @mysqli_query($iConn,$sql);\n\t\t\t\t\t \t\tif(!$result)\n\t\t\t\t\t\t\t{// if error, roll back transaction\n\t\t\t\t\t\t\t\tmysqli_rollback($iConn);\n\t\t\t\t\t\t\t\tdie(trigger_error(\"Error Inserting Choice (array/checkbox): \" . mysqli_error($iConn), E_USER_ERROR));\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t}\n\t\t\t \t\t}else{//not an array, so likely radio or select\n\t\t\t\t \t\t$sql = \"insert into \" . PREFIX . \"responses_answers(ResponseID,QuestionID,AnswerID) values($ResponseID,$QuestionID,$value)\";\n\t\t\t\t \t $result = @mysqli_query($iConn,$sql);\n\t\t\t\t \t if(!$result)\n\t\t\t\t\t\t{// if error, roll back transaction\n\t\t\t\t\t\t\tmysqli_rollback($iConn);\n\t\t\t\t\t\t\tdie(trigger_error(\"Error Inserting Choice (single/radio): \" . mysqli_error($iConn), E_USER_ERROR));\n\t\t\t\t\t\t} \n\t\t\t \t\t}\n\t\t\t\t }\n\t\t\t}\n\t\t\t//we got this far, lets COMMIT!\n\t\t\tmysqli_commit($iConn);\n\t\t\t\n\t\t\t// our transaction is over, turn autocommit back on\n\t\t\tmysqli_autocommit($iConn, TRUE);\n\t\t\t\n\t\t\t//count total responses, update TotalResponses\n\t\t\tself::responseCount((int)$_POST['SurveyID']); //convert to int on way in!\n\t\t\treturn TRUE; #\n\t\t}else{\n\t\t\treturn FALSE;\t\n\t\t}\n\n\t}", "public function ajax_checkduplicate()\r\n {}", "public function ajax_checkduplicate()\r\n {}", "public function testDeleteVendorComplianceSurveyTag()\n {\n }", "public function testAddVendorComplianceSurveyFileByURL()\n {\n }", "function releaseSurvey($id=null)\r\n {//deprecated, this function is not used\r\n $eventArray = array();\r\n\r\n $this->Survey->setId($id);\r\n $this->params['data'] = $this->Survey->read();\r\n $this->params['data']['Survey']['released'] = 1;\r\n\r\n //add survey to eventsx();\r\n //set up Event params\r\n $eventArray['Event']['title'] = $this->params['data']['Survey']['name'];\r\n $eventArray['Event']['course_id'] = $this->params['data']['Survey']['course_id'];\r\n $eventArray['Event']['event_template_type_id'] = 3;\r\n $eventArray['Event']['template_id'] = $this->params['data']['Survey']['id'];\r\n $eventArray['Event']['self_eval'] = 0;\r\n $eventArray['Event']['com_req'] = 0;\r\n $eventArray['Event']['due_date'] = $this->params['data']['Survey']['due_date'];\r\n $eventArray['Event']['release_date_begin'] = $this->params['data']['Survey']['release_date_begin'];\r\n $eventArray['Event']['release_date_end'] = $this->params['data']['Survey']['release_date_end'];\r\n $eventArray['Event']['creator_id'] = $this->params['data']['Survey']['creator_id'];\r\n $eventArray['Event']['created'] = $this->params['data']['Survey']['created'];\r\n\r\n //Save Data\r\n if ($this->Event->save($eventArray)) {\r\n //Save Groups for the Event\r\n //$this->GroupEvent->insertGroups($this->Event->id, $this->params['data']['Event']);\r\n\r\n //$this->redirect('/events/index/The event is added successfully.');\r\n }\r\n\r\n $this->Survey->save($this->params['data']);\r\n\r\n\r\n\t\t$this->set('data', $this->Survey->findAll(null, null, 'id'));\r\n\t\t$this->set('message', 'The survey was released.');\r\n\t\t$this->index();\r\n\t\t$this->render('index');\r\n\t}", "private function prepareCreateOrUpdate($id, $view){\n\t\t// $this->performAjaxValidation($model);\n\t\t\n\t\tlist($model, $oldPicture) = $this->getModelAndOldPic($id);\n\t\t\n\t\t$ing_id = null;\n\t\tif(isset($_GET['ing_id'])){\n\t\t\t$ing_id = $_GET['ing_id'];\n\t\t\t\n\t\t\tif (!isset($model->ING_ID) && $ing_id){\n\t\t\t\t$model->ING_ID = $ing_id;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(isset($_POST['Products'])){\n\t\t\t$model->attributes=$_POST['Products'];\n\t\t\tif (isset($oldPicture)){\n\t\t\t\tFunctions::updatePicture($model,'PRO_IMG', $oldPicture);\n\t\t\t}\n\t\t\t\n\t\t\tif(isset($_POST['PRD_ID'])){\n\t\t\t\tif (!isset($model->oldProducers) || $model->oldProducers == null){\n\t\t\t\t\t$model->oldProducers = $model->producers;\n\t\t\t\t}\n\t\t\t\t$criteria=new CDbCriteria;\n\t\t\t\t$criteria->compare('PRD_ID',$_POST['PRD_ID']);\n\t\t\t\t$producers = new Producers;\n\t\t\t\t$model->producers = $producers->findAll($criteria, true);\n\t\t\t\t//$model->producers = Products::model()->findall($criteria);\n\t\t\t} else {\n\t\t\t\t$model->producers = array();\n\t\t\t}\n\t\t\t\n\t\t\tif (isset($_POST['PACKAGE_MULT'])){\n\t\t\t\t$model->PRO_PACKAGE_GRAMMS = $model->PRO_PACKAGE_GRAMMS * $_POST['PACKAGE_MULT'];\n\t\t\t}\n\t\t\t\n\t\t\tYii::app()->session[$this->createBackup] = $model;\n\t\t\tYii::app()->session[$this->createBackup.'_Time'] = time();\n\t\t\tif ($model->validate()){\n\t\t\t\t$duplicates = null;\n\t\t\t\tif (!isset($model->PRO_ID)){\n\t\t\t\t\t$duplicates = $this->checkDuplicate($model);\n\t\t\t\t}\n\t\t\t\tif ($duplicates != null && count($duplicates)>0 && !isset($_POST['ignoreDuplicates'])){\n\t\t\t\t\tforeach($duplicates as $dup_type => $values){\n\t\t\t\t\t\tif ($this->errorText != ''){\n\t\t\t\t\t\t\t$this->errorText .= '<br />';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($dup_type == 'TITLE'){\n\t\t\t\t\t\t\t$this->errorText .='<p>There are already Products with a similar title:</p>';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->errorText .='<p>There are already Products connecting to the same Ingredient entry:</p>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tforeach($values as $dup){\n\t\t\t\t\t\t\t$this->errorText .= $dup . '<br />';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->errorText .= CHtml::label('Ignore possible duplicates','ignoreDuplicates') . CHtml::checkBox('ignoreDuplicates');\n\t\t\t\t} else {\n\t\t\t\t\tif(Yii::app()->user->demo){\n\t\t\t\t\t\t$this->errorText = sprintf($this->trans->DEMO_USER_CANNOT_CHANGE_DATA, $this->createUrl(\"profiles/register\"));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$transaction=$model->dbConnection->beginTransaction();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif($model->save()){\n\t\t\t\t\t\t\t\t//Check Producer to add / to remove\n\t\t\t\t\t\t\t\t$producersExist = array();\n\t\t\t\t\t\t\t\tif (isset($model->oldProducers) && $model->oldProducers != null && count($model->oldProducers)>0){\n\t\t\t\t\t\t\t\t\t$toRemove = array_merge(array(),$model->oldProducers);\n\t\t\t\t\t\t\t\t\tfor($i=0; $i<count($model->producers); $i++){\n\t\t\t\t\t\t\t\t\t\t$found = false;\n\t\t\t\t\t\t\t\t\t\t$producersStatus[$i] = 'exist';\n\t\t\t\t\t\t\t\t\t\t$j=0;\n\t\t\t\t\t\t\t\t\t\tforeach($toRemove as $oldProducer){\n\t\t\t\t\t\t\t\t\t\t\tif ($model->producers[$i]->PRD_ID == $oldProducer->PRD_ID){\n\t\t\t\t\t\t\t\t\t\t\t\t$producersExist[$i] = true;\n\t\t\t\t\t\t\t\t\t\t\t\tunset($toRemove[$j]);\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t$j++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor($i=0; $i<count($model->producers); $i++){\n\t\t\t\t\t\t\t\t\tif (!isset($producersExist[$i]) || !$producersExist[$i]){\n\t\t\t\t\t\t\t\t\t\t$ProToPrd = new ProToPrd;\n\t\t\t\t\t\t\t\t\t\t$ProToPrd->PRO_ID = $model->PRO_ID;\n\t\t\t\t\t\t\t\t\t\t$ProToPrd->PRD_ID = $model->producers[$i]->PRD_ID;\n\t\t\t\t\t\t\t\t\t\t//try {\n\t\t\t\t\t\t\t\t\t\t\t$ProToPrd->Save();\n\t\t\t\t\t\t\t\t\t\t//} catch(Exception $e) {\n\t\t\t\t\t\t\t\t\t\t//\t$this->errorText .= 'Exception occured: ' . $e . '<br />';\n\t\t\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$model->oldProducers = $model->producers;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (isset($toRemove) && $toRemove!=null && count($toRemove)>0){\n\t\t\t\t\t\t\t\t\t$removeIDs = array();\n\t\t\t\t\t\t\t\t\tforeach($toRemove as $producer){\n\t\t\t\t\t\t\t\t\t\tif (isset($producer)){\n\t\t\t\t\t\t\t\t\t\t\tarray_push($removeIDs, $producer->PRD_ID);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(Yii::app()->user->demo){\n\t\t\t\t\t\t\t\t\t\t$this->errorText = sprintf($this->trans->DEMO_USER_CANNOT_CHANGE_DATA, $this->createUrl(\"profiles/register\"));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tProToPrd::model()->deleteAllByAttributes(array('PRO_ID'=>$model->PRO_ID, 'PRD_ID'=>$removeIDs));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tunset(Yii::app()->session[$this->createBackup]);\n\t\t\t\t\t\t\t\tunset(Yii::app()->session[$this->createBackup.'_Time']);\n\t\t\t\t\t\t\t\tif (isset($_POST['saveAddAssing'])){\n\t\t\t\t\t\t\t\t\t//create search with used ingredient, for view after save (if there is not set a search already)\n\t\t\t\t\t\t\t\t\t$Session_Product = Yii::app()->session[$this->searchBackup];\n\t\t\t\t\t\t\t\t\tif (isset($Session_Product)){\n\t\t\t\t\t\t\t\t\t\tif (!isset($Session_Product['query']) && !isset($Session_Product['ing_id']) && !isset($Session_Product['model'])){\n\t\t\t\t\t\t\t\t\t\t\t$Session_Product = array();\n\t\t\t\t\t\t\t\t\t\t\t$Session_Product['ing_id'] = $model->ING_ID;\n\t\t\t\t\t\t\t\t\t\t\t$Session_Product['time'] = time();\n\t\t\t\t\t\t\t\t\t\t\tYii::app()->session[$this->searchBackup] = $Session_Product;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$Session_Product = array();\n\t\t\t\t\t\t\t\t\t\t$Session_Product['ing_id'] = $model->ING_ID;\n\t\t\t\t\t\t\t\t\t\t$Session_Product['time'] = time();\n\t\t\t\t\t\t\t\t\t\tYii::app()->session[$this->searchBackup] = $Session_Product;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$dest = array('stores/assign', 'pro_id'=>$model->PRO_ID);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$dest = array('view', 'id'=>$model->PRO_ID);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$this->forwardAfterSave($dest);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch(Exception $e) {\n\t\t\t\t\t\t\t$this->errorText .= 'Exception occured -&gt; rollback. Exception was: ' . $e . '<br />';\n\t\t\t\t\t\t\t$transaction->rollBack();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($model->ING_ID) && (!$model->ingredient || !$model->ingredient->__get('ING_NAME_'.Yii::app()->session['lang']) || $model->ING_ID != $model->ingredient->ING_ID)){\n\t\t\t$model->ingredient = Ingredients::model()->findByPk($model->ING_ID);\n\t\t}\n\t\t$ecology = Yii::app()->db->createCommand()->select('ECO_ID,ECO_DESC_'.Yii::app()->session['lang'])->from('ecology')->queryAll();\n\t\t$ecology = CHtml::listData($ecology,'ECO_ID','ECO_DESC_'.Yii::app()->session['lang']);\n\t\t$ethicalCriteria = Yii::app()->db->createCommand()->select('ETH_ID,ETH_DESC_'.Yii::app()->session['lang'])->from('ethical_criteria')->queryAll();\n\t\t$ethicalCriteria = CHtml::listData($ethicalCriteria,'ETH_ID','ETH_DESC_'.Yii::app()->session['lang']);\n\t\t\n\t\t$this->checkRenderAjax($view,array(\n\t\t\t'model'=>$model,\n\t\t\t'ecology'=>$ecology,\n\t\t\t'ethicalCriteria'=>$ethicalCriteria,\n\t\t));\n\t}", "public function duplicate($id, UnidadUso $unidadUso)\n\t{\n\t\t$unidadUso=$unidadUso->find($id);\n\t\treturn view('unidadUsos.duplicate', compact('unidadUso'))\n\t\t\t->with( 'list', UnidadUso::getListFromAllRelationApps() );\n\t}", "public function testGetVendorComplianceSurveyByFilter()\n {\n }", "private function validateForDuplicate($event_id, $user_id){\n return $this->UpdateEventDetailModel->getJoinStatusByUseridAndEventid($event_id,$user_id);\n }", "public function duplicateQuizRecord($data) {\n \n \tSWPLogManager::log(\"Duplicte qiuz\",array(\"data\"=>$data),TLogger::INFO,$this,\"duplicateQuizRecord\",\"SWP\");\n\t\t//$contentId = VideoRecord::getContentID();\n\n\t\t//\n\t\t//\tInserts quizes data into videos table.\n\t\t//\n\t\t\n\t\t$dataQuiz = $this->insertQuizData($data,$contentId);\n\t\t\n\t\t//\n\t\t//\tInserts quiz's questions information into quizes table.\n\t\t//\n\t\t\n\t\t$this->insertQuizQuestions( $data,$dataQuiz->content_id );\n\t\t\n\t\t//\n\t\t//\tInserts associated tags information for the quiz.\n\t\t//\n\t\t\n\t\t$this->insertVideoContainers( $data,$dataQuiz->content_id );\n\t\tSWPLogManager::log(\"Return content id\",$dataQuiz->content_id,TLogger::INFO,$this,\"duplicateQuizRecord\",\"SWP\");\n\t\treturn array(\"fromDuplicate\" => true, \"contentId\"=>$dataQuiz->content_id);\n\t}", "function surveyQuestion($id = null) {\n $this->autoRender = false; // turn off autoRender because there is no view named surveyQuestion\n $this->layout = 'ajax'; // use the blank ajax layout\n if($this->request->is('ajax')) { // only proceed if this is an ajax request\n if (!$this->request->is('post')) {\n if ($id != null) { // existing question being edited so retrieve it from the session\n if ($this->Session->check('SurveyQuestion.new')) {\n $tempData = $this->Session->read('SurveyQuestion.new');\n $this->set('question_index', $id);\n $question = $tempData[$id];\n $question['Choice']['value'] = $this->Survey->Question->Choice->CombineChoices($question['Choice']);\n $this->request->data['Question'] = $question; // send the existing question to the view\n }\n }\n $this->render('/Elements/question_form');\n } else { // returning with data from the form here\n $tempArr = null;\n if ($this->Session->check('SurveyQuestion.new')) {\n $tempArr = $this->Session->read('SurveyQuestion.new');\n }\n $this->request->data['Question']['Choice'] = $this->Survey->Question->Choice->SplitChoices($this->request->data['Question']['Choice']['value']);\n $this->Survey->Question->set($this->request->data);\n $checkfieldsArr = $this->Survey->Question->schema();\n unset($checkfieldsArr['id']);\n unset($checkfieldsArr['survey_id']);\n unset($checkfieldsArr['order']);\n $checkfields = array_keys($checkfieldsArr);\n if ($this->Survey->Question->validates(array('fieldList' => $checkfields))) {\n if (is_null($id)) {\n $tempArr[] = $this->request->data['Question'];\n } else {\n $tempArr[$id] = $this->request->data['Question'];\n }\n $this->Session->write('SurveyQuestion.new',$tempArr);\n } else {\n $errors = $this->Survey->Question->invalidFields();\n $this->Session->setFlash('Invalid question: '.$errors['question'][0], true, null, 'error');\n }\n $this->set('questions', $tempArr);\n $this->layout = 'ajax';\n $this->render('/Elements/manage_questions');\n }\n }\n }", "public function storeCommissionData($commissionDataArr) {\r\n $model = Mage::getModel('marketplace/commission');\r\n $duplicateProduct = $model->getCollection()\r\n ->addFieldToSelect('order_id')\r\n ->addFieldToFilter('order_id',$commissionDataArr['order_id'])\r\n ->addFieldToFilter('product_id',$commissionDataArr['product_id'])\r\n ->addFieldToFilter('seller_id',$commissionDataArr['seller_id']);\r\n if($duplicateProduct->getSize()){\r\n return false;\r\n }\r\n else {\r\n $model->setData($commissionDataArr);\r\n $model->save();\r\n return $model->getId();\r\n }\r\n }", "public function addMultipleQuestionBySurveyPolicy($data, $surveyId){\n \t$em = $this->getEntityManager();\n \t$qb = $em->createQueryBuilder();\n \t\n \t$sqlValue = \"\";\n \t\n \tforeach ($data as $key => $question) {\n \t\tif(isset($question['changeType'])){\n \t\t\t$question[\"typeQuestion\"] = $question[\"changeType\"];\n \t\t}\n \t\t$sqlValue .= \", ('', '\" . $surveyId . \"', '\" . $question[\"content\"] . \"', '\" . $question[\"typeQuestion\"] . \"', \".time().\", \" . time() . \")\" ;\n \t}\n \t\n \t$sqlValue = ltrim($sqlValue, \", \");\n \t$sql = \"INSERT INTO `\".$tableName.\"`(`id`, `surveyId`, `content`, `typeQuestion`, `createDate`, `updateDate`) VALUES \" . $sqlValue;\n \t\n \tif (empty($sqlValue)) {\n \t\treturn 0;\n \t}\n \t\n \t$connection = $this->getEntityManager()->getConnection();\n \t$result = $connection->executeUpdate($sql);\n \t\n \treturn $result;\n }", "public function testDeleteVendorComplianceSurveyFile()\n {\n }", "public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }", "public function get_survey()\n {\n // check the primary key value\n $primary_key_name = static::get_primary_key_name();\n if( is_null( $this->$primary_key_name ) )\n {\n log::warning( 'Tried to delete record with no id.' );\n return;\n }\n \n return new limesurvey\\surveys( $this->sid );\n }", "public function duplicateAction(Request $request, $customFormId)\n {\n $this->validateAccessForRole('ROLE_ACCESS_CUSTOMFORMS');\n\n try {\n $existingCustomForm = $this->getService('em')\n ->find('RZ\\Roadiz\\Core\\Entities\\CustomForm', (int) $customFormId);\n\n $newCustomForm = clone $existingCustomForm;\n\n $em = $this->getService(\"em\");\n\n foreach ($newCustomForm->getFields() as $field) {\n $em->persist($field);\n }\n\n $em->persist($newCustomForm);\n\n $em->flush();\n\n foreach ($newCustomForm->getFields() as $field) {\n $field->setCustomForm($newCustomForm);\n }\n\n $msg = $this->getTranslator()->trans(\"duplicated.custom.form.%name%\", [\n '%name%' => $existingCustomForm->getDisplayName(),\n ]);\n\n $this->publishConfirmMessage($request, $msg);\n\n return $this->redirect($this->getService('urlGenerator')\n ->generate(\n 'customFormsEditPage',\n [\"customFormId\" => $newCustomForm->getId()]\n ));\n } catch (\\Exception $e) {\n $request->getSession()->getFlashBag()->add(\n 'error',\n $this->getTranslator()->trans(\"impossible.duplicate.custom.form.%name%\", [\n '%name%' => $existingCustomForm->getDisplayName(),\n ])\n );\n $request->getSession()->getFlashBag()->add('error', $e->getMessage());\n\n return $this->redirect($this->getService('urlGenerator')\n ->generate(\n 'customFormsEditPage',\n [\"customFormId\" => $existingCustomForm->getId()]\n ));\n }\n }", "public function testGetDuplicateItemSubCategoryById()\n {\n }", "public function testAddVendorComplianceSurveyFile()\n {\n }", "public function getVendorId() {}" ]
[ "0.7375955", "0.67451006", "0.61819744", "0.57770336", "0.552282", "0.5482857", "0.5471979", "0.5366605", "0.51834106", "0.517411", "0.5128608", "0.51049936", "0.50872576", "0.50774026", "0.5064416", "0.50637686", "0.50333077", "0.5033139", "0.50024766", "0.49658948", "0.4956812", "0.4931161", "0.4910086", "0.48761582", "0.48260272", "0.47944808", "0.47771698", "0.47631815", "0.47595224", "0.47554427", "0.4739745", "0.47146243", "0.4710205", "0.46879464", "0.46787253", "0.46709973", "0.46634626", "0.46470472", "0.46458933", "0.46439067", "0.46269643", "0.46265525", "0.46213394", "0.46145833", "0.46033123", "0.4602734", "0.46025777", "0.45937037", "0.45903963", "0.45593765", "0.45524108", "0.45182747", "0.45108336", "0.44921476", "0.44913968", "0.4490475", "0.44721967", "0.44704527", "0.44651", "0.4464406", "0.446406", "0.4461701", "0.44566578", "0.4444378", "0.44316602", "0.4424304", "0.44227004", "0.4421664", "0.44199085", "0.44172272", "0.4410628", "0.4404415", "0.44043934", "0.43908286", "0.4381687", "0.43758124", "0.43737373", "0.4368618", "0.4359747", "0.43580198", "0.43566242", "0.43566242", "0.435368", "0.43534258", "0.4345434", "0.4342271", "0.43383083", "0.43323326", "0.43203944", "0.43151936", "0.43126228", "0.43042722", "0.43009034", "0.42976245", "0.4296983", "0.42929158", "0.4282119", "0.42740834", "0.42727885", "0.4267186" ]
0.70179504
1
Test case for getVendorComplianceSurveyByFilter Search vendorComplianceSurveys by filter.
public function testGetVendorComplianceSurveyByFilter() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVendorComplianceSurveyByFilter($filter = null, $page = null, $limit = null, $sort = null)\n {\n list($response) = $this->getVendorComplianceSurveyByFilterWithHttpInfo($filter, $page, $limit, $sort);\n return $response;\n }", "protected function getVendorComplianceSurveyByFilterRequest($filter = null, $page = null, $limit = null, $sort = null)\n {\n\n $resourcePath = '/beta/vendorComplianceSurvey/search';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // query params\n if ($filter !== null) {\n $queryParams['filter'] = ObjectSerializer::toQueryValue($filter);\n }\n // query params\n if ($page !== null) {\n $queryParams['page'] = ObjectSerializer::toQueryValue($page);\n }\n // query params\n if ($limit !== null) {\n $queryParams['limit'] = ObjectSerializer::toQueryValue($limit);\n }\n // query params\n if ($sort !== null) {\n $queryParams['sort'] = ObjectSerializer::toQueryValue($sort);\n }\n\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function _getVendorCollection()\n {\n if (is_null($this->_vendorCollection)) {\n $queryText = $this->getQueryText();\n $vendorShoptable = $this->_resourceConnection->getTableName('ced_csmarketplace_vendor_shop');\n $this->_vendorCollection = $this->_collectionFactory->create();\n $this->_vendorCollection->addAttributeToSelect('*');\n //$this->_vendorCollection->getSelect()->join(['vendor_shop' => $vendorShoptable], 'e.entity_id=vendor_shop.vendor_id AND vendor_shop.shop_disable=' . Vshop::ENABLED, ['shop_disable']);\n\n $this->_vendorCollection->addAttributeToFilter('meta_keywords', ['like' => '%' . $queryText . '%']);\n if ($this->_csmarketplaceHelper->isSharingEnabled()) {\n $this->_vendorCollection->addAttributeToFilter('website_id', $this->_storeManager->getStore()->getWebsiteId());\n }\n\n if ($this->_csmarketplaceHelper->getStoreConfig(HyperlocalHelper::MODULE_ENABLE)) {\n //------------------- Custom Filter----------------[START]\n\n $savedLocationFromSession = $this->_hyperlocalHelper->getShippingLocationFromSession();\n $filterType = $this->_csmarketplaceHelper->getStoreConfig(HyperlocalHelper::FILTER_TYPE);\n $radiusConfig = $this->_csmarketplaceHelper->getStoreConfig(HyperlocalHelper::FILTER_RADIUS);\n $distanceType = $this->_csmarketplaceHelper->getStoreConfig(HyperlocalHelper::DISTANCE_TYPE);\n $apiKey = $this->_csmarketplaceHelper->getStoreConfig(HyperlocalHelper::API_KEY);\n $filterProductsBy = $this->_csmarketplaceHelper->getStoreConfig(HyperlocalHelper::FILTER_PRODUCTS_BY);\n\n if ($filterProductsBy == 'vendor_location' || $filterType == 'distance') {\n $vendorIds = [0];\n if ($savedLocationFromSession) {\n\n /** Filter Products By Vendor Location */\n if ($filterType == 'city_state_country') {\n\n //------------------- Filter By City,country & state----------------[START]\n $locationCollection = $this->_hyperlocalHelper->getFilteredlocationByCityStateCountry($savedLocationFromSession);\n if ($locationCollection) {\n $vendorIds = $locationCollection->getColumnValues('vendor_id');\n }\n\n //------------------- Filter By City,country & state----------------[END]\n } elseif ($filterType == 'zipcode' && isset($savedLocationFromSession['filterZipcode'])) {\n\n //------------------- Filter By Zipcode----------------[START]\n $resource = $this->_resourceConnection;\n $tableName = $resource->getTableName('ced_cshyperlocal_shipping_area');\n $this->zipcodeCollection->getSelect()->joinLeft($tableName, 'main_table.location_id = ' . $tableName . '.id', ['status', 'is_origin_address']);\n $this->zipcodeCollection->addFieldToFilter('main_table.zipcode', $savedLocationFromSession['filterZipcode'])\n ->addFieldToFilter('status', Shiparea::STATUS_ENABLED);\n $this->zipcodeCollection->getSelect()->where(\"`is_origin_address` IS NULL OR `is_origin_address` = '0'\");\n $vendorIds = $this->zipcodeCollection->getColumnValues('vendor_id');\n //------------------- Filter By Zipcode----------------[END]\n } elseif ($filterType == 'distance') {\n $tolat = $savedLocationFromSession['latitude'];\n $tolong = $savedLocationFromSession['longitude'];\n $vIds = [];\n if ($tolat != '' && $tolong != '') {\n $vendorCollection = $this->_collectionFactory->create();\n $vendorCollection->addAttributeToSelect('*');\n if ($vendorCollection->count()) {\n foreach ($vendorCollection as $vendor) {\n $distance = $this->_hyperlocalHelper->calculateDistancebyHaversine($vendor->getLatitude(), $vendor->getLongitude(), $tolat, $tolong);\n if ($distance <= $radiusConfig) {\n $vendorIds[] = $vendor->getId();\n }\n }\n }\n }\n }\n $this->_vendorCollection->addAttributeToFilter('entity_id', ['in' => $vendorIds]);\n }\n }\n //------------------- Custom Filter ----------------[END]\n }\n\n $this->prepareSortableFields();\n }\n return $this->_vendorCollection;\n }", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function getVendorComplianceSurveyByFilterAsync($filter = null, $page = null, $limit = null, $sort = null)\n {\n return $this->getVendorComplianceSurveyByFilterAsyncWithHttpInfo($filter, $page, $limit, $sort)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "protected function getVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testGetVendorComplianceSurveyById()\n {\n }", "public function testAddVendorComplianceSurvey()\n {\n }", "protected function deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }", "public function getVendorComplianceSurveyByFilterWithHttpInfo($filter = null, $page = null, $limit = null, $sort = null)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey[]';\n $request = $this->getVendorComplianceSurveyByFilterRequest($filter, $page, $limit, $sort);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey[]',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "public function testComAdobeGraniteLicenseImplLicenseCheckFilter()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.adobe.granite.license.impl.LicenseCheckFilter';\n\n $crawler = $client->request('POST', $path);\n }", "protected function getVendorComplianceSurveyTagsRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyTags'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function addVendorComplianceSurvey($body)\n {\n list($response) = $this->addVendorComplianceSurveyWithHttpInfo($body);\n return $response;\n }", "public function testDeleteVendorComplianceSurvey()\n {\n }", "protected function getVendorComplianceSurveyFilesRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyFiles'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getDuplicateVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/duplicate/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function updateVendorComplianceSurvey($body)\n {\n $this->updateVendorComplianceSurveyWithHttpInfo($body);\n }", "public function getVendorComplianceSurveyByFilterAsyncWithHttpInfo($filter = null, $page = null, $limit = null, $sort = null)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey[]';\n $request = $this->getVendorComplianceSurveyByFilterRequest($filter, $page, $limit, $sort);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "protected function addVendorComplianceSurveyRequest($body)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function test_getLegacyLowstockContactByFilter() {\n\n }", "function wcfmgs_group_manager_enquery_filter( $sql ) {\r\n \t\r\n \tif( !wcfm_is_vendor() && empty( $_POST['enquiry_vendor'] ) ) {\r\n \t\t$is_marketplace = wcfm_is_marketplace();\r\n\t\t\tif( $is_marketplace ) {\r\n\t\t\t\t$allow_vendors = $this->wcfmgs_group_manager_allow_vendors_list( array(0), $is_marketplace );\r\n\t\t\t\t$sql .= \" AND `vendor_id` IN (\" . implode( ',', $allow_vendors ) . \")\";\r\n\t\t\t}\r\n \t}\r\n \t\r\n \treturn $sql;\r\n }", "public function getVendorComplianceSurveyByIdWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->getVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "public function addVendorComplianceSurveyWithHttpInfo($body)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->addVendorComplianceSurveyRequest($body);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 405:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\ApiResponse',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "protected function addVendorComplianceSurveyAuditRequest($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyAudit'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_audit' is set\n if ($vendor_compliance_survey_audit === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_audit when calling addVendorComplianceSurveyAudit'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/audit/{vendorComplianceSurveyAudit}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_audit !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyAudit' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_audit),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testComDayCqWcmCoreImplWCMDeveloperModeFilter()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.day.cq.wcm.core.impl.WCMDeveloperModeFilter';\n\n $crawler = $client->request('POST', $path);\n }", "public function testGetVendorComplianceSurveyFiles()\n {\n }", "public function testApplyFiltersLicence()\n {\n $sut = m::mock(ComplaintRepo::class)->makePartial()->shouldAllowMockingProtectedMethods();\n\n $qb = m::mock(QueryBuilder::class);\n $query = m::mock(QueryInterface::class);\n\n $query->shouldReceive('getCase')->with()->andReturn(null);\n $query->shouldReceive('getIsCompliance')->with()->andReturn(null);\n $query->shouldReceive('getLicence')->with()->andReturn(33);\n $query->shouldReceive('getApplication')->with()->andReturn(null);\n\n $qb->shouldReceive('expr->eq')->with('ca.licence', ':licence')->once()->andReturn('EXPR');\n $qb->shouldReceive('andWhere')->with('EXPR')->once()->andReturnSelf();\n $qb->shouldReceive('setParameter')->with('licence', 33)->once()->andReturnSelf();\n\n $mockQb = m::mock(\\Dvsa\\Olcs\\Api\\Domain\\QueryBuilder::class);\n $sut->shouldReceive('getQueryBuilder')->with()->once()->andReturn($mockQb);\n $mockQb->shouldReceive('with')->with('case', 'ca')->once()->andReturnSelf();\n\n $sut->applyListFilters($qb, $query);\n }", "public function testApplyFiltersCompliance()\n {\n $sut = m::mock(ComplaintRepo::class)->makePartial()->shouldAllowMockingProtectedMethods();\n\n $qb = m::mock(QueryBuilder::class);\n $query = m::mock(QueryInterface::class);\n\n $query->shouldReceive('getCase')->with()->andReturn(null);\n $query->shouldReceive('getIsCompliance')->with()->andReturn(324);\n $query->shouldReceive('getLicence')->with()->andReturn(null);\n $query->shouldReceive('getApplication')->with()->andReturn(null);\n\n $qb->shouldReceive('expr->eq')->with('m.isCompliance', ':isCompliance')->once()->andReturn('EXPR');\n $qb->shouldReceive('andWhere')->with('EXPR')->once()->andReturnSelf();\n $qb->shouldReceive('setParameter')->with('isCompliance', 324)->once()->andReturnSelf();\n\n $sut->applyListFilters($qb, $query);\n }", "protected function updateVendorComplianceSurveyRequest($body)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling updateVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testGetVendorComplianceSurveyTags()\n {\n }", "public function productsSurveys(){\n $user = $this->auth();\n if(empty($this->auth())){\n Utils::response(['status'=>false,'message'=>'Forbidden access.'],403);\n }\n $data = $this->getInput();\n if(($this->input->method() != 'post') || empty($data)){ \n Utils::response(['status'=>false,'message'=>'Bad request.'],400);\n }\n $validate = [\n ['field' =>'consumer_id','label'=>'Consumer ID','rules' => 'required' ],\n ];\n $errors = $this->ScannedproductsModel->validate($data,$validate);\n if(is_array($errors)){\n Utils::response(['status'=>false,'message'=>'Validation errors.','errors'=>$errors]);\n }\n\t\t$consumer_id = $data['consumer_id']; \n\t\t//echo $consumer_id; exit;\n $result = $this->ScannedproductsModel->findProductForConsumerSurvey($consumer_id);\n\t\t//$result = $this->ScannedproductsModel->sendFCMSurvey($mess,$consumer_id);\n\t\t\n\t\t//echo $result;\n\t\t/* \n if(!empty($result->product_video)){\n $result->product_video = Utils::setFileUrl($result->product_video);\n\t\t\techo $result->product_video;\n\t\t\t\n }*/\n\t\t\n\t\tif(empty($result)){\n $this->response(['status'=>false,'message'=>'Record not found'],200);\n }\n $this->response(['status'=>true,'message'=>'Push Surveys','data'=>$result]);\n\t\t\n }", "public function updateVendorComplianceSurveyWithHttpInfo($body)\n {\n $returnType = '';\n $request = $this->updateVendorComplianceSurveyRequest($body);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "protected function deleteVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling deleteVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function addVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling addVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testDestiny2GetVendor()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testAddVendorComplianceSurveyTag()\n {\n }", "function &getSurvey($schedConfId, $typeid = NULL) {\n \n if (is_null($typeid)) {\n $result =& $this->retrieve(\n 'SELECT type_id, users.user_id, users.first_name, users.affiliation, users.email, survey, registrations.date_registered, registrations.date_paid FROM registrations, users WHERE registrations.user_id = users.user_id AND sched_conf_id = ? '\n . 'ORDER BY registrations.date_registered'\n , array($schedConfId)\n );\n }\n else {\n $result =& $this->retrieve(\n 'SELECT type_id, users.user_id, users.first_name, users.affiliation, users.email, survey, registrations.date_registered, registrations.date_paid FROM registrations, users WHERE registrations.user_id = users.user_id AND sched_conf_id = ? AND type_id = ? '\n . 'ORDER BY registrations.date_registered'\n , array($schedConfId, $typeid)\n );\n }\n \n\t\t\n \n $output = array();\n\t\twhile (!$result->EOF) {\n $row =& $result->getRowAssoc(false);\n \n $type = $this->getRegistrationType($row['type_id']);\n \n //print_r($row);\n \n $data = array(\n 'type' => $type->getRegistrationTypeName(),\n 'user_id' => $row['user_id'], \n 'first_name' => $row['first_name'], \n 'affiliation' => $row['affiliation'], \n 'email' => $row['email'],\n 'date_registered' => $row['date_registered'],\n 'date_paid' => $row['date_paid']\n );\n \n $surveyArray = json_decode($row['survey'], true);\n //print_r($surveyArray);\n foreach ($surveyArray AS $key => $value) {\n $data[$key] = $value;\n }\n $output[] = $data;\n $result->MoveNext();\n\t\t}\n \n import('conference.ConferenceSettingsDAO');\n\t\t$csv = ConferenceSettingsDAO::_parseCsv($output);\n \n\t\t$result->Close();\n\t\tunset($result);\n return $csv;\n\t}", "private function loadOfferFilters() {\n\n // buscando usuários\n $companyId = $this->Session->read('CompanyLoggedIn.Company.id');\n $params = array(\n 'CompaniesUser' => array(\n 'fields' => array(\n 'CompaniesUser.user_id'\n ),\n 'conditions' => array(\n 'CompaniesUser.company_id' => $companyId,\n 'CompaniesUser.status' => 'ACTIVE'\n )\n )\n );\n $userIds = $this->Utility->urlRequestToGetData('companies', 'list', $params);\n\n if (!empty($userIds) && empty($userIds ['status'])) {\n $_SESSION ['addOffer'] ['userIds'] = $userIds;\n\n // conta público alvo\n $this->offerFilters ['target'] = count($userIds);\n\n // busca os filtros\n foreach ($this->offerFilters as $key => $value) {\n if ($key == 'gender') {\n $Paramsgenero = array(\n 'CompaniesUser' => array(\n 'fields' => array(\n \"COUNT(User.id) AS count\",\n \"User.gender AS filter\"\n ),\n 'group' => array(\n \"User.gender\"\n ),\n 'conditions' => array(\n 'CompaniesUser.company_id' => $companyId,\n 'CompaniesUser.status' => 'ACTIVE'\n ),\n 'order' => array(\n 'COUNT(User.id)' => 'DESC'\n )\n ),\n 'User' => array()\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'all', $Paramsgenero);\n } else if ($key == 'age_group') {\n // busca faixa etária\n $query = \"SELECT\n\t\t\t\t\t SUM(IF(age < 20,1,0)) AS '{$this->ageGroupRangeKeys['0_20']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 20 AND 29,1,0)) AS '{$this->ageGroupRangeKeys['20_29']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 30 AND 39,1,0)) AS '{$this->ageGroupRangeKeys['30_39']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 40 AND 49,1,0)) AS '{$this->ageGroupRangeKeys['40_49']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 50 AND 59,1,0)) AS '{$this->ageGroupRangeKeys['50_59']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 60 AND 120,1, 0)) AS '{$this->ageGroupRangeKeys['60_120']}',\n\t\t\t\t\t SUM(IF(age >= 121, 1, 0)) AS '{$this->ageGroupRangeKeys['empty']}'\n\t\t\t\t\t\tFROM (SELECT YEAR(CURDATE())-YEAR(birthday) AS age FROM users as a, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcompanies_users as b where a.id=b.user_id and b.status='ACTIVE' and b.company_id = {$this->Session->read('CompanyLoggedIn.Company.id')}) AS derived\";\n\n $filterParams = array(\n 'FacebookProfile' => array(\n 'query' => $query\n )\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'query', $filterParams);\n } else {\n $filterParams = array(\n 'FacebookProfile' => array(\n 'fields' => array(\n \"COUNT(FacebookProfile.{$key}) AS count\",\n \"FacebookProfile.{$key} AS filter\"\n ),\n 'conditions' => array(\n 'FacebookProfile.user_id' => $userIds\n ),\n 'group' => array(\n \"FacebookProfile.{$key}\"\n ),\n 'order' => array(\n \"FacebookProfile.{$key}\" => 'ASC'\n )\n )\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'all', $filterParams);\n }\n if (!empty($filter) && empty($filter ['status'])) {\n $this->offerFilters [$key] = $this->formatOfferFilters($filter);\n }\n }\n return $this->offerFilters;\n } else {\n $this->Session->setFlash('Houve um problema para carregar os filtros. Tente novamente.');\n }\n }", "function admin_vendor_report(){\n\t\t\n\t\t$this->layout='backend/backend';\n\t\t$this->set(\"title_for_layout\",VENDOR_REPORT);\n\t\t$conditions = array(\"Vendor.is_deleted\"=>\"0\");\n\t\t\n\t\t$name = isset($this->params['url']['name'])?$this->params['url']['name']:(isset($this->params['named']['name'])?$this->params['named']['name']:\"\");\n\t\tif(trim($name) != \"\"){\n\t\t\t$conditions = array_merge($conditions ,array(\"Vendor.name like\"=>\"%\".trim($name).\"%\"));\n\t\t}\t\t\n\t\t\n\t\t$is_active = isset($this->params['url']['is_active'])?trim($this->params['url']['is_active']):(isset($this->params['named']['is_active'])?$this->params['named']['is_active']:\"\");\n\t\t\n\t\tif(trim($is_active) != \"\"){\n\t\t\t$conditions = array_merge($conditions ,array(\"Vendor.is_active\"=>$is_active));\n\t\t}\n\t\t\n\t\t$from = isset($this->params['url']['from'])?$this->params['url']['from']:(isset($this->params['named']['from'])?$this->params['named']['from']:\"\");\n\t\t$to = isset($this->params['url']['to'])?$this->params['url']['to']:(isset($this->params['named']['to'])?$this->params['named']['to']:\"\");\n \n\t\tif(trim($from) != \"\"){\n\t\t\t$from = $this->covertToSystemDate($from);\n\t\t\t$conditions = array_merge($conditions ,array(\"DATE_FORMAT(Vendor.modified,'%Y-%m-%d') >=\"=>trim($from)));\n\t\t}\n\t\tif(trim($to) != \"\"){\n\t\t\t$to = $this->covertToSystemDate($to);\n\t\t\t$conditions = array_merge($conditions ,array(\"DATE_FORMAT(Vendor.modified,'%Y-%m-%d') <=\"=>trim($to)));\n\t\t}\n\t\t\n\t\t$sort = isset($this->params['url']['sort'])?$this->params['url']['sort']:(isset($this->params['named']['sort'])?$this->params['named']['sort']:\"total_price\");\n\t\t$direction = isset($this->params['url']['direction'])?$this->params['url']['direction']:(isset($this->params['named']['direction'])?$this->params['named']['direction']:\"desc\");\n\t\t\n\t\t$field = array('Vendor.*','sum(CouponSale.price) AS total_price');\n\t\t$join_coupon_sell = array('table'=>'coupon_sales','alias'=>'CouponSale','forignKey'=>false,'type'=>'left','conditions'=>array('CouponSale.vendor_id = Vendor.id'));\n\t\t\n\t\t$this->paginate = array(\"fields\"=>$field,\"joins\"=>array($join_coupon_sell),\"conditions\"=>$conditions,\"limit\"=>VENDOR_LIMIT,'group' => 'Vendor.id','passit' => array(\"sort\"=>$sort,\"direction\"=>$direction));\n\t\t$vendor_data = $this->paginate('Vendor');\n\t\t$this->set('vendor_data',$vendor_data);\n\t\t\n\t\t$csv_export = isset($this->params['url']['export_to_csv'])?$this->params['url']['export_to_csv']:(isset($this->params['named']['export_to_csv'])?$this->params['named']['export_to_csv']:\"paginate\");\n\t\tif($csv_export==\"csv\"){\n\t\t $this->layout = \"\";\n\t\t $this->generate_vendor_report_csv($vendor_data);\n\t\t}\n\t\t\n\t\t$pdf_export = isset($this->params['url']['export_to_pdf'])?$this->params['url']['export_to_pdf']:(isset($this->params['named']['export_to_pdf'])?$this->params['named']['export_to_pdf']:\"paginate\");\n\t\tif($pdf_export == \"pdf\"){\n\t\t\t$this->layout = \"\";\n\t\t\t$this->generate_vendor_report_pdf($vendor_data);\n\t\t}\n\t\t\n\t}", "public function testGetDuplicateVendorComplianceSurveyById()\n {\n }", "function _vendorCompanyList(){\n $this->resetResponse();\n if ($this->ci->session->userdata('user_id') != null) {\n $archived = $this->ci->input->post('archived', true);\n\n $result = $this->model->getVendorCompany('*', array(\"person_type\" => Globals::PERSON_TYPE_VENDOR))->result();\n if ($result) {\n $this->_status = true;\n $this->_message = '';\n $this->_rdata = $result;\n\n } else {\n $this->_status = false;\n $this->_message = $this->ci->lang->line('no_records_found');\n }\n \n } else {\n $this->_status = false;\n $this->_message = $this->ci->lang->line('invalid_user');\n \n }\n\n return $this->getResponse();\n }", "function getVendorsByCategory(Request $request)\n {\n $ids = $request->all();\n //return $idString = implode(',', $ids);\n // return VendorCategory::whereIn('id', $ids)\n // ->with('vendors')\n // ->get();\n // return Vendor::whereIn('category_id', $ids)\n // ->get();\n\n $Vendor = DB::table('vendors as vend')\n ->join('vendor_approvals as vap','vend.id','=','vap.vendor_id')\n ->where('vap.vendor_status','1')\n ->whereIn('vend.category_id', $ids)\n ->select('vend.id','vend.name_of_firm','vap.vendor_status')\n ->get();\n return $Vendor;\n \n }", "private function getFilteredCarers($criteria) {\n //always on\n $active = true;\n $nationality = 'all';\n\n //dynamic\n $personGender = $criteria['person_gender'];\n if ($personGender == Constants::GENDER_FEMALE) {\n $workWithMale = false;\n $workWithFemale = true;\n } else {\n $workWithMale = true;\n $workWithFemale = false;\n }\n\n //default value if not saved before in DB\n if (!isset($criteria['showMale'])) {\n $criteria['showMale'] = false;\n }\n if (!isset($criteria['showFemale'])) {\n $criteria['showFemale'] = false;\n }\n if (!isset($criteria['type_care']) || $criteria['type_care'] == \"\") {\n $criteria['type_care'] = Constants::HOURLY;\n }\n\n $showMale = $criteria['showMale'];\n $showFemale = $criteria['showFemale'];\n\n $physicalId = $criteria['physical_condition'];\n $mentalId = $criteria['mental_condition'];\n $ageGroupId = $criteria['age_group'];\n\n if ($criteria['type_care'] == Constants::HOURLY) {\n $hourly = true;\n $liveIn = false;\n } else {\n $hourly = false;\n $liveIn = true;\n }\n\n $activities = array();\n foreach ($criteria as $key => $value) {\n\n if (Util::startsWith($key, 'activities_')) {\n\n $val = Util::lastCharactersAfter($key, 'activities_condition_');\n $activities[] = $val;\n }\n }\n\n $model = Condition::loadModel($physicalId);\n $physicals = $model->getConditionsIdsUp();\n\n $model = Condition::loadModel($mentalId);\n $mentals = $model->getConditionsIdsUp();\n\n $ageGroup = array($ageGroupId);\n\n $postCodeRaw = $criteria['postCode'];\n $postCode = strip_tags(trim(strtoupper($postCodeRaw)));\n if (empty($postCode)) {\n $postCode = null;\n }\n\n $language = 'english';\n\n $carers = DBServices::getFilteredCarers2($activities, $physicals, $mentals, $ageGroup, $active, $workWithMale, $workWithFemale, $nationality, $liveIn, $hourly, $showMale, $showFemale, $postCode, $language);\n\n return $carers;\n }", "protected function addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addVendorComplianceSurveyFileByURL'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFileByURL'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testAddVendorComplianceSurveyAudit()\n {\n }", "function getSurveyFilter() {\n if (!empty ($this->selectSurvey)) {\n if ( in_array( self::JOIN_TABLE, $this->checkTables ) ) {\n return sprintf (\"%s.surveyID = %s \", self::getTableAlias( self::JOIN_TABLE ), $this->selectSurvey);\n }\n else if ( in_array( 'Detection', $this->checkTables ) ) {\n return sprintf (\"%s.surveyID = %s \", self::getTableAlias( 'Detection' ), $this->selectSurvey);\n }\n else if ( in_array( 'DetectionOrphan', $this->checkTables ) ) {\n return sprintf (\"%s.surveyID = %s \", self::getTableAlias( 'DetectionOrphan' ), $this->selectSurvey);\n }\n }\n return;\n }", "public function testAddVendorComplianceSurveyFileByURL()\n {\n }", "public function getVendorList() {\n $vendors = $this->couponServices_model->fetchVendors();\n\n $vendor_options = array();\n $vendor_options[\"\"] = \"-- Select vendor --\";\n foreach ($vendors as $company) {\n $vendor_options[$company['vendorId']] = $company['vendorName'];\n }\n return $vendor_options;\n }", "function getQuestionsTable($arrFilter)\n\t{\n\t\tglobal $ilUser;\n\t\tglobal $ilDB;\n\t\t$where = \"\";\n\t\tif (is_array($arrFilter))\n\t\t{\n\t\t\tif (array_key_exists('title', $arrFilter) && strlen($arrFilter['title']))\n\t\t\t{\n\t\t\t\t$where .= \" AND \" . $ilDB->like('svy_question.title', 'text', \"%%\" . $arrFilter['title'] . \"%%\");\n\t\t\t}\n\t\t\tif (array_key_exists('description', $arrFilter) && strlen($arrFilter['description']))\n\t\t\t{\n\t\t\t\t$where .= \" AND \" . $ilDB->like('svy_question.description', 'text', \"%%\" . $arrFilter['description'] . \"%%\");\n\t\t\t}\n\t\t\tif (array_key_exists('author', $arrFilter) && strlen($arrFilter['author']))\n\t\t\t{\n\t\t\t\t$where .= \" AND \" . $ilDB->like('svy_question.author', 'text', \"%%\" . $arrFilter['author'] . \"%%\");\n\t\t\t}\n\t\t\tif (array_key_exists('type', $arrFilter) && strlen($arrFilter['type']))\n\t\t\t{\n\t\t\t\t$where .= \" AND svy_qtype.type_tag = \" . $ilDB->quote($arrFilter['type'], 'text');\n\t\t\t}\n\t\t\tif (array_key_exists('spl', $arrFilter) && strlen($arrFilter['spl']))\n\t\t\t{\n\t\t\t\t$where .= \" AND svy_question.obj_fi = \" . $ilDB->quote($arrFilter['spl'], 'integer');\n\t\t\t}\t\t\n\t\t}\n\t\t\n\t\t$spls =& $this->getAvailableQuestionpools($use_obj_id = TRUE, $could_be_offline = FALSE, $showPath = FALSE);\n\t\t$forbidden = \"\";\n\t\t$forbidden = \" AND \" . $ilDB->in('svy_question.obj_fi', array_keys($spls), false, 'integer');\n\t\t$forbidden .= \" AND svy_question.complete = \" . $ilDB->quote(\"1\", 'text');\n\t\t$existing = \"\";\n\t\t$existing_questions =& $this->getExistingQuestions();\n\t\tif (count($existing_questions))\n\t\t{\n\t\t\t$existing = \" AND \" . $ilDB->in('svy_question.question_id', $existing_questions, true, 'integer');\n\t\t}\n\t\t\n\t\tinclude_once \"./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php\";\n\t\t$trans = ilObjSurveyQuestionPool::_getQuestionTypeTranslations();\n\t\t\n\t\t$query_result = $ilDB->query(\"SELECT svy_question.*, svy_qtype.type_tag, svy_qtype.plugin, object_reference.ref_id\".\n\t\t\t\" FROM svy_question, svy_qtype, object_reference\".\n\t\t\t\" WHERE svy_question.original_id IS NULL\".$forbidden.$existing.\n\t\t\t\" AND svy_question.obj_fi = object_reference.obj_id AND svy_question.tstamp > 0\".\n\t\t\t\" AND svy_question.questiontype_fi = svy_qtype.questiontype_id \" . $where);\n\n\t\t$rows = array();\n\t\tif ($query_result->numRows())\n\t\t{\n\t\t\twhile ($row = $ilDB->fetchAssoc($query_result))\n\t\t\t{\n\t\t\t\tif (array_key_exists('spl_txt', $arrFilter) && strlen($arrFilter['spl_txt']))\n\t\t\t\t{\n\t\t\t\t\tif(!stristr($spls[$row[\"obj_fi\"]], $arrFilter['spl_txt']))\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$row['ttype'] = $trans[$row['type_tag']];\n\t\t\t\tif ($row[\"plugin\"])\n\t\t\t\t{\n\t\t\t\t\tif ($this->isPluginActive($row[\"type_tag\"]))\n\t\t\t\t\t{\n\t\t\t\t\t\tarray_push($rows, $row);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tarray_push($rows, $row);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $rows;\n\t}", "public function testDestiny2GetVendors()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function test_getFilters()\n {\n /**\n * @var $builder TransactionFilterOptionsBuilder\n */\n $builder = app( TransactionFilterOptionsBuilder::class );\n $viewModel = $builder->GetModel();\n $response = $this->get('/api/transactions/filters');\n $response\n ->assertStatus(200)\n ->assertJson([\n 'types' => [\n [\n 'id' => $viewModel->types[0]->id,\n 'label' => $viewModel->types[0]->label,\n 'key' => $viewModel->types[0]->key\n ]\n ],\n 'categories' => [\n [\n 'id' => $viewModel->categories[0]->id,\n 'label' => $viewModel->categories[0]->label,\n 'key' => $viewModel->categories[0]->key\n ]\n ]\n ]);\n }", "public function testAddVendorComplianceSurveyFile()\n {\n }", "public function testCompanyApiFilterParams()\n {\n $params = [\n 'scoreTotal' => 13,\n 'exchangeSymbols' => 'NYSE',\n ];\n $this->call('GET', '/companies', $params);\n\n $this->assertResponseStatus(200);\n $this->seeJsonContains([\n \"exchangeSymbol\" => \"NYSE\",\n \"snowFlakeScoreTotal\" => 13,\n ]);\n $this->seeJsonDoesntContains([\"snowFlakeScoreTotal\" => 20]);\n $this->seeJsonDoesntContains([\"snowFlakeScoreTotal\" => 9]);\n $this->seeJsonDoesntContains([\"snowFlakeScoreTotal\" => 12]);\n $this->seeJsonDoesntContains([\"snowFlakeScoreTotal\" => 18]);\n }", "protected function addVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_name)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_name' is set\n if ($file_name === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_name when calling addVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileName}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_name !== null) {\n $resourcePath = str_replace(\n '{' . 'fileName' . '}',\n ObjectSerializer::toPathValue($file_name),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "private function loadFilters() {\n\n // buscando usuários\n $companyId = $this->Session->read('CompanyLoggedIn.Company.id');\n $params = array(\n 'CompaniesUser' => array(\n 'fields' => array(\n 'CompaniesUser.user_id'\n ),\n 'conditions' => array(\n 'CompaniesUser.status' => 'ACTIVE'\n )\n )\n );\n $userIds = $this->Utility->urlRequestToGetData('companies', 'list', $params);\n if (!empty($userIds) && empty($userIds ['status'])) {\n $_SESSION ['addOffer'] ['userIds'] = $userIds;\n\n // conta público alvo\n $this->offerFilters ['target'] = count($userIds);\n\n // busca os filtros\n foreach ($this->offerFilters as $key => $value) {\n if ($key == 'gender') {\n $Paramsgenero = array(\n 'CompaniesUser' => array(\n 'fields' => array(\n \"COUNT(User.id) AS count\",\n \"User.gender AS filter\"\n ),\n 'group' => array(\n \"User.gender\"\n ),\n 'order' => array(\n 'COUNT(User.id)' => 'DESC'\n )\n ),\n 'User' => array()\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'all', $Paramsgenero);\n } else if ($key == 'age_group') {\n // busca faixa etária\n $query = \"SELECT\n\t\t\t\t\t SUM(IF(age < 20,1,0)) AS '{$this->ageGroupRangeKeys['0_20']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 20 AND 29,1,0)) AS '{$this->ageGroupRangeKeys['20_29']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 30 AND 39,1,0)) AS '{$this->ageGroupRangeKeys['30_39']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 40 AND 49,1,0)) AS '{$this->ageGroupRangeKeys['40_49']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 50 AND 59,1,0)) AS '{$this->ageGroupRangeKeys['50_59']}',\n\t\t\t\t\t SUM(IF(age >=60, 1, 0)) AS '{$this->ageGroupRangeKeys['60_120']}',\n\t\t\t\t\t SUM(IF(age IS NULL, 1, 0)) AS '{$this->ageGroupRangeKeys['empty']}'\n\t\t\t\t\t\tFROM (SELECT YEAR(CURDATE())-YEAR(birthday) AS age FROM facebook_profiles) AS derived\";\n\n $filterParams = array(\n 'FacebookProfile' => array(\n 'query' => $query\n )\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'query', $filterParams);\n } else {\n $filterParams = array(\n 'FacebookProfile' => array(\n 'fields' => array(\n \"COUNT(FacebookProfile.{$key}) AS count\",\n \"FacebookProfile.{$key} AS filter\"\n ),\n 'conditions' => array(\n 'FacebookProfile.user_id' => $userIds\n ),\n 'group' => array(\n \"FacebookProfile.{$key}\"\n ),\n 'order' => array(\n \"FacebookProfile.{$key}\" => 'ASC'\n )\n )\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'all', $filterParams);\n }\n if (!empty($filter) && empty($filter ['status'])) {\n $this->offerFilters [$key] = $this->formatOfferFilters($filter);\n }\n }\n return $this->offerFilters;\n } else {\n $this->Session->setFlash('Houve um problema para carregar os filtros. Tente novamente.');\n }\n }", "public function getDuplicateVendorComplianceSurveyByIdWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "public function isValidVendor() {\n\t\t$input = file_get_contents('php://input');\n\t\t$_POST = json_decode($input, TRUE);\n\n\t\t// if no splits then vendor_id is required otherwise MUST be NULL (will be ignored in Save)\n\t\tif (empty($_POST['splits']) && empty($_POST['vendor_id'])) {\n\t\t\t$this->form_validation->set_message('isValidVendor', 'The Vendor Field is Required');\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "public function GetVendor($id=null){\n\t\theader('Access-Control-Allow-Origin:*');\n\t\t$this->load->model('BookingModel');\n\t\t$data['booking_id']=$this->input->post('booking_id');\n\t\t$data['vendor_id']=$this->input->post('vendor_id');\n\t\t$data['vendors']=$this->BookingModel->GetVendorOS($this->input->post('city'),$this->input->post('cab'),$this->input->post('type'));\n\n\t\t $data['companies']=$this->BookingModel->GetCompanyOS($this->input->post('booking_id'),$this->input->post('type'));\n\t\t\n\t\tif($this->input->post('type')==\"outstation\"){\n\t\t\techo $this->load->view('booking/vendor_assign/VendorLists',$data,true);\n\t\t} else if($this->input->post('type')==\"local\"){\n\t\t\techo $this->load->view('booking/vendor_assign/VendorLocal',$data,true);\n\t\t} else if($this->input->post('type')==\"transfer\"){\n\t\t\techo $this->load->view('booking/vendor_assign/VendorTransfer',$data,true);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public function search() {\n try {\n if (!($this->vendor instanceof Base_Model_ObtorLib_App_Core_Catalog_Entity_Vendor)) {\n throw new Base_Model_ObtorLib_App_Core_Catalog_Exception(\" Vendor Entity not initialized\");\n } else {\n $objVendor = new Base_Model_ObtorLib_App_Core_Catalog_Dao_Vendor();\n $objVendor->vendor = $this->vendor;\n return $objVendor->search();\n }\n } catch (Exception $ex) {\n throw new Base_Model_ObtorLib_App_Core_Catalog_Exception($ex);\n }\n }", "private function filterOptions(){\n $request = new Request();\n\n $key = $request->query->get('key') ? $this->global_helper_service->cleanDataInput($request->query->get('key')) : '';\n $date_range = $request->query->get('date_range') ? $request->query->get('date_range') : '';\n\n $array_filters = array();\n\n $array_filters['key'] = array(\n 'type' => 'input',\n 'title' => 'Search',\n 'default_value' => $key\n );\n\n $array_filters['date_range'] = array(\n 'type' => 'date_picker',\n 'title' => 'Date Range',\n 'options' => '',\n 'default_value' => $date_range\n );\n\n return $this->admincp_service->handleElementFormFilter($array_filters);\n }", "public function test_getExternalShipmentByFilter() {\n\n }", "protected function getVendorOrders() {\n\n\t\t$this->load->model('sale/vdi_order');\n\t\t$data = array();\n\n if (isset($this->request->request['filter_order_status'])) {\n //check input - should be list of integers\n if (1 === preg_match('/^[0-9,\\s]+$/',\n $this->request->request['filter_order_status'])) {\n $data['filter_order_status'] = $this->request->request['filter_order_status'];\n }\n }\n\n $result = array();\n $orderCount = $this->model_sale_vdi_order->getTotalOrders($data);\n $result['total_order_count'] = $orderCount;\n\n if (!isset($this->request->request['metaonly']) ||\n (\"true\" !== $this->request->request['metaonly'])) {\n $orders = $this->model_sale_vdi_order->getOrdersByOrderProductStatus($data);\n $result['orders'] = $orders;\n }\n\n\t\treturn $result;\n\t}", "public function addVendorComplianceSurveyAsync($body)\n {\n return $this->addVendorComplianceSurveyAsyncWithHttpInfo($body)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function actionFilter() {\n if (!Yii::$app->CustomComponents->check_permission('view_registration')) {\n return $this->redirect(['site/index']);\n }\n\n $dataService = $this->quickbook_instance();\n\n $user = Yii::$app->user->identity;\n $usermeta_result = DvUserMeta::find()->where(['uid' => $user->id, 'meta_key' => 'role'])->one();\n $user_role = $usermeta_result->meta_value; /* 2 - Executive role. /* 1 - Admin */\n\n $data = Yii::$app->request->get();\n\n $filter_data = array();\n $all_invoice_of_customer = array();\n\n $all_query = array();\n if ($data) {\n // $first_date_of_current_month = date(\"Y-m-01\"); /* Default Start Date for filter. Current month First date */\n // $last_date_of_current_month = date(\"Y-m-t\"); /* Default End Date for filter. Current month Last date */\n if ($data['participant_status'] != '') {\n $filter_data['participant_status'] = $data['participant_status'];\n }\n if ($data['participant_payment_status'] != '') {\n $filter_data['participant_payment_status'] = $data['participant_payment_status'];\n }\n if (isset($data['sales_user_id']) && $data['sales_user_id'] != '') {\n $filter_data['sales_user_id'] = $data['sales_user_id'];\n }\n if (isset($data['email']) && $data['email'] != '') {\n $filter_data['email'] = $data['email'];\n }\n if ($data['bymonth'] != '' && $data['by_date_month'] == 'm') {\n\n $new_date = explode('_', $data['bymonth']);\n $fyear = $new_date['1'];\n $fmonth = $new_date['0'];\n\n if ($fmonth <= 9 && strlen($fmonth) == 1) {\n $fmonth = \"0\" . $fmonth;\n }\n $filter_data['YEAR(created_on)'] = $fyear;\n $filter_data['MONTH(created_on)'] = $fmonth;\n }\n\n if ($user_role != 1) {\n $filter_data['sales_user_id'] = $user->id;\n }\n\n\n if ($data['course'][0] != \"\" && $data['sdate'] != \"\" && $data['by_date_month'] == 'd') {\n $model = DvRegistration::find()->where(['BETWEEN', 'created_on', date(\"Y-m-d\", strtotime($data['sdate'])), date(\"Y-m-d\", strtotime(\"+1 day\", strtotime($data['edate'])))])->andWhere(['in', 'course', $data['course']])->andWhere($filter_data);\n } else if ($data['sdate'] != \"\" && $data['by_date_month'] == 'd') {\n $model = DvRegistration::find()->where(['BETWEEN', 'created_on', date(\"Y-m-d\", strtotime($data['sdate'])), date(\"Y-m-d\", strtotime(\"+1 day\", strtotime($data['edate'])))])->andWhere($filter_data);\n } else if ($data['course'][0] != \"\") {\n $model = DvRegistration::find()->where(['in', 'course', $data['course']])->andWhere($filter_data);\n } else {\n $model = DvRegistration::find()->Where($filter_data);\n }\n\n\n $model->orderBy(['id' => SORT_DESC]);\n $count = $model->count();\n $pagination = new Pagination(['totalCount' => $count, 'pageSize' => 20]);\n $models = $model->offset($pagination->offset)->limit($pagination->limit)->all();\n $offset = $pagination->offset + 1;\n\n if ($data['bymonth'] != '' && $data['by_date_month'] == 'm') {\n $filter_data['bymonth'] = $data['bymonth'];\n }\n\n if ($data['by_date_month'] != '') {\n $filter_data['by_date_month'] = $data['by_date_month'];\n }\n\n if ($data['sdate'] != '' && $data['by_date_month'] == 'd') {\n $filter_data['sdate'] = $data['sdate'];\n $filter_data['edate'] = $data['edate'];\n }\n\n if ($data['course'][0] != \"\") {\n $filter_data['course'] = $data['course'];\n }\n\n if ($data['email'] != \"\") {\n $filter_data['email'] = $data['email'];\n }\n\n $total_invoices = $dataService->Query(\"SELECT count(*) FROM Invoice\");\n $allInvoices = $dataService->Query(\"SELECT * FROM Invoice MAXRESULTS $total_invoices\");\n $all_invoice_of_customer = $allInvoices;\n\n return $this->render('index', ['dataService'=>$dataService, 'participant_users' => $models,'all_query'=>$all_query,'pages' => $pagination, 'count' => $offset, 'filter_data' => $filter_data, 'all_invoice_of_customer' => $all_invoice_of_customer]);\n } else {\n\n return $this->redirect(['dv-registration/index']);\n }\n }", "public function test_getCustomerByFilter() {\n\n }", "public function get_doctor_search_list($user_id, $filter_array = array(), $is_for_total_count = false) {\n\n $most_visted_count = '';\n if (in_array(1, $filter_array['filter_option'])) {\n $most_visted_count = \" \n ,(\n SELECT \n count(*)\n FROM \n \" . TBL_APPOINTMENTS . \"\n WHERE \n appointment_doctor_user_id=user_id AND\n appointment_status=1\n ) as visted_count\n \";\n }\n $is_available_today = \"\";\n if (in_array(2, $filter_array['filter_option'])) {\n $is_available_today = \"\n ,\n IFNULL(\n (\n SELECT \n calender_block_id\n FROM \n \" . TBL_DOCTOR_CALENDER_BLOCK . \"\n WHERE\n calender_block_status=1 AND \n calender_block_user_id=user_id AND \n (\n (\n calender_block_duration_type = 1 AND\n calender_block_from_date = '\" . date('Y-m-d') . \"'\n ) \n OR\n (\n calender_block_duration_type = 2 \n AND\n calender_block_from_date = '\" . date('Y-m-d') . \"' \n AND\n ( \n (\n doctor_clinic_doctor_session_1_start_time <= calender_block_start_time AND \n doctor_clinic_doctor_session_1_end_time >= calender_block_start_time\n ) \n OR\n (\n doctor_clinic_doctor_session_1_start_time <= calender_block_end_time AND \n doctor_clinic_doctor_session_1_end_time >= calender_block_end_time\n ) \n )\n AND\n ( \n doctor_clinic_doctor_session_2_start_time IS NULL\n OR\n (\n doctor_clinic_doctor_session_2_start_time <= calender_block_start_time AND \n doctor_clinic_doctor_session_2_end_time >= calender_block_start_time\n ) \n OR\n (\n doctor_clinic_doctor_session_2_start_time <= calender_block_end_time AND \n doctor_clinic_doctor_session_2_end_time >= calender_block_end_time\n )\n )\n ) \n )\n ),NULL\n ) as is_available_today\n \";\n }\n $doctor_query = \"\n SELECT\n user_id,\n user_first_name,\n user_last_name,\n user_photo,\n user_photo_filepath,\n user_phone_number,\n doctor_detail_year_of_experience,\n GROUP_CONCAT(specialization_title) as specialization,\n GROUP_CONCAT(doctor_detail_speciality) as speciality,\n doctor_clinic_mapping_fees,\n clinic_id,\n doctor_clinic_doctor_session_1_start_time,\n doctor_clinic_doctor_session_1_end_time,\n doctor_detail_desc,\n clinic_services, \n user_status,\n address_city_id,\n address_country_id,\n (\n SELECT GROUP_CONCAT(language_name) FROM \n \" . TBL_LANGUAGES . \" \n WHERE\n FIND_IN_SET(language_id,doctor_detail_language_id) AND language_status=1\n ) as language,\n TIMESTAMPDIFF(YEAR, doctor_detail_year_of_experience, NOW()) as experience,\n GROUP_CONCAT(DISTINCT(doctor_qualification_degree)) as doctor_qualification_degree \" . $most_visted_count . \" \" . $is_available_today . \" \";\n if (in_array(3, $filter_array['filter_option'])) {\n $doctor_query.= \"\n ,COALESCE((\n 3959 * acos( cos( radians(address_latitude) ) * cos( radians(\" . $filter_array['latitude'] . \" ) )\n * cos( radians( \" . $filter_array['longitude'] . \") - radians(address_longitude) )\n + sin( radians(address_latitude) )\n * sin( radians( \" . $filter_array['latitude'] . \" ) ) )\n ),0) AS 'distance' \";\n }\n\n $doctor_query .= \"\n FROM \n \" . TBL_USERS . \" \n JOIN \" . TBL_DOCTOR_DETAILS . \" \n ON doctor_detail_doctor_id=user_id AND doctor_detail_status=1 \n JOIN \" . TBL_DOCTOR_CLINIC_MAPPING . \" \n ON\n (\n doctor_clinic_mapping_user_id=user_id AND\n doctor_clinic_mapping_status=1 AND \n doctor_clinic_mapping_fees=\n (select min(doctor_clinic_mapping_fees) from \" . TBL_DOCTOR_CLINIC_MAPPING . \"\n WHERE \n doctor_clinic_mapping_user_id=user_id AND\n doctor_clinic_mapping_status=1 AND\n doctor_clinic_mapping_role_id=1\n )\n ) \n \n LEFT JOIN \" . TBL_DOCTOR_SPECIALIZATIONS . \" \n ON doctor_specialization_doctor_id=user_id AND doctor_specialization_status=1\n LEFT JOIN \" . TBL_SPECIALISATIONS . \" \n ON doctor_specialization_specialization_id=specialization_id AND specialization_status=1\n JOIN \" . TBL_CLINICS . \" \n ON clinic_id=doctor_clinic_mapping_clinic_id AND clinic_status=1\n LEFT JOIN \" . TBL_DOCTOR_EDUCATIONS . \" \n ON doctor_qualification_user_id=user_id AND doctor_qualification_status=1\n \n \";\n $doctor_query.=\"\n JOIN \" . TBL_ADDRESS . \" \n ON address_user_id=clinic_id\n AND address_status=1 \n AND address_type=2\";\n if (in_array(3, $filter_array['filter_option'])) {\n /*city and country wise doctor search*/\n if (!empty($filter_array['cityId']) && $filter_array['countryId']) {\n $doctor_query.= \" AND address_city_id = '\" . $filter_array['cityId'] . \"' \";\n $doctor_query.= \" AND address_country_id = '\" . $filter_array['countryId'] . \"' \";\n }\n \n if (!empty($filter_array['cityId'])){\n $doctor_query.= \" AND address_city_id = '\" . $filter_array['cityId'] . \"' \";\n }\n \n if (!empty($filter_array['countryId'])){\n $doctor_query.= \" AND address_country_id = '\" . $filter_array['countryId'] . \"' \";\n }\n \n }\n\n if (!empty($filter_array['appointment_type'])) {\n $doctor_query.=\" JOIN \" . TBL_DOCTOR_AVAILABILITY . \"\n ON user_id = doctor_availability_user_id \n AND doctor_availability_appointment_type = '\" . $filter_array['appointment_type'] . \"' \n AND doctor_availability_status = 1 \";\n\n if (in_array(2, $filter_array['filter_option'])) {\n $doctor_query.= \" AND doctor_availability_week_day = '\" . date('N', time()) . \"' \";\n }\n }\n\n $doctor_query.=\" WHERE 1=1 AND user_status = 1 \";\n\n if (!empty($filter_array['primary_doctor'])) {\n $doctor_query .= \" AND user_id != '\" . $filter_array['primary_doctor'] . \"' \";\n }\n\n if (!empty($filter_array['search_keyword'])) {\n\n $doctor_query.=\"\n AND \n (\n user_first_name LIKE '%\" . $filter_array['search_keyword'] . \"%' OR\n user_last_name LIKE '%\" . $filter_array['search_keyword'] . \"%' OR\n CONCAT(user_first_name,user_last_name) LIKE '%\" . $filter_array['search_keyword'] . \"%' OR\n clinic_name LIKE '%\" . $filter_array['search_keyword'] . \"%' OR\n LOWER(specialization_title) LIKE '%\" . strtolower($filter_array['search_keyword']) . \"%' \n )\n \";\n }\n\n if (!empty($filter_array['specilization'])) {\n $doctor_query .= \" AND specialization_id IN (\" . $filter_array['specilization'] . \") \";\n }\n\n if (!empty($filter_array['fees_array'])) {\n $doctor_query.=\"\n AND \n (\n doctor_clinic_mapping_fees >=\" . $filter_array['fees_array'][0] . \" \";\n if (is_numeric($filter_array['fees_array'][1])) {\n $doctor_query .= \"AND doctor_clinic_mapping_fees <=\" . $filter_array['fees_array'][1] . \" \";\n }\n $doctor_query .= \" ) \";\n }\n\n if (!empty($filter_array['year_of_experience'])) {\n $doctor_query.=\"\n AND \n (\n TIMESTAMPDIFF(YEAR, doctor_detail_year_of_experience, NOW()) =\" . $filter_array['year_of_experience'] . \" \n )\n \";\n }\n\n if (!empty($filter_array['gender']) && $filter_array['gender'] != 3) {\n $doctor_query.=\"\n AND \n user_gender='\" . $filter_array['gender'] . \"' \n \";\n }\n\n if (!empty($filter_array['gender']) && $filter_array['gender'] == 3) {\n $doctor_query.=\"\n AND \n ( \n user_gender='male'\n OR \n user_gender='female' \n OR \n user_gender='other' \n OR \n user_gender='undisclosed' \n )\n \";\n }\n if (!empty($filter_array['doctor_type'])) {\n $doctor_query.=\" \n AND \n doctor_detail_is_medeasy='\" . $filter_array['doctor_type'] . \"' \n \";\n }\n if (!empty($filter_array['language'])) {\n\n $language_array = explode(',', $filter_array['language']);\n $doctor_query .= \" AND ( \";\n $count = count($language_array);\n\n foreach ($language_array as $key => $language) {\n if ($count - 1 == $key) {\n $doctor_query.=\" FIND_IN_SET('\" . $language . \"',doctor_detail_language_id) \";\n } else {\n $doctor_query.=\" FIND_IN_SET('\" . $language . \"',doctor_detail_language_id) OR \";\n }\n }\n $doctor_query.= \" ) \";\n }\n\n $doctor_query.= \" \n GROUP BY \n user_id \";\n\n if (in_array(2, $filter_array['filter_option'])) {\n $doctor_query.=\"\n HAVING\n is_available_today IS NULL\n \";\n }\n $order_by = array();\n if (in_array(1, $filter_array['filter_option'])) {\n $order_by[] = \" visted_count DESC \";\n }\n if (in_array(3, $filter_array['filter_option'])) {\n $order_by[] = \" distance ASC \";\n }\n if (in_array(4, $filter_array['filter_option'])) {\n $order_by[] = \" user_first_name ASC \";\n }\n\n\n if (!empty($order_by)) {\n $doctor_query.=\" ORDER BY \" . implode(',', $order_by);\n }\n\n if ($is_for_total_count) {\n return $this->get_count_by_query($doctor_query);\n }\n\n //pr($doctor_query);exit;\n\n $limit = \" LIMIT \" . (($filter_array['page'] - 1) * $filter_array['per_page']) . \",\" . $filter_array['per_page'] . \" \";\n $doctor_query.=$limit;\n\n $doctor_data = $this->get_all_rows_by_query($doctor_query);\n\n return $doctor_data;\n }", "public function testConvertCriteria()\n {\n $api = $this->getApi();\n\n $result = $api->convertSimpleCriteria(array());\n $this->assertEquals(array(), $result);\n\n $result = $api->convertSimpleCriteria(array(array('field' => 'apiReference', 'value' => 'd')));\n $this->assertEquals(array(array('field' => 'apiReference', 'value' => 'd')), $result);\n\n $result = $api->convertSimpleCriteria(array('apiReference' => 'd'));\n $this->assertEquals(array(array('field' => 'api_reference', 'value' => 'd', 'criteria' => '=')), $result);\n\n $result = $api->convertSimpleCriteria(array('apiReference' => 'd'), 'like');\n $this->assertEquals(array(array('field' => 'api_reference', 'value' => 'd', 'criteria' => 'like')), $result);\n }", "function getCompanyFilter() {\n return $this->getAdditionalProperty('company_filter', self::CLIENT_FILTER_ANYBODY);\n }", "public static function getManufacturerFilter() {\n $pArr = self::__getProductsListingData();\n \n return $pArr['mfgFilter'];\n }", "public function testDeleteVendorComplianceSurveyTag()\n {\n }", "protected function prepareFilter()\n\t{\n\t\tglobal $USER;\n\t\tglobal $DB;\n\n\t\t$arFilter = array();\n\t\t$arFilter[\"USER_ID\"] = $USER->GetID();\n\t\t$arFilter[\"LID\"] = SITE_ID;\n\n\t\tif (strlen($_REQUEST[\"filter_id\"]))\n\t\t{\n\t\t\tif ($this->options['USE_ACCOUNT_NUMBER'])\n\t\t\t\t$arFilter[\"ACCOUNT_NUMBER\"] = $_REQUEST[\"filter_id\"];\n\t\t\telse\n\t\t\t\t$arFilter[\"ID\"] = intval($_REQUEST[\"filter_id\"]);\n\t\t}\n\n\t\tif (strlen($_REQUEST[\"filter_date_from\"]))\n\t\t\t$arFilter[\"DATE_FROM\"] = trim($_REQUEST[\"filter_date_from\"]);\n\t\tif (strlen($_REQUEST[\"filter_date_to\"]))\n\t\t{\n\t\t\t$arFilter[\"DATE_TO\"] = trim($_REQUEST[\"filter_date_to\"]);\n\n\t\t\tif ($arDate = ParseDateTime(trim($_REQUEST[\"filter_date_to\"]), $this->dateFormat))\n\t\t\t{\n\t\t\t\tif (StrLen(trim($_REQUEST[\"filter_date_to\"])) < 11)\n\t\t\t\t{\n\t\t\t\t\t$arDate[\"HH\"] = 23;\n\t\t\t\t\t$arDate[\"MI\"] = 59;\n\t\t\t\t\t$arDate[\"SS\"] = 59;\n\t\t\t\t}\n\n\t\t\t\t$arFilter[\"DATE_TO\"] = date($DB->DateFormatToPHP($this->dateFormat), mktime($arDate[\"HH\"], $arDate[\"MI\"], $arDate[\"SS\"], $arDate[\"MM\"], $arDate[\"DD\"], $arDate[\"YYYY\"]));\n\t\t\t}\n\t\t}\n\n\t\tif (strlen($_REQUEST[\"filter_status\"]))\n\t\t\t$arFilter[\"STATUS_ID\"] = trim($_REQUEST[\"filter_status\"]);\n\n\t\tif (strlen($_REQUEST[\"filter_payed\"]))\n\t\t\t$arFilter[\"PAYED\"] = trim($_REQUEST[\"filter_payed\"]);\n\n\t\tif(!isset($_REQUEST['show_all']) || $_REQUEST['show_all'] == 'N')\n\t\t{\n\t\t\tif($_REQUEST[\"filter_history\"]!=\"Y\")\n\t\t\t\t$arFilter[\"!@COMPLETE_ORDERS\"] = $this->arParams['HISTORIC_STATUSES'];\n\n\t\t\tif(isset($_REQUEST[\"filter_history\"]) && $_REQUEST[\"filter_history\"] == \"Y\")\n\t\t\t\t$arFilter[\"@COMPLETE_ORDERS\"] = $this->arParams['HISTORIC_STATUSES'];\n\t\t}\n\n\t\tif (strlen($_REQUEST[\"filter_canceled\"]))\n\t\t\t$arFilter[\"CANCELED\"] = trim($_REQUEST[\"filter_canceled\"]);\n\n\t\t$this->filter = $arFilter;\n\t}", "public function gets($user, $organization_id, $where=[], $debug=false) {\n\n $results = [];\n $where_order = [];\n\n if(Configure::read('social_market_delivery_id')===false)\n return $results;\n\n if(isset($where['Orders']))\n $where_order = $where['Orders'];\n $where_order = array_merge([$this->getAlias().'.organization_id' => Configure::read('social_market_organization_id')],\n $where_order);\n if($debug) debug($where_order);\n\n $where_delivery = ['Deliveries.organization_id' => Configure::read('social_market_organization_id'),\n 'Deliveries.id' => Configure::read('social_market_delivery_id')];\n\n /*\n * estraggo i produttori attivi del GAS per escluderli\n */\n $suppliersOrganizationsTable = TableRegistry::get('SuppliersOrganizations');\n $suppliersOrganizations = $suppliersOrganizationsTable->find()\n ->select(['id'])\n ->where (['organization_id' => $user->organization->id, 'stato' => 'Y'])\n ->all();//dd($suppliersOrganizations);\n $exclude_ids = [];\n foreach ($suppliersOrganizations as $suppliersOrganization)\n $exclude_ids[$suppliersOrganization->id] = $suppliersOrganization->id;\n\n /*\n * estraggo solo i GAS abilitati\n */\n $socialmarketOrganizationsTable = TableRegistry::get('SocialmarketOrganizations');\n $socialmarketOrganizations = $socialmarketOrganizationsTable->find()\n ->select(['supplier_organization_id'])\n ->where (['organization_id' => $user->organization->id])\n ->all();\n if($socialmarketOrganizations->count()==0)\n return $socialmarketOrganizations;\n\n $include_ids = [];\n foreach ($socialmarketOrganizations as $socialmarketOrganization)\n $include_ids[$socialmarketOrganization->supplier_organization_id] = $socialmarketOrganization->supplier_organization_id;\n\n $where_supplier = [];\n if(!empty($exclude_ids))\n $where_supplier += ['SuppliersOrganizations.id NOT IN ' => $exclude_ids];\n if(!empty($include_ids))\n $where_supplier += ['SuppliersOrganizations.id IN ' => $include_ids];\n\n $results = $this->find()\n ->where($where_order)\n ->contain([\n 'OrderTypes' => ['conditions' => ['code' => 'SOCIALMARKET']],\n 'OrderStateCodes',\n 'SuppliersOrganizations' => [\n 'Suppliers', 'conditions' => $where_supplier\n ],\n 'Deliveries' => ['conditions' => $where_delivery]\n ])\n ->order([$this->getAlias().'.data_inizio'])\n ->all();\n // debug($results);\n\n return $results;\n\n }", "function survey_filter2($categories)\n {\n $categories = implode(',', $categories);\n /*\n $sql = 'SELECT b.*\n FROM category_map bt, company b, category t\n WHERE bt.category_id = t.id\n AND (t.id IN ('.$categories.'))\n AND b.id = bt.company_id\n GROUP BY b.id';\n */\n $sql = 'SELECT b.*\n FROM company_category bt, company b, ref_category t\n WHERE bt.category_id = t.id\n AND (t.id IN ('.$categories.'))\n AND b.id = bt.company_id\n GROUP BY b.id';\n $query = $this->db->query($sql);\n\n if ($query->num_rows() > 0)\n {\n //build array of company ids that came from the last query...so we can use them in the upcoming query\n foreach ($query->result_array() as $row) {\n //$companyid_array[]=$row;\n $companyid_array[]=$row['id'];\n }\n $queried_comp_ids = implode(',', $companyid_array);\n \n /* echo \"queried comp ids based on CATEGORY: <br>\";\n print_r($queried_comp_ids);\n echo '<br>';*/\n \n //return a comma-separated squeried comp ids: tring of the company ids that match\n return $queried_comp_ids;\n \n }\n else //no companies were found\n {\n return FALSE;\n }\n\n }", "public function search_vendor_grid($id){\n $CompanyID = User::get_companyID();\n $data = Input::all();\n $UserID = 0;\n $SelectedCodes = 0;\n $isCountry = 1;\n $countries = 0;\n $isall = 0;\n $criteria =0;\n\n if (User::is('AccountManager')) {\n $UserID = User::get_userID();\n }\n if (isset($data['OwnerFilter']) && $data['OwnerFilter'] != 0) {\n $UserID = $data['OwnerFilter'];\n }\n\n //block by contry\n if(isset($data['block_by']) && $data['block_by']=='country')\n {\n $isCountry=1;\n if(in_array(0,explode(',',$data['Country']))){\n $isall = 1;\n }elseif(!empty($data['Country'])){\n $isall = 0;\n $countries = $data['Country'];\n }\n\n }\n\n //block by code\n if(isset($data['block_by']) && $data['block_by']=='code')\n {\n $isCountry=0;\n $isall = 0;\n // by critearia\n if(!empty($data['criteria']) && $data['criteria']==1){\n if(!empty($data['Code']) || !empty($data['Country'])){\n if(!empty($data['Code'])){\n $criteria = 1;\n $SelectedCodes = $data['Code'];\n }else{\n $criteria = 2;\n if(!empty($data['Country'])){\n $isall = 0;\n $countries = $data['Country'];\n }\n }\n }else{\n $criteria = 3;\n }\n\n }elseif(!empty($data['SelectedCodes'])){\n //by code\n $SelectedCodes = $data['SelectedCodes'];\n $criteria = 0;\n }\n\n }\n\n if($data['action'] == 'block'){\n $data['action'] = 0;\n }else{\n $data['action'] = 1;\n }\n\n $query = \"call prc_GetBlockUnblockVendor (\".$CompanyID.\",\".$UserID.\",\".$data['Trunk'].\",\".$data['Timezones'].\",'\".$countries.\"','\".$SelectedCodes.\"',\".$isCountry.\",\".$data['action'].\",\".$isall.\",\".$criteria.\")\";\n //$accounts = DataTableSql::of($query)->getProcResult(array('AccountID','AccountName'));\n //return $accounts->make();\n return DataTableSql::of($query)->make();\n }", "function _getActiveVendors() {\n $this->resetResponse();\n if ($this->ci->session->userdata('user_id') != null) {\n $archived = $this->ci->input->post('archived', true);\n\n $result = $this->model->getActiveVendors('*', array(\"person_type\" => Globals::PERSON_TYPE_VENDOR, \"person_archived\" => $archived))->result();\n\n if ($result) {\n $this->_status = true;\n $this->_message = '';\n $this->_rdata = $result;\n\n } else {\n $this->_status = false;\n $this->_message = $this->ci->lang->line('no_records_found');\n }\n \n } else {\n $this->_status = false;\n $this->_message = $this->ci->lang->line('invalid_user');\n \n }\n\n return $this->getResponse();\n }", "public function setValidationFilter($websiteId, $customerGroupId, $couponCode = '', $now = null)\n {\n if (!$this->getFlag('validation_filter')) {\n /* We need to overwrite joinLeft if coupon is applied */\n $this->getSelect()->reset();\n Mage_Rule_Model_Resource_Rule_Collection_Abstract::_initSelect(); // Called the parent's parent fucntion\n\n $this->addWebsiteGroupDateFilter($websiteId, $customerGroupId, $now);\n $select = $this->getSelect();\n\n if (strlen($couponCode)) {\n $select->joinLeft(\n array('rule_coupons' => $this->getTable('salesrule/coupon')),\n 'main_table.rule_id = rule_coupons.rule_id ',\n array('code','expiration_date')\n );\n\n $select->where('(main_table.coupon_type = ? ', Mage_SalesRule_Model_Rule::COUPON_TYPE_NO_COUPON)\n ->orWhere('(main_table.coupon_type = ? AND rule_coupons.type = 0',\n Mage_SalesRule_Model_Rule::COUPON_TYPE_AUTO)\n ->orWhere('main_table.coupon_type = ? AND main_table.use_auto_generation = 1 ' .\n 'AND rule_coupons.type = 1', Mage_SalesRule_Model_Rule::COUPON_TYPE_SPECIFIC)\n ->orWhere('main_table.coupon_type = ? AND main_table.use_auto_generation = 0 ' .\n 'AND rule_coupons.type = 0', Mage_SalesRule_Model_Rule::COUPON_TYPE_SPECIFIC)\n ->orWhere('main_table.coupon_type = ? AND main_table.use_auto_generation = 0 ' .\n 'AND rule_coupons.type = 1)', Cybage_SignupPromo_Model_Rule::COUPON_TYPE_AUTO_CUSTOMER_SPECIFIC)//Added this\n ->where('rule_coupons.code = ?)', $couponCode);\n } else {\n $this->addFieldToFilter('main_table.coupon_type', Mage_SalesRule_Model_Rule::COUPON_TYPE_NO_COUPON);\n }\n\n $this->setOrder('sort_order', parent::SORT_ORDER_ASC);\n $this->setFlag('validation_filter', true);\n }\n\n return $this;\n }", "public function testSearchWithFilters()\n {\n $filters = [\n \"from_date\" => \"2011-12-05\",\n \"to_date\" => \"2011-12-05\",\n \"city\" => \"CAI\",\n \"adults_ number\" => 5\n ];\n // Stub a JSON response for api.bestHotels.com/ endpoint.\n Http::fake([\n 'api.topHotels.com/*' => Http::response(['data' => $this->topHotelsDataFactory->getItems()], 200),\n 'api.bestHotels.com/*' => Http::response(['data' => $this->bestHotelsDataFactory->getItems()], 200)\n ]);\n $response = $this->json('get', 'api/search', $filters);\n $response->assertStatus(200);\n $response->assertJsonStructure([\n 'data' => [\n '*' => [\n 'provider',\n 'hotelName',\n 'rate',\n 'discount',\n 'fare',\n 'amenities',\n ]\n ],\n ]);\n }", "public function getIdsWithFiltersAndSort()\n {\n // Given\n $filter = array(\"sku\" => \"sku1\", \"test\" => \"test1\");\n $sortConfig = new SortConfig(\"under_value\", \"desc\");\n $response = array(\n \"meta\" => array(\n \"name\" => \"vendors\",\n \"display_name\" => \"vendors\",\n \"total\" => 2,\n \"count\" => 2,\n \"limit\" => VendorProvider::$PAGINATION_LIMIT,\n \"page\" => 0,\n \"start\" => 0,\n \"end\" => 1\n ),\n \"vendors\" => array(\n array(\"id\" => \"v1\"),\n array(\"id\" => \"v2\"),\n )\n );\n $expectedUrl = \"vendors?fields=id&sku=sku1&test=test1&under_value_sort=desc&limit=\".VendorProvider::$PAGINATION_LIMIT.\"&page=0\";\n $this->_mockApi->expects($this->once())\n ->method('getResource')\n ->with($this->equalTo($expectedUrl))\n ->will($this->returnValue($response));\n\n // When\n $result = $this->_vendorProvider->getIds($filter, $sortConfig);\n\n // Then\n $this->assertEquals($result, array(\"v1\", \"v2\"));\n }", "public function getActivatedVendors();", "public function formatFilters($rawFilters){\n $filters = array();\n \n //LIBRARIAN NAME\n if(array_key_exists('librarian', $rawFilters)){ \n if($rawFilters['librarian'] != ''){\n $filters['librarian'] = $this->__getStaffById($rawFilters['librarian']);\n }\n } \n \n //PROGRAM NAME\n if(array_key_exists('program', $rawFilters)){ \n if($rawFilters['program'] != ''){\n $filters['program'] = $this->__getProgramById($rawFilters['program']);\n }\n } \n \n //INSTRUCTION TYPE\n if(array_key_exists('instructionType', $rawFilters)){ \n $instructionType = $this->formatInstructionType($rawFilters['instructionType']);\n $filters['instructionType'] = $instructionType;\n } \n \n //FILTER CRITERIA (academic, fiscal, calendar, semester, custom)\n if(array_key_exists('filterCriteria', $rawFilters)){ \n $instructionType = $this->formatInstructionType($rawFilters['instructionType']);\n $filters['instructionType'] = $instructionType;\n \n switch($rawFilters['filterCriteria']){\n case 'academic':\n array_key_exists('academicYear', $rawFilters) ? $year = $rawFilters['academicYear'] . '-' . ($rawFilters['academicYear'] + 1) : $year = '';\n $criteriaYear = \"Academic Year \" . $year;\n break;\n case 'calendar':\n array_key_exists('calendarYear', $rawFilters) ? $year = $rawFilters['calendarYear'] : $year = '';\n $criteriaYear = \"Calendar Year \" . $year;\n break;\n case 'fiscal':\n array_key_exists('fiscalYear', $rawFilters) ? $year = $rawFilters['fiscalYear'] . '-' . ($rawFilters['fiscalYear'] + 1) : $year = '';\n $criteriaYear = \"Fiscal Year \" . $year;\n break;\n case 'semester':\n array_key_exists('year', $rawFilters) ? $year = $rawFilters['year'] : $year = '';\n $criteriaYear = ucfirst($rawFilters['semester']) . ' ' . $year;\n break;\n case 'custom':\n array_key_exists('startDate', $rawFilters) ? $startDate = $rawFilters['startDate'] : $startDate = '';\n array_key_exists('endDate', $rawFilters) ? $endDate = $rawFilters['endDate'] : $endDate = '';\n $criteriaYear = 'Date Range: ' . $startDate . ' to ' . $endDate;\n break;\n }\n \n $filters['year'] = $criteriaYear;\n } \n \n //LEVEL \n if(array_key_exists('level', $rawFilters)){ \n $filters['level'] = ucfirst($rawFilters['level']);\n } \n \n //LAST n MONTHS\n if(array_key_exists('lastmonths', $rawFilters)){ \n $filters['lastmonths'] = 'Last '.$rawFilters['lastmonths'].' months';\n } \n \n return $filters;\n }", "public static function kromeda_version_criteria($version_id , $lang){\n\t\t$api_param = $version_id.\"/\".$lang; \n\t\t$url = \"version_criteria/\".$api_param;\n\t\t$database_response = Kromeda::get_response_api($url);\n\t\t if($database_response == FALSE){\n\t\t\t $sess_key = sHelper::generate_kromeda_session_key();\n\t\t\t $third_party_response = sHelper::Get_kromeda_Request($sess_key , 'SMR_GetVehicleCriteria' , false , $api_param);\n\t\t\t $add_response = Kromeda::add_response($url , $third_party_response , \"SMR_GetVehicleCriteria\");\n\t\t\t if($add_response){\n\t\t\t\t $database_response = Kromeda::get_response_api($url);\n\t\t\t\t}\n\t\t\t }\n\t\t return self::smr_response($database_response);\t \n\t }", "public function getvendorsAction()\n {\n \t\n \t$vendorsmodel= new Default_Model_Vendors();\n \t$vendorsdataArr=$vendorsmodel->getVendorsList();\n \n \t$opt='<option value=\\'\\'>Select Vendor</option>';\n \n \tif(sizeof($vendorsdataArr)>0){\n \t\t\n \t\tforeach($vendorsdataArr as $vendors)\n \t\t{\n \t\t\t$opt.=\"<option value='\".$vendors['id'].\"'>\".$vendors['name'].\"</option>\";\n \t\t}\n \t}\n \t\n \t\n \t \t\n \t$this->_helper->json(array('options'=>utf8_encode($opt)));\n \t\n \t\n }", "function applyFilters($q, $au, $roo)\n {\n \n $tn = $this->tableName();\n $this->selectAdd(\"i18n_translate('c' , {$tn}.country, 'en') as country_display_name \");\n \n $tn = $this->tableName();\n //DB_DataObject::debugLevel(1);\n $x = DB_DataObject::factory('core_company');\n $x->comptype= 'OWNER';\n $x->find(true);\n\n if (!empty($q['query']['company_project_id'])) {\n $add = '';\n if (!empty($q['query']['company_include_self'])) {\n $add = \" OR {$tn}.id = {$x->id}\";\n }\n if (!empty($q['query']['company_not_self'])) {\n $add = \" AND {$tn}.id != {$x->id}\";\n }\n \n $pids = array();\n $pid = $q['query']['company_project_id'];\n if (strpos($pid, ',')) {\n $bits = explode(',', $pid);\n foreach($bits as $b) {\n $pids[] = (int)$b;\n }\n } else {\n $pids = array($pid);\n }\n \n \n $pids = implode(',', $pids);\n $this->whereAdd(\"{$tn}.id IN (\n SELECT distinct(company_id) FROM ProjectDirectory where project_id IN ($pids)\n ) $add\" );\n \n }\n if (!empty($q['query']['comptype'])) {\n \n $this->whereAddIn($tn.'.comptype', explode(',', $q['query']['comptype']), 'string');\n \n }\n \n // depricated - should be moved to module specific (texon afair)\n \n if (!empty($q['query']['province'])) {\n $prov = $this->escape($q['query']['province']);\n $this->whereAdd(\"province LIKE '$prov%'\");\n \n \n }\n // ADD comptype_display name.. = for combos..\n $this->selectAdd(\"\n (SELECT display_name\n FROM\n core_enum\n WHERE\n etype='comptype'\n AND\n name={$tn}.comptype\n LIMIT 1\n ) as comptype_display_name\n \");\n \n if(!empty($q['query']['name']) || !empty($q['search']['name'])){\n \n $s = (!empty($q['query']['name'])) ? $this->escape($q['query']['name']) : $this->escape($q['search']['name']);\n \n $this->whereAdd(\"\n {$tn}.name LIKE '%$s%'\n \");\n }\n \n if(!empty($q['query']['name_starts']) || !empty($q['search']['name_starts'])){\n \n $s = (!empty($q['query']['name_starts'])) ? $this->escape($q['query']['name_starts']) : $this->escape($q['search']['name_starts']);\n \n $this->whereAdd(\"\n {$tn}.name LIKE '$s%'\n \");\n }\n }", "public function testIndexSurvey()\n {\n $year = 2018;\n Survey::factory()->create(['year' => $year]);\n\n $response = $this->json('GET', 'survey', ['year' => $year]);\n $response->assertStatus(200);\n $this->assertCount(1, $response->json()['survey']);\n }", "public function getFilter();", "public function getFilter();", "function match_survey()\n {\n $type_array = $this->input->post('company_type');\n $pace_array = $this->input->post('company_pace');\n $lifecycle_array = $this->input->post('lifecycle');\n $corp_citizenship = $this->input->post('corp_citizenship');\n\n //put the values from those arrays into strings so they can be added to the query\n $imploded_type = implode(\" OR \", $type_array);\n $imploded_pace = implode(\" OR \", $pace_array);\n $imploded_lifecycle = implode(\" OR \", $lifecycle_array);\n\n $sql = 'SELECT id,company_name FROM company where (type_id = '.$imploded_type.')\n AND (pace_id = '.$imploded_pace.')\n AND (lifecycle_id = '.$imploded_lifecycle.')';\n //run the query\n $query = $this->db->query($sql);\n //return $query->result(); \n if ($query->num_rows() > 0)\n {\n //build array of company ids that came from the last query...so we can use them in the upcoming query\n foreach ($query->result_array() as $row) {\n //$companyid_array[]=$row;\n $companyid_array[]=$row['id'];\n }\n $queried_comp_ids = implode(',', $companyid_array);\n \n //get the user submitted benefits ranking\n $user_benefits_array = $this->input->post('users_benefits'); \n \n //$this->output->enable_profiler(TRUE);\n \n //get all the companies (that meet the previous criteria) and their associated benefits\n $sql2 = 'SELECT company_id,benefits_id FROM company_benefits WHERE company_id IN ('.$queried_comp_ids.')';\n $query2 = $this->db->query($sql2);\n \n //build an array with a specific format to be used in the upcoming scoring process\n $company_set = array();\n foreach ($query2->result_array() as $row) {\n $company_set[$row['company_id']][]=$row['benefits_id'];\n }\n \n $scores = array();\n // For every company, we will assign it a score based on what benefits it has\n // and how the user ranked that benefit. Higher ranks are more valuable, so the highest\n // total score wins.\n foreach($company_set as $company_id => $array_row)\n { \n $score = 0;\n foreach ($array_row as $key=>$benefit_id)\n {\n //this line grabs the user's ranking for the benefit_id that this particular company has\n //and assigns it to the score variable. this will be added to the scores matrix\n //and a tally will be kept for each company. \n //KEY POINT: The benefit that is most desired has the highest rank value. For example,\n // if there are 10 options, the user's most desired benefit has a rank of 10. The least\n // desired has a rank of 1.\n \n $score += $user_benefits_array[$benefit_id]['rank'];\n }\n $scores[$company_id] = $score;\n\n }\n \n arsort($scores);\n /* echo \"scores: <br>\";\n print_r($scores);*/\n //reset($scores);\n //$first_key = key($scores);\n //echo \"Best score is company id: \".$first_key;\n //Array ( [1] => 88 [3] => 67 [4] => 65 )\n $ranked_comps = array_keys($scores);\n //return $ranked_comps;\n return $scores;\n\n } else {\n //echo \"<br>from the model: there were no results.\";\n }\n \n }", "public function testComAdobeCqSocialModerationDashboardInternalImplFilterGroupSoci()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.adobe.cq.social.moderation.dashboard.internal.impl.FilterGroupSocialComponentFactoryV2';\n\n $crawler = $client->request('POST', $path);\n }", "public function test_getLowStockByFilter() {\n\n }", "protected function getPublicVendorsRequest($components = null)\n {\n\n $resourcePath = '/Destiny2/Vendors/';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // query params\n if (is_array($components)) {\n $components = ObjectSerializer::serializeCollection($components, 'multi', true);\n }\n if ($components !== null) {\n $queryParams['components'] = ObjectSerializer::toQueryValue($components);\n }\n\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n if ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($_tempBody));\n } else {\n $httpBody = $_tempBody;\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('X-API-Key');\n if ($apiKey !== null) {\n $headers['X-API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testFilter()\n {\n // so here we just verify that the params are passed correctly internally\n $project_repository = $this->getMockBuilder(ProjectRepository::class)\n ->disableOriginalConstructor()\n ->setMethods(['scopeByDate', 'scopeWithTags', 'scopeWithoutTags',\n 'scopeByField', 'search'])->getMock();\n\n // with tags\n $project_repository->expects($this->once())->method('scopeWithTags')\n ->with($this->equalTo('badabing'));\n $project_repository->filter(['withTags' => 'badabing']);\n\n // without tags\n $project_repository->expects($this->once())->method('scopeWithoutTags')\n ->with($this->equalTo('badabeng'));\n $project_repository->filter(['withoutTags' => 'badabeng']);\n\n // with date\n $project_repository->expects($this->once())->method('scopeByDate')\n ->with($this->equalTo('27.01.2018'));\n $project_repository->filter(['date' => '27.01.2018']);\n\n // with search\n $project_repository->expects($this->once())->method('search')\n ->with($this->equalTo('jahade'));\n $project_repository->filter(['search' => 'jahade']);\n\n // default\n $project_repository->expects($this->once())->method('scopeByField')\n ->with(\n $this->equalTo('budget_price'),\n $this->equalTo('65000')\n );\n $project_repository->filter(['budget_price' => '65000']);\n }", "function survey_filter3($company_list)\n {\n $type_array = $this->input->post('company_type');\n\n //put the values from those arrays into strings so they can be added to the query\n $imploded_type = implode(\",\", $type_array);\n \n /*\n echo \"these are the passed company types:<br>\";\n echo $imploded_type;\n echo \"<br>\";\n \n echo \"this is the passed company list:<br>\";\n echo $company_list;\n echo \"<br>\"; \n */\n $sql = 'SELECT id,company_name FROM company WHERE type_id IN ('.$imploded_type.')\n AND id IN ('.$company_list.')';\n ////TODO: this query cannot handle the case where there is only one choice passed. \n //must be a problem with the comma?\n\n //run the query\n $query = $this->db->query($sql);\n \n if ($query->num_rows() > 0)\n {\n //build array of company ids that came from the last query...so we can use them in the upcoming query\n foreach ($query->result_array() as $row) {\n //$companyid_array[]=$row;\n $companyid_array[]=$row['id'];\n }\n $queried_comp_ids = implode(',', $companyid_array);\n /*\n echo \"queried comp ids based on TYPE: <br>\";\n print_r($queried_comp_ids);\n echo '<br>';\n */\n return $queried_comp_ids;\n \n }\n else //no companies were found\n {\n return FALSE;\n }\n }", "protected function deleteVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_id' is set\n if ($file_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_id !== null) {\n $resourcePath = str_replace(\n '{' . 'fileId' . '}',\n ObjectSerializer::toPathValue($file_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function searchProfessionals($pCriteria){\n\t\t// \t-> get();\n\n\t// \t return $this -> professional -> join('pros_specs', 'professionals.ID', '=', 'pros_specs.professionalID')\n\t// \t\t -> join('specializations', 'specializations.ID', '=', 'pros_specs.specializationID')\n\t// \t\t-> join('pros_creativefields', 'professionals.ID', '=', 'pros_creativefields.ProfessionalID')\n\t// \t\t-> join('creativefields', 'pros_creativefields.CreativeFieldID', '=', 'creativefields.ID')\n\t// \t\t-> join('pros_platforms', 'professionals.ID', '=', 'pros_platforms.ProfessionalID')\n\t// \t\t-> join('platforms', 'platforms.ID', '=', 'pros_platforms.PlatformID')\n\t// \t\t-> join('cities', 'professionals.CityID', '=', 'Cities.ID')\n\t// \t\t-> where('CompanyName', 'LIKE', '%' . $pCriteria['pCompanyName'] . '%')\n\t// \t\t-> whereIn('specializations.ID', $pCriteria['pSpecializations'])\n\t// \t\t-> whereIn('creativefields.ID', $pCriteria['pCreativeFields'])\n\t// \t\t-> whereIn('platforms.ID', $pCriteria['pPlatforms'])\n\t// \t\t-> whereIn('cities.ID', $pCriteria['pCities']) \n\t// \t\t-> groupBy('professionals.ID')\n\t// \t\t-> distinct() -> get();\n\t// }\n\n\t\t$searchQuery = $this -> professional -> queryJoiningTables();\n\n\t\tif(!is_null($pCriteria['pCompanyName'])){\n\t\t\t$searchQuery = $searchQuery -> queryCompanyName($pCriteria['pCompanyName']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pSpecializations'])){\n\t\t\t$searchQuery = $searchQuery -> querySpecializations($pCriteria['pSpecializations']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pCreativeFields'])){\n\t\t\t$searchQuery = $searchQuery -> queryCreativeFields($pCriteria['pCreativeFields']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pPlatforms'])){\n\t\t\t$searchQuery = $searchQuery -> queryPlatforms($pCriteria['pPlatforms']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pCities'])){\n\t\t\t$searchQuery = $searchQuery -> queryCities($pCriteria['pCities']);\n\t\t}\n\n\n\n\t\treturn $searchQuery -> groupBy('professionals.ID') \n\t\t\t-> distinct() -> get(array('Professionals.*'));\n\t}", "public function getVendor()\n {\n return $this->hasOne(VendorServiceExt::className(), ['vendor_id' => 'vendor_id']);\n }", "public function test_getReplenishmentProcessByFilter() {\n\n }", "public function test_getBillingCodeTypeByFilter() {\n\n }", "public function testComAdobeGraniteCsrfImplCSRFFilter()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.adobe.granite.csrf.impl.CSRFFilter';\n\n $crawler = $client->request('POST', $path);\n }", "public function testGetExternalShipmentByFilter()\n {\n }" ]
[ "0.65983975", "0.6440524", "0.60063905", "0.5990527", "0.5842516", "0.56278217", "0.5604441", "0.5356904", "0.5316118", "0.52802116", "0.52200514", "0.5216986", "0.51793104", "0.51576316", "0.5118981", "0.50689995", "0.5038304", "0.502875", "0.5018832", "0.50145", "0.49898386", "0.49700508", "0.49518743", "0.49495512", "0.4931179", "0.49031204", "0.487443", "0.4859499", "0.4795649", "0.47679278", "0.47562447", "0.4738703", "0.47060472", "0.4685185", "0.46591347", "0.46567523", "0.46503648", "0.46275347", "0.46183768", "0.460923", "0.45909005", "0.4587892", "0.45849028", "0.4545014", "0.4540365", "0.453788", "0.45257905", "0.45134556", "0.45013702", "0.4481972", "0.44775173", "0.44770506", "0.44703934", "0.44668588", "0.44618028", "0.44522792", "0.44308168", "0.44301504", "0.44234675", "0.4418447", "0.4409319", "0.4404413", "0.44007444", "0.43884203", "0.43840182", "0.4370792", "0.4369497", "0.43604693", "0.4355162", "0.43521065", "0.43483865", "0.4332991", "0.43207225", "0.43155473", "0.43070897", "0.42926162", "0.4280412", "0.4276659", "0.4273391", "0.4269599", "0.4258241", "0.42581403", "0.42402413", "0.42392617", "0.42312038", "0.42194647", "0.42194647", "0.4214969", "0.4213671", "0.42118368", "0.42069212", "0.42064008", "0.42027253", "0.4202689", "0.41836667", "0.41828024", "0.41819888", "0.41818133", "0.41769052", "0.41726285" ]
0.6682606
0
Test case for getVendorComplianceSurveyById Get a vendorComplianceSurvey by id.
public function testGetVendorComplianceSurveyById() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getDuplicateVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/duplicate/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function getVendorComplianceSurveyByIdWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->getVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "protected function deleteVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_id' is set\n if ($file_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_id !== null) {\n $resourcePath = str_replace(\n '{' . 'fileId' . '}',\n ObjectSerializer::toPathValue($file_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function getVendorComplianceSurveyFilesRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyFiles'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function getVendorComplianceSurveyTagsRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyTags'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function addVendorComplianceSurveyAuditRequest($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyAudit'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_audit' is set\n if ($vendor_compliance_survey_audit === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_audit when calling addVendorComplianceSurveyAudit'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/audit/{vendorComplianceSurveyAudit}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_audit !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyAudit' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_audit),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function getDuplicateVendorComplianceSurveyByIdWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "protected function addVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_name)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_name' is set\n if ($file_name === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_name when calling addVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileName}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_name !== null) {\n $resourcePath = str_replace(\n '{' . 'fileName' . '}',\n ObjectSerializer::toPathValue($file_name),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function getVendorComplianceSurveyByIdAsyncWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->getVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "protected function addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addVendorComplianceSurveyFileByURL'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFileByURL'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "protected function deleteVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling deleteVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "private function LoadVendorById($id)\n\t{\n\t\t$query = \"\n\t\t\tSELECT *\n\t\t\tFROM [|PREFIX|]vendors\n\t\t\tWHERE vendorid='\".(int)$id.\"'\n\t\t\";\n\t\t$result = $GLOBALS['ISC_CLASS_DB']->Query($query);\n\t\treturn $GLOBALS['ISC_CLASS_DB']->Fetch($result);\n\t}", "public function GetVendor($id=null){\n\t\theader('Access-Control-Allow-Origin:*');\n\t\t$this->load->model('BookingModel');\n\t\t$data['booking_id']=$this->input->post('booking_id');\n\t\t$data['vendor_id']=$this->input->post('vendor_id');\n\t\t$data['vendors']=$this->BookingModel->GetVendorOS($this->input->post('city'),$this->input->post('cab'),$this->input->post('type'));\n\n\t\t $data['companies']=$this->BookingModel->GetCompanyOS($this->input->post('booking_id'),$this->input->post('type'));\n\t\t\n\t\tif($this->input->post('type')==\"outstation\"){\n\t\t\techo $this->load->view('booking/vendor_assign/VendorLists',$data,true);\n\t\t} else if($this->input->post('type')==\"local\"){\n\t\t\techo $this->load->view('booking/vendor_assign/VendorLocal',$data,true);\n\t\t} else if($this->input->post('type')==\"transfer\"){\n\t\t\techo $this->load->view('booking/vendor_assign/VendorTransfer',$data,true);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "protected function addVendorComplianceSurveyTagRequest($vendor_compliance_survey_id, $vendor_compliance_survey_tag)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyTag'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_tag' is set\n if ($vendor_compliance_survey_tag === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_tag when calling addVendorComplianceSurveyTag'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/tag/{vendorComplianceSurveyTag}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($vendor_compliance_survey_tag !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyTag' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_tag),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function getVendor($id) {\n try {\n $objVendor = new Base_Model_ObtorLib_App_Core_Catalog_Dao_Vendor();\n $vendor = $objVendor->getVendor($id);\n return $vendor;\n } catch (Exception $e) {\n throw new Base_Model_ObtorLib_App_Core_Catalog_Exception($e);\n }\n }", "public function getVendorComplianceSurveyByIdAsync($vendor_compliance_survey_id)\n {\n return $this->getVendorComplianceSurveyByIdAsyncWithHttpInfo($vendor_compliance_survey_id)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "function getSurveyId()\n\t{\n\t\treturn $this->survey_id;\n\t}", "public function getVendorComplianceSurveyByFilter($filter = null, $page = null, $limit = null, $sort = null)\n {\n list($response) = $this->getVendorComplianceSurveyByFilterWithHttpInfo($filter, $page, $limit, $sort);\n return $response;\n }", "public function deleteVendorComplianceSurveyWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '';\n $request = $this->deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "public function Load($surveyid)\n\t{\n\t\t$surveyid = (int)$surveyid;\n\t\t$prefix = $this->Db->TablePrefix;\n\t\t$query = \"SELECT * FROM {$prefix}surveys WHERE id = $surveyid\";\n\n\t\t$result = $this->Db->Query($query);\n\t\t$survey = $this->Db->Fetch($result);\n\n\t\treturn $this->_loadData($survey);\n\t}", "public function getVendorThatExists()\n {\n // Given\n $this->_mockApi->expects($this->once())\n ->method('getResource')\n ->with($this->equalTo(\"vendors/v1\"))\n ->will($this->returnValue(self::$VENDOR_RESPONSE));\n\n // When\n $result = $this->_vendorProvider->getById(\"v1\");\n\n // Then\n $this->assertResult($result);\n }", "public function getVendor(int $vendorId): ?Vendor\n {\n return $this->getVendorsCollection()->getItemById($vendorId);\n }", "public function addVendorComplianceSurveyWithHttpInfo($body)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->addVendorComplianceSurveyRequest($body);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 405:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Infoplus\\Infoplus\\Model\\ApiResponse',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "public function get_vendor($id, $select=FALSE)\n\t{\n\t\t// Particular fields? Why select unnecessary stuff?\n\t\tif ($select)\n\t\t{\n\t\t\t// Limit the list of fields\n\t\t\t$this->db->select($select);\n\t\t}\n\t\t\n\t\t// Set id, limit to one and perform\n\t\t$q = $this->db\n\t\t\t->where('id',$id)\n\t\t\t->limit(1)\n\t\t\t->get('vendors');\n\t\t\n\t\t// If we got something\n\t\tif ($q->num_rows() > 0)\n\t\t{\n\t\t\tif (!empty($r->structure))\n\t\t\t{\n\t\t\t\t$r->structure = unserialize($structure);\n\t\t\t}\n\t\t\t\n\t\t\t$r = $q->row();\n\t\t\treturn $r;\n\t\t}\n\t\t\n\t\t// Return false otherwise\n\t\treturn FALSE;\n\t}", "static function getAllSurveys($id = null, $cfg) {\n // In the event the survey project is longitudinal, we need to use the event ID\n $survey_event_id = empty($cfg['SURVEY_EVENT_ARM_NAME']) ? NULL : StaticUtils::getEventIdFromName($cfg['SURVEY_PID'], $cfg['SURVEY_EVENT_ARM_NAME']);\n $survey_event_prefix = empty($cfg['SURVEY_EVENT_ARM_NAME']) ? \"\" : \"[\" . $cfg['SURVEY_EVENT_ARM_NAME'] . \"]\";\n\n if ($id == null) {\n $filter = null; //get all ids\n } else {\n $filter = $survey_event_prefix . \"[{$cfg['SURVEY_FK_FIELD']}]='$id'\";\n }\n\n $get_data = array(\n $cfg['SURVEY_PK_FIELD'],\n $cfg['SURVEY_FK_FIELD'],\n $cfg['SURVEY_TIMESTAMP_FIELD'],\n $cfg['SURVEY_DATE_FIELD'],\n $cfg['SURVEY_DAY_NUMBER_FIELD'],\n $cfg['SURVEY_FORM_NAME'] . '_complete'\n ) ;\n\n $q = REDCap::getData(\n $cfg['SURVEY_PID'],\n 'json',\n NULL,\n $get_data,\n $survey_event_id,\n NULL,FALSE,FALSE,FALSE,\n $filter\n );\n\n $results = json_decode($q,true);\n return $results;\n }", "public function vendor($vendor_id)\n\t{\n\t\t$this->_vendors_array('all');\n\t\t\n\t\tif (isset($this->vendors_cache[$vendor_id]))\n\t\t{\n\t\t\treturn $this->vendors_cache[$vendor_id];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->vendors_cache[1];\n\t\t}\n\t}", "public function getDuplicateVendorComplianceSurveyByIdAsyncWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "public function testDeleteVendorComplianceSurvey()\n {\n }", "public function showVendor($id)\n {\n $ven = MasterVendor::whereId($id)->first();\n \n if ($ven) {\n return response()->json([\n 'success' => true, \n 'message' => 'Retrieved Successfully!',\n 'data' => $ven,\n ], 200);\n }\n else {\n return response()->json([\n 'success' => false, \n 'message' => 'Retrieved Failed!',\n 'data' => '',\n ], 401);\n }\n \n }", "public function testGetDuplicateVendorComplianceSurveyById()\n {\n }", "private function _get_survey_by_id($id_arr)\n\t{\n\t\t//create filter query for survey IDs\n\t\t$survey_fq=implode(\" OR \", $id_arr);\n\t\t$survey_fq= sprintf(' survey_uid:(%s)',$survey_fq);\n\n\t\t//get a select query instance\n\t\t$query = $this->solr_client->createSelect();\n\n\t\t$query->setFields(array(\n\t\t\t\t'id:survey_uid',\n\t\t\t\t'title:title',\n\t\t\t\t'nation',\n\t\t\t\t'idno'\n\t\t\t));\n\n\t\t//filter on survey id\n\t\t$query->createFilterQuery('survey_list')->setQuery($survey_fq);\n\n\t\t//set to return surveys only\n\t\t$query->createFilterQuery('survey_doctype_1')->setQuery('doctype:1');\n\n\t\t$query->setRows(count($id_arr)); //get 0-100 rows\n\n\t\t//execute search\n\t\t$resultset = $this->solr_client->select($query);\n\n\t\t//get the total number of documents found by solr\n\t\t$found_rows=$resultset->getNumFound();\n\n\t\t$output=array();\n\n\t\t$search_result=$resultset->getData();\n\n\t\t//get search result as array\n\t\tforeach($search_result['response']['docs'] as $row){\n\t\t\t\t$output[$row['id']]=$row;\n\t\t}\n\n\t\treturn $output;\n\t}", "public function getVendorComplianceSurveyByFilterAsync($filter = null, $page = null, $limit = null, $sort = null)\n {\n return $this->getVendorComplianceSurveyByFilterAsyncWithHttpInfo($filter, $page, $limit, $sort)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "function get($id) {\r\n\t\treturn SurveyAnswerQuery::create()->findPk($id);\r\n\t}", "public function show($vendorId, $vendorContactId)\n\t{\n\t\t$validator = Validator::make(\n array('intVendorId'=>$vendorId,'intVendorContactId' => $vendorContactId),\n array('intVendorId'=>'required|numeric','intVendorContactId' => 'required|numeric')\n );\n\n if($validator->fails())\n {\n return $this->respondBadRequest('Invalid inputs.');\n }\n $vendorContact = VendorContact::find($vendorContactId);\n\n if (!$vendorContact) {\n return $this->respondNotFound('Vendor contact does not exist.');\n }\n if ($vendorContact->intVendorId != $vendorId) {\n return $this->respondBadRequest('Vendor and contact mismatch.');\n }\n\n return $this->respond( $this->vendorContactTransformer->transform($vendorContact));\n\t}", "function releaseSurvey($id=null)\r\n {//deprecated, this function is not used\r\n $eventArray = array();\r\n\r\n $this->Survey->setId($id);\r\n $this->params['data'] = $this->Survey->read();\r\n $this->params['data']['Survey']['released'] = 1;\r\n\r\n //add survey to eventsx();\r\n //set up Event params\r\n $eventArray['Event']['title'] = $this->params['data']['Survey']['name'];\r\n $eventArray['Event']['course_id'] = $this->params['data']['Survey']['course_id'];\r\n $eventArray['Event']['event_template_type_id'] = 3;\r\n $eventArray['Event']['template_id'] = $this->params['data']['Survey']['id'];\r\n $eventArray['Event']['self_eval'] = 0;\r\n $eventArray['Event']['com_req'] = 0;\r\n $eventArray['Event']['due_date'] = $this->params['data']['Survey']['due_date'];\r\n $eventArray['Event']['release_date_begin'] = $this->params['data']['Survey']['release_date_begin'];\r\n $eventArray['Event']['release_date_end'] = $this->params['data']['Survey']['release_date_end'];\r\n $eventArray['Event']['creator_id'] = $this->params['data']['Survey']['creator_id'];\r\n $eventArray['Event']['created'] = $this->params['data']['Survey']['created'];\r\n\r\n //Save Data\r\n if ($this->Event->save($eventArray)) {\r\n //Save Groups for the Event\r\n //$this->GroupEvent->insertGroups($this->Event->id, $this->params['data']['Event']);\r\n\r\n //$this->redirect('/events/index/The event is added successfully.');\r\n }\r\n\r\n $this->Survey->save($this->params['data']);\r\n\r\n\r\n\t\t$this->set('data', $this->Survey->findAll(null, null, 'id'));\r\n\t\t$this->set('message', 'The survey was released.');\r\n\t\t$this->index();\r\n\t\t$this->render('index');\r\n\t}", "public function addVendorComplianceSurvey($body)\n {\n list($response) = $this->addVendorComplianceSurveyWithHttpInfo($body);\n return $response;\n }", "public function getSurveyDetails($id) {\n $result = array();\n\t\t$survey_details = $this->findById($id);\n\t\tif (!empty($survey_details))\n\t\t{\n\t\t\t$result['name'] = $survey_details['Survey']['name'];\n\t\t\t$result['description'] = $survey_details['Survey']['description'];\n $result['surveyKey'] = $survey_details['Survey']['survey_key'];\n $result['type'] = $survey_details['Survey']['type'] == true ? 1 : 0;\n $result['status'] = $survey_details['Survey']['status'];\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn FALSE;\n\t\t}\n }", "function &getSurvey($schedConfId, $typeid = NULL) {\n \n if (is_null($typeid)) {\n $result =& $this->retrieve(\n 'SELECT type_id, users.user_id, users.first_name, users.affiliation, users.email, survey, registrations.date_registered, registrations.date_paid FROM registrations, users WHERE registrations.user_id = users.user_id AND sched_conf_id = ? '\n . 'ORDER BY registrations.date_registered'\n , array($schedConfId)\n );\n }\n else {\n $result =& $this->retrieve(\n 'SELECT type_id, users.user_id, users.first_name, users.affiliation, users.email, survey, registrations.date_registered, registrations.date_paid FROM registrations, users WHERE registrations.user_id = users.user_id AND sched_conf_id = ? AND type_id = ? '\n . 'ORDER BY registrations.date_registered'\n , array($schedConfId, $typeid)\n );\n }\n \n\t\t\n \n $output = array();\n\t\twhile (!$result->EOF) {\n $row =& $result->getRowAssoc(false);\n \n $type = $this->getRegistrationType($row['type_id']);\n \n //print_r($row);\n \n $data = array(\n 'type' => $type->getRegistrationTypeName(),\n 'user_id' => $row['user_id'], \n 'first_name' => $row['first_name'], \n 'affiliation' => $row['affiliation'], \n 'email' => $row['email'],\n 'date_registered' => $row['date_registered'],\n 'date_paid' => $row['date_paid']\n );\n \n $surveyArray = json_decode($row['survey'], true);\n //print_r($surveyArray);\n foreach ($surveyArray AS $key => $value) {\n $data[$key] = $value;\n }\n $output[] = $data;\n $result->MoveNext();\n\t\t}\n \n import('conference.ConferenceSettingsDAO');\n\t\t$csv = ConferenceSettingsDAO::_parseCsv($output);\n \n\t\t$result->Close();\n\t\tunset($result);\n return $csv;\n\t}", "public function store($vendorId)\n\t{\n\t\tInput::merge(array_map('trim', Input::all()));\n $validator = Validator::make(\n array('intVendorId' => $vendorId),\n array('intVendorId' => 'required')\n );\n\n if ($validator->fails()) {\n return $this->respondBadRequest('Invalid Vendor Id.');\n }\n\n $validator = Validator::make(\n Input::get(),\n array(\n 'contactName' => 'required|max:200',\n 'contactDesignation' => 'sometimes|max:200',\n 'contactEmail' => 'sometimes|email|max:200',\n 'contactPhone1' => 'sometimes|max:20',\n 'contactPhone2' => 'sometimes|max:20'\n ));\n if ($validator->fails()) {\n return $this->respondBadRequest('Invalid input.', array('app_error' => $validator->messages()->toArray()));\n }\n\n $vendor = Vendor::find($vendorId);\n if (!$vendor) {\n return $this->respondNotFound('Vendor does not exist.');\n }\n\n $vendorContact = new VendorContact;\n $vendorContact->intVendorId = $vendorId;\n $vendorContact->strContactFullName =Input::get('contactName');\n $vendorContact->strContactDesgnation =Input::get('contactDesignation');\n $vendorContact->strContactEmail =Input::get('contactEmail');\n $vendorContact->strContactPhone1 =Input::get('contactPhone1');\n $vendorContact->strContactPhone2 =Input::get('contactPhone2');\n\n try {\n $vendorContact->save();\n } catch (\\Exception $e) {\n return $this->respondInternalError('Unable to save Vendor contact.');\n }\n $insertedVendorContact = VendorContact::find($vendorContact->intVendorContactId);\n return $this->setStatusCode(ApiController::HTTP_CREATED)->respond($this->vendorContactTransformer->transform($insertedVendorContact));\n\n\t}", "function particularvendorlist($id)\n\t{\n\t\t$getParvendor=\"SELECT * from vendor where vendor_id = $id\";\n\t\t$vendor_data=$this->get_results( $getParvendor );\n\t\treturn $vendor_data;\n\t}", "static function getCompanyById($id){\n try{\n include('loginBDD.php');\n $sql = \"SELECT * FROM company WHERE id = :id\";\n $prepared = $bdd->prepare($sql);\n\n if(!$prepared->execute([\n ':id' => $id\n ])){\n print_r($bdd->errorInfo());\n }\n\n $result = $prepared->fetch();\n return $result;\n\n }\n catch(\\Exception $e)\n {\n die('Erreur : '.$e->getMessage());\n }\n catch(\\PDOException $e)\n {\n die('Erreur : '.$e->getMessage());\n }\n }", "public function getVendorId() {}", "public function testAddVendorComplianceSurvey()\n {\n }", "public function getVendorComplianceSurveyFilesWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '';\n $request = $this->getVendorComplianceSurveyFilesRequest($vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "public function testGetVendorComplianceSurveyByFilter()\n {\n }", "public function updateVendorComplianceSurveyWithHttpInfo($body)\n {\n $returnType = '';\n $request = $this->updateVendorComplianceSurveyRequest($body);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "public function getComplianceResultsById($results_id){\n $this->db->select('*');\n $this->db->from('results_tbl');\n $this->db->where('results_id', $results_id);\n // $this->db->where('status', 'Active');\n return $this->db->get()->row();\n }", "public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }", "public function get_consent($consent_id){\n if( Auth::user()->hasRole('admin') ){\n $consent = Consent::with('guardians')\n ->select(\n 'consent.consent_id',\n 'consent.title',\n 'consent.content',\n 'consent.created_at'\n )\n ->where('consent.franchise_id', $this->franchise_id)\n ->where('consent.club_id', $this->club_id)\n ->where('consent.consent_id', $consent_id)\n ->first();\n } else {\n $consent = Consent::select(\n 'consent.consent_id',\n 'consent.title',\n 'consent.content',\n 'consent.created_at',\n 'rel_consent_user.agreed_at'\n )\n ->leftJoin('rel_consent_user', 'rel_consent_user.consent_id', '=', 'consent.consent_id')\n ->where('rel_consent_user.user_id', $this->user_id)\n ->where('consent.franchise_id', $this->franchise_id)\n ->where('consent.club_id', $this->club_id)\n ->where('consent.consent_id', $consent_id)\n ->first();\n }\n return response()->json($consent, 200);\n }", "protected function addVendorComplianceSurveyRequest($body)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "function &_getGlobalSurveyData($obj_id)\n\t{\n\t\t$survey = new ilObjSurvey($obj_id, false);\n\t\t$survey->loadFromDb();\n\t\t$result = array();\n\t\tif (($survey->getTitle()) and ($survey->author) and (count($survey->questions)))\n\t\t{\n\t\t\t$result[\"complete\"] = true;\n\t\t} \n\t\t\telse \n\t\t{\n\t\t\t$result[\"complete\"] = false;\n\t\t}\n\t\t$result[\"evaluation_access\"] = $survey->getEvaluationAccess();\n\t\treturn $result;\n\t}", "public function addVendorComplianceSurveyAsync($body)\n {\n return $this->addVendorComplianceSurveyAsyncWithHttpInfo($body)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function get_by_id($id) {\n $this->db->select('*');\n $this->db->from(\"violations\");\n $this->db->where('id', $id);\n\n $query = $this->db->get();\n\n return $query->row();\n }", "public function show($id)\n {\n $scale = Survey::find($id);\n return $scale;\n }", "public function show($survey_id, $id)\n\t{\n\t\t$question = Question::where('surveys_id', $survey_id)->where('id', $id)->first();\n\t\t\n\t if (!$question)\n\t {\n\t return Response::json([\n\t 'error' => [\n\t 'message' => 'Not found!',\n\t 'status_code' => 404\n\t ]\n\t ], 404);\n\t }\n\n\t return Fractal::item($question, new QuestionTransformer);\n\t}", "public function assetTrackingSurveyByCustomer($customer_id)\n {\n if (!$this->isAuthorized) {\n return prepareResult(false, [], [], \"User not authenticate\", $this->unauthorized);\n }\n\n $asset_survey = Survey::with(\n 'surveyCustomer',\n 'surveyCustomer.customer:id,firstname,lastname',\n 'surveyQuestion'\n )\n ->where('survey_type_id', 4)\n ->whereDate('start_date', '<=', date('Y-m-d'))\n ->whereDate('end_date', '>=', date('Y-m-d'))\n ->whereHas('surveyCustomer', function ($query) use ($customer_id) {\n $query->where('customer_id', $customer_id);\n })\n ->orderBy('id', 'desc')\n ->get();\n\n return prepareResult(true, $asset_survey, [], \"asset tracking Survey by customer listing\", $this->success);\n }", "public function update($vendorId, $vendorContactId)\n\t{\n\t\t$validator = Validator::make(\n array('intVendorId'=>$vendorId,'intVendorContactId' => $vendorContactId),\n array('intVendorId'=>'required|numeric','intVendorContactId' => 'required|numeric')\n );\n\n if($validator->fails())\n {\n return $this->respondBadRequest('Invalid Inputs.');\n }\n $vendorContact = VendorContact::find($vendorContactId);\n\n if (!$vendorContact) {\n return $this->respondNotFound('Vendor contact does not exist.');\n }\n if ($vendorContact->intVendorId != $vendorId) {\n return $this->respondBadRequest('Vendor and contact mismatch.');\n }\n $validator = Validator::make(\n Input::get(),\n array(\n 'contactName' => 'sometimes|alpha_spaces|max:200',\n 'contactDesignation' => 'sometimes|alpha_spaces|max:200',\n 'contactEmail' => 'sometimes|email|max:200',\n 'contactPhone1' => 'sometimes|alpha_spaces|max:20',\n 'contactPhone2' => 'sometimes|alpha_spaces|max:20'\n ));\n if ($validator->fails()) {\n return $this->respondBadRequest('Invalid input.', array('app_error' => $validator->messages()->toArray()));\n }\n\n $vendorContact->strContactFullName =Input::get('contactName')?Input::get('contactName'):$vendorContact->strContactFullName;\n $vendorContact->strContactDesgnation =Input::get('contactDesignation')?Input::get('contactDesignation'):$vendorContact->strContactDesgnation;\n $vendorContact->strContactEmail =Input::get('contactEmail')?Input::get('contactEmail'):$vendorContact->strContactEmail;\n $vendorContact->strContactPhone1 =Input::get('contactPhone1')?Input::get('contactPhone1'):$vendorContact->strContactPhone1;\n $vendorContact->strContactPhone2 =Input::get('contactPhone2')?Input::get('contactPhone2'):$vendorContact->strContactPhone2;\n\n try {\n $vendorContact->save();\n } catch (\\Exception $e) {\n return $this->respondInternalError('Unable to save Vendor contact.');\n }\n $insertedVendorContact = VendorContact::find($vendorContact->intVendorContactId);\n return $this->setStatusCode(ApiController::HTTP_CREATED)->respond($this->vendorContactTransformer->transform($insertedVendorContact));\n\n\n\t\t\n\t}", "public function show($id){\n\n\t\t$user = $this->apiKey->guestUser;\n\t\t$survey_ids_taken = TrackSurvey::where('users_id', $user)->distinct()->lists('surveys_id');\n\n\t\t$survey = Survey::find($id);\n\n\t if ($survey)\n\t {\n\t \t$survey->is_taken = in_array($survey->id, $survey_ids_taken) ? '1':'0';\n\t\t\t$survey->mcq_count = Question::where('surveys_id', $survey->id)->where('type', 'mcq')->count();\n\t\t\t$survey->wr_count = Question::where('surveys_id', $survey->id)->where('type', 'written')->count();\n\t\t\t$survey->taken_by = TrackSurvey::where('surveys_id', $survey->id)->groupBy('users_id')->lists('users_id');\t\n\n\t\t return Fractal::item($survey, new SurveyTransformer());\n \n\t }\n\n\t \n return $this->response->errorNotFound();\n\n\t}", "public function updateVendorComplianceSurvey($body)\n {\n $this->updateVendorComplianceSurveyWithHttpInfo($body);\n }", "function verify_vendor_id($vendor_id) // Colorize: green\n { // Colorize: green\n return isset($vendor_id) // Colorize: green\n && // Colorize: green\n is_int($vendor_id) // Colorize: green\n && // Colorize: green\n $vendor_id > 0; // Colorize: green\n }", "public function addVendorComplianceSurveyFileByURLWithHttpInfo($body, $vendor_compliance_survey_id)\n {\n $returnType = '';\n $request = $this->addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "public function get_survey()\n {\n // check the primary key value\n $primary_key_name = static::get_primary_key_name();\n if( is_null( $this->$primary_key_name ) )\n {\n log::warning( 'Tried to delete record with no id.' );\n return;\n }\n \n return new limesurvey\\surveys( $this->sid );\n }", "public function getConsent( $consent_id )\n {\n \n $request = new Request( \n 'GET', \n self::ENDPOINT_URL . '/consent/' . $consent_id\n );\n\n $response = $this->request($request);\n\n return new Consent($response);\n }", "public static function LoadById($intId, $objOptionalClauses = null) {\n\t\t\treturn StrategyQuestionConditional::QuerySingle(\n\t\t\t\tQQ::Equal(QQN::StrategyQuestionConditional()->Id, $intId)\n\t\t\t, $objOptionalClauses\n\t\t\t);\n\t\t}", "public function consumerSurveyByCustomer($customer_id)\n {\n if (!$this->isAuthorized) {\n return prepareResult(false, [], [], \"User not authenticate\", $this->unauthorized);\n }\n\n $consumer_survey = Survey::with(\n 'surveyCustomer',\n 'surveyCustomer.customer:id,firstname,lastname',\n 'surveyCustomer.customer.customerInfo:id,user_id,customer_code',\n 'surveyQuestion')\n ->where('survey_type_id', 2)\n ->whereDate('start_date', '<=', date('Y-m-d'))\n ->whereDate('end_date', '>=', date('Y-m-d'))\n ->whereHas('surveyCustomer', function ($query) use ($customer_id) {\n $query->where('customer_id', $customer_id);\n })\n ->orderBy('id', 'desc')\n ->get();\n\n return prepareResult(true, $consumer_survey, [], \"Consumer Survey by customer listing\", $this->success);\n }", "function get($id)\n {\n return $this->specs->get($id);\n }", "public function getVendorId(): ?string;", "public function show($id)\n {\n //\n $inquiry = Inquiry::find($id);\n\n return $inquiry;\n }", "public function getAvailableCompany($id)\n {\n $data = $this->createQuery('c')\n ->select('c.*')\n ->addSelect(\n \"(SELECT ROUND(AVG(r.rating), 2)\n FROM Companies_Model_Review r\n WHERE r.status = '\" . Companies_Model_Review::STATUS_PUBLISHED . \"'\n AND r.company_id = c.id) as rating\"\n )\n ->addSelect(\"(SELECT COUNT(rc.id)\n FROM Companies_Model_Review rc\n WHERE rc.status = '\" . Companies_Model_Review::STATUS_PUBLISHED . \"'\n AND rc.company_id = c.id) as review_count\")\n ->whereIn('c.status', Companies_Model_Company::getActiveStatuses())\n ->andWhere('c.id = ?', array($id))\n ->limit(1)\n ->execute();\n\n return count($data) ? $data->get(0) : null;\n }", "public function updateVendorComplianceSurveyAsync($body)\n {\n return $this->updateVendorComplianceSurveyAsyncWithHttpInfo($body)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function show(Survey $survey)\n {\n return new SingleSurveyResource(\n $survey->load([\n 'questions',\n 'questions.options',\n 'questions.type'\n ])\n );\n }", "public function getAnalytics($surveyId) {\n $data = $this->find ( \"all\", array (\n 'joins' => array (\n array (\n 'table' => 'survey_questions',\n 'alias' => 'Survey_question',\n 'type' => 'LEFT',\n 'conditions' => 'Survey_question.survey_id = Survey.id' \n ),\n array (\n\t\t\t\t\t\t\t\t'table' => 'survey_results',\n\t\t\t\t\t\t\t\t'alias' => 'Survey_result',\n\t\t\t\t\t\t\t\t'type' => 'LEFT',\n\t\t\t\t\t\t\t\t'conditions' => 'Survey_result.question_id = Survey_question.id' \n )\n ),\n 'conditions' => array(\n 'Survey.id' => $surveyId \n ),\n 'fields' => array('Survey.id','Survey.name','Survey.description','Survey_question.id', 'Survey_question.question_text', 'Survey_result.id', 'Survey_result.user_id', 'Survey_result.selected_answers'),\n 'order' => array('Survey_question.id'),\n )\n );\n return $data;\n }", "public function addVendorComplianceSurveyAsyncWithHttpInfo($body)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\VendorComplianceSurvey';\n $request = $this->addVendorComplianceSurveyRequest($body);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "public function show($id)\n {\n $srvy = DB::table('surveys')->where('survey_id', $id)->first();\n $olds = DB::table('questions')->where('survey_id', '=', $id)->get();\n return view('pages.completeSurvey',compact('srvy','olds'));\n }", "public function getIosVendorId();", "protected function getVendorComplianceSurveyByFilterRequest($filter = null, $page = null, $limit = null, $sort = null)\n {\n\n $resourcePath = '/beta/vendorComplianceSurvey/search';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // query params\n if ($filter !== null) {\n $queryParams['filter'] = ObjectSerializer::toQueryValue($filter);\n }\n // query params\n if ($page !== null) {\n $queryParams['page'] = ObjectSerializer::toQueryValue($page);\n }\n // query params\n if ($limit !== null) {\n $queryParams['limit'] = ObjectSerializer::toQueryValue($limit);\n }\n // query params\n if ($sort !== null) {\n $queryParams['sort'] = ObjectSerializer::toQueryValue($sort);\n }\n\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function getVendor()\n {\n return $this->hasOne(VendorServiceExt::className(), ['vendor_id' => 'vendor_id']);\n }", "public function show($id)\n {\n \\Gate::authorize('view', 'competences_evaluations');\n return new Evaluation_competenceResource(EvaluationCompetency::find($id));\n }", "public function show($id)\n\t{\n define( 'LS_BASEURL', 'http://192.168.10.1/limesurvey/index.php'); // adjust this one to your actual LimeSurvey URL\n define( 'LS_USER', 'admin' );\n define( 'LS_PASSWORD', 'qwerty' );\n\n //$client = new Client(LS_BASEURL);\n // the survey to process\n $survey_id=177998;\n\n // instanciate a new client\n $myJSONRPCClient = new \\org\\jsonrpcphp\\JsonRPCClient( LS_BASEURL.'/admin/remotecontrol' );\n\n // receive session key\n $sessionKey= $myJSONRPCClient->get_session_key( LS_USER, LS_PASSWORD );\n\n $questionInfo = $myJSONRPCClient->list_groups($sessionKey,$id);\n\n return $questionInfo;\n\t}", "public function addVendorComplianceSurveyFileByURLAsyncWithHttpInfo($body, $vendor_compliance_survey_id)\n {\n $returnType = '';\n $request = $this->addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n return [null, $response->getStatusCode(), $response->getHeaders()];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "protected function updateVendorComplianceSurveyRequest($body)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling updateVendorComplianceSurvey'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function deleteVendorComplianceSurveyAsyncWithHttpInfo($vendor_compliance_survey_id)\n {\n $returnType = '';\n $request = $this->deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n return [null, $response->getStatusCode(), $response->getHeaders()];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "public function payspec_view($id){\n\t\t//restricted this area, only for admin\n\t\tpermittedArea();\n\t\t$data['assets'] = $this->ledger_model->totalAssets();\n\t\t$data['debits'] = $this->ledger_model->totalDebits(); \n\t\t\n\t\t$data['totalPay_spec'] = $this->ledger_model->totalPay_spec();\n\t\t$data['payspec_totaldebit'] = $this->ledger_model->payspec_totaldebit($id);\n\t\t$data['payspec_totalcredit'] = $this->ledger_model->payspec_totalcredit($id);\n\t\t\n\t\t$data['credits'] = $this->ledger_model->totalCredits();\n\t\t$data['wallet'] = $this->ledger_model->totalWallet();\n\t\t$data['usedwallet'] = $this->ledger_model->usedWallet();\n\t\t\n\t\t$data['ledger'] = singleDbTableRow($id,'acct_categories');\n\t\n\t\ttheme('payspec_view', $data);\n\t}", "public function show(ClientSurvey $clientSurvey)\n {\n //\n }", "public function verify($id) {\n return $this->mainController->doVerify($id);\n }", "public function getSurvey()\n {\n return $this->hasOne(SurveyTemplates::ClassName(), ['id' => 'survey_template_id']);\n }", "function get_voucher($id)\n\t{\n\t\treturn $this->db->where('id', $id)->get('vouchers')->row();\n\t}", "public function testGetVendorComplianceSurveyFiles()\n {\n }", "public function show($id)\n {\n $data = Vendor::find($id);\n return view('apps.pages.setup.vendor.vendor',['data'=>$data]);\n }", "abstract protected function getExistingVendorProduct(int $vendorProductId);", "public function load($id){\n\t\t$sql = 'SELECT * FROM cst_tech_req WHERE ID = ?';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t$sqlQuery->setNumber($id);\n\t\treturn $this->getRow($sqlQuery);\n\t}", "public function getquestionbyidoption(){\n $select = $this->_db->select()\n\t ->from(array('CQ'=>CLAIM_QUESTIONS), array('*'))\n\t\t\t ->where(\"CQ.sub_question='\".$this->getData['question_id'].\"'\")\n\t\t\t ->where(\"CQ.sub_question_option='\".$this->getData['sub_question_option'].\"'\")\n\t\t\t ->where(\"CQ.status='Y'\"); \n\t$result = $this->getAdapter()->fetchAll($select);\n return $result;\n }", "public function deleteVendorComplianceSurveyAsync($vendor_compliance_survey_id)\n {\n return $this->deleteVendorComplianceSurveyAsyncWithHttpInfo($vendor_compliance_survey_id)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function getReport($id)\n {\n if ($_SERVER[\"REQUEST_METHOD\"] != \"GET\")\n {\n echo $this->encodeJson(\"Wrong resource call\", 0xDEAD, NULL);\n\n return;\n }\n\n $this->inspection->id = $id;\n\n // read the details of product to be edited\n if ($this->inspection->readOne())\n {\n // echo json_encode($this->inspection->document);return;\n // create array\n $report_arr = array(\n \"id\" => $this->inspection->id,\n \"name\" => $this->inspection->name,\n // \"document\" => html_entity_decode($this->inspection->document),\n // \"document\" => json_encode($this->inspection->document),\n \"document\" => $this->inspection->document,\n \"status\" => $this->inspection->status,\n \"created\" => $this->inspection->created,\n \"modified\" => $this->inspection->modified\n );\n\n echo $this->encodeJson(\"Inspections found.\", 0x00, $report_arr);\n }\n else\n {\n echo $this->encodeJson(\"No inspections found.\", 0xD1ED, NULL);\n }\n }", "public function getProductionRequirements($id)\n {\n $sheet = $this->productionSheet\n ->with('productionrequirements')\n ->with('productionrequirements.product')\n ->findOrFail($id);\n\n // $sheet->due_date = abi_date_form_short($sheet->due_date);\n \n return view('production_sheets._panel_production_requirements_content', compact('sheet'));\n }", "public function actionUpdate($id)\n {\n $survey = $this->findModel($id);\n\n $fractal = new Fractal\\Manager();\n $fractal->setSerializer(new ArraySerializer());\n\n $questionItems = new Fractal\\Resource\\Collection($survey->questions, function (Question $q) {\n return [\n 'title' => $q->title,\n 'required' => $q->required,\n 'position' => $q->position,\n 'uuid' => $q->uuid,\n 'type' => $q->type,\n 'meta' => json_decode($q->meta),\n 'survey_id' => $q->survey_id\n ];\n });\n\n $surveyItem = new Fractal\\Resource\\Item($survey, function (Survey $survey) use ($fractal, $questionItems) {\n return [\n 'title' => $survey->title,\n 'desc' => $survey->desc,\n 'emails' => implode(', ', ArrayHelper::getColumn($survey->participants, 'email')),\n 'startDate' => (new \\DateTime($survey->startDate))->format(\"Y-m-d\"),\n 'sendDate' => (new \\DateTime($survey->sendDate))->format(\"Y-m-d\"),\n 'expireDate' => (new \\DateTime($survey->expireDate))->format(\"Y-m-d\"),\n 'questions' => $fractal->createData($questionItems)->toArray()\n ];\n });\n\n\n Yii::$app->gon->send('survey', $fractal->createData($surveyItem)->toArray());\n Yii::$app->gon->send('saveSurveyUrl', Url::to(['/survey/save-update', 'id' => $id]));\n Yii::$app->gon->send('afterSaveSurveyRedirectUrl', \\Yii::$app->request->referrer);\n\n return $this->render('update', [\n 'model' => $survey,\n ]);\n\n }", "public static function kromeda_version_criteria($version_id , $lang){\n\t\t$api_param = $version_id.\"/\".$lang; \n\t\t$url = \"version_criteria/\".$api_param;\n\t\t$database_response = Kromeda::get_response_api($url);\n\t\t if($database_response == FALSE){\n\t\t\t $sess_key = sHelper::generate_kromeda_session_key();\n\t\t\t $third_party_response = sHelper::Get_kromeda_Request($sess_key , 'SMR_GetVehicleCriteria' , false , $api_param);\n\t\t\t $add_response = Kromeda::add_response($url , $third_party_response , \"SMR_GetVehicleCriteria\");\n\t\t\t if($add_response){\n\t\t\t\t $database_response = Kromeda::get_response_api($url);\n\t\t\t\t}\n\t\t\t }\n\t\t return self::smr_response($database_response);\t \n\t }" ]
[ "0.72990334", "0.66549784", "0.6570494", "0.6318107", "0.5884129", "0.58448297", "0.58160836", "0.5800864", "0.57245636", "0.56908196", "0.5637148", "0.5480043", "0.54412645", "0.536774", "0.5337305", "0.5321364", "0.5270184", "0.5233059", "0.5178288", "0.5159211", "0.51329786", "0.50763375", "0.50415283", "0.50244576", "0.50163287", "0.49777904", "0.49736416", "0.49705926", "0.4968961", "0.49651173", "0.49265212", "0.4919859", "0.49085194", "0.4867244", "0.48541924", "0.48248917", "0.48095375", "0.48085183", "0.48007005", "0.47852126", "0.47811115", "0.47756118", "0.47727162", "0.47696012", "0.4758201", "0.4755304", "0.4729185", "0.46936274", "0.4685822", "0.4678742", "0.46743512", "0.46365377", "0.46270487", "0.46258882", "0.46072602", "0.45847848", "0.4579517", "0.45745313", "0.45726046", "0.45665336", "0.45622793", "0.4556282", "0.4550424", "0.4548262", "0.4541968", "0.45345306", "0.45338458", "0.45305628", "0.45296377", "0.45265326", "0.4523448", "0.45221636", "0.45172337", "0.45143607", "0.4504074", "0.45002648", "0.44950116", "0.44878334", "0.44798815", "0.44720176", "0.44605026", "0.4458579", "0.44394016", "0.44308475", "0.44217366", "0.44158313", "0.44096926", "0.4397756", "0.43881857", "0.43819392", "0.43815094", "0.43783078", "0.4377681", "0.43746173", "0.43659878", "0.43645796", "0.43641683", "0.43632075", "0.4361413", "0.4360423" ]
0.6120303
4
Test case for getVendorComplianceSurveyFiles Get the files for a vendorComplianceSurvey..
public function testGetVendorComplianceSurveyFiles() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getVendorComplianceSurveyFilesRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyFiles'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "function get_survey_licensed_files($surveyid)\n\t{\t\t\n\t\t$where=\" survey_id=$surveyid AND (dctype like '%dat/micro]%' OR dctype like '%dat]%') \";\n\t\t\n\t\t$this->db->select('title,filename,resource_id');\n\t\t$this->db->from('resources');\n\t\t$this->db->select('title,filename,resource_id,changed');\n\t\t$this->db->where($where,NULL,FALSE);\n\t\t$query = $this->db->get();\n\n\t\tif ($query)\n\t\t{\n\t\t\treturn $query->result_array();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new MY_Exception($this->db->_error_message());\n\t\t}\t\n\t}", "function get_request_files($surveyid, $requestid)\n\t{\t\n\t\t//get all survey licensed files\n\t\t$files=$this->get_survey_licensed_files($surveyid);\t\t\n\t\t\t\n\t\t//get download options already set\n\t\t$options=$this->get_request_download_options($requestid);\t\t\n\t\t$result=NULL;\t\t\n\t\tif ($files)\n\t\t{\n\t\t\tforeach($files as $file)\n\t\t\t{\n\t\t\t\tif ($options)\n\t\t\t\t{\n\t\t\t\t\tforeach($options as $option)\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($file['resource_id']==$option['fileid'])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$file['download']=$option;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t$result[]=$file;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\treturn $result;\n\t}", "public function loadFilesVendor()\r\n {\r\n $id = Input::get('ID');\r\n $uid = Input::get('UID');\r\n $project = Project::find($id);\r\n $files=[];\r\n if($project!=null)\r\n {\r\n $rol = $this->getRol($uid);\r\n $internalFiles = $project->filesByType(array('vendor',$rol));\r\n foreach($internalFiles as $file)\r\n {\r\n $files[]=['id'=>$file->id,'name'=>$file->fileName,'url'=>$file->url];\r\n }\r\n }\r\n return json_encode($files);\r\n }", "public function testAddVendorComplianceSurveyFileByURL()\n {\n }", "public function testAddVendorComplianceSurveyFile()\n {\n }", "function getInquiryFiles($inquiryId) {\n\t\t$sql = \"\n\t\t\tSELECT\n\t\t\t\tF.Id AS Id,\n\t\t\t\tF.Name AS Name\n\t\t\tFROM ServiceRequestFiles SRF, Files F\n\t\t\tWHERE\n\t\t\t\tSRF.ServiceRequest_Id = \".$inquiryId.\" AND\n\t\t\t\tSRF.File_Id = F.Id\";\n\t\t$result = mysql_query($sql);\n\t\tif (!$result) {\n\t\t\treturn;\n\t\t}\n\n\t\t$files = array();\n\t\twhile ($row = mysql_fetch_assoc($result)) {\n\t\t\t$files[] = array('name' => $row['Name'], 'idAndChecksum' => $row['Id'].':'.CheckSum($row['Id']));\n\t\t}\n\n\t\tmysql_free_result($result);\n\t\treturn $files;\n\t}", "protected function addVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_name)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_name' is set\n if ($file_name === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_name when calling addVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileName}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_name !== null) {\n $resourcePath = str_replace(\n '{' . 'fileName' . '}',\n ObjectSerializer::toPathValue($file_name),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function getFiles() {}", "public function getFiles ();", "public function testDeleteVendorComplianceSurveyFile()\n {\n }", "public function getFiles();", "public function getFiles();", "public function getFiles();", "public function getFileSpecification() {}", "public function getFileSpecification() {}", "public function getFileSpecification() {}", "public function getFileSpecification() {}", "public function getFileSpecification() {}", "protected function addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addVendorComplianceSurveyFileByURL'\n );\n }\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling addVendorComplianceSurveyFileByURL'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function get_files()\n {\n }", "public function getFiles() {\r\n\r\n $files = array();\r\n\r\n $userId= $this->userId;\r\n $trackingId = $this->trackingFormId;\r\n $dir = FILEPATH . $userId. '/' . $trackingId;\r\n\r\n if (is_dir($dir)) {\r\n if ($dh = opendir($dir)) {\r\n while (($file = readdir($dh)) !== false) {\r\n if($file != '.' && $file != '..') {\r\n $size = $this->Size($dir . '/' . $file);\r\n array_push($files, array('name'=>$file,\r\n 'urlfilename'=>urlencode($file),\r\n 'size'=>$size));\r\n }\r\n }\r\n closedir($dh);\r\n }\r\n }\r\n\r\n return $files;\r\n }", "public function testIsVendorFileReturnsTrueIfFileIsLocatedInVendorDirectory()\n {\n $this->assertTrue(VendorResources::isVendorFile($this->getVendorFilePath()));\n }", "public function get_file_requests(){\n\t\t\t\t$res = [];\n\t\t\t\t$my_id = $this->session->userdata(\"user_id\");\n\t\t\t\t$param[\"where\"] = array(\"user_id\"=> $my_id, \"status \"=> \"joined\");\n\t\t\t\t$param[\"select\"] = \"company_id\";\n\t\t\t\t$getCom = $this->MY_Model->getRows(\"tbl_user_company\", $param, \"obj\");\n\t\t\t\t$my_comp = [];\n\t\t\t if(!empty($getCom)){\n\t\t\t\tforeach ($getCom as $comp) {\n\t\t\t\t\tarray_push($my_comp, $comp->company_id);\n\t\t\t\t}\n\t\t\t }\n\t\t\t\t$request_data = $this->db->\n\t\t\t\t\tselect(\"*\")->\n\t\t\t\t\tfrom('tbl_requests r')->\n\t\t\t\t\tjoin('tbl_companies c', \"r.company_id = c.company_id\")->\n\t\t\t\t\twhere_in(\"r.company_id\", $my_comp)->\n\t\t\t\t\tget()->result();\n\t\t\t\tif(!empty($request_data)){\n\t\t\t\t\t$results = $request_data;\n\t\t\t\t\tforeach ($results as $result) {\n\t\t\t\t\t\tif($result->request_status == \"Completed\"){\n\t\t\t\t\t\t\t$r_id = $result->request_id;\n\t\t\t\t\t\t\t$approvedData = $this->db->\n\t\t\t\t\t\t\t\t\tselect(\"*\")->\n\t\t\t\t\t\t\t\t\tfrom('tbl_files f')->\n\t\t\t\t\t\t\t\t\tjoin('tbl_requested_files rf', \"f.files_id = rf.fk_file_id\")->\n\t\t\t\t\t\t\t\t\tjoin('tbl_requests r', \"r.request_id = rf.fk_requested_id \")->\n\t\t\t\t\t\t\t\t\tjoin('tbl_companies c', \"r.company_id = c.company_id\")->\n\t\t\t\t\t\t\t\t\twhere(\"r.request_id\", $r_id)->\n\t\t\t\t\t\t\t\t\tget()->result();\n\t\t\t\t\t\t\tif(!empty($approvedData)){\n\t\t\t\t\t\t\t\t$get_attached = $this->db->\n\t\t\t\t\t\t\t\t\tselect(\"file_name\")->\n\t\t\t\t\t\t\t\t\tfrom('tbl_files f')->\n\t\t\t\t\t\t\t\t\tjoin('tbl_requested_files rf', \"f.files_id = rf.fk_file_id\")->\n\t\t\t\t\t\t\t\t\twhere('rf.fk_requested_id', $r_id)->\n\t\t\t\t\t\t\t\t\tget()->result_array();\n\t\t\t\t\t\t\t\t\t$approvedData[0]->{\"attachments\"} = $get_attached;\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t array_push($res, $approvedData[0]);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tarray_push($res, $result);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t echo json_encode($res);\n\t\t}", "function &getCVs() {\n $suppFileDao =& DAORegistry::getDAO('SuppFileDAO');\n return $suppFileDao->getSuppFilesByArticleTypeAndAssocId($this->getArticleId(), SUPP_FILE_CV, $this->getId());\n\t}", "public function loadFilesProduction()\r\n {\r\n $id = Input::get('ID');\r\n $project = Project::find($id);\r\n $files=[];\r\n if($project!=null)\r\n {\r\n $internalFiles = $project->filesByType(array('vendor','university','designer','writer','attorney','2d'));\r\n foreach($internalFiles as $file)\r\n {\r\n $files[]=['id'=>$file->id,'name'=>$file->fileName,'url'=>$file->url,'date'=>$file->created_at];\r\n }\r\n }\r\n return json_encode($files);\r\n }", "public function testGetVendorComplianceSurveyByFilter()\n {\n }", "public function testIsVendorFileReturnsTrueIfVendorDirectoryIsProvided()\n {\n $directory = dirname($this->getVendorFilePath());\n $this->assertTrue(VendorResources::isVendorFile($directory));\n }", "public function getOtherFiles(): array;", "public function loadFilesILCVendors()\r\n {\r\n $id = Input::get('ID');\r\n $project = Project::find($id);\r\n $files=[];\r\n if($project!=null)\r\n {\r\n $internalFiles = $project->filesByType(array('ilcVendors'));\r\n foreach($internalFiles as $file)\r\n {\r\n $created = date('m-d-Y',strtotime(str_replace('-','/',$file->created_at)));\r\n $files[]=['id'=>$file->id,'name'=>$file->fileName,'url'=>$file->url,'created'=>$created];\r\n }\r\n }\r\n return json_encode($files);\r\n }", "protected function _getSubsetFile() {}", "public function getFiles(): array;", "public function gatherFileData()\n {\n $files = get_included_files();\n\n $fileList = array();\n\n $fileTotals = array(\n \"count\" => count($files),\n \"size\" => 0,\n \"largest\" => 0,\n );\n\n foreach($files as $key => $file) {\n $size = filesize($file);\n\n $fileList[] = array(\n 'name' => str_replace(BASEPATH, '/', $file),\n 'size' => $this->getReadableFileSize($size)\n );\n\n $fileTotals['size'] += $size;\n\n if($size > $fileTotals['largest']) $fileTotals['largest'] = $size;\n }\n\n $fileTotals['size'] = $this->getReadableFileSize($fileTotals['size']);\n $fileTotals['largest'] = $this->getReadableFileSize($fileTotals['largest']);\n\n $this->output['files'] = $fileList;\n $this->output['fileTotals'] = $fileTotals;\n }", "public function getFileList() {\n\n try {\n\n // get user id\n $userId = $this->session->get(\"userId\");\n\n //used to modify the files array\n $index = 0;\n\n // looking for user´s files\n $files =$this->modelsManager->createBuilder()\n ->columns([\"name\" => \"Files.name\", \"extension\" => \"Files.extension\", \"version\" => \"Files.version\", \"date\" => \"Files.date\"])\n ->from(['TagsFiles'=>'App\\Models\\TagsFiles'])\n ->leftJoin('App\\Models\\Files', 'TagsFiles.file_id = Files.id', 'Files')\n ->leftJoin('App\\Models\\Tags', 'TagsFiles.tag_id = Tags.id', 'Tags')\n ->where('Files.userId = ?1', [1 => $userId] )\n ->getQuery()\n ->execute();\n\n // change resultset to array\n $files->setHydrateMode(\n Resultset::HYDRATE_ARRAYS\n );\n\n // looking for user´ tagId´s so he can finds the client\n $tagIds =$this->modelsManager->createBuilder()\n ->columns([\"tagId\" => \"Tags.id\"])\n ->from(['TagsFiles'=>'App\\Models\\TagsFiles'])\n ->leftJoin('App\\Models\\Files', 'TagsFiles.file_id = Files.id', 'Files')\n ->leftJoin('App\\Models\\Tags', 'TagsFiles.tag_id = Tags.id', 'Tags')\n ->where('Files.userId = ?1', [1 => $userId] )\n ->getQuery()\n ->execute();\n $tagIds->toArray();\n\n // use tagId to find the correct client\n foreach ($tagIds as $tagId) {\n $count = 0;\n\n $tag = ClientsTags::findFirst(\n [\n \"tag_id = :tag:\",\n \"bind\" => [\"tag\" => $tagId['tagId']],\n ]);\n\n $clients = $tag->client;\n\n // modify the files array and add the clientName\n foreach ($files as $file){\n if ($index == $count) {\n $result[] = array(\"no\" => $index+1) + array_slice($file, 0, 5, true) +\n array(\"clientName\" => $clients->name); //+\n // array_slice($file, 3, count($file) - 1, true);\n }\n $count++;\n }\n $index++;\n }\n\n if (!$result) {\n return [];\n }\n\n return $result;\n\n } catch (\\PDOException $e) {\n if ($e->getCode() == 12004) {\n throw new ServiceException('Cannot find files', self::ERROR_UNABLE_TO_FIND_FILES);\n } else {\n throw new ServiceException($e->getMessage(). $e->getCode(), $e); }\n }catch (\\Exception $e){\n $this->response->setStatusCode(500, 'Internal Server Error');\n }\n }", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function get_test_file_uploads()\n {\n }", "protected function deleteVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n // verify the required parameter 'file_id' is set\n if ($file_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $file_id when calling deleteVendorComplianceSurveyFile'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}/file/{fileId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n // path params\n if ($file_id !== null) {\n $resourcePath = str_replace(\n '{' . 'fileId' . '}',\n ObjectSerializer::toPathValue($file_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "public function getNonCompliantFiles()\n {\n return $this->non_compliant_files;\n }", "function get_request_approved_surveys($request_id)\n\t{\n\t\t$this->db->select('resources.survey_id');\n\t\t$this->db->join('resources', 'lic_file_downloads.fileid= resources.resource_id');\n\t\t$this->db->where('lic_file_downloads.requestid',$request_id);\n\t\t$result=$this->db->get('lic_file_downloads')->result_array();\n\t\t\n\t\tif (!$result)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\t$output=array();\n\t\tforeach($result as $row)\n\t\t{\n\t\t\t$output[]=$row['survey_id'];\t\t\t\n\t\t}\n\t\t\n\t\treturn $output;\n\t}", "public function processVendor()\n {\n $directory=\"data/vendor\";\n set_time_limit(160);\n \n\n $files = File::allFiles($directory);\n\n foreach ($files as $file) {\n $file_exists=File_load::where('file_name', $file)\n ->where('type', 10)\n ->exists();\n if(!$file_exists){\n $count_insert=0;\n $count_update=0;\n \n $data = Excel::load($file)->toArray();\n foreach ($data as $row) {\n \n $data_value=$row;\n if (Vendor::where('vendor_number', '=', $data_value['vendornumber'])->count() > 0) {\n $vendor= Vendor::where('vendor_number', '=', $data_value['vendornumber'])->first();\n $vendor->name = $data_value['vendorname'];\n $budget_monthly->save();\n $count_update++;\n }else{\n $vendor=Vendor::create([\n 'vendor_number' => $data_value['vendornumber'],\n 'name' => $data_value['vendorname'],\n 'account_number' => \"\"\n ]); \n $count_insert++;\n } \n \n \n }\n\n File_load::create([\n 'file_name' => $file,\n 'type' => 10, \n 'count_insert'=> $count_insert,\n 'count_update'=> $count_update, \n ]);\n }\n } \n return \"Data Inserted\";\n }", "public function testGetVendorComplianceSurveyById()\n {\n }", "public function testIsVendorFileReturnsTrueIfFileThatIsReferencedByFileObjectIsLocatedInVendorDirectory()\n {\n $this->assertTrue(VendorResources::isVendorFile(new \\SplFileInfo($this->getVendorFilePath())));\n }", "public function getUploadedFiles()\n {\n }", "function get_request_downloads_by_study($requestid,$surveyid)\n\t{\t\n\t\t$this->db->select('resources.*');\n\t\t$this->db->from('resources');\n\t\t$this->db->join('lic_file_downloads', 'resources.resource_id = lic_file_downloads.fileid');\n\t\t$this->db->where('resources.survey_id',$surveyid);\n\t\t$this->db->where('requestid',$requestid);\n\t\treturn $this->db->get()->result_array();\n\t}", "public function getEmbeddedFiles() {}", "protected function getAvailableFiles() {\n\t\t$sql = \"SELECT\tfilename\n\t\t\tFROM\twcf\".WCF_N.'_'.$this->tableName.\"\n\t\t\tWHERE\tpackageID = \".$this->installation->getPackageID();\n\t\t$result = WCF::getDB()->sendQuery($sql);\n\t\t\n\t\t$availableFiles = array();\n\t\twhile ($row = WCF::getDB()->fetchArray($result)) {\n\t\t\t$availableFiles[] = $row['filename'];\n\t\t}\n\t\t\n\t\treturn $availableFiles;\n\t}", "public function getUploadedFiles() {}", "public function uploadFileVendors(){\r\n\r\n $file = Input::file('file');\r\n $vendorId = Input::get('CONSULTANT');\r\n $consultantVendor = Consultant::find($vendorId);\r\n $rol = $this->getRol($vendorId);\r\n $projectId = Input::get('PROJECT');\r\n $now = new \\DateTime('now');\r\n if($projectId != 0){\r\n $project = Project::find($projectId);\r\n if($project!=null){\r\n if($file){\r\n $fileName = $file->getClientOriginalName();\r\n $file->move(public_path().'/files/projects/'.$project->lead->fileno.'/'.$project->id.'/vendors', $fileName);\r\n\r\n //create the row in upload file\r\n $uploadFile = UploadedFiles::where(['fileName'=>$fileName,'admin_id'=>$vendorId,'project_id'=>$projectId])->first();\r\n if($uploadFile != null){\r\n $uploadFile->delete();\r\n }\r\n $uploadFile = new UploadedFiles();\r\n $uploadFile->project_id = $projectId;\r\n $uploadFile->url = \"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/vendors/$fileName\";\r\n $uploadFile->fileName = $fileName;\r\n $uploadFile->$rol = 1;\r\n $uploadFile->admin_id = $vendorId;\r\n $uploadFile->ip = $_SERVER[\"REMOTE_ADDR\"];\r\n $uploadFile->save();\r\n\r\n //complete the row for that project.\r\n $projectVendor = ProjectProduction::where(['consultant_id'=>$vendorId,'project_id'=>$projectId])->where('completed','<>',1)->first();\r\n if($projectVendor!=null){\r\n $projectVendor->completed = 1;\r\n $projectVendor->completedDate = $now->format(\"Y-m-d H:i:s\");\r\n $projectVendor->save();\r\n }\r\n\r\n //create the row in inbox to let Production know\r\n $msg = \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msg .= \"Pin: \".$project->id.\"\\r\\n\";\r\n $msg .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n $msg .= \"File Name: \".$fileName.\"\\r\\n\";\r\n\r\n $extArray = explode(\".\",$fileName);\r\n $ext = $extArray[count($extArray)-1];\r\n\r\n //let consultant and production know that the patent search was uploaded be the attorney\r\n if($consultantVendor != null){\r\n if(strpos($consultantVendor->rol, 'attorney')!== false){\r\n $uploadFile->internal = 1;\r\n $uploadFile->save();\r\n if($ext == 'doc'|| $ext == 'docx'){\r\n Inbox::createInbox($project->lead->id, $project->consultant_id, \"Patent Search uploaded by the attorney.\\r\\n\".$msg, 'PRODUCTION', 'PRODUCTION');\r\n Inbox::createInbox($project->lead->id, 30, \"Patent Search uploaded by the attorney.\\r\\n\".$msg, 'FILE UPLOADED', 'PRODUCTION');\r\n Transaction::createTransaction($vendorId,'','','UPLOAD_FILE_VENDOR','Patent Search: '.$fileName,$projectId,'','','','','');\r\n }\r\n }else{\r\n //if is not an attorney let production know\r\n Inbox::createInbox($project->lead->id, 30, \"File uploaded By Vendor.\\r\\n\".$msg, 'FILE UPLOADED', 'PRODUCTION');\r\n Transaction::createTransaction($vendorId,'','','UPLOAD_FILE_VENDOR',$fileName,$projectId,'','','','','');\r\n }\r\n }\r\n }\r\n }\r\n }else{\r\n if($file){\r\n $fileName = $file->getClientOriginalName();\r\n $myProjects = ProjectProduction::where(['consultant_id'=>$vendorId])->where('completed','<>',1)->get();\r\n foreach($myProjects as $projectVendor){\r\n $project = $projectVendor->project;\r\n if(strpos(strval($fileName),strval($project->lead->fileno)) !== false){\r\n $file->move(public_path().'/files/projects/'.$project->lead->fileno.'/'.$project->id.'/vendors', $fileName);\r\n //create the row in upload file\r\n $uploadFile = UploadedFiles::where(['fileName'=>$fileName,'admin_id'=>$vendorId,'project_id'=>$project->id])->first();\r\n if($uploadFile != null){\r\n $uploadFile->delete();\r\n }\r\n $uploadFile = new UploadedFiles();\r\n $uploadFile->project_id = $project->id;\r\n $uploadFile->url = \"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/vendors/$fileName\";\r\n $uploadFile->fileName = $fileName;\r\n $uploadFile->$rol = 1;\r\n $uploadFile->admin_id = $vendorId;\r\n $uploadFile->save();\r\n\r\n $projectVendor->completed = 1;\r\n $projectVendor->completedDate = $now->format(\"Y-m-d H:i:s\");\r\n $projectVendor->save();\r\n\r\n //create the row in inbox to let Production know\r\n $msg = \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msg .= \"Pin: \".$project->id.\"\\r\\n\";\r\n $msg .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n $msg .= \"File Name: \".$fileName.\"\\r\\n\";\r\n Inbox::createInbox($project->lead->id, 30, \"File uploaded By Vendor.\\r\\n\".$msg, 'FILE UPLOADED', 'PRODUCTION');\r\n\r\n\r\n $extArray = explode(\".\",$fileName);\r\n $ext = $extArray[count($extArray - 1)];\r\n //let consultant know that the patent search was uploaded be the attorney\r\n if($consultantVendor != null && strpos($consultantVendor->rol, 'attorney')!== false && ($ext == 'doc'|| $ext == 'docx')){\r\n Inbox::createInbox($project->lead->id, $project->consultant_id, \"Patent Search uploaded for the attorney.\\r\\n\".$msg, 'PRODUCTION', 'PRODUCTION');\r\n $uploadFile->internal = 1;\r\n $uploadFile->save();\r\n }\r\n\r\n Transaction::createTransaction($vendorId,'','','UPLOAD_FILE_VENDOR',$fileName,$project->id,'','','','','');\r\n }\r\n }\r\n }\r\n }\r\n\r\n }", "public function testIsVendorFileReturnsFalseIfFileIsNotLocatedInVendorDirectory()\n {\n $this->assertFalse(VendorResources::isVendorFile(__FILE__));\n }", "public function buildFilesForFilterTest()\n {\n // are used as the test method arguments. If we want to use an array\n // as a test data set, we need to return a nested array\n return array(\n array(\n $this->buildFilesSet1()[0],\n array(\n 'internal' => array(\n 'example/image2',\n ),\n 'external' => array(\n 'example/image1',\n ),\n ),\n ),\n array(\n $this->buildFilesSet2()[0],\n array(\n 'internal' => array(\n 'example/image2',\n 'example/image3',\n 'example/image4',\n ),\n 'external' => array(\n 'example/image1',\n 'example/image5',\n ),\n ),\n ),\n );\n }", "function getFileDetails($appid) {\n $strQuery = \"select filename,section from `uploadedfiles` where appid=$appid\";\n\n return $this->query($strQuery);\n }", "function testForInterestFile(){\r\n\t\tif($this->accessType == \"api\"){\r\n\t\t\t//$interestFile = $this->interestFileName;\r\n\t\t\t$iData = explode(PHP_EOL, $this->interestFileData);\r\n\t\t\t$this->processInterestData($iData);\r\n\t\t}else{\r\n\t\t\t$iName = basename($_FILES[\"uploadFile\"][\"name\"][1]);\r\n\t\t\t$interestFile = \"/home/nobody/\".$_POST['clientId'].\"/\".$iName;\r\n\t\t\tif(file_exists($interestFile)){\r\n\t\t\t\t$thisInterestData = file($interestFile);\r\n\t\t\t\t$this->processInterestData($thisInterestData);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $this->exportData;\r\n\t}", "public function getFiles()\n {\n return $this->getConfig('stubs.files');\n }", "public function loadFilesManufacturer()\r\n {\r\n $mid = Input::get('MID');\r\n $manufacturer = Manufacturer::find($mid);\r\n $files=[];\r\n if($manufacturer!=null)\r\n {\r\n $filesLoaded = $manufacturer->getManufacturerFiles();\r\n foreach($filesLoaded as $file)\r\n {\r\n $created = date('m-d-Y',strtotime(str_replace('-','/',$file->created_at)));\r\n $files[]=['id'=>$file->id,'name'=>$file->fileName,'url'=>$file->url,'created'=>$created];\r\n }\r\n }\r\n return json_encode(array($files));\r\n }", "protected static function _getPackageFiles($sName)\r\n\t{\r\n\t\t$aParams = self::$_aParams[$sName];\r\n\r\n\t\t$sType = $aParams['type'];\r\n\t\t$sBaseFolder = (empty($aParams['folder']) ? $sType : $aParams['folder']) . '/';\r\n\r\n\t\t// Files are listed as array, return them\r\n\t\tif (is_array($aParams['files']))\r\n\t\t{\r\n\t\t\t$aRet = array();\r\n\t\t\tforeach ($aParams['files'] as $sFile)\r\n\t\t\t\t$aRet[] = $sBaseFolder . $sFile;\r\n\t\t\treturn $aRet;\r\n\t\t}\r\n\r\n\t\t// User wants all files to be included\r\n\t\tif ($aParams['files'] == '*')\r\n\t\t{\r\n\t\t\t$sFileType = '.' . $sType;\r\n\t\t\t$iFileTypeLen = strlen($sFileType);\r\n\t\t\t$aAllFiles = array();\r\n\t\t\t$aFiles = scandir(ASAP_DIR_WEB . $sBaseFolder);\r\n\t\t\tforeach ($aFiles as $sFile)\r\n\t\t\t\tif ($sFile != '.' && $sFile != '..' && substr($sFile, -$iFileTypeLen) == $sFileType && strpos($sFile, '.asap_pack.') === false)\r\n\t\t\t\t\t$aAllFiles[] = $sFile;\r\n\t\t\treturn $aAllFiles;\r\n\t\t}\r\n\r\n\t\t// Strange config, thus we return nothing\r\n\t\treturn array();\r\n\t}", "public function getResultsFiles() {\n if ($this->results_files === null) {\n $this->loadTestcases();\n }\n return $this->results_files;\n }", "public function getFiles()\n {\n return isset($this->source['files']) && is_array($this->source['files']) ? $this->source['files'] : [];\n }", "public function loadFilesAttCS()\r\n {\r\n $id = Input::get('ID');\r\n $project = Project::find($id);\r\n $files=[];\r\n if($project!=null)\r\n {\r\n $internalFiles = $project->filesByType(array('attorney'));\r\n foreach($internalFiles as $file)\r\n {\r\n $created = date('m-d-Y',strtotime(str_replace('-','/',$file->created_at)));\r\n $files[]=['id'=>$file->id,'name'=>$file->fileName,'url'=>$file->url,'created'=>$created];\r\n }\r\n }\r\n return json_encode($files);\r\n }", "public function productsSurveys(){\n $user = $this->auth();\n if(empty($this->auth())){\n Utils::response(['status'=>false,'message'=>'Forbidden access.'],403);\n }\n $data = $this->getInput();\n if(($this->input->method() != 'post') || empty($data)){ \n Utils::response(['status'=>false,'message'=>'Bad request.'],400);\n }\n $validate = [\n ['field' =>'consumer_id','label'=>'Consumer ID','rules' => 'required' ],\n ];\n $errors = $this->ScannedproductsModel->validate($data,$validate);\n if(is_array($errors)){\n Utils::response(['status'=>false,'message'=>'Validation errors.','errors'=>$errors]);\n }\n\t\t$consumer_id = $data['consumer_id']; \n\t\t//echo $consumer_id; exit;\n $result = $this->ScannedproductsModel->findProductForConsumerSurvey($consumer_id);\n\t\t//$result = $this->ScannedproductsModel->sendFCMSurvey($mess,$consumer_id);\n\t\t\n\t\t//echo $result;\n\t\t/* \n if(!empty($result->product_video)){\n $result->product_video = Utils::setFileUrl($result->product_video);\n\t\t\techo $result->product_video;\n\t\t\t\n }*/\n\t\t\n\t\tif(empty($result)){\n $this->response(['status'=>false,'message'=>'Record not found'],200);\n }\n $this->response(['status'=>true,'message'=>'Push Surveys','data'=>$result]);\n\t\t\n }", "public function loadFilesLaunch()\r\n {\r\n $id = Input::get('ID');\r\n $project = Project::find($id);\r\n $files=[];\r\n if($project!=null)\r\n {\r\n $internalAndPublicFiles = $project->filesByType(array('public','clientVendor'));\r\n foreach($internalAndPublicFiles as $file)\r\n {\r\n $files[]=['id'=>$file->id,'name'=>$file->fileName,'url'=>$file->url,'projectId'=>$id];\r\n }\r\n }\r\n return json_encode($files);\r\n }", "protected function getFiles(): array\n {\n return [];\n }", "public function getAllFiles()\n {\n }", "public function getRemoteExtListFile() {}", "function getFiles()\r\n\t{\r\n\t\treturn $this->files;\r\n\t}", "public function requestAudioFile($comData)\n\t{\n\t\tif (is_array($comData)){\n\t\t\t// name of textarea input on communique generator form\n\t\t\t$data = array('communique' => Zend_Json::encode($comData));\n\t\t\t\t\n\t\t\t// initiate curl session\n\t\t\t$ch = curl_init();\n\t\t\n\t\t\t$audioGenUrl = Zend_Registry::get('config')\n\t\t\t\t\t\t\t\t\t->voice->platform->base->url . '/rest/get_audio_communique.php';\n\t\t\t// url for curl\n\t\t\tcurl_setopt($ch, CURLOPT_URL, $audioGenUrl);\n\t\t\t// return with result on success\n\t\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\t\t// using POST and not GET\n\t\t\tcurl_setopt($ch, CURLOPT_POST, true);\n\t\t\t// POST data\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n\t\t\t\t\t\n\t\t\t// get wave file a.k.a communique\n\t\t\t$result = curl_exec($ch);\n\t\t\t\n\t\t\t$result_decoded = Zend_Json::decode($result);\n\t\t\t\n\t\t\t$httpRspCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n\t\t\t\n\t\t\tcurl_close($ch);\n\t\t\t\n\t\t\t$status = $result_decoded['status'];\n\t\t\t\n\t\t\tif ($status == 'FAIL') // response was not ok\n\t\t\t{\n\t\t\t\t$message = $result_decoded['message'];\n\t\t\t\t\n\t\t\t\tthrow new Exception('Audio Generation Error: ' . $message, $httpRspCode);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$waveURL = array();\n\t\t\t\t$waveURL = $result_decoded['audio'];\n\t\t\t\t\n\t\t\t}\n\t\t\treturn array($httpRspCode, $status, $waveURL);\n\t\t}\n\t}", "public function GetFiles() {\n\n if ($this->Files === null) {\n $this->Files= array();\n foreach($this->GetRequestContext()->FILES as $Key=>$Value) {\n if (is_array($Value['tmp_name'])) {\n $this->Error('Request/File: multiple values for files are not supported for key \"'.$Key.'\".');\n continue;\n }\n $this->Files[$Key]= $this->BuildComponent('Accent\\\\Request\\\\File', array('OrigInfo'=> $Value));\n }\n }\n return $this->Files;\n }", "function getFilesByCond(){\n\t\t\t\t\n if( $this->cond == '') return ;\n \n $sql = \"SELECT * FROM \".$this->tableImages().\" WHERE $this->cond \";\n return $this->db->query($sql)->result('array');\n\t\t\n\t}", "public function files();", "public function files();", "public function files();", "function getFiles(){\n\t\treturn $this->used_files;\n\t}", "public function getSpoolFilesList ()\n {\n $sql = \"SELECT * FROM APP_MESSAGE WHERE APP_MSG_STATUS ='pending'\";\n $results = $this->objMysql->_query ($sql);\n foreach ($results as $result)\n ; {\n $this->spool_id = $rs->getString ('APP_MSG_UID');\n $this->fileData['subject'] = $rs->getString ('APP_MSG_SUBJECT');\n $this->fileData['from'] = $rs->getString ('APP_MSG_FROM');\n $this->fileData['to'] = $rs->getString ('APP_MSG_TO');\n $this->fileData['body'] = $rs->getString ('APP_MSG_BODY');\n $this->fileData['date'] = $rs->getString ('APP_MSG_DATE');\n $this->fileData['cc'] = $rs->getString ('APP_MSG_CC');\n $this->fileData['bcc'] = $rs->getString ('APP_MSG_BCC');\n $this->fileData['template'] = $rs->getString ('APP_MSG_TEMPLATE');\n $this->fileData['attachments'] = array(); //$rs->getString('APP_MSG_ATTACH');\n $this->fileData['error'] = $rs->getString ('APP_MSG_ERROR');\n if ( $this->config['MESS_ENGINE'] == 'OPENMAIL' )\n {\n if ( $this->config['MESS_SERVER'] != '' )\n {\n if ( ($sAux = @gethostbyaddr ($this->config['MESS_SERVER']) ) )\n {\n $this->fileData['domain'] = $sAux;\n }\n else\n {\n $this->fileData['domain'] = $this->config['MESS_SERVER'];\n }\n }\n else\n {\n $this->fileData['domain'] = gethostbyaddr ('127.0.0.1');\n }\n }\n $this->sendMail ();\n }\n }", "function find($client_short=NULL,$project_short=NULL,$version_id,$quality) {\r\n $f3 = \\Base::instance();\r\n $files_db=new DB\\SQL\\Mapper($f3->get('DB'),'files');\r\n $files=$files_db->load(array('version_id=? AND quality=?',$version_id,$quality));\r\n $file_id = $files->file_id;\r\n return $file_id;\r\n }", "public function getFileInfo();", "public function gerRequirementsFiles()\n {\n $requirements = [];\n\n foreach ($this->getSearchPaths() as $alias) {\n $path = Yii::getAlias($alias);\n $files = FileHelper::findFiles($path, ['only' => ['*/' . self::REQUIREMENTS_FILE]]);\n\n foreach ($files as $file) {\n try {\n $requirements[] = require($file);\n } catch (Exception $e) {\n Yii::trace(\"Failed loading requirements.php file: {$e->getMessage()}\", __METHOD__);\n }\n }\n }\n\n return $requirements;\n }", "public function collectEzLegacyFiles()\r\n {\r\n $folder = array($this->app_root.'/../ezpublish_legacy/settings/', $this->app_root.'/../ezpublish_legacy/settings/override');\r\n $files_found = $this->findFiles($folder, array(\"ini\", \"php\"));\r\n\r\n if($files_found)\r\n $this->file_list = array_merge($this->file_list, $files_found);\r\n $this->filterZipfileList();\r\n\r\n }", "public function getFileRequest(): FileBag { return $this->files; }", "function _generateFilesList() {\n return array();\n }", "public function getFiles(): array\n {\n return [$this->file];\n }", "public function collectComposerJsonFile()\r\n {\r\n\r\n $files_found = $this->findSpecificFile($this->site_root, \"composer.json\");\r\n if($files_found)\r\n $this->file_list = array_merge($this->file_list, $files_found);\r\n }", "protected function getVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $vendor_compliance_survey_id when calling getVendorComplianceSurveyById'\n );\n }\n\n $resourcePath = '/beta/vendorComplianceSurvey/{vendorComplianceSurveyId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($vendor_compliance_survey_id !== null) {\n $resourcePath = str_replace(\n '{' . 'vendorComplianceSurveyId' . '}',\n ObjectSerializer::toPathValue($vendor_compliance_survey_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "function module_filesandrelatedlicences($DB, $course_mod, $allowed_fileareas=array('content')){\n\n //If decided to get only the default: just get the first record: change to get_record()\n $course_module_files = $DB->get_records('files', array('contextid' =>$course_mod->course_module_context->id));\n\n $course_mod->course_module_files=new stdClass();\n $course_mod->course_module_file_licences= new stdClass();\n foreach ($course_module_files as $key => $value) {\n\n if( in_array($value->filearea, $allowed_fileareas) ){\n\n if($value->author!=\"\" and $value->license!=\"\" and $value->author!=\"null\" and $value->license!=\"null\" and $value->author!=null and $value->license!=null){\n\n $course_mod->course_module_files[\"$value->id\"]=$value;\n $course_mod->course_module_file_licences[\"$value->id\"]= $DB->get_record('license', array('shortname' =>$value->license));\n }\n\n }\n }\n\n\n return $course_mod;\n // Treatment of \"file/licence\" object is needed to be reverified\n }", "public function testDeleteVendorComplianceSurvey()\n {\n }", "public function requiringFiles()\r\n\t{\r\n\t\treturn null; // nothing\r\n\t}", "function getTechFiles($mission = array())\n\t{\n\t\t$exploded_file_paths = array_filter(explode(\"|\",$mission['documents_path']));\n\t\t$exploded_file_names = explode(\"|\",$mission['documents_name']);\n\t\t$zip = \"\";\n\t\t\n\t\t$files = '<table class=\"table\">';\n\t\t$k=0;\n\t\tif($mission['delete']):\n\t\tforeach($exploded_file_paths as $row)\n\t\t{\n\t\t\t$file_path=$this->mission_documents_path.$row;\n\t\t\tif(file_exists($file_path) && !is_dir($file_path))\n\t\t\t{\n\t\t\t\t$zip = true;\n\t\t\t\t$fname = $exploded_file_names[$k];\n\t\t\t\tif($fname==\"\")\n\t\t\t\t\t$fname = basename($row);\n\t\t\t\t$ofilename = pathinfo($file_path);\n\t\t\t\t$files .= '<tr><td width=\"30%\">'.$fname.'</td><td width=\"35%\">'.substr($ofilename['filename'],0,-3).\".\".$ofilename['extension'].'</td><td width=\"20%\">'.formatSizeUnits(filesize($file_path)).'</td><td>Tech</td><td align=\"center\" width=\"15%\"><a href=\"/quote/download-document?type=tech_mission&mission_id='.$mission['id'].'&index='.$k.'\"><i style=\"margin-right:5px\" class=\"splashy-download\"></i></a><span class=\"deletetech\" rel=\"'.$k.'_'.$mission['id'].'\"> <i class=\"icon-adt_trash\"></i></span></td></tr>';\t\n\t\t\t}\n\t\t\t$k++;\n\t\t}\n\t\telse:\n\t\tforeach($exploded_file_paths as $row)\n\t\t{\n\t\t\t$file_path=$this->mission_documents_path.$row;\n\t\t\tif(file_exists($file_path) && !is_dir($file_path))\n\t\t\t{\n\t\t\t\t$zip = true;\n\t\t\t\t$fname = $exploded_file_names[$k];\n\t\t\t\tif($fname==\"\")\n\t\t\t\t\t$fname = basename($row);\n\t\t\t\t$ofilename = pathinfo($file_path);\n\t\t\t\t$files .= '<tr><td width=\"30%\">'.$fname.'</td><td width=\"35%\">'.substr($ofilename['filename'],0,-3).\".\".$ofilename['extension'].'</td><td width=\"20%\">'.formatSizeUnits(filesize($file_path)).'</td><td>Tech</td><td align=\"center\" width=\"15%\"><a href=\"/quote/download-document?type=tech_mission&mission_id='.$mission['id'].'&index='.$k.'\"><i style=\"margin-right:5px\" class=\"splashy-download\"></i></a></td></tr>';\t\n\t\t\t}\n\t\t\t$k++;\n\t\t}\n\t\tendif;\t\t\t\n\t\tif($zip)\n\t\t\t$zip = '<thead><tr><td colspan=\"5\"><a href=\"/quote/download-document?type=tech_mission&index=-1&mission_id='.$mission['id'].'\" class=\"btn btn-small pull-right\">Download Zip</a></td></tr></thead>';\n\t\t$files .=$zip.\"</table>\";\n\t\treturn $files;\n\t}", "public function getDeviceFiles()\n {\n return [$this->getPreferredDeviceFile()];\n }", "function get_all_by_survey($sid)\r\n {\r\n $this->db->select(\"*\");\r\n $this->db->where(\"sid\",$sid);\r\n return $this->db->get(\"data_files\")->result_array();\r\n }", "public function actionGetfilecontent()\n {\n $merchant_id=Yii::$app->user->identity->id;\n if (file_exists(\\Yii::getAlias('@webroot').'/var/importproduct/'.$merchant_id.'/samesku.txt')) {\n return file_get_contents(\\Yii::getAlias('@webroot').'/var/importproduct/'.$merchant_id.'/samesku.txt');\n }\n return false;\n\n }", "public function testIsVendorFileReturnsFalseIfFileThatIsReferencedByFileObjectIsNotLocatedInVendorDirectory()\n {\n $this->assertFalse(VendorResources::isVendorFile(new \\SplFileInfo(__FILE__)));\n }", "protected function getFilesToProcess()\n {\n return array(\n 'custom/modules/Quotes/metadata/detailviewdefs.php',\n );\n }", "private function getTestFileList() {\n\t\treturn [\n\t\t\tself::makeFileInfo('a.txt', 4, 2.3 * \\pow(10, 9)),\n\t\t\tself::makeFileInfo('q.txt', 5, 150),\n\t\t\tself::makeFileInfo('subdir2', 87, 128, true),\n\t\t\tself::makeFileInfo('b.txt', 2.2 * \\pow(10, 9), 800),\n\t\t\tself::makeFileInfo('o.txt', 12, 100),\n\t\t\tself::makeFileInfo('subdir', 88, 125, true),\n\t\t];\n\t}", "public function getFiles() {\n return $this->getPartFiles(0);\n }", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/trickstr.php',\n 'sources_custom/programe/.htaccess',\n 'sources_custom/programe/aiml/.htaccess',\n 'sources_custom/programe/aiml/index.html',\n 'sources_custom/programe/index.html',\n 'sources_custom/hooks/modules/chat_bots/knowledge.txt',\n 'sources_custom/hooks/modules/chat_bots/trickstr.php',\n 'sources_custom/programe/aiml/readme.txt',\n 'sources_custom/programe/aiml/startup.xml',\n 'sources_custom/programe/aiml/std-65percent.aiml',\n 'sources_custom/programe/aiml/std-pickup.aiml',\n 'sources_custom/programe/botloaderfuncs.php',\n 'sources_custom/programe/customtags.php',\n 'sources_custom/programe/db.sql',\n 'sources_custom/programe/graphnew.php',\n 'sources_custom/programe/respond.php',\n 'sources_custom/programe/util.php',\n );\n }", "function &getFiles() {\n\t\tif (!isset($this->files)) {\n\t\t\t$res = db_query_params ('SELECT id,artifact_id,description,filename,filesize,' .\n\t\t\t\t\t'filetype,adddate,submitted_by,user_name,realname\n\t\t\t\t\t FROM artifact_file_user_vw WHERE artifact_id=$1',\n\t\t\t\t\t\tarray ($this->getID())) ;\n\t\t\t$rows=db_numrows($res);\n\t\t\tif ($rows > 0) {\n\t\t\t\tfor ($i=0; $i < $rows; $i++) {\n\t\t\t\t\t$this->files[$i]=new ArtifactFile($this,db_fetch_array($res));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->files=array();\n\t\t\t}\n\t\t}\n\t\treturn $this->files;\n\t}", "public function findFileBy(array $criteria);", "public function testShouldGetFileInfo() {\n\t\t$this->assertEquals(\n\t\t\t$this->_testFilesId[0],\n\t\t\t$this->_Files->run(['ids' => $this->_testFilesId])[0]['id']\n\t\t);\n\t}", "function get_all_video_files($vdetails,$count_only=false,$with_path=false)\r\n{\r\n $details = get_video_file($vdetails,true,$with_path,true,$count_only);\r\n if($count_only)\r\n return count($details);\r\n return $details;\r\n}", "public function getContactsFile() {\n $finder = new Finder();\n $finder->files()->in(__DIR__)->name('contacts.txt');\n foreach($finder as $file) {\n $contents = $file->getContents();\n // echo($contents);\n return $contents;\n }\n }", "public function getLocalExtListFile() {}", "public function loadFilesILC()\r\n {\r\n $id = Input::get('ID');\r\n $iid =Input::get('IID');\r\n $project = Project::find($id);\r\n $files=[];\r\n if($project!=null)\r\n {\r\n $internalFiles = $project->filesByType(array('ilc','ilcVendors'));\r\n foreach($internalFiles as $file)\r\n {\r\n $created = date('m-d-Y',strtotime(str_replace('-','/',$file->created_at)));\r\n $files[]=['id'=>$file->id,'name'=>$file->fileName,'url'=>$file->url,'created'=>$created,'ilcVendors'=>$file->ilcVendors];\r\n }\r\n }\r\n $ilcV =IlcVendors::where('ilc_id',$iid)->first();\r\n if($ilcV == null)\r\n $existIlcV =0;\r\n else\r\n $existIlcV =1;\r\n return json_encode(array($files,$existIlcV));\r\n }" ]
[ "0.6860435", "0.66414535", "0.65964895", "0.6038706", "0.58677894", "0.5808163", "0.57320565", "0.5643674", "0.561282", "0.55950725", "0.55810714", "0.55452764", "0.55452764", "0.55452764", "0.5507607", "0.5507478", "0.550697", "0.550697", "0.550697", "0.55004233", "0.54698414", "0.5431033", "0.53923273", "0.5384807", "0.5382782", "0.5381707", "0.534928", "0.5282745", "0.5266334", "0.5241549", "0.52397853", "0.5191177", "0.5171284", "0.51517135", "0.51490206", "0.51472175", "0.51041013", "0.509215", "0.508784", "0.50862426", "0.50776565", "0.50753343", "0.50709164", "0.5062523", "0.5056454", "0.5035831", "0.5031639", "0.50123006", "0.5005266", "0.49919546", "0.4990747", "0.49893376", "0.49849457", "0.4966199", "0.49473006", "0.49471876", "0.49408603", "0.49162066", "0.49079195", "0.4906047", "0.49051976", "0.4890412", "0.4885697", "0.48849684", "0.4883976", "0.48718935", "0.4871758", "0.4870223", "0.4870223", "0.4870223", "0.48683566", "0.48639417", "0.48553905", "0.48549902", "0.48523045", "0.48450494", "0.48414493", "0.4835316", "0.48290747", "0.48257023", "0.48189384", "0.48158014", "0.4814699", "0.4808528", "0.48043898", "0.4802918", "0.4795296", "0.47930473", "0.47929302", "0.47768998", "0.47740224", "0.4773042", "0.47705492", "0.4769679", "0.4764579", "0.47603905", "0.4748976", "0.47466683", "0.47440225", "0.47434118" ]
0.6881038
0